@dlhsoft/ganttcharthyperlibrary
Version:
Gantt Chart library for JavaScript and TypeScript with Angular, React, and Vue extensions
96 lines • 320 kB
JavaScript
var DlhSoft;"undefined"===typeof DlhSoft&&(DlhSoft={assemblies:[],buildReleaseDate:new Date(1,0,1)});DlhSoft.assemblies.push({assembly:"DlhSoft.ProjectData.GanttChart.HTML.Controls",company:"DlhSoft",product:"Project Data Modern Library",version:"5.3.20.21",copyright:"Copyright \u00a9 2012-2025 DlhSoft",title:"Project Data Gantt Chart HTML Controls",description:"Project Data Gantt Chart related HTML client components"});
DlhSoft.buildReleaseDate=function(d,O,U){d=new Date(d,O-1,U);return d>DlhSoft.buildReleaseDate?d:DlhSoft.buildReleaseDate}(2025,6,28);var _0x5c25="Licensing{undefined{string{DlhSoft.Controls: DlhSoft internal usage only. Customers may purchase standard product usage licenses from http://DlhSoft.com/Purchase.{.{length{license{push{type{content{:{lastIndexOf{substr{buildReleaseDate{charCodeAt{pow{toUpperCase{DlhSoft Component Licensing Warning{http://DlhSoft.com/Purchase.aspx{?Assemblies={,{http://www.componentsource.com/features/dlhsoft{ (version {){This component is currently licensed to be used for testing purposes only{The component is part of this assembly{To purchase a standard license for a product that includes this assembly you can use the Purchase page{ownerDocument{div{createElement{style{position: absolute; left: 24px; top: 24px; width: 480px; display: block; z-index: 1; color: Black; background-color: #ffffc0; border: solid 1px Blue; overflow: auto{setAttribute{padding: 6px; padding-top: 8px; font-family: Arial; font-size: small{font-weight: bold; margin-bottom: 4px{appendChild{createTextNode{color: Red; margin-top: 2px; margin-bottom: 2px{margin-top: 4px{a{color: Blue; text-decoration: underline{href{target{_blank{Purchase license{margin-left: 4px; color: Blue; text-decoration: underline{javascript://{Continue trial{click{removeChild{addEventListener{\n\n{: {:\n".split("{");
void 0==DlhSoft[_0x5c25[0]]&&(DlhSoft[_0x5c25[0]]=function(){var d=_0x5c25[1],O=_0x5c25[2],U=[],aa=[],ba=_0x5c25[3],sa=function(v,Q){if(typeof v!==O||typeof Q!==O)return!1;if(Q==ba)return!0;var L=Q[_0x5c25[11]](_0x5c25[10]);if(0<=L){var X=Q[_0x5c25[12]](0,L),J,K=X[_0x5c25[11]](_0x5c25[10]);if(0<=K)try{J=new Date(parseInt(X[_0x5c25[12]](K+1)))}catch(M){}typeof J===d&&(J=new Date(2013,11,31));if(DlhSoft[_0x5c25[13]]>J)return!1;X=X+_0x5c25[10]+v;for(i=J=0;i<X[_0x5c25[5]];i++)K=X[_0x5c25[14]](i),J=(J<<
5)-J+K,J&=J;0>J&&(J=Math[_0x5c25[15]](2,32)-J);X=J.toString(16)[_0x5c25[16]]();L=Q[_0x5c25[12]](L+1);if(X==L)return!0}return!1},v=function(v,Q,L,X,J){var K=_0x5c25[17],M=_0x5c25[18],W=typeof ComponentSource===d||!ComponentSource?M+_0x5c25[19]+X+_0x5c25[20]+J:_0x5c25[21],U=X+_0x5c25[22]+J+_0x5c25[23],O=_0x5c25[24],ea=_0x5c25[25],ba=_0x5c25[26];setTimeout(function(){var d=v[_0x5c25[27]],s=d[_0x5c25[29]](_0x5c25[28]);s[_0x5c25[32]](_0x5c25[30],_0x5c25[31]);var l=d[_0x5c25[29]](_0x5c25[28]);l[_0x5c25[32]](_0x5c25[30],
_0x5c25[33]);var q=d[_0x5c25[29]](_0x5c25[28]);q[_0x5c25[32]](_0x5c25[30],_0x5c25[34]);l[_0x5c25[35]](q);q[_0x5c25[35]](d[_0x5c25[36]](K));l[_0x5c25[35]](d[_0x5c25[36]](O+_0x5c25[10]));q=d[_0x5c25[29]](_0x5c25[28]);q[_0x5c25[32]](_0x5c25[30],_0x5c25[37]);q[_0x5c25[35]](d[_0x5c25[36]](Q));l[_0x5c25[35]](q);l[_0x5c25[35]](d[_0x5c25[36]](ea+_0x5c25[10]));q=d[_0x5c25[29]](_0x5c25[28]);q[_0x5c25[32]](_0x5c25[30],_0x5c25[37]);q[_0x5c25[35]](d[_0x5c25[36]](U));l[_0x5c25[35]](q);l[_0x5c25[35]](d[_0x5c25[36]](ba+
_0x5c25[10]));q=d[_0x5c25[29]](_0x5c25[28]);q[_0x5c25[32]](_0x5c25[30],_0x5c25[38]);var j=d[_0x5c25[29]](_0x5c25[39]);j[_0x5c25[32]](_0x5c25[30],_0x5c25[40]);j[_0x5c25[32]](_0x5c25[41],W);j[_0x5c25[32]](_0x5c25[42],_0x5c25[43]);j[_0x5c25[35]](d[_0x5c25[36]](_0x5c25[44]));q[_0x5c25[35]](j);j=d[_0x5c25[29]](_0x5c25[39]);j[_0x5c25[32]](_0x5c25[30],_0x5c25[45]);j[_0x5c25[32]](_0x5c25[41],_0x5c25[46]);j[_0x5c25[35]](d[_0x5c25[36]](_0x5c25[47]));j[_0x5c25[50]](_0x5c25[48],function(){v[_0x5c25[49]](s);aa[_0x5c25[7]](L)},
!1);q[_0x5c25[35]](j);l[_0x5c25[35]](q);s[_0x5c25[35]](l);v[_0x5c25[35]](s)},0);setTimeout(function(){alert(K+_0x5c25[51]+O+_0x5c25[52]+Q+_0x5c25[51]+ea+_0x5c25[53]+U+_0x5c25[51]+ba+_0x5c25[4])},600000)};return{setLicense:function(d,v){U[_0x5c25[7]]({type:d,content:v})},validate:function(T,Q,L,X,J,K,M){for(var Q=Q+_0x5c25[4]+L,W=0;W<aa[_0x5c25[5]];W++)if(aa[W]==Q)return;a:if(typeof K!==O&&typeof M!==d&&(M[_0x5c25[6]]!==d&&(K=M[_0x5c25[6]]),typeof M===O&&(K=M)),typeof K!==O)for(M=0;M<U[_0x5c25[5]];M++)if(W=
U[M],W[_0x5c25[8]]==Q&&typeof W[_0x5c25[9]]===O){K=W[_0x5c25[9]];break a}sa(Q,K)?T[_0x5c25[6]]=K:v(T,L,Q,X,J)}}}());void 0==DlhSoft.Controls&&(DlhSoft.Controls={});
void 0==DlhSoft.Controls.GanttChartView&&(DlhSoft.Controls.GanttChartView=function(){var d="undefined",O=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],U=["January","February","March","April","May","June","July","August","September","October","November","December"],aa=[31,28,31,30,31,30,31,31,30,31,30,31],ba=new Date(259200000),sa=new Date(315576259200000),v=function(a,c,e,b,f){a.internalEventListeners&&a.internalEventListeners.push({object:c,event:e,handler:b,useCapture:f});
return b},T=function(a,c){var e=document.createEvent("MouseEvents");e.initMouseEvent(c,true,true,document.defaultView,0,0,0,0,0,false,false,false,false,0,a);a.dispatchEvent(e)},Q=function(a,c,e,b){function f(c){if(typeof r.x!==d&&!(a.offsetWidth<=0)){var c=r.gridWidth+(c.clientX-r.x),b=a.offsetWidth-c-3,f=Math.max(1,e.minGridWidth),g=Math.max(1,e.minChartWidth);if(c<f){b=b-(f-c);c=f}else if(b<g){c=c-(g-b);b=g}c<1&&(c=1);b<1&&(b=1);typeof o.percent!==d&&delete o.percent;c=Math.ceil(c*1000000/a.offsetWidth)/
10000;o.style.width=c+"%";F.style.width=100-c+"%";e.gridWidth=o.offsetWidth+"px";e.chartWidth=F.offsetWidth+"px";Ma(r,o,e);typeof e.splitterPositionChangeHandler!==d&&setTimeout(function(){e.splitterPositionChangeHandler(o.offsetWidth,F.offsetWidth)},0)}}if(typeof a.ownerDocument.createElementNS===d||typeof a.ownerDocument.addEventListener===d)alert("The required HTML5 features are not supported by the application host. Some features will be unavailable. Consider upgrading.");else{var g=["DlhSoft.Controls",
"GanttChartView","DlhSoft.ProjectData.GanttChart.HTML.Controls","5","validate","Licensing"];DlhSoft[g[5]][g[4]](a,g[0],g[1],g[2],g[3],b,e);a.isInitializing=true;if(typeof a.initializedItems!==d){a.initializedItems.forEach(function(a){a.gridItemContainer&&a.gridItemContainer.parentNode&&a.gridItemContainer.parentNode.removeChild(a.gridItemContainer);a.chartItemArea&&a.chartItemArea.parentNode&&a.chartItemArea.parentNode.removeChild(a.chartItemArea);delete a.ganttChartView;delete a.chartItem;delete a.chartItemArea;
delete a.gridItem;delete a.gridItemContent;delete a.gridItemSelectionContainer;delete a.gridItemContainer;delete a.alternativeContentContainer;delete a.toggleButton;delete a.parent;delete a.children;delete a.selectionInput;delete a.contentInput;delete a.startInput;delete a.finishInput;delete a.milestoneInput;delete a.assignmentsContentInput;delete a.completedInput;delete a.dependsOf;delete a.touchMoveHandler;delete a.touchEndHandler});typeof a.draggableItems!==d&&delete a.draggableItems;typeof a.draggableDependencyItems!==
d&&delete a.draggableDependencyItems;typeof a.draggableOrderingItems!==d&&delete a.draggableOrderingItems}a.initializedItems=c.slice();a.internalEventListeners&&a.internalEventListeners.forEach(function(a){a.object.removeEventListener(a.event,a.handler,a.useCapture)});a.internalEventListeners=[];typeof a.settings!==d&&typeof a.settings.toggleButtonAreaWidth!==d&&delete a.settings.toggleButtonAreaWidth;if(typeof a.items!==d)for(b=0;b<a.items.length;b++)delete a.items[b].successors;typeof e!=="object"&&
(e={});K(c,e);J(e,c,a);Hc(a,c,e);b=e.columns;g=e.scales;Ic(b,a,e);fa(c,a);Sa(c,e,a);if(typeof e.visibilityFilter!==d){Jc(c,e.visibilityFilter);for(var u=0,n=0;n<c.length;n++){var k=c[n];if(typeof k.ganttChartItems!==d){if(!k.isHidden)k.scheduleChartVisibilityIndex=u++;for(var m=0;m<k.ganttChartItems.length;m++){var p=k.ganttChartItems[m];if(k.isHidden)p.isHidden=true;p.displayRowIndex=k.scheduleChartVisibilityIndex}}}}var H=M(a,c,e),B=a.ownerDocument,u=B.createElement("div");u.setAttribute("style",
"font-family: "+(e.classic?"Arial":"system-ui, Arial")+"; font-size: "+(e.classic?"small":"12px")+"; overflow: auto");n=B.createElement("div");typeof e.containerClass!==d?n.setAttribute("class",e.containerClass):n.setAttribute("class","dlh-ganttchartview-container");typeof e.containerStyle!==d&&n.setAttribute("style",e.containerStyle);u.appendChild(n);k=B.createElement("div");k.setAttribute("style","border: solid 1px "+e.border+"; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; overflow: auto");
n.appendChild(k);var o=B.createElement("div");o.setAttribute("style","overflow: auto; float: left; border-right: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: "+e.gridWidth);e.isGridVisible&&k.appendChild(o);var F=B.createElement("div");F.setAttribute("style","overflow: auto; float: right; width: "+e.chartWidth);k.appendChild(F);var r=B.createElement("div");r.setAttribute("style","position: relative; opacity: 0; left: 0px; width: "+
e.splitterWidth*2+"px; height: 0px; border-left: solid "+e.splitterWidth+"px "+e.splitterBackground+"; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: ew-resize; -ms-touch-action: pinch-zoom; touch-action: auto");r.addEventListener("mouseover",v(a,r,"mouseover",function(){r.style.opacity=1;r.isWaiting!==d&&delete r.isWaiting},true),true);r.addEventListener("mouseout",v(a,r,"mouseout",function(){if(typeof r.isWaiting===d){r.isWaiting=true;setTimeout(function(){if(typeof r.isWaiting!==
d){delete r.isWaiting;if(typeof r.x===d)r.style.opacity=0}},250)}},true),true);r.addEventListener("mousedown",v(a,r,"mousedown",function(a){if(a.button==0){r.style.opacity=1;r.x=a.clientX;r.gridWidth=o.offsetWidth}},true),true);r.addEventListener("touchstart",v(a,r,"touchstart",function(a){a=a.touches[0];r.style.opacity=1;r.x=a.clientX;r.gridWidth=o.offsetWidth},true),true);B.addEventListener("mousemove",v(a,B,"mousemove",function(a){f(a)},true),true);B.addEventListener("touchmove",v(a,B,"touchmove",
function(a){f(a.touches[0])},true),true);B.addEventListener("mouseup",v(a,B,"mouseup",function(){if(typeof r.x!==d){delete r.x;r.style.opacity=0}if(DlhSoft.Controls.ToolTip&&(e.useUpdatingToolTips||e.useInlineToolTips)){if(toolTip=a.toolTip){toolTip.disable();toolTip.hide()}if(toolTip=a.resourceRoolTip){toolTip.disable();toolTip.hide()}}},true),true);B.addEventListener("touchend",v(a,B,"touchend",function(){if(typeof r.x!==d){delete r.x;r.style.opacity=0}},true),true);e.isGridVisible&&e.isSplitterEnabled&&
k.appendChild(r);n=B.createElement("div");n.setAttribute("style","float: right; background: "+e.headerBackground+"; width: 0px; height: "+e.headerHeight+"px");o.appendChild(n);k=B.createElement("div");k.setAttribute("style","overflow: hidden; background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: "+e.headerHeight+"px");o.appendChild(k);m=B.createElement("div");m.setAttribute("style","float: right; background: "+
e.headerBackground+"; width: 0px; height: "+e.headerHeight+"px");F.appendChild(m);p=B.createElement("div");p.setAttribute("style","overflow: hidden; background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: "+e.headerHeight+"px");F.appendChild(p);var h=B.createElement("div");h.setAttribute("style","overflow-x: "+(typeof e.isExport===d||!e.isExport?"scroll":"hidden")+"; overflow-y: "+(typeof e.isExport===
d||!e.isExport?"auto":"hidden")+"; height: "+H);o.appendChild(h);var l=B.createElement("div");l.setAttribute("style","overflow-x: "+(typeof e.isExport===d||!e.isExport?"scroll":"hidden")+"; overflow-y: "+(typeof e.isExport===d||!e.isExport?"auto":"hidden")+"; height: "+H);F.appendChild(l);var H=pb(b),j=B.createElement("div");j.setAttribute("style","background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: "+
H+"px; overflow: hidden; height: "+e.headerHeight+"px");k.appendChild(j);var t=B.createElement("div");t.setAttribute("style","float: left; width: "+H+"px; overflow: auto"+(e.horizontalGridLines?"; border-bottom: 1px solid "+e.horizontalGridLines+"; margin-bottom: -1px; ; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box":""));h.appendChild(t);if(typeof e.extraSpaceHeight!==d){var ma=B.createElement("div");ma.setAttribute("style","overflow: hidden; width: "+H+"px; height: "+
e.extraSpaceHeight+"px");h.appendChild(ma)}var qa=G(e.timelineFinish,e),s=B.createElement("div");s.setAttribute("style","background: "+e.headerBackground+"; border-bottom: solid 1px "+e.border+"; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: "+qa+"px; height: "+e.headerHeight+"px");var w,z;if(e.extendTimelineToEntireWeeks)p.appendChild(s);else{H=B.createElement("div");p.appendChild(H);w={workingWeekStart:e.visibleWeekStart,workingWeekFinish:e.visibleWeekFinish,
workingDayStart:e.visibleDayStart,workingDayFinish:e.visibleDayFinish};z=N(e.timelineStart,e.intendedTimelineStart,e,w)/3600000*e.hourWidth;w=z+N(e.intendedTimelineStart,e.intendedTimelineFinish,e,w)/3600000*e.hourWidth;H.setAttribute("style","overflow-x: hidden; width: "+w+"px; transform: translateX(-"+z+"px);");H.appendChild(s)}var q=B.createElement("div");q.setAttribute("style","float: left; overflow: hidden; width: "+qa+"px; height: 0px");if(e.extendTimelineToEntireWeeks)l.appendChild(q);else{H=
B.createElement("div");l.appendChild(H);H.setAttribute("style","overflow-x: hidden; width: "+w+"px; transform: translateX(-"+z+"px); clip-path: xywh(0 0 "+w+"px 100%);");H.appendChild(q)}var x=B.createElementNS("http://www.w3.org/2000/svg","svg");x.setAttribute("style","width: "+qa+"px; height: 0px");z=e.styleDefinitionTemplate(a);x.appendChild(z);x.chartAreaDefinitions=z;z=B.createElementNS("http://www.w3.org/2000/svg","g");x.appendChild(z);q.chartAreaAlternativeRows=z;z=function(){setTimeout(function(){try{var a=
q.chartArea,c=a.chartAreaDefinitions;a.removeChild(c);a.childNodes.length>0?a.insertBefore(c,a.childNodes[0]):a.appendChild(c)}catch(e){}},0)};x.addEventListener("mousedown",v(a,x,"mousedown",z,true),true);B.addEventListener("mouseup",v(a,B,"mouseup",z,true),true);a.resetChartAreaDefinitions=z;q.appendChild(x);q.chartArea=x;if(typeof e.extraSpaceHeight!==d){z=B.createElement("div");z.setAttribute("style","overflow: hidden; width: "+qa+"px; height: "+e.extraSpaceHeight+"px");l.appendChild(z);l.chartExtraSpace=
z}var y,C,D,A;setTimeout(function(){C=screen.deviceXDPI;y=a.isInitialized?-1:a.offsetWidth;D=a.isInitialized?-1:a.offsetHeight;A=F.offsetHeight},0);typeof a.splitterUpdateTimer!==d&&clearInterval(a.splitterUpdateTimer);a.splitterUpdateTimer=setInterval(function(){try{if(typeof r.x===d&&!(a.offsetWidth<=0)&&a.settings.isGridVisible){var c=a.offsetWidth,b=F.offsetHeight,f=screen.deviceXDPI;if(c!=y||f!=C){var g=typeof o.percent!==d?o.percent*c:o.offsetWidth,n=F.offsetWidth,k=Math.max(1,e.minGridWidth),
m=Math.max(1,e.minChartWidth);if(g<k){n=n-(k-g);g=k}else if(n<m){g=g-(m-n);n=m}g<1&&(g=1);n<1&&(n=1);var p=Math.ceil(g*100/c);o.percent=p/100;o.style.width=p+"%";F.style.width=100-p+"%";e.gridWidth=o.offsetWidth+"px";e.chartWidth=F.offsetWidth+"px";Ma(r,o,e);if(typeof e.splitterPositionChangeHandler!==d){var u=o.offsetWidth,H=F.offsetWidth;u>0&&H>0&&setTimeout(function(){e.splitterPositionChangeHandler(u,H)},0)}y=c;D=b;C=f}else if(b!=A){Ma(r,o,e);A=b}}}catch(B){try{clearInterval(a.splitterUpdateTimer)}catch(h){}}},
100);typeof a.heightUpdateTimer!==d&&clearInterval(a.heightUpdateTimer);a.heightUpdateTimer=setInterval(function(){try{if(!(a.clientHeight<=0)){var b=a.clientHeight;if(b!=D){var f=M(a,c,e);h.style.height=f;l.style.height=f;Ma(r,o,e);if(l.style.height!="auto")q.availableHeight=l.clientHeight;Aa(q,Ba(c,e));Ca(c,l,e);D=b=a.clientHeight}}}catch(d){try{clearInterval(a.heightUpdateTimer)}catch(g){}}},100);typeof a.scaleUpdateTimer!==d&&clearInterval(a.scaleUpdateTimer);a.chartScale=1;a.scaleUpdateTimer=
setInterval(function(){try{var c=a.getItemsHeight(),b=a.gridContent.clientHeight/c;if(b>0){a.chartScale=b;a.chartContent.style.transform="scaleY("+b+") translateY(-"+(c-a.gridContent.clientHeight)/2+"px)"}}catch(e){}},1000);var E=function(b,f,g,n,k,m){var p;if(e.mouseHandler||e.mouseMoveHandler&&m=="mousemove"||e.mouseDownHandler&&m=="mousedown"||(e.clickHandler||e.itemClickHandler||e.chartClickHandler||e.chartItemClickHandler)&&m=="click"||(e.doubleClickHandler||e.itemDoubleClickHandler||e.chartDoubleClickHandler||
e.chartItemDoubleClickHandler)&&m=="dblclick"){var u=b.which;!u&&b.button&&(b.button&1?u=1:b.button&4?u=2:b.button&2&&(u=3));p=k.getBoundingClientRect();var r=B.body,o=B.documentElement,k=p.left+(window.pageXOffset||o.scrollLeft||r.scrollLeft)-(o.clientLeft||r.clientLeft||0);p=Math.round(p.top+(window.pageYOffset||o.scrollTop||r.scrollTop)-(o.clientTop||r.clientTop||0));var k=Math.round(k),k=b.pageX-k,o=(b.pageY-p)/a.chartScale,H=p=0,F,h;if(g)for(r=0;r<c.length;r++){H=c[r];if(H.isVisible&&!(typeof H.isHidden!==
d&&H.isHidden)){H=H.itemTop+e.itemHeight;if(o<=H){F=c[r];break}}}else if(f){for(var l=e.scales,j=0,pa,r=0;r<l.length;r++){pa=l[r];(typeof pa.isHeaderVisible===d||pa.isHeaderVisible)&&j++}var t=e.headerHeight;j>0&&(t=e.headerHeight/j);for(r=0;r<l.length;r++){pa=l[r];if(typeof pa.isHeaderVisible===d||pa.isHeaderVisible){j=t;if(typeof pa.headerHeight!==d)j=pa.headerHeight;H=H+j;if(o<=H){F=pa;break}}}}if(f)h=Na(k,e);else{o=e.columns;for(r=0;r<o.length;r++){H=o[r];p=p+(H.width?H.width:0);if(k<=p){h=H;
break}}}e.mouseHandler&&e.mouseHandler(m,g,f,F,h,u,n,b);e.mouseMoveHandler&&m=="mousemove"&&e.mouseMoveHandler(g,f,F,h);e.mouseDownHandler&&m=="mousedown"&&e.mouseDownHandler(g,f,F,h,u);e.clickHandler&&m=="click"&&e.clickHandler(g,f,F,h);e.doubleClickHandler&&m=="dblclick"&&e.doubleClickHandler(g,f,F,h);e.itemClickHandler&&(m=="click"&&g&&F)&&e.itemClickHandler(f,F,h);e.itemDoubleClickHandler&&(m=="dblclick"&&g&&F)&&e.itemDoubleClickHandler(f,F,h);e.chartClickHandler&&(m=="click"&&f)&&e.chartClickHandler(g,
F,h);e.chartDoubleClickHandler&&(m=="dblclick"&&f)&&e.chartDoubleClickHandler(g,F,h);e.chartItemClickHandler&&(m=="click"&&g&&f)&&e.chartItemClickHandler(F,h);e.chartItemDoubleClickHandler&&(m=="dblclick"&&g&&f)&&e.chartItemDoubleClickHandler(F,h)}};j.addEventListener("mousemove",v(a,j,"mousemove",function(a){E(a,false,false,0,j,"mousemove")}));j.addEventListener("mousedown",v(a,j,"mousedown",function(a){E(a,false,false,1,j,"mousedown")}));j.addEventListener("click",v(a,j,"click",function(a){E(a,
false,false,1,j,"click")}));j.addEventListener("dblclick",v(a,j,"dblclick",function(a){E(a,false,false,2,j,"dblclick")}));t.addEventListener("mousemove",v(a,t,"mousemove",function(a){E(a,false,true,0,t,"mousemove")}));t.addEventListener("mousedown",v(a,t,"mousedown",function(a){E(a,false,true,1,t,"mousedown")}));t.addEventListener("click",v(a,t,"click",function(a){E(a,false,true,1,t,"click")}));t.addEventListener("dblclick",v(a,t,"dblclick",function(a){E(a,false,true,2,t,"dblclick")}));s.addEventListener("mousemove",
v(a,s,"mousemove",function(a){E(a,true,false,0,s,"mousemove")}));s.addEventListener("mousedown",v(a,s,"mousedown",function(a){E(a,true,false,1,s,"mousedown")}));s.addEventListener("click",v(a,s,"click",function(a){E(a,true,false,1,s,"click")}));s.addEventListener("dblclick",v(a,s,"dblclick",function(a){E(a,true,false,2,s,"dblclick")}));q.addEventListener("mousemove",v(a,q,"mousemove",function(a){E(a,true,true,0,q,"mousemove")}));q.addEventListener("mousedown",v(a,q,"mousedown",function(a){E(a,true,
true,1,q,"mousedown")}));q.addEventListener("click",v(a,q,"click",function(a){E(a,true,true,1,q,"click")}));q.addEventListener("dblclick",v(a,q,"dblclick",function(a){E(a,true,true,2,q,"dblclick")}));q.addEventListener("touchmove",v(a,q,"touchmove",function(c){a.draggingItem&&c.preventDefault()},true),true);t.container=h;q.container=l;j.container=k;s.container=p;a.gridContainer=o;a.chartContainer=F;a.gridContent=t;a.chartContent=q;a.gridContentContainer=h;a.chartContentContainer=l;a.gridHeader=j;
a.chartHeader=s;a.gridHeaderContainer=k;a.chartHeaderContainer=p;a.splitter=r;l.isInitializing=true;z=W(c,e);Kc(a,u);if(l.style.height!="auto")q.availableHeight=l.clientHeight;Lc(j,b,e,a);qb(s,x,g,e);Mc(x,c,e);Nc(t,q,x,c,b,z,e,a);Ma(r,o,e);l.isInitializing=false;Ca(c,l,e);l.scrollLeft=G(e.displayedTime,e);if(p.scrollLeft!=l.scrollLeft)p.scrollLeft=l.scrollLeft;Oc(a,h,o,k,n,t,l,p,F,m,q,r,c,e);var I=false,P=function(a,b){typeof b===d&&(b=0);if(e.hourWidth!=a){I=true;var f=l.scrollLeft,g=b,n=e.hourWidth;
e.hourWidth=a;typeof e.hourWidthChangeHandler!==d&&setTimeout(function(){e.hourWidthChangeHandler(e.hourWidth)},0);qa=G(e.timelineFinish,e);s.style.width=qa+"px";q.style.width=qa+"px";x.style.width=qa+"px";if(typeof l.chartExtraSpace!==d)l.chartExtraSpace.style.width=qa+"px";var k;for(k=s.childNodes.length;k-- >0;)s.removeChild(s.childNodes[k]);var m=[];for(k=x.childNodes.length;k-- >1;){var p=x.childNodes[k];if(p!=q.chartAreaAlternativeRows){p.tag!="Scale-Highlighting"&&(p.tag!="Scale-Highlighting-CurrentTime"&&
p.tag!="Scale-Separator"&&p.tag!="Scale-Separator-CurrentTime")&&m.push(p);x.removeChild(p)}}qb(s,x,e.scales,e);for(k=0;k<c.length;k++){p=c[k];if(!e.isVirtualizing||typeof p.isVirtuallyVisible!==d&&p.isVirtuallyVisible){ga(p.chartPredecessorItems,p,e);ha(p.chartItem,p,e)}}for(k=m.length;k-- >0;)x.appendChild(m[k]);Aa(q,Ba(c,e));l.scrollLeft=g*(a/n)-(g-f);setTimeout(function(){I=false},200)}};a.setHourWidth=P;if(e.classic?typeof e.isMouseWheelZoomEnabled===d||e.isMouseWheelZoomEnabled:e.isMouseWheelZoomEnabled){b=
function(c){c.preventDefault();c.stopPropagation();if(!I){var b=typeof c.wheelDelta!==d?c.wheelDelta>=0?1:-1:typeof c.detail!==d?-c.detail>=0?1:-1:0,e=a.settings,f=e.hourWidth,g=typeof e.isMouseWheelZoomEnabledMinHourWidth!==d?e.isMouseWheelZoomEnabledMinHourWidth:1;if(b<0)f=f/(1.2*-b);else if(b>0){f=f*1.2*b;b=typeof e.isMouseWheelZoomEnabledMaxHourWidth!==d?e.isMouseWheelZoomEnabledMaxHourWidth:20;f>b&&(f=b)}f<g&&(f=g);P(f,c.offsetX)}};x.addEventListener("mousewheel",v(a,x,"mousewheel",b));x.addEventListener("DOMMouseScroll",
v(a,x,"DOMMouseScroll",b))}a.isInitializing=false;a.isInitialized=true;return a}},L=function(a){a.settings.timelineStart=a.settings.intendedTimelineStart;delete a.settings.intendedTimelineStart;a.settings.timelineFinish=a.settings.intendedTimelineFinish;delete a.settings.intendedTimelineFinish;Q(a,a.items,a.settings,a.license)},X=function(a){if(typeof a.dateTimePickerType===d)a.dateTimePickerType="text";if(typeof a.useDatePicker===d)a.useDatePicker=true;if(typeof a.useTimePicker===d)a.useTimePicker=
true;if(typeof a.useResourceSelector===d)a.useResourceSelector=true;if(typeof a.useInlineToolTips===d)a.useInlineToolTips=true;if(typeof a.useInlineToolTipsForDependencies===d)a.useInlineToolTipsForDependencies=true;if(typeof a.useUpdatingToolTips===d)a.useUpdatingToolTips=true;if(typeof a.dateFormatter===d)a.dateFormatter=ea;if(typeof a.dateTimeFormatter===d)a.dateTimeFormatter=la;if(typeof a.dateTimeParser===d)a.dateTimeParser=s;if(typeof a.itemPropertyChangeHandler===d)a.itemPropertyChangeHandler=
function(){};if(typeof a.target===d)a.target="Standard";if(typeof a.theme===d)a.theme="Modern";if(typeof a.isGridVisible===d)switch(a.target){default:a.isGridVisible=true;break;case "Phone":a.isGridVisible=false}if(typeof a.interaction===d)a.interaction=a.target!="Phone"?"Standard":"TouchEnabled";if(typeof a.isSplitterEnabled===d)a.isSplitterEnabled=true;if(typeof a.isReadOnly===d)a.isReadOnly=false;if(typeof a.isGridReadOnly===d)a.isGridReadOnly=false;if(typeof a.isChartReadOnly===d)a.isChartReadOnly=
false;if(typeof a.isContentReadOnly===d)a.isContentReadOnly=false;if(typeof a.isAssignmentsContentReadOnly===d)a.isAssignmentsContentReadOnly=false;if(typeof a.isIndividualItemNonworkingTimeHighlighted===d)a.isIndividualItemNonworkingTimeHighlighted=false;if(typeof a.areTaskInterruptionsHighlighted===d)a.areTaskInterruptionsHighlighted=false;if(typeof a.areTaskDependencyConstraintsEnabled===d)a.areTaskDependencyConstraintsEnabled=false;if(typeof a.alwaysHandleInvalidDependencies===d)a.alwaysHandleInvalidDependencies=
false;if(typeof a.selectionMode===d)a.selectionMode="Focus";if(typeof a.isVirtualizing===d)a.isVirtualizing=true},J=function(a,c,e){X(a);if(typeof a.gridWidth===d)a.gridWidth="35%";if(typeof a.chartWidth===d)a.chartWidth=a.isGridVisible?"65%":"100%";if(typeof a.minGridWidth===d)a.minGridWidth=32;if(typeof a.minColumnWidth===d)a.minColumnWidth=32;if(typeof a.minChartWidth===d)a.minChartWidth=36;if(typeof a.border===d)switch(a.theme){default:a.border="#e0e0e0";break;case "ModernBordered":case "Aero":a.border=
"#9a9a9a"}if(typeof a.splitterWidth===d)a.splitterWidth=4;if(typeof a.splitterBackground===d)a.splitterBackground=a.border;if(typeof a.indentationLevelWidth===d)a.indentationLevelWidth=16;if(typeof a.itemHeight===d)a.itemHeight=a.classic?21:28;if(typeof a.headerBackground===d)a.headerBackground=a.classic?"#f4f4f4":"white";if(typeof a.headerHeight===d)a.headerHeight=(a.classic?21:31)*2;if(typeof a.columns===d)a.columns=j(c,a);if(typeof a.toggleButtonStyle===d&&a.toggleButtonClass==null)a.toggleButtonStyle=
"fill: Gray";if(typeof a.toggleButtonHoveringStyle===d&&a.toggleButtonHoveringClass==null)a.toggleButtonHoveringStyle="fill: Black";if(typeof a.collapsedToggleButtonTemplate===d)a.collapsedToggleButtonTemplate=Mb(e,a);if(typeof a.expandedToggleButtonTemplate===d)a.expandedToggleButtonTemplate=Nb(e,a);if(typeof a.gridLines!==d){if(typeof a.horizontalGridLines===d)a.horizontalGridLines=a.gridLines;if(typeof a.verticalGridLines===d)a.verticalGridLines=a.gridLines;if(typeof a.horizontalChartLines===d)a.horizontalChartLines=
a.gridLines}if(!a.classic&&typeof a.verticalGridHeaderLines===d)a.verticalGridHeaderLines=a.verticalGridLines?a.verticalGridLines:"#e0e0e0";if(typeof a.itemStyle===d&&typeof a.horizontalGridLines!==d){a.itemStyle="border-top: solid 1px "+a.horizontalGridLines+"; margin-top: -1px; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box";if(typeof a.cellStyle===d)a.cellStyle=typeof a.verticalGridLines!==d?"border-right: solid 1px "+a.verticalGridLines+"; height: "+a.itemHeight+
"px; padding-top: 2px; padding-left: 2px":"height: "+a.itemHeight+"px; padding-top: 2px"}if(typeof a.cellStyle===d&&typeof a.verticalGridLines!==d)a.cellStyle="border-right: solid 1px "+a.verticalGridLines+"; height: "+a.itemHeight+"px; padding-top: 3px; padding-left: 2px";if(!a.classic&&typeof a.cellStyle===d){a.cellStyle="padding-left: 2px;";if(typeof a.columnHeaderStyle===d)a.columnHeaderStyle="padding-left: 2px"}if(typeof a.selectedItemStyle===d&&a.selectedItemClass==null)if(a.classic)switch(a.theme){default:a.selectedItemStyle=
typeof a.horizontalGridLines!==d||typeof a.verticalGridLines===d?"background-color: #f4f4f4; border-top: solid 1px "+(typeof a.horizontalGridLines!==d?a.horizontalGridLines:"White")+"; margin-top: -1px; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box":"background-color: #f4f4f4";break;case "Aero":a.selectedItemStyle=typeof a.horizontalGridLines!==d||typeof a.verticalGridLines===d?"background-color: LightBlue; border-top: solid 1px "+(typeof a.horizontalGridLines!==
d?a.horizontalGridLines:"White")+"; margin-top: -1px; -wekbit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box":"background-color: LightBlue"}else a.selectedItemStyle="background-color: #8dd2ff60;";if(typeof a.summaryItemStyle===d&&a.summaryItemClass==null)a.summaryItemStyle="font-weight: bold";if(typeof a.daysOfWeek===d)a.daysOfWeek=O;if(typeof a.months===d)a.months=U;if(typeof a.weekStartDay===d)a.weekStartDay=0;if(typeof a.todayString===d)a.todayString="Today";if(typeof a.nowString===
d)a.nowString="Current";if(typeof a.timeOfDayString===d)a.timeOfDayString="Time of day";if(typeof a.currentTime===d)a.currentTime=new Date;else if(typeof a.currentTime==="string")try{a.currentTime=new Date(a.currentTime)}catch(b){a.currentTime=new Date(parseInt(a.currentTime))}if(typeof a.displayedTime==="string")try{a.displayedTime=new Date(a.displayedTime)}catch(f){a.displayedTime=new Date(parseInt(a.displayedTime))}if(typeof a.timelineStart==="string")try{a.timelineStart=new Date(a.timelineStart)}catch(g){a.timelineStart=
new Date(parseInt(a.timelineStart))}if(typeof a.timelineFinish==="string")try{a.timelineFinish=new Date(a.timelineFinish)}catch(u){a.timelineFinish=new Date(parseInt(a.timelineFinish))}if(!a.classic&&typeof a.scales===d)a.scales=[{scaleType:"NonworkingTime",isHeaderVisible:false,isHighlightingVisible:true,highlightingStyle:"stroke-width: 0; fill: "+(a.nonworkingBackground?a.nonworkingBackground:"#f8f8f8")+"; fill-opacity: 0.65"},{scaleType:"Weeks",headerTextFormat:"Date",headerStyle:"padding: 7px 5px; border-right: 1px solid "+
(a.headerBorder?a.headerBorder:"#e8e8e8")+"; border-bottom: 1px solid "+(a.headerBorder?a.headerBorder:"#e8e8e8")+(a.headerForeground?"; color: "+a.headerForeground:""),isSeparatorVisible:true,separatorStyle:"stroke: "+(a.scaleSeparatorBorder?a.scaleSeparatorBorder:"#c8bfe7")+"; stroke-width: 0.5px"},{scaleType:"Days",headerTextFormat:"DayOfWeekAbbreviation",headerStyle:"padding: 7px 5px; border-right: 1px solid "+(a.headerBorder?a.headerBorder:"#e8e8e8")+(a.headerForeground?"; color: "+a.headerForeground:
"")},{scaleType:"CurrentTime",isHeaderVisible:false,isSeparatorVisible:true,separatorStyle:"stroke: "+(a.currentTimeStroke?a.currentTimeStroke:"#e31d3b")+"; stroke-width: 0.5px"}];if(!a.classic){if(typeof a.alternativeItemStyle===d)a.alternativeItemStyle="background-color: #8080800c;";if(typeof a.alternativeChartItemStyle===d)a.alternativeChartItemStyle="fill: #8080800c;"}if(!a.classic&&typeof a.arrowSize===d)a.arrowSize=1.5;if(typeof a.isRelativeToTimezone===d||a.isRelativeToTimezone){a.currentTime=
new Date(a.currentTime.valueOf()-a.currentTime.getTimezoneOffset()*60000);if(typeof a.displayedTime!==d)a.displayedTime=new Date(a.displayedTime.valueOf()-a.displayedTime.getTimezoneOffset()*60000);if(typeof a.timelineStart!==d)a.timelineStart=new Date(a.timelineStart.valueOf()-a.timelineStart.getTimezoneOffset()*60000);if(typeof a.timelineFinish!==d)a.timelineFinish=new Date(a.timelineFinish.valueOf()-a.timelineFinish.getTimezoneOffset()*60000);if(typeof a.scales!==d)for(c=0;c<a.scales.length;c++){var n=
a.scales[c];if(typeof n.intervals!==d)for(var k=0;k<n.intervals.length;k++){var m=n.intervals[k];if(typeof m.start!==d)m.start=new Date(m.start.valueOf()-m.start.getTimezoneOffset()*60000);if(typeof m.finish!==d)m.finish=new Date(m.finish.valueOf()-m.finish.getTimezoneOffset()*60000)}}a.isRelativeToTimezone=false}if(typeof a.schedule!==d&&a.schedule!=null){if(a.schedule!=a.previousSchedule||a.schedule.workingWeekStart!=a.previousSchedule.workingWeekStart)a.workingWeekStart=a.schedule.workingWeekStart;
if(a.schedule!=a.previousSchedule||a.schedule.workingWeekFinish!=a.previousSchedule.workingWeekFinish)a.workingWeekFinish=a.schedule.workingWeekFinish;if(a.schedule!=a.previousSchedule||a.schedule.workingDayStart!=a.previousSchedule.workingDayStart)a.visibleDayStart=a.schedule.workingDayStart;if(a.schedule!=a.previousSchedule||a.schedule.workingDayFinish!=a.previousSchedule.workingDayFinish)a.visibleDayFinish=a.schedule.workingDayFinish;if(a.schedule!=a.previousSchedule||a.schedule.specialNonworkingDays!=
a.previousSchedule.specialNonworkingDays)a.specialNonworkingDays=a.schedule.specialNonworkingDays}if(typeof a.extendTimelineToEntireWeeks===d)a.extendTimelineToEntireWeeks=true;a.intendedTimelineStart=a.timelineStart;a.intendedTimelineFinish=a.timelineFinish;a.timelineStart=typeof a.timelineStart===d?new Date(Da(a.currentTime,a.weekStartDay).valueOf()-604800000):Da(a.timelineStart,a.weekStartDay);a.timelineFinish=typeof a.timelineFinish===d?new Date(Da(a.currentTime,a.weekStartDay).valueOf()+32054400000):
rb(a.timelineFinish,a.weekStartDay);if(typeof a.intendedTimelineStart===d)a.intendedTimelineStart=a.timelineStart;if(typeof a.intendedTimelineFinish===d)a.intendedTimelineFinish=a.timelineFinish;if(!a.isExport&&typeof a.specialNonworkingDays!==d&&typeof a.specialNonworkingDays!=="function")for(c=0;c<a.specialNonworkingDays.length;c++)a.specialNonworkingDays[c]=Y(new Date(a.specialNonworkingDays[c].valueOf()-(a.specialNonworkingDays[c].getTimezoneOffset()<0?a.specialNonworkingDays[c].getTimezoneOffset():
0)*60000));if(!a.isExport&&typeof a.resourceSchedules!==d)for(n=0;n<a.resourceSchedules.length;n++){k=a.resourceSchedules[n].value;if(typeof k.specialNonworkingDays!==d)for(c=0;c<k.specialNonworkingDays.length;c++)k.specialNonworkingDays[c]=Y(new Date(k.specialNonworkingDays[c].valueOf()-(k.specialNonworkingDays[c].getTimezoneOffset()<0?k.specialNonworkingDays[c].getTimezoneOffset():0)*60000))}if(typeof a.scales===d)a.scales=Ob(a);if(typeof a.updateScale===d)a.updateScale=900000;if(typeof a.hourWidth===
d)a.hourWidth=a.classic?2.5:5;if(typeof a.displayedTime===d){a.displayedTime=a.currentTime;setTimeout(function(){var c=e.chartContentContainer.scrollLeft-a.hourWidth*12;if(e.chartContentContainer.scrollLeft-c<e.chartContentContainer.clientWidth/3)e.chartContentContainer.scrollLeft=Math.max(0,c)},0)}a.previousSchedule=a.schedule;if(typeof a.visibleDayStart===d)a.visibleDayStart=28800000;if(typeof a.visibleDayFinish===d)a.visibleDayFinish=57600000;if(a.visibleDayStart>=a.visibleDayFinish){a.visibleWeekStart=
0;a.visibleWeekFinish=86400000}if(typeof a.visibleWeekStart===d)a.visibleWeekStart=0;if(typeof a.visibleWeekFinish===d)a.visibleWeekFinish=6;if(a.visibleWeekStart>a.visibleWeekFinish)if(a.visibleWeekStart==a.visibleWeekFinish+1){a.visibleWeekStart=0;a.visibleWeekFinish=6}else a.visibleWeekFinish=a.visibleWeekStart;if(typeof a.workingWeekStart===d)a.workingWeekStart=1;if(typeof a.workingWeekFinish===d)a.workingWeekFinish=5;if(a.workingWeekStart>a.workingWeekFinish)if(a.workingWeekStart==a.workingWeekFinish+
1){a.workingWeekStart=0;a.workingWeekFinish=6}else a.workingWeekFinish=a.workingWeekStart;a.workingDayStart=a.visibleDayStart;a.workingDayFinish=a.visibleDayFinish;if(!a.classic&&typeof a.barMargin===d)a.barMargin=4;if(typeof a.barHeight===d)a.barHeight=typeof a.barMargin===d?a.itemHeight/2:a.itemHeight-2*a.barMargin;if(typeof a.barMargin===d)a.barMargin=(a.itemHeight-a.barHeight)/2;if(typeof a.barCornerRadius===d)if(a.classic)switch(a.theme){default:a.barCornerRadius=0;break;case "Aero":a.barCornerRadius=
3}else a.barCornerRadius=2;if(!a.classic&&typeof a.completedBarMargin===d)a.completedBarMargin=1;if(typeof a.completedBarMargin===d)a.completedBarMargin=a.barHeight/2.5;if(typeof a.completedBarHeight===d)a.completedBarHeight=a.barHeight-a.completedBarMargin*2;if(typeof a.completedBarCornerRadius===d)a.completedBarCornerRadius=0;a.completedBarCornerRadius=Math.min(a.completedBarCornerRadius,Math.max(0,a.barCornerRadius-1));if(typeof a.styleDefinitionTemplate===d)a.styleDefinitionTemplate=Pb(e,a);if(typeof a.standardBarStyle===
d&&a.standardBarClass==null)if(a.classic)switch(a.theme){default:a.standardBarStyle="fill: #8abbed; fill-opacity: 0.8; stroke: #8abbed; stroke-width: 0.65px";break;case "ModernBordered":a.standardBarStyle="fill: #8abbed; fill-opacity: 0.8; stroke: Blue; stroke-width: 0.65px";break;case "Aero":a.standardBarStyle="fill: url(#BlueGradient); fill-opacity: 0.8; stroke: Blue"}else a.standardBarStyle="fill: #8dd2ff; fill-opacity: 0.8; stroke: #3b87d9; stroke-width: 0.65px;";if(typeof a.standardCompletedBarStyle===
d&&a.standardCompletedBarClass==null)if(a.classic)switch(a.theme){default:a.standardCompletedBarStyle="fill: #3b87d9; stroke: #3b87d9; stroke-width: 0.65px";break;case "Aero":a.standardCompletedBarStyle="fill: #808080; stroke: #202020; stroke-width: 0.65px"}else a.standardCompletedBarStyle="fill: #1ca3ec; stroke: #1ca3ec; stroke-width: 0.5px;";if(typeof a.summaryBarStyle===d&&a.summaryBarClass==null)switch(a.theme){default:a.summaryBarStyle="fill: #607080; stroke: #607080; stroke-width: 0.65px";break;
case "ModernBordered":a.summaryBarStyle="fill: #607080; stroke: #202020; stroke-width: 0.65px";break;case "Aero":a.summaryBarStyle="fill: url(#BlackGradient); stroke: Black"}if(typeof a.summaryCompletedBarStyle===d&&a.summaryCompletedBarClass==null)switch(a.theme){default:a.summaryCompletedBarStyle="fill: #404040; stroke: #404040; stroke-width: 0.65px";break;case "Aero":a.summaryCompletedBarStyle="fill: #a0a0a0; stroke: #303030; stroke-width: 0.65px"}if(typeof a.collapsedSummaryLineStyle===d&&a.collapsedSummaryLineClass==
null)a.collapsedSummaryLineStyle="stroke: #3b87d9; stroke-width: 0.65px; stroke-dasharray: 2 2";if(typeof a.milestoneBarStyle===d&&a.milestoneBarClass==null)if(a.classic)switch(a.theme){default:a.milestoneBarStyle="fill: #607080; stroke: #607080; stroke-width: 0.65px";break;case "ModernBordered":a.milestoneBarStyle="fill: #607080; stroke: #202020; stroke-width: 0.65px";break;case "Aero":a.milestoneBarStyle="fill: url(#BlackGradient); stroke: Black"}else a.milestoneBarStyle="fill: #f8c758; stroke: #3b87d9; stroke-width: 0.65px;";
if(typeof a.completedBarThumbStyle===d&&a.completedBarThumbClass==null)a.completedBarThumbStyle="fill: White; stroke: #a0a0a0; stroke-width: 1px; transform: translateY(3px);";if(typeof a.baselineBarStyle===d&&a.baselineBarClass==null)switch(a.theme){default:a.baselineBarStyle="fill: none; stroke: #3b87d9; stroke-width: 0.65px; stroke-dasharray: 2, 2";break;case "Aero":a.baselineBarStyle="fill: none; stroke: Blue; stroke-dasharray: 2, 2"}if(typeof a.dependencyPointerStyle===d&&a.dependencyPointerClass==
null)if(a.classic)switch(a.theme){default:a.dependencyPointerStyle="fill: #3b87d9; stroke: #3b87d9; stroke-width: 0.65px";break;case "Aero":a.dependencyPointerStyle="fill: Blue; stroke: Blue"}else a.dependencyPointerStyle="fill: White; stroke: #a0a0a0; stroke-width: 1px;";if(typeof a.dependencyLineStyle===d&&a.dependencyLineClass==null)if(a.classic)switch(a.theme){default:a.dependencyLineStyle="stroke: #3b87d9; stroke-width: 0.65px; fill: none; marker-end: url(#ArrowMarker)";break;case "Aero":a.dependencyLineStyle=
"stroke: Blue; stroke-width: 0.65px; fill: none; marker-end: url(#ArrowMarker)"}else a.dependencyLineStyle="stroke: #3b87d9; stroke-width: 0.65px; fill: none; marker-end: url(#ArrowMarker);";if(typeof a.dependencyLineZoneStyle===d&&a.dependencyLineZoneClass==null)a.dependencyLineZoneStyle="stroke: White; stroke-opacity: 0; stroke-width: 4px; fill: none";if(typeof a.temporaryDependencyLineStyle===d&&a.temporaryDependencyLineClass==null)switch(a.theme){default:a.temporaryDependencyLineStyle="stroke: #3b87d9; stroke-width: 0.65px; stroke-dasharray: 2, 2; fill: none; marker-end: url(#ArrowMarker)";
break;case "Aero":a.temporaryDependencyLineStyle="stroke: Blue; stroke-width: 0.65px; stroke-dasharray: 2, 2; fill: none; marker-end: url(#ArrowMarker)"}if(typeof a.assignmentsStyle===d&&a.assignmentsClass==null)a.assignmentsStyle="stroke-width: 0.25px; font-size: "+(a.classic?"x-small":"12px");if(!a.classic)a.assignmentsStyle=a.assignmentsStyle+"; transform: translateX(10px) translateY(-1px);";if(typeof a.standardTaskTemplate===d)a.standardTaskTemplate=Qb();if(typeof a.summaryTaskTemplate===d)a.summaryTaskTemplate=
Rb();if(typeof a.milestoneTaskTemplate===d)a.milestoneTaskTemplate=Sb();if(typeof a.horizontalChartLines!==d){var p=a.internalPreTaskTemplate;a.internalPreTaskTemplate=function(c){if(typeof c.scheduleChartItem!==d)return typeof p!==d?p(c):null;var b=c.ganttChartView.ownerDocument,e=b.createElementNS("http://www.w3.org/2000/svg","g");typeof p!==d&&e.appendChild(p(c));var f=b.createElementNS("http://www.w3.org/2000/svg","line");f.setAttribute("x1",0);f.setAttribute("y1",-0.5);f.setAttribute("x2",G(a.timelineFinish,
a));f.setAttribute("y2",-0.5);f.setAttribute("style","stroke: "+a.horizontalChartLines+"; stroke-width: 0.5px");e.appendChild(f);if(c.index==c.ganttChartView.items.length-1){f=b.createElementNS("http://www.w3.org/2000/svg","line");f.setAttribute("x1",0);f.setAttribute("y1",a.itemHeight);f.setAttribute("x2",G(a.timelineFinish,a));f.setAttribute("y2",a.itemHeight);f.setAttribute("style","stroke: "+a.horizontalChartLines+"; stroke-width: 0.5px");e.appendChild(f)}return e}}if(typeof a.isTaskToolTipVisible===
d)switch(a.target){default:a.isTaskToolTipVisible=true;break;case "Phone":a.isTaskToolTipVisible=false}if(typeof a.itemTemplate===d)a.itemTemplate=Tb(a);if(typeof a.areTaskAssignmentsVisible===d)a.areTaskAssignmentsVisible=true;if(typeof a.assignmentsTemplate===d)a.assignmentsTemplate=Ub();if(typeof a.isTaskCompletedEffortVisible===d)a.isTaskCompletedEffortVisible=true;if(typeof a.areTaskDependenciesVisible===d)a.areTaskDependenciesVisible=true;if(typeof a.dependencyLineTemplate===d)a.dependencyLineTemplate=
Vb();if(typeof a.isDependencyToolTipVisible===d)a.isDependencyToolTipVisible=a.isTaskToolTipVisible;if(typeof a.predecessorItemTemplate===d)a.predecessorItemTemplate=Wb(a);if(typeof a.isDraggingTaskStartEndsEnabled===d)a.isDraggingTaskStartEndsEnabled=true;if(typeof a.areTaskDependencyConstraintsEnabledWhileDragging===d)a.areTaskDependencyConstraintsEnabledWhileDragging=false;if(typeof a.isTaskStartReadOnly===d)a.isTaskStartReadOnly=false;if(typeof a.isTaskEffortReadOnly===d)a.isTaskEffortReadOnly=
false;if(typeof a.isTaskCompletionReadOnly===d)a.isTaskCompletionReadOnly=false;if(typeof a.areTaskPredecessorsReadOnly===d)a.areTaskPredecessorsReadOnly=false;if(typeof a.isBaselineVisible===d)a.isBaselineVisible=true;if(typeof a.areStandardTaskLabelsVisible===void 0)a.areStandardTaskLabelsVisible=false;if(typeof a.areSummaryTaskLabelsVisible===void 0)a.areSummaryTaskLabelsVisible=false;if(typeof a.areMilestoneTaskLabelsVisible===void 0)a.areMilestoneTaskLabelsVisible=false;if(typeof a.isSummaryTaskCompletedEffortVisible===
d)a.isSummaryTaskCompletedEffortVisible=false;var H=null;if(a.isIndividualItemNonworkingTimeHighlighted||a.areTaskInterruptionsHighlighted)for(c=0;c<a.scales.length;c++)if(a.scales[c].scaleType=="NonworkingTime"){H=a.scales[c];break}if(H!=null&&a.isIndividualItemNonworkingTimeHighlighted){var B=a.internalPreTaskTemplate;a.internalPreTaskTemplate=function(c){if(typeof c.scheduleChartItem!==d&&(c.content||!c.schedule))return typeof B!==d?B(c):null;var b;b=D(c);if(typeof b===d)b=null;else{var e=[],f,
g;f=Oa(a.timelineStart,typeof b.workingWeekFinish!==d?b.workingWeekFinish:a.workingWeekFinish);for(g=sb(f,typeof b.workingWeekStart!==d?b.workingWeekStart:a.workingWeekStart);f<a.timelineFinish;f=ta(f),g=ta(g)){e.push({start:f,finish:g});var n=ta(f),k;for(dd=g;dd<n;dd=k){b.workingDayStart>a.visibleDayStart&&e.push({start:dd,finish:new Date(dd.valueOf()+b.workingDayStart)});k=V(dd);b.workingDayFinish<a.visibleDayFinish&&e.push({start:new Date(dd.valueOf()+b.workingDayFinish),finish:k})}}if(typeof b.specialNonworkingDays!==
d)if(typeof b.specialNonworkingDays==="function"){f=Oa(a.timelineStart,a.workingWeekFinish);for(g=V(f);f<a.timelineFinish;f=V(f),g=V(g))b.specialNonworkingDays(f)&&e.push({start:f,finish:g})}else for(n=0;n<b.specialNonworkingDays.length;n++){f=b.specialNonworkingDays[n];g=V(f);e.push({start:f,finish:g})}b=e}if(b==null||b.length==0)return typeof B!==d?B(c):null;e=c.ganttChartView.ownerDocument;f=e.createElementNS("http://www.w3.org/2000/svg","g");for(g=0;g<b.length;g++){n=b[g];k=n.finish;n=G(n.start,
a);k=G(k,a)-n;if(!(k<=0)){var m=e.createElementNS("http://www.w3.org/2000/svg","rect");m.setAttribute("x",n-1);m.setAttribute("y",0);m.setAttribute("width",k);m.setAttribute("height",a.itemHeight);m.setAttribute("class",H.highlightingClass?H.highlightingClass:"dlh-ganttchartview-nonworkingscalehighlighting");m.setAttribute("style",H.highlightingStyle);f.appendChild(m)}}typeof B!==d&&f.appendChild(B(c));return f}}if(H!=null&&a.areTaskInterruptionsHighlighted){var o=a.internalExtraTaskTemplate;a.internalExtraTaskTemplate=
function(c){if(typeof c.scheduleChartItem!==d)return typeof o!==d?o(c):null;var b;if(c.hasChildren&&(typeof c.isSummaryEnabled===d||c.isSummaryEnabled)||c.isMilestone)b=null;else{var e=D(c);b=[];var f,g;f=Oa(Y(c.start),typeof e!==d&&typeof e.workingWeekFinish!==d?e.workingWeekFinish:a.workingWeekFinish);for(g=sb(f,typeof e!==d&&typeof e.workingWeekStart!==d?e.workingWeekStart:a.workingWeekStart);f<c.finish;f=ta(f),g=ta(g))b.push({start:f>=c.start?f:c.start,finish:g<=c.finish?g:c.finish});var n=typeof e!==
d&&typeof e.specialNonworkingDays!==d?e.specialNonworkingDays:a.specialNonworkingDays;if(typeof n!==d)if(typeof n==="function"){f=Oa(Y(c.start),typeof e!==d&&typeof e.workingWeekFinish!==d?e.workingWeekFinish:a.workingWeekFinish);for(g=V(f);f<Y(c.finish);f=V(f),g=V(g))e.specialNonworkingDays(f)&&b.push({start:f,finish:g})}else for(e=0;e<n.length;e++){f=n[e];g=V(f);f>=c.start&&g<=c.finish&&b.push({start:f,finish:g})}}if(b==null||b.length==0)return typeof o!==d?o(c):null;f=c.ganttChartView.ownerDocument;
g=f.createElementNS("http://www.w3.org/2000/svg","g");for(n=0;n<b.length;n++){var e=b[n],k=e.finish,e=G(e.start,a),k=G(k,a)-e;if(!(k<=0)){var m=f.createElementNS("http://www.w3.org/2000/svg","rect");m.setAttribute("x",e-1);m.setAttribute("y",a.barMargin);m.setAttribute("width",k);m.setAttribute("height",a.barHeight);m.setAttribute("class",H.highlightingClass?H.highlightingClass:"dlh-ganttchartview-nonworkingscalehighlighting");m.setAttribute("style",H.highlightingStyle);g.appendChild(m)}}typeof o!==
d&&g.appendChild(o(c));return g}}if(typeof a.enableHorizontalScrollingDuringDragging===d)a.enableHorizontalScrollingDuringDragging=true;if(typeof a.horizontalScrollingDragAreaWidth===d)a.horizontalScrollingDragAreaWidth=24;if(typeof a.horizontalScrollingDragAmount===d)a.horizontalScrollingDragAmount=20;if(typeof a.enableVerticalScrollingDuringDragging===d)a.enableVerticalScrollingDuringDragging=true;if(typeof a.verticalScrollingDragAreaHeight===d)a.verticalScrollingDragAreaHeight=24;if(typeof a.verticalScrollingDragAmount===
d)a.verticalScrollingDragAmount=20},K=function(a,c){for(var e=0;e<a.length;e++){var b=a[e];if(typeof b==="string"){b={content:b};a[e]=b}if(typeof b.indentation==="string")b.indentation=parseInt(b.indentation);if(typeof b.isExpanded==="string")b.isExpanded=b.isExpanded.toLowerCase()=="true";if(typeof b.start==="string"){try{b.start=new Date(b.start)}catch(f){b.start=new Date(parseInt(b.start))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.start=new Date(b.start.valueOf()+b.start.getTimezoneOffset()*
60000);b.preferredStart=b.start}if(typeof b.finish==="string"){try{b.finish=new Date(b.finish)}catch(g){b.finish=new Date(parseInt(b.finish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.finish=new Date(b.finish.valueOf()+b.finish.getTimezoneOffset()*60000)}if(typeof b.completedFinish==="string"){try{b.completedFinish=new Date(b.completedFinish)}catch(u){b.completedFinish=new Date(parseInt(b.completedFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.completedFinish=
new Date(b.completedFinish.valueOf()+b.completedFinish.getTimezoneOffset()*60000)}if(typeof b.isMilestone==="string")b.isMilestone=b.isMilestone.toLowerCase()=="true";if(typeof b.baselineStart==="string"){try{b.baselineStart=new Date(b.baselineStart)}catch(n){b.baselineStart=new Date(parseInt(b.baselineStart))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.baselineStart=new Date(b.baselineStart.valueOf()+b.baselineStart.getTimezoneOffset()*60000)}if(typeof b.baselineFinish==="string"){try{b.baselineFinish=
new Date(b.baselineFinish)}catch(k){b.baselineFinish=new Date(parseInt(b.baselineFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.baselineFinish=new Date(b.baselineFinish.valueOf()+b.baselineFinish.getTimezoneOffset()*60000)}if(typeof b.minStart==="string"){try{b.minStart=new Date(b.minStart)}catch(m){b.minStart=new Date(parseInt(b.minStart))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.minStart=new Date(b.minStart.valueOf()+b.minStart.getTimezoneOffset()*
60000)}if(typeof b.maxStart==="string"){try{b.maxStart=new Date(b.maxStart)}catch(p){b.maxStart=new Date(parseInt(b.maxStart))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.maxStart=new Date(b.maxStart.valueOf()+b.maxStart.getTimezoneOffset()*60000)}if(typeof b.minFinish==="string"){try{b.minFinish=new Date(b.minFinish)}catch(H){b.minFinish=new Date(parseInt(b.minFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.minFinish=new Date(b.minFinish.valueOf()+b.minFinish.getTimezoneOffset()*
60000)}if(typeof b.maxFinish==="string"){try{b.maxFinish=new Date(b.maxFinish)}catch(B){b.maxFinish=new Date(parseInt(b.maxFinish))}if(typeof c.isRelativeToTimezone===d||c.isRelativeToTimezone)b.maxFinish=new Date(b.maxFinish.valueOf()+b.maxFinish.getTimezoneOffset()*60000)}if(typeof b.predecessors!==d){if(typeof b.predecessors==="string")b.predecessors=b.predecessors.split(",");for(var o=0;o<b.predecessors.length;o++){var h=b.predecessors[o];if(typeof h==="string"){h={item:h};b.predecessors[o]=h}if(typeof h.item===
"string"){var r=parseInt(h.item)-1;h.item=r>=0&&r<a.length?a[r]:null}if(typeof h.lag==="string")h.lag=parseFloat(h.lag)}}if(typeof b.schedule!==d&&typeof b.schedule.specialNonworkingDays!==d&&typeof c.specialNonworkingDays!=="function")for(o=0;o<b.schedule.specialNonworkingDays.length;o++)b.schedule.specialNonworkingDays[o]=Y(new Date(b.schedule.specialNonworkingDays[o].valueOf()-b.schedule.specia