/*
@license
dhtmlxGantt v.6.2.6 Standard
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
To use dhtmlxGantt in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxGantt/#licensing or contact us at sales@dhtmlx.com
(c) XB Software Ltd.
*/
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(window,function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=214)}({0:function(t,e,o){var n,i=o(3);t.exports={copy:function t(e){var o,n;if(e&&"object"==typeof e)switch(!0){case i.isDate(e):n=new Date(e);break;case i.isArray(e):for(n=new Array(e.length),o=0;o=0}function r(t){return!{a:!0,area:!0}[t.nodeName.loLowerCase()]||!!t.getAttribute("href")}function a(t){return!{input:!0,select:!0,textarea:!0,button:!0,object:!0}[t.nodeName.toLowerCase()]||!t.hasAttribute("disabled")}function c(t){if(!t)return"";var e=t.className||"";return e.baseVal&&(e=e.baseVal),e.indexOf||(e=""),s(e)}var l=document.createElement("div");function u(t){return t.tagName?t:(t=t||window.event).target||t.srcElement}function s(t){return(String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")}).apply(t)}t.exports={getNodePosition:o,getFocusableNodes:function(t){for(var e=t.querySelectorAll(["a[href]","area[href]","input","select","textarea","button","iframe","object","embed","[tabindex]","[contenteditable]"].join(", ")),o=Array.prototype.slice.call(e,0),c=0;c=0){if(!o)return n;var a=0===r||!s(i.charAt(r-1)),l=r+e.length>=i.length||!s(i.charAt(r+e.length));if(a&&l)return n}}n=n.parentNode}return null},locateAttribute:function(t,e){if(e){for(var o=u(t);o;){if(o.getAttribute&&o.getAttribute(e))return o;o=o.parentNode}return null}},getTargetNode:u,getRelativeEventPosition:function(t,e){var n=document.documentElement,i=o(e);return{x:t.clientX+n.scrollLeft-n.clientLeft-i.x+e.scrollLeft,y:t.clientY+n.scrollTop-n.clientTop-i.y+e.scrollTop}},isChildOf:function(t,e){if(!t||!e)return!1;for(;t&&t!=e;)t=t.parentNode;return t===e},hasClass:function(t,e){return"classList"in t?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)},closest:function(t,e){if(t.closest)return t.closest(e);if(t.matches||t.msMatchesSelector||t.webkitMatchesSelector){var o=t;if(!document.documentElement.contains(o))return null;do{if((o.matches||o.msMatchesSelector||o.webkitMatchesSelector).call(o,e))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null}return console.error("Your browser is not supported"),null}}},20:function(t,e,o){var n=o(0);t.exports=function t(e,o){e=e||n.event,o=o||n.eventRemove;var i=[],r={attach:function(t,o,n,r){i.push({element:t,event:o,callback:n,capture:r}),e(t,o,n,r)},detach:function(t,e,n,r){o(t,e,n,r);for(var a=0;ae.bottom&&(i.bottom=e.bottom,i.top=i.bottom-i.height),i.lefte.right&&(i.right=e.right,i.left=i.right-i.width),l.x>=i.left&&l.x<=i.right&&(i.left=l.x-i.width-r,i.right=i.left+i.width),l.y>=i.top&&l.y<=i.bottom&&(i.top=l.y-i.height-a,i.bottom=i.top+i.height),i},t.prototype._getViewPortSize=function(){var t,e=this._getViewPort(),o=e,i=window.scrollY+document.body.scrollTop,r=window.scrollX+document.body.scrollLeft;return e===gantt.$task_data?(o=gantt.$task,i=0,r=0,t=n.getNodePosition(gantt.$task)):t=n.getNodePosition(o),{left:t.x+r,top:t.y+i,width:t.width,height:t.height,bottom:t.y+t.height+i,right:t.x+t.width+r}},t}();e.Tooltip=i},213:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(20),i=o(1),r=o(3),a=o(212),c=function(){function t(){this.tooltip=new a.Tooltip,this._listeners={},this._domEvents=n(),this._initDelayedFunctions()}return t.prototype.destructor=function(){this.tooltip.hide(),this._domEvents.detachAll()},t.prototype.hideTooltip=function(){this.delayHide()},t.prototype.attach=function(t){var e=this,o=document.body;t.global||(o=gantt.$root);var n=null,r=function(o){var r=i.getTargetNode(o),a=i.closest(r,t.selector);if(!i.isChildOf(r,e.tooltip.getNode())){var c=function(){n=a,t.onmouseenter(o,a)};n?a&&a===n?t.onmousemove(o,a):(t.onmouseleave(o,n),n=null,a&&a!==n&&c()):a&&c()}};this.detach(t.selector),this._domEvents.attach(o,"mousemove",r),this._listeners[t.selector]={node:o,handler:r}},t.prototype.detach=function(t){var e=this._listeners[t];e&&this._domEvents.detach(e.node,"mousemove",e.handler)},t.prototype.tooltipFor=function(t){var e=this,o=function(t){var e=t;return document.createEventObject&&!document.createEvent&&(e=document.createEventObject(t)),e};this._initDelayedFunctions(),this.attach({selector:t.selector,global:t.global,onmouseenter:function(n,i){var r=t.html(n,i);r&&e.delayShow(o(n),r)},onmousemove:function(n,i){var r=t.html(n,i);r?e.delayShow(o(n),r):(e.delayShow.$cancelTimeout(),e.delayHide())},onmouseleave:function(){e.delayShow.$cancelTimeout(),e.delayHide()}})},t.prototype._initDelayedFunctions=function(){var t=this;this.delayShow&&this.delayShow.$cancelTimeout(),this.delayHide&&this.delayHide.$cancelTimeout(),this.tooltip.hide(),this.delayShow=r.delay(function(e,o){!1===gantt.callEvent("onBeforeTooltip",[e])?t.tooltip.hide():(t.tooltip.setContent(o),t.tooltip.show(e))},gantt.config.tooltip_timeout||1),this.delayHide=r.delay(function(){t.delayShow.$cancelTimeout(),t.tooltip.hide()},gantt.config.tooltip_hide_timeout||1)},t}();e.TooltipManager=c},214:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),gantt.config.tooltip_timeout=30,gantt.config.tooltip_offset_y=20,gantt.config.tooltip_offset_x=10,gantt.config.tooltip_hide_timeout=30;var n=new(o(213).TooltipManager);gantt.ext.tooltips=n,gantt.attachEvent("onGanttReady",function(){n.tooltipFor({selector:"["+gantt.config.task_attribute+"]:not(.gantt_task_row)",html:function(t){if(!gantt.config.touch||gantt.config.touch_tooltip){var e=gantt.locate(t);if(gantt.isTaskExists(e)){var o=gantt.getTask(e);return gantt.templates.tooltip_text(o.start_date,o.end_date,o)}return null}},global:!1})}),gantt.attachEvent("onDestroy",function(){n.destructor()}),gantt.attachEvent("onLightbox",function(){n.hideTooltip()});gantt.attachEvent("onBeforeTooltip",function(){if(gantt.getState().link_source_id)return!1}),gantt.attachEvent("onGanttScroll",function(){n.hideTooltip()})},3:function(t,e){var o={second:1,minute:60,hour:3600,day:86400,week:604800,month:2592e3,quarter:7776e3,year:31536e3};function n(t,e){var o=[];if(t.filter)return t.filter(e);for(var n=0;n