-
Notifications
You must be signed in to change notification settings - Fork 46
/
fusioncharts.gantt.js
2 lines (2 loc) · 152 KB
/
fusioncharts.gantt.js
1
2
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}((function(){"use strict";(self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[]).push([[5],{1594:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var a=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis",startEnd:{start:0,end:.3}}]},n={"initial.axis.GanttProcess":function(){return{"path.appearing":a,"rect.appearing":a,"text.appearing":a}},"initial.axis.GanttTime":function(){return{"path.appearing":a,"rect.appearing":a,"text.appearing":a}}};t["default"]=n},1592:(e,t,a)=>{var n=a(269);t.__esModule=!0,t.extractAttribToEnd=function C(e,t){var a;for(a in e._attrib=(0,c.extend2)({},t),e._attrib=(0,c.extend2)(e._attrib,x(e)),e)e.hasOwnProperty(a)&&e[a]&&"object"==typeof e[a]&&"_attrib"!==a&&C(e[a],e._attrib)},t["default"]=void 0;var o,r,i,l=n(a(288)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var a=h(t);if(a&&a.has(e))return a.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n["default"]=e,a&&a.set(e,n);return n}(a(1593)),c=a(274),d=a(282),g=n(a(1594));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(h=function(e){return e?a:t})(e)}var p="none",u="underline",f="visible",m="hidden",v="middle",b=function(e,t){var a;for(a=0;a<e.length;a++)if(e[a].id===t)return e[a];return!1},x=function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&"string"==typeof e[t]&&e[t]&&(a[t]=e[t]);return a};(0,d.addDep)({name:"ganttCommonAnimation",type:"animationRule",extension:g["default"]});var k=function(e){function t(){var t;return(t=e.call(this)||this).components={},t}(0,l["default"])(t,e);var a=t.prototype;return a.getName=function(){return"GanttCommon"},a._drawPlotLine=function(){var e,t,a,n,r=this,i=r.config,l=r.getFromEnv("chart"),s=l.getChildren("canvas")[0],c=l.config,d=r.getContainer("ganttPlotLineContainer"),g=s.canvasBottom||c.canvasBottom,h=s.canvasLeft||c.canvasLeft,p=s.canvasRight||c.canvasRight,u=s.canvasTop||c.canvasTop,f=r.getFromEnv("animationManager"),m=i.gridArr,v=r.getGraphicalElement("plotLine"),b=[];for(a=0,n=m.length;a<n;a+=1)m[a].x!==o?b.push("M",m[a].x,u,"L",m[a].x,g):b.push("M",h,m[a].y,"L",p,m[a].y);e={"stroke-dasharray":i.plotLineDashStyle,"stroke-width":i.plotLineThickness,stroke:i.plotLineColor,path:b},t=f.setAnimation({el:v&&v[0]||"path",attr:e,container:d,label:"path",component:r}),v&&v[0]||r.addGraphicalElement("plotLine",t,!0)},a._drawTrendLine=function(){var e,t,a,n,r,i,l,d,g,h,p,u,v,x,k,C,y,w,F,P,A=this,D=A.getComponentInfo("trend"),L=A.getFromEnv("toolTipController"),S=A.config,T=S.isOpposit,E=S.labelPadding,N=A.getFromEnv("chart"),M=N.getFromEnv("animationManager"),_=N.config,B=N.getChildren("canvas")[0],V=B.config.canvasTop+B.config.canvasHeight,O=B.config.canvasLeft||_.canvasLeft,H=B.config.canvasRight||_.canvasRight,I=B.config.canvasTop||_.canvasTop,R=S.drawTrendLabels,W=A.getGraphicalElement("trendlabels")||[],G=S.axisTrendContainerTop,z=S.axisTrendContainerBottom,j=S.axisDimention||{},U=A._isZoomed(),X=A.getVisibleConfig(),K=-1*_.xOffset,Y=A.getGraphicalElement("trendElems"),Z=A.getGraphicalElement("trendlabels"),J=S.trendLines,$=S.vTrendLines;for(!Y&&(Y=[]),!Z&&(Z=[]),e=0;e<Y.length;e++)(F=b(Y,e))&&F.remove();if($?p=T?(j.opposite||V)-(S.trendBottomPadding||0):(j.y||V)+(S.trendBottomPadding||0):(p=T?(j.opposite||O)+(E||0):(j.x||O)-(E||0),u=T?(j.x||H)+(E||0):(j.opposite||H)+(E||0)),U&&(k=Math.max(A.getPixel(X.minValue,{wrtVisible:!0}),A.getPixel(X.maxValue,{wrtVisible:!0})),C=Math.min(A.getPixel(X.minValue,{wrtVisible:!0}),A.getPixel(X.maxValue,{wrtVisible:!0}))),J||$)for(e=0;e<D.length;e++)t=D[e].marker,a=D[e].label,n={fill:t.fill||"",stroke:t.stroke||"","stroke-width":t.strokeWidth,"stroke-dasharray":t.strokeDashArray,"shape-rendering":t.shapeRendering},r={fill:a.fill||"",text:a.text,"text-anchor":a.textAnchor,"text-bound":a.textBound},l=t.isZone,g=t.startValue,h=t.endValue,$?(i=A.getPixel(S.hasBreakPoints?A._getRelativeBreakValue(g):g,{wrtVisible:!0}),d=h?A.getPixel(S.hasBreakPoints?A._getRelativeBreakValue(h):h,{wrtVisible:!0}):0,i+=K,d+=K,r.y=p,r["vertical-align"]="top",h!==o&&""!==h&&h!==g&&l?(n.path=["M",i,I,"L",i,V,"L",d,V,"L",d,I,"Z"],r.x=i+(d-i)/2):(v=h?(0,s.getCrispPath)(["M",i,I,"L",d,V],t.strokeWidth):(0,s.getCrispPath)(["M",i,I,"L",i,V],t.strokeWidth),n.path=v.path,r.x=h?d:i),U&&(!R||r.x>k||r.x<C)?(r.text=c.BLANKSTRING,r.visibility=m):r.visibility=f):J&&(i=A.getPixel(g,{wrtVisible:!0}),d=h?A.getPixel(h,{wrtVisible:!0}):0,w=a.valueOnRight,h!==o&&""!==h&&h!==g&&l?(n.path=["M",O,i,"L",H,i,"L",H,d,"L",O,d,"Z"],r.x=w?u:p,r.y=i+(d-i)/2):(v=h?(0,s.getCrispPath)(["M",O,i,"L",H,d,"Z"],t.strokeWidth):(0,s.getCrispPath)(["M",O,i,"L",H,i,"Z"],t.strokeWidth),n.path=v.path,r.x=w?u:p,r.y=h&&w?d:i),U&&(!R||r.y>k||r.y<C)?(r.text=c.BLANKSTRING,r.visibility=m):r.visibility=f),y=D[e].showOnTop,x=N.config.is3D||1!==y&&1!==S.showTrendlinesOnTop?z:G,F=b(Y,e),F=M.setAnimation({el:F||"path",attr:n,container:x,label:"path",component:A}).show(),(P=Z[e])&&M.setAnimation({el:P,attr:r,label:"text",component:A}),!b(Y,e)&&A.addGraphicalElement("trendElems",F,!0),F.id=e,""!==a.toolText?L.enableToolTip(F,a.toolText):L.disableToolTip(F);else for(e=0;e<Y.length;e++)(F=b(Y,e))&&(F.remove(),W[e]&&W[e].remove())},a._drawProcessAndDataTableStyleParser=function(e){var t,a,n,r,i,l,s,d,g,h,f,m,b,x,k,C,y,w,F,P,A,D=this,L=D.config,S=D.getFromEnv("chart"),T=D.getFromEnv("smartLabel"),E=D.getFromEnv("color-manager"),N=L.labels.style,M=e.elem||{},_=e.dimension,B=M._attrib||{},V=_.left,O=_.right,H=_.top,I=_.bottom;switch(e.type){case"category":case"datatable":case"process":t=(0,c.pluck)(B.font,N.fontFamily),a=(0,c.pluck)(B.fontsize,this.computeFontSize(N.fontSizeWithUnit).toString()).replace(/px/i,"")+"px",r=(0,c.pluck)(Number(B.isitalic)?"italic":o,N.fontStyle),i=(0,c.convertColor)((0,c.pluck)(B.bgcolor?(0,c.getFirstColor)(B.bgcolor):o,E.getColor("categoryBgColor")),(0,c.pluckNumber)(B.bgalpha,100)),b=(0,c.pluck)(B.fontcolor?(0,c.getFirstColor)(B.fontcolor):o,N.color),x=(0,c.pluckNumber)(B.isunderline,0)&&u||p,f=(0,c.pluck)(B.valign,"center").toLowerCase(),m=(0,c.pluck)(B.align,"middle").toLowerCase(),d=M.drawLabel||"",n=(0,c.pluck)(Number(B.isbold)?"bold":o,N.fontWeight),P=M.link;break;case"header":t=(0,c.pluck)(B.headerfont,N.fontFamily),a=(0,c.pluck)(B.headerfontsize,this.computeFontSize(N.fontSizeWithUnit).toString()).replace(/px/i,"")+"px",n=(0,c.pluck)(1===Number(B.headerisbold)||B.headerisbold===o?"bold":o,N.fontWeight),b=(0,c.pluck)(B.headerfontcolor?(0,c.getFirstColor)(B.headerfontcolor):o,N.color),x=(0,c.pluckNumber)(B.headerisunderline,0)&&u||p,r=(0,c.pluck)(B.headerisitalic?"italic":o,N.fontStyle),i=(0,c.convertColor)((0,c.pluck)(B.headerbgcolor?(0,c.getFirstColor)(B.headerbgcolor):o,E.getColor("categoryBgColor")),(0,c.pluckNumber)(B.headerbgalpha,100)),f=(0,c.pluck)(B.headervalign,"center").toLowerCase(),m=(0,c.pluck)(B.headeralign,"middle").toLowerCase(),d=M.drawLabel||"",P=M.headerlink}switch(e.type){case"category":L.gridLinePath+="M"+V+","+H+"L"+V+","+I+"L"+O+","+I,n=(0,c.pluck)(1===Number(B.isbold)||B.isbold===o?"bold":o,N.fontWeight);break;case"datatable":case"process":L.gridLinePath+="M"+V+","+I+"L"+O+","+I+"L"+O+","+H;break;case"header":L.gridLineHeaderPath+="M"+V+","+I+"L"+O+","+I+"L"+O+","+H}return k=(0,c.pluck)(M._attrib.hoverbandcolor,L.hoverColor),C=(0,c.pluckNumber)(M._attrib.hoverbandalpha,L.hoverAlpha),"left"===m?(l=V+2,m="start"):"right"===m?(l=V+(O-V)-2,m="end"):(m=v,l=V+(O-V)/2),"top"===f?s=H-2:"bottom"===f?s=H+(I-H)-2:(f=v,s=H+(I-H)/2),N={fontFamily:t,fontSize:a,fontWeight:n,fontStyle:r,textDecoration:x},A=(0,c.setLineHeight)(N),A=I-H>(A=Number(A.replace(/px/i,"")))?I-H:A,T.useEllipsesOnOverflow(S.config.useEllipsesWhenOverflow),T.setStyle(N),g={textAttr:{x:l,y:s,text:(h=T.getSmartText(d,O-V,A)).text,fill:b,"text-anchor":m,"vertical-align":f,cursor:P?"pointer":S.getFromEnv("paper").canvas.style.cursor},css:N,rectAttr:{x:V,y:H,width:V<O?O-V:0,height:H<I?I-H:0,fill:i,"stroke-width":0,cursor:P?"pointer":S.getFromEnv("paper").canvas.style.cursor},eventArgs:{isHeader:"header"===e.type,label:d,vAlign:f,align:m,link:P,id:M.id},tooltext:h.oriText},"datatable"===e.type||"process"===e.type||"category"===e.type?(F=(0,c.convertColor)(k,C),y=(0,c.pluckNumber)(M._attrib.showhoverband,L.useHover),w=(0,c.pluckNumber)(M._attrib.showganttpanehoverband,L.usePlotHover,y),g.dataArgs={rollOverColor:F,useHover:y,usePlotHover:w,dimension:_,hoverEle:M,type:e.type,pos:e.pos,axis:D,groupId:e.elemIndex}):g.dataArgs={rollOverColor:o,useHover:0,usePlotHover:0,dimension:_,hoverEle:M,type:e.type,pos:e.pos,axis:D,groupId:e.elemIndex},g},a._drawProcessAndDataTableElement=function(e){var t,a,n,o,l,s=this,c=s.config,d=s.getFromEnv("chart"),g=s.components.categoryElement||[],h=c.hoverElemsArr||(c.hoverElemsArr=[]),p=s.getFromEnv("animationManager"),u=e.elemIndex,f=c.labelHoverEventName,m=s.getFromEnv("toolTipController"),v=d.config.showtooltip,b=function(e){d.plotEventHandler(this,e,f.click)},x=function(e){i=clearTimeout(i),r&&!r.removed||(r=null),r&&s._gridOutHandler.call(r),s._gridHoverHandler.call(this),d.plotEventHandler(this,e,f.rollOver)},k=function(e){r=this,i=clearTimeout(i),i=setTimeout((function(){return s._gridOutHandler.call(r)}),500),d.plotEventHandler(r,e,f.rollOut)};"header"===e.type?(a=s.getContainer("headerBackContainer"),n=s.getContainer("headerTextContainer")):(a=s.getContainer("labelBackContainer"),n=s.getContainer("labelTextContainer")),t=s._drawProcessAndDataTableStyleParser(e),o=p.setAnimation({el:g[u]&&g[u].graphics.rect||"rect",attr:t.rectAttr,container:a,label:"rect",component:s}),l=p.setAnimation({el:g[u]&&g[u].graphics.label||"text",attr:t.textAttr,container:n,label:"text",component:s}),g[u]?(l.removeCSS(),a.appendChild(o),n.appendChild(l)):(s.addGraphicalElement("rectElement",o,!0),s.addGraphicalElement("textElement",l,!0),g[u]={},g[u].graphics={},g[u].config={},g[u].graphics.label=l,g[u].graphics.rect=o,o.hover(x,k).on("fc-click",b),l.hover(x,k).on("fc-click",b)),l.css(t.css),"header"!==e.type&&(h[e.pos]||(h[e.pos]=[]),h[e.pos].push({bgElem:o,bgColor:t.rectAttr.fill})),o.data("dataObj",e.elem).data("eventArgs",t.eventArgs).data("data",t.dataArgs),l.data("dataObj",e.elem).data("eventArgs",t.eventArgs).data("data",t.dataArgs),v?m.enableToolTip(l,t.tooltext):m.disableToolTip(l),s.components.categoryElement=g},a._drawGridLine=function(){var e,t,a,n,o=this,r=o.config,i=o.getFromEnv("animationManager"),l=o.getGraphicalElement("gridLine")||[],s=0,c=0,d=2;for(e={"stroke-dasharray":r.lineDashStyle,"stroke-width":r.lineThickness,stroke:r.lineColor};c<d;c+=1){if(0===c)a=r.gridLinePath,n=o.getContainer("labelLineContainer");else if(a=r.gridLineHeaderPath,n=o.getContainer("headerLineContainer"),!a)continue;e.path=a,t=i.setAnimation({el:l&&l[s]||"path",attr:e,container:n,label:"path",component:o}),(!l||!l[s])&&o.addGraphicalElement("gridLine",t,!0),s+=1}for(c=s,d=o.getGraphicalElement("gridLine").length;c<d;c+=1)o.getGraphicalElement("gridLine")[c].attr({path:"M0,0"})},a._gridHoverHandler=function(){var e,t,a,n=this.data("data"),o=n.type,r=n.dimension,i=n.axis,l=i.getFromEnv("chart").config,s=i.getFromEnv("animationManager"),c=i.config.hoverElemsArr||[],d=i.getContainer("ganttPlotHoverBandContainer"),g=i.getGraphicalElement("plotHoverElement"),h=g?1:0;if(e="category"===o?{x:r.left,y:l.canvasTop,width:r.left<r.right?r.right-r.left:0,height:l.height,fill:n.rollOverColor,"stroke-width":0}:{y:r.top,x:l.canvasLeft,height:r.top<r.bottom?r.bottom-r.top:0,width:l.width,fill:n.rollOverColor,"stroke-width":0},n.usePlotHover&&(g=s.setAnimation({el:g||"rect",attr:e,component:i,label:"rect",container:d}),h?g.show():i.addGraphicalElement("plotHoverElement",g)),n.useHover&&c[n.pos])for(t=0,a=c[n.pos].length;t<a;t+=1)s.setAnimation({el:c[n.pos][t].bgElem||"rect",attr:{fill:n.rollOverColor},label:"rect"})},a._gridOutHandler=function(){var e,t,a,n=this.data("data"),o=n.axis,r=o.config.hoverElemsArr||[],i=o.getFromEnv("animationManager"),l=o.getGraphicalElement("plotHoverElement");if(n.usePlotHover&&l&&l.hide(),n.useHover&&r[n.pos])for(e=0,t=r[n.pos].length;e<t;e+=1)a=r[n.pos][e],i.setAnimation({el:a.bgElem||"rect",attr:{fill:a.bgColor},label:"rect"})},a._disposeExtraProcessAndDataTableElement=function(e){var t,a,n=this.components.categoryElement||[];for(t=e,a=n.length;t<a;t+=1)n[t].graphics.label.attr({text:""}),n[t].graphics.rect.attr({x:0,y:0,width:0,heigth:0})},t}(s["default"]);t["default"]=k},1591:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o,r=n(a(288)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var a=s(t);if(a&&a.has(e))return a.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n["default"]=e,a&&a.set(e,n);return n}(a(1592)),l=a(274);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(s=function(e){return e?a:t})(e)}var c="none",d="px",g="t0,0",h=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"GanttProcess"},a.configure=function(t){var a=this.config,n=this.getFromEnv("color-manager"),o=this.getFromEnv("dataSource").chart;e.prototype.configure.call(this,t),a.lineColor=(0,l.convertColor)((0,l.pluck)(o.gridbordercolor,n.getColor("gridColor")),(0,l.pluckNumber)(o.gridborderalpha,100)),a.lineThickness=(0,l.pluckNumber)(o.gridborderthickness,1),a.lineDashStyle=(0,l.pluckNumber)(o.gridborderdashed,0)?(0,l.getDashStyle)((0,l.pluckNumber)(o.gridborderdashlen,1),o.gridborderdashgap,a.lineThickness):c,a.plotLineColor=(0,l.convertColor)((0,l.pluck)(o.ganttlinecolor,n.getColor("gridColor")),(0,l.pluckNumber)(o.ganttlinealpha,100)),a.plotLineThickness=(0,l.pluckNumber)(o.ganttlinethickness,1),a.plotLineDashStyle=(0,l.pluckNumber)(o.ganttlinedashed,0)?(0,l.getDashStyle)((0,l.pluckNumber)(o.ganttlinedashlen,1),o.ganttlinedashgap,a.lineThickness):c,a.gridResizeBarColor=(0,l.convertColor)((0,l.pluck)(o.gridresizebarcolor,n.getColor("gridResizeBarColor")),(0,l.pluckNumber)(o.gridresizebaralpha,100)),a.gridResizeBarThickness=(0,l.pluckNumber)(o.gridresizebarthickness,1),a.forceRowHeight=(0,l.pluckNumber)(o.forcerowheight,0),a.rowHeight=(0,l.pluckNumber)(o.rowheight,0),a.hoverColor=(0,l.pluck)(o.processhoverbandcolor,o.hoverbandcolor,n.getColor("gridColor")),a.hoverAlpha=(0,l.pluckNumber)(o.processhoverbandalpha,o.hoverbandalpha,30),a.useHover=(0,l.pluckNumber)(o.showprocesshoverband,o.showhoverband,o.showhovereffect,1),a.usePlotHover=(0,l.pluckNumber)(o.showganttpanehorizontalhoverband),a.showFullDataTable=(0,l.pluckNumber)(o.showfulldatatable,1),a.forceGanttWidthPercent=(0,l.pluckNumber)(o.forceganttwidthpercent,0),a.useVerticalScrolling=(0,l.pluckNumber)(o.useverticalscrolling,1),a.gridLineHeaderPath="",a.gridLinePath=""},a.setProcess=function(e){var t,a,n,o,r,s=this.config,c=s.startPad||0,d=s.endPad||0;if(s.processes={},e){for(s.hasProcess=1,a=s.processes.process=(0,l.extend2)({},e),(0,i.extractAttribToEnd)(a,{}),t=a.process.length,r=s.processes.processMap={},s.processes.processHeightMap={},n=0;n<t;n+=1)(o=a.process[n]).id&&(r[o.id.toLowerCase()]={catObj:o,index:n});this.setAxisRange({min:Number((0,l.toPrecision)(-c,10)),max:Number((0,l.toPrecision)(t-1+d,10)),tickInterval:Number((0,l.toPrecision)(1,10))})}else s.hasProcess=0},a.getProcessPositionByIndex=function(e){var t=this.config.processes.processHeightMap;return!!t[e]&&t[e]},a.getProcessPositionById=function(e){var t=this.config,a=t.processes&&t.processes.processMap[e],n=t.processes.processHeightMap;return!!a&&n[a.index]},a.setDataTable=function(e){var t=e,a=this.config;a.dataTables={},a.dataTables.dataTable={},t?(a.hasDataTables=1,(0,l.extend2)(a.dataTables.dataTable,t),t=a.dataTables.dataTable,(0,i.extractAttribToEnd)(t,{})):a.hasDataTables=0},a.setProcessHeight=function(){var e,t,a,n=this.config,o=this.getFromEnv("chart").config.canvasHeight,r=n.processes.process.process,i=n.processes.processHeightMap,s=n.processMaxHeight,c=0,d=n.forceRowHeight,g=n.rowHeight;for((s*r.length<o||0===n.useVerticalScrolling)&&(s=o/r.length),0===d?g&&g>s&&(s=g):s=g||s,a=0,t=r.length;a<t;a++)e=(0,l.pluckNumber)(r[a].height,s),i[a]={top:c,bottom:c+e,height:e},c+=e;return c},a.adjustWidth=function(){var e,t,a,n,o,r,i,s,c=this.config,d=c.totalWidth,g=d,h=0,p=!1,u=20;if(e=c.processVlineArr=[],g-=u*(c.hasDataTables&&c.dataTables&&c.dataTables.dataTable&&c.dataTables.dataTable.datacolumn?c.dataTables.dataTable.datacolumn.length+1:1),a=function(e){var t;return g+=u,t=e.match(/%/g)?(0,l.pluckNumber)(d*Number(e.replace(/%/g,"")/100),0):(0,l.pluckNumber)(e,0),g<u?t=u:t>g&&(t=g),g-=t,t},c.hasProcess&&(r=c.processes.process.process,"right"===c.processes.process.positioningrid&&(p=!0),n=h,h+=a((t=r._attrib).width||""+(t.rightPos-t.leftPos)),t.leftPos=n,t.rightPos=h,p?h=0:e.push({type:"process",ind:0,xPos:t.rightPos,left:t,leftLimit:t.leftPos+u})),c.hasDataTables)for(i in o=c.dataTables.dataTable.datacolumn)o.hasOwnProperty(i)&&"_attrib"!==i&&(n=h,h+=a((t=o[i]._attrib).width||""+(t.rightPos-t.leftPos)),t.leftPos=n,t.rightPos=h,(s=e[e.length-1])&&(s.right=t,s.rightLimit=t.rightPos-u),e.push({type:"dataTable",ind:i,xPos:t.rightPos,left:t,leftLimit:t.leftPos+u}));c.hasProcess&&(p?((t=r._attrib).rightPos=h+(t.rightPos-t.leftPos),t.leftPos=h,h+=t.rightPos-t.leftPos,(s=e[e.length-1])&&(s.right=t,s.rightLimit=t.rightPos-u)):e.pop()),c.totalWidth=h},a.placeAxis=function(e){var t,a,n,r,i,s,c,g,h,p,u,f,m,v,b,x,k=this,C=k.config,y=k.getFromEnv("chart"),w=y.getFromEnv("smartLabel"),F=C.labels.style,P=C.name.style,A=C.trend.trendStyle,D=0,L=0,S={left:0,right:0},T=0,E=!1,N=0,M=0,_=0;if(P.fontSize=this.computeFontSize(P.fontSizeWithUnit),P.lineHeight=(0,l.setLineHeight)(P),A.fontSize=this.computeFontSize(A.fontSizeWithUnit),A.lineHeight=(0,l.setLineHeight)(A),F.fontSize=this.computeFontSize(F.fontSizeWithUnit),F.lineHeight=(0,l.setLineHeight)(F),w.useEllipsesOnOverflow(y.config.useEllipsesWhenOverflow),w.setStyle({fontSize:F.fontSize,fontFamily:F.fontFamily,lineHeight:F.lineHeight,fontWeight:F.fontWeight}),(C.forceGanttWidthPercent||0===C.showFullDataTable)&&(_=e/((C.hasDataTables&&C.dataTables&&C.dataTables.dataTable&&C.dataTables.dataTable.datacolumn?C.dataTables.dataTable.datacolumn.length:0)+1)),C.hasProcess){for(f=C.processes.process.process,"right"===(c=C.processes.process).positioningrid&&(E=!0),c.headertext&&(c.drawLabel=(0,l.parseUnsafeString)(c.headertext),s=c._attrib,(g={fontFamily:(0,l.pluck)(s.headerfontfamily,F.fontFamily),fontSize:(0,l.pluck)(s.headerfontsize,this.computeFontSize(F.fontSizeWithUnit).toString()).replace(/px/i,"")+d,fontWeight:(0,l.pluck)(1===Number(s.headerisbold)||"undefined"==typeof s.headerisbold?"bold":o,F.fontWeight),fontStyle:(0,l.pluck)(s.headerisitalic?"italic":o,F.fontStyle)}).lineHeight=(0,l.setLineHeight)(g),w.setStyle(g),(n=w.getOriSize(c.drawLabel)).width>L&&(D=n,L=n.width)),t=0,r=f.length;t<r;t++)s=(i=f[t])._attrib,i.drawLabel=(0,l.parseUnsafeString)(i.label||i.name),(g={fontFamily:(0,l.pluck)(s.fontfamily,F.fontFamily),fontSize:(0,l.pluck)(s.fontsize,this.computeFontSize(F.fontSizeWithUnit).toString()).replace(/px/i,"")+d,fontWeight:(0,l.pluck)(s.isbold?"bold":o,F.fontWeight),fontStyle:(0,l.pluck)(s.isitalic?"italic":o,F.fontStyle)}).lineHeight=(0,l.setLineHeight)(g),w.setStyle(g),(n=w.getOriSize(i.drawLabel)).width>L&&(D=n,L=n.width),n.height>M&&(M=n.height);C.processMaxHeight=M+8,f._attrib.leftPos=T,E?N=_||D.width+4:T+=_||D.width+4,f._attrib.rightPos=T}if(C.hasDataTables)for(t in h=C.dataTables.dataTable.datacolumn)if(h.hasOwnProperty(t)&&"_attrib"!==t){for(m in L=0,(p=h[t]).headertext&&(s=p._attrib,p.drawLabel=(0,l.parseUnsafeString)(p.headertext),(b={fontFamily:(0,l.pluck)(s.headerfontfamily,F.fontFamily),fontSize:(0,l.pluck)(s.headerfontsize,this.computeFontSize(F.fontSizeWithUnit).toString()).replace(/px/i,"")+d,fontWeight:(0,l.pluck)(1===Number(s.headerisbold)||"undefined"==typeof s.headerisbold?"bold":o,F.fontWeight),fontStyle:(0,l.pluck)(s.headerisitalic?"italic":o,F.fontStyle)}).lineHeight=(0,l.setLineHeight)(b),w.setStyle(b),(n=w.getOriSize(p.drawLabel)).width>L&&(x=n,L=n.width)),u=p.text)u.hasOwnProperty(m)&&"_attrib"!==m&&((a=u[m]).drawLabel=(0,l.parseUnsafeString)(a.label||a.name),v=a._attrib,(b={fontFamily:(0,l.pluck)(v.fontfamily,F.fontFamily),fontSize:(0,l.pluck)(v.fontsize,this.computeFontSize(F.fontSizeWithUnit).toString()).replace(/px/i,"")+d,fontWeight:(0,l.pluck)(v.isbold?"bold":o,F.fontWeight),fontStyle:(0,l.pluck)(v.isitalic?"italic":o,F.fontStyle)}).lineHeight=(0,l.setLineHeight)(b),w.setStyle(b),(n=w.getOriSize(a.drawLabel)).width>L&&(x=n,L=n.width));h[t]._attrib.leftPos=T,T+=_||x.width+4,h[t]._attrib.rightPos=T}return C.hasProcess&&E&&(f._attrib.leftPos+=T,f._attrib.rightPos+=T+N,T+=N),C.totalWidth=T,k.adjustWidth(),T=C.totalWidth>e?e:C.totalWidth,C.totalVisiblelWidth=T,S.left+=T,S},a.getProcessLen=function(){return this.config.processes.process.process.length},a._drawProcessAndDataTable=function(){var e,t,a,n,r,i,l,s,c,d,h,p,u=this,f=u.config,m=u.getFromEnv("chart"),v=(f.axisDimention||{}).x,b=f.totalWidth||0,x=f.gridArr||(f.gridArr=[]),k=m.getChildren("canvas")[0],C=m.config,y=m.getFromEnv("animationManager"),w=k.canvasTop||C.canvasTop,F=k.canvasLeft||C.canvasLeft,P=k.canvasHeight||C.canvasHeight,A=k.canvasWidth||C.canvasWidth,D=m.getChildContainer("axisBottomGroup"),L=f.totalVisiblelWidth,S=0,T=0,E=u.getContainer("ganttPlotHoverBandContainer"),N=u.getContainer("ganttPlotLineContainer"),M=u.getContainer("headerContainer"),_=u.getContainer("headerBackContainer"),B=u.getContainer("headerLineContainer"),V=u.getContainer("headerTextContainer"),O=u.getContainer("labelContainer"),H=u.getContainer("labelBackContainer"),I=u.getContainer("labelLineContainer"),R=u.getContainer("labelTextContainer"),W=u.getContainer("hotContainer");if(p=u.getContainer("ganttPlotHoverBandContainerParent")||u.addContainer("ganttPlotHoverBandContainerParent",y.setAnimation({el:"group",attr:{name:"gantt-plot-band-container-parent"},container:D,component:u})),u.addContainer("ganttPlotHoverBandContainer",y.setAnimation({el:E||"group",attr:{name:"gantt-plot-band-container","clip-rect":F+","+w+","+A+","+P},container:p,component:u})),u.addContainer("ganttPlotLineContainer",y.setAnimation({el:N||"group",attr:{name:"gantt-plot-line-container","clip-rect":F+","+w+","+A+","+P},container:D,component:u})),h={name:"gantt-header-container","clip-rect":F-f.totalVisiblelWidth+","+(w-C.categorySpaceUsed)+","+f.totalVisiblelWidth+","+C.categorySpaceUsed},f.isDraged?delete h.transform:h.transform=g,M=u.addContainer("headerContainer",y.setAnimation({el:M||"group",attr:h,container:D,component:u})),_||(_=u.addContainer("headerBackContainer",y.setAnimation({el:"group",attr:{name:"gantt-header-back-container"},container:M,component:u}))),B||(B=u.addContainer("headerLineContainer",y.setAnimation({el:"group",attr:{name:"gantt-header-line-container"},container:M,component:u}))),V||(V=u.addContainer("headerTextContainer",y.setAnimation({el:"group",attr:{name:"gantt-header-text-container"},container:M,component:u}))),d={name:"gantt-label-container","clip-rect":F-f.totalVisiblelWidth+","+w+","+f.totalVisiblelWidth+","+P},f.isDraged?delete d.transform:d.transform=g,O=u.addContainer("labelContainer",y.setAnimation({el:O||"group",attr:d,component:u,container:D})),H||(H=u.addContainer("labelBackContainer",y.setAnimation({el:"group",attr:{name:"gantt-label-back-container"},container:O,component:u}))),I||(I=u.addContainer("labelLineContainer",y.setAnimation({el:"group",attr:{name:"gantt-label-line-container"},container:O,component:u}))),R||(R=u.addContainer("labelTextContainer",y.setAnimation({el:"group",attr:{name:"gantt-label-text-container"},container:O,component:u}))),u.addContainer("hotContainer",y.setAnimation({el:W||"group",attr:{name:"gantt-hot-container","clip-rect":F-f.totalVisiblelWidth+","+(w-C.categorySpaceUsed)+","+f.totalVisiblelWidth+","+(P+C.categorySpaceUsed)},component:u,container:m.getContainer("parentgroup")})),f.gridLinePath="",f.gridLineHeaderPath="",f.hoverElemsArr=[],f.labelHoverEventName={click:"ProcessClick",rollOver:"ProcessRollOver",rollOut:"ProcessRollOut"},f.hasProcess)for(t=f.processes.process.process,l={elem:f.processes.process,elemIndex:S,dimension:{left:v-b+t._attrib.leftPos,right:v-b+t._attrib.rightPos,top:w-C.categorySpaceUsed,bottom:w},type:"header"},u._drawProcessAndDataTableElement(l),S+=1,x=f.gridArr=[],e=0,a=t.length;e<a;e++)s=u.getProcessPositionByIndex(e),l={elem:t[e],elemIndex:S,pos:e,dimension:{left:v-b+t._attrib.leftPos,right:v-b+t._attrib.rightPos,top:w+s.top,bottom:w+s.bottom},type:"process"},u._drawProcessAndDataTableElement(l),S+=1,x.push({y:l.dimension.bottom});if(f.hasDataTables){for(e in n=f.dataTables.dataTable.datacolumn)if(n.hasOwnProperty(e)&&"_attrib"!==e)for(i in T=0,l={elem:n[e],elemIndex:S,pos:e,dimension:{left:v-b+n[e]._attrib.leftPos,right:v-b+n[e]._attrib.rightPos,top:w-C.categorySpaceUsed,bottom:w},type:"header"},u._drawProcessAndDataTableElement(l),S+=1,r=n[e].text){if(T>=a)break;r[i]._attrib&&t[i]&&t[i]._attrib&&(r[i]._attrib.hoverbandcolor=t[i]._attrib.hoverbandcolor,r[i]._attrib.hoverbandalpha=t[i]._attrib.hoverbandalpha,r[i]._attrib.showhoverband=t[i]._attrib.showhoverband),r.hasOwnProperty(i)&&"_attrib"!==i&&(s=u.getProcessPositionByIndex(i),l={elem:r[i],elemIndex:S,pos:i,dimension:{left:v-b+n[e]._attrib.leftPos,right:v-b+n[e]._attrib.rightPos,top:w+s.top,bottom:w+s.bottom},type:"datatable"},T++,u._drawProcessAndDataTableElement(l),S+=1)}f.drawFromProcessVlineDrag?f.drawFromProcessVlineDrag=!1:b>L?(c=b-L,u.resetTransletAxis(),u.translateAxis(c,o)):u.resetTransletAxis()}u._drawGridLine(),u._disposeExtraProcessAndDataTableElement(S)},a._drawVerticalLineAndTracker=function(){var e,t,a,n,o,r,i,s,c,d=this,g=d.config,h=d.getFromEnv("chart"),p=g.canvas,u=h.config,f=(g.axisDimention||{}).x,m=g.totalWidth||0,v=p.canvasTop||u.canvasTop,b=d.components.processVline||(d.components.processVline=[]),x=g.processVlineArr,k=d.getContainer("hotContainer"),C=d.getFromEnv("animationManager"),y=0,w=function(){var e=this.data("drag-options");e.origX=e.lastX||(e.lastX=0),e.vHoverLine.show(),h.trackerClicked=!0,e.draged=!1},F=function(e){var t,a=this.data("drag-options"),n=a.vLineSetting,o="string"==typeof e.data?+e.data.substr(0,e.data.indexOf(",")):e.data[0]||0,r=n.xPos+o,i=n.leftLimit,l=n.rightLimit;r<i&&(o=i-n.xPos),r>l&&(o=l-n.xPos),t={transform:"t"+(a.origX+o)+",0"},this.attr(t),a.vHoverLine.attr(t),a.draged=!0,a.lastX=o},P=function(){var e,t=this.data("drag-options"),a=t.vLineSetting,n=t.vLineIndex;h.trackerClicked=!1,t.vHoverLine.hide(),t.draged&&(g.isDraged=!0,a.left.rightPos+=t.lastX||0,a.right.leftPos+=t.lastX||0,a.xPos+=t.lastX||0,x[n-1]&&(x[n-1].rightLimit+=t.lastX||0),x[n+1]&&(x[n+1].leftLimit+=t.lastX||0),g.drawFromProcessVlineDrag=!0,d._drawProcessAndDataTable(),d._drawVerticalLineAndTracker(),e={transform:"t0,0"},this.attr(e),t.vHoverLine.attr(e))};for(r={stroke:g.gridResizeBarColor,"stroke-width":g.gridResizeBarThickness},i={stroke:l.TRACKER_FILL,"stroke-width":30},o=v-u.categorySpaceUsed,e=0,t=x.length;e<t;e+=1)a=["M",s=f-m+("process"===x[e].type?g.processes.process.process:g.dataTables.dataTable.datacolumn[x[e].ind])._attrib.rightPos,o,"L",s,v+g.processTotalHeight],b[y]?((c=b[y].graphics.vHoverLine).attr({path:a}).attr(r),(n=b[y].graphics.hotElement).attr({path:a}).attr(i)):(r.path=a,c=C.setAnimation({el:"path",container:k,component:d,attr:r}),i.path=a,n=C.setAnimation({el:"path",container:k,component:d,attr:i}),b[y]={},b[y].graphics={},b[y].config={},b[y].graphics.vHoverLine=c,b[y].graphics.hotElement=n),n.show(),c.hide(),n.css("cursor",l.hasSVG?"ew-resize":"e-resize").drag(F,w,P).data("drag-options",{vHoverLine:b[y].graphics.vHoverLine,vLineSetting:x[e],vLineIndex:e}),y+=1;for(e=y,t=b.length;e<t;e+=1)b[e].graphics.vHoverLine.attr({path:["M",0,0]}),b[e].graphics.hotElement.attr({path:["M",0,0]})},a._drawComponents=function(){var e=this,t=e.config;t.isDraged=!1,e._drawProcessAndDataTable(),t.drawPlotlines&&e._drawPlotLine(),e._drawVerticalLineAndTracker(),e._drawGridLine()},t}(i["default"]),p=h;t["default"]=p},1595:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o=n(a(288)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var a=l(t);if(a&&a.has(e))return a.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n["default"]=e,a&&a.set(e,n);return n}(a(1592)),i=a(274);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(l=function(e){return e?a:t})(e)}var s,c="t0,0",d="none",g=i.preDefStr.POSITION_START,h=i.preDefStr.POSITION_TOP,p=i.preDefStr.POSITION_END;var u=function(e){function t(){return e.apply(this,arguments)||this}(0,o["default"])(t,e);var a=t.prototype;return a.getName=function(){return"GanttTimeCategory"},a.configure=function(t){var a,n=this,o=n.config,r=n.getFromEnv("chart"),l=n.getFromEnv("dataSource"),s=r.getFromEnv("color-manager"),c=l.chart;e.prototype.configure.call(this,t),a=o.rawAttr,o.plotLineColor=o.lineColor=(0,i.convertColor)((0,i.pluck)(c.ganttlinecolor,s.getColor("gridColor")),(0,i.pluckNumber)(c.ganttlinealpha,100)),o.plotLineThickness=o.lineThickness=(0,i.pluckNumber)(c.ganttlinethickness,1),o.plotLineDashStyle=o.lineDashStyle=(0,i.pluckNumber)(c.ganttlinedashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(c.ganttlinedashlen,1),c.ganttlinedashgap,o.lineThickness):"none",o.hoverColor=(0,i.pluck)(c.categoryhoverbandcolor,c.hoverbandcolor,s.getColor("gridColor")),o.hoverAlpha=(0,i.pluckNumber)(c.categoryhoverbandalpha,c.hoverbandalpha,30),o.useHover=(0,i.pluckNumber)(c.showcategoryhoverband,c.showhoverband,c.showhovereffect,1),o.usePlotHover=(0,i.pluckNumber)(c.showganttpaneverticalhoverband),o.trendlinesDashLen=(0,i.pluckNumber)(a.trendlinesDashLen,3),o.trendlinesDashGap=(0,i.pluckNumber)(a.trendlinesDashGap,3),o.gridLineHeaderPath="",o.gridLinePath=""},a.setCategory=function(e){var t,a,n,o,l,c,d,g=this.getFromEnv("number-formatter"),h=this.config,p=h.startPad||0,u=h.endPad||0,f=Infinity,m=-Infinity;if(h.categories={},e){for(c in h.hasCategory=1,a=h.categories.category=(0,i.extend2)({},e),(0,r.extractAttribToEnd)(a,{}),a)if(a.hasOwnProperty(c)&&"_attrib"!==c)for(d=0,t=a[c].category.length;d<t;d+=1)n=a[c].category[d],o=g.getDateValue(n.start).ms,l=g.getDateValue(n.end).ms,isNaN(o)&&(o=s),o>m&&(m=o),o<=f&&(f=o),isNaN(l)&&(l=s),l>m&&(m=l),l<=f&&(f=l);this.setAxisRange({min:Number((0,i.toPrecision)(f-p,10)),max:Number((0,i.toPrecision)(m+u,10)),tickInterval:Number((0,i.toPrecision)(1,10))})}else h.hasCategory=0},a.placeAxis=function(e){var t,a,n,o,r,l,c,d,g,h,p,u,f,m,v=this,b=v.config,x=v.getFromEnv("chart"),k=x.config,C=v.getFromEnv("number-formatter"),y=v.getFromEnv("smartLabel"),w=b.labels.style,F=0,P={top:0,bottom:0},A=0,D=b.trend.trendStyle,L=b.vTrendLines,S=b.useEllipsesWhenOverflow,T=0,E=0;if(y.useEllipsesOnOverflow(k.useEllipsesWhenOverflow),y.setStyle({fontSize:w.fontSize,fontFamily:w.fontFamily,lineHeight:w.lineHeight,fontWeight:w.fontWeight}),b.maxTopSpaceAvailable=k.canvasTop,b.hasCategory)for(n in t=b.categories.category)if(t.hasOwnProperty(n)&&"_attrib"!==n){for(l in F=0,a=t[n].category)a.hasOwnProperty(l)&&"_attrib"!==l&&((o=a[l]).drawLabel=(0,i.parseUnsafeString)(o.label||o.name),c=o._attrib,d={fontFamily:(0,i.pluck)(c.fontfamily,w.fontFamily).replace(/px/i,"")+"px",fontSize:(0,i.pluck)(c.fontsize,this.computeFontSize(w.fontSizeWithUnit)),fontWeight:(0,i.pluck)(1===Number(c.isbold)||c.isbold===s?"bold":s,w.fontWeight),fontStyle:(0,i.pluck)(c.isitalic?"italic":s,w.fontStyle)},(0,i.setLineHeight)(d),y.setStyle(d),(r=y.getOriSize(o.drawLabel)).height>F&&(p=r,F=r.height));t[n]._attrib.topPos=A,A+=p.height+8,t[n]._attrib.bottomPos=A}if(m=e-A,b.drawTrendLines&&b.drawTrendLabels&&L&&b.isActive)for(y.setStyle({fontSize:D.fontSize,fontFamily:D.fontFamily,lineHeight:D.lineHeight,fontWeight:D.fontWeight}),b.trendBottomPadding=-1,l=0,g=L.length;l<g;l+=1)for(n=0,h=L[l].line.length;n<h;n+=1)o=(u=L[l].line[n]).origText||u.displayvalue||u.endvalue||u.startvalue||"",o=(0,i.parseUnsafeString)(o),u.startvalue=u.start&&C.getDateValue(u.start).ms,u.endvalue=u.end&&C.getDateValue(u.end).ms,u.origText=o,m-((f=y.getSmartText(o,x.canvasWidth,D.lineHeight,S)).height+2)<0?u.displayvalue="":(u.displayvalue=f.text,T=T<f.height?f.height:T),f.tooltext?u.valueToolText=f.tooltext:delete u.valueToolText;return b.totalHeight=A,T>0&&(E+=T+Math.abs(b.trendBottomPadding||0)),A=A>e?e:A,P.top+=A,P.bottom+=E,k.categorySpaceUsed=A,P},a._drawCategories=function(){var e,t,a,n,o,r,i,l,d,g=this,h=g.config,p=(h.axisDimention||{}).y,u=h.totalHeight||0,f=g.getFromEnv("chart"),m=f.config,v=f.getFromEnv("animationManager"),b=f.getFromEnv("number-formatter"),x=h.canvas,k=h.gridArr||(h.gridArr=[]),C=x.canvasLeft||m.canvasLeft,y=x.canvasTop||m.canvasTop,w=x.canvasHeight||m.canvasHeight,F=x.canvasWidth||m.canvasWidth,P=f.getChildContainer("axisBottomGroup"),A=0,D=g.getContainer("ganttPlotHoverBandContainerParent"),L=g.getContainer("ganttPlotHoverBandContainer"),S=g.getContainer("ganttPlotLineContainer"),T=g.getContainer("labelContainer"),E=g.getContainer("labelBackContainer"),N=g.getContainer("labelLineContainer"),M=g.getContainer("labelTextContainer");if(i=(i=Math.min(u,y-(h.maxTopSpaceAvailable||0)))>0?i:0,D||(D=g.addContainer("ganttPlotHoverBandContainerParent",v.setAnimation({el:"group",attr:{name:"gantt-plot-band-container-parent"},container:P,component:g}))),g.addContainer("ganttPlotHoverBandContainer",v.setAnimation({el:L||"group",attr:{name:"gantt-plot-band-container","clip-rect":C+","+y+","+F+","+w},container:D,component:g})),g.addContainer("ganttPlotLineContainer",v.setAnimation({el:S||"group",attr:{name:"gantt-plot-line-container","clip-rect":C+","+y+","+F+","+w,transform:c},container:P,component:g})),T=g.addContainer("labelContainer",v.setAnimation({el:T||"group",attr:{name:"gantt-label-container","clip-rect":C+","+(y-i)+","+F+","+i,transform:c},container:P,component:g})),E||(E=g.addContainer("labelBackContainer",v.setAnimation({el:"group",attr:{name:"gantt-label-back-container"},container:T,component:g}))),N||(N=g.addContainer("labelLineContainer",v.setAnimation({el:"group",attr:{name:"gantt-label-line-container"},component:g,container:T}))),M||(M=g.addContainer("labelTextContainer",v.setAnimation({el:"group",attr:{name:"gantt-label-text-container"},container:T,component:g}))),h.gridLinePath="",h.gridLineHeaderPath="",h.hoverElemsArr=[],h.labelHoverEventName={click:"CategoryClick",rollOver:"CategoryRollOver",rollOut:"CategoryRollOut"},h.hasCategory)for(e in t=h.categories.category)if(t.hasOwnProperty(e)&&"_attrib"!==e)for(n in a=t[e].category,r=s,k=h.gridArr=[],a)l=b.getDateValue(a[n].start).ms,d=b.getDateValue(a[n].end).ms,!a.hasOwnProperty(n)||"_attrib"===n||isNaN(l)||isNaN(d)||(r=(o={elem:a[n],elemIndex:A,pos:A,dimension:{left:r||g.getPixel(l),right:g.getPixel(d),top:p-u+t[e]._attrib.topPos,bottom:p-u+t[e]._attrib.bottomPos},type:"category",isHeader:!1}).dimension.right,g._drawProcessAndDataTableElement(o),A+=1,k.push({x:o.dimension.left}));g._drawGridLine(),g._disposeExtraProcessAndDataTableElement(A)},a._drawComponents=function(){var e=this.config,t=this.getFromEnv("chartConfig");this._drawCategories(),e.lastTranslate={x:0,y:0},this.translateAxis(-t.viewPortConfig.x*t.viewPortConfig.scaleX,0),e.drawPlotlines&&this._drawPlotLine(),function(e){var t,a,n,o,r,l,c,u,f,m,v,b,x,k,C,y,w,F,P,A,D,L,S,T,E=e.config,N=E.isVertical,M=E.isOpposit,_=e.getFromEnv("animationManager"),B=E.axisIndex,V=e.getFromEnv("chart-attrib"),O=e.getFromEnv("number-formatter"),H=E.axisRange,I=H.max,R=H.min,W=E.trend.trendStyle,G=E.labelPadding,z=E.axisTrendLabelContainer,j={fontFamily:W.fontFamily,fontSize:W.fontSize,lineHeight:W.lineHeight,fontWeight:W.fontWeight,fontStyle:W.fontStyle},U=E.vTrendLines,X=E.trendLines,K=E.drawTrendLabels,Y=E.axisDimention||{},Z=e.getFromEnv("chartConfig"),J=e.getFromEnv("chart").getChildren("canvas")[0],$=J.config.canvasBottom||Z.canvasBottom,q=J.config.canvasLeft||Z.canvasLeft,Q=J.config.canvasRight||Z.canvasRight,ee=[],te=e.getVisibleConfig(),ae=e.getGraphicalElement("trendlabels")||[];for(o=0;o<ae.length;o++)ae[o].remove();if(E.hasBreakPoints&&(te.minValue=e._getRealBreakValue(te.minValue),te.maxValue=e._getRealBreakValue(te.maxValue)),(n=e._isZoomed())?(t=Math.max(e.getPixel(te.minValue,{wrtVisible:!0}),e.getPixel(te.maxValue,{wrtVisible:!0})),a=Math.min(e.getPixel(te.minValue,{wrtVisible:!0}),e.getPixel(te.maxValue,{wrtVisible:!0}))):(te.minValue=R,te.maxValue=I),U?L=M?(Y.opposite||$)-(E.trendBottomPadding||0):(Y.y||$)+(E.trendBottomPadding||0):(L=M?(Y.opposite||q)+(G||0):(Y.x||q)-(G||0),S=M?(Y.x||Q)+(G||0):(Y.opposite||Q)+(G||0)),m=X||U)for(l=0,c=m.length;l<c;l+=1)for(o=0,r=m[l].line&&m[l].line.length;o<r;o+=1)T=N?"yAxis":"xAxis",(k=m[l].line[o]).startvalue||k.value,w=O.getCleanValue((0,i.pluck)(k.startvalue,k.value,0)),F=Number(k.endvalue)||s,u=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(m[l].line[o].tooltext,m[0].tooltext,E.trendlineToolText),!1)),u=(0,i.parseTooltext)(u,[7,15,16,17,18,19],{startValue:w,startDataValue:O[T](w,B),endValue:F||w,endDataValue:O[T](F||w,B),axisName:E.axisName},k),w>I||w<R||F>I||F<R||(U?(C=(0,i.pluck)((0,i.parseUnsafeString)(k.displayvalue),k.start,""),P=e.getPixel(E.hasBreakPoints?e._getRelativeBreakValue(w):w,{wrtVisible:!0}),v=(0,i.pluckNumber)(k.istrendzone,E.isTrendZone,1),A=F?e.getPixel(E.hasBreakPoints?e._getRelativeBreakValue(F):F,{wrtVisible:!0}):0,F!==s&&""!==F&&F!==w&&v?(b={fill:(0,i.convertColor)((0,i.pluck)(k.color,E.trendlineColor),(0,i.pluck)(k.alpha,E.trendlineAlpha,40)),"stroke-width":0},x={fill:(0,i.convertColor)((0,i.pluck)(k.color,W.color),(0,i.pluck)(k.valuealpha,V.trendvaluealpha,k.alpha,E.trendlineAlpha,99)),"vertical-align":h,text:C,x:P+(A-P)/2,y:L}):(D=(0,i.pluckNumber)(k.thickness,E.trendlineThickness,1),b={stroke:(0,i.convertColor)((0,i.pluck)(k.color,E.trendlineColor),(0,i.pluck)(k.alpha,E.trendlineAlpha,99)),"stroke-width":D,"stroke-dasharray":(0,i.pluck)(k.dashed,E.trendlinesAreDashed)===i.ONESTRING?(0,i.getDashStyle)((0,i.pluckNumber)(k.dashlen,E.trendlinesDashLen),(0,i.pluckNumber)(k.dashgap,E.trendlinesDashGap)):d},x={fill:(0,i.convertColor)((0,i.pluck)(k.color,W.color),(0,i.pluck)(k.valuealpha,V.trendvaluealpha,k.alpha,E.trendlineAlpha,99)),"vertical-align":h,text:C,x:F?A:P,y:L})):X&&(C=(0,i.pluck)((0,i.parseUnsafeString)(k.displayvalue),k.start,""),y=(0,i.pluckNumber)(k.valueonright,0),v=(0,i.pluckNumber)(k.istrendzone,E.isTrendZone,0),P=e.getPixel(w,{wrtVisible:!0}),A=F?e.getPixel(F,{wrtVisible:!0}):0,F!==s&&""!==F&&F!==w&&v?(b={fill:(0,i.convertColor)((0,i.pluck)(k.color,E.trendlineColor),(0,i.pluck)(k.alpha,E.trendlineAlpha,40)),"stroke-width":0},x={"text-anchor":y?g:p,fill:(0,i.convertColor)((0,i.pluck)(k.color,W.color),(0,i.pluck)(k.valuealpha,V.trendvaluealpha,k.alpha,E.trendlineAlpha,99)),text:C,x:y?S:L,y:P+(A-P)/2}):(D=(0,i.pluckNumber)(k.thickness,E.trendlineThickness,1),b={stroke:(0,i.convertColor)((0,i.pluck)(k.color,E.trendlineColor),(0,i.pluck)(k.alpha,E.trendlineAlpha,99)),"stroke-width":D,"stroke-dasharray":(0,i.pluck)(k.dashed,E.trendlinesAreDashed)===i.ONESTRING?(0,i.getDashStyle)((0,i.pluckNumber)(k.dashlen,E.trendlinesDashLen),(0,i.pluckNumber)(k.dashgap,E.trendlinesDashGap)):d},x={"text-anchor":y?g:p,fill:(0,i.convertColor)((0,i.pluck)(k.color,W.color),(0,i.pluck)(k.valuealpha,V.trendvaluealpha,k.alpha,E.trendlineAlpha,99)),text:C,x:y?S:L,y:F&&y?A:P}),n&&(!K||x.y>t||x.y<a)&&(x.text="")),x["text-bound"]=x.text?[W.backgroundColor,W.borderColor,W.borderThickness,W.borderPadding,W.borderRadius,W.borderDash]:[],f=_.setAnimation({el:"text",attr:x,css:j,container:z,component:e}).show(),E.showTooltip&&u||(u=""),e.addComponentInfo("trend",{marker:{isZone:v,startValue:w,endValue:F,fill:b.fill,stroke:b.stroke,strokeWidth:b["stroke-width"],strokeDashArray:b["stroke-dasharray"],shapeRendering:b["shape-rendering"]},label:{fill:x.fill,text:C,textAnchor:x["text-anchor"],textBound:x["text-bound"],valueOnRight:(0,i.pluckNumber)(k.valueonright,0),toolText:u},showOnTop:(0,i.pluckNumber)(k.showontop)}),ee.push(f));ee.length&&e.addGraphicalElement("trendlabels",ee)}(this),e.drawTrendLines&&this._drawTrendLine()},t}(r["default"]),f=u;t["default"]=f},1593:(e,t,a)=>{var n=a(269);t.__esModule=!0,t._drawScrollBar=A,t.getCrispPath=t["default"]=void 0;var o,r=n(a(288)),i=n(a(539)),l=n(a(540)),s=a(290),c=a(274),d=(0,a(282).getDep)("redraphael","plugin"),g="px",h="none",p="normal",u="trend",f="catVLine",m="label",v="line",b="band",x="catBand",k=function(e,t){return parseInt(e,t||10)},C=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:a,label:"group"})},y=function(e,t){var a;return void 0===t&&(t=0),0===t||0===(a=Math.abs(e)%t)?e:e<0?-(Math.abs(e)-a):e+t-a},w=function(e,t){return e<t?t:e},F=function(e){e.draw()};function P(e){var t=c.BLANKSTRING;return e!==u&&e!==u+"s"||(t=u),e!==f&&e!==f+"s"||(t=f),e!==m&&e!==m+"s"||(t=m+"s"),e!==v&&e!==v+"s"||(t=v+"s"),e!==b&&e!==b+"s"||(t=b),e!==x&&e!==x+"s"||(t=x),t}function A(){var e,t,a,n,o,r,i,l,s,g,h,p,u,f,m,v,b=this,x=b.getFromEnv("chart"),k=x.config,y=x.graphics,w=b.config,F=w.axisRange,P=k.scrollOptions||(k.scrollOptions={}),A=F.max,D=F.min,L=b.getLinkedItem("scrollBar"),S=L&&L.config.node,T=x.getChildren("canvas")[0].config;L&&(e=T.canvasLeft,t=T.canvasTop,a=T.canvasHeight,n=T.canvasBorderWidth,o=w.showAxisLine&&w.axisLineThickness||0,r=(0,c.pluckNumber)(n,w.lineStartExtension),i=(0,c.pluckNumber)(n,w.lineEndExtension),P.viewPortMin=D,P.viewPortMax=A,l=(u=(p=b.getVisibleConfig()).maxValue-p.minValue)/(f=F.max-F.min),m=(p.minValue-F.min)/(f-u),s=P.windowedCanvasWidth=b.getPixel(P.vxLength),g=P.fullCanvasWidth=b.getPixel(A-D)-s,(h=y.scrollBarParentGroup)||(h=y.scrollBarParentGroup=C("scrollBarParentGroup",y.parentGroup).insertBefore(x.getChildContainer().datalabelsGroup)),!1!==w.scrollEnabled?(w.isVertical?L.draw(e,t,{height:a,scrollRatio:l,roundEdges:T.isRoundEdges,fullCanvasWidth:g,windowedCanvasWidth:s,scrollPosition:m,parentLayer:h}):L.draw(e-r,t+a+n+o-2,{width:T.canvasWidth+r+i,scrollRatio:l,roundEdges:T.isRoundEdges,fullCanvasWidth:g,windowedCanvasWidth:s,scrollPosition:m,parentLayer:h}),!S&&(d.eve.on("raphael.scroll.start."+L.config.node.id,(function(e){b.setState("scrolling",!0),v=e,x.fireChartInstanceEvent("scrollstart",{scrollPosition:e})})),d.eve.on("raphael.scroll.end."+L.config.node.id,(function(e){b.setState("scrolling",!1),x.fireChartInstanceEvent("scrollend",{prevScrollPosition:v,scrollPosition:e})})))):L&&L.node&&L.node.hide(),w.scrollBarDrawn=!0)}t.getCrispPath=function(e,t){var a,n,o=!1,r=t%2;return e[1]===e[4]&&(a=e[1],n=Math.round(a),e[1]=e[4]=r?n>a?n-.5:n+.5:n,o=!0),e[2]===e[5]&&(a=e[2],n=Math.round(a),e[2]=e[5]=r?n>a?n-.5:n+.5:n,o=!0),{path:e,isCrisped:o}};var D=function(e){function t(){var t;return(t=e.call(this)||this)._drawScrollBar=A,t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"axis"},a.getName=function(){return"cartesian"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.setAdaptiveMin=0,t.adjustDiv=1,t.axisNameWidth=o,t.rotateAxisName=0,t.useEllipsesWhenOverflow=1,t.divLineColor=o,t.divLineAlpha=o,t.divLineThickness=o,t.divLineIsDashed=o,t.divLineDashLen=o,t.divLineDashGap=o,t.showAlternateGridColor=o,t.alternateGridColor=o,t.alternateGridAlpha=o,t.showZeroPlane=1,t.zeroPlaneAlpha=80,t.showZeroPlaneValue=1,t.showZeroPlaneOnTop=1,t.showAxisLine=o,t.axisLineThickness=o,t.axisLineAlpha=o,t.tickLength=o,t.trendlineToolText=o,t.trendlineColor="333333",t.trendlineThickness=1,t.trendlineAlpha=o,t.showTrendlinesOnTop=0,t.trendlinesAreDashed=0,t.trendlinesDashLen=5,t.trendlinesDashGap=2,t.isTrendZone=o,t.showTrendlines=1,t.showTrendlineLabels=1,t.showLabels=1,t.maxLabelHeight=o,t.rotateLabels=o,t.slantLabel=0,t.showAxisValues=1,t.showTooltip=1,t.isActive=!0,t.drawLabels=!0,t.drawOnlyCategoryLine=!1,t.drawLabelsOpposit=!1,t.drawPlotlines=!0,t.drawAxisLine=!0,t.drawPlotBands=!0,t.drawAxisName=!0,t.drawAxisNameOpposit=!1,t.axisNameAlignCanvas=!1,t.drawAxisNameFromBottom=!1,t.drawTrendLines=!0,t.drawTrendLabels=!0,t.drawTick=!0,t.drawTickMinor=!0,t.animateAxis=!0,t.drawAxisLineWRTCanvas=!0,t.isRelativeAxisInverse=!1,t.axisIndex=0,t.uniqueClassName=0,t.viewPortRatio={},t.canvas={},t.axisRange={},t.isConfigured=!0,t.axisDimention={},t.extremeLabels={firstLabel:{},lastLabel:{}},t._setRangeAgain=!1,t._defaultForceDecimal=o,t._defaultDecimalPrecision=o,t.rangeChanged=!1,t.dimensionChanged=!1,t.apparentScrollPos=0,this.addToEnv("componentInfo",{catVLine:[],trend:[],labels:[],lines:[],bands:[],catBand:[]})},a.configure=function(e){var t,a,n,r,i,l,s,d,u=this,f=u.config,m=u.getFromEnv("chart"),v=u.getFromEnv("chart").config.is3D,b=m.getFromEnv("dataSource").chart,x=u.getFromEnv("number-formatter"),C=u.getFromEnv("tempAxis");if(t=f.rawAttr=e,e.vtrendlines)for(i=0;i<e.vtrendlines.length;++i)for(l=0;l<e.vtrendlines[i].line.length;++l)s=t.vtrendlines[i].line[l],d=e.vtrendlines[i].line[l],s.startvalue=(0,c.pluckNumber)(d.startvalue,o),s.endvalue=(0,c.pluckNumber)(d.endvalue,d.startvalue),s.color=(0,c.pluck)(d.color,"FFFFFF"),s.istrendzone=(0,c.pluckNumber)(d.istrendzone,1),s.thickness=(0,c.pluckNumber)(d.thickness,1),s.trendTextAlpha=(0,c.pluckNumber)(d.alpha,f.trendlineAlpha,99),s.alpha=(0,c.pluckNumber)(d.alpha,40),s.tooltext=(0,c.pluck)(d.tooltext,"");if(e.trendlines)for(i=0;i<e.trendlines.length;++i)for(l=0;l<e.trendlines[i].line.length;++l)s=t.trendlines[i].line[l],d=e.trendlines[i].line[l],s.startvalue=(0,c.pluckNumber)(d.startvalue,o),s.endvalue=(0,c.pluckNumber)(d.endvalue,d.startvalue),s.color=(0,c.pluck)(d.color,"FFFFFF"),s.istrendzone=(0,c.pluckNumber)(d.istrendzone,1),s.thickness=(0,c.pluckNumber)(d.thickness,1),s.trendTextAlpha=(0,c.pluckNumber)(d.alpha,f.trendlineAlpha,99),s.alpha=(0,c.pluckNumber)(d.alpha,40),s.showOnTop=(0,c.pluckNumber)(d.showOnTop,1),s.valueOnRight=(0,c.pluckNumber)(d.valueOnRight,0);f.trendLines=t.trendlines,f.vTrendLines=t.vtrendlines,(0,c.parseConfiguration)(t,f),f.axisName=(0,c.parseUnsafeString)(t.axisName),f.axisValuePadding=f.axisNamePadding||(0,c.pluckNumber)(t.axisValuePadding,4),f.axisNamePadding=f.axisNamePadding||(0,c.pluckNumber)(t.axisNamePadding,5),f.maxLabelWidthPercent=(0,c.pluckNumber)(t.maxLabelWidthPercent),f.maxLabelWidthPercent=Math.abs(f.maxLabelWidthPercent),f.minLabelWidthPercent=Math.abs((0,c.pluckNumber)(t.minLabelWidthPercent)),f.numDivLines=(0,c.pluckNumber)(t.numDivLines,4),f.numDivLines=w(f.numDivLines,0),f.categoryNumDivLines=(0,c.pluckNumber)(t.numDivLines,0),f.axisValuePadding=w(f.axisValuePadding,0),f.isReverse=Number(t.isReverse,0),f.isOpposit=Number(t.isOpposit,0),f.isVertical=Number(t.isVertical,0),f.categoryDivLinesFromZero=1,f.axisMinValue=x.getCleanValue(t.axisMinValue),f.axisMaxValue=x.getCleanValue(t.axisMaxValue),f.zeroPlaneColor=(0,c.pluck)(t.zeroPlaneColor,t.divLineColor),f.zeroPlaneThickness=(0,c.pluck)(t.zeroPlaneThickness,t.divLineThickness),f.axisLineColor=(0,c.convertColor)(t.axisLineColor,t.axisLineAlpha),f.tickAlpha=(0,c.pluckNumber)(t.tickAlpha,f.axisLineAlpha),f.tickColor=(0,c.convertColor)((0,c.pluck)(t.tickColor,t.axisLineColor),f.tickAlpha),f.tickWidth=(0,c.pluckNumber)(t.tickWidth,f.axisLineThickness),f.maxZoomLimit=(0,c.pluckNumber)(b.maxzoomlimit,m.maxzoomlimit,1e3),f.showVLines=(0,c.pluckNumber)(b.showvlines,1),f.showVLinesOnTop=(0,c.pluckNumber)(b.showvlinesontop,0),f.showVLineLabels=(0,c.pluckNumber)(b.showvlinelabels,this.showVLineLabels,1),f.showVLineLabelBorder=(0,c.pluckNumber)(b.showvlinelabelborder,1),f.rotateVLineLabels=(0,c.pluckNumber)(b.rotatevlinelabels,0),f.vLineColor=(0,c.pluck)(b.vlinecolor,"333333"),f.vLineLabelColor=(0,c.pluck)(b.vlinelabelcolor),f.vLineThickness=(0,c.pluck)(b.vlinethickness,1),f.vLineAlpha=(0,c.pluckNumber)(b.vlinealpha,80),f.vLineLabelBgColor=(0,c.pluck)(b.vlinelabelbgcolor,"ffffff"),f.vLineLabelBgAlpha=(0,c.pluckNumber)(b.vlinelabelbgalpha,v?50:100),f.staggerLines=Math.max((0,c.pluckNumber)(b.staggerlines,2),2),f.staggerLines=w(f.staggerLines,1),f.trendlineValuesOnOpp=(0,c.pluck)(t.trendlineValuesOnOpp,t.trendlineValuesOnOpp,0),f.labelDisplay=(0,c.pluck)(t.labelDisplay,"auto").toLowerCase(),f.labelStep=(0,c.pluckNumber)(t.labelStep,0),f.labelStep=Math.round(f.labelStep),f.labelStep=w(f.labelStep,0),f.startPad=0,f.endPad=0,f._oriLabelStep=f.labelStep,f.showLimits=(0,c.pluckNumber)(t.showLimits,f.showAxisValues),f.showUpperLimit=t.showLimits,f.showDivLineValues=(0,c.pluckNumber)(t.showDivLineValues,f.showAxisValues),f.showCanvasBorder=m.getChildren("canvas")[0].config.showCanvasBorder?1:0,f.axisBreak=t.axisBreaks,f.isBreak=!!f.axisBreak,f.isBreak&&u._processAxisBreak(),a=(a=(0,c.getFirstValue)(t.axisNameBorderColor,c.BLANKSTRING))?(0,c.convertColor)(a,(0,c.pluckNumber)(t.axisNameBorderAlpha,t.axisNameAlpha,100)):c.BLANKSTRING,f.name=f.name||{},f.name.style={fontFamily:(0,c.pluck)(t.axisNameFont,t.outCanfontFamily),fontSize:(0,c.pluck)(t.axisNameFontSize,k(t.outCanfontSize))+g,fontSizeWithUnit:(0,c.pluckFontSizeMaintainUnit)(t.axisNameFontSizeWithUnit,t.outCanfontSizeWithUnit),color:(0,c.convertColor)((0,c.pluck)(t.axisNameFontColor,t.outCancolor),(0,c.pluckNumber)(t.axisNameFontAlpha,t.axisNameAlpha,100)),fontWeight:(0,c.pluckNumber)(t.axisNameFontBold,1)?"bold":p,fontStyle:(0,c.pluckNumber)(t.axisNameFontItalic)?"italic":p,border:a||t.axisNameBgColor?(0,c.pluckNumber)(t.axisNameBorderThickness,1)+"px solid":o,borderColor:a,borderThickness:(0,c.pluckNumber)(t.axisNameBorderThickness,1),borderPadding:(0,c.pluckNumber)(t.axisNameBorderPadding,2),borderRadius:(0,c.pluckNumber)(t.axisNameBorderRadius,0),backgroundColor:t.axisNameBgColor?(0,c.convertColor)(t.axisNameBgColor,(0,c.pluckNumber)(t.axisNameBgAlpha,t.axisNameAlpha,100)):c.BLANKSTRING,borderDash:(0,c.pluckNumber)(t.axisNameBorderDashed,0)?(0,c.getDashStyle)((0,c.pluckNumber)(t.axisNameBorderDashLen,4),(0,c.pluckNumber)(t.axisNameBorderDashGap,2)):h},f.name.style.lineHeight=(0,c.setLineHeight)(f.name.style),n=(n=(0,c.getFirstValue)(b.trendvaluebordercolor,c.BLANKSTRING))?(0,c.convertColor)(n,(0,c.pluckNumber)(b.trendvalueborderalpha,b.trendvaluealpha,100)):c.BLANKSTRING,f.trend=f.trend||{},f.trend.trendStyle={fontFamily:(0,c.pluck)(b.trendvaluefont,t.outCanfontFamily),color:(0,c.pluck)(b.trendvaluefontcolor,t.trendlineColor,t.outCancolor,"333333"),fontSize:(0,c.pluckFontSize)(this.computeFontSize(b.trendvaluefontsize),k(t.outCanfontSize))+g,fontSizeWithUnit:(0,c.pluckFontSizeMaintainUnit)(b.trendvaluefontsize,t.outCanfontSizeWithUnit),fontWeight:(0,c.pluckNumber)(b.trendvaluefontbold)?"bold":p,fontStyle:(0,c.pluckNumber)(b.trendvaluefontitalic)?"italic":p,border:n||b.trendvaluebgcolor?(0,c.pluckNumber)(b.trendvalueborderthickness,1)+"px solid":"",borderColor:n,borderThickness:(0,c.pluckNumber)(b.trendvalueborderthickness,1),borderPadding:(0,c.pluckNumber)(b.trendvalueborderpadding,2),borderRadius:(0,c.pluckNumber)(b.trendvalueborderradius,0),backgroundColor:b.trendvaluebgcolor?(0,c.convertColor)(b.trendvaluebgcolor,(0,c.pluckNumber)(b.trendvaluebgalpha,b.trendvaluealpha,100)):c.BLANKSTRING,borderDash:(0,c.pluckNumber)(b.trendvalueborderdashed,0)?(0,c.getDashStyle)((0,c.pluckNumber)(b.trendvalueborderdashlen,4),(0,c.pluckNumber)(b.trendvalueborderdashgap,2)):h},f.trend.trendStyle.lineHeight=(0,c.setLineHeight)(f.trend.trendStyle),f.labels=f.labels||{},f.lines=f.lines||{},f.band=f.band||{},r=(r=(0,c.getFirstValue)(b.labelbordercolor,c.BLANKSTRING))?(0,c.convertColor)(r,(0,c.pluckNumber)(b.labelborderalpha,b.labelalpha,100)):c.BLANKSTRING,f.labels.style={fontFamily:(0,c.pluck)(t.labelFont,t.outCanfontFamily),fontSize:(0,c.pluckNumber)(t.labelFontSize,k(t.outCanfontSize))+g,fontSizeWithUnit:(0,c.pluckFontSizeMaintainUnit)(t.labelFontSizeWithUnit,t.outCanfontSizeWithUnit),fontWeight:(0,c.pluckNumber)(t.labelFontBold)?"bold":p,fontStyle:(0,c.pluckNumber)(t.labelFontItalic)?"italic":p,color:(0,c.convertColor)((0,c.pluck)(t.labelFontColor,t.outCancolor),(0,c.pluckNumber)(t.labelFontAlpha,100)),labelLink:b.labellink,border:r||b.labelbgcolor?(0,c.pluckNumber)(b.labelborderthickness,1)+"px solid":"",borderColor:r,borderThickness:(0,c.pluckNumber)(b.labelborderthickness,1),borderPadding:(0,c.pluckNumber)(b.labelborderpadding,2),borderRadius:(0,c.pluckNumber)(b.labelborderradius,0),backgroundColor:b.labelbgcolor?(0,c.convertColor)(b.labelbgcolor,(0,c.pluckNumber)(b.labelbgalpha,b.labelalpha,100)):c.BLANKSTRING,borderDash:(0,c.pluckNumber)(b.labelborderdashed,0)?(0,c.getDashStyle)((0,c.pluckNumber)(b.labelborderdashlen,4),(0,c.pluckNumber)(b.labelborderdashgap,2)):h},f.labels.style.lineHeight=(0,c.setLineHeight)(f.labels.style),f.numberFormatterFn=(0,c.pluck)(t.numberFormatterFn),f.apparentScrollPos=t.apparentScrollPos||f.apparentScrollPos,f.axisEndLabelDisplaySpace={left:0,right:0,top:0,bottom:0},f.isConfigured=!0,f._defaultForceDecimal=o,f._defaultDecimalPrecision=o,u.setScrollType("smart"),u.addToEnv("savedAxis",C&&(0,c.extend2)({},C))},a.setScrollType=function(e){var t=this.getVisibleConfig();"none"!==e&&"smart"!==e&&"always"!==e||(this.config.scrollType=e),this.setVisibleConfig(t.minValue,t.maxValue)},a.getScrollType=function(){return this.config.scrollType},a._processAxisBreak=function(){var e,t,a,n,o=this.config;for(o.breakPoints=[],a=0,n=(e=o.axisBreak.split("|")).length,t=0;a<n;a+=1)e[a]=e[a].split(","),isNaN(e[a][0])||isNaN(e[a][1])||(o.breakPoints[t]={start:(0,c.pluckNumber)(e[a][0]),end:(0,c.pluckNumber)(e[a][1]),length:(0,c.pluckNumber)(e[a][2],0)},t+=1);o.breakPoints.sort((function(e,t){return e.start-t.start})),o.hasBreakPoints=!0,this._validateBreakPoints()},a._validateBreakPoints=function(){var e,t=this.config,a=t.breakPoints,n=0,o=a.length;for(e=0;e<o;e+=1)n+=a[e].end-a[e].start;t.totalBreakAmount=n},a._getRelativeBreakValue=function(e){var t,a=this.config.breakPoints,n=a.length,o=0;for(t=0;t<n;t+=1){if(e>=a[t].start&&e<=a[t].end)return a[t].start-o;if(e<a[t].start)break;o+=a[t].end-a[t].start}return e-o},a._getRealBreakValue=function(e){var t,a=e,n=this.config.breakPoints,o=n.length;for(t=0;t<o;t+=1)if(a>=n[t].start)a+=n[t].end-n[t].start;else if(a<n[t].start)return a;return a},a._adjustNumberFormatter=function(e){var t,a,n=this.config,r=this.getFromEnv("chart").getFromEnv("number-formatter"),i=n._defaultDecimalPrecision,l=n._defaultForceDecimal,s=0;a=n.isVertical||"yAxis"===n.numberFormatterFn?(r.Y[n.axisIndex]||r.Y[0]).yAxisLabelConf:r.paramX,i!==o?a.decimalprecision=i:n._defaultDecimalPrecision=a.decimalprecision,l!==o?a.forcedecimals=l:n._defaultForceDecimal=a.forcedecimals,parseInt(e,10)>0||(t=e.toString().split(".")[1])&&((s=t.match(/^[0]*/)[0].length)+1>a.decimalprecision&&(a.forcedecimals=1),a.decimalprecision=Math.max(s+1,a.decimalprecision))},a._isZoomed=function(){var e=this.getFromEnv("chart").config.viewPortConfig;return this.config.isVertical?1!==e.scaleY:1!==e.scaleX},a._getIntervalArr=function(e){var t,a,n,o,r,i,l,s=this,d=s.config,g=d.labels,h=d.axisRange.tickInterval*(e&&e.step||1),p=[];if(t=this.getVisibleConfig(),"polar"===s.getFromEnv("chart").config.axisType?(a=t.minValue,n=t.maxValue):(a=t.minValue-(e&&e.minPad||0),n=t.maxValue+(e&&e.maxPad||0)),(o=y(a,h))===(r=y(n-n%h,h)))return[o];if(g.drawNormalVal)for(i=(0,c.toPrecision)(o+h,10);i<r;i=(0,c.toPrecision)(i+h,10))l=d.hasBreakPoints?(0,c.toPrecision)(s._getRealBreakValue(i),10):(0,c.toPrecision)(i,10),p.push(l);return g.drawLimitVal&&p.push(r,o),-1!==p.indexOf(0)&&p.splice(p.indexOf(0),1),d.showZeroPlane&&o<=0&&r>=0&&p.push(0),p.sort((function(e,t){return e-t}))},a._disposeScrollBar=function(){var e=this.config;e.scrollBarDrawn&&(this.getLinkedItem("scrollBar").hide(),e.scrollBarDrawn=!1)},a.addComponentInfo=function(e,t){this.getFromEnv("componentInfo")[P(e)].push(t)},a.getComponentInfo=function(e){return this.getFromEnv("componentInfo")[P(e)]},a.clearComponentInfo=function(){var e,t=this.getFromEnv("componentInfo");for(e in t)t.hasOwnProperty(e)&&(t[e]=[])},a.draw=function(){var e,t,a,n,o,r,i,l,s,c,d,g,h,p,u=this,f=u.config,m=f.canvas,v=u.getFromEnv("chart"),b=v.config,x=f.isVertical,k=b.viewPortConfig,y=u.getChildren().limitUpdater,w=f.viewPortRatio||{},P=m.canvasLeft||b.canvasLeft,A=m.canvasTop||b.canvasTop,D=m.canvasWidth||b.canvasWidth,L=m.canvasHeight||b.canvasHeight,S=f.axisContainer,T=f.axisLabelContainerTop,E=f.axisPlotLineContainer,N=f.axisPlotLineContainerTop,M=f.vlineLabelContainer,_=f.axisBandContainer,B=f.axisNameContainer,V=f.axisTrendContainerTop,O=f.axisTrendContainerBottom,H=f.axisTrendLabelContainer,I=f.axisAxisLineContainer,R=f.axisAxisLineContainerBottom,W=f.divLineThickness||0,G=v.getChildContainer(),z=G.axisBottomGroup,j=G.axisTopGroup,U=[];u.clearComponentInfo(),g=k.y*k.scaleY,h=k.x*k.scaleX,p=x?P+","+(A-W)+","+D+","+(L+2*W):P-W+","+A+","+(D+2*W)+","+L,e=u.getContainer("axisBandGroup")||u.addContainer("axisBandGroup",C("dataset-Band-group",z,u)),t=u.getContainer("axisPlotLineGroup")||u.addContainer("axisPlotLineGroup",C("dataset-Line-group",z,u)),a=u.getContainer("axisPlotLineGroupTop")||u.addContainer("axisPlotLineGroupTop",C("dataset-Line-group-top",j,u)),o=u.getContainer("axisNameGroup")||u.addContainer("axisNameGroup",C("dataset-Name-group",z,u)),n=u.getContainer("axisLineGroup")||u.addContainer("axisLineGroup",C("axis-Line-group",j,u)),l=u.getContainer("axisTrendGroupTop")||u.addContainer("axisTrendGroupTop",C("dataset-Trend-group-top",j,u)),r=u.getContainer("axisLabelGroup")||u.addContainer("axisLabelGroup",C("dataset-Label-group",z,u)),i=u.getContainer("axisLabelGroupTop")||u.addContainer("axisLabelGroupTop",C("dataset-Label-group",j,u)),s=u.getContainer("axisTrendGroupBottom")||u.addContainer("axisTrendGroupBottom",C("dataset-Trend-group-bottom",z,u)),O||(f.axisTrendContainerBottom=O=C("dataset-axis-trend-bottom",s,u)),O.attr({"clip-rect":P+","+A+","+D+","+L}),S||(f.axisContainer=S=C("dataset-axis",r,u)),T||(f.axisLabelContainerTop=T=C("dataset-top-label",i,u)),I||(f.axisAxisLineContainer=I=C("axis-line-tick",n,u)),M||(f.vlineLabelContainer=M=C("axis-vline-label",n,u)),_?U.push({el:_,attrs:{"clip-rect":P+","+A+","+D+","+L},animType:"linear",animConfig:[{syncWith:"initial",start:0,initial:1}]}):(f.axisBandContainer=_=C("dataset-axis-bands",e,u),_.attr({"clip-rect":P+","+A+","+D+","+L})),E?U.push({el:E,attrs:{"clip-rect":p},animType:"linear",animConfig:[{syncWith:"initial",start:0,initial:1}]}):(f.axisPlotLineContainer=E=C("dataset-axis-lines",t,u),E.attr({"clip-rect":p})),N?U.push({el:N,attrs:{"clip-rect":p},animType:"linear",animConfig:[{syncWith:"initial",start:0,initial:1}]}):(f.axisPlotLineContainerTop=N=C("dataset-axis-lines-top",a,u),N.attr({"clip-rect":p})),V?U.push({el:V,attrs:{"clip-rect":P+","+A+","+D+","+L},animType:"linear",animConfig:[{syncWith:"initial",start:0,initial:1}]}):(f.axisTrendContainerTop=V=C("dataset-axis-trend-top",l,u),V.attr({"clip-rect":P+","+A+","+D+","+L})),H||(f.axisTrendLabelContainer=H=C("dataset-axis-trend-label",l,u)),B||(f.axisNameContainer=B=C("dataset-axis-name",o,u)),R||(f.axisAxisLineContainerBottom=R=C("axis-line-tick-bottom",z,u)),w.scaleX&&w.scaleY&&(w.scaleX!==k.scaleX||w.scaleY!==k.scaleY)?(w.scaleX=k.scaleX,w.scaleY=k.scaleY,u._drawComponents()):(x?(d=g-k.y*k.scaleY,M.transform("t0,"+d),S.transform("t0,"+d),T.transform("t0,"+d),E.transform("t0,"+d),N.transform("t0,"+d),_.transform("t0,"+d),V.transform("t0,"+d),O.transform("t0,"+d)):(c=h-k.x*k.scaleX,M.transform("t"+c+",0"),S.transform("t"+c+",0"),T.transform("t"+c+",0"),E.transform("t"+c+",0"),N.transform("t"+c+",0"),_.transform("t"+c+",0"),V.transform("t"+c+",0"),O.transform("t"+c+",0")),u._drawComponents()),u.addExtEventListener("animationcomplete",(function(){y&&y.forEach(F)}),u.getFromEnv("animationmanager")),u.addToEnv("tempAxis",{canvasHeight:u.config.canvas.canvasHeight,canvasWidth:u.config.canvas.canvasWidth,canvasLeft:u.config.canvas.canvasLeft,canvasRight:u.config.canvas.canvasRight,canvasBottom:u.config.canvas.canvasBottom,canvasTop:u.config.canvas.canvasTop,visibleRange:u.getVisibleConfig(),visibleLength:u.getVisibleLength(),axisLength:u.config.axisDimention.axisLength,axisOpposite:u.config.axisDimention.opposite,axisY:u.config.axisDimention.y,axisX:u.config.axisDimention.x,axisRangeMin:u.config.axisRange.min,axisRangeMax:u.config.axisRange.max,axisTickInterval:u.config.axisRange.tickInterval,axisIsReverse:u.config.isReverse,axisIsVertical:u.config.isVertical,axisHasBreakPoints:u.config.hasBreakPoints,viewPortScaleY:u.getFromEnv("chart").config.viewPortConfig.scaleY,viewPortY:u.getFromEnv("chart").config.viewPortConfig.y,viewPortScaleX:u.getFromEnv("chart").config.viewPortConfig.scaleX,viewPortX:u.getFromEnv("chart").config.viewPortConfig.x,chartHeight:u.getFromEnv("chart").config.canvasHeight,chartWidth:u.getFromEnv("chart").config.canvasWidth,chartLeft:u.getFromEnv("chart").config.canvasLeft,chartRight:u.getFromEnv("chart").config.canvasRight,chartBottom:u.getFromEnv("chart").config.canvasBottom,chartTop:u.getFromEnv("chart").config.canvasTop,pvr:u.config.pvr,refVal:u.config.refVal,refVisibleVal:u.config.refVisibleVal})},a.getBreakPoints=function(){var e=this.config;return!!e.hasBreakPoints&&e.breakPoints},a.getValue=function(e,t){var a=this.config;return(t&&t.wrtVisible?a.refVisibleVal:a.refVal)+(e-a.refPx)/this.config.pvr},a.getDraggedValue=function(e){var t=this._linkedParent,a=null==t?void 0:t.config,n=null==a?void 0:a.viewPortConfig,o=this.config,r=e,i=o.refVal;return null!=a&&a.scrolltodate&&(r-=(null==n?void 0:n.scaleX)*n.x),Math.round(i+(r-o.refPx)/o.pvr/(null==n?void 0:n.scaleX))},a.getVisibleLength=function(){var e=this.getVisibleConfig();return Math.abs(e.maxValue-e.minValue)},a.setAxisPadding=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var a=this,n=a.config,o=e,r=t;o=n.startPad=Math.max(n.startPad,o),r=n.endPad=Math.max(n.endPad,r),0===n.oriCatLen&&(0===o&&(o=.5),0===r&&(r=.5)),n.hasCategory?n.oriCatLen>=0&&a.setAxisRange({max:n.oriCatLen+r,min:-o}):n.originalMax&&n.originalMin&&a.setDataLimit(n.originalMax,n.originalMin)},a.setAxisConfig=function(e){var t,a=this.config;for(t in e)e.hasOwnProperty(t)&&(a[t]=e[t])},a.getAxisConfig=function(e){var t=this.config;return e?t[e]:t},a.setAxisRange=function(e){var t,a,n,o=this,r=o.config,i=r.axisRange;for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);r.isReverse?r.refVal=i.max:r.refVal=i.min,o.setVisibleConfig(i.min,i.max),o.getFromEnv("tempAxis")&&((a={max:(t=o.getFromEnv("tempAxis")).axisRangeMax,min:t.axisRangeMin,tickInterval:t.axisTickInterval}).max!==i.max||a.min!==i.min||a.tickInterval!==i.tickInterval?r.rangeChanged=!0:r.rangeChanged=!1)},a.setAxisDimention=function(e){var t,a=this,n=a.config,o=a.getFromEnv("chart").config,r=n.axisDimention||(n.axisDimention={});r.opposite=(0,c.pluckNumber)(e.opposite,r.opposite),r.x=(0,c.pluckNumber)(e.x,o.canvasLeft,r.x),r.y=(0,c.pluckNumber)(e.y,o.canvasTop,r.y),r.axisLength=(0,c.pluckNumber)(e.axisLength,r.axisLength),n.isVertical?n.refPx=r.y:n.refPx=r.x,a.getPVR(),a.getFromEnv("tempAxis")&&((t=a.getFromEnv("tempAxis")).axisLength!==r.axisLength||t.axisOpposite!==r.opposite||t.axisY!==r.y||t.axisX!==r.x?n.dimensionChanged=!0:n.dimensionChanged=!1)},a.setDataLimit=function(e,t){var a,n,o,r,s,d=this,g=d.config,h=e,p=t,u=g.axisRange,f=g.isPercent?100:g.axisMaxValue,m=g.isPercent?0:g.axisMinValue,v=g.numDivLines,b=g.setAdaptiveMin,x=g.adjustDiv,k=g.startPad||0,C=g.endPad||0,y=g.trendLines||g.vTrendLines,w=y&&y[0]&&y[0].line;r=(0,i["default"])(w,(function(e){return e.startvalue})),s=(0,l["default"])(w,(function(e){return e.endvalue})),p=(0,i["default"])([r,p]),h=(0,l["default"])([s,h]),g.originalMax=h,g.originalMin=p,h=g.isPercent?100:h+C,p=g.isPercent?0:p-k,a=n=!b,g.hasBreakPoints&&(h-=g.totalBreakAmount),o=(0,c.getAxisLimits)((0,c.pluckNumber)(h,f),(0,c.pluckNumber)(p,m),f,m,n,a,v,x),d.setAxisRange({max:Number((0,c.toPrecision)(o.Max,10)),min:Number((0,c.toPrecision)(o.Min,10)),tickInterval:Number((0,c.toPrecision)(o.divGap,10))}),d._adjustNumberFormatter(u.tickInterval),0===u.tickInterval&&(u.tickInterval=1)},a.setVisibleConfig=function(e,t){var a,n,o,r=this,i=r.config,l=i.axisRange,s=r.getScrollType(),c=i.maxZoomLimit;return!(e>t)&&(o=(l.max-l.min)/(t-e),!(c&&o>c)&&(i.minVisibleValue=e,i.maxVisibleValue=t,i.isReverse?i.refVisibleVal=t:i.refVisibleVal=e,"always"===s?r.setScrollEnabled(!0):"smart"===s?r._isZoomed()?r.setScrollEnabled(!0):r.setScrollEnabled(!1):"none"===s&&r.isScrollEnabled()&&r.setScrollEnabled(!1),r.getPVR(),r.fireEvent("visiblerangeset",{minValue:i.minVisibleValue,maxValue:i.maxVisibleValue}),r.getFromEnv("tempAxis")&&(r.asyncDraw(),a=-r.getTranslation(),n=i.isVertical?["T",0,",",a].join(""):["T",a,",",0].join(""),i.axisContainer.attr({transform:n}),i.axisBandContainer.attr({transform:n}),i.axisPlotLineContainer.attr({transform:n}),i.axisTrendContainerTop.attr({transform:n})),!0))},a.getVisibleConfig=function(){var e=this.config;return{minValue:e.minVisibleValue,maxValue:e.maxVisibleValue}},a.getPVR=function(){var e=this.config,t=this.getVisibleConfig(),a=t.maxValue-t.minValue,n=(e.axisDimention||{}).axisLength/a;return n&&(e.isReverse?e.pvr=-n:e.pvr=n),e.pvr},a.getPixel=function(e,t){var a=this,n=a.config,o=e,r=t&&t.wrtVisible,i=r?n.refVisibleVal:n.refVal,l=a.getFromEnv("tempAxis"),s=n.pvr*a.getFromEnv("chartConfig").viewPortConfig.scaleX;return t&&t.preValue&&l&&(i=r?l.refVisibleVal:l.refVal,s=a.getOldPVR()),s?(n.hasBreakPoints&&(o=a._getRelativeBreakValue(o)),(0,c.toPrecision)(n.refPx+(o-i)*s,2)):0},a.getLimit=function(){var e=this.config.axisRange;return{min:e.min,max:e.max,tickInterval:e.tickInterval}},a.getOldPVR=function(){var e=this.getFromEnv("tempAxis");return e?e.pvr:this.config.pvr},a.hide=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.hide(),e.axisContainer.hide(),e.axisPlotLineContainer.hide(),e.axisPlotLineContainerTop.hide(),e.axisBandContainer.hide(),e.axisNameContainer.hide(),e.axisTrendContainerTop.hide(),e.axisTrendContainerBottom.hide(),e.axisTrendLabelContainer.hide(),e.axisAxisLineContainer.hide(),e.axisAxisLineContainerBottom.hide())},a.show=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.show(),e.axisContainer.show(),e.axisPlotLineContainer.show(),e.axisPlotLineContainerTop.show(),e.axisBandContainer.show(),e.axisNameContainer.show(),e.axisTrendContainerTop.show(),e.axisTrendContainerBottom.show(),e.axisTrendLabelContainer.show(),e.axisAxisLineContainer.show(),e.axisAxisLineContainerBottom.show())},a.getTranslation=function(){var e=this.config;return this.getPixel(e.refVisibleVal)-e.refPx},a.setScrollEnabled=function(e){var t=this;t.config.scrollEnabled=e,e?(t.getFromEnv("chart")._createToolBoxGantt(),t.getFromEnv("tempAxis")&&t.asyncDraw()):t._disposeScrollBar()},a.isScrollEnabled=function(){return this.config.scrollEnabled},a.manageProcessScroll=function(e){var t,a=this.config,n=a.totalWidth||0,r=a.totalVisiblelWidth;n>r&&(t=(n-r)*(1-e),this.translateAxis(t,o))},a.translateAxis=function(e,t){var a,n,r=this,i=r.config,l=r.getContainer("ganttPlotLineContainer"),s=r.getContainer("ganttPlotHoverBandContainer"),c=i.lastTranslate||(i.lastTranslate={x:0,y:0}),d=r.getContainer("labelContainer"),g=r.getContainer("headerContainer"),h=r.getContainer("hotContainer");a=e!==o?e-c.x:0,n=t!==o?t-c.y:0,c.x=e!==o?e:c.x,c.y=t!==o?t:c.y,d&&d.translate(a,n),g&&g.translate(a,n),i.labelContainer&&i.labelContainer.translate(a,n),h&&h.translate(a,n),i.headerContainer&&i.headerContainer.translate(a,0),i.isVertical?(l&&l.translate(0,n),s&&s.translate(0,n)):(l&&l.translate(a,0),s&&s.translate(a,0),r.setAxisConfig({animateAxis:!1}),i.drawTrendLines&&r._drawTrendLine(),r.setAxisConfig({animateAxis:!0}))},a.resetTransletAxis=function(){var e,t=this,a=t.config,n=t.getContainer("labelContainer"),o=t.getContainer("headerContainer"),r=t.getContainer("hotContainer");e={transform:"t0,0"},a.lastTranslate={x:0,y:0},n&&n.attr(e),o&&o.attr(e),a.labelContainer&&a.labelContainer.attr(e),a.headerContainer&&a.headerContainer.attr(e),a.ganttPlotLineContainer&&a.ganttPlotLineContainer.attr(e),a.ganttPlotHoverBandContainer&&a.ganttPlotHoverBandContainer.attr(e),r&&r.attr(e)},t}(s.ComponentInterface);t["default"]=D},1589:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o=n(a(288)),r=n(a(522)),i=a(274),l=function(e){function t(){return e.apply(this,arguments)||this}(0,o["default"])(t,e);var a=t.prototype;return a.createGroup=function(){e.prototype.createGroup.call(this);var t,a=this.getFromEnv("chart"),n=a.config,o=n.style.inCanvasStyle,r=this.getFromEnv("animationManager"),l=this,s=a.getChildContainer("plotGroup");!this.getChildContainer("taskGroup")&&this.addChildContainer("taskGroup",r.setAnimation({el:"group",attr:{name:"task"},container:s,component:l})),!this.getChildContainer("connectorGroup")&&this.addChildContainer("connectorGroup",r.setAnimation({el:"group",attr:{name:"connector"},container:s,component:l})),!this.getChildContainer("milestoneGroup")&&this.addChildContainer("milestoneGroup",r.setAnimation({el:"group",attr:{name:"milestone"},container:s,component:l})),t=n.milestoneLabelStyle={fontSize:(0,i.pluckNumber)(n.milestonefontsize,this.computeFontSize(o.fontSizeWithUnit))+"px",fontFamily:(0,i.pluck)(n.milestonefont,o.fontFamily),fontWeight:(0,i.pluckNumber)(n.milestonefontbold,0)?"bold":"normal",fontStyle:(0,i.pluckNumber)(n.milestonefontitalic,0)?"italic":"normal"},(0,i.setLineHeight)(t),this.getChildContainer("milestoneGroup").css(t)},a.draw=function(){e.prototype.draw.call(this),this.setClipping()},a.setClipping=function(){var e,t=this.getFromEnv("chart"),a=t.config,n=this.getChildContainer("taskGroup"),o=this.getChildContainer("connectorGroup"),r=t.getChildContainer(),i=r.plotGroup,l=r.datalabelsGroup,s=r.trackerGroup,c=a.viewPortConfig,d=c.scaleX,g=c.x,h=this.getFromEnv("animationManager"),p=t.getChildren("canvas")[0].config.clip["clip-canvas"].slice(0);h.setAnimation({el:i,attr:{"clip-rect":p},state:t.config.clipSet?"updating":"appearing",component:this}),h.setAnimation({el:l,attr:{"clip-rect":p},state:t.config.clipSet?"updating":"appearing",component:this}),h.setAnimation({el:s,attr:{"clip-rect":p},state:t.config.clipSet?"updating":"appearing",component:this}),a.xOffset=e=g*d,h.setAnimation({el:i,attr:{transform:"T"+-e+",0"},component:this}),h.setAnimation({el:n,attr:{transform:"T"+-e+",0"},component:this}),h.setAnimation({el:o,attr:{transform:"T"+-e+",0"},component:this}),h.setAnimation({el:l,attr:{transform:"T"+-e+",0"},component:this}),h.setAnimation({el:s,attr:{transform:"T"+-e+",0"},component:this}),t.config.clipSet=!0},a.drawCanvas=function(){var e,t,a,n,o=this,r=o.getFromEnv("chart"),l=r.getFromEnv("dataSource").chart,s=r.config,c=o.getFromEnv("animationManager"),d=o.config,g=d.clip={},h=o.getGraphicalElement("canvasBorderElement"),p=o.getGraphicalElement("canvasElement"),u=s.actualCanvasLeft,f=s.actualCanvasTop,m=s.canvasWidth,v=s.canvasHeight,b=s.canvasLeft,x=s.canvasTop,k=s.canvasWidth+s.totalWidth,C=s.canvasHeight+s.totalHeight,y=o.getContainer("canvasGroup"),w=d.canvasBorderRadius,F=d.canvasBorderWidth,P=.5*F,A=d.canvasBorderColor,D=d.canBGColor,L=d.shadow,S=d.showCanvasBG=Boolean((0,i.pluckNumber)(l.showcanvasbg,1)),T=d.shadowOnCanvasFill;a=D,n={x:u-P,y:f-P,width:k+F,height:C+F,r:w,"stroke-width":F,stroke:A,"stroke-linejoin":F>2?"round":"miter"},d.showCanvasBorder?(e=c.setAnimation({el:h||"rect",attr:n,container:y,component:o}),h?e.show():e=o.addGraphicalElement("canvasBorderElement",e),e.shadow(L)):h&&h.hide(),g["clip-canvas"]=[Math.max(0,b),Math.max(0,x),Math.max(1,m),Math.max(1,v)],g["clip-canvas-init"]=[Math.max(0,b),Math.max(0,x),1,Math.max(1,v)],S?(n={x:u,y:f,width:k,height:C,r:w,"stroke-width":0,stroke:"none",fill:(0,i.toRaphaelColor)(a)},t=c.setAnimation({el:p||"rect",attr:n,component:o,container:y}),p?t.show():t=o.addGraphicalElement("canvasElement",t),t.shadow(T)):p&&p.hide()},t}(r["default"]),s=l;t["default"]=s},1587:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o,r,i=n(a(288)),l=n(a(626)),s=n(a(1588)),c=n(a(1590)),d=n(a(1596)),g=n(a(1597)),h=n(a(1600)),p=n(a(1602)),u=a(418),f=a(490),m=a(274),v=Math.max,b=Math.min,x=(r=[],{get:function(){return r},clear:function(){r.length=0},add:function(e,t){r.push({conf:e,handler:t})}});m.setAttribDefs&&(0,m.setAttribDefs)({showpercentlabel:{type:m.attrTypeBool,pAttr:"showpercentlabel"},fontsize:{type:m.attrTypeNum},alpha:{type:m.attrTypeNum},showborder:{type:m.attrTypeBool},borderthickness:{type:m.attrTypeNum},borderalpha:{type:m.attrTypeNum},showHoverEffect:{type:m.attrTypeNum},hoverFillAlpha:{type:m.attrTypeNum},slackHoverFillColor:{type:m.attrTypeNum},slackHoverFillAlpha:{type:m.attrTypeBool},showlabels:{type:m.attrTypeBool,pAttr:"showtasknames"},slackfillcolor:{pAttr:"slackfillcolor"},showtasklabels:{type:m.attrTypeBool,pAttr:"showtasknames"},showtasknames:{type:m.attrTypeBool,pAttr:"showlabels"},showconnectorhovereffect:{type:m.attrTypeNum,pAttr:"showhovereffect"},connectorextension:{type:m.attrTypeNum},tasklabelspadding:{type:m.attrTypeNum},taskdatepadding:{type:m.attrTypeNum},showstartdate:{type:m.attrTypeNum,pAttr:"showtaskstartdate"},showenddate:{type:m.attrTypeNum,pAttr:"showtaskenddate"},showtaskhovereffect:{type:m.attrTypeNum,pAttr:"showhovereffect"},useverticalscrolling:{type:m.attrTypeNum},taskbarroundradius:{type:m.attrTypeNum},showshadow:{type:m.attrTypeNum},showslackasfill:{type:m.attrTypeNum}});var k=function(e){function t(){var t;return(t=e.call(this)||this)._scrollBar=x,t.components={},t.fireGroupEvent=!0,t.hasInteractiveLegend=!1,t.defaultPaletteOptions=(0,m.extend2)((0,m.extend2)({},m.defaultGaugePaletteOptions),{paletteColors:[["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"]],bgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAngle:[270,270,270,270,270],bgRatio:["100","100","100","100","100"],bgAlpha:["100","100","100","100","100"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],gridColor:["DDDDDD","D8DCC5","99C4CD","DEC49C","FEC1D0"],gridResizeBarColor:["999999","545454","415D6F","845001","D55979"],categoryBgColor:["F1F1F1","EEF0E6","F2F8F9","F7F0E6","FFF4F8"],dataTableBgColor:["F1F1F1","EEF0E6","F2F8F9","F7F0E6","FFF4F8"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["666666","545454","415D6F","845001","D55979"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],plotFillColor:["EEEEEE","D8DCC5","BCD8DE","E9D8BE","FEDAE3"],scrollBarColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"]}),t.registerFactory("canvas",s["default"]),t.registerFactory("axis",c["default"],["canvas"]),t.registerFactory("dataset",p["default"],["canvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"Gantt"};var a=t.prototype;return a.draw=function(){e.prototype.draw.call(this),this.createScrollbarContainer()},a.getName=function(){return"Gantt"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.alignCaptionWithCanvas=0,t.defaultDatasetType="task",t.taskbarroundradius=0,t.taskbarfillmix=" { light-10 }, { dark-20 }, { light-50 }, { light-85 }",t.taskbarfillratio="0,8,84,8",t.showslackasfill=1,t.dateintooltip=1,t.tasklabelsalign=m.POSITION_CENTER,t.datepadding=3,t.showtasknames=0,t.showpercentlabel=!1,t.showhovereffect=1,t.slackfillcolor="FF5E5E",t.connectorextension=10,t.tasklabelspadding=2,t.taskdatepadding=3,t.showlabels=o,t.showtooltip=1,t.showtaskhovereffect=o,t.useverticalscrolling=1,t.ganttpanedurationunit=o,t.ganttpaneduration=o,t.showtaskstartdate=o,t.showtaskenddate=o,t.ganttwidthpercent=o,t.showshadow=1,t.taskhoverfillalpha=m.HUNDREDSTRING,t.enablemousetracking=!1},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource"),t=e.processes,a=t&&t.process,n=a&&a.length,o=e.tasks,r=o&&o.task||o,i=r&&r.length,l=e.categories,s=l&&l[0]&&l[0].category,c=s&&s.length;return!n||!i||!c},a.parseChartAttr=function(t){var a=this.config,n=t&&t.chart||this.getFromEnv("chart-attrib");e.prototype.parseChartAttr.call(this,t),a.showBorder=(0,m.pluckNumber)(n.showborder,0),a.alignLegendWithCanvas=0,a.taskhoverfillalpha=t.chart.taskhoverfillalpha},a._feedAxesRawData=function(){var e=this.getFromEnv("color-manager"),t=this.getFromEnv("dataSource"),a=t.chart,n=this.is3d,o=n?m.chartPaletteStr.chart3D:m.chartPaletteStr.chart2D,r=(0,m.pluckFontSizeMaintainUnit)(a.outcnvbasefontsize,a.basefontsize,10);return{xAxisConf:[{isVertical:!1,isReverse:!1,isOpposit:!0,outCanfontFamily:(0,m.pluck)(a.outcnvbasefont,a.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(r),outCanfontSizeWithUnit:r,outCancolor:(0,m.pluck)(a.outcnvbasefontcolor,a.basefontcolor,e.getColor(o.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisBreaks:a.xaxisbreaks,axisNamePadding:a.xaxisnamepadding,axisValuePadding:a.labelpadding,axisNameFont:a.xaxisnamefont,axisNameFontSize:this.computeFontSize(a.xaxisnamefontsize),axisNameFontSizeWithUnit:a.xaxisnamefontsize,axisNameFontColor:a.xaxisnamefontcolor,axisNameFontBold:a.xaxisnamefontbold,axisNameFontItalic:a.xaxisnamefontitalic,axisNameBgColor:a.xaxisnamebgcolor,axisNameBorderColor:a.xaxisnamebordercolor,axisNameAlpha:a.xaxisnamealpha,axisNameFontAlpha:a.xaxisnamefontalpha,axisNameBgAlpha:a.xaxisnamebgalpha,axisNameBorderAlpha:a.xaxisnameborderalpha,axisNameBorderPadding:a.xaxisnameborderpadding,axisNameBorderRadius:a.xaxisnameborderradius,axisNameBorderThickness:a.xaxisnameborderthickness,axisNameBorderDashed:a.xaxisnameborderdashed,axisNameBorderDashLen:a.xaxisnameborderdashlen,axisNameBorderDashGap:a.xaxisnameborderdashgap,useEllipsesWhenOverflow:a.useellipseswhenoverflow,divLineColor:(0,m.pluck)(a.vdivlinecolor,e.getColor(o.divLineColor)),divLineAlpha:(0,m.pluck)(a.vdivlinealpha,n?e.getColor("divLineAlpha3D"):e.getColor("divLineAlpha")),divLineThickness:(0,m.pluckNumber)(a.vdivlinethickness,1),divLineIsDashed:Boolean((0,m.pluckNumber)(a.vdivlinedashed,a.vdivlineisdashed,0)),divLineDashLen:(0,m.pluckNumber)(a.vdivlinedashlen,4),divLineDashGap:(0,m.pluckNumber)(a.vdivlinedashgap,2),showAlternateGridColor:(0,m.pluckNumber)(a.showalternatevgridcolor,0),alternateGridColor:(0,m.pluck)(a.alternatevgridcolor,e.getColor("altVGridColor")),alternateGridAlpha:(0,m.pluck)(a.alternatevgridalpha,e.getColor("altVGridAlpha")),numDivLines:(0,m.pluckNumber)(a.numvdivlines,this.config.numVDivLines),labelFont:a.labelfont,labelFontSize:this.computeFontSize(a.labelfontsize),labelFontSizeWithUnit:a.labelfontsize,labelFontColor:a.labelfontcolor,labelFontAlpha:a.labelalpha,labelFontBold:a.labelfontbold,labelFontItalic:a.labelfontitalic,maxLabelHeight:a.maxlabelheight,axisName:a.xaxisname,axisMinValue:a.xaxisminvalue,axisMaxValue:a.xaxismaxvalue,setAdaptiveMin:a.setadaptivexmin,adjustDiv:a.adjustvdiv,labelDisplay:a.labeldisplay,showLabels:a.showlabels,rotateLabels:a.rotatelabels,slantLabel:(0,m.pluckNumber)(a.slantlabels,a.slantlabel),labelStep:(0,m.pluckNumber)(a.labelstep,a.xaxisvaluesstep),showAxisValues:(0,m.pluckNumber)(a.showxaxisvalues,a.showxaxisvalue),showLimits:(0,m.pluckNumber)(a.showvlimits,this.config.showvlimits),showDivLineValues:(0,m.pluckNumber)(a.showvdivlinevalues,a.showvdivlinevalues),zeroPlaneColor:a.vzeroplanecolor,zeroPlaneThickness:a.vzeroplanethickness||2,zeroPlaneAlpha:a.vzeroplanealpha,showZeroPlaneValue:a.showvzeroplanevalue,vTrendLines:t.trendlines,trendlineColor:a.trendlinecolor,trendlineToolText:a.trendlinetooltext,trendlineThickness:a.trendlinethickness,trendlineAlpha:a.trendlinealpha,showTrendlinesOnTop:a.showtrendlinesontop,showAxisLine:(0,m.pluckNumber)(a.showxaxisline,a.showaxislines,a.drawAxisLines,0),axisLineThickness:(0,m.pluckNumber)(a.xaxislinethickness,a.axislinethickness,1),axisLineAlpha:(0,m.pluckNumber)(a.xaxislinealpha,a.axislinealpha,100),axisLineColor:(0,m.pluck)(a.xaxislinecolor,a.axislinecolor,"#000000")}],yAxisConf:[{isVertical:!0,isReverse:!0,isOpposit:!1,outCanfontFamily:(0,m.pluck)(a.outcnvbasefont,a.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(r),outCanfontSizeWithUnit:r,outCancolor:(0,m.pluck)(a.outcnvbasefontcolor,a.basefontcolor,e.getColor(o.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisBreaks:a.yaxisbreaks,axisNamePadding:a.yaxisnamepadding,axisValuePadding:a.yaxisvaluespadding,axisNameFont:a.yaxisnamefont,axisNameFontSize:this.computeFontSize(a.yaxisnamefontsize),axisNameFontSizeWithUnit:a.yaxisnamefontsize,axisNameFontColor:a.yaxisnamefontcolor,axisNameFontBold:a.yaxisnamefontbold,axisNameFontItalic:a.yaxisnamefontitalic,axisNameBgColor:a.yaxisnamebgcolor,axisNameBorderColor:a.yaxisnamebordercolor,axisNameAlpha:a.yaxisnamealpha,axisNameFontAlpha:a.yaxisnamefontalpha,axisNameBgAlpha:a.yaxisnamebgalpha,axisNameBorderAlpha:a.yaxisnameborderalpha,axisNameBorderPadding:a.yaxisnameborderpadding,axisNameBorderRadius:a.yaxisnameborderradius,axisNameBorderThickness:a.yaxisnameborderthickness,axisNameBorderDashed:a.yaxisnameborderdashed,axisNameBorderDashLen:a.yaxisnameborderdashlen,axisNameBorderDashGap:a.yaxisnameborderdashgap,axisNameWidth:a.yaxisnamewidth,useEllipsesWhenOverflow:a.useellipseswhenoverflow,rotateAxisName:(0,m.pluckNumber)(a.rotateyaxisname,1),axisName:a.yaxisname,divLineColor:(0,m.pluck)(a.divlinecolor,e.getColor(o.divLineColor)),divLineAlpha:(0,m.pluck)(a.divlinealpha,n?e.getColor("divLineAlpha3D"):e.getColor("divLineAlpha")),divLineThickness:(0,m.pluckNumber)(a.divlinethickness,1),divLineIsDashed:Boolean((0,m.pluckNumber)(a.divlinedashed,a.divlineisdashed,0)),divLineDashLen:(0,m.pluckNumber)(a.divlinedashlen,4),divLineDashGap:(0,m.pluckNumber)(a.divlinedashgap,2),showAlternateGridColor:(0,m.pluckNumber)(a.showalternatehgridcolor,1),alternateGridColor:(0,m.pluck)(a.alternatehgridcolor,e.getColor("altHGridColor")),alternateGridAlpha:(0,m.pluck)(a.alternatehgridalpha,e.getColor("altHGridAlpha")),numDivLines:(0,m.pluckNumber)(a.numdivlines,this.numDivLines),axisMinValue:a.yaxisminvalue,axisMaxValue:a.yaxismaxvalue,setAdaptiveMin:a.setadaptiveymin,adjustDiv:a.adjustdiv,labelStep:a.yaxisvaluesstep,showAxisValues:(0,m.pluckNumber)(a.showyaxisvalues,a.showyaxisvalue),showLimits:(0,m.pluckNumber)(a.showlimits,this.showLimits),showDivLineValues:(0,m.pluckNumber)(a.showdivlinevalues,a.showdivlinevalue),zeroPlaneColor:a.zeroplanecolor,zeroPlaneThickness:a.zeroplanethickness||2,zeroPlaneAlpha:a.zeroplanealpha,showZeroPlaneValue:a.showzeroplanevalue,trendlineColor:a.trendlinecolor,trendlineToolText:a.trendlinetooltext,trendlineThickness:a.trendlinethickness,trendlineAlpha:a.trendlinealpha,showTrendlinesOnTop:a.showtrendlinesontop,showAxisLine:(0,m.pluckNumber)(a.showyaxisline,a.showaxislines,a.drawAxisLines,0),axisLineThickness:(0,m.pluckNumber)(a.yaxislinethickness,a.axislinethickness,1),axisLineAlpha:(0,m.pluckNumber)(a.yaxislinealpha,a.axislinealpha,100),axisLineColor:(0,m.pluck)(a.yaxislinecolor,a.axislinecolor,"#000000")}]}},a._resetViewPortConfig=function(){this.config.viewPortConfig={scaleX:1,scaleY:1,x:0,y:0}},a._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis")[0],a=this.getChildren("yAxis")[0],n=e.categories,o=e.datatable,r=e.processes;a.setAxisPadding(.5,.5),a.setProcess(r),a.setDataTable(o),t.setCategory(n)},a.getDSdef=function(e){switch(e){case"milestone":return d["default"];case"connector":return h["default"];default:return g["default"]}},a._createLegendItems=function(){var e,t,a,n,o,r,i,l,s,c,d=this.getFromEnv("dataSource"),g=this.getFromEnv("legend"),h=g.getChildren("legendItem"),p=d.legend&&d.legend.item||[];if(!this.config.legendItemIds&&(this.config.legendItemIds=[]),(l=h&&h.length||0)>(s=p.length)){for(t=s;t<l;t++)g.disposeItem(h[t].getId());h&&h.splice(s,l-s)}for(t=0,e=p.length;t<e;t++)r=p[t],g.getItem(this.config.legendItemIds[t])?c=this.config.legendItemIds[t]:(c=g.createItem(),this.config.legendItemIds.push(c)),n=r.color,a=(0,m.getLightColor)(n,60).replace(m.dropHash,"#"),o={FCcolor:{color:n+","+n+","+(0,m.getLightColor)(n,40)+","+n+","+n,ratio:"0,70,30",angle:270,alpha:"100,100,100,100,100"}},i={label:r.label,interactiveLegend:!1},g.getItem(c).configure(i),g.getItem(c).setStateCosmetics("default",{symbol:{fill:(0,m.toRaphaelColor)(o),stroke:(0,m.toRaphaelColor)(a)}})},a._spaceManager=function(){var e,t,a,n,o,r,i=this.config,l=this.getChildren("xAxis")[0],s=this.getChildren("yAxis")[0],c=this.getChildren("legend")[0],d=100-(i.ganttwidthpercent||67),g=i.borderWidth,h=0,p=0;this._resetViewPortConfig(),this._allocateSpace({top:g,bottom:g,left:g,right:g}),this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*i.availableHeight)||{}),c&&(a=c.config.legendPos?c.config.legendPos.split("-"):[]),e=a[0]===m.POSITION_BOTTOM||a[0]===m.POSITION_TOP?.6*i.canvasHeight:.6*i.canvasWidth,this._manageChartMenuBar(e),n="right"===a[0]||"left"===a[0]?.3*i.canvasWidth:.3*i.canvasHeight,i.showLegend&&this._manageLegendSpace(n),i.actualCanvasTop=i.canvasTop,i.actualCanvasLeft=i.canvasLeft,t=i.canvasWidth*(d/100),h+=((o=s.placeAxis(t)).left||0)+(o.right||0),s&&this._allocateSpace(o),e=a[0]===m.POSITION_BOTTOM||a[0]===m.POSITION_TOP?.6*i.canvasHeight:.6*i.canvasWidth,e=.6*i.canvasHeight,p+=(o=l.placeAxis(e)).top||0,i.totalWidth=h,i.totalHeight=p,l&&this._allocateSpace(o),r=s&&s.setProcessHeight(),s.setAxisConfig({processTotalHeight:r})},a._postSpaceManagement=function(){var e,t,a,n,r,i=this,l=i.config,s=this.getChildren("xAxis")[0],c=this.getChildren("yAxis")[0],d=s.getLimit(),g=c.getAxisConfig("processTotalHeight"),h=l.canvasHeight,p=this.getChildren("legend")[0],u=l.xDepth,m=this.getChildren("canvas")[0].config,v=m.canvasBorderWidth,b=m.canvasPadding,x=i.getChildren("vScrollBar")&&i.getChildren("vScrollBar")[0],k=x&&x.config,C=m.canvasPaddingLeft,y=m.canvasPaddingRight,w=Number(l.ganttpaneduration),F=l.ganttpanedurationunit,P=i.getChildren("hProcessScrollBar")&&i.getChildren("hProcessScrollBar")[0],A=i.getChildren("hScrollBar")&&i.getChildren("hScrollBar")[0],D=A&&A.config.height||0,L=P&&P.config.height||0;l.hScrollEnabled=a=!isNaN(w)&&F!==o&&function(e,t,a,n){if(e>0)switch(t){case"y":return+f.timeYear.offset(a,e)<n;case"m":return+f.timeMonth.offset(a,e)<n;case"d":return+f.timeDay.offset(a,e)<n;case"h":return+f.timeHour.offset(a,e)<n;case"mn":return+f.timeMinute.offset(a,e)<n;case"s":return+f.timeSecond.offset(a,e)<n}}(w,F,d.min,d.max),n=c.getAxisConfig("totalWidth")>c.getAxisConfig("totalVisiblelWidth"),g>h-Math.max(n?L:0,a?D:0)&&(t=!0),e=t&&k.width||0,r=l.canvasWidth-(u||0)-Math.max(C,b)-Math.max(y,b)-e,s&&s.setAxisDimention({x:m.canvasLeft+(u||0)+Math.max(C,b),y:m.canvasTop-(l.shift||0),opposite:m.canvasTop+m.canvasHeight+v,axisLength:r}),l.currentCanvasWidth=r,c&&c.setAxisDimention({x:m.canvasLeft-(l.shift||0),y:m.canvasTop,opposite:m.canvasRight+v,axisLength:l.canvasHeight}),i._manageScrollbarPosition(),l.showLegend&&p.postSpaceManager(),i.setScrollDimensions(),i.allocateDimensionOfChartMenuBar()},a.createScrollbarContainer=function(){var e=this,t=e.getChildContainer(),a=e.getContainer(),n=a.scrollBarParentGroup,o=e.getFromEnv("animationManager");n||(n=a.scrollBarParentGroup=o.setAnimation({el:"group",attr:{name:"scrollBarParentGroup"},container:a.parentgroup,component:e}),e.config.scrollbarContainer=n,n.insertBefore(t.datalabelsGroup))},a.setScrollDimensions=function(){var e,t,a,n,o,r,i,l,s,c,d,g,h,p,u,f,m=this,v=m.config,b=m.getChildren(),x=b.xAxis[0],k=x.config.axisRange,C=v.viewPortConfig,y=v.scrollOptions||(v.scrollOptions={}),w=k.max,F=k.min,P=y.horizontalVxLength,A=m.getChildren("hScrollBar")[0],D=A.getChildren("scrollAnchor")[0].config,L=m.getChildren("vScrollBar")[0],S=m.getChildren("hProcessScrollBar")[0],T=v.useverticalscrolling,E=w-F,N=v.canvasRight,M=C.scaleX,_=C.scaleY,B=v.vScrollEnabled,V=b.yAxis[0],O=B?L.config.conf.width:0,H=m.getContainer();n=v.canvasLeft,o=v.canvasTop,r=v.canvasHeight,i=v.canvasWidth,l=b.canvas[0].config,y.viewPortMin=F,y.viewPortMax=w,y.scrollRatio=P/E,g=y.windowedCanvasWidth=x.getPixel(P),h=y.fullCanvasWidth=x.getPixel(w-F)-g,d=y.fullCanvasHeight=V.getAxisConfig("processTotalHeight"),c=y.windowedCanvasHeight=r,p=V.getAxisConfig("totalWidth"),u=V.getAxisConfig("totalVisiblelWidth"),s=1/_,f=H.scrollBarParentGroup,!1!==v.hScrollEnabled&&(e=A.config,A.setDimension({x:n,y:o+r,width:i-O}),e.scrollRatio=1/M,e.scrollPosition=D.scrollPosition=C.x*M/(i*(M-1)),e.roundEdges=l.isRoundEdges,e.fullCanvasWidth=h,e.windowedCanvasWidth=g,e.parentLayer=f),!1!==B&&T&&(t=L.config,L.setDimension({x:N-O,y:o,height:r}),t.scrollRatio=s,t.roundEdges=l.isRoundEdges,t.fullCanvasWidth=d,t.windowedCanvasWidth=c,t.parentLayer=f),u<p&&u>0&&(a=S.config,S.setDimension({x:n-u,y:o+r,width:u}),a.scrollRatio=u/p,a.roundEdges=l.isRoundEdges,a.fullCanvasWidth=h,a.windowedCanvasWidth=g,a.parentLayer=f)},a._setAxisScale=function(){var e,t,a,n,o,r=this,i=r.getChildren(),l=r.config,s=i.xAxis[0],c=s.getLimit(),d=c.max,g=c.min,h=new Date(g),p=i.yAxis[0],u=r.getFromEnv("number-formatter"),f=Number(l.ganttpaneduration),m=l.scrollOptions||(l.scrollOptions={}),x=l.ganttpanedurationunit,k=d-g,C=l.canvasHeight,y=l.scrolltodate,w=l.canvasWidth,F=l.canvasLeft,P=r.getChildren("hProcessScrollBar")[0],A=r.getChildren("hScrollBar")[0],D=r.getChildren("vScrollBar")[0],L=A&&A.config&&A.config.height||0,S=P&&P.config&&P.config.height||0,T=s.getPixel(d)-F,E=p.getAxisConfig("processTotalHeight");if(l.hScrollEnabled){switch(x){case"y":h.setFullYear(h.getFullYear()+f);break;case"m":h.setMonth(h.getMonth()+f);break;case"d":h.setDate(h.getDate()+f);break;case"h":h.setHours(h.getHours()+f);break;case"mn":h.setMinutes(h.getMinutes()+f);break;default:h.setSeconds(h.getSeconds()+f)}h=h.getTime(),o=s.getPixel(h)-F,l.hScrollEnabled=!0,l.viewPortConfig.scaleX=e=T/o,m.horizontalVxLength=k/undefined*f,y&&(t=u.getDateValue(y).ms,a=s.getPixel(t),l.viewPortConfig.x=b(a-F,w*(e-1))/e),l.scrollPos>=0&&(l.xOffset=l.currentCanvasWidth*(e-1)*l.scrollPos,l.viewPortConfig.x=l.xOffset/e)}else A.remove();p.getAxisConfig("totalWidth")>p.getAxisConfig("totalVisiblelWidth")?l.hProcessScrollEnabled=!0:(l.hProcessScrollEnabled=!1,P.remove()),n=C-v(l.hProcessScrollEnabled?S:0,l.hScrollEnabled?L:0),Math.floor(E)>n&&l.useverticalscrolling?(l.viewPortConfig.scaleY=E/n,l.vScrollEnabled=!0):(l.vScrollEnabled=!1,D.remove())},a._createToolBoxGantt=function(){var e,t,a,n,o,r=this,i=r.getChildren("hScrollBar")&&r.getChildren("hScrollBar")[0],l=r.getChildren("vScrollBar")&&r.getChildren("vScrollBar")[0],s=r.getChildren("hProcessScrollBar")&&r.getChildren("hProcessScrollBar")[0],c=r.getChildren(),d=c.yAxis[0],g=r._scrollBar,h=c.chartMenuBar||{},p=c.actionBar,f=g.get,m=g.add;h.drawn||p&&p.drawn||(g.clear(),m({isHorizontal:!0,scale:1,scrollPosition:0},{scroll:(o=r,function(){o.updateManagerH(arguments[0],!0)}),scrollStart:function(t){e=t,r.fireChartInstanceEvent("scrollstart",{scrollPosition:t})},scrollEnd:function(t){r.fireChartInstanceEvent("scrollend",{scrollPosition:t,prevScrollPosition:e})}}),m({isHorizontal:!1,scale:1,scrollPosition:0},{scroll:function(e){return function(){e.updateManagerV(arguments[0],false)}}(r),scrollStart:function(t){e=t,r.fireChartInstanceEvent("scrollstart",{scrollPosition:t})},scrollEnd:function(t){r.fireChartInstanceEvent("scrollend",{scrollPosition:t,prevScrollPosition:e})}}),m({isHorizontal:!0,scale:1,scrollPosition:0},{scroll:function(){d.manageProcessScroll(arguments[0])},scrollStart:function(t){e=t,r.fireChartInstanceEvent("scrollstart",{scrollPosition:t})},scrollEnd:function(t){r.fireChartInstanceEvent("scrollend",{scrollPosition:t,prevScrollPosition:e})}}),t=f()[0],n=f()[1],a=f()[2],i||(i=r.attachChild(new u.ScrollBar,"hScrollBar")),i.configure(t.conf),i.attachEventHandlers(t.handler),l||(l=r.attachChild(new u.ScrollBar,"vScrollBar")),l.configure(n.conf),l.attachEventHandlers(n.handler),s||(s=r.attachChild(new u.ScrollBar,"hProcessScrollBar")),s.configure(a.conf),s.attachEventHandlers(a.handler))},a._manageScrollbarPosition=function(){var e,t,a,n=this,o=n.config,r=n.getChildren("hScrollBar")[0],i=n.getChildren("vScrollBar")[0],l=n.getChildren("hProcessScrollBar")[0],s=o.totalWidth||0,c=o.totalHeight||0;n._setAxisScale&&n._setAxisScale(),r=n.getChildren("hScrollBar")[0],i=n.getChildren("vScrollBar")[0],l=n.getChildren("hProcessScrollBar")[0],t=o.vScrollEnabled,e=o.hScrollEnabled,a=r.getLogicalSpace(),o.hScrollHeight=!1===e?0:a.height+i.config.padding,a=i.getLogicalSpace(),o.vScrollWidth=!1!==t?a.width+i.config.conf.padding:0,a=l.getLogicalSpace(),o.hProcessScrollHeight=o.hProcessScrollEnabled?a.height+l.config.padding:0,c+=v(o.hProcessScrollHeight,o.hScrollHeight),n._allocateSpace({bottom:v(o.hProcessScrollHeight,o.hScrollHeight)}),o.totalWidth=s,o.totalHeight=c},a.updateManagerH=function(e){var t,a=this,n=a.config,r=n.lastXpos||(n.lastXpos={x:0,y:0}),i=a.config.viewPortConfig,l=a.getFromEnv("animationManager"),s=i.scaleX,c=a.getChildren().xAxis[0],d=a.getChildContainer(),g=d.plotGroup,h=a.getChildContainer("datalabelsGroup"),p=d.datalabelsGroup,u=d.trackerGroup,f=n.xOffset,m=n.yOffset||0,v=n.currentCanvasWidth,b=c.getContainer("ganttPlotLineContainer");n.scrollPos=e,f=n.xOffset=v*(s-1)*e,c.translateAxis(-f,o),r.x=-f,t="t"+-f+", "+-m,l.setAnimation({el:g,attr:{transform:t},component:a}),l.setAnimation({el:p,attr:{transform:t},component:a}),l.setAnimation({el:u,attr:{transform:t},component:a}),l.setAnimation({el:h,attr:{transform:t},component:a}),l.setAnimation({el:b,attr:{transform:"t"+-f+", 0"},component:a})},a.updateManagerV=function(e){var t,a=this,n=a.config,o=a.getFromEnv("animationManager"),r=n.xOffset,i=a.config.viewPortConfig,l=a.getChildren().yAxis[0],s=n.yOffset,c=n.canvasHeight,d=i.scaleY,g=a.getChildContainer("datalabelsGroup"),h=l.getContainer("labelContainer"),p=a.getChildContainer("plotGroup"),u=l.getContainer("ganttPlotHoverBandContainer"),f=l.getContainer("ganttPlotLineContainer");s=n.yOffset=c*(d-1)*e,i.y=s/d,t=l.config.lastTranslate||(l.config.lastTranslate={x:0,y:0}),o.setAnimation({el:h,attr:{transform:"t"+t.x+", "+-s},component:a}),o.setAnimation({el:u,attr:{transform:"t0, "+-s},component:a}),o.setAnimation({el:p,attr:{transform:"t"+-r+", "+-s},component:a}),o.setAnimation({el:g,attr:{transform:"t"+-r+", "+-s},component:a}),o.setAnimation({el:f,attr:{transform:"t0, "+-s},component:a})},t}(l["default"]),C=k;t["default"]=C},1601:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.connector":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}}},1600:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o=n(a(288)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var a=c(t);if(a&&a.has(e))return a.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n["default"]=e,a&&a.set(e,n);return n}(a(1597)),i=a(274),l=n(a(1601)),s=a(282);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:t})(e)}var d=function(e){return function(t){e.plotEventHandler(this,t,"ConnectorClick")}},g=function(e){return function(t){var a=this.data("dataObj"),n=a.config,o=e.components.tasksMap,r=o[n.fromTaskId],i=o[n.toTaskId],l={stroke:n.hoverColor,"stroke-dasharray":n.dashedStyle,"stroke-width":n.hoverThickness},s=a.graphics.connector;e.plotEventHandler(this,t,"ConnectorRollOver"),n.showHoverEffect&&([r,i].forEach((function(e){var t={fill:e.config.hoverFillColor,stroke:e.config.hoverBorderColor},a=e.config.percentComplete,n=e.graphics.slackElem,o=e.graphics.element,r=e.graphics.taskFill;a&&!e.config.showAsGroup&&(n&&n.attr({fill:e.config.slackHoverColor}),r&&r.attr({fill:e.config.hoverFillColor,stroke:e.config.hoverBorderColor}),delete t.fill),o&&o.attr(t)})),s&&s.attr(l))}},h=function(e){return function(t){var a=this.data("dataObj"),n=a.config,o=e.components.tasksMap,r=o[n.fromTaskId],i=o[n.toTaskId],l={stroke:n.color,"stroke-width":n.thickness,"stroke-dasharray":n.dashedStyle},s=a.graphics.connector;e.plotEventHandler(this,t,"ConnectorRollOut"),n.showHoverEffect&&([r,i].forEach((function(e){var t={fill:e.config.color,stroke:e.config.borderColor,"stroke-width":e.config.borderThickness,"stroke-dasharray":e.config.dashedStyle},a=e.config.percentComplete,n=e.graphics.slackElem,o=e.graphics.element,r=e.graphics.taskFill;a&&!e.config.showAsGroup&&(n&&n.attr({fill:e.config.slackColor}),r&&r.attr({fill:e.config.color}),delete t.fill),o&&o.attr(t)})),s&&s.attr(l))}};(0,s.addDep)({name:"connectorAnimation",type:"animationRule",extension:l["default"]});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,o["default"])(t,e);var a=t.prototype;return a.getName=function(){return"connector"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isdashed=1,t.thickness=1},a.configureAttributes=function(){var e=this,t=e.getFromEnv("dataSource"),a=(0,i.extend2)({},t.connectors&&t.connectors.length?t.connectors[0]:t.connectors||{});(0,i.parseConfiguration)(a,e.config,e.getFromEnv("chart").config,{connector:!0}),e.components||(e.components={}),e._setConfigure(),e.setState("dirty",!0)},a._setConfigure=function(e){var t,a,n,o,r,l,s,c,d=this,g=d.config,h=d.getFromEnv("chart"),p=d.getFromEnv("dataSource"),u=p.connectors&&p.connectors.length?p.connectors[0]:p.connectors||{},f=e||u.length?u:u.connector,m=f&&f.length||0,v=h.getFromEnv("color-manager"),b=h.config,x=d.components.data;for(x||(x=d.components.data=[]),t=0;t<m;t+=1)n=f[t],(a=x[t])||(a=x[t]={config:{}}),!a.config&&(a.config={}),o=a.config,r=(0,i.pluck)(n.color,g.color,v.getColor("plotBorderColor")),l=(0,i.pluckNumber)(n.alpha,g.alpha,100),s=(0,i.pluckNumber)(n.thickness,g.thickness,1),c=(0,i.pluckNumber)(n.isdashed,g.isdashed,1),o.fromTaskId=(0,i.getFirstValue)(n.fromtaskid,"").toLowerCase(),o.toTaskId=(0,i.getFirstValue)(n.totaskid,"").toLowerCase(),o.fromTaskConnectStart=(0,i.pluckNumber)(n.fromtaskconnectstart,0),o.toTaskConnectStart=(0,i.pluckNumber)(n.totaskconnectstart,1),o.color=(0,i.convertColor)(r),o.alpha=.01*l,o.link=n.link,o.showHoverEffect=(0,i.pluckNumber)(n.showhovereffect,g.showhovereffect,b.showconnectorhovereffect,1),o.hoverColor=(0,i.convertColor)((0,i.pluck)(n.hovercolor,g.hovercolor,b.connectorhovercolor,(0,i.getDarkColor)(r,80)),(0,i.pluckNumber)(n.hoveralpha,g.hoveralpha,b.connectorhoveralpha,l)),o.hoverThickness=(0,i.pluckNumber)(n.hoverthickness,g.hoverthickness,b.connectorhoverthickness,s),o.thickness=s,o.dashedStyle=c?(0,i.getDashStyle)((0,i.pluckNumber)(n.dashlen,g.dashlen,5),(0,i.pluckNumber)(n.dashgap,g.dashgap,s),s):"none";(0,i.pluckNumber)(u.visible,1)?d.setState("visible",!0):d.setState("visible",!1)},a.draw=function(){var e,t,a,n,o,l,s,c,p,u,f,m,v,b,x,k,C,y,w,F,P,A,D,L,S,T=this,E=T.getFromEnv("chart"),N=E.components,M=T.components.data,_=T.getFromEnv("animationManager"),B=E.config,V=M.length,O=N.tasksMap,H=B.connectorextension,I=E.getChildren("canvas")[0].getChildContainer("connectorGroup"),R=T.getContainer("connectorContainer"),W=T.getState("visible"),G=T._contextChanged(),z=T.components.removeDataArr||[],j=z.length;if(T.getState("removed")||T.getState("dirty")||G&&W||T.getState("dragged")){for(R||(R=T.addContainer("connectorContainer",_.setAnimation({el:"group",attr:{name:"connectors"},container:I,component:T})),W?R.show():R.hide()),S=0;S<=V;S+=1)if(o=M[S])if(x=o.config,!o.graphics&&(o.graphics={}),F=o.graphics,e=x.fromTaskId&&x.fromTaskId.toLowerCase(),t=x.toTaskId&&x.toTaskId.toLowerCase(),a=O[e],n=O[t],P=F.connector,a&&n){if(k=a.config,C=n.config,l=(s=k.yPos+.5*k.height)===(c=C.yPos+.5*C.height),p=k.xPos,u=k.xPos+k.width,f=C.xPos,m=C.xPos+C.width,!1===(0,r.checkInvalidValue)(p,u,f,m))continue;if(v=0,b=0,0===x.fromTaskConnectStart&&1===x.toTaskConnectStart&&(b=1),0===x.fromTaskConnectStart&&0===x.toTaskConnectStart&&(b=2),1===x.fromTaskConnectStart&&1===x.toTaskConnectStart&&(b=3),1===x.fromTaskConnectStart&&0===x.toTaskConnectStart&&(b=4),l)switch(w=k.height,b){case 1:y=["M",u,s,u+(v=(f-u)/10),s,"L",u+v,s,u+v,s-w,"L",u+v,s-w,f-v,s-w,"L",f-v,s-w,f-v,s,"L",f-v,s,f,c];break;case 2:y=["M",u,s,u+H,s,"L",u+H,s,u+H,s-w,"L",u+H,s-w,m+H,s-w,"L",m+H,c-w,m+H,c,m,c];break;case 3:y=["M",p,s,p-H,s,"L",p-H,s,p-H,s-w,"L",p-H,s-w,f-H,s-w,"L",f-H,s-w,f-H,s,"L",f-H,s,f,s];break;case 4:y=["M",p,s,p-H,s,"L",p-H,s,p-H,s-w,"L",p-H,s-w,m+H,s-w,"L",m+H,s-w,m+H,s,"L",m+H,s,m,s]}else switch(b){case 1:y=["M",u,s,u+(f-u)/2,s,"L",u+(f-u)/2,s,u+(f-u)/2,c,"L",u+(f-u)/2,c,f,c],y=u<=f?["M",u,s,u+(f-u)/2,s,"L",u+(f-u)/2,s,u+(f-u)/2,c,"L",u+(f-u)/2,c,f,c]:["M",u,s,u+H,s,"L",u+H,s,u+H,s+(c-s)/2,"L",u+H,s+(c-s)/2,f-H,s+(c-s)/2,"L",f-H,s+(c-s)/2,f-H,c,"L",f-H,c,f,c];break;case 2:y=["M",u,s,u+H+(v=m-u<0?0:m-u),s,"L",u+H+v,s,u+H+v,c,"L",u+H+v,c,m,c];break;case 3:y=["M",p,s,p-H-(v=p-f<0?0:p-f),s,"L",p-H-v,s,p-H-v,c,"L",p-H-v,c,f,c];break;case 4:y=p>m?["M",p,s,p-(p-m)/2,s,"L",p-(p-m)/2,s,p-(p-m)/2,c,"L",p-(p-m)/2,c,m,c]:["M",p,s,p-H,s,"L",p-H,s,p-H,s+(c-s)/2,"L",p-H,s+(c-s)/2,m+H,s+(c-s)/2,"L",m+H,s+(c-s)/2,m+H,c,"L",m+H,c,m,c]}(F.connector=_.setAnimation({el:P||"path",label:"path",attr:{path:y,stroke:x.color,"stroke-opacity":x.alpha,"stroke-width":x.thickness,"stroke-dasharray":x.dashedStyle},container:R,component:T})).show(),A={fromTaskId:x.fromTaskId,toTaskId:x.toTaskId,fromTaskConnectStart:x.fromTaskConnectStart,toTaskConnectStart:x.toTaskConnectStart,link:x.link,sourceType:"connector"},D=F.trackerElement,L=F.trackerElement=_.setAnimation({el:D||"path",attr:{path:y,stroke:i.TRACKER_FILL,"stroke-width":Math.max(x.thickness,1),cursor:x.link?"pointer":""},container:R,component:T}),D||L.on("fc-click",d(E)).hover(g(E),h(E)),L.data("dataObj",o).data("eventArgs",A)}else P&&_.setAnimation({el:P,component:T,callback:r.hideFn,doNotRemove:!0}),F.trackerElement&&_.setAnimation({el:F.trackerElement,component:T,callback:r.hideFn,doNotRemove:!0});for(S=0;S<j;S++)T._removeDataVisuals(z.shift())}},t}(r["default"]),u=p;t["default"]=u},1599:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.milestone":function(){return{"polypath.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"middle",startEnd:{start:.9,end:1}}]}}}}},1596:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o=n(a(288)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var a=d(t);if(a&&a.has(e))return a.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n["default"]=e,a&&a.set(e,n);return n}(a(1597)),i=a(274),l=n(a(1599)),s=a(282),c=a(286);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(d=function(e){return e?a:t})(e)}var g,h=function(e){return function(t){e.plotEventHandler(this,t,"MilestoneClick")}},p=function(e){return function(t){var a=this.data("dataObj"),n=a.config;e.plotEventHandler(this,t,"MilestoneRollOver"),n.showHoverEffect&&a.graphics.element.attr({fill:n.hoverFillColor,stroke:n.hoverBorderColor,"fill-opacity":n.hoverFillAlpha,"stroke-opacity":n.hoverBorderAlpha})}},u=function(e){return function(t){var a=this.data("dataObj"),n=a.config;e.plotEventHandler(this,t,"MilestoneRollOut"),n.showHoverEffect&&a.graphics.element.attr({fill:n.fillColor,stroke:n.borderColor,"fill-opacity":n.fillAlpha,"stroke-opacity":n.borderAlpha})}};(0,s.addDep)({name:"milestoneAnimation",type:"animationRule",extension:l["default"]});var f=function(e){function t(){return e.apply(this,arguments)||this}(0,o["default"])(t,e);var a=t.prototype;return a.getName=function(){return"milestone"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showpercentlabel=0,t.showstartdate=0,t.showenddate=0,t.showlabels=g,t.showborder=1,t.borderthickness=1,t.showHoverEffect=1,t.slackFillColor="FF5E5E",t.font=i.BLANKSTRING,t.fontcolor=i.BLANKSTRING,t.fontsize=i.BLANKSTRING,t.color=i.BLANKSTRING,t.alpha=i.HUNDREDSTRING,t.bordercolor=i.BLANKSTRING,t.borderalpha=i.HUNDREDSTRING,t.hoverFillColor=i.BLANKSTRING,t.hoverFillAlpha=i.HUNDREDSTRING,t.slackHoverFillColor=10,t.slackHoverFillAlpha=i.HUNDREDSTRING},a.configureAttributes=function(){var e=this,t=e.config,a=e.getFromEnv("dataSource"),n=(0,i.extend2)({},a.milestones&&a.milestones.length?a.milestones[0]:a.milestones||{});(0,i.parseConfiguration)(n,t,{milestones:!0}),e.components||(e.components={}),e._setConfigure(),e.setState("dirty",!0)},a._setConfigure=function(e){var t,a,n,o,l,s,c,d,h,p,u,f,m,v,b=this,x=b.getFromEnv("chart"),k=x.getChildren("yAxis")[0].config,C=b.getFromEnv("dataSource"),y=C.milestones&&C.milestones.length?C.milestones[0]:C.milestones||{},w=e||y.length?y:y.milestone,F=w&&w.length,P=b.getFromEnv("color-manager"),A=x.config,D=b.getFromEnv("number-formatter"),L=b.components.data,S=x.config.style,T=S.inCanvasStyle,E=x.components.tasksMap,N=k.processes.processMap,M=k.processes.process.process,_=x.config.milestoneLabelStyle;for(L||(L=b.components.data=[]),o=0;o<F;o+=1)s=w[o],(t=L[o])||(t=L[o]={config:{}}),n=t.config,f=(0,i.getFirstValue)(s.taskid,i.BLANKSTRING).toLowerCase(),h=(0,i.pluck)(s.shape,"polygon").toLowerCase(),c=(0,i.pluckNumber)(s.numsides,5),p=0,"star"===h?p=.4:(h=(0,i.mapSymbolName)(c),h=(0,i.mapSymbolName)(c).split("-")[0]),d=(0,i.pluck)(s.color,P.getColor("legendBorderColor")),u=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(s.tooltext,s.hovertext,A.milestonetooltext),!1)),m=D.getDateValue(s.date).ms,v=D.getFormattedDate(m),u!==g&&E[f]?(a=E[f].config,l=N[f]?N[f].catObj.label||N[f].catObj.name:M[o]&&(M[o].label||M[o].name),u=(0,i.parseTooltext)(u,[28,32,33,34,35,36],{date:v,taskStartDate:a._startDate,taskEndDate:a._endDate,taskLabel:a.label,taskPercentComplete:-1!==a.percentComplete?D.percentValue(a.percentComplete):i.BLANKSTRING,processName:l},s)):u=v,S=n.style=(0,r.extractLabelStyle)({fontSize:s.fontsize,fontFamily:s.font,fontWeight:s.fontbold,fontStyle:s.fontitalic}),n.textColor=(0,i.getFirstColor)((0,i.pluck)(s.fontcolor,A.milestonefontcolor,T.color)),(0,i.setLineHeight)(S),n.lineHeight=(0,i.pluck)(S&&S.lineHeight,_&&_.lineHeight),n.numSides=c,n.startAngle=(0,i.pluckNumber)(s.startangle,90),n.radius=s.radius,n.origDate=s.date,n.date=D.getDateValue(s.date),n.fillColor=(0,i.getFirstColor)(d),n.fillAlpha=.01*(0,i.pluckNumber)(s.fillalpha,s.alpha,100),n.borderColor=(0,i.getFirstColor)((0,i.pluck)(s.bordercolor,d)),n.borderAlpha=.01*(0,i.pluckNumber)(s.borderalpha,s.alpha,100),n.displayValue=(0,i.parseUnsafeString)(s.label),n.style=S,n.hoverFillColor=(0,i.getFirstColor)((0,i.pluck)(s.hoverfillcolor,A.milestonehoverfillcolor,(0,i.getDarkColor)(d,80))),n.hoverFillAlpha=.01*(0,i.pluckNumber)(s.hoverfillalpha,A.milestonehoverfillalpha,s.fillalpha,s.alpha,100),n.hoverBorderColor=(0,i.getFirstColor)((0,i.pluck)(s.hoverbordercolor,A.milestonehoverbordercolor,(0,i.getDarkColor)((0,i.pluck)(s.bordercolor,d),80))),n.hoverBorderAlpha=.01*(0,i.pluckNumber)(s.hoverborderalpha,A.milestonehoverborderalpha,s.borderalpha,s.alpha,100),n.showHoverEffect=(0,i.pluckNumber)(s.showhovereffect,A.showmilestonehovereffect,A.showhovereffect,1),n.depth=p,n.taskId=f,n.borderThickness=(0,i.pluckNumber)(s.borderthickness,1),n.link=s.link,n.toolText=u;(0,i.pluckNumber)(y.visible,1)?b.setState("visible",!0):b.setState("visible",!1)},a.drawLabel=function(){var e,t,a,n,o,l,s,c,d,f,m,v=this,b=v.getFromEnv("chart"),x=v.getFromEnv("animationManager"),k=b.components.tasksMap,C=v.getFromEnv("toolTipController"),y=v.getContainer("milestoneLabelContainer"),w=v.components.data;for(n=0,s=w.length;n<s;n++)f=k[(e=(a=w[n]).config).taskId],o=(c=a.graphics).labelElement,t=e.eventArgs,d=e._labelAttrs,m=e.style,e.displayValue!==i.BLANKSTRING&&e.displayValue!==g&&f?(l=c.labelElement=x.setAnimation({el:o||"text",attr:d,container:y,component:v}),o?(l.removeCSS(),l.show()):l.on("fc-click",h(b)).hover(p(b),u(b)),l.css(m),C.enableToolTip(l,e.toolText),l.data("eventArgs",t).data("dataObj",a)):o&&x.setAnimation({el:o,component:v,callback:r.hideFn,doNotRemove:!0})},a.draw=function(){var e,t,a,n,o,l,s,d,g,f,m,v,b,x,k,C=this,y=this.config.milestone,w=C.getFromEnv("chart"),F=w.components,P=C.components,A=C.getFromEnv("toolTipController"),D=w.getChildren("xAxis")[0],L=P.data,S=F.tasksMap,T=w.config,E=w.getChildren("canvas")[0],N=C.getContainer("milestoneContainer"),M=E.getChildContainer("milestoneGroup"),_=C.getContainer("milestoneLabelContainer"),B=C.getState("visible"),V=C.getFromEnv("animationManager"),O=C.components.removeDataArr||[],H=O.length,I=T.showtooltip;for(N||(N=C.addContainer("milestoneContainer",V.setAnimation({el:"group",attr:{name:"milestone"},container:M,component:C}))),B?N.show():N.hide(),_||(_=C.addContainer("milestoneLabelContainer",V.setAnimation({el:"group",attr:{name:"labels"},container:M,component:C}))),B?_.show():_.hide(),x=L&&L.length,b=0;b<x;b+=1)if(e=L[b])if(n=e.config,a=e.graphics,t=S[n.taskId],!e.graphics&&(e.graphics={}),s=a.element,t){if(l=t.config,o=n.eventArgs={sides:n.sides,date:n.origDate,radius:n.radius,taskId:n.taskId,toolText:n.toolText,link:n.link,numSides:n.numSides},g=D.getPixel(n.date.ms),f=l.yPos+.5*l.height,v=(0,i.pluckNumber)(n.radius,.6*l.height),!1===(0,r.checkInvalidValue)(g,f,v))continue;m=[n.numSides,g,f,v,n.startAngle,n.depth],(d=a.element=V.setAnimation({el:s||"polypath",label:"polypath",attr:{polypath:m,fill:n.fillColor,"fill-opacity":n.fillAlpha,stroke:n.borderColor,"stroke-opacity":n.borderAlpha,groupId:"gId"+b,cursor:n.link?"pointer":i.BLANKSTRING,"stroke-width":n.borderThickness},component:C,container:N})).on("fc-click",h(w)).hover(p(w),u(w)),d.show().data("eventArgs",o).data("dataObj",e),I?A.enableToolTip(d,n.toolText):A.disableToolTip(d);var R=y[b],W=((null==R?void 0:R.margintop)||0)-((null==R?void 0:R.marginbottom)||0),G=((null==R?void 0:R.marginright)||0)-((null==R?void 0:R.marginleft)||0);(k=n._labelAttrs||(n._labelAttrs={})).x=g-+G,k.y=f+ +W,k.text=n.displayValue,k.groupId="gId"+b,k.cursor=n.link?"pointer":i.BLANKSTRING,k.direction=T.textDirection,k["text-anchor"]="middle",k.fill=n.textColor}else s&&V.setAnimation({el:s,component:C,callback:r.hideFn,doNotRemove:!0});for(C.drawn?C.drawLabel():C.addJob("drawMilestoneLabels",C.drawLabel.bind(C),c.priorityList.label),C.drawn=!0,b=0;b<H;b++)C._removeDataVisuals(O.shift())},t}(r["default"]),m=f;t["default"]=m},1598:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.task":function(){return{"rect.appearing":function(e){return[{initialAttr:{width:0},finalAttr:{width:e.attr.width},slot:"middle"}]},"path.appearing":function(e){var t=e.attr.path;return[{initialAttr:{path:t.slice(0,3)},finalAttr:{path:t},slot:"middle"}]}}}}},1597:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=t.hideFn=t.extractLabelStyle=t.checkInvalidValue=void 0;var o,r=n(a(596)),i=n(a(598)),l=n(a(273)),s=n(a(288)),c=n(a(595)),d=a(274),g=a(282),h=n(a(1598)),p=a(286);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){(0,l["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function m(e){return!!/^(0?[1-9]|1[0-2])\/(0?[1-9]|[12][0-9]|3[01])\/\d{4} (0?[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/.test(e)}var v="",b="normal",x="dataplotdragstart",k="dataplotdragmove",C=d.preDefStr.EVENTARGS,y={left:"start",right:"end",center:"middle"},w={left:0,right:1,center:.5,undefined:.5},F={left:5,right:-5,center:0,undefined:0},P={fontWeight:[b,"bold"],fontStyle:[b,"italic"]},A=function(){this.hide()},D=function(e){return e!==o&&null!==e},L=function(e){var t,a;for(a in e)if(e[a]!==o)switch(t=t||{},a){case"fontWeight":case"fontStyle":t[a]=P[a][e[a]];break;default:t[a]=e[a]}return t},S=function(e){return/%/g.test(e)},T=function(){var e=0,t=arguments.length,a=!1;for(e=0;e<t;e++){if(isNaN(arguments[e]))return!1;a=!0}return a};t.checkInvalidValue=T,t.extractLabelStyle=L,t.hideFn=A,(0,g.addDep)({name:"taskAnimation",type:"animationRule",extension:h["default"]});var E=function(e){function t(){var t;return(t=e.call(this)||this).components={},t}(0,s["default"])(t,e);var a=t.prototype;return a.getName=function(){return"task"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showpercentlabel=o,t.showlabels=o,t.showborder=1,t.borderthickness=1,t.font=d.BLANKSTRING,t.fontcolor=d.BLANKSTRING,t.fontsize=d.BLANKSTRING,t.color=d.BLANKSTRING,t.alpha=d.HUNDREDSTRING,t.angle=270,t.slackfillcolor=o,t.borderalpha=d.HUNDREDSTRING,t.hoverfillcolor=d.BLANKSTRING,t.slackhoverfillalpha=d.HUNDREDSTRING,t.showstartdate=o,t.showenddate=o},a.configureAttributes=function(){var e=this,t=e.getFromEnv("dataSource"),a=(0,d.extend2)({},t.tasks&&t.tasks.length?t.tasks[0]:t.tasks||{});(0,d.parseConfiguration)(a,e.config,e.getFromEnv("chart").config,{task:!0}),e.components||(e.components={}),e.config.hoverfillalpha=(0,d.pluckNumber)(a.hoverfillalpha,e.getFromEnv("chart").config.taskhoverfillalpha,d.HUNDREDSTRING),e._setConfigure(),e.setState("dirty",!0)},a._setConfigure=function(e){var t,a,n,r,i,l,s,c,g,h,p,u,f,m,b,x,k,C,y,w,F,P,A,D,S,T,E,N,M=this,_=M.config,B=M.getFromEnv("chart"),V=B.getChildren("yAxis")[0].config,O=M.getFromEnv("dataSource"),H=O.chart,I=O.tasks&&O.tasks.length?O.tasks[0]:O.tasks||{},R=e||I.length?I:I.task,W=R&&R.length,G=M.getFromEnv("color-manager"),z=B.config,j=M.getFromEnv("number-formatter"),U=z.taskbarfillmix,X=z.taskbarfillratio,K=z.showslackasfill,Y=M.components.data,Z=V.processes.processMap,J=V.processes.process.process,$=z.dateintooltip,q={right:"right",left:"left",undefined:"center",center:"center"},Q=B.components.tasksMap={},ee=z.style.inCanvasStyle,te=(0,d.pluckNumber)(H.showtooltip,1),ae=z.dataLabelStyle;if(Y||(Y=M.components.data=[]),_.showlabels=(0,d.pluck)(I.showlabels,I.showlabels,I.showname,H.showtasklabels,H.showtasknames,0),_.showTextOutline=(0,d.pluckNumber)(H.textoutline,0),_.allowDrag=(0,d.pluckNumber)(H.allowdrag,0),E=_.labelStyle=L({fontSize:_.fontSize,fontFamily:_.font}),(0,d.setLineHeight)(_.labelStyle),W)for(r=0;r<W;r+=1)h=R[r],(p=(0,d.pluck)(h.processid))&&"string"==typeof p&&(p=p.toLowerCase()),S=h.id,h.percentcomplete,u=(0,d.pluckNumber)(h.alpha,_.alpha),x=(0,d.pluck)(h.color,_.color,G.getColor("plotFillColor")),f=(0,d.pluckNumber)(h.borderalpha,_.borderalpha,"100"),m=(0,d.pluck)(h.bordercolor,_.bordercolor,G.getColor("plotBorderColor")),b=(0,d.getFirstValue)((0,d.pluck)(h.label,h.name),v),l=G.parseColorMix(x,U),s=G.parseAlphaList(u.toString(),l.length),c=G.parseRatioList(X,l.length),k=(0,d.pluckNumber)(h.angle,_.angle),(T=(Y[r]||(Y[r]={config:{}})).config).index=r,T.link=h.link,T.processId=(0,d.pluck)(p,"PROCESS_"+r),T.textColor=(0,d.getFirstColor)((0,d.pluck)(h.fontcolor,_.fontcolor,ee.color)),T.textFont=(0,d.pluck)(h.font,_.font,ee.fontFamily),T.textFontSize=(0,d.pluckNumber)(h.fontsize,_.fontsizes,ee.fontSize),!h.fontsize&&z.dataLabelStyle&&(h.fontsize=z.dataLabelStyle.fontSize),T.style=L({fontSize:h.fontsize,fontFamily:h.font}),(0,d.setLineHeight)(T.style),N=T.style,T.lineHeight=(0,d.pluck)(N&&N.lineHeight,E&&E.lineHeight,ae&&ae.lineHeight),T.startMs=j.getDateValue(h.start).ms,T.endMs=j.getDateValue(h.end).ms,n=j.getFormattedDate(T.startMs,H.dateformat),a=j.getFormattedDate(T.endMs,H.dateformat),T.tAlpha=u,T.tBorderColor=m,T.tBorderAlpha=f,g=v,T.percentComplete=t=Math.min((0,d.pluckNumber)(h.percentcomplete,-1),100),T.labelAlign=q[[(0,d.pluck)(h.labelalign,z.tasklabelsalign).toLowerCase()]],T.showAsGroup=(0,d.pluckNumber)(h.showasgroup,0),C=T.showPercentLabel=(0,d.pluckNumber)(h.showpercentlabel,_.showpercentlabel),(0,d.pluckNumber)(h.showlabel,h.showname,_.showlabels)&&(g=b),C&&-1!==t&&(g+=" "+t+"%"),T.percentComplete=t,P={FCcolor:{color:l.join(),alpha:s,ratio:c,angle:k}},F=G.parseColorMix((0,d.pluck)(h.slackfillcolor,_.slackfillcolor,z.slackfillcolor),U),F=K?{FCcolor:{color:F.join(),alpha:s,ratio:c,angle:k}}:d.TRACKER_FILL,A={FCcolor:{color:G.parseColorMix((0,d.pluck)(h.hoverfillcolor,_.hoverfillcolor,z.taskhoverfillcolor,(0,d.getDarkColor)(x,80)),U).join(),alpha:G.parseAlphaList((0,d.pluck)(h.hoverfillalpha,_.hoverfillalpha).toString(),l.length),ratio:c,angle:k}},D=(0,d.convertColor)((0,d.pluck)(h.hoverbordercolor,_.hoverbordercolor,(0,d.getDarkColor)(m,80)),(0,d.pluck)(h.hoverborderalpha,_.hoverborderalpha,f)),w=K?{FCcolor:{color:G.parseColorMix((0,d.getDarkColor)((0,d.pluck)(h.slackhoverfillcolor,_.slackhoverfillcolor,z.slackfillcolor),80),U).join(),alpha:G.parseAlphaList((0,d.pluck)(h.slackhoverfillalpha,_.slackhoverfillalpha,"100").toString(),l.length),ratio:c,angle:k}}:d.TRACKER_FILL,T.color=(0,d.toRaphaelColor)(P),T.rawTaskColor=x,T.rawTaskAlpha=u,T.slackColor=(0,d.toRaphaelColor)(F),T.hoverFillColor=(0,d.toRaphaelColor)(A),T.hoverBorderColor=D,T.slackHoverColor=(0,d.toRaphaelColor)(w),T.showHoverEffect=(0,d.pluckNumber)(h.showhovereffect,_.showhovereffect,H.showhovereffect,1),T.taskHeight=(0,d.pluck)(h.height,"35%"),T.topPadding=(0,d.pluck)(h.toppadding,"35%"),T.showPercentLabel=C,T.endDate=(0,d.pluckNumber)(h.showenddate,_.showenddate)?a:o,T._endDate=a,T.startDate=(0,d.pluckNumber)(h.showstartdate,_.showstartdate)?n:o,T._startDate=n,T.shadow={opacity:Math.max(u,f)/100,inverted:!0},T.id=p,T.taskId=S,T.borderColor=(0,d.convertColor)(m,f),T.borderThickness=(0,d.pluckNumber)(h.showborder,_.showborder)?(0,d.pluckNumber)(h.borderthickness,_.borderthickness):0,y=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(h.tooltext,_.hovertext,_.plottooltext,H.plottooltext),!1)),te&&(y!==o?(i=Z[p]?Z[p].catObj.label||Z[p].catObj.name:J[r]&&(J[r].label||J[r].name),y=(0,d.parseTooltext)(y,[3,28,29,30,31],{end:j.getFormattedDate(T.endMs,H.outputdateformat),start:j.getFormattedDate(T.startMs,H.outputdateformat),label:b,percentComplete:-1!==t?j.percentValue(t):v,processName:i},_)):y=(b!==v?b+($?", ":v):v)+($?j.getFormattedDate(T.startMs,H.outputdateformat)+" - "+j.getFormattedDate(T.endMs,H.outputdateformat):v)),T.label=g,T.toolText=y,"string"==typeof S&&(S=S.toLowerCase()),S!==o&&(Q[S]=Y[r]);(0,d.pluckNumber)(I.visible,1)?M.setState("visible",!0):M.setState("visible",!1)},a._getParentToolTextOnDrag=function(e,t,a){var n,o,r=this.data("drag-options").dataset,i=r.getFromEnv("dataSource"),l=i.chart,s=(Array.isArray(null==i?void 0:i.tasks)?null==i||null==(n=i.tasks[0])?void 0:n.task:null==i||null==(o=i.tasks)?void 0:o.task)[a.index],c=(0,d.getFirstValue)((0,d.pluck)(s.label,s.name),v),g=r.getFromEnv("chartConfig"),h=r.getFromEnv("number-formatter"),p=g.dateintooltip;return(c!==v?c+(p?", ":v):v)+(p?h.getFormattedDate(e,l.outputdateformat)+" - "+h.getFormattedDate(t,l.outputdateformat):v)},a._checkUpdatedTaskWidth=function(e,t){var a=this.data("drag-options").dataset.getFromEnv("chart"),n=a.getChildren("xAxis")[0],o=a.config.viewPortConfig,r=o.x,i=o.scaleX,l=n.getPixel(e)+r*i,s=n.getPixel(t)+r*i;return 3<Math.round(s-l)},a.dragStartWidthHandler=function(e){this.data("drag-options").dataset._dragStartWidthHandler.call(this,e)},a._dragStartWidthHandler=function(){var e,t,a,n=this.data("drag-options"),o=n.dataObj,r=o.graphics.element,i=r.getBBox(),l=o.config,s=n.dataset,c=s.getFromEnv("dataSource"),d=c.chart,g=s.getFromEnv("number-formatter"),h=s.getFromEnv("chart"),p=(Array.isArray(null==c?void 0:c.tasks)?null==c||null==(e=c.tasks[0])?void 0:e.task:null==c||null==(t=c.tasks)?void 0:t.task)[null==l?void 0:l.index],u=x,f=l.dragStart||(l.dragStart={}),v=l.dragData||(l.dragData={}),b=n.taskbarElement,k=n.direction;n.tempStartMs=o.startMs,n.tempEndMs=o.endMs,f.xPos="left"===k?l.xPos:l.xPos+b.attrs.width,f.x=l.xPos,f.bBox=i;var y=m(p.start);v.prevStartDate=g.getFormattedDate(l.startMs,y?"mm/dd/yyyy hh:mn:ss":d.dateformat),v.prevEndDate=g.getFormattedDate(l.endMs,y?"mm/dd/yyyy hh:mn:ss":d.dateformat),f.origX=f.lastDx||(f.lastDx=0),a=r.data(C),h.fireChartInstanceEvent(u,a)},a.dragMoveWidthHandler=function(e,t){var a=this.data("drag-options").dataset,n=t[0],o=t[1],r=t[2],i=t[3];a._dragMoveWidthHandler.call(this,n,o,r,i)},a._dragMoveWidthHandler=function(e){var t,a,n,r,i,l,s,c,g,h,p,u,b,x,C=this,y=e,w=C.data("drag-options"),F=w.dataObj,P=w.taskbarElement,A=w.direction,D=w.dataset,L=D.config,S=D.getFromEnv("dataSource"),T=S.chart,E=Array.isArray(null==S?void 0:S.tasks)?null==S||null==(t=S.tasks[0])?void 0:t.task:null==S||null==(a=S.tasks)?void 0:a.task,N=D.getFromEnv("chart"),M=N.components.tasksMap,_=D.getFromEnv("number-formatter"),B=D.getFromEnv("yAxis"),V=D.getFromEnv("xAxis").config.processes.processMap,O=D.components.data,H=F.graphics.element,I=F.config,R=I.id,W=null==I?void 0:I.index,G=E[W],z=(0,d.getFirstValue)((0,d.pluck)(G.label,G.name),v),j=Math.min((0,d.pluckNumber)(G.percentcomplete,-1),100),U=I.dragStart,X=I.dragData,K=U.bBox.x+y,Y=U.bBox.x2+y,Z=D.getFromEnv("chartConfig"),J=Z.canvasLeft,$="",q=B.getPixel(Z.scrollOptions.viewPortMax),Q=Z.dateintooltip;Z.scrolltodate&&(J+=c=Z.viewPortConfig.scaleX*Z.viewPortConfig.x,q+=c);var ee=-1===Math.sign(q-J-(U.bBox.x2-U.bBox.x));if(K<J&&!ee&&"left"===A&&-1===Math.sign(e)&&(y+=J+1.5-K),Y>q&&!ee&&"right"===A&&1===Math.sign(e)&&(y-=Y-q),y&&H.data("fire_click_event",0),G&&(($=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(G.tooltext,L.hovertext,L.plottooltext,T.plottooltext),!1)))!==o?(R&&V[R]&&(l=V[R].catObj.label||V[R].catObj.name),$=(0,d.parseTooltext)($,[3,28,29,30,31],{end:_.getFormattedDate(F.config.endMs,T.outputdateformat),start:_.getFormattedDate(F.config.startMs,T.outputdateformat),label:z,percentComplete:-1!==j?_.percentValue(j):v,processName:l},D.config)):$=(z!==v?z+(Q?", ":v):v)+(Q?_.getFormattedDate(F.config.startMs,T.outputdateformat)+" - "+_.getFormattedDate(F.config.endMs,T.outputdateformat):v)),U.lastDx=y,p=m(G.start),"left"===A){var te,ae,ne,oe,re,ie;if(1===Math.sign(e)&&3===F.graphics.element.attrs.width)return;var le=Object.values(M).filter((function(e){return e.graphics.element.attrs.y===P.attrs.y})).sort((function(e,t){return e.graphics.element.attrs.x-t.graphics.element.attrs.x})),se=null==le?void 0:le.findIndex((function(e,t){var a;return e.graphics.element.attrs.y===P.attrs.y&&e.graphics.element.attrs.x===P.attrs.x&&"Delay"!==(null==(a=E[t])?void 0:a.label)}));if(x=le[se+1],b=null==(te=le[se+1])?void 0:te.config,u=null==(ae=x)||null==(ne=ae.graphics)?void 0:ne.element,h=null==(oe=le[se-1])||null==(re=oe.graphics)?void 0:re.element,1===Math.sign(e)&&u&&b&&"Delay"===(null==(ie=E[b.index])?void 0:ie.label)&&F.graphics.element.attrs.width===u.attrs.width+1)return;if(F.config.startMs=B.getDraggedValue(U.xPos+U.lastDx),!T.allowtaskbaroverlap&&-1===Math.sign(e)&&h&&h.attrs.x+h.attrs.width>=C.attrs.x&&h.attrs.y===C.attrs.y&&(F.config.startMs=B.getDraggedValue(h.attrs.x+h.attrs.width)),X.updatedStartDate!==_.getFormattedDate(F.config.startMs,p?"mm/dd/yyyy hh:mn:ss":T.dateformat)){var ce=JSON.parse(JSON.stringify(X));N.fireChartInstanceEvent(k,ce)}if(X.updatedStartDate=_.getFormattedDate(F.config.startMs,p?"mm/dd/yyyy hh:mn:ss":T.dateformat),G.start=X.updatedStartDate,X.updatedEndDate=X.prevEndDate,"0"===(null==G?void 0:G.showasgroup)&&D._checkUpdatedTaskWidth.call(C,B.getDraggedValue(F.config.dragStart.xPos+F.config.dragStart.lastDx-F.graphics.element.attrs.width),F.config.endMs,i)){if(G.processid.includes(".1")){var de=D.components.data.find((function(e){return e.config.processId+".1"===G.processid})),ge=M[de.config.processId+"-a"],he=M[de.config.processId+"-b"];he.config.startMs<ge.config.startMs?(de.config._startDate=he.config._startDate,de.config.startMs=he.config.startMs):(de.config._startDate=X.updatedStartDate,de.config.startMs=F.config.startMs),he.config.endMs<ge.config.endMs?(de.config._endDate=X.updatedEndDate,de.config.endMs=F.config.endMs):(de.config._endDate=he.config._endDate,de.config.endMs=he.config.endMs),de.config.toolText=D._getParentToolTextOnDrag.call(C,de.config.startMs,de.config.endMs,de.config),D.parsePlotAttributes(de,i-1)}if(G.processid.includes(".2")){var pe=D.components.data.find((function(e){return e.config.processId+".2"===G.processid})),ue=M[pe.config.processId+"-a"],fe=M[pe.config.processId+"-b"];fe.config.endMs<ue.config.endMs?(pe.config._endDate=ue.config._endDate,pe.config.endMs=ue.config.endMs):(pe.config._endDate=X.updatedEndDate,pe.config.endMs=F.config.endMs),fe.config.startMs<ue.config.startMs?(pe.config._startDate=X.updatedStartDate,pe.config.startMs=F.config.startMs):(pe.config._startDate=ue.config._startDate,pe.config.startMs=ue.config.startMs),pe.config.toolText=D._getParentToolTextOnDrag.call(C,pe.config.startMs,pe.config.endMs,pe.config),D.parsePlotAttributes(pe,i-2)}}}else if("right"===A){var me,ve,be,xe,ke;if(-1===Math.sign(e)&&3===F.graphics.element.attrs.width)return;var Ce=Object.values(M).filter((function(e){return e.graphics.element.attrs.y===P.attrs.y})).sort((function(e,t){return e.graphics.element.attrs.x-t.graphics.element.attrs.x})),ye=null==Ce?void 0:Ce.findIndex((function(e,t){var a;return e.graphics.element.attrs.y===P.attrs.y&&e.graphics.element.attrs.x===P.attrs.x&&"Delay"!==(null==(a=E[t])?void 0:a.label)}));if(x=Ce[ye+1],b=null==(me=Ce[ye+1])?void 0:me.config,u=null==(ve=x)||null==(be=ve.graphics)?void 0:be.element,-1===Math.sign(e)&&u&&b&&"Delay"===(null==(xe=E[b.index])?void 0:xe.label)&&F.graphics.element.attrs.width===u.attrs.width+1)return;if(F.config.endMs=B.getDraggedValue(U.xPos+U.lastDx),u&&b&&"Delay"===(null==(ke=E[b.index])?void 0:ke.label)?(b.endMs=F.config.endMs,b.startMs=B.getDraggedValue(U.xPos+U.lastDx-u.attrs.width),D.parsePlotAttributes(x,i+1)):!T.allowtaskbaroverlap&&1===Math.sign(e)&&u&&C.attrs.x+C.attrs.width>=u.attrs.x&&u.attrs.y===C.attrs.y&&(F.config.endMs=B.getDraggedValue(u.attrs.x)),X.updatedEndDate!==_.getFormattedDate(F.config.endMs,p?"mm/dd/yyyy hh:mn:ss":T.dateformat)){var we=JSON.parse(JSON.stringify(X));N.fireChartInstanceEvent(k,we)}if(X.updatedStartDate=X.prevStartDate,X.updatedEndDate=_.getFormattedDate(F.config.endMs,p?"mm/dd/yyyy hh:mn:ss":T.dateformat),G.end=X.updatedEndDate,"0"===(null==G?void 0:G.showasgroup)&&D._checkUpdatedTaskWidth.call(C,B.getDraggedValue(F.config.dragStart.xPos+F.config.dragStart.lastDx-F.graphics.element.attrs.width),F.config.endMs,i)){if(G.processid.includes(".1")){var Fe=D.components.data.find((function(e){return e.config.processId+".1"===G.processid})),Pe=M[Fe.config.processId+"-a"],Ae=M[Fe.config.processId+"-b"];Ae.config.startMs<Pe.config.startMs?(Fe.config._startDate=Ae.config._startDate,Fe.config.startMs=Ae.config.startMs):(Fe.config._startDate=X.updatedStartDate,Fe.config.startMs=F.config.startMs),Ae.config.endMs<Pe.config.endMs?(Fe.config._endDate=X.updatedEndDate,Fe.config.endMs=F.config.endMs):(Fe.config._endDate=Ae.config._endDate,Fe.config.endMs=Ae.config.endMs),Fe.config.toolText=D._getParentToolTextOnDrag.call(C,Fe.config.startMs,Fe.config.endMs,Fe.config),D.parsePlotAttributes(Fe,i-1)}if(G.processid.includes(".2")){var De=D.components.data.find((function(e){return e.config.processId+".2"===G.processid})),Le=M[De.config.processId+"-a"],Se=M[De.config.processId+"-b"];Se.config.endMs<Le.config.endMs?(De.config._endDate=Le.config._endDate,De.config.endMs=Le.config.endMs):(De.config._endDate=X.updatedEndDate,De.config.endMs=F.config.endMs),Se.config.startMs<Le.config.startMs?(De.config._startDate=X.updatedStartDate,De.config.startMs=F.config.startMs):(De.config._startDate=Le.config._startDate,De.config.startMs=Le.config.startMs),De.config.toolText=D._getParentToolTextOnDrag.call(C,De.config.startMs,De.config.endMs,De.config),D.parsePlotAttributes(De,i-2)}}}for(F.config.toolText=$,X.index=null==F||null==(n=F.config)?void 0:n.index,X.id=null==F?void 0:F.config.taskId,i=0,s=O.length;i<s&&(g=O[i],F.config.index!==g.config.index);i++);D._checkUpdatedTaskWidth.call(C,F.config.startMs,F.config.endMs,F.config.endMs,i)&&(w.tempStartMs=F.config.startMs,w.tempEndMs=F.config.endMs,(null==(r=S.connectors)?void 0:r.length)>0&&(E[W]=f(f({},E[W]),{},{start:_.getFormattedDate(F.config.startMs,T.dateformat),end:_.getFormattedDate(F.config.endMs,T.dateformat)}),S.tasks=[f(f({},S.tasks[0]),{},{task:E})],D._linkedParent.getChildren().connector&&(D._linkedParent.getChildren().connector[0]._state.dragged=!0,D._linkedParent.getChildren().connector[0].draw())),D.parsePlotAttributes(F,i),D&&D.draw(),D._linkedParent.getChildren().connector&&(D._linkedParent.getChildren().connector[0]._state.dragged=!1))},a.dragStart=function(e){var t=this,a=t.data("drag-options").dataset,n=a.getFromEnv("chart").components.tasksMap;a._dragStart.call(t,e);var o=Object.values(n).filter((function(e){return e.graphics.element.attrs.y===t.attrs.y})).sort((function(e,t){return e.graphics.element.attrs.x-t.graphics.element.attrs.x}));t.data("arrayOfAdjacentElements",o)},a._dragStart=function(){var e,t=this.data("drag-options"),a=t.dataObj,n=a.graphics.element,o=n.getBBox(),r=a.config,i=t.dataset,l=i.getFromEnv("dataSource").chart,s=i.getFromEnv("number-formatter"),c=i.getFromEnv("chart"),d=x,g=r.dragStart||(r.dragStart={}),h=r.dragData||(r.dragData={});g.xPos=r.xPos,g.x=r.xPos,g.bBox=o,h.prevStartDate=s.getFormattedDate(r.startMs,l.dateformat),h.prevEndDate=s.getFormattedDate(r.endMs,l.dateformat),g.origX=g.lastDx||(g.lastDx=0),e=n.data(C),c.fireChartInstanceEvent(d,e)},a.dragMove=function(e,t){var a=this,n=a.data("drag-options"),o=n.dataset,l=o.getFromEnv("dataSource").chart,s=a.data("arrayOfAdjacentElements"),c=t[0],d=t[1],g=t[2],h=t[3];function p(){return(p=(0,i["default"])(r["default"].mark((function e(){var t,n,o,i,l,c,d,g,h,p,u;return r["default"].wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=null==s?void 0:s.findIndex((function(e){return e.graphics.element.attrs.y===a.attrs.y&&e.graphics.element.attrs.x===a.attrs.x})),l=null==(t=s[d-1])||null==(n=t.graphics)?void 0:n.element,0!==s.length||l||(l=null==a||null==(g=a.prev)||null==(h=g.prev)?void 0:h.prev),c=null==(o=s[d+1])||null==(i=o.graphics)?void 0:i.element,0!==s.length||c||(c=null==a||null==(p=a.next)||null==(u=p.next)?void 0:u.next),e.abrupt("return",{nextEl:c,prev:l});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}l.allowtaskbaroverlap?o._dragMove.call(a,c,d,g,h):function(){return p.apply(this,arguments)}().then((function(e){n.nextElement=e.nextEl,n.prevElement=e.prev,o._dragMove.call(a,c,d,g,h,e.nextEl,e.prev)}))},a._dragMove=function(e,t,a,n,r,i){var l,s,c,g,h,p,u,b,x,C,y,w,F,P,A,D=this,L=e,S=D.data("drag-options"),T=S.dataObj,E=S.dataset,N=E.config,M=E.getFromEnv("dataSource"),_=Array.isArray(null==M?void 0:M.tasks)?null==M||null==(l=M.tasks[0])?void 0:l.task:null==M||null==(s=M.tasks)?void 0:s.task,B=T.config,V=B.id,O=null==B?void 0:B.index,H=_[O],I=M.chart,R=E.getFromEnv("chart"),W=E.getFromEnv("number-formatter"),G=E.getFromEnv("yAxis"),z=E.getFromEnv("xAxis").config.processes.processMap,j=E.components.data,U=T.graphics.element,X=(0,d.getFirstValue)((0,d.pluck)(H.label,H.name),v),K=Math.min((0,d.pluckNumber)(H.percentcomplete,-1),100),Y=R.components.tasksMap,Z=B.dragStart,J=B.dragData,$=Z.bBox.x+L,q=Z.bBox.x2+L,Q=E.getFromEnv("chartConfig"),ee=Q.canvasLeft,te="",ae=G.getPixel(Q.scrollOptions.viewPortMax),ne=Q.dateintooltip,oe=_[O+1],re=_[O-1],ie=_[O],le=""+(null==oe?void 0:oe.id),se=""+(null==re?void 0:re.id),ce=""+(null==ie?void 0:ie.id),de=null==(c=Y[le])?void 0:c.config,ge=null==(g=Y[se])?void 0:g.config,he=(null==oe?void 0:oe.processid)===(null==H?void 0:H.processid)&&"Delay"===(null==oe?void 0:oe.label)||(null==re?void 0:re.processId)===(null==H?void 0:H.processid)&&"Delay"===(null==re?void 0:re.label)||"Delay"===(null==H?void 0:H.label),pe="Delay"===(null==H?void 0:H.label);if(Q.scrolltodate&&(ee+=w=Q.viewPortConfig.scaleX*Q.viewPortConfig.x,ae+=w),pe){var ue,fe=null==(ue=Y[ce])?void 0:ue.config.width;(A=$-(ge.width-fe))<ee&&(L+=ee+1.5-A)}else $<ee&&(L+=ee+1.5-$);if(q>ae&&(L-=q-ae),L&&U.data("fire_click_event",0),H&&((te=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(H.tooltext,N.hovertext,N.plottooltext,I.plottooltext),!1)))!==o?(V&&z[V]&&(C=z[V].catObj.label||z[V].catObj.name),te=(0,d.parseTooltext)(te,[3,28,29,30,31],{end:W.getFormattedDate(T.config.endMs,I.outputdateformat),start:W.getFormattedDate(T.config.startMs,I.outputdateformat),label:X,percentComplete:-1!==K?W.percentValue(K):v,processName:C},E.config)):te=(X!==v?X+(ne?", ":v):v)+(ne?W.getFormattedDate(T.config.startMs,I.outputdateformat)+" - "+W.getFormattedDate(T.config.endMs,I.outputdateformat):v)),P=m(H.start),Z.lastDx=L,T.config.startMs=G.getDraggedValue(Z.xPos+Z.lastDx),J.updatedStartDate!==W.getFormattedDate(T.config.startMs,P?"dd/mm/yyyy hh:mn:ss":I.dateformat)){var me=JSON.parse(JSON.stringify(J));R.fireChartInstanceEvent(k,me)}T.config.endMs=G.getDraggedValue(Z.xPos+Z.lastDx+T.config.width);var ve=!(null==T||null==(h=T.graphics)||!h.taskFill)&&(null==T||null==(p=T.graphics)?void 0:p.taskFill.id)===r.id;if(!he&&1===Math.sign(e)&&!ve&&r&&D.attrs.x+D.attrs.width>=r.attrs.x&&r.attrs.y===D.attrs.y?(T.config.startMs=G.getDraggedValue(r.attrs.x-T.config.width),T.config.endMs=G.getDraggedValue(r.attrs.x)):!he&&-1===Math.sign(e)&&i&&i.attrs.x+i.attrs.width>=D.attrs.x&&(null==S?void 0:S.prevElement.attrs.y)===D.attrs.y?(T.config.startMs=G.getDraggedValue(i.attrs.x+i.attrs.width),T.config.endMs=G.getDraggedValue(i.attrs.x+i.attrs.width+T.config.width)):he&&("Delay"!==H.label&&oe&&de?(de.startMs=G.getDraggedValue(Z.xPos+Z.lastDx+T.config.width-Y[""+oe.id].graphics.element.attrs.width),de.endMs=G.getDraggedValue(Z.xPos+Z.lastDx+T.config.width),E.parsePlotAttributes(Y[""+oe.id],x+1)):"Delay"===H.label&&re&&ge&&(ge.startMs=G.getDraggedValue(Z.xPos+Z.lastDx+T.config.width-Y[""+re.id].graphics.element.attrs.width),ge.endMs=G.getDraggedValue(Z.xPos+Z.lastDx+T.config.width),E.parsePlotAttributes(Y[""+re.id],x-1))),T.config.toolText=te,J.updatedStartDate=W.getFormattedDate(T.config.startMs,P?"dd/mm/yyyy hh:mn:ss":I.dateformat),J.updatedEndDate=W.getFormattedDate(T.config.endMs,P?"dd/mm/yyyy hh:mn:ss":I.dateformat),J.index=null==T||null==(u=T.config)?void 0:u.index,J.id=null==T?void 0:T.config.taskId,"1"===(null==H?void 0:H.showasgroup)){var be,xe,ke=Y[H.processid+"-a"],Ce=Y[H.processid+"-b"];if((null==ke||null==(be=ke.config)?void 0:be.endMs)<(null==Ce||null==(xe=Ce.config)?void 0:xe.endMs)){var ye=G.getDraggedValue(Z.xPos+Z.lastDx+(null==ke?void 0:ke.config.width)),we=W.getFormattedDate(ye,I.dateformat),Fe=G.getDraggedValue(Z.xPos+Z.lastDx+(T.config.width-(null==Ce?void 0:Ce.config.width))),Pe=W.getFormattedDate(Fe,I.dateformat);Ce.config.startMs>=ke.config.startMs?(ke&&(ke.config._startDate=J.updatedStartDate,ke.config.startMs=T.config.startMs,ke.config._endDate=we,ke.config.endMs=ye,E.parsePlotAttributes(ke,x+1),ke.config.toolText=E._getParentToolTextOnDrag.call(D,ke.config.startMs,ke.config.endMs,ke.config)),Ce&&(Ce.config._startDate=Pe,Ce.config.startMs=Fe,Ce.config._endDate=J.updatedEndDate,Ce.config.endMs=T.config.endMs,E.parsePlotAttributes(Ce,x+2),Ce.config.toolText=E._getParentToolTextOnDrag.call(D,Ce.config.startMs,Ce.config.endMs,Ce.config))):Ce&&(Ce.config._startDate=Pe,Ce.config.startMs=Fe,Ce.config._endDate=J.updatedEndDate,Ce.config.endMs=T.config.endMs,E.parsePlotAttributes(Ce,x+2),Ce.config.toolText=E._getParentToolTextOnDrag.call(D,Ce.config.startMs,Ce.config.endMs,Ce.config))}else{var Ae,De,Le=G.getDraggedValue(Z.xPos+Z.lastDx+(null==Ce?void 0:Ce.config.width)),Se=W.getFormattedDate(Le,I.dateformat),Te=G.getDraggedValue(Z.xPos+Z.lastDx+(T.config.width-(null==ke?void 0:ke.config.width))),Ee=W.getFormattedDate(Te,I.dateformat);(null==Ce||null==(Ae=Ce.config)?void 0:Ae.startMs)<(null==ke||null==(De=ke.config)?void 0:De.startMs)?(ke&&(ke.config._startDate=Ee,ke.config.startMs=Te,ke.config._endDate=J.updatedEndDate,ke.config.endMs=T.config.endMs,E.parsePlotAttributes(ke,x+1),ke.config.toolText=E._getParentToolTextOnDrag.call(D,ke.config.startMs,ke.config.endMs,ke.config)),Ce&&(Ce.config._startDate=J.updatedStartDate,Ce.config.startMs=T.config.startMs,Ce.config._endDate=Se,Ce.config.endMs=Le,E.parsePlotAttributes(Ce,x+2),Ce.config.toolText=E._getParentToolTextOnDrag.call(D,Ce.config.startMs,Ce.config.endMs,Ce.config))):ke&&(ke.config._startDate=Ee,ke.config.startMs=Te,ke.config._endDate=J.updatedEndDate,ke.config.endMs=T.config.endMs,E.parsePlotAttributes(ke,x+1),ke.config.toolText=E._getParentToolTextOnDrag.call(D,ke.config.startMs,ke.config.endMs,ke.config))}}if("0"===(null==H?void 0:H.showasgroup)){if(H.processid.includes(".1")){var Ne=E.components.data.find((function(e){return e.config.processId+".1"===H.processid})),Me=Y[Ne.config.processId+"-a"],_e=Y[Ne.config.processId+"-b"],Be=_e.config.endMs,Ve=_e.config.startMs;Be||(Be=G.getDraggedValue(_e.config.dragStart.xPos+_e.config.dragStart.lastDx+(null==_e?void 0:_e.config.width))),Ve||(Ve=G.getDraggedValue(_e.config.dragStart.xPos+_e.config.dragStart.lastDx)),Ve<Me.config.startMs?(Ne.config._startDate=_e.config._startDate,Ne.config.startMs=Ve):(Ne.config._startDate=J.updatedStartDate,Ne.config.startMs=T.config.startMs),Be<Me.config.endMs?(Ne.config._endDate=J.updatedEndDate,Ne.config.endMs=T.config.endMs):(Ne.config._endDate=_e.config._endDate,Ne.config.endMs=Be),Ne.config.toolText=E._getParentToolTextOnDrag.call(D,Ne.config.startMs,Ne.config.endMs,Ne.config),E.parsePlotAttributes(Ne,x-1)}if(H.processid.includes(".2")){var Oe=E.components.data.find((function(e){return e.config.processId+".2"===H.processid})),He=Y[Oe.config.processId+"-a"],Ie=Y[Oe.config.processId+"-b"],Re=He.config.endMs,We=He.config.startMs;Re||(Re=G.getDraggedValue(He.config.dragStart.xPos+He.config.dragStart.lastDx+(null==He?void 0:He.config.width))),We||(We=G.getDraggedValue(He.config.dragStart.xPos+He.config.dragStart.lastDx)),Ie.config.endMs<Re?(Oe.config._endDate=He.config._endDate,Oe.config.endMs=Re):(Oe.config._endDate=J.updatedEndDate,Oe.config.endMs=T.config.endMs),Ie.config.startMs<We?(Oe.config._startDate=J.updatedStartDate,Oe.config.startMs=T.config.startMs):(Oe.config._startDate=He.config._startDate,Oe.config.startMs=We),Oe.config.toolText=E._getParentToolTextOnDrag.call(D,Oe.config.startMs,Oe.config.endMs,Oe.config),E.parsePlotAttributes(Oe,x-2)}}for(x=0,y=j.length;x<y&&(F=j[x],T.config.index!==F.config.index);x++);(null==(b=M.connectors)?void 0:b.length)>0&&(_[O]=f(f({},_[O]),{},{start:W.getFormattedDate(T.config.startMs,I.dateformat),end:W.getFormattedDate(T.config.endMs,I.dateformat)}),M.tasks=[f(f({},M.tasks[0]),{},{task:_})],E._linkedParent.getChildren().connector&&(E._linkedParent.getChildren().connector[0]._state.dragged=!0,E._linkedParent.getChildren().connector[0].draw())),E.parsePlotAttributes(T,x),E&&E.draw(),E._linkedParent.getChildren().connector&&(E._linkedParent.getChildren().connector[0]._state.dragged=!1),E.taskHoverHandler.call(D,R)},a.dragUp=function(e){this.data("drag-options").dataset._dragUp.call(this,e)},a._dragUp=function(e){var t,a,n,o=this.data("drag-options"),r=o.dataObj,i=o.dataset,l=i.getFromEnv("dataSource"),s=null==l||null==(t=l.datatable)?void 0:t.datacolumn,c=r.config,d=c.id,g=null==c?void 0:c.index,h=o.direction,p=i.getFromEnv("number-formatter"),u=Array.isArray(null==l?void 0:l.tasks)?null==l||null==(a=l.tasks[0])?void 0:a.task:null==l||null==(n=l.tasks)?void 0:n.task,m=u[g],v=l.chart,b=i.getFromEnv("chart"),x=b.components.tasksMap;if(v.autoupdatestartenddatecolumn&&"Actual"===m.label&&(null==s?void 0:s.length)>0){var k,C=Number(d)-1,y=u[g+1],w=null==(k=x[""+(null==y?void 0:y.id)])?void 0:k.config,F=(null==y?void 0:y.processid)===(null==m?void 0:m.processid)&&"Delay"===(null==y?void 0:y.label)||"Delay"===(null==m?void 0:m.label);C>=0&&(l.datatable.datacolumn[0].text[C].label=p.getFormattedDate(r.config.startMs,v.dateformat),l.datatable.datacolumn[1].text[C].label=p.getFormattedDate(r.config.endMs,v.dateformat),F&&(u[w.index]=f(f({},u[w.index]),{},{start:p.getFormattedDate(w.startMs,v.dateformat),end:p.getFormattedDate(w.endMs,v.dateformat)}),l.tasks=[f(f({},l.tasks[0]),{},{task:u})])),b._env.chartInstance.setChartData(l)}if(i._linkedParent.getChildren().connector&&(i._linkedParent.getChildren().connector[0]._state.dragged=!0,i._linkedParent.getChildren().connector[0].draw()),i.taskHoverOutHandler.call(this,b),"Actual"===m.label&&h&&"left"===h){var P,A=u[g+1],D=null==(P=x[""+(null==A?void 0:A.id)])?void 0:P.config;r.config.startMs>D.startMs&&(r.config.startMs=D.startMs)}else o.tempStartMs&&(r.config.startMs=o.tempStartMs),o.tempEndMs&&(r.config.endMs=o.tempEndMs)},a.slackElemHandlers=function(e,t){var a=this;e&&e.on("fc-click",(function(e){t.plotEventHandler(this,e)})).hover((function(e){var n=this,o=n.data("dataObj");t.plotEventHandler(n,e,"DataPlotRollOver"),o.config.showHoverEffect&&a.taskHoverHandler.call(n,t)}),(function(e){var n=this,o=n.data("dataObj");t.plotEventHandler(n,e,"DataPlotRollOut"),o.config.showHoverEffect&&a.taskHoverOutHandler.call(n,t)}))},a.trimData=function(e){if(this.config.JSONData){var t,a,n=this.config,o=n&&n.context,r=o&&o.prevCatlen,i=this.getFromEnv("xAxis").getProcessLen(),l=r-i,s=n.JSONData,c=s.task&&s.task.length,d=e.task&&e.task.length||0,g=c-d;l>g?(t=l,a=i):(t=g,a=d),t>0&&this.removeData(a,t,!1)}},a.getAxisValuePadding=function(){return this.config.defaultPadding},a.drawLabel=function(){var e,t,a,n,o,r,i,l,s,c,d,g,h,p,u=this,f=u.config,m=u.getFromEnv("chart"),b=u.getFromEnv("animationManager"),x=u.components.data,k=u.getContainer("dataLabelContainer"),C=x.length;for(p=0;p<C;p++)i=(s=x[p]).config,l=s.graphics,c=i.eventArgs,e=l.valElem,d=i._labelTextAttr,D(i.label)&&i.label!==v&&d?((n=l.valElem=b.setAnimation({el:e||"text",attr:d,container:k,component:u})).outlineText(f.showTextOutline,d.fill),e?(n.removeCSS(),n.show()):(n.data("dataset",u),u.slackElemHandlers(n,m)),n.css(i.style),n.data("dataObj",s).data("dataObj",s).data("eventArgs",c)):e&&b.setAnimation({el:e,component:u,callback:A,doNotRemove:!0}),t=l.startValElem,g=i._startLabelTextAttr,D(i.startDate)&&i.startDate!==v&&g?((o=l.startValElem=b.setAnimation({el:t||"text",attr:g,container:k,component:u})).outlineText(f.showTextOutline,g.fill),t?(o.removeCSS(),o.show()):(o.data("dataset",u),u.slackElemHandlers(o,m)),o.css(i.style),o.data("dataObj",s).data("chart",m).data("eventArgs",c)):t&&b.setAnimation({el:t,component:u,callback:A,doNotRemove:!0}),a=l.endValElem,h=i._endLabelTextAttr,D(i.endDate)&&i.endDate!==v&&h?((r=l.endValElem=b.setAnimation({el:a||"text",attr:h,container:k,component:u})).outlineText(f.showTextOutline,h.fill),a?(r.removeCSS(),r.show().css(i.style)):(r.data("dataset",u),u.slackElemHandlers(r,m)),r.data("dataObj",s).data("chart",m).data("eventArgs",c)):a&&b.setAnimation({el:a,component:u,callback:A,doNotRemove:!0})},a.taskHoverHandler=function(){var e=this.data("dataObj")||{},t=this.data("dataset").components.data,a=e.config||{},n=a.index,o=t[n]&&t[n].graphics,r={fill:a.hoverFillColor,stroke:a.hoverBorderColor};-1===a.percentComplete||a.showAsGroup||(o.slackElem.attr({fill:a.slackHoverColor}),o.taskFill.attr({fill:a.hoverFillColor}),delete r.fill),o.element.attr(r)},a.taskHoverOutHandler=function(){var e=this.data("dataObj")||{},t=(this.data("dataset")||{}).components.data,a=e.config||{},n=a.index,o=t[n]&&t[n].graphics,r={fill:a.color,stroke:a.borderColor,"stroke-width":a.borderThickness,"stroke-dasharray":a.dashedStyle};-1===a.percentComplete||a.showAsGroup||(o&&o.slackElem.attr({fill:a.slackColor}),o&&o.taskFill.attr({fill:a.color}),delete r.fill),o&&o.element.attr(r)},a.parsePlotAttributes=function(e,t){var a,n,o,r,i,l,s,c,g,h,p,u,f,m,b,x,k,C,P,A,D,L,E,N,M,_,B,V,O,H,I,R=this,W=R.getFromEnv("chart"),G=W.getFromEnv("dataSource"),z=W.config,j=z.canvasTop,U=W.getChildren("xAxis")[0],X=W.getChildren("yAxis")[0],K=t,Y=z.datepadding,Z=G.processes.process&&G.processes.process.length,J=z.taskbarroundradius,$=z.viewPortConfig,q=$.x,Q=$.scaleX;l=e&&e.config,!e.graphics&&(e.graphics={}),c=l&&l.startMs,g=l&&l.endMs,void 0!==e&&void 0!==c&&null!==g&&(M=l.taskHeight,h=l.link,C=l.borderThickness,u=l.id,E=l.color,I=l.lineHeight,K>Z-1&&(K=0),H="undefined"!=typeof l.id?X.getProcessPositionById(u):X.getProcessPositionByIndex(K),K++,N=(f=H.height)*(S(l.topPadding)&&.01*parseFloat(l.topPadding,10))||(0,d.pluckNumber)(l.topPadding,f),p=l.height=f*(S(M)&&.01*parseFloat(M,10))||(0,d.pluckNumber)(M,f),x=l.xPos=U.getPixel(l.startMs)+q*Q,s=U.getPixel(l.endMs)+q*Q,m=l.width=Math.round(b=s-x),k=H.bottom+j-f,k=l.yPos=k+Math.min(N,f-p),D=.5*p,x=(A=(0,d.crispBound)(x,k,m,p,C)).x,k=A.y,m=A.width,p=A.height,!1!==T(x,k,m,p)?(l.props={element:{},perComElem:{},slackElem:{}},P=l.showAsGroup?{path:["M",x,k,"V",k+p,"L",x+D,k+D,"H",x+m-D,"L",x+m,k+p,"V",k,"H",x]}:{x:A.x,y:A.y,width:A.width||1,height:p},Object.assign(P,{fill:E,stroke:l.borderColor,cursor:h?"pointer":null!=R&&null!=(a=R.config)&&a.allowDrag?"move":v,r:J,"stroke-width":C,width:A.width||1}),l.eventArgs={processId:l.processId,taskId:l.taskId,start:l._startDate,end:l._endDate,showAsGroup:l.showAsGroup,link:l.link,sourceType:"task",percentComplete:-1!==l.percentComplete,bgColor:l.rawTaskColor,bgAlpha:l.rawTaskAlpha,font:l.textFont,fontSize:l.textFontSize,fontColor:l.textColor},-1===l.percentComplete||l.showAsGroup||(b=m*l.percentComplete*.01,E=d.TRACKER_FILL,l.props.perComElem={attr:{x:x,y:k,height:p,width:b,fill:l.color,cursor:h?"pointer":v,"stroke-width":0}},l.props.slackElem={attr:{x:x+b||1,y:k,width:m-b,height:p,fill:l.slackColor,cursor:h?"pointer":v,"stroke-width":0}},P.fill=E),L=l.labelAlign,_=l._labelTextAttr||(l._labelTextAttr={}),l.props.element.attr=P,_.x=x+m*w[L]+F[L],_.y=k-.5*parseInt(I,10)-z.tasklabelspadding,_.text=l.label,_.direction=z.textDirection,_["text-anchor"]=y[L],_.cursor=O,_.fill=(0,d.convertColor)(l.textColor),_["line-height"]=I,(V=l._startLabelTextAttr||(l._startLabelTextAttr={})).x=x-2-Y,V.y=k+.5*p,V.text=l.startDate,V["text-anchor"]=d.POSITION_END,V.cursor=O,V.direction=z.textDirection,V.fill=(0,d.convertColor)(l.textColor),V["line-height"]=I,V["font-size"]=null==(n=l)||null==(o=n.style)?void 0:o.fontSize,(B=l._endLabelTextAttr||(l._endLabelTextAttr={})).x=x+m+2+Y,B.y=k+.5*p,B.text=l.endDate,B.cursor=O,B.direction=z.textDirection,B["text-anchor"]=d.POSITION_START,B.fill=(0,d.convertColor)(l.textColor),B["line-height"]=I,B["font-size"]=null==(r=l)||null==(i=r.style)?void 0:i.fontSize,l.cursor=O):l.inValidValue=!0)},a.allocatePosition=function(){var e,t,a=this.components.data||[],n=a.length;for(e=0;e<n;e++)t=a[e],this.parsePlotAttributes(t,e)},a._removeDataVisuals=function(e){var t,a,n,o=this.getFromEnv("animationManager");if(e)for(t in a=e.graphics)(n=a[t])&&o.setAnimation({el:n,component:this})},a.draw=function(){var e,t,a,n,o,r,i,l,s,c,d,g,h,u,f,m,v,b,x=this,k=x.getState("visible"),C=x.getFromEnv("chart"),y=x.getFromEnv("toolTipController"),w=C.config,F=C.getChildren("canvas")[0],P=C.getChildren("xAxis")[0],D=x.getFromEnv("dataSource"),L=Array.isArray(null==D?void 0:D.tasks)?null==D||null==(e=D.tasks[0])?void 0:e.task:null==D||null==(t=D.tasks)?void 0:t.task,S=x.getFromEnv("animationManager"),T=F.getChildContainer("taskGroup"),E=x.components,N=E.data,M=E.removeDataArr,_=M&&M.length,B=C.getChildContainer("datalabelsGroup"),V=F.getContainer("labelsGroup"),O=x.getContainer("dataLabelContainer"),H=x._contextChanged(),I=x.getContainer("taskColumnContainer"),R=x.getContainer("taskColumnShadowContainer"),W=w.viewPortConfig,G=W.x,z=W.scaleX,j=w.showshadow,U=x.dragMove,X=x.dragStart,K=x.dragUp,Y=x.dragMoveWidthHandler,Z=x.dragStartWidthHandler,J=x.config;if(x.getState("removed")||x.getState("dirty")||H&&k||J.allowDrag){for(I||(I=x.addContainer("taskColumnContainer",S.setAnimation({el:"group",attr:{name:"columns"},container:T,component:x}))),k?I.show():I.hide(),V||(V=F.addContainer("labelsGroup",S.setAnimation({el:"group",attr:{name:"task-plot-labels"},container:B,component:F}))),O?O.removeCSS():O=x.addContainer("dataLabelContainer",S.setAnimation({el:"group",attr:{name:"labels"},container:T,component:x})),k?O.show():O.hide(),V=S.setAnimation({el:V,attr:{transform:"T"+-C.config.xOffset+",0"},component:F}),O.css(J.labelStyle),R||(R=x.addContainer("taskColumnShadowContainer",S.setAnimation({el:"group",attr:{name:"shadow"},container:T,component:x}).toBack()),k||R.hide()),n=N.length,a=0;a<n;a++){var $,q=L[null==($=r=(o=N[a])&&o.config)?void 0:$.index];if(!o.graphics&&(o.graphics={}),i=o.graphics,l=r&&r.startMs,s=r&&r.endMs,void 0!==o&&void 0!==l&&null!==s&&(c=r.toolText,!r.inValidValue)){d=i.element,m=r.showAsGroup?"path":"rect",d&&d.type!==m&&(d.remove(),d=i.element=null),v=r.props.element.attr,i.element=S.setAnimation({el:d||m,label:m,attr:v,container:I,component:x}),d||(d=i.element,null!=J&&J.allowDrag&&d.drag(U,X,K),d.data("dataset",x),x.slackElemHandlers(d,C)),b=r.eventArgs;var Q=r.xPos=P.getPixel(r.startMs)+G*z,ee=P.getPixel(r.endMs)+G*z,te=r.width=Math.round(ee-Q),ae=d.paper.getById(o.widthHandlerRightId),ne=d.paper.getById(o.widthHandlerLeftId);if(-1===r.percentComplete||r.showAsGroup?(i.taskFill&&S.setAnimation({el:i.taskFill,component:x,callback:A,doNotRemove:!0}),i.slackElem&&S.setAnimation({el:i.slackElem,component:x,callback:A,doNotRemove:!0})):(h=i.taskFill,f=i.slackElem,g=i.taskFill=S.setAnimation({el:h||"rect",attr:r.props.perComElem.attr,container:I,component:x}),h||x.slackElemHandlers(g,C),u=i.slackElem=S.setAnimation({el:f||"rect",attr:r.props.slackElem.attr,container:I,component:x}),I.node.insertBefore(g.node,d?d.node:null),I.node.insertBefore(u.node,d?d.node:null),f||x.slackElemHandlers(u,C),g.show(),g.data("chart",C).data("dataObj",o).data("dataset",x),u.show(),g&&g.data("eventArgs",b),u&&u.data("eventArgs",b).data("dataObj",o).data("dataset",x).data("chart",C)),d.show().shadow({opacity:j},R).data("dataObj",o).data("chart",C).data("dataset",x).data("eventArgs",b),null!=J&&J.allowDrag&&d.data("drag-options",{dataObj:o,dataset:x,datasetIndex:x.index,pointIndex:o.config.index,cursor:"move",chart:C,link:o.link}),!ne&&null!=J&&J.allowDrag&&"Delay"!==(null==q?void 0:q.label)){var oe=d.paper.rect(d.attrs.x-1,d.attrs.y,2,d.attrs.height).attr({fill:"rgb(51, 189, 218)",stroke:"none",cursor:"ew-resize",opacity:0});oe.insertAfter(d),o.widthHandlerLeftId=oe.id,oe.drag(Y,Z,K),oe.show().data("dataObj",o).data("chart",C).data("dataset",x).data("eventArgs",b),oe.data("drag-options",{dataObj:o,dataset:x,datasetIndex:x.index,pointIndex:o.config.index,cursor:"ew-resize",chart:C,link:o.link,direction:"left",taskbarElement:d}),oe.data("dataset",x)}else ne&&!isNaN(d.attrs.x)&&ne.attr("x",d.attrs.x-1);if(!ae&&null!=J&&J.allowDrag&&"Delay"!==(null==q?void 0:q.label)){var re=d.paper.rect(d.attrs.x+te-1,d.attrs.y,2,d.attrs.height).attr({fill:"rgb(51, 189, 218)",stroke:"none",cursor:"ew-resize",opacity:0});re.insertAfter(d),o.widthHandlerRightId=re.id,re.drag(Y,Z,K),re.data("drag-options",{dataObj:o,dataset:x,datasetIndex:x.index,pointIndex:o.config.index,cursor:"ew-resize",chart:C,link:o.link,direction:"right",taskbarElement:d}),re.data("dataset",x)}else ae&&!isNaN(d.attrs.x)&&ae.attr("x",d.attrs.x+te-1);y.enableToolTip(d,c)}}for(x.drawn?x.drawLabel():x.addJob("drawLabel",x.drawLabel.bind(x),p.priorityList.label),x.drawn=!0,a=0;a<_;a++)x._removeDataVisuals(M.shift())}},t}(c["default"]),N=E;t["default"]=N},1590:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=function(e){var t,a,n=e.getChildren("canvas")[0],l={zoomable:!0,pannable:!0},s=e._feedAxesRawData();(0,o.componentFactory)(e,i["default"],"xAxis",1,s.xAxisConf),(0,o.componentFactory)(e,r["default"],"yAxis",1,s.yAxisConf),t=e.getChildren("yAxis")[0],a=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",n),a.setLinkedItem("canvas",n),n.attachAxis(a,!1,e.zoomX?l:{}),n.attachAxis(t,!0,e.zoomY?l:{}),e._setCategories()};var o=a(274),r=n(a(1591)),i=n(a(1595))},1588:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=function(e){var t;(0,r.componentFactory)(e,o["default"],"canvas",1),t=e.getChildren("canvas");for(var a=0,n=t.length;a<n;a++)t[a].configure()};var o=n(a(1589)),r=a(274)},1602:(e,t,a)=>{t.__esModule=!0,t["default"]=function(e){var t,a,r,i=e.getFromEnv("dataSource");if(o(i))return void e.setChartMessage();t=i.tasks,a=i.connectors,r=i.milestones,t&&(0,n.datasetFactory)(e,e.getDSdef("task"),"task",1,t.length?t:[t]),a&&(0,n.datasetFactory)(e,e.getDSdef("connector"),"connector",1,a.length?a:[a]),r&&(0,n.datasetFactory)(e,e.getDSdef("milestone"),"milestone",1,r.length?r:[r]),e.getDatasets().forEach((function(t){t.addToEnv("yAxis",e.getChildren("xAxis")[0]),t.addToEnv("xAxis",e.getChildren("yAxis")[0])})),e.config.showLegend&&e._createLegendItems()};var n=a(274),o=function(e){return function(e){var t=e.tasks,a=!0;return void 0!==t&&(a=t.length?!(t.length>0):t.task&&!(t.task.length>0)),a}(e)&&function(e){var t=e.connectors,a=!0;return void 0!==t&&(a=t.length?!(t.length>0):t.task&&!(t.task.length>0)),a}(e)&&function(e){var t=e.milestones,a=!0;return void 0!==t&&(a=t.length?!(t.length>0):t.milestone&&!(t.milestone.length>0)),a}(e)}},1585:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o=n(a(1586));t.Gantt=o["default"];var r={name:"gantt",type:"package",requiresFusionCharts:!0,extension:function(e){return e.addDep(o["default"])}};t["default"]=r},1586:(e,t,a)=>{var n=a(269);t.__esModule=!0,t["default"]=void 0;var o=n(a(1587))["default"];t["default"]=o}}])}));
//# sourceMappingURL=http://localhost:3052/4.1.0/map/eval/fusioncharts.gantt.js.map