tg-ganttchart 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["tgganttchart"]=e(require("vue")):t["tgganttchart"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={4353:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,s="millisecond",i="second",o="minute",n="hour",a="day",l="week",c="month",h="quarter",u="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var s=String(t);return!s||s.length>=e?t:""+Array(e+1-s.length).join(r)+t},v={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),s=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+y(s,2,"0")+":"+y(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var s=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(s,c),o=r-i<0,n=e.clone().add(s+(o?-1:1),c);return+(-(s+(r-i)/(o?i-n:n-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:u,w:l,d:a,D:d,h:n,m:o,s:i,ms:s,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",k={};k[w]=g;var b="$isDayjsObject",x=function(t){return t instanceof O||!(!t||!t[b])},_=function t(e,r,s){var i;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();k[o]&&(i=o),r&&(k[o]=r,i=o);var n=e.split("-");if(!i&&n.length>1)return t(n[0])}else{var a=e.name;k[a]=e,i=a}return!s&&i&&(w=i),i||!s&&w},T=function(t,e){if(x(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new O(r)},S=v;S.l=_,S.i=x,S.w=function(t,e){return T(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function g(t){this.$L=_(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var s=e.match(f);if(s){var i=s[2]-1||0,o=(s[7]||"0").substring(0,3);return r?new Date(Date.UTC(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)):new Date(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var r=T(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return T(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<T(t)},y.$g=function(t,e,r){return S.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,s=!!S.u(e)||e,h=S.p(t),p=function(t,e){var i=S.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return s?i:i.endOf(a)},f=function(t,e){return S.w(r.toDate()[t].apply(r.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case u:return s?p(1,0):p(31,11);case c:return s?p(1,g):p(0,g+1);case l:var w=this.$locale().weekStart||0,k=(m<w?m+7:m)-w;return p(s?y-k:y+(6-k),g);case a:case d:return f(v+"Hours",0);case n:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case i:return f(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var r,l=S.p(t),h="set"+(this.$u?"UTC":""),p=(r={},r[a]=h+"Date",r[d]=h+"Date",r[c]=h+"Month",r[u]=h+"FullYear",r[n]=h+"Hours",r[o]=h+"Minutes",r[i]=h+"Seconds",r[s]=h+"Milliseconds",r)[l],f=l===a?this.$D+(e-this.$W):e;if(l===c||l===u){var m=this.clone().set(d,1);m.$d[p](f),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[S.p(t)]()},y.add=function(s,h){var d,p=this;s=Number(s);var f=S.p(h),m=function(t){var e=T(p);return S.w(e.date(e.date()+Math.round(t*s)),p)};if(f===c)return this.set(c,this.$M+s);if(f===u)return this.set(u,this.$y+s);if(f===a)return m(1);if(f===l)return m(7);var g=(d={},d[o]=e,d[n]=r,d[i]=t,d)[f]||1,y=this.$d.getTime()+s*g;return S.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var s=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,n=this.$m,a=this.$M,l=r.weekdays,c=r.months,h=r.meridiem,u=function(t,r,i,o){return t&&(t[r]||t(e,s))||i[r].slice(0,o)},d=function(t){return S.s(o%12||12,t,"0")},f=h||function(t,e,r){var s=t<12?"AM":"PM";return r?s.toLowerCase():s};return s.replace(m,(function(t,s){return s||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return S.s(e.$y,4,"0");case"M":return a+1;case"MM":return S.s(a+1,2,"0");case"MMM":return u(r.monthsShort,a,c,3);case"MMMM":return u(c,a);case"D":return e.$D;case"DD":return S.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(r.weekdaysMin,e.$W,l,2);case"ddd":return u(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(o,n,!0);case"A":return f(o,n,!1);case"m":return String(n);case"mm":return S.s(n,2,"0");case"s":return String(e.$s);case"ss":return S.s(e.$s,2,"0");case"SSS":return S.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(s,d,p){var f,m=this,g=S.p(d),y=T(s),v=(y.utcOffset()-this.utcOffset())*e,w=this-y,k=function(){return S.m(m,y)};switch(g){case u:f=k()/12;break;case c:f=k();break;case h:f=k()/3;break;case l:f=(w-v)/6048e5;break;case a:f=(w-v)/864e5;break;case n:f=w/r;break;case o:f=w/e;break;case i:f=w/t;break;default:f=w}return p?f:S.a(f)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return k[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),s=_(t,e,!0);return s&&(r.$L=s),r},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),$=O.prototype;return T.prototype=$,[["$ms",s],["$s",i],["$m",o],["$H",n],["$W",a],["$M",c],["$y",u],["$D",d]].forEach((function(t){$[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),T.extend=function(t,e){return t.$i||(t(e,O,T),t.$i=!0),T},T.locale=_,T.isDayjs=x,T.unix=function(t){return T(1e3*t)},T.en=k[w],T.Ls=k,T.p={},T}))},1816:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t="month",e="quarter";return function(r,s){var i=s.prototype;i.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var o=i.add;i.add=function(r,s){return r=Number(r),this.$utils().p(s)===e?this.add(3*r,t):o.bind(this)(r,s)};var n=i.startOf;i.startOf=function(r,s){var i=this.$utils(),o=!!i.u(s)||s;if(i.p(r)===e){var a=this.quarter()-1;return o?this.month(3*a).startOf(t).startOf("day"):this.month(3*a+2).endOf(t).endOf("day")}return n.bind(this)(r,s)}}}))},8134:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t="week",e="year";return function(r,s,i){var o=s.prototype;o.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var s=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(e).add(1,e).date(s),n=i(this).endOf(t);if(o.isBefore(n))return 1}var a=i(this).startOf(e).date(s).startOf(t).subtract(1,"millisecond"),l=this.diff(a,t,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(t){return void 0===t&&(t=null),this.week(t)}}}))},378:function(t,e,r){(function(e,s){t.exports=s(r(9274))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"091b":function(t,e,r){var s=r("24fb");e=s(!1),e.push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,r){"use strict";function s(t,e){var r=t[1]||"",s=t[3];if(!s)return r;if(e&&"function"===typeof btoa){var o=i(s),n=s.sources.map((function(t){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(t," */")}));return[r].concat(n).concat([o]).join("\n")}return[r].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=s(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,s){"string"===typeof t&&(t=[[null,t,""]]);var i={};if(s)for(var o=0;o<this.length;o++){var n=this[o][0];null!=n&&(i[n]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);s&&i[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},2638:function(t,e,r){"use strict";function s(){return s=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var s in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},s.apply(this,arguments)}var i=["attrs","props","domProps"],o=["class","style","directives"],n=["on","nativeOn"],a=function(t){return t.reduce((function(t,e){for(var r in e)if(t[r])if(-1!==i.indexOf(r))t[r]=s({},t[r],e[r]);else if(-1!==o.indexOf(r)){var a=t[r]instanceof Array?t[r]:[t[r]],c=e[r]instanceof Array?e[r]:[e[r]];t[r]=a.concat(c)}else if(-1!==n.indexOf(r))for(var h in e[r])if(t[r][h]){var u=t[r][h]instanceof Array?t[r][h]:[t[r][h]],d=e[r][h]instanceof Array?e[r][h]:[e[r][h]];t[r][h]=u.concat(d)}else t[r][h]=e[r][h];else if("hook"==r)for(var p in e[r])t[r][p]=t[r][p]?l(t[r][p],e[r][p]):e[r][p];else t[r]=e[r];else t[r]=e[r];return t}),{})},l=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=a},"499e":function(t,e,r){"use strict";function s(t,e){for(var r=[],s={},i=0;i<e.length;i++){var o=e[i],n=o[0],a=o[1],l=o[2],c=o[3],h={id:t+":"+i,css:a,media:l,sourceMap:c};s[n]?s[n].parts.push(h):r.push(s[n]={id:n,parts:[h]})}return r}r.r(e),r.d(e,"default",(function(){return f}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},n=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,h=function(){},u=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,r,i){c=r,u=i||{};var n=s(t,e);return m(n),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i],l=o[a.id];l.refs--,r.push(l)}for(e?(n=s(t,e),m(n)):n=[],i=0;i<r.length;i++)if(l=r[i],0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function m(t){for(var e=0;e<t.length;e++){var r=t[e],s=o[r.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](r.parts[i]);for(;i<r.parts.length;i++)s.parts.push(y(r.parts[i]));s.parts.length>r.parts.length&&(s.parts.length=r.parts.length)}else{var n=[];for(i=0;i<r.parts.length;i++)n.push(y(r.parts[i]));o[r.id]={id:r.id,refs:1,parts:n}}}}function g(){var t=document.createElement("style");return t.type="text/css",n.appendChild(t),t}function y(t){var e,r,s=document.querySelector("style["+d+'~="'+t.id+'"]');if(s){if(c)return h;s.parentNode.removeChild(s)}if(p){var i=l++;s=a||(a=g()),e=w.bind(null,s,i,!1),r=w.bind(null,s,i,!0)}else s=g(),e=k.bind(null,s),r=function(){s.parentNode.removeChild(s)};return e(t),function(s){if(s){if(s.css===t.css&&s.media===t.media&&s.sourceMap===t.sourceMap)return;e(t=s)}else r()}}var v=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function w(t,e,r,s){var i=r?"":s.css;if(t.styleSheet)t.styleSheet.cssText=v(e,i);else{var o=document.createTextNode(i),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function k(t,e){var r=e.css,s=e.media,i=e.sourceMap;if(s&&t.setAttribute("media",s),u.ssrId&&t.setAttribute(d,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},"4abb":function(t,e,r){var s=r("7a57");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=r("499e").default;i("b2af7572",s,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,r){var s=r("091b");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=r("499e").default;i("2f6bee1a",s,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,r){var s=r("eef2");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=r("499e").default;i("1209fd47",s,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,r){"use strict";
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["tgganttchart"]=e(require("vue")):t["tgganttchart"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={4353:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,s="millisecond",i="second",o="minute",n="hour",a="day",l="week",c="month",h="quarter",u="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var s=String(t);return!s||s.length>=e?t:""+Array(e+1-s.length).join(r)+t},v={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),s=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+y(s,2,"0")+":"+y(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var s=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(s,c),o=r-i<0,n=e.clone().add(s+(o?-1:1),c);return+(-(s+(r-i)/(o?i-n:n-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:u,w:l,d:a,D:d,h:n,m:o,s:i,ms:s,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",k={};k[w]=g;var b="$isDayjsObject",x=function(t){return t instanceof $||!(!t||!t[b])},_=function t(e,r,s){var i;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();k[o]&&(i=o),r&&(k[o]=r,i=o);var n=e.split("-");if(!i&&n.length>1)return t(n[0])}else{var a=e.name;k[a]=e,i=a}return!s&&i&&(w=i),i||!s&&w},S=function(t,e){if(x(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new $(r)},T=v;T.l=_,T.i=x,T.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function g(t){this.$L=_(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var s=e.match(f);if(s){var i=s[2]-1||0,o=(s[7]||"0").substring(0,3);return r?new Date(Date.UTC(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)):new Date(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var r=S(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return S(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<S(t)},y.$g=function(t,e,r){return T.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,s=!!T.u(e)||e,h=T.p(t),p=function(t,e){var i=T.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return s?i:i.endOf(a)},f=function(t,e){return T.w(r.toDate()[t].apply(r.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case u:return s?p(1,0):p(31,11);case c:return s?p(1,g):p(0,g+1);case l:var w=this.$locale().weekStart||0,k=(m<w?m+7:m)-w;return p(s?y-k:y+(6-k),g);case a:case d:return f(v+"Hours",0);case n:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case i:return f(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var r,l=T.p(t),h="set"+(this.$u?"UTC":""),p=(r={},r[a]=h+"Date",r[d]=h+"Date",r[c]=h+"Month",r[u]=h+"FullYear",r[n]=h+"Hours",r[o]=h+"Minutes",r[i]=h+"Seconds",r[s]=h+"Milliseconds",r)[l],f=l===a?this.$D+(e-this.$W):e;if(l===c||l===u){var m=this.clone().set(d,1);m.$d[p](f),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[T.p(t)]()},y.add=function(s,h){var d,p=this;s=Number(s);var f=T.p(h),m=function(t){var e=S(p);return T.w(e.date(e.date()+Math.round(t*s)),p)};if(f===c)return this.set(c,this.$M+s);if(f===u)return this.set(u,this.$y+s);if(f===a)return m(1);if(f===l)return m(7);var g=(d={},d[o]=e,d[n]=r,d[i]=t,d)[f]||1,y=this.$d.getTime()+s*g;return T.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var s=t||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),o=this.$H,n=this.$m,a=this.$M,l=r.weekdays,c=r.months,h=r.meridiem,u=function(t,r,i,o){return t&&(t[r]||t(e,s))||i[r].slice(0,o)},d=function(t){return T.s(o%12||12,t,"0")},f=h||function(t,e,r){var s=t<12?"AM":"PM";return r?s.toLowerCase():s};return s.replace(m,(function(t,s){return s||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return T.s(e.$y,4,"0");case"M":return a+1;case"MM":return T.s(a+1,2,"0");case"MMM":return u(r.monthsShort,a,c,3);case"MMMM":return u(c,a);case"D":return e.$D;case"DD":return T.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(r.weekdaysMin,e.$W,l,2);case"ddd":return u(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(o,n,!0);case"A":return f(o,n,!1);case"m":return String(n);case"mm":return T.s(n,2,"0");case"s":return String(e.$s);case"ss":return T.s(e.$s,2,"0");case"SSS":return T.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(s,d,p){var f,m=this,g=T.p(d),y=S(s),v=(y.utcOffset()-this.utcOffset())*e,w=this-y,k=function(){return T.m(m,y)};switch(g){case u:f=k()/12;break;case c:f=k();break;case h:f=k()/3;break;case l:f=(w-v)/6048e5;break;case a:f=(w-v)/864e5;break;case n:f=w/r;break;case o:f=w/e;break;case i:f=w/t;break;default:f=w}return p?f:T.a(f)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return k[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),s=_(t,e,!0);return s&&(r.$L=s),r},y.clone=function(){return T.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),O=$.prototype;return S.prototype=O,[["$ms",s],["$s",i],["$m",o],["$H",n],["$W",a],["$M",c],["$y",u],["$D",d]].forEach((function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,$,S),t.$i=!0),S},S.locale=_,S.isDayjs=x,S.unix=function(t){return S(1e3*t)},S.en=k[w],S.Ls=k,S.p={},S}))},1816:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t="month",e="quarter";return function(r,s){var i=s.prototype;i.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var o=i.add;i.add=function(r,s){return r=Number(r),this.$utils().p(s)===e?this.add(3*r,t):o.bind(this)(r,s)};var n=i.startOf;i.startOf=function(r,s){var i=this.$utils(),o=!!i.u(s)||s;if(i.p(r)===e){var a=this.quarter()-1;return o?this.month(3*a).startOf(t).startOf("day"):this.month(3*a+2).endOf(t).endOf("day")}return n.bind(this)(r,s)}}}))},8134:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t="week",e="year";return function(r,s,i){var o=s.prototype;o.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var s=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(e).add(1,e).date(s),n=i(this).endOf(t);if(o.isBefore(n))return 1}var a=i(this).startOf(e).date(s).startOf(t).subtract(1,"millisecond"),l=this.diff(a,t,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(t){return void 0===t&&(t=null),this.week(t)}}}))},378:function(t,e,r){(function(e,s){t.exports=s(r(9274))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"091b":function(t,e,r){var s=r("24fb");e=s(!1),e.push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,r){"use strict";function s(t,e){var r=t[1]||"",s=t[3];if(!s)return r;if(e&&"function"===typeof btoa){var o=i(s),n=s.sources.map((function(t){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(t," */")}));return[r].concat(n).concat([o]).join("\n")}return[r].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=s(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,s){"string"===typeof t&&(t=[[null,t,""]]);var i={};if(s)for(var o=0;o<this.length;o++){var n=this[o][0];null!=n&&(i[n]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);s&&i[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},2638:function(t,e,r){"use strict";function s(){return s=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var s in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},s.apply(this,arguments)}var i=["attrs","props","domProps"],o=["class","style","directives"],n=["on","nativeOn"],a=function(t){return t.reduce((function(t,e){for(var r in e)if(t[r])if(-1!==i.indexOf(r))t[r]=s({},t[r],e[r]);else if(-1!==o.indexOf(r)){var a=t[r]instanceof Array?t[r]:[t[r]],c=e[r]instanceof Array?e[r]:[e[r]];t[r]=a.concat(c)}else if(-1!==n.indexOf(r))for(var h in e[r])if(t[r][h]){var u=t[r][h]instanceof Array?t[r][h]:[t[r][h]],d=e[r][h]instanceof Array?e[r][h]:[e[r][h]];t[r][h]=u.concat(d)}else t[r][h]=e[r][h];else if("hook"==r)for(var p in e[r])t[r][p]=t[r][p]?l(t[r][p],e[r][p]):e[r][p];else t[r]=e[r];else t[r]=e[r];return t}),{})},l=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=a},"499e":function(t,e,r){"use strict";function s(t,e){for(var r=[],s={},i=0;i<e.length;i++){var o=e[i],n=o[0],a=o[1],l=o[2],c=o[3],h={id:t+":"+i,css:a,media:l,sourceMap:c};s[n]?s[n].parts.push(h):r.push(s[n]={id:n,parts:[h]})}return r}r.r(e),r.d(e,"default",(function(){return f}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},n=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,h=function(){},u=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,r,i){c=r,u=i||{};var n=s(t,e);return m(n),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i],l=o[a.id];l.refs--,r.push(l)}for(e?(n=s(t,e),m(n)):n=[],i=0;i<r.length;i++)if(l=r[i],0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function m(t){for(var e=0;e<t.length;e++){var r=t[e],s=o[r.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](r.parts[i]);for(;i<r.parts.length;i++)s.parts.push(y(r.parts[i]));s.parts.length>r.parts.length&&(s.parts.length=r.parts.length)}else{var n=[];for(i=0;i<r.parts.length;i++)n.push(y(r.parts[i]));o[r.id]={id:r.id,refs:1,parts:n}}}}function g(){var t=document.createElement("style");return t.type="text/css",n.appendChild(t),t}function y(t){var e,r,s=document.querySelector("style["+d+'~="'+t.id+'"]');if(s){if(c)return h;s.parentNode.removeChild(s)}if(p){var i=l++;s=a||(a=g()),e=w.bind(null,s,i,!1),r=w.bind(null,s,i,!0)}else s=g(),e=k.bind(null,s),r=function(){s.parentNode.removeChild(s)};return e(t),function(s){if(s){if(s.css===t.css&&s.media===t.media&&s.sourceMap===t.sourceMap)return;e(t=s)}else r()}}var v=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function w(t,e,r,s){var i=r?"":s.css;if(t.styleSheet)t.styleSheet.cssText=v(e,i);else{var o=document.createTextNode(i),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function k(t,e){var r=e.css,s=e.media,i=e.sourceMap;if(s&&t.setAttribute("media",s),u.ssrId&&t.setAttribute(d,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},"4abb":function(t,e,r){var s=r("7a57");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=r("499e").default;i("b2af7572",s,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,r){var s=r("091b");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=r("499e").default;i("2f6bee1a",s,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,r){var s=r("eef2");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=r("499e").default;i("1209fd47",s,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,r){"use strict";
2
2
  /**
3
3
  * vue-class-component v7.0.1
4
4
  * (c) 2015-present Evan You
5
5
  * @license MIT
6
- */function s(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var i=s(r("8bbf")),o="undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function n(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){a(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){a(t,e,r)}))}function a(t,e,r){var s=r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e);s.forEach((function(s){var i=r?Reflect.getOwnMetadata(s,e,r):Reflect.getOwnMetadata(s,e);r?Reflect.defineMetadata(s,i,t,r):Reflect.defineMetadata(s,i,t)}))}var l={__proto__:[]},c=l instanceof Array;function h(t){return function(e,r,s){var i="function"===typeof e?e:e.constructor;i.__decorators__||(i.__decorators__=[]),"number"!==typeof s&&(s=void 0),i.__decorators__.push((function(e){return t(e,r,s)}))}}function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.extend({mixins:t})}function d(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}function p(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var s in t.$options.props)t.hasOwnProperty(s)||r.push(s);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var s=new e;e.prototype._init=r;var i={};return Object.keys(s).forEach((function(t){void 0!==s[t]&&(i[t]=s[t])})),i}var f=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function m(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(f.indexOf(t)>-1)e[t]=r[t];else{var s=Object.getOwnPropertyDescriptor(r,t);void 0!==s.value?"function"===typeof s.value?(e.methods||(e.methods={}))[t]=s.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=s.value,e}}):(s.get||s.set)&&((e.computed||(e.computed={}))[t]={get:s.get,set:s.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return p(this,t)}});var s=t.__decorators__;s&&(s.forEach((function(t){return t(e)})),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),l=a instanceof i?a.constructor:i,c=l.extend(e);return g(c,t,l),o&&n(c,t),c}function g(t,e,r){Object.getOwnPropertyNames(e).forEach((function(s){if("prototype"!==s){var i=Object.getOwnPropertyDescriptor(t,s);if(!i||i.configurable){var o=Object.getOwnPropertyDescriptor(e,s);if(!c){if("cid"===s)return;var n=Object.getOwnPropertyDescriptor(r,s);if(!d(o.value)&&n&&n.value===o.value)return}Object.defineProperty(t,s,o)}}}))}function y(t){return"function"===typeof t?m(t):function(e){return m(e,t)}}y.registerHooks=function(t){f.push.apply(f,t)},e.default=y,e.createDecorator=h,e.mixins=u},"7a57":function(t,e,r){var s=r("24fb");e=s(!1),e.push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,r){var s,i,o;(function(r,n){i=[],s=n,o="function"===typeof s?s.apply(e,i):s,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,s,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,n=/@([^@]*):(\d+):(\d+)\s*$/gi,a=o.exec(p.stack)||n.exec(p.stack),l=a&&a[1]||!1,c=a&&a[2]||!1,h=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");l===h&&(r=document.documentElement.outerHTML,s=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=r.replace(s,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===l)return u[d];if(l===h&&u[d].innerHTML&&u[d].innerHTML.trim()===i)return u[d]}return null}}return t}))},"8bbf":function(e,r){e.exports=t},eef2:function(t,e,r){var s=r("24fb");e=s(!1),e.push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,r){"use strict";if(r.r(e),r.d(e,"ERROR_TYPE",(function(){return Q})),r.d(e,"VueSliderMark",(function(){return B})),r.d(e,"VueSliderDot",(function(){return E})),"undefined"!==typeof window){var s=window.document.currentScript,i=r("8875");s=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var n=r("2638"),a=r.n(n);function l(t,e,r,s){var i,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(n=(o<3?i(n):o>3?i(e,r,n):i(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n}var c=r("8bbf"),h=r.n(c),u=r("65d9"),d=r.n(u);function p(t,e){return void 0===e&&(e={}),Object(u["createDecorator"])((function(r,s){(r.props||(r.props={}))[s]=e,r.model={prop:s,event:t||s}}))}function f(t){return void 0===t&&(t={}),Object(u["createDecorator"])((function(e,r){(e.props||(e.props={}))[r]=t}))}function m(t,e){void 0===e&&(e={});var r=e.deep,s=void 0!==r&&r,i=e.immediate,o=void 0!==i&&i;return Object(u["createDecorator"])((function(e,r){"object"!==typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!==typeof i[t]||Array.isArray(i[t])?"undefined"===typeof i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:r,deep:s,immediate:o})}))}function g(t){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function w(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),t}function k(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}function x(t){var e=S();return function(){var r,s=O(t);if(e){var i=O(this).constructor;r=Reflect.construct(s,arguments,i)}else r=s.apply(this,arguments);return _(this,r)}}function _(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?T(t):e}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}r("4ed8");var $=function(){var t=function(t){k(r,t);var e=x(r);function r(){return y(this,r),e.apply(this,arguments)}return w(r,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,attrs:{"aria-valuetext":"number"===typeof this.tooltipValue?this.tooltipValue.toString():this.tooltipValue},on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"===typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),r}(h.a);return l([f({default:0})],t.prototype,"value",void 0),l([f()],t.prototype,"tooltip",void 0),l([f()],t.prototype,"dotStyle",void 0),l([f()],t.prototype,"tooltipStyle",void 0),l([f({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),l([f({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),l([f({type:Boolean,default:!1})],t.prototype,"focus",void 0),l([f({default:!1})],t.prototype,"disabled",void 0),t=l([d()({name:"VueSliderDot"})],t),t}(),E=$;function M(t){return M="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function P(t,e,r){return e&&D(t.prototype,e),r&&D(t,r),t}function L(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},j(t,e)}function z(t){var e=H();return function(){var r,s=I(t);if(e){var i=I(this).constructor;r=Reflect.construct(s,arguments,i)}else r=s.apply(this,arguments);return A(this,r)}}function A(t,e){return!e||"object"!==M(e)&&"function"!==typeof e?R(t):e}function R(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}r("556c");var V,W=function(){var t=function(t){L(r,t);var e=z(r);function r(){return C(this,r),e.apply(this,arguments)}return P(r,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle||{},e.style||{},e.active&&this.stepActiveStyle||{},e.active&&e.activeStyle||{}]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle||{},e.labelStyle||{},e.active&&this.labelActiveStyle||{},e.active&&e.labelActiveStyle||{}],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),r}(h.a);return l([f({required:!0})],t.prototype,"mark",void 0),l([f(Boolean)],t.prototype,"hideLabel",void 0),l([f()],t.prototype,"stepStyle",void 0),l([f()],t.prototype,"stepActiveStyle",void 0),l([f()],t.prototype,"labelStyle",void 0),l([f()],t.prototype,"labelActiveStyle",void 0),t=l([d()({name:"VueSlideMark"})],t),t}(),B=W,F=function(t){return"number"===typeof t?"".concat(t,"px"):t},N=function(t){var e=document.documentElement,r=document.body,s=t.getBoundingClientRect(),i={y:s.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||r.clientTop||0),x:s.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||r.clientLeft||0)};return i},Y=function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i="targetTouches"in t?t.targetTouches[0]:t,o=N(e),n={x:i.pageX-o.x,y:i.pageY-o.y};return{x:r?e.offsetWidth*s-n.x:n.x,y:r?e.offsetHeight*s-n.y:n.y}};(function(t){t[t["PAGE_UP"]=33]="PAGE_UP",t[t["PAGE_DOWN"]=34]="PAGE_DOWN",t[t["END"]=35]="END",t[t["HOME"]=36]="HOME",t[t["LEFT"]=37]="LEFT",t[t["UP"]=38]="UP",t[t["RIGHT"]=39]="RIGHT",t[t["DOWN"]=40]="DOWN"})(V||(V={}));var q=function(t,e){if(e.hook){var r=e.hook(t);if("function"===typeof r)return r;if(!r)return null}switch(t.keyCode){case V.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case V.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case V.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case V.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case V.END:return function(){return e.max};case V.HOME:return function(){return e.min};case V.PAGE_UP:return function(t){return t+10};case V.PAGE_DOWN:return function(t){return t-10};default:return null}};function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function G(t,e,r){return e&&X(t.prototype,e),r&&X(t,r),t}var Z,Q,K=function(){function t(e){U(this,t),this.num=e}return G(t,[{key:"decimal",value:function(t,e){var r=this.num,s=this.getDecimalLen(r),i=this.getDecimalLen(t),o=0;switch(e){case"+":o=this.getExponent(s,i),this.num=(this.safeRoundUp(r,o)+this.safeRoundUp(t,o))/o;break;case"-":o=this.getExponent(s,i),this.num=(this.safeRoundUp(r,o)-this.safeRoundUp(t,o))/o;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(r,this.getExponent(s)),this.safeRoundUp(t,this.getExponent(i)))/this.getExponent(s+i);break;case"/":o=this.getExponent(s,i),this.num=this.safeRoundUp(r,o)/this.safeRoundUp(t,o);break;case"%":o=this.getExponent(s,i),this.num=this.safeRoundUp(r,o)%this.safeRoundUp(t,o)/o;break}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e){return it(t)||st(t,e)||at(t,e)||rt()}function rt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],s=!0,i=!1,o=void 0;try{for(var n,a=t[Symbol.iterator]();!(s=(n=a.next()).done);s=!0)if(r.push(n.value),e&&r.length===e)break}catch(l){i=!0,o=l}finally{try{s||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}function it(t){if(Array.isArray(t))return t}function ot(t){return ct(t)||lt(t)||at(t)||nt()}function nt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function at(t,e){if(t){if("string"===typeof t)return ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(t,e):void 0}}function lt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function ct(t){if(Array.isArray(t))return ht(t)}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}function ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function pt(t,e,r){return e&&dt(t.prototype,e),r&&dt(t,r),t}function ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}(function(t){t[t["VALUE"]=1]="VALUE",t[t["INTERVAL"]=2]="INTERVAL",t[t["MIN"]=3]="MIN",t[t["MAX"]=4]="MAX",t[t["ORDER"]=5]="ORDER"})(Q||(Q={}));var mt=(Z={},ft(Z,Q.VALUE,'The type of the "value" is illegal'),ft(Z,Q.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),ft(Z,Q.MIN,'The "value" must be greater than or equal to the "min".'),ft(Z,Q.MAX,'The "value" must be less than or equal to the "max".'),ft(Z,Q.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),Z),gt=function(){function t(e){ut(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(Q.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return pt(t,[{key:"setValue",value:function(t){var e=this;this.setDotsValue(Array.isArray(t)?this.order?ot(t).sort((function(t,r){return e.getIndexByValue(t)-e.getIndexByValue(r)})):ot(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,r=this.order?ot(t).sort((function(t,e){return t-e})):t;this.dotsPos=r,this.setDotsValue(r.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var r=100;this.markList.forEach((function(s){var i=Math.abs(s.pos-t);i<r&&(r=i,e=s.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this,r=this.dotsPos.filter((function(t,r){return!(e.getDotOption(r)&&e.getDotOption(r).disabled)})).map((function(e){return Math.abs(e-t)}));return r.indexOf(Math.min.apply(Math,ot(r)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new K(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new K(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var r=t-this.dotsPos[e];if(r){var s=new Array(this.dotsPos.length);this.fixed?s=this.getFixedChangePosArr(r,e):this.minRange||this.maxRange?s=this.getLimitRangeChangePosArr(t,r,e):s[e]=r,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(s[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var r=this;return this.dotsPos.forEach((function(s,i){if(i!==e){var o=r.getValidPos(s+t,i),n=o.pos,a=o.inRange;a||(t=Math.min(Math.abs(n-s),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,r){var s=this,i=[{index:r,changePos:e}],o=e;return[this.minRange,this.maxRange].forEach((function(n,a){if(!n)return!1;var l=0===a,c=e>0,h=0;h=l?c?1:-1:c?-1:1;var u=function(t,e){var r=Math.abs(t-e);return l?r<s.minRangeDir:r>s.maxRangeDir},d=r+h,p=s.dotsPos[d],f=t;while(s.isPos(p)&&u(p,f)){var m=s.getValidPos(p+o,d),g=m.pos;i.push({index:d,changePos:g-p}),d+=h,f=g,p=s.dotsPos[d]}})),this.dotsPos.map((function(t,e){var r=i.filter((function(t){return t.index===e}));return r.length?r[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"===typeof t}},{key:"getValidPos",value:function(t,e){var r=this.valuePosRange[e],s=!0;return t<r[0]?(t=r[0],s=!1):t>r[1]&&(t=r[1],s=!1),{pos:t,inRange:s}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"===typeof t||"string"===typeof t){if(t=+t,t<this.min)return this.emitError(Q.MIN),0;if(t>this.max)return this.emitError(Q.MAX),0;if("number"!==typeof t||t!==t)return this.emitError(Q.VALUE),0;t=new K(t).minus(this.min).divide(this.interval).toNumber()}var e=new K(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var r=et(e,2),s=r[0],i=r[1];return t>=s&&t<=i}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new K(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new K(t).divide(new K(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,mt[t])}},{key:"getDotOption",value:function(t){return Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions}},{key:"getDotRange",value:function(t,e,r){if(!this.dotOptions)return r;var s=this.getDotOption(t);return s&&void 0!==s[e]?this.parseValue(s[e]):r}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,r){var s=t.parseValue(e);return tt({pos:s,value:e,label:e,active:t.isActiveByPos(s)},r)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(r){var s=t.marks[r];return e(r,"string"!==typeof s?s:{label:s})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"===typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){var e=t.result;return!!e})).map((function(t){var r=t.value,s=t.result;return e(r,s)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"===typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,ot(this.dotsPos)),Math.max.apply(Math,ot(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new K(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!==0?(this.emitError(Q.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,r=[];return e.forEach((function(s,i){r.push([Math.max(t.minRange?t.minRangeDir*i:0,t.enableCross?0:e[i-1]||0,t.getDotRange(i,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-i):100,t.enableCross?100:e[i+1]||100,t.getDotRange(i,"max",100))])})),r}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function wt(t,e,r){return e&&vt(t.prototype,e),r&&vt(t,r),t}var kt=function(){function t(e){yt(this,t),this.states=0,this.map=e}return wt(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function bt(t,e){return Tt(t)||_t(t,e)||Ct(t,e)||xt()}function xt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _t(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],s=!0,i=!1,o=void 0;try{for(var n,a=t[Symbol.iterator]();!(s=(n=a.next()).done);s=!0)if(r.push(n.value),e&&r.length===e)break}catch(l){i=!0,o=l}finally{try{s||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}function Tt(t){if(Array.isArray(t))return t}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function Ot(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?St(Object(r),!0).forEach((function(e){$t(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Et(t){return Pt(t)||Dt(t)||Ct(t)||Mt()}function Mt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ct(t,e){if(t){if("string"===typeof t)return Lt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lt(t,e):void 0}}function Dt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Pt(t){if(Array.isArray(t))return Lt(t)}function Lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}function jt(t){return jt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function Rt(t,e,r){return e&&At(t.prototype,e),r&&At(t,r),t}function Ht(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&It(t,e)}function It(t,e){return It=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},It(t,e)}function Vt(t){var e=Ft();return function(){var r,s=Nt(t);if(e){var i=Nt(this).constructor;r=Reflect.construct(s,arguments,i)}else r=s.apply(this,arguments);return Wt(this,r)}}function Wt(t,e){return!e||"object"!==jt(e)&&"function"!==typeof e?Bt(t):e}function Bt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ft(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Nt(t){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Nt(t)}r("4abb");var Yt={None:0,Drag:2,Focus:4},qt=4,Ut=function(){var t=function(t){Ht(r,t);var e=Vt(r);function r(){var t;return zt(this,r),t=e.apply(this,arguments),t.states=new kt(Yt),t.scale=1,t.focusDotIndex=0,t}return Rt(r,[{key:"isObjectData",value:function(t){return!!t&&"[object Object]"===Object.prototype.toString.call(t)}},{key:"isObjectArrayData",value:function(t){return!!t&&Array.isArray(t)&&t.length>0&&"object"===jt(t[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(Yt.Drag)&&this.isNotSync&&(this.control.setValue(this.value),this.syncValueByPos())}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove,{passive:!1}),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){var t=new K(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));void 0!==this.zoom&&t.multiply(this.zoom),t.divide(100),this.scale=t.toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new gt({value:this.value,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),this.syncValueByPos(),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(r){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(r)&&t.control.data.length===r.length&&r.every((function(e,r){return e===t.control.data[r]})))return!1;switch(e){case"data":case"dataLabel":case"dataValue":t.control.data=t.sliderData;break;case"mark":t.control.marks=t.sliderMarks;break;default:t.control[e]=r}["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:Et(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,r){return t!==e[r]}))}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),r=this.control.getRecentDot(e);if(this.dots[r].disabled)return;this.dragStart(r),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(Yt.Drag),this.states.add(Yt.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(Yt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var r=this.control.dotsValue;this.$emit("dragging",1===r.length?r[0]:Et(r),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,r=t;if(r>this.dragRange[1]?(r=this.dragRange[1],this.focusDotIndex++):r<this.dragRange[0]&&(r=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex){var s=this.$refs["dot-".concat(this.focusDotIndex)];s&&s.$el&&s.$el.focus(),this.control.setDotPos(r,e)}}}},{key:"dragEnd",value:function(t){var e=this;if(!this.states.has(Yt.Drag))return!1;setTimeout((function(){e.lazy&&e.syncValueByPos(),e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos(),e.states.delete(Yt.Drag),e.useKeyboard&&!("targetTouches"in t)||e.states.delete(Yt.Focus),e.$emit("drag-end",e.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(Yt.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(Yt.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(Yt.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(Yt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(Yt.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?Et(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,r=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(r)}},{key:"setValueByPos",value:function(t){var e=this,r=this.control.getRecentDot(t);if(this.disabled||this.dots[r].disabled)return!1;this.focusDotIndex=r,this.control.setDotPos(t,r),this.syncValueByPos(),this.useKeyboard&&this.states.add(Yt.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(Yt.Focus))return!1;var r=this.included&&this.marks,s=q(t,{direction:this.direction,max:r?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(s){t.preventDefault();var i=-1,o=0;r?(this.control.markList.some((function(t,r){return t.value===e.control.dotsValue[e.focusDotIndex]&&(i=s(r),!0)})),i<0?i=0:i>this.control.markList.length-1&&(i=this.control.markList.length-1),o=this.control.markList[i].pos):(i=s(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),o=this.control.parseValue(this.control.getValueByIndex(i))),this.isCrossDot(o),this.control.setDotPos(o,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return Y(t,this.$refs.rail,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,r,s){var i=this.$createElement,o=this.$scopedSlots[t];return o?s?o(e):i("template",{slot:t},[o(e)]):r}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",a()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{ref:"rail",class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(r,s){return t.renderSlot("process",r,e("div",{class:"vue-slider-process",key:"process-".concat(s),style:r.style}),!0)})),this.sliderMarks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(r,s){var i;return t.renderSlot("mark",r,e("vue-slider-mark",{key:"mark-".concat(s),attrs:{mark:r,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(i={},$t(i,t.isHorizontal?"height":"width","100%"),$t(i,t.isHorizontal?"width":"height",t.tailSize),$t(i,t.mainDirection,"".concat(r.pos,"%")),i),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",r,null),t.renderSlot("label",r,null)]),!0)}))]):null,this.dots.map((function(r,s){var i;return e("vue-slider-dot",{ref:"dot-".concat(s),key:"dot-".concat(s),attrs:Ot({value:r.value,disabled:r.disabled,focus:r.focus,"dot-style":[r.style,r.disabled?r.disabledStyle:null,r.focus?r.focusStyle:null],tooltip:r.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,r.tooltipStyle,r.disabled?r.tooltipDisabledStyle:null,r.focus?r.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.sliderTooltipFormatter)?t.sliderTooltipFormatter[s]:t.sliderTooltipFormatter,"tooltip-placement":t.tooltipDirections[s],role:"slider","aria-valuenow":r.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.isHorizontal?"horizontal":"vertical",tabindex:"0"},t.dotAttrs),style:[t.dotBaseStyle,(i={},$t(i,t.mainDirection,"".concat(r.pos,"%")),$t(i,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),i)],on:{"drag-start":function(){return t.dragStart(s)}},nativeOn:{focus:function(){return!r.disabled&&t.focus(s)},blur:function(){return t.blur()}}},[t.renderSlot("dot",r,null),t.renderSlot("tooltip",r,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return F((this.isHorizontal?this.height:this.width)||qt)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=bt(t,2),r=e[0],s=e[1],i=this.width?F(this.width):this.isHorizontal?"auto":F(qt),o=this.height?F(this.height):this.isHorizontal?F(qt):"auto";return{padding:this.contained?"".concat(s/2,"px ").concat(r/2,"px"):this.isHorizontal?"".concat(s/2,"px 0"):"0 ".concat(r/2,"px"),width:i,height:o}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,r){var s,i=bt(e,3),o=i[0],n=i[1],a=i[2];if(o>n){var l=[n,o];o=l[0],n=l[1]}var c=t.isHorizontal?"width":"height";return{start:o,end:n,index:r,style:Ot(Ot((s={},$t(s,t.isHorizontal?"height":"width","100%"),$t(s,t.isHorizontal?"top":"left",0),$t(s,t.mainDirection,"".concat(o,"%")),$t(s,c,"".concat(n-o,"%")),$t(s,"transitionProperty","".concat(c,",").concat(t.mainDirection)),$t(s,"transitionDuration","".concat(t.animateTime,"s")),s),t.processStyle),a)}}))}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],r=bt(e,2),s=r[0],i=r[1];return t=this.isHorizontal?$t({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),"-WebkitTransform":"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):$t({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),"-WebkitTransform":"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),Ot({width:"".concat(s,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,r){return Ot({pos:e,index:r,value:t.control.dotsValue[r],focus:t.states.has(Yt.Focus)&&t.focusDotIndex===r,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[r]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(Yt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var t=this;return this.isObjectArrayData(this.data)?this.data.map((function(e){return e[t.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var t=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(e){var r={label:e};return t.data.some((function(s){return s[t.dataValue]===e&&(r.label=s[t.dataLabel],!0)})),r}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var t=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(e){var r=""+e;return t.data.some((function(s){return s[t.dataValue]===e&&(r=s[t.dataLabel],!0)})),r};if(this.isObjectData(this.data)){var e=this.data;return function(t){return e[t]}}}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,r){return e!==t[r]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),r}(h.a);return l([p("change",{default:0})],t.prototype,"value",void 0),l([f({type:Boolean,default:!1})],t.prototype,"silent",void 0),l([f({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),l([f({type:[Number,String]})],t.prototype,"width",void 0),l([f({type:[Number,String]})],t.prototype,"height",void 0),l([f({default:14})],t.prototype,"dotSize",void 0),l([f({default:!1})],t.prototype,"contained",void 0),l([f({type:Number,default:0})],t.prototype,"min",void 0),l([f({type:Number,default:100})],t.prototype,"max",void 0),l([f({type:Number,default:1})],t.prototype,"interval",void 0),l([f({type:Boolean,default:!1})],t.prototype,"disabled",void 0),l([f({type:Boolean,default:!0})],t.prototype,"clickable",void 0),l([f({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),l([f({type:Number,default:.5})],t.prototype,"duration",void 0),l([f({type:[Object,Array]})],t.prototype,"data",void 0),l([f({type:String,default:"value"})],t.prototype,"dataValue",void 0),l([f({type:String,default:"label"})],t.prototype,"dataLabel",void 0),l([f({type:Boolean,default:!1})],t.prototype,"lazy",void 0),l([f({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),l([f({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),l([f({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),l([f({type:Boolean,default:!0})],t.prototype,"useKeyboard",void 0),l([f(Function)],t.prototype,"keydownHook",void 0),l([f({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),l([f({type:Boolean,default:!1})],t.prototype,"fixed",void 0),l([f({type:Boolean,default:!0})],t.prototype,"order",void 0),l([f(Number)],t.prototype,"minRange",void 0),l([f(Number)],t.prototype,"maxRange",void 0),l([f({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),l([f({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),l([f({type:[Number]})],t.prototype,"zoom",void 0),l([f(Boolean)],t.prototype,"included",void 0),l([f(Boolean)],t.prototype,"adsorb",void 0),l([f(Boolean)],t.prototype,"hideLabel",void 0),l([f()],t.prototype,"dotOptions",void 0),l([f()],t.prototype,"dotAttrs",void 0),l([f()],t.prototype,"railStyle",void 0),l([f()],t.prototype,"processStyle",void 0),l([f()],t.prototype,"dotStyle",void 0),l([f()],t.prototype,"tooltipStyle",void 0),l([f()],t.prototype,"stepStyle",void 0),l([f()],t.prototype,"stepActiveStyle",void 0),l([f()],t.prototype,"labelStyle",void 0),l([f()],t.prototype,"labelActiveStyle",void 0),l([m("value")],t.prototype,"onValueChanged",null),t=l([d()({name:"VueSlider",data:function(){return{control:null}},components:{VueSliderDot:E,VueSliderMark:B}})],t),t}(),Xt=Ut;Xt.VueSliderMark=B,Xt.VueSliderDot=E;var Gt=Xt;e["default"]=Gt}})["default"]}))},9274:function(e){"use strict";e.exports=t},9306:function(t,e,r){"use strict";var s=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(s(t))return t;throw new o(i(t)+" is not a function")}},7080:function(t,e,r){"use strict";var s=r(4402).has;t.exports=function(t){return s(t),t}},679:function(t,e,r){"use strict";var s=r(1625),i=TypeError;t.exports=function(t,e){if(s(e,t))return t;throw new i("Incorrect invocation")}},8551:function(t,e,r){"use strict";var s=r(34),i=String,o=TypeError;t.exports=function(t){if(s(t))return t;throw new o(i(t)+" is not an object")}},9617:function(t,e,r){"use strict";var s=r(5397),i=r(5610),o=r(6198),n=function(t){return function(e,r,n){var a=s(e),l=o(a);if(0===l)return!t&&-1;var c,h=i(n,l);if(t&&r!==r){while(l>h)if(c=a[h++],c!==c)return!0}else for(;l>h;h++)if((t||h in a)&&a[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:n(!0),indexOf:n(!1)}},4527:function(t,e,r){"use strict";var s=r(3724),i=r(4376),o=TypeError,n=Object.getOwnPropertyDescriptor,a=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!n(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},6319:function(t,e,r){"use strict";var s=r(8551),i=r(9539);t.exports=function(t,e,r,o){try{return o?e(s(r)[0],r[1]):e(r)}catch(n){i(t,"throw",n)}}},2195:function(t,e,r){"use strict";var s=r(9504),i=s({}.toString),o=s("".slice);t.exports=function(t){return o(i(t),8,-1)}},6955:function(t,e,r){"use strict";var s=r(2140),i=r(4901),o=r(2195),n=r(8227),a=n("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),h=function(t,e){try{return t[e]}catch(r){}};t.exports=s?o:function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=h(e=l(t),a))?r:c?o(e):"Object"===(s=o(e))&&i(e.callee)?"Arguments":s}},7740:function(t,e,r){"use strict";var s=r(9297),i=r(5031),o=r(7347),n=r(4913);t.exports=function(t,e,r){for(var a=i(e),l=n.f,c=o.f,h=0;h<a.length;h++){var u=a[h];s(t,u)||r&&s(r,u)||l(t,u,c(e,u))}}},2211:function(t,e,r){"use strict";var s=r(9039);t.exports=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,r){"use strict";var s=r(3724),i=r(4913),o=r(6980);t.exports=s?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,r){"use strict";var s=r(3724),i=r(4913),o=r(6980);t.exports=function(t,e,r){s?i.f(t,e,o(0,r)):t[e]=r}},2106:function(t,e,r){"use strict";var s=r(283),i=r(4913);t.exports=function(t,e,r){return r.get&&s(r.get,e,{getter:!0}),r.set&&s(r.set,e,{setter:!0}),i.f(t,e,r)}},6840:function(t,e,r){"use strict";var s=r(4901),i=r(4913),o=r(283),n=r(9433);t.exports=function(t,e,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(s(r)&&o(r,c,a),a.global)l?t[e]=r:n(e,r);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(h){}l?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:function(t,e,r){"use strict";var s=r(6840);t.exports=function(t,e,r){for(var i in e)s(t,i,e[i],r);return t}},9433:function(t,e,r){"use strict";var s=r(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(s,t,{value:e,configurable:!0,writable:!0})}catch(r){s[t]=e}return e}},3724:function(t,e,r){"use strict";var s=r(9039);t.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,r){"use strict";var s=r(4576),i=r(34),o=s.document,n=i(o)&&i(o.createElement);t.exports=function(t){return n?o.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,r){"use strict";var s=r(4576),i=s.navigator,o=i&&i.userAgent;t.exports=o?String(o):""},9519:function(t,e,r){"use strict";var s,i,o=r(4576),n=r(2839),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,h=c&&c.v8;h&&(s=h.split("."),i=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&n&&(s=n.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=n.match(/Chrome\/(\d+)/),s&&(i=+s[1]))),t.exports=i},6518:function(t,e,r){"use strict";var s=r(4576),i=r(7347).f,o=r(6699),n=r(6840),a=r(9433),l=r(7740),c=r(2796);t.exports=function(t,e){var r,h,u,d,p,f,m=t.target,g=t.global,y=t.stat;if(h=g?s:y?s[m]||a(m,{}):s[m]&&s[m].prototype,h)for(u in e){if(p=e[u],t.dontCallGetSet?(f=i(h,u),d=f&&f.value):d=h[u],r=c(g?u:m+(y?".":"#")+u,t.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),n(h,u,p,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},6080:function(t,e,r){"use strict";var s=r(7476),i=r(9306),o=r(616),n=s(s.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?n(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,r){"use strict";var s=r(9039);t.exports=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,r){"use strict";var s=r(616),i=Function.prototype.call;t.exports=s?i.bind(i):function(){return i.apply(i,arguments)}},350:function(t,e,r){"use strict";var s=r(3724),i=r(9297),o=Function.prototype,n=s&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!s||s&&n(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},6706:function(t,e,r){"use strict";var s=r(9504),i=r(9306);t.exports=function(t,e,r){try{return s(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(o){}}},7476:function(t,e,r){"use strict";var s=r(2195),i=r(9504);t.exports=function(t){if("Function"===s(t))return i(t)}},9504:function(t,e,r){"use strict";var s=r(616),i=Function.prototype,o=i.call,n=s&&i.bind.bind(o,o);t.exports=s?n:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,r){"use strict";var s=r(4576),i=r(4901),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(s[t]):s[t]&&s[t][e]}},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,r){"use strict";var s=r(6955),i=r(5966),o=r(4117),n=r(6269),a=r(8227),l=a("iterator");t.exports=function(t){if(!o(t))return i(t,l)||i(t,"@@iterator")||n[s(t)]}},81:function(t,e,r){"use strict";var s=r(9565),i=r(9306),o=r(8551),n=r(6823),a=r(851),l=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(i(r))return o(s(r,t));throw new l(n(t)+" is not iterable")}},5966:function(t,e,r){"use strict";var s=r(9306),i=r(4117);t.exports=function(t,e){var r=t[e];return i(r)?void 0:s(r)}},3789:function(t,e,r){"use strict";var s=r(9306),i=r(8551),o=r(9565),n=r(1291),a=r(1767),l="Invalid size",c=RangeError,h=TypeError,u=Math.max,d=function(t,e){this.set=t,this.size=u(e,0),this.has=s(t.has),this.keys=s(t.keys)};d.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!==e)throw new h(l);var r=n(e);if(r<0)throw new c(l);return new d(t,r)}},4576:function(t,e,r){"use strict";var s=function(t){return t&&t.Math===Math&&t};t.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,r){"use strict";var s=r(9504),i=r(8981),o=s({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},421:function(t){"use strict";t.exports={}},397:function(t,e,r){"use strict";var s=r(7751);t.exports=s("document","documentElement")},5917:function(t,e,r){"use strict";var s=r(3724),i=r(9039),o=r(4055);t.exports=!s&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,r){"use strict";var s=r(9504),i=r(9039),o=r(2195),n=Object,a=s("".split);t.exports=i((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):n(t)}:n},3706:function(t,e,r){"use strict";var s=r(9504),i=r(4901),o=r(7629),n=s(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return n(t)}),t.exports=o.inspectSource},1181:function(t,e,r){"use strict";var s,i,o,n=r(8622),a=r(4576),l=r(34),c=r(6699),h=r(9297),u=r(7629),d=r(6119),p=r(421),f="Object already initialized",m=a.TypeError,g=a.WeakMap,y=function(t){return o(t)?i(t):s(t,{})},v=function(t){return function(e){var r;if(!l(e)||(r=i(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}};if(n||u.state){var w=u.state||(u.state=new g);w.get=w.get,w.has=w.has,w.set=w.set,s=function(t,e){if(w.has(t))throw new m(f);return e.facade=t,w.set(t,e),e},i=function(t){return w.get(t)||{}},o=function(t){return w.has(t)}}else{var k=d("state");p[k]=!0,s=function(t,e){if(h(t,k))throw new m(f);return e.facade=t,c(t,k,e),e},i=function(t){return h(t,k)?t[k]:{}},o=function(t){return h(t,k)}}t.exports={set:s,get:i,has:o,enforce:y,getterFor:v}},4209:function(t,e,r){"use strict";var s=r(8227),i=r(6269),o=s("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||n[o]===t)}},4376:function(t,e,r){"use strict";var s=r(2195);t.exports=Array.isArray||function(t){return"Array"===s(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,r){"use strict";var s=r(9039),i=r(4901),o=/#|\.prototype\./,n=function(t,e){var r=l[a(t)];return r===h||r!==c&&(i(e)?s(e):!!e)},a=n.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=n.data={},c=n.NATIVE="N",h=n.POLYFILL="P";t.exports=n},4117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},34:function(t,e,r){"use strict";var s=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:s(t)}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,r){"use strict";var s=r(7751),i=r(4901),o=r(1625),n=r(7040),a=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=s("Symbol");return i(e)&&o(e.prototype,a(t))}},507:function(t,e,r){"use strict";var s=r(9565);t.exports=function(t,e,r){var i,o,n=r?t:t.iterator,a=t.next;while(!(i=s(a,n)).done)if(o=e(i.value),void 0!==o)return o}},2652:function(t,e,r){"use strict";var s=r(6080),i=r(9565),o=r(8551),n=r(6823),a=r(4209),l=r(6198),c=r(1625),h=r(81),u=r(851),d=r(9539),p=TypeError,f=function(t,e){this.stopped=t,this.result=e},m=f.prototype;t.exports=function(t,e,r){var g,y,v,w,k,b,x,_=r&&r.that,T=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),$=!(!r||!r.INTERRUPTED),E=s(e,_),M=function(t){return g&&d(g,"normal",t),new f(!0,t)},C=function(t){return T?(o(t),$?E(t[0],t[1],M):E(t[0],t[1])):$?E(t,M):E(t)};if(S)g=t.iterator;else if(O)g=t;else{if(y=u(t),!y)throw new p(n(t)+" is not iterable");if(a(y)){for(v=0,w=l(t);w>v;v++)if(k=C(t[v]),k&&c(m,k))return k;return new f(!1)}g=h(t,y)}b=S?t.next:g.next;while(!(x=i(b,g)).done){try{k=C(x.value)}catch(D){d(g,"throw",D)}if("object"==typeof k&&k&&c(m,k))return k}return new f(!1)}},9539:function(t,e,r){"use strict";var s=r(9565),i=r(8551),o=r(5966);t.exports=function(t,e,r){var n,a;i(t);try{if(n=o(t,"return"),!n){if("throw"===e)throw r;return r}n=s(n,t)}catch(l){a=!0,n=l}if("throw"===e)throw r;if(a)throw n;return i(n),r}},9462:function(t,e,r){"use strict";var s=r(9565),i=r(2360),o=r(6699),n=r(6279),a=r(8227),l=r(1181),c=r(5966),h=r(7657).IteratorPrototype,u=r(2529),d=r(9539),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",g=l.set,y=function(t){var e=l.getterFor(t?m:f);return n(i(h),{next:function(){var r=e(this);if(t)return r.nextHandler();try{var s=r.done?void 0:r.nextHandler();return u(s,r.done)}catch(i){throw r.done=!0,i}},return:function(){var r=e(this),i=r.iterator;if(r.done=!0,t){var o=c(i,"return");return o?s(o,i):u(void 0,!0)}if(r.inner)try{d(r.inner.iterator,"normal")}catch(n){return d(i,"throw",n)}return i&&d(i,"normal"),u(void 0,!0)}})},v=y(!0),w=y(!1);o(w,p,"Iterator Helper"),t.exports=function(t,e){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=e?m:f,s.nextHandler=t,s.counter=0,s.done=!1,g(this,s)};return r.prototype=e?v:w,r}},713:function(t,e,r){"use strict";var s=r(9565),i=r(9306),o=r(8551),n=r(1767),a=r(9462),l=r(6319),c=a((function(){var t=this.iterator,e=o(s(this.next,t)),r=this.done=!!e.done;if(!r)return l(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return o(this),i(t),new c(n(this),{mapper:t})}},7657:function(t,e,r){"use strict";var s,i,o,n=r(9039),a=r(4901),l=r(34),c=r(2360),h=r(2787),u=r(6840),d=r(8227),p=r(6395),f=d("iterator"),m=!1;[].keys&&(o=[].keys(),"next"in o?(i=h(h(o)),i!==Object.prototype&&(s=i)):m=!0);var g=!l(s)||n((function(){var t={};return s[f].call(t)!==t}));g?s={}:p&&(s=c(s)),a(s[f])||u(s,f,(function(){return this})),t.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,r){"use strict";var s=r(8014);t.exports=function(t){return s(t.length)}},283:function(t,e,r){"use strict";var s=r(9504),i=r(9039),o=r(4901),n=r(9297),a=r(3724),l=r(350).CONFIGURABLE,c=r(3706),h=r(1181),u=h.enforce,d=h.get,p=String,f=Object.defineProperty,m=s("".slice),g=s("".replace),y=s([].join),v=a&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),w=String(String).split("String"),k=t.exports=function(t,e,r){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var s=u(t);return n(s,"source")||(s.source=y(w,"string"==typeof e?e:"")),t};Function.prototype.toString=k((function(){return o(this)&&d(this).source||c(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var s=+t;return(s>0?r:e)(s)}},2360:function(t,e,r){"use strict";var s,i=r(8551),o=r(6801),n=r(8727),a=r(421),l=r(397),c=r(4055),h=r(6119),u=">",d="<",p="prototype",f="script",m=h("IE_PROTO"),g=function(){},y=function(t){return d+f+u+t+d+"/"+f+u},v=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){var t,e=c("iframe"),r="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},k=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}k="undefined"!=typeof document?document.domain&&s?v(s):w():v(s);var t=n.length;while(t--)delete k[p][n[t]];return k()};a[m]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(g[p]=i(t),r=new g,g[p]=null,r[m]=t):r=k(),void 0===e?r:o.f(r,e)}},6801:function(t,e,r){"use strict";var s=r(3724),i=r(8686),o=r(4913),n=r(8551),a=r(5397),l=r(1072);e.f=s&&!i?Object.defineProperties:function(t,e){n(t);var r,s=a(e),i=l(e),c=i.length,h=0;while(c>h)o.f(t,r=i[h++],s[r]);return t}},4913:function(t,e,r){"use strict";var s=r(3724),i=r(5917),o=r(8686),n=r(8551),a=r(6969),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",p="writable";e.f=s?o?function(t,e,r){if(n(t),e=a(e),n(r),"function"===typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var s=h(t,e);s&&s[p]&&(t[e]=r.value,r={configurable:d in r?r[d]:s[d],enumerable:u in r?r[u]:s[u],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(n(t),e=a(e),n(r),i)try{return c(t,e,r)}catch(s){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:function(t,e,r){"use strict";var s=r(3724),i=r(9565),o=r(8773),n=r(6980),a=r(5397),l=r(6969),c=r(9297),h=r(5917),u=Object.getOwnPropertyDescriptor;e.f=s?u:function(t,e){if(t=a(t),e=l(e),h)try{return u(t,e)}catch(r){}if(c(t,e))return n(!i(o.f,t,e),t[e])}},8480:function(t,e,r){"use strict";var s=r(1828),i=r(8727),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return s(t,o)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,r){"use strict";var s=r(9297),i=r(4901),o=r(8981),n=r(6119),a=r(2211),l=n("IE_PROTO"),c=Object,h=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(s(e,l))return e[l];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof c?h:null}},1625:function(t,e,r){"use strict";var s=r(9504);t.exports=s({}.isPrototypeOf)},1828:function(t,e,r){"use strict";var s=r(9504),i=r(9297),o=r(5397),n=r(9617).indexOf,a=r(421),l=s([].push);t.exports=function(t,e){var r,s=o(t),c=0,h=[];for(r in s)!i(a,r)&&i(s,r)&&l(h,r);while(e.length>c)i(s,r=e[c++])&&(~n(h,r)||l(h,r));return h}},1072:function(t,e,r){"use strict";var s=r(1828),i=r(8727);t.exports=Object.keys||function(t){return s(t,i)}},8773:function(t,e){"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!r.call({1:2},1);e.f=i?function(t){var e=s(this,t);return!!e&&e.enumerable}:r},4270:function(t,e,r){"use strict";var s=r(9565),i=r(4901),o=r(34),n=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&i(r=t.toString)&&!o(a=s(r,t)))return a;if(i(r=t.valueOf)&&!o(a=s(r,t)))return a;if("string"!==e&&i(r=t.toString)&&!o(a=s(r,t)))return a;throw new n("Can't convert object to primitive value")}},5031:function(t,e,r){"use strict";var s=r(7751),i=r(9504),o=r(8480),n=r(3717),a=r(8551),l=i([].concat);t.exports=s("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=n.f;return r?l(e,r(t)):e}},7750:function(t,e,r){"use strict";var s=r(4117),i=TypeError;t.exports=function(t){if(s(t))throw new i("Can't call method on "+t);return t}},9286:function(t,e,r){"use strict";var s=r(4402),i=r(8469),o=s.Set,n=s.add;t.exports=function(t){var e=new o;return i(t,(function(t){n(e,t)})),e}},3440:function(t,e,r){"use strict";var s=r(7080),i=r(4402),o=r(9286),n=r(5170),a=r(3789),l=r(8469),c=r(507),h=i.has,u=i.remove;t.exports=function(t){var e=s(this),r=a(t),i=o(e);return n(e)<=r.size?l(e,(function(t){r.includes(t)&&u(i,t)})):c(r.getIterator(),(function(t){h(e,t)&&u(i,t)})),i}},4402:function(t,e,r){"use strict";var s=r(9504),i=Set.prototype;t.exports={Set:Set,add:s(i.add),has:s(i.has),remove:s(i["delete"]),proto:i}},8750:function(t,e,r){"use strict";var s=r(7080),i=r(4402),o=r(5170),n=r(3789),a=r(8469),l=r(507),c=i.Set,h=i.add,u=i.has;t.exports=function(t){var e=s(this),r=n(t),i=new c;return o(e)>r.size?l(r.getIterator(),(function(t){u(e,t)&&h(i,t)})):a(e,(function(t){r.includes(t)&&h(i,t)})),i}},4449:function(t,e,r){"use strict";var s=r(7080),i=r(4402).has,o=r(5170),n=r(3789),a=r(8469),l=r(507),c=r(9539);t.exports=function(t){var e=s(this),r=n(t);if(o(e)<=r.size)return!1!==a(e,(function(t){if(r.includes(t))return!1}),!0);var h=r.getIterator();return!1!==l(h,(function(t){if(i(e,t))return c(h,"normal",!1)}))}},3838:function(t,e,r){"use strict";var s=r(7080),i=r(5170),o=r(8469),n=r(3789);t.exports=function(t){var e=s(this),r=n(t);return!(i(e)>r.size)&&!1!==o(e,(function(t){if(!r.includes(t))return!1}),!0)}},8527:function(t,e,r){"use strict";var s=r(7080),i=r(4402).has,o=r(5170),n=r(3789),a=r(507),l=r(9539);t.exports=function(t){var e=s(this),r=n(t);if(o(e)<r.size)return!1;var c=r.getIterator();return!1!==a(c,(function(t){if(!i(e,t))return l(c,"normal",!1)}))}},8469:function(t,e,r){"use strict";var s=r(9504),i=r(507),o=r(4402),n=o.Set,a=o.proto,l=s(a.forEach),c=s(a.keys),h=c(new n).next;t.exports=function(t,e,r){return r?i({iterator:c(t),next:h},e):l(t,e)}},4916:function(t,e,r){"use strict";var s=r(7751),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=s("Set");try{(new e)[t](i(0));try{return(new e)[t](i(-1)),!1}catch(r){return!0}}catch(o){return!1}}},5170:function(t,e,r){"use strict";var s=r(6706),i=r(4402);t.exports=s(i.proto,"size","get")||function(t){return t.size}},3650:function(t,e,r){"use strict";var s=r(7080),i=r(4402),o=r(9286),n=r(3789),a=r(507),l=i.add,c=i.has,h=i.remove;t.exports=function(t){var e=s(this),r=n(t).getIterator(),i=o(e);return a(r,(function(t){c(e,t)?h(i,t):l(i,t)})),i}},4204:function(t,e,r){"use strict";var s=r(7080),i=r(4402).add,o=r(9286),n=r(3789),a=r(507);t.exports=function(t){var e=s(this),r=n(t).getIterator(),l=o(e);return a(r,(function(t){i(l,t)})),l}},6119:function(t,e,r){"use strict";var s=r(5745),i=r(3392),o=s("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},7629:function(t,e,r){"use strict";var s=r(6395),i=r(4576),o=r(9433),n="__core-js_shared__",a=t.exports=i[n]||o(n,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,r){"use strict";var s=r(7629);t.exports=function(t,e){return s[t]||(s[t]=e||{})}},4495:function(t,e,r){"use strict";var s=r(9519),i=r(9039),o=r(4576),n=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},5610:function(t,e,r){"use strict";var s=r(1291),i=Math.max,o=Math.min;t.exports=function(t,e){var r=s(t);return r<0?i(r+e,0):o(r,e)}},5397:function(t,e,r){"use strict";var s=r(7055),i=r(7750);t.exports=function(t){return s(i(t))}},1291:function(t,e,r){"use strict";var s=r(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:s(e)}},8014:function(t,e,r){"use strict";var s=r(1291),i=Math.min;t.exports=function(t){var e=s(t);return e>0?i(e,9007199254740991):0}},8981:function(t,e,r){"use strict";var s=r(7750),i=Object;t.exports=function(t){return i(s(t))}},2777:function(t,e,r){"use strict";var s=r(9565),i=r(34),o=r(757),n=r(5966),a=r(4270),l=r(8227),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,l=n(t,h);if(l){if(void 0===e&&(e="default"),r=s(l,t,e),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,r){"use strict";var s=r(2777),i=r(757);t.exports=function(t){var e=s(t,"string");return i(e)?e:e+""}},2140:function(t,e,r){"use strict";var s=r(8227),i=s("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},3392:function(t,e,r){"use strict";var s=r(9504),i=0,o=Math.random(),n=s(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++i+o,36)}},7040:function(t,e,r){"use strict";var s=r(4495);t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,r){"use strict";var s=r(3724),i=r(9039);t.exports=s&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(t,e,r){"use strict";var s=r(4576),i=r(4901),o=s.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8227:function(t,e,r){"use strict";var s=r(4576),i=r(5745),o=r(9297),n=r(3392),a=r(4495),l=r(7040),c=s.Symbol,h=i("wks"),u=l?c["for"]||c:c&&c.withoutSetter||n;t.exports=function(t){return o(h,t)||(h[t]=a&&o(c,t)?c[t]:u("Symbol."+t)),h[t]}},4114:function(t,e,r){"use strict";var s=r(6518),i=r(8981),o=r(6198),n=r(4527),a=r(6837),l=r(9039),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),h=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},u=c||!h();s({target:"Array",proto:!0,arity:1,forced:u},{push:function(t){var e=i(this),r=o(e),s=arguments.length;a(r+s);for(var l=0;l<s;l++)e[r]=arguments[l],r++;return n(e,r),r}})},8111:function(t,e,r){"use strict";var s=r(6518),i=r(4576),o=r(679),n=r(8551),a=r(4901),l=r(2787),c=r(2106),h=r(4659),u=r(9039),d=r(9297),p=r(8227),f=r(7657).IteratorPrototype,m=r(3724),g=r(6395),y="constructor",v="Iterator",w=p("toStringTag"),k=TypeError,b=i[v],x=g||!a(b)||b.prototype!==f||!u((function(){b({})})),_=function(){if(o(this,f),l(this)===f)throw new k("Abstract class Iterator not directly constructable")},T=function(t,e){m?c(f,t,{configurable:!0,get:function(){return e},set:function(e){if(n(this),this===f)throw new k("You can't redefine this property");d(this,t)?this[t]=e:h(this,t,e)}}):f[t]=e};d(f,w)||T(w,v),!x&&d(f,y)&&f[y]!==Object||T(y,_),_.prototype=f,s({global:!0,constructor:!0,forced:x},{Iterator:_})},2489:function(t,e,r){"use strict";var s=r(6518),i=r(9565),o=r(9306),n=r(8551),a=r(1767),l=r(9462),c=r(6319),h=r(6395),u=l((function(){var t,e,r,s=this.iterator,o=this.predicate,a=this.next;while(1){if(t=n(i(a,s)),e=this.done=!!t.done,e)return;if(r=t.value,c(s,o,[r,this.counter++],!0))return r}}));s({target:"Iterator",proto:!0,real:!0,forced:h},{filter:function(t){return n(this),o(t),new u(a(this),{predicate:t})}})},7588:function(t,e,r){"use strict";var s=r(6518),i=r(2652),o=r(9306),n=r(8551),a=r(1767);s({target:"Iterator",proto:!0,real:!0},{forEach:function(t){n(this),o(t);var e=a(this),r=0;i(e,(function(e){t(e,r++)}),{IS_RECORD:!0})}})},1701:function(t,e,r){"use strict";var s=r(6518),i=r(713),o=r(6395);s({target:"Iterator",proto:!0,real:!0,forced:o},{map:i})},8237:function(t,e,r){"use strict";var s=r(6518),i=r(2652),o=r(9306),n=r(8551),a=r(1767),l=TypeError;s({target:"Iterator",proto:!0,real:!0},{reduce:function(t){n(this),o(t);var e=a(this),r=arguments.length<2,s=r?void 0:arguments[1],c=0;if(i(e,(function(e){r?(r=!1,s=e):s=t(s,e,c),c++}),{IS_RECORD:!0}),r)throw new l("Reduce of empty iterator with no initial value");return s}})},7642:function(t,e,r){"use strict";var s=r(6518),i=r(3440),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("difference")},{difference:i})},8004:function(t,e,r){"use strict";var s=r(6518),i=r(9039),o=r(8750),n=r(4916),a=!n("intersection")||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));s({target:"Set",proto:!0,real:!0,forced:a},{intersection:o})},3853:function(t,e,r){"use strict";var s=r(6518),i=r(4449),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:i})},5876:function(t,e,r){"use strict";var s=r(6518),i=r(3838),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:i})},2475:function(t,e,r){"use strict";var s=r(6518),i=r(8527),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:i})},5024:function(t,e,r){"use strict";var s=r(6518),i=r(3650),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:i})},1698:function(t,e,r){"use strict";var s=r(6518),i=r(4204),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:i})},8992:function(t,e,r){"use strict";r(8111)},4520:function(t,e,r){"use strict";r(2489)},3949:function(t,e,r){"use strict";r(7588)},1454:function(t,e,r){"use strict";r(1701)},8872:function(t,e,r){"use strict";r(8237)}},r={};function s(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t].call(o.exports,o,o.exports,s),o.exports}!function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.p=""}();var i={};return function(){"use strict";if(s.r(i),s.d(i,{default:function(){return Yr},ganttChart:function(){return Fr}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(s.p=e[1])}var r=function(){var t=this,e=t._self._c;return e("gantt-elastic",{attrs:{tasks:t.tasks,options:t.options,dynamicStyle:t.dynamicStyle}},[t.components.header?e(t.components.header,{tag:"component",attrs:{slot:"header"},slot:"header"}):t._e(),t.components.footer?e(t.components.footer,{tag:"component",attrs:{slot:"footer"},slot:"footer"}):t._e()],1)},o=[],n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"gantt-elastic",staticStyle:{width:"100%"}},[1==t.isHeaderVisible?e("gantt-header",{attrs:{slot:"header"},slot:"header"}):t._e(),e("gantt-view-filter",{attrs:{slot:"header"},on:{"view-mode-changed":t.onViewModeChanged},slot:"header"}),t._t("header"),e("main-view",{ref:"mainView",on:{"task-updated":t.handleTaskUpdated}}),t._t("footer")],2)},a=[],l=(s(4114),s(7642),s(8004),s(3853),s(5876),s(2475),s(5024),s(1698),s(8992),s(4520),s(3949),s(1454),s(8872),s(4353)),c=s.n(l),h=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-view-filter"},[e("div",{staticClass:"view-toggle-group"},[e("button",{staticClass:"view-toggle-btn",class:{active:"day"===t.viewMode},on:{click:function(e){return t.changeViewMode("day")}}},[e("span",{staticClass:"view-icon"},[t._v("📅")]),e("span",{staticClass:"view-label"},[t._v("Day")])]),e("button",{staticClass:"view-toggle-btn",class:{active:"week"===t.viewMode},on:{click:function(e){return t.changeViewMode("week")}}},[e("span",{staticClass:"view-icon"},[t._v("📊")]),e("span",{staticClass:"view-label"},[t._v("Week")])]),e("button",{staticClass:"view-toggle-btn",class:{active:"month"===t.viewMode},on:{click:function(e){return t.changeViewMode("month")}}},[e("span",{staticClass:"view-icon"},[t._v("🗓️")]),e("span",{staticClass:"view-label"},[t._v("Month")])]),e("button",{staticClass:"view-toggle-btn",class:{active:"quarter"===t.viewMode},on:{click:function(e){return t.changeViewMode("quarter")}}},[e("span",{staticClass:"view-icon"},[t._v("📈")]),e("span",{staticClass:"view-label"},[t._v("Quarter")])])])])},u=[],d={name:"GanttViewFilter",data(){return{viewMode:"day"}},methods:{changeViewMode(t){this.viewMode=t,this.$emit("view-mode-changed",t)}}},p=d;function f(t,e,r,s,i,o,n,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),s&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),n?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var h=c.render;c.render=function(t,e){return l.call(e),h(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}var m=f(p,h,u,!1,null,"f4bb58fc",null),g=m.exports,y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__main-view",style:{...t.root.style["main-view"]}},[e("div",{staticClass:"gantt-elastic__main-container-wrapper",style:{...t.root.style["main-container-wrapper"],height:t.root.state.options.height+"px"}},[e("div",{ref:"mainView",staticClass:"gantt-elastic__main-container",style:{...t.root.style["main-container"],width:t.root.state.options.clientWidth+"px",height:t.root.state.options.height+"px"}},[e("div",{staticClass:"gantt-elastic__container",style:{...t.root.style["container"]},on:{mousemove:t.mouseMove,mouseup:t.mouseUp}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskList",staticClass:"gantt-elastic__task-list-container",style:{...t.root.style["task-list-container"],width:t.root.state.options.taskList.finalWidth+"px",height:t.root.state.options.height+"px"}},[e("task-list")],1),e("div",{ref:"chartContainer",staticClass:"gantt-elastic__main-view-container",style:{...t.root.style["main-view-container"]},on:{mousedown:t.chartMouseDown,touchstart:t.chartMouseDown,mouseup:t.chartMouseUp,touchend:t.chartMouseUp,mousemove:function(e){return e.preventDefault(),t.chartMouseMove.apply(null,arguments)},touchmove:function(e){return e.preventDefault(),t.chartMouseMove.apply(null,arguments)},wheel:function(e){return e.preventDefault(),t.chartWheel.apply(null,arguments)}}},[e("chart",{on:{"task-updated":t.handleTaskUpdated}})],1)])]),e("div",{ref:"chartScrollContainerVertical",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--vertical",style:{...t.root.style["chart-scroll-container"],...t.root.style["chart-scroll-container--vertical"],...t.verticalStyle},on:{scroll:t.onVerticalScroll}},[e("div",{staticClass:"gantt-elastic__chart-scroll--vertical",style:{width:"1px",height:t.root.state.options.allVisibleTasksHeight+"px"}})])]),e("div",{ref:"chartScrollContainerHorizontal",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--horizontal",style:{...t.root.style["chart-scroll-container"],...t.root.style["chart-scroll-container--horizontal"],marginLeft:t.getMarginLeft},on:{scroll:t.onHorizontalScroll}},[e("div",{staticClass:"gantt-elastic__chart-scroll--horizontal",style:{height:"1px",width:t.root.state.options.width+"px"}})])])},v=[],w=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskListWrapper",staticClass:"gantt-elastic__task-list-wrapper",style:{...t.root.style["task-list-wrapper"],width:"100%",height:"100%"}},[e("div",{ref:"taskList",staticClass:"gantt-elastic__task-list",style:{...t.root.style["task-list"]}},[e("task-list-header"),e("div",{ref:"taskListItems",staticClass:"gantt-elastic__task-list-items",style:{...t.root.style["task-list-items"],height:t.root.state.options.rowsHeight+"px"}},t._l(t.root.visibleTasks,(function(t){return e("task-list-item",{key:t.id,attrs:{task:t}})})),1)],1)])},k=[],b=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-header",style:t.headerStyle},t._l(t.root.getTaskListColumns,(function(r){return e("div",{key:r._id,staticClass:"gantt-elastic__task-list-header-column",style:t.columnStyle(r)},[r.expander?e("task-list-expander",{attrs:{tasks:t.collapsible,options:t.root.state.options.taskList.expander}}):t._e(),e("div",{staticClass:"gantt-elastic__task-list-header-label",style:t.headerLabelStyle(r),attrs:{column:r},on:{mouseup:t.resizerMouseUp}},[t._v(" "+t._s(r.label)+" ")]),e("div",{staticClass:"gantt-elastic__task-list-header-resizer-wrapper",style:t.resizerWrapperStyle(r),attrs:{column:r},on:{mousedown:function(e){return t.resizerMouseDown(e,r)}}},[e("div",{staticClass:"gantt-elastic__task-list-header-resizer",style:t.resizerStyle(r)},t._l(3,(function(s){return e("div",{key:s,staticClass:"gantt-elastic__task-list-header-resizer-dot",style:t.resizerDotStyle(r)})})),0)])],1)})),0)},x=[],_=function(){var t=this,e=t._self._c;return e("div",{class:t.getClassPrefix()+"-wrapper",style:{...t.root.style[t.getClassPrefix(!1)+"-wrapper"],...t.style}},[t.allChildren.length?e("svg",{class:t.getClassPrefix()+"-content",style:{...t.root.style[t.getClassPrefix(!1)+"-content"]},attrs:{width:t.options.size,height:t.options.size,viewBox:"0 0 16 16"},on:{click:t.toggle}},[e("path",{class:t.getClassPrefix()+"-arrow",style:{...t.root.style[t.getClassPrefix(!1)+"-arrow"]},attrs:{d:t.collapsed?"M6 4 L10 8 L6 12":"M4 6 L8 10 L12 6",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e()])},T=[],S={name:"Expander",inject:["root"],props:["tasks","options","type"],data(){const t=.5;return{border:t,borderStyle:{"stroke-width":t},lineOffset:5}},computed:{style(){if("taskList"!==this.type)return{};const t=this.root.state.options.taskList.expander.margin,e=this.tasks[0].parents.length*this.root.state.options.taskList.expander.padding;return{"padding-left":e+t+"px",margin:"auto 0"}},allChildren(){const t=[];return this.tasks.forEach((e=>{e.allChildren.forEach((e=>{t.push(e)}))})),t},collapsed(){if(0===this.tasks.length)return!1;let t=0;for(let e=0,r=this.tasks.length;e<r;e++)this.tasks[e].collapsed&&t++;return t===this.tasks.length}},methods:{getClassPrefix(t=!0){return`${t?"gantt-elastic__":""}${this.options.type}-expander`},toggle(){if(0===this.tasks.length)return;const t=!this.collapsed;this.tasks.forEach((e=>{e.collapsed=t})),this.$forceUpdate(),this.root.$forceUpdate()}}},O=S,$=f(O,_,T,!1,null,null,null),E=$.exports,M={name:"TaskListHeader",components:{TaskListExpander:E},inject:["root"],data(){return{resizer:{moving:!1,x:0}}},computed:{collapsible(){return this.root.state.tasks.filter((t=>t.allChildren.length>0))},headerStyle(){return{...this.root.style["task-list-header"],height:`${this.root.state.options.calendar.height}px`,marginBottom:`${this.root.state.options.calendar.gap}px`}}},methods:{columnStyle(t){return{...this.root.style["task-list-header-column"],...t.style["task-list-header-column"],width:`${t.finalWidth}px`}},headerLabelStyle(t){return{...this.root.style["task-list-header-label"],...t.style["task-list-header-label"]}},resizerWrapperStyle(t){return{...this.root.style["task-list-header-resizer-wrapper"],...t.style["task-list-header-resizer-wrapper"]}},resizerStyle(t){return{...this.root.style["task-list-header-resizer"],...t.style["task-list-header-resizer"]}},resizerDotStyle(t){return{...this.root.style["task-list-header-resizer-dot"],...t.style["task-list-header-resizer-dot"]}},resizerMouseDown(t,e){this.resizer.moving||(this.resizer.moving=e,this.resizer.x=t.clientX,this.resizer.initialWidth=e.width,this.root.$emit("taskList-column-width-change-start",this.resizer.moving))},resizerMouseMove(t){if(this.resizer.moving){const e=this.resizer.moving.width;this.resizer.moving.width=this.resizer.initialWidth+t.clientX-this.resizer.x,this.resizer.moving.width<this.root.state.options.taskList.minWidth&&(this.resizer.moving.width=this.root.state.options.taskList.minWidth),e!==this.resizer.moving.width&&this.root.$emit("taskList-column-width-change",this.resizer.moving)}},resizerMouseUp(){this.resizer.moving&&(this.root.$emit("taskList-column-width-change-stop",this.resizer.moving),this.resizer.moving=!1)}},created(){document.addEventListener("mouseup",this.resizerMouseUp),document.addEventListener("mousemove",this.resizerMouseMove),this.root.$on("main-view-mousemove",this.resizerMouseMove),this.root.$on("main-view-mouseup",this.resizerMouseUp)}},C=M,D=f(C,b,x,!1,null,null,null),P=D.exports,L=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-item",style:{...t.root.style["task-list-item"]}},t._l(t.columns,(function(r){return e("item-column",{key:r._id,attrs:{column:r,task:t.task}},[r.expander?e("task-list-expander",{attrs:{tasks:[t.task],options:t.root.state.options.taskList.expander,type:"taskList"}}):t._e()],1)})),1)},j=[],z=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-item-column",style:t.itemColumnStyle},[e("div",{staticClass:"gantt-elastic__task-list-item-value-wrapper",style:t.wrapperStyle},[t._t("default"),e("div",{staticClass:"gantt-elastic__task-list-item-value-container",style:t.containerStyle},[t.html?e("div",{staticClass:"gantt-elastic__task-list-item-value",style:t.valueStyle,on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[t.column.expander&&t.taskIcon?e("div",{staticClass:"gantt-elastic__task-list-item-icon",style:t.iconStyle},[e("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"}},[e("path",{attrs:{d:t.taskIcon,fill:t.iconColor,stroke:t.iconStroke,"stroke-width":"0.8"}})])]):t._e(),e("span",{staticClass:"gantt-elastic__task-list-item-text",domProps:{innerHTML:t._s(t.value)}})]):e("div",{staticClass:"gantt-elastic__task-list-item-value",style:t.valueStyle,on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[t.column.expander&&t.taskIcon?e("div",{staticClass:"gantt-elastic__task-list-item-icon",style:t.iconStyle},[e("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"}},[e("path",{attrs:{d:t.taskIcon,fill:t.iconColor,stroke:t.iconStroke,"stroke-width":"0.8"}})])]):t._e(),e("span",{staticClass:"gantt-elastic__task-list-item-text"},[t._v(t._s(t.value))])])])],2)])},A=[],R={name:"ItemColumn",inject:["root"],props:["column","task"],data(){return{}},methods:{emitEvent(t,e){"undefined"!==typeof this.column.events&&"function"===typeof this.column.events[t]&&this.column.events[t]({event:e,data:this.task,column:this.column}),this.root.$emit(`taskList-${this.task.type}-${t}`,{event:e,data:this.task,column:this.column})}},computed:{html(){return"undefined"!==typeof this.column.html&&!0===this.column.html},value(){return"function"===typeof this.column.value?this.column.value(this.task):this.task[this.column.value]},itemColumnStyle(){return{...this.root.style["task-list-item-column"],...this.column.style["task-list-item-column"],width:this.column.finalWidth+"px",height:this.column.height+"px"}},wrapperStyle(){return{...this.root.style["task-list-item-value-wrapper"],...this.column.style["task-list-item-value-wrapper"]}},containerStyle(){return{...this.root.style["task-list-item-value-container"],...this.column.style["task-list-item-value-container"]}},valueStyle(){return{...this.root.style["task-list-item-value"],...this.column.style["task-list-item-value"]}},taskIcon(){if(this.task.icon)return this.task.icon;const t={milestone:"M7 2 L12 7 L7 12 L2 7 Z",task:"M3 3 L11 3 L11 11 L3 11 Z",project:"M7 2 L12 7 L7 12 L2 7 Z",sprint:"M3 4 L11 4 L11 10 L3 10 Z",flag:"M3 3 L9 3 L9 7 L7 9 L5 7 L5 3 Z M3 3 L3 11 M5 3 L5 11",check:"M3 3 L11 3 L11 11 L3 11 Z M5 7 L7 9 L9 5",epic:"M7 2 L12 7 L7 12 L2 7 Z"};return t[this.task.type]||t["task"]},iconColor(){if(this.task.iconColor)return this.task.iconColor;const t={milestone:"#CD5C5C",task:"#3B82F6",project:"#8B5CF6",sprint:"#F59E0B",flag:"#10B981",check:"#3B82F6",epic:"#8B5CF6",story:"#86EFAC",subtask:"#3B82F6"};return t[this.task.type]||"#6B7280"},iconStroke(){return this.task.iconStroke?this.task.iconStroke:this.iconColor},iconStyle(){return{display:"flex",alignItems:"center",marginRight:"6px",flexShrink:0,width:"14px",height:"14px"}}}},H=R,I=f(H,z,A,!1,null,null,null),V=I.exports,W={name:"TaskListItem",components:{TaskListExpander:E,ItemColumn:V},inject:["root"],props:["task"],data(){return{}},computed:{columns(){return this.root.state.options.taskList.columns}}},B=W,F=f(B,L,j,!1,null,null,null),N=F.exports,Y={name:"TaskList",components:{TaskListHeader:P,TaskListItem:N},inject:["root"],data(){return{}},mounted(){this.root.state.refs.taskListWrapper=this.$refs.taskListWrapper,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.taskListItems=this.$refs.taskListItems}},q=Y,U=f(q,w,k,!1,null,null,null),X=U.exports,G=function(){var t=this,e=t._self._c;return e("div",{ref:"chart",staticClass:"gantt-elastic__chart",style:{...t.root.style["chart"]}},[e("div",{ref:"chartCalendarContainer",staticClass:"gantt-elastic__chart-calendar-container",style:{...t.root.style["chart-calendar-container"],height:t.root.state.options.calendar.height+"px","margin-bottom":t.root.state.options.calendar.gap+"px"}},[e("calendar")],1),e("div",{ref:"chartGraphContainer",staticClass:"gantt-elastic__chart-graph-container",style:{...t.root.style["chart-graph-container"],height:t.root.state.options.height-t.root.state.options.calendar.height+"px"}},[e("div",{style:{...t.root.style["chart-area"],width:t.root.state.options.width+"px",height:t.root.state.options.rowsHeight+"px"}},[e("div",{ref:"chartGraph",staticClass:"gantt-elastic__chart-graph",style:{...t.root.style["chart-graph"],height:"100%"}},[e("svg",{ref:"chartGraphSvg",staticClass:"gantt-elastic__chart-graph-svg",style:{...t.root.style["chart-graph-svg"]},attrs:{x:"0",y:"0",width:t.root.state.options.width+"px",height:t.root.state.options.allVisibleTasksHeight+"px",xmlns:"http://www.w3.org/2000/svg"}},[e("days-highlight"),e("grid"),e("dependency-lines",{attrs:{tasks:t.root.visibleTasks}}),t._l(t.root.visibleTasks,(function(r){return e("g",{key:r.id,staticClass:"gantt-elastic__chart-row-wrapper",style:{...t.root.style["chart-row-wrapper"]},attrs:{task:r}},[e(r.type,{tag:"component",attrs:{task:r},on:{"task-updated":t.handleTaskUpdated}})],1)}))],2)])])])])},Z=[],Q=function(){var t=this,e=t._self._c;return e("svg",{ref:"chart",staticClass:"gantt-elastic__grid-lines-wrapper",style:{...t.root.style["grid-lines-wrapper"]},attrs:{x:"0",y:"0",width:t.root.state.options.width,height:t.root.state.options.allVisibleTasksHeight,xmlns:"http://www.w3.org/2000/svg"}},[e("g",{staticClass:"gantt-elastic__grid-lines",style:{...t.root.style["grid-lines"]}},[t._l(t.horizontalLines,(function(r){return e("line",{key:r.key,staticClass:"gantt-elastic__grid-line-horizontal",style:{...t.root.style["grid-line-horizontal"]},attrs:{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}})})),t._l(t.verticalLines,(function(r){return e("line",{key:r.key,staticClass:"gantt-elastic__grid-line-vertical",style:{...t.root.style["grid-line-vertical"]},attrs:{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}})})),e("line",{staticClass:"gantt-elastic__grid-line-time",style:{...t.root.style["grid-line-time"]},attrs:{x1:t.timeLinePosition.x,y1:t.timeLinePosition.y1,x2:t.timeLinePosition.x,y2:t.timeLinePosition.y2}})],2)])},K=[],J={name:"Grid",inject:["root"],data(){return{}},created(){this.root.$on("recenterPosition",this.recenterPosition)},mounted(){this.$nextTick((()=>{this.$nextTick((()=>{this.root.scrollToTime(this.timeLinePosition.time)}))}))},methods:{recenterPosition(){this.root.scrollToTime(this.timeLinePosition.time)}},computed:{verticalLines(){let t=[];const e=this.root.state;e.options.times.steps.forEach(((r,s)=>{if(r.offset&&"number"===typeof r.offset.px&&!isNaN(r.offset.px)){const i={key:r.time,x1:Math.round(r.offset.px),y1:0,x2:Math.round(r.offset.px),y2:e.tasks.length*(e.options.row.height+2*e.options.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]};t.push(i),"quarter"===e.options.times.stepDuration&&console.log(`Grid Line ${s}:`,{x:i.x1,time:new Date(r.time).toISOString().split("T")[0],quarter:new Date(r.time).getMonth()<3?1:new Date(r.time).getMonth()<6?2:new Date(r.time).getMonth()<9?3:4,stepWidth:r.width&&r.width.px||0,stepOffset:r.offset&&r.offset.px||0,hasValidX:i.x1>=0&&!isNaN(i.x1)})}else"quarter"===e.options.times.stepDuration&&console.log(`Skipped Grid Line ${s}:`,{time:new Date(r.time).toISOString().split("T")[0],offset:r.offset,hasValidOffset:!(!r.offset||"number"!==typeof r.offset.px||isNaN(r.offset.px))})}));const r=e.options.times.steps[e.options.times.steps.length-1];if(r){const s=Math.round(r.offset.px+r.width.px);t.push({key:"final-line",x1:s,y1:0,x2:s,y2:e.tasks.length*(e.options.row.height+2*e.options.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]})}return t},horizontalLines(){let t=[];const e=this.root.state.options;let r=this.root.visibleTasks;if(r.length>0){const s=e.row.height+2*e.chart.grid.horizontal.gap,i=r.length;for(let e=0;e<=i;e++){const r=e*s+this.root.style["grid-line-vertical"]["stroke-width"]/2;t.push({key:"hl"+e,x1:0,y1:r,x2:"100%",y2:r})}}else{const r=window.innerHeight,s=e.calendar.height+e.calendar.gap,i=.7*r-s-40,o=Math.max(i,300),n=e.row.height+2*e.chart.grid.horizontal.gap,a=Math.floor(o/n);for(let e=0;e<=a;e++){const r=e*n+this.root.style["grid-line-vertical"]["stroke-width"]/2;t.push({key:"hl"+e,x1:0,y1:r,x2:"100%",y2:r})}}return t},inViewPort(){return t=>{const e=this.root.state.options;return t.x1>=e.scroll.chart.left&&t.x1<=e.scroll.chart.right}},timeLinePosition(){const t=new Date,e=t.getTime(),r=this.root.timeToPixelOffsetX(e),s={x:0,y1:0,y2:"100%",dateTime:"",time:e};return s.x=r,s.dateTime=t.toLocaleDateString(),s}}},tt=J,et=f(tt,Q,K,!1,null,null,null),rt=et.exports,st=function(){var t=this,e=t._self._c;return t.showWorkingDays?e("g",{staticClass:"gantt-elastic__chart-days-highlight-container",style:{...t.root.style["chart-days-highlight-container"]}},t._l(t.workingDays,(function(r){return e("rect",{key:t.getKey(r),staticClass:"gantt-elastic__chart-days-highlight-rect",style:{...t.root.style["chart-days-highlight-rect"]},attrs:{x:r.offset.px,y:"0",width:r.width.px,height:"100%"}})})),0):t._e()},it=[],ot={name:"DaysHighlight",inject:["root"],data(){return{}},methods:{getKey(t){return c()(t.time).format("YYYY-MM-DD HH:mm")}},computed:{workingDays(){return this.root.state.options.times.steps.filter((t=>-1===this.root.state.options.calendar.workingDays.indexOf(c()(t.time).day())))},showWorkingDays(){const t=this.root.state.options.calendar;return!("undefined"===typeof t.workingDays||!Array.isArray(t.workingDays)||!t.workingDays.length)}}},nt=ot,at=f(nt,st,it,!1,null,null,null),lt=at.exports,ct=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__calendar-wrapper",style:{...t.root.style["calendar-wrapper"],width:t.root.state.options.width+"px"}},[e("div",{staticClass:"gantt-elastic__calendar",style:{...t.root.style["calendar"],width:t.root.state.options.width+"px"}},["quarter"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.quarters,which:"quarter"}}):t._e(),"month"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.months,which:"month"}}):t._e(),"week"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.weeks,which:"week"}}):t._e(),"day"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.days,which:"day"}}):t._e()],1)])},ht=[],ut=s(8134),dt=s.n(ut),pt=s(1816),ft=s.n(pt),mt=function(){var t=this,e=t._self._c;return e("section",[e("div",{class:"gantt-elastic__calendar-row gantt-elastic__calendar-row--"+t.which,style:t.rowStyle},t._l(t.items,(function(r,s){return e("div",{key:r.key,class:"gantt-elastic__calendar-row-rect gantt-elastic__calendar-row-rect--"+t.which,style:t.rectStyle},t._l(r.children,(function(r,i){return e("div",{key:r.key,class:"gantt-elastic__calendar-row-rect-child gantt-elastic__calendar-row-rect-child--"+t.which,style:t.rectChildStyle[s][i]},[e("div",{class:"gantt-elastic__calendar-row-text gantt-elastic__calendar-row-text--"+t.which,style:t.textStyle(r)},[t._v(" "+t._s(r.label)+" ")])])})),0)})),0)])},gt=[],yt={name:"CalendarRow",inject:["root"],props:["items","which"],data(){return{}},methods:{getTextX(t){let e=t.width/2-t.textWidth/2;const r=this.root.style["grid-line-vertical"]["stroke-width"]||1,s=Math.max(r/2+2,4);return"month"===this.which?(e=(t.width-t.textWidth)/2,e<s?e=s:e+t.textWidth+s>t.width&&(e=t.width-t.textWidth-s)):e+t.textWidth+s>t.width?e=t.width-t.textWidth-s:e<s&&(e=s),e}},computed:{rowStyle(){return{...this.root.style["calendar-row"],...this.root.style["calendar-row--"+this.which],position:"relative"}},rectStyle(){return{...this.root.style["calendar-row-rect"],...this.root.style["calendar-row-rect--"+this.which]}},rectChildStyle(){const t={...this.root.style["calendar-row-rect-child"],...this.root.style["calendar-row-rect-child--"+this.which]},e=[];for(let r of this.items){const s=[];for(let e of r.children)s.push({...t,width:e.width+"px",height:e.height+"px",left:e.x+"px",position:"absolute"});e.push(s)}return e},textStyle(){const t={...this.root.style["calendar-row-text"],...this.root.style["calendar-row-text--"+this.which]};return e=>{const r={...t};return r}}}},vt=yt,wt=f(vt,mt,gt,!1,null,null,null),kt=wt.exports;c().extend(dt()),c().extend(ft());var bt={name:"Calendar",components:{CalendarRow:kt},inject:["root"],data(){return{dayjsInstance:c()}},computed:{viewMode(){return this.root.state.options.calendar.viewMode||"day"},dates(){const t=this.generateDays(),e=this.generateWeeks(),r=this.generateMonths(),s=this.generateQuarters(),i={days:t,weeks:e,months:r,quarters:s};return this.calculateCalendarDimensions(i),i}},methods:{calculateCalendarDimensions({days:t,weeks:e,months:r,quarters:s}){let i=0;"quarter"===this.viewMode&&s.length>0&&(i+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"===this.viewMode&&r.length>0&&(i+=this.root.state.options.calendar.month.height||25),"week"===this.viewMode&&e.length>0&&(i+=this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25),"day"===this.viewMode&&t.length>0&&(i+=this.root.state.options.calendar.day.height),this.root.state.options.calendar.height=i},generateDays(){let t=[];if("day"!==this.viewMode&&"week"!==this.viewMode)return t;const e=this.howManyDaysFit();if(0===e.count)return t;const r=this.root.state.options.times.steps,s=this.root.state.options.locale.name,i=Math.ceil(r.length/e.count);for(let o=0,n=r.length;o<n;o+=i){let n=0;for(let t=0;t<i;t++)"undefined"!==typeof r[o+t]&&(n+=r[o+t].width.px);const a=this.dayjsInstance(r[o].time);let l=0;"undefined"!==typeof this.root.state.options.calendar.day.widths[o]&&(l=this.root.state.options.calendar.day.widths[o][e.type]);let c=Math.round(r[o].offset.px);t.push({index:o,key:r[o].time+"d",x:c,y:this.getYPosition("day"),width:n,textWidth:l,height:this.root.state.options.calendar.day.height,label:this.root.state.options.calendar.day.format[e.type](a.locale(s))})}return t.map((t=>({key:t.key,children:[t]})))},generateWeeks(){let t=[];if("week"!==this.viewMode)return t;const e=this.root.state.options.times.steps;let r=null,s=0,i=0,o=null,n=null;for(let l=0;l<e.length;l++)try{const a=this.dayjsInstance(e[l].time),c=a.week(),h=a.year(),u=`${h}-W${c}`;if(u!==r){if(null!==r){const e=o.format("MMMM"),a=o.date(),l=n.date();let c=`${e} ${a}`;if(o.month()!==n.month()){const t=n.format("MMMM");c=`${e} ${a} - ${t} ${l}`}else a!==l&&(c=`${e} ${a}-${l}`);t.push({key:r,x:s,y:this.getYPosition("week"),width:i,textWidth:50,height:this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25,label:c})}r=u,s=Math.round(e[l].offset.px),i=e[l].width.px,o=a.clone().startOf("week"),n=a.clone().endOf("week")}else i+=e[l].width.px,n=a.clone().endOf("week")}catch(a){console.error("Error processing week:",a);continue}if(null!==r){const e=o.format("MMMM"),a=o.date(),l=n.date();let c=`${e} ${a}`;if(o.month()!==n.month()){const t=n.format("MMMM");c=`${e} ${a} - ${t} ${l}`}else a!==l&&(c=`${e} ${a}-${l}`);t.push({key:r,x:s,y:this.getYPosition("week"),width:i,textWidth:60,height:this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25,label:c})}return t.map((t=>({key:t.key,children:[t]})))},generateMonths(){let t=[];if(!this.root.state.options.calendar.month.display)return t;const e=this.howManyMonthsFit();if(0===e.count)return t;this.root.state.options.times.steps;const r=this.root.state.options.locale.name;let s=Object.keys(this.root.state.options.calendar.month.format),i=c()(this.root.state.options.times.firstTime);for(let o=0;o<e.count;o++){let e=0,n=Number.MAX_SAFE_INTEGER,a=c()(i).add(1,"month").startOf("month");a.valueOf()>this.root.state.options.times.lastTime&&(a=c()(this.root.state.options.times.lastTime));for(let t=0,r=this.root.state.options.times.steps.length;t<r;t++){let r=this.root.state.options.times.steps[t];r.time>=i.valueOf()&&r.time<a.valueOf()&&(e+=r.width.px,r.offset.px<n&&(n=r.offset.px))}let l,h="";for(let t of s)this.root.state.options.calendar.month.maxWidths[t]+2<=e&&(h=this.root.state.options.calendar.month.format[t](i.locale(r)),l=t);let u=0;"undefined"!==typeof this.root.state.options.calendar.month.widths[o]&&(u=this.root.state.options.calendar.month.widths[o][l]);let d=Math.round(n);t.push({index:o,key:o+"m",x:d,y:0,width:e,textWidth:u,choosenFormatName:l,height:this.root.state.options.calendar.month.height,label:h}),i=i.add(1,"month").startOf("month"),i.valueOf()>this.root.state.options.times.lastTime&&(i=c()(this.root.state.options.times.lastTime))}return t.map((t=>({key:t.key,children:[t]})))},generateQuarters(){let t=[];if("quarter"!==this.viewMode)return t;const e=this.root.state.options.times.steps;console.log("Quarter Generation Debug:",{stepsCount:e.length,firstStepTime:this.dayjsInstance(e[0]&&e[0].time).format("YYYY-MM-DD"),lastStepTime:this.dayjsInstance(e[e.length-1]&&e[e.length-1].time).format("YYYY-MM-DD"),firstStepQuarter:this.dayjsInstance(e[0]&&e[0].time).quarter(),lastStepQuarter:this.dayjsInstance(e[e.length-1]&&e[e.length-1].time).quarter()});let r=null,s=0,i=0,o=null,n=null;for(let l=0;l<e.length;l++)try{const a=this.dayjsInstance(e[l].time),c=a.quarter(),h=a.year(),u=`Q${c}-${h}`;if(console.log(`Step ${l}:`,{time:a.format("YYYY-MM-DD"),quarter:c,year:h,quarterKey:u,currentQuarter:r}),u!==r){if(null!==r){const e=o.format("MMMM"),a=n.format("MMMM"),l=n.format("YY"),c=`${e} – ${a} '${l}`;t.push({key:r,x:s,y:this.getYPosition("quarter"),width:i,textWidth:50,height:this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30,label:c})}r=u,s=Math.round(e[l].offset.px),i=e[l].width.px,o=a.clone().startOf("quarter"),n=a.clone().endOf("quarter")}else i+=e[l].width.px,n=a.clone().endOf("quarter")}catch(a){console.error("Error processing quarter:",a);continue}if(null!==r){const e=o.format("MMMM"),a=n.format("MMMM"),l=n.format("YY"),c=`${e} – ${a} '${l}`;t.push({key:r,x:s,y:this.getYPosition("quarter"),width:i,textWidth:60,height:this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30,label:c})}return t.map((t=>({key:t.key,children:[t]})))},getYPosition(t){let e=0;switch(t){case"quarter":return 0;case"month":return"quarter"===this.viewMode?this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30:0;case"week":return"quarter"===this.viewMode&&(e+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"!==this.viewMode&&"quarter"!==this.viewMode||(e+=this.root.state.options.calendar.month.height),e;case"day":return e=0,"quarter"===this.viewMode&&(e+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"!==this.viewMode&&"quarter"!==this.viewMode||(e+=this.root.state.options.calendar.month.height),"week"===this.viewMode&&(e+=this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25),e;case"hour":return e=0,"quarter"===this.viewMode&&(e+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"!==this.viewMode&&"quarter"!==this.viewMode||(e+=this.root.state.options.calendar.month.height),"week"===this.viewMode&&(e+=this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25),"day"===this.viewMode&&(e+=this.root.state.options.calendar.day.height),e;default:return 0}},howManyHoursFit(t){const e=1,r=e+2;let s=this.root.state.options.times.steps[t].width.px,i=Object.keys(this.root.state.options.calendar.hour.format);for(let o=24;o>1;o=Math.ceil(o/2))for(let t of i)if((this.root.state.options.calendar.hour.maxWidths[t]+r)*o<=s&&o>1)return{count:o,type:t};return{count:0,type:""}},howManyDaysFit(){const t=1,e=t+2;let r=this.root.state.options.width,s=Object.keys(this.root.state.options.calendar.day.format);for(let i=this.root.state.options.times.steps.length;i>1;i=Math.ceil(i/2))for(let t of s)if((this.root.state.options.calendar.day.maxWidths[t]+e)*i<=r&&i>1)return{count:i,type:t};return{count:0,type:""}},howManyMonthsFit(){const t=1,e=t+2;let r=this.root.state.options.width,s=Object.keys(this.root.state.options.calendar.month.format),i=c()(this.root.state.options.times.firstTime);i.clone();this.root.state.options.times.lastTime;let o=this.root.monthsCount(this.root.state.options.times.firstTime,this.root.state.options.times.lastTime);if(1===o)for(let n of s)if(this.root.state.options.calendar.month.maxWidths[n]+e<=r)return{count:1,type:n};for(let n=o;n>1;n=Math.ceil(n/2))for(let t of s)if((this.root.state.options.calendar.month.maxWidths[t]+e)*n<=r&&n>1)return{count:n,type:t};return{count:0,type:s[0]}}}},xt=bt,_t=f(xt,ct,ht,!1,null,null,null),Tt=_t.exports,St=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"gantt-elastic__chart-dependency-lines-container",style:{...t.root.style["chart-dependency-lines-container"]},attrs:{x:"0",y:"0",width:"100%",height:"100%"}},t._l(t.dependencyTasks,(function(r){return e("g",{key:r.id,attrs:{task:r}},t._l(r.dependencyLines,(function(s){return e("path",{key:s.id,staticClass:"gantt-elastic__chart-dependency-lines-path",style:{...t.root.style["chart-dependency-lines-path"],...r.style["chart-dependency-lines-path"],...r.style["chart-dependency-lines-path-"+s.task_id]},attrs:{task:r,d:s.points}})})),0)})),0)},Ot=[],$t={name:"DependencyLines",inject:["root"],props:["tasks"],data(){return{}},methods:{getPoints(t,e){const r=this.root.getTask(t),s=this.root.getTask(e);if(null===r||null===s||!this.root.isTaskVisible(s)||!this.root.isTaskVisible(r))return null;const i=r.x+r.width,o=r.y+r.height/2,n=s.x,a=s.y+s.height/2,l=n-i;let c,h=1;a>=o?c=a-o:(c=o-a,h=-1);const u=10,d=4,p=l<=u+d;let f=`M ${i} ${o}\n L ${i+u},${o} `;return f+=p?`Q ${i+u+d},${o} ${i+u+d},${o+d*h}\n L ${i+u+d},${o+c*h/2-d*h}\n Q ${i+u+d},${o+c*h/2} ${i+u},${o+c*h/2}\n L ${i-u+l},${o+c*h/2}\n Q ${i-u+l-d},${o+c*h/2} ${i-u+l-d},${o+c*h/2+d*h}\n L ${i-u+l-d},${a-d*h}\n Q ${i-u+l-d},${a} ${i-u+l},${a}\n L ${n},${a}`:`L ${i+l/2-d},${o}\n Q ${i+l/2},${o} ${i+l/2},${o+d*h}\n L ${i+l/2},${a-d*h}\n Q ${i+l/2},${a} ${i+l/2+d},${a}\n L ${n},${a}`,f}},computed:{dependencyTasks(){return this.tasks.filter((t=>"undefined"!==typeof t.dependentOn)).map((t=>(t.dependencyLines=t.dependentOn.map((e=>({points:this.getPoints(e,t.id),task_id:e}))),t))).filter((t=>null!==t.dependencyLines.points))}}},Et=$t,Mt=f(Et,St,Ot,!1,null,null,null),Ct=Mt.exports,Dt=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-task-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-task-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--task",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--task"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-task",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-task"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-task-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-task-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"8",y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-8,y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},Pt=[],Lt=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"gantt-elastic__chart-row-text-wrapper",style:{...t.root.style["chart-row-text-wrapper"]},attrs:{x:t.task.x+t.task.width+t.root.state.options.chart.text.offset,y:t.task.y-t.root.state.options.chart.grid.horizontal.gap,width:t.getWidth,height:t.getHeight}},[e("foreignObject",{attrs:{x:"0",y:"0",width:"100%",height:t.getHeight}},[e("div",{staticClass:"gantt-elastic__chart-row-text",style:{...t.root.style["chart-row-text"]},attrs:{xmlns:"http://www.w3.org/1999/xhtml"}},[t.html?t._e():e("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--text",style:{...t.root.style["chart-row-text-content"],...t.root.style["chart-row-text-content--text"],...t.contentStyle}},[e("div",[t._v(t._s(t.task.label))])]),t.html?e("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--html",style:{...t.root.style["chart-row-text-content"],...t.root.style["chart-row-text-content--html"],...t.contentStyle},domProps:{innerHTML:t._s(t.task.label)}}):t._e()])])])},jt=[],zt={name:"ChartText",inject:["root"],props:["task"],data(){return{}},computed:{getWidth(){const t=this.root.style["chart-row-text"],e=`${t["font-weight"]} ${t["font-size"]} ${t["font-family"]}`;this.setFont(e);const r=this.root.state.ctx.measureText(this.task.label).width;return r+2*this.root.state.options.chart.text.xPadding},getHeight(){return this.task.height+2*this.root.state.options.chart.grid.horizontal.gap},contentStyle(){return{height:"100%","line-height":this.getHeight+"px"}},html(){const t=this.root.state.options.taskList.columns;for(let e=0,r=t.length;e<r;e++){const r=t[e];if("label"===r.value&&"undefined"!==typeof r.html&&r.html)return!0}return!1}},methods:{setFont(t){this.root.state.ctx.font=t}}},At=zt,Rt=f(At,Lt,jt,!1,null,null,null),Ht=Rt.exports,It=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-progress-bar-wrapper",style:{...t.root.style["chart-row-progress-bar-wrapper"],...t.task.style["chart-row-progress-bar-wrapper"],"pointer-events":"none"}},[e("defs",[e("pattern",{attrs:{id:"diagonalHatch",width:t.root.state.options.chart.progress.width,height:t.root.state.options.chart.progress.width,patternTransform:"rotate(45 0 0)",patternUnits:"userSpaceOnUse"}},[e("line",{staticClass:"chart-row-progress-bar-line",style:{...t.root.style["chart-row-progress-bar-line"],...t.task.style["chart-row-progress-bar-line"]},attrs:{x1:"0",y1:"0",x2:"0",y2:t.root.state.options.chart.progress.width}})])]),t.root.state.options.chart.progress.bar&&t.task.progress>0?e("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-solid",staticStyle:{"pointer-events":"none"},style:{...t.root.style["chart-row-progress-bar-solid"],...t.task.style["chart-row-progress-bar-solid"]},attrs:{x:"0",y:"0",width:t.getProgressWidth}}):t._e(),t.root.state.options.chart.progress.pattern&&t.task.progress>0?e("g",{staticStyle:{"pointer-events":"none"}},[e("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-pattern",style:{...t.root.style["chart-row-progress-bar-pattern"],...t.task.style["chart-row-progress-bar-pattern"]},attrs:{x:t.getProgressWidth,y:"0",width:100-t.task.progress+"%",height:"100%"}}),e("path",{staticClass:"gantt-elastic__chart-row-progress-bar-outline",style:{...t.root.style["chart-row-progress-bar-outline"],...t.task.style["base"],...t.task.style["chart-row-progress-bar-outline"]},attrs:{d:t.getLinePoints}})]):t._e()])},Vt=[],Wt={name:"ProgressBar",inject:["root"],props:["task"],data(){return{}},computed:{getProgressWidth(){return this.task.progress+"%"},getLinePoints(){const t=this.task.width/100*this.task.progress;return`M ${t} 0 L ${t} ${this.task.height}`},getSolidStyle(){return Object.assign({},this.root.state.options.chart.progress.styles.bar.solid,this.task.progressBarStyle.bar)},getLineStyle(){return Object.assign({},{stroke:this.root.state.options.row.styles.bar.stroke+"a0","stroke-width":this.root.state.options.row.styles.bar["stroke-width"]/2},this.task.style)}}},Bt=Wt,Ft=f(Bt,It,Vt,!1,null,null,null),Nt=Ft.exports,Yt={computed:{getViewBox(){const t=this.task;return`0 0 ${t.width} ${t.height}`},getGroupTransform(){return`translate(${this.task.x} ${this.task.y})`},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}},methods:{emitEvent(t,e){this.root.state.options.scroll.scrolling||this.root.$emit(`chart-${this.task.type}-${t}`,{event:e,data:this.task})}}},qt={data(){return{isDragging:!1,dragStartX:0,dragStartTime:0,dragType:null,originalStartTime:0,originalEndTime:0,originalDuration:0}},methods:{startDrag(t,e){t.preventDefault(),t.stopPropagation(),console.log("Starting drag:",{type:e,taskId:this.task.id,taskType:this.task.type,originalStart:this.task.startTime,originalEnd:this.task.endTime}),this.root&&this.root.state&&this.root.state.options&&this.root.state.options.times?(this.isDragging=!0,this.dragType=e,this.dragStartX=t.clientX||t.touches[0].clientX,this.dragStartTime=this.task.startTime,this.originalStartTime=this.task.startTime,this.originalEndTime=this.task.endTime,this.originalDuration=this.task.duration,document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.endDrag),document.addEventListener("touchmove",this.handleDrag),document.addEventListener("touchend",this.endDrag),this.hideHoverTooltip(),this.$el.addEventListener("keydown",this.handleKeyboardShortcuts),this.$el.classList.add("gantt-elastic__task-dragging"),this.$el.classList.add(`gantt-elastic__task-dragging--${e}`),this.createDateTooltip()):console.error("Root or times options not available for dragging")},handleDrag(t){if(!this.isDragging)return;t.preventDefault();const e=t.clientX||t.touches[0].clientX,r=e-this.dragStartX,s=r*this.root.state.options.times.timePerPixel;if("move"===this.dragType){const t=this.originalStartTime+s,e=this.originalEndTime+s,r=this.root.state.options.times.firstTime,i=this.root.state.options.times.lastTime;t>=r&&e<=i&&(this.updateTaskTime(t,e),this.dateTooltip&&this.updateDateTooltip(t))}else if("start"===this.dragType){const t=this.originalStartTime+s,e=this.originalEndTime,r=864e5,i=this.root.state.options.times.firstTime;t<e&&e-t>=r&&t>=i&&(this.updateTaskTime(t,e),this.dateTooltip&&this.updateDateTooltip(t))}else if("end"===this.dragType){const t=this.originalStartTime,e=this.originalEndTime+s,r=864e5;e>t&&e-t>=r&&(this.updateTaskTime(t,e),this.dateTooltip&&this.updateDateTooltip(e))}},endDrag(t){this.isDragging&&(this.isDragging=!1,document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.endDrag),document.removeEventListener("touchmove",this.handleDrag),document.removeEventListener("touchend",this.endDrag),this.$el.classList.remove("gantt-elastic__task-dragging"),this.$el.classList.remove(`gantt-elastic__task-dragging--${this.dragType}`),this.removeDateTooltip(),this.emitSaveEvent())},updateTaskTime(t,e){if(!(t>=e)){if("epic"===this.task.type&&console.log("Epic task drag:",{dragType:this.dragType,originalStart:this.originalStartTime,originalEnd:this.originalEndTime,newStart:t,newEnd:e,startChanged:t!==this.originalStartTime,endChanged:e!==this.originalEndTime}),this.task.startTime=t,this.task.endTime=e,this.task.duration=e-t,console.log("Updating task time:",{taskId:this.task.id,newStartTime:t,newEndTime:e,duration:this.task.duration,root:!!this.root,timeToPixelOffsetX:!(!this.root||!this.root.timeToPixelOffsetX),timePerPixel:this.root&&this.root.state&&this.root.state.options&&this.root.state.options.times&&this.root.state.options.times.timePerPixel}),this.root&&this.root.timeToPixelOffsetX)this.task.x=this.root.timeToPixelOffsetX(t),this.task.width=this.root.timeToPixelOffsetX(e)-this.task.x;else{const r=this.root&&this.root.state&&this.root.state.options&&this.root.state.options.times&&this.root.state.options.times.timePerPixel;r>0?(this.task.x=(t-this.root.state.options.times.firstTime)/r,this.task.width=(e-t)/r):console.error("timePerPixel is not available or invalid:",r)}this.$forceUpdate()}},emitSaveEvent(){const t=new Date(this.task.startTime),e=new Date(this.task.endTime),r=Math.ceil(this.task.duration/864e5);this.$emit("task-updated",{id:this.task.id,startTime:this.task.startTime,endTime:this.task.endTime,duration:this.task.duration,durationDays:r,startDate:t.toISOString(),endDate:e.toISOString(),startDateFormatted:t.toLocaleDateString(),endDateFormatted:e.toLocaleDateString(),dragType:this.dragType,originalStartTime:this.originalStartTime,originalEndTime:this.originalEndTime,originalDuration:this.originalDuration}),console.log("Task drag completed:",{id:this.task.id,dragType:this.dragType,startDate:t.toLocaleDateString(),endDate:e.toLocaleDateString(),duration:`${r} days`,startTime:this.task.startTime,endTime:this.task.endTime})},handleKeyboardShortcuts(t){this.isDragging||((t.ctrlKey||t.metaKey)&&"e"===t.key?(t.preventDefault(),this.extendTaskToNextDate()):(t.ctrlKey||t.metaKey)&&t.shiftKey&&"E"===t.key?(t.preventDefault(),this.extendTaskByDays(1)):(t.ctrlKey||t.metaKey)&&"3"===t.key?(t.preventDefault(),this.extendTaskByDays(3)):(t.ctrlKey||t.metaKey)&&"7"===t.key&&(t.preventDefault(),this.extendTaskByDays(7)))},createDateTooltip(){this.dateTooltip=document.createElement("div"),this.dateTooltip.className="gantt-elastic__date-tooltip",this.dateTooltip.style.cssText="\n position: fixed;\n background: #000000;\n color: white;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 13px;\n font-family: system-ui, -apple-system, sans-serif;\n font-weight: 500;\n pointer-events: none;\n z-index: 10000;\n white-space: nowrap;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);\n border: 1px solid rgba(255, 255, 255, 0.1);\n ",document.body.appendChild(this.dateTooltip),"start"===this.dragType?this.updateDateTooltip(this.originalStartTime):"end"===this.dragType?this.updateDateTooltip(this.originalEndTime):"move"===this.dragType&&this.updateDateTooltip(this.originalStartTime)},updateDateTooltip(t){if(!this.dateTooltip)return;const e=new Date(t),r=e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});let s="";if("start"===this.dragType){const e=Math.round((t-this.originalStartTime)/864e5);0!==e&&(s=e>0?` (+${e} days)`:` (${e} days)`)}else if("end"===this.dragType){const e=Math.round((t-this.originalEndTime)/864e5);0!==e&&(s=e>0?` (+${e} days)`:` (${e} days)`)}else if("move"===this.dragType){const e=Math.round((t-this.originalStartTime)/864e5);0!==e&&(s=e>0?` (+${e} days)`:` (${e} days)`)}this.dateTooltip.textContent=`${r}${s}`;const i=this.$el.getBoundingClientRect();"start"===this.dragType?(this.dateTooltip.style.left=i.left-this.dateTooltip.offsetWidth-10+"px",this.dateTooltip.style.top=i.top+i.height/2-10+"px"):("end"===this.dragType||"move"===this.dragType)&&(this.dateTooltip.style.left=`${i.right+10}px`,this.dateTooltip.style.top=i.top+i.height/2-10+"px")},removeDateTooltip(){this.dateTooltip&&(document.body.removeChild(this.dateTooltip),this.dateTooltip=null)},addHoverTooltips(){const t=this.$el.querySelectorAll(".gantt-elastic__chart-row-extend-handle");t.forEach(((t,e)=>{t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave),t.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),t.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}))},handleMouseEnter(t){this.isDragging||this.showHoverTooltip(t,!1)},handleMouseLeave(){this.isDragging||this.hideHoverTooltip()},showHoverTooltip(t,e){this.hideHoverTooltip();const r=new Date(this.task.startTime),s=new Date(this.task.endTime),i=r.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=s.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),n=this.task.endTime-this.task.startTime,a=Math.ceil(n/864e5);this.hoverTooltip=document.createElement("div"),this.hoverTooltip.className="gantt-elastic__hover-tooltip",this.hoverTooltip.textContent=`${i} - ${o} (${a} days)`,this.hoverTooltip.style.cssText="\n position: fixed;\n background: #333333;\n color: white;\n padding: 8px 12px;\n border-radius: 6px;\n font-size: 13px;\n font-family: system-ui, -apple-system, sans-serif;\n font-weight: 500;\n pointer-events: none;\n z-index: 10001;\n white-space: nowrap;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);\n border: 1px solid rgba(255, 255, 255, 0.1);\n ",document.body.appendChild(this.hoverTooltip);const l=t.target.getBoundingClientRect();this.hoverTooltip.style.left=l.left+l.width/2-this.hoverTooltip.offsetWidth/2+"px",this.hoverTooltip.style.top=l.top-this.hoverTooltip.offsetHeight-8+"px"},hideHoverTooltip(){this.hoverTooltip&&(document.body.removeChild(this.hoverTooltip),this.hoverTooltip=null)}},mounted(){this.$nextTick((()=>{this.addHoverTooltips()}))},beforeDestroy(){document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.endDrag),document.removeEventListener("touchmove",this.handleDrag),document.removeEventListener("touchend",this.endDrag),document.removeEventListener("click",this.hideContextMenu),this.hideContextMenu(),this.removeDateTooltip(),this.hideHoverTooltip(),this.$el&&this.$el.removeEventListener("keydown",this.handleKeyboardShortcuts)}},Ut={name:"Task",components:{ChartText:Ht,ProgressBar:Nt,Expander:E},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__task-clip-path-"+this.task.id},getPoints(){const t=this.task;return`0,0 ${t.width},0 ${t.width},${t.height} 0,${t.height}`},getPointsAdjusted(){const t=this.task;return`8,0 ${t.width+8},0 ${t.width+8},${t.height} 8,${t.height}`}}},Xt=Ut,Gt=f(Xt,Dt,Pt,!1,null,null,null),Zt=Gt.exports,Qt=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-milestone-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-milestone-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--milestone",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--milestone"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-milestone",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-milestone"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-milestone-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-milestone-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"8",y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-8,y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},Kt=[],Jt={name:"Milestone",components:{ChartText:Ht,ProgressBar:Nt,Expander:E},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__milestone-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height/2;let r=e;return t.width/2-r<0&&(r=t.width/2),`0,${e}\n ${r},0\n ${t.width-r},0\n ${t.width},${e}\n ${t.width-r},${t.height}\n ${r},${t.height}`},getPointsAdjusted(){const t=this.task,e=t.height/2;let r=e;return t.width/2-r<0&&(r=t.width/2),`8,${e}\n ${8+r},0\n ${8+t.width-r},0\n ${8+t.width},${e}\n ${8+t.width-r},${t.height}\n ${8+r},${t.height}`}}},te=Jt,ee=f(te,Qt,Kt,!1,null,null,null),re=ee.exports,se=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-project-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-project-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--project",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--project"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-project",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-project"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("path",{attrs:{d:t.getPoints}})])]),e("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-project-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-project-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{d:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"8",y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-8,y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},ie=[],oe={name:"Project",components:{ChartText:Ht,ProgressBar:Nt,Expander:E},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__project-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${s},0\n L ${t.width-s} 0\n L ${t.width} ${s}\n L ${t.width} ${e}\n L ${t.width-r} ${t.height}\n L ${t.width-2*r} ${e}\n L ${2*r} ${e}\n L ${r} ${t.height}\n L 0 ${e}\n L 0 ${s}\n Z\n `},getPointsAdjusted(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${8+s},0\n L ${8+t.width-s} 0\n L ${8+t.width} ${s}\n L ${8+t.width} ${e}\n L ${8+t.width-r} ${t.height}\n L ${8+t.width-2*r} ${e}\n L ${8+2*r} ${e}\n L ${8+r} ${t.height}\n L 8 ${e}\n L 8 ${s}\n Z\n `},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},ne=oe,ae=f(ne,se,ie,!1,null,null,null),le=ae.exports,ce=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-epic-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-epic-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--epic",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--epic"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-epic",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-epic"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("path",{attrs:{d:t.getPoints}})])]),e("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-epic-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-epic-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"],"pointer-events":"all","z-index":"10"},attrs:{d:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),t.task.progress>0?e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}):t._e(),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"30"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"8",y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"30"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-8,y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},he=[],ue={name:"Epic",components:{ChartText:Ht,ProgressBar:Nt,Expander:E},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__epic-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${s},0\n L ${t.width-s} 0\n L ${t.width} ${s}\n L ${t.width} ${e}\n L ${t.width-r} ${t.height}\n L ${t.width-2*r} ${e}\n L ${2*r} ${e}\n L ${r} ${t.height}\n L 0 ${e}\n L 0 ${s}\n Z\n `},getPointsAdjusted(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${8+s},0\n L ${8+t.width-s} 0\n L ${8+t.width} ${s}\n L ${8+t.width} ${e}\n L ${8+t.width-r} ${t.height}\n L ${8+t.width-2*r} ${e}\n L ${8+2*r} ${e}\n L ${8+r} ${t.height}\n L 8 ${e}\n L 8 ${s}\n Z\n `},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},de=ue,pe=f(de,ce,he,!1,null,null,null),fe=pe.exports,me=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-subtask-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-subtask-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--subtask",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--subtask"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-subtask",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-subtask"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-subtask-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-subtask-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"8",y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-8,y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},ge=[],ye={name:"Subtask",components:{ChartText:Ht,ProgressBar:Nt,Expander:E},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__subtask-clip-path-"+this.task.id},getPoints(){const t=this.task;return`0,0 ${t.width},0 ${t.width},${t.height} 0,${t.height}`},getPointsAdjusted(){const t=this.task;return`8,0 ${t.width+8},0 ${t.width+8},${t.height} 8,${t.height}`},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},ve=ye,we=f(ve,me,ge,!1,null,null,null),ke=we.exports,be=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-story-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-story-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--story",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--story"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-story",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-story"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("path",{attrs:{d:t.getPoints}})])]),e("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-story-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-story-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{d:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"8",y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle",staticStyle:{"pointer-events":"all","z-index":"20"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-8,y:"0",width:8,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},xe=[],_e={name:"Story",components:{ChartText:Ht,ProgressBar:Nt,Expander:E},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__story-clip-path-"+this.task.id},getPoints(){const t=this.task,e=Math.min(t.height/4,8);return`M ${e},0\n L ${t.width-e} 0\n Q ${t.width} 0 ${t.width} ${e}\n L ${t.width} ${t.height-e}\n Q ${t.width} ${t.height} ${t.width-e} ${t.height}\n L ${e} ${t.height}\n Q 0 ${t.height} 0 ${t.height-e}\n L 0 ${e}\n Q 0 0 ${e} 0\n Z`},getPointsAdjusted(){const t=this.task,e=Math.min(t.height/4,8);return`M ${8+e},0\n L ${8+t.width-e} 0\n Q ${8+t.width} 0 ${8+t.width} ${e}\n L ${8+t.width} ${t.height-e}\n Q ${8+t.width} ${t.height} ${8+t.width-e} ${t.height}\n L ${8+e} ${t.height}\n Q 8 ${t.height} 8 ${t.height-e}\n L 8 ${e}\n Q 8 0 ${8+e} 0\n Z`},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},Te=_e,Se=f(Te,be,xe,!1,null,null,null),Oe=Se.exports,$e={name:"Chart",components:{Grid:rt,DependencyLines:Ct,Calendar:Tt,task:Zt,milestone:re,project:le,epic:fe,subtask:ke,story:Oe,DaysHighlight:lt},inject:["root"],data(){return{moving:!1}},mounted(){this.root.state.refs.chart=this.$refs.chart,this.root.state.refs.chartCalendarContainer=this.$refs.chartCalendarContainer,this.root.state.refs.chartGraphContainer=this.$refs.chartGraphContainer,this.root.state.refs.chartGraph=this.$refs.chartGraph,this.root.state.refs.chartGraphSvg=this.$refs.chartGraphSvg},methods:{handleTaskUpdated(t){this.$emit("task-updated",t);const e=this.root.state.tasks.findIndex((e=>e.id===t.id));if(-1!==e){if(this.root.state.tasks[e].startTime=t.startTime,this.root.state.tasks[e].endTime=t.endTime,this.root.state.tasks[e].duration=t.duration,this.root&&this.root.timeToPixelOffsetX)this.root.state.tasks[e].x=this.root.timeToPixelOffsetX(t.startTime),this.root.state.tasks[e].width=this.root.timeToPixelOffsetX(t.endTime)-this.root.state.tasks[e].x;else{const r=this.root.state.options.times.timePerPixel;r>0&&(this.root.state.tasks[e].x=(t.startTime-this.root.state.options.times.firstTime)/r,this.root.state.tasks[e].width=(t.endTime-t.startTime)/r)}this.$forceUpdate()}}},computed:{getViewBox(){return`0 0 ${this.root.state.options.width} ${this.root.state.options.allVisibleTasksHeight}`}}},Ee=$e,Me=f(Ee,G,Z,!1,null,null,null),Ce=Me.exports;var De={name:"MainView",components:{TaskList:X,Chart:Ce},inject:["root"],data(){return{defs:"",mousePos:{x:0,y:0,movementX:0,movementY:0,lastX:0,lastY:0,positiveX:0,positiveY:0,currentX:0,currentY:0}}},mounted(){this.viewBoxWidth=this.$el.clientWidth,this.root.state.refs.mainView=this.$refs.mainView,this.root.state.refs.chartContainer=this.$refs.chartContainer,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.chartScrollContainerHorizontal=this.$refs.chartScrollContainerHorizontal,this.root.state.refs.chartScrollContainerVertical=this.$refs.chartScrollContainerVertical,document.addEventListener("mouseup",this.chartMouseUp.bind(this)),document.addEventListener("mousemove",this.chartMouseMove.bind(this)),document.addEventListener("touchmove",this.chartMouseMove.bind(this)),document.addEventListener("touchend",this.chartMouseUp.bind(this))},computed:{getMarginLeft(){return this.root.state.options.taskList.display?this.root.state.options.taskList.finalWidth+"px":"0px"},verticalStyle(){return{width:this.root.state.options.scrollBarHeight+"px",height:this.root.state.options.rowsHeight+"px","margin-top":this.root.state.options.calendar.height+this.root.state.options.calendar.gap+"px"}},getViewBox(){return this.root.state.options.clientWidth?`0 0 ${this.root.state.options.clientWidth-this.root.state.options.scrollBarHeight} ${this.root.state.options.height}`:`0 0 0 ${this.root.state.options.height}`}},methods:{handleTaskUpdated(t){this.$emit("task-updated",t)},mouseMove(t){this.root.$emit("main-view-mousemove",t)},mouseUp(t){this.root.$emit("main-view-mouseup",t)},onHorizontalScroll(t){this.root.$emit("chart-scroll-horizontal",t)},onVerticalScroll(t){this.root.$emit("chart-scroll-vertical",t)},chartWheel(t){this.root.$emit("chart-wheel",t)},chartMouseDown(t){"undefined"!==typeof t.touches&&(this.mousePos.x=this.mousePos.lastX=t.touches[0].screenX,this.mousePos.y=this.mousePos.lastY=t.touches[0].screenY,this.mousePos.movementX=0,this.mousePos.movementY=0,this.mousePos.currentX=this.$refs.chartScrollContainerHorizontal.scrollLeft,this.mousePos.currentY=this.$refs.chartScrollContainerVertical.scrollTop),this.root.state.options.scroll.scrolling=!0},chartMouseUp(t){this.root.state.options.scroll.scrolling=!1},chartMouseMove(t){if(this.root.state.options.scroll.scrolling){t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation();const e="undefined"!==typeof t.touches;let r,s;if(e){const e=t.touches[0].screenX,i=t.touches[0].screenY;r=this.mousePos.x-e,s=this.mousePos.y-i,this.mousePos.lastX=e,this.mousePos.lastY=i}else r=t.movementX,s=t.movementY;const i=this.$refs.chartScrollContainerHorizontal,o=this.$refs.chartScrollContainerVertical;let n=0,a=0;n=e?this.mousePos.currentX+r*this.root.state.options.scroll.dragXMoveMultiplier:i.scrollLeft-r*this.root.state.options.scroll.dragXMoveMultiplier,i.scrollLeft=n,a=e?this.mousePos.currentY+s*this.root.state.options.scroll.dragYMoveMultiplier:o.scrollTop-s*this.root.state.options.scroll.dragYMoveMultiplier,o.scrollTop=a}}}},Pe=De,Le=f(Pe,y,v,!1,null,null,null),je=Le.exports;function ze(t="12px",e="Arial, sans-serif"){return{fontSize:t,fontFamily:e,"main-view":{background:"#FFFFFF"},"main-container-wrapper":{overflow:"hidden","border-top":"1px solid #eee","border-bottom":"1px solid #eee"},"main-container":{float:"left","max-width":"100%"},"main-view-container":{},container:{display:"flex","max-width":"100%",height:"100%"},"calendar-wrapper":{"user-select":"none"},calendar:{width:"100%",background:"#f3f5f7",display:"block"},"calendar-row":{display:"flex","justify-content":"space-evenly"},"calendar-row--month":{},"calendar-row--day":{},"calendar-row--hour":{"border-bottom":"1px solid #eee"},"calendar-row-rect":{background:"transparent",display:"flex"},"calendar-row-rect--month":{},"calendar-row-rect--day":{},"calendar-row-rect--hour":{},"calendar-row-rect-child":{display:"block","border-right-width":"1px","border-right-color":"#E5E7EB","border-right-style":"solid",position:"relative","box-sizing":"border-box"},"calendar-row-rect-child--month":{},"calendar-row-rect-child--day":{"text-align":"center"},"calendar-row-rect-child--hour":{"text-align":"center"},"calendar-row-text":{"font-family":e,"font-size":t,color:"#606060",display:"inline-block",position:"relative","text-align":"center","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"100%",width:"100%","box-sizing":"border-box"},"calendar-row-text--month":{},"calendar-row-text--day":{},"calendar-row-text--hour":{},"calendar-row-text--quarter":{},"calendar-row-text--week":{},"task-list-wrapper":{},"task-list":{background:"transparent","border-color":"#eee"},"task-list-header":{display:"flex","user-select":"none","vertical-align":"middle","border-bottom":"1px solid #eee","border-left":"1px solid #eee"},"task-list-header-column":{"border-left":"1px solid #00000050","box-sizing":"border-box",display:"flex",background:"#f3f5f7","border-color":"transparent"},"task-list-expander-wrapper":{display:"inline-flex","flex-shrink":"0","box-sizing":"border-box",margin:"0 0 0 10px"},"task-list-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"task-list-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"task-list-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"task-list-expander-arrow":{fill:"none",stroke:"#999999","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},"chart-expander-wrapper":{display:"block","line-height":"1","box-sizing":"border-box",margin:"0"},"chart-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"chart-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"chart-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"chart-expander-arrow":{fill:"none",stroke:"#999999","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},"task-list-container":{},"task-list-header-label":{overflow:"hidden","text-overflow":"ellipsis","font-family":e,"font-size":t,"box-sizing":"border-box",margin:"auto 6px","flex-grow":"1","vertical-align":"middle"},"task-list-header-resizer-wrapper":{background:"transparent",height:"100%",width:"6px",cursor:"col-resize",display:"inline-flex","vertical-align":"center"},"task-list-header-resizer":{margin:"auto 0px"},"task-list-header-resizer-dot":{width:"3px",height:"3px",background:"#ddd","border-radius":"100%",margin:"4px 0px"},"task-list-items":{overflow:"hidden"},"task-list-item":{"border-top":"1px solid #eee","border-right":"1px solid #eee","box-sizing":"border-box",display:"flex",background:"transparent"},"task-list-item-column":{display:"inline-flex","flex-shrink":"0","border-left":"1px solid #00000050","box-sizing":"border-box","border-color":"#eee"},"task-list-item-value-wrapper":{overflow:"hidden",display:"flex",width:"100%"},"task-list-item-value-container":{margin:"auto 0px",overflow:"hidden"},"task-list-item-value":{display:"flex","align-items":"center","flex-shrink":"100","font-family":e,"font-size":t,"margin-top":"auto","margin-bottom":"auto","margin-left":"6px","margin-right":"6px",overflow:"hidden","text-overflow":"ellipsis","line-height":"1.5em","word-break":"keep-all","white-space":"nowrap",color:"#606060",background:"#FFFFFF"},"task-list-item-content":{display:"flex","align-items":"center",width:"100%","min-width":"0"},"task-list-item-icon":{display:"flex","align-items":"center","margin-right":"6px","flex-shrink":"0",width:"14px",height:"14px"},"task-list-item-text":{flex:"1","min-width":"0",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},"grid-lines":{},"grid-line-horizontal":{stroke:"#F3F4F6","stroke-width":1},"grid-line-vertical":{stroke:"#E5E7EB","stroke-width":1},"grid-line-time":{stroke:"#FF000080","stroke-width":1},chart:{"user-select":"none",overflow:"hidden"},"chart-calendar-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #E5E7EB",position:"relative","z-index":1},"chart-graph-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #E5E7EB",position:"relative","z-index":0},"chart-area":{},"chart-graph":{overflow:"hidden"},"chart-row-text-wrapper":{},"chart-row-text":{background:"#ffffff","border-radius":"4px","font-family":e,"font-size":"11px","font-weight":"500",color:"#374151",height:"100%",display:"inline-block","box-shadow":"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid #E5E7EB"},"chart-row-text-content":{padding:"2px 8px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"120px"},"chart-row-resize-handle":{fill:"rgba(59, 130, 246, 0.2)",stroke:"rgba(59, 130, 246, 0.8)","stroke-width":"2",cursor:"ew-resize",opacity:"0.3",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-resize-handle--start":{cursor:"w-resize",fill:"rgba(34, 197, 94, 0.3)",stroke:"rgba(34, 197, 94, 0.9)","stroke-width":"2"},"chart-row-resize-handle--end":{cursor:"e-resize",fill:"rgba(239, 68, 68, 0.4)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2"},"chart-row-bar-wrapper:hover .chart-row-resize-handle":{opacity:"0.8"},"chart-row-resize-handle:hover":{opacity:"1",fill:"rgba(59, 130, 246, 0.4)",stroke:"rgba(59, 130, 246, 1)"},"chart-row-resize-handle--start:hover":{fill:"rgba(34, 197, 94, 0.4)",stroke:"rgba(34, 197, 94, 1)"},"chart-row-resize-handle--end:hover":{fill:"rgba(239, 68, 68, 0.5)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"3"},"chart-row-resize-handle--corner":{fill:"rgba(147, 51, 234, 0.6)",stroke:"rgba(147, 51, 234, 1)","stroke-width":"2",cursor:"nw-resize",opacity:"0.9",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-resize-handle--corner:hover":{fill:"rgba(147, 51, 234, 0.8)",stroke:"rgba(147, 51, 234, 1)","stroke-width":"3",opacity:"1"},"chart-row-resize-handle--corner--start":{fill:"rgba(34, 197, 94, 0.7)",stroke:"rgba(34, 197, 94, 1)","stroke-width":"2",cursor:"w-resize"},"chart-row-resize-handle--corner--end":{fill:"rgba(239, 68, 68, 0.7)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2",cursor:"e-resize"},"chart-row-corner-handle--start":{fill:"rgba(34, 197, 94, 0.8)",stroke:"rgba(34, 197, 94, 1)","stroke-width":"2",cursor:"w-resize",opacity:"0.9",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-corner-handle--end":{fill:"rgba(239, 68, 68, 0.8)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2",cursor:"e-resize",opacity:"0.9",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-corner-handle--start:hover":{fill:"rgba(34, 197, 94, 0.5)",stroke:"rgba(34, 197, 94, 1)","stroke-width":"2",opacity:"0.9"},"chart-row-corner-handle--end:hover":{fill:"rgba(239, 68, 68, 0.5)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2",opacity:"0.9"},"chart-row-extend-handle":{fill:"rgba(255, 255, 255, 0.1)",stroke:"rgba(255, 255, 255, 0.3)","stroke-width":"1",cursor:"ew-resize",opacity:"0.3",transition:"opacity 0.2s ease","pointer-events":"all","z-index":"10"},"chart-row-extend-handle:hover":{fill:"rgba(255, 255, 255, 0.2)",stroke:"rgba(255, 255, 255, 0.6)","stroke-width":"2",opacity:"0.8"},"chart-row-expand-icon-bg":{fill:"rgba(255, 255, 255, 0.95)",stroke:"rgba(0, 0, 0, 0.5)","stroke-width":"1.5",cursor:"ew-resize",opacity:"1",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-expand-icon-arrow":{fill:"rgba(0, 0, 0, 0.9)",cursor:"ew-resize","pointer-events":"all"},"chart-row-expand-icon:hover .gantt-elastic__chart-row-expand-icon-bg":{fill:"rgba(255, 255, 255, 1)",stroke:"rgba(0, 0, 0, 0.5)","stroke-width":"1.5",opacity:"1"},"chart-row-expand-icon:hover .gantt-elastic__chart-row-expand-icon-arrow":{fill:"rgba(0, 0, 0, 1)"},"gantt-elastic__task-dragging":{opacity:"0.8","pointer-events":"none",filter:"drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2))"},"gantt-elastic__task-dragging--start":{"border-left":"3px solid #22c55e","box-shadow":"inset 3px 0 0 #22c55e"},"gantt-elastic__task-dragging--end":{"border-right":"3px solid #ef4444","box-shadow":"inset -3px 0 0 #ef4444"},"gantt-elastic__task-dragging--move":{border:"2px solid #3b82f6","box-shadow":"0 0 0 2px rgba(59, 130, 246, 0.3)"},"gantt-elastic__context-menu":{position:"fixed",background:"white",border:"1px solid #e5e7eb","border-radius":"6px","box-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1)","z-index":"1000","min-width":"150px",padding:"4px 0","font-family":"system-ui, -apple-system, sans-serif"},"gantt-elastic__context-menu-item":{padding:"8px 16px",cursor:"pointer","font-size":"14px",color:"#374151",transition:"background-color 0.2s","user-select":"none"},"gantt-elastic__context-menu-item:hover":{"background-color":"#f3f4f6"},"gantt-elastic__date-tooltip":{position:"fixed",background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"4px 8px","border-radius":"4px","font-size":"12px","font-family":"system-ui, -apple-system, sans-serif","pointer-events":"none","z-index":"10000","white-space":"nowrap","box-shadow":"0 2px 4px rgba(0, 0, 0, 0.2)"},"chart-row-text-content--text":{},"chart-row-text-content--html":{},"chart-row-wrapper":{},"chart-row-bar-wrapper":{},"chart-row-bar":{},"chart-row-bar-polygon":{stroke:"#E74C3C","stroke-width":1,fill:"#F75C4C"},"chart-row-project-wrapper":{},"chart-row-project":{},"chart-row-project-polygon":{},"chart-row-epic-wrapper":{},"chart-row-epic":{},"chart-row-epic-polygon":{stroke:"#8B5CF6","stroke-width":2,fill:"#8B5CF6","fill-opacity":.9},"chart-row-subtask-wrapper":{},"chart-row-subtask":{},"chart-row-subtask-polygon":{stroke:"#3B82F6","stroke-width":1,fill:"#3B82F6","fill-opacity":.9},"chart-row-story-wrapper":{},"chart-row-story":{},"chart-row-story-polygon":{stroke:"#86EFAC","stroke-width":1,fill:"#86EFAC","fill-opacity":.9},"chart-row-milestone-wrapper":{},"chart-row-milestone":{},"chart-row-milestone-polygon":{stroke:"#CD5C5C","stroke-width":2,fill:"#CD5C5C","fill-opacity":.9},"chart-row-task-wrapper":{},"chart-row-task":{},"chart-row-task-polygon":{stroke:"#3B82F6","stroke-width":1,fill:"#3B82F6","fill-opacity":.9},"chart-row-progress-bar-wrapper":{},"chart-row-progress-bar":{},"chart-row-progress-bar-line":{stroke:"#ffffff25","stroke-width":20},"chart-row-progress-bar-solid":{fill:"#0EAC51",height:"20%"},"chart-row-progress-bar-pattern":{fill:"url(#diagonalHatch)",transform:"translateY(0.1) scaleY(0.8)"},"chart-row-progress-bar-outline":{stroke:"#E74C3C","stroke-width":1},"chart-dependency-lines-wrapper":{},"chart-dependency-lines-path":{fill:"transparent",stroke:"#FFa00090","stroke-width":2},"chart-scroll-container":{},"chart-scroll-container--horizontal":{overflow:"auto","max-width":"100%"},"chart-scroll-container--vertical":{"overflow-y":"auto","overflow-x":"hidden","max-height":"100%",float:"right"},"chart-days-highlight-rect":{fill:"#f3f5f780"},"slot-header-beforeOptions":{display:"inline-block"}}}var Ae=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,s){return t[0]===e&&(r=s,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),s=this.__entries__[r];return s&&s[1]},e.prototype.set=function(e,r){var s=t(this.__entries__,e);~s?this.__entries__[s][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,s=t(r,e);~s&&r.splice(s,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,s=this.__entries__;r<s.length;r++){var i=s[r];t.call(e,i[1],i[0])}},e}()}(),Re="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,He=function(){return"undefined"!==typeof s.g&&s.g.Math===Math?s.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),Ie=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(He):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),Ve=2;function We(t,e){var r=!1,s=!1,i=0;function o(){r&&(r=!1,t()),s&&a()}function n(){Ie(o)}function a(){var t=Date.now();if(r){if(t-i<Ve)return;s=!0}else r=!0,s=!1,setTimeout(n,e);i=t}return a}var Be=20,Fe=["top","right","bottom","left","width","height","size","weight"],Ne="undefined"!==typeof MutationObserver,Ye=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=We(this.refresh.bind(this),Be)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Re&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ne?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Re&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e,s=Fe.some((function(t){return!!~r.indexOf(t)}));s&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),qe=function(t,e){for(var r=0,s=Object.keys(e);r<s.length;r++){var i=s[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},Ue=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||He},Xe=ir(0,0,0,0);function Ge(t){return parseFloat(t)||0}function Ze(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){var s=t["border-"+r+"-width"];return e+Ge(s)}),0)}function Qe(t){for(var e=["top","right","bottom","left"],r={},s=0,i=e;s<i.length;s++){var o=i[s],n=t["padding-"+o];r[o]=Ge(n)}return r}function Ke(t){var e=t.getBBox();return ir(0,0,e.width,e.height)}function Je(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return Xe;var s=Ue(t).getComputedStyle(t),i=Qe(s),o=i.left+i.right,n=i.top+i.bottom,a=Ge(s.width),l=Ge(s.height);if("border-box"===s.boxSizing&&(Math.round(a+o)!==e&&(a-=Ze(s,"left","right")+o),Math.round(l+n)!==r&&(l-=Ze(s,"top","bottom")+n)),!er(t)){var c=Math.round(a+o)-e,h=Math.round(l+n)-r;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return ir(i.left,i.top,a,l)}var tr=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof Ue(t).SVGGraphicsElement}:function(t){return t instanceof Ue(t).SVGElement&&"function"===typeof t.getBBox}}();function er(t){return t===Ue(t).document.documentElement}function rr(t){return Re?tr(t)?Ke(t):Je(t):Xe}function sr(t){var e=t.x,r=t.y,s=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,n=Object.create(o.prototype);return qe(n,{x:e,y:r,width:s,height:i,top:r,right:e+s,bottom:i+r,left:e}),n}function ir(t,e,r,s){return{x:t,y:e,width:r,height:s}}var or=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ir(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=rr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),nr=function(){function t(t,e){var r=sr(e);qe(this,{target:t,contentRect:r})}return t}(),ar=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new Ae,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof Ue(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new or(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof Ue(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new nr(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),lr="undefined"!==typeof WeakMap?new WeakMap:new Ae,cr=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ye.getInstance(),s=new ar(e,r,this);lr.set(this,s)}return t}();["observe","unobserve","disconnect"].forEach((function(t){cr.prototype[t]=function(){var e;return(e=lr.get(this))[t].apply(e,arguments)}}));var hr=function(){return"undefined"!==typeof He.ResizeObserver?He.ResizeObserver:cr}(),ur=hr,dr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__header",style:{...t.style["header"]}},[e("div",{staticClass:"gantt-elastic__header-title",style:{...t.style["header-title"]}},[t.opts.title.html?t._e():e("div",{staticClass:"gantt-elastic__header-title--text",style:{...t.style["header-title--text"]}},[t._v(" "+t._s(t.opts.title.label)+" ")]),t.opts.title.html?e("div",{staticClass:"gantt-elastic__header-title--html",style:{...t.style["header-title--html"]},domProps:{innerHTML:t._s(t.opts.title.label)}}):t._e()]),e("div",{staticClass:"gantt-elastic__header-options",style:{...t.style["header-options"]}},[e("button",{staticClass:"gantt-elastic__header-btn-recenter",style:{...t.style["header-btn-recenter"]},on:{click:function(e){return e.preventDefault(),t.recenterPosition.apply(null,arguments)}}},[t._v(" "+t._s(t.opts.locale.Now)+" ")]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["X-Scale"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:24,min:2,width:"100px"},model:{value:t.scale,callback:function(e){t.scale=e},expression:"scale"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Y-Scale"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:100,min:7,width:"100px"},model:{value:t.height,callback:function(e){t.height=e},expression:"height"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Before/After"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:31,min:0,width:"100px"},model:{value:t.scope,callback:function(e){t.scope=e},expression:"scope"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Task list width"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:100,min:0,width:"100px"},model:{value:t.divider,callback:function(e){t.divider=e},expression:"divider"}})],1)]),e("label",{staticClass:"gantt-elastic__header-task-list-switch--wrapper",style:{...t.style["header-task-list-switch--label"]}},[e("switches",{staticClass:"gantt-elastic__header-task-list-switch",style:{...t.style["header-task-list-switch"]},model:{value:t.root.state.options.taskList.display,callback:function(e){t.$set(t.root.state.options.taskList,"display",e)},expression:"root.state.options.taskList.display"}}),t._v(" "+t._s(t.opts.locale["Display task list"])+" ")],1)])])},pr=[],fr=s(378),mr=s.n(fr),gr=function(){var t=this,e=t._self._c;return e("label",{class:t.classObject},[t.shouldShowLabel?e("span",{staticClass:"vue-switcher__label"},[t.label?e("span",{domProps:{textContent:t._s(t.label)}}):t._e(),!t.label&&t.value?e("span",{domProps:{textContent:t._s(t.textEnabled)}}):t._e(),t.label||t.value?t._e():e("span",{domProps:{textContent:t._s(t.textDisabled)}})]):t._e(),e("input",{attrs:{type:"checkbox",disabled:t.disabled},domProps:{checked:t.value},on:{change:t.trigger}}),e("div")])},yr=[],vr={name:"switches",props:{typeBold:{default:!1},value:{default:!1},disabled:{default:!1},label:{default:""},textEnabled:{default:""},textDisabled:{default:""},color:{default:"default"},theme:{default:"default"},emitOnMount:{default:!0}},mounted(){this.emitOnMount&&this.$emit("input",this.value)},methods:{trigger(t){this.$emit("input",t.target.checked)}},computed:{classObject(){const{color:t,value:e,theme:r,typeBold:s,disabled:i}=this;return{"vue-switcher":!0,["vue-switcher--unchecked"]:!e,["vue-switcher--disabled"]:i,["vue-switcher--bold"]:s,["vue-switcher--bold--unchecked"]:s&&!e,[`vue-switcher-theme--${r}`]:t,[`vue-switcher-color--${t}`]:t}},shouldShowLabel(){return""!==this.label||""!==this.textEnabled||""!==this.textDisabled}}},wr=vr,kr=f(wr,gr,yr,!1,null,null,null),br=kr.exports;const xr={header:{margin:"0px auto",background:"#f3f5f747",padding:"10px",overflow:"hidden",clear:"both",display:"flex","justify-content":"space-between"},"header-title":{float:"left"},"header-options":{float:"right"},"header-title--text":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-title--html":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-btn-recenter":{background:"#95A5A6",border:"none",outline:"none",cursor:"pointer",color:"white","border-radius":"3px","margin-right":"27px","font-size":"16px",padding:"8px 12px"},"header-slider":{"box-sizing":"content-box"},"header-slider-wrapper":{display:"inline-block","vertical-align":"middle"},"header-slider--slider":{"box-sizing":"content-box"},"header-slider--process":{"box-sizing":"content-box"},"header-task-list-switch--label":{"box-sizing":"content-box"},"header-task-list-switch":{margin:"0px 15px","vertical-align":"middle"},"header-label":{}},_r={title:{label:"ajay",html:!0},locale:{Now:"Now","X-Scale":"Zoom-X","Y-Scale":"Zoom-Y","Task list width":"Task list","Before/After":"Expand","Display task list":"Show task list"}};var Tr={name:"GanttHeader",components:{vueSlider:mr(),Switches:br},props:["options","dynamicStyle"],inject:["root"],data(){return{scaleTimeoutId:null,firstScale:!1,localScale:0,localHeight:0,localBefore:0,localPercent:0,sliderOptions:{xScale:{value:0}},style:{},opts:{}}},created(){_r.title.label=this.root.projectName,this.localScale=this.root.state.options.times.timeZoom,this.localHeight=this.root.state.options.row.height,this.localBefore=this.root.state.options.scope.before,this.localPercent=this.root.state.options.taskList.percent,this.sliderOptions.xScale.value=this.root.state.options.times.timeZoom,this.style=this.root.mergeDeep({},xr,this.dynamicStyle),this.opts=this.root.mergeDeep({},_r,this.options)},methods:{getImage(){this.root.getImage("image/png").then((t=>{const e=document.createElement("a");e.href=t,e.download="gantt-elastic.png",document.body.appendChild(e),e.click(),document.body.removeChild(e)}))},recenterPosition(){this.root.$emit("recenterPosition")},setScale(t){null!==this.scaleTimeoutId&&(clearTimeout(this.scaleTimeoutId),this.scaleTimeoutId=null),this.firstScale?this.scaleTimeoutId=setTimeout((()=>{this.root.$emit("times-timeZoom-change",t),this.scaleTimeoutId=null}),50):(this.root.$emit("times-timeZoom-change",t),this.firstScale=!0)}},computed:{beforeOptionsIsComponent(){const t=this.options.slots.header;return"object"===typeof t.beforeOptions&&!Array.isArray(t.beforeOptions)},beforeOptionsIsHtml(){return"string"===typeof this.options.slots.header.beforeOptions},scale:{get(){return this.localScale},set(t){this.localScale=Number(t),this.setScale(this.localScale)}},height:{get(){return this.localHeight},set(t){this.localHeight=Number(t),this.root.$emit("row-height-change",Number(t))}},scope:{get(){return this.localBefore},set(t){this.localBefore=Number(t),this.root.$emit("scope-change",Number(t))}},divider:{get(){return this.localPercent},set(t){this.localPercent=Number(t),this.root.$emit("taskList-width-change",Number(t))}}}},Sr=Tr,Or=f(Sr,dr,pr,!1,null,null,null),$r=Or.exports;const Er=document.createElement("canvas").getContext("2d");function Mr(t){let e="en";return"undefined"!==typeof t.locale&&"undefined"!==typeof t.locale.name&&(e=t.locale.name),{slots:{header:{}},taskMapping:{id:"id",start:"start",label:"label",duration:"duration",progress:"progress",type:"type",style:"style",collapsed:"collapsed"},width:0,height:0,clientWidth:0,outerHeight:0,rowsHeight:0,allVisibleTasksHeight:0,scroll:{scrolling:!1,dragXMoveMultiplier:3,dragYMoveMultiplier:2,top:0,taskList:{left:0,right:0,top:0,bottom:0},chart:{left:0,right:0,percent:0,timePercent:0,top:0,bottom:0,time:0,timeCenter:0,dateTime:{left:"",right:""}}},scope:{before:1,after:1},times:{timeScale:6e4,timeZoom:17,timePerPixel:0,firstTime:null,lastTime:null,firstTaskTime:0,lastTaskTime:0,totalViewDurationMs:0,totalViewDurationPx:0,stepDuration:"day",steps:[]},row:{height:24},maxRows:20,maxHeight:0,chart:{grid:{horizontal:{gap:6}},progress:{width:20,height:6,pattern:!0,bar:!1},text:{offset:8,xPadding:12,display:!0},expander:{type:"chart",display:!0,displayIfTaskListHidden:!0,offset:4,size:18}},taskList:{display:!0,resizeAfterThreshold:!0,widthThreshold:75,columns:[{id:0,label:"ID",value:"id",width:40}],percent:100,width:0,finalWidth:0,widthFromPercentage:0,minWidth:18,expander:{type:"task-list",size:18,columnWidth:24,padding:16,margin:10,straight:!1}},calendar:{workingDays:[1,2,3,4,5],gap:6,height:0,strokeWidth:1,hour:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},formatted:{long:[],medium:[],short:[]},format:{long(t){return t.format("HH:mm")},medium(t){return t.format("HH:mm")},short(t){return t.format("HH")}}},day:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{long(t){return t.format("DD dddd")},medium(t){return t.format("DD ddd")},short(t){return t.format("DD")}}},month:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{short(t){return t.format("MM")},medium(t){return t.format("MMM 'YY")},long(t){return t.format("MMMM YYYY")}}},quarter:{height:30,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{short(t){return t.format("Qo quarter")},medium(t){return t.format("Qo 'YY")},long(t){return t.format("Qo quarter YYYY")}}}},locale:{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:t=>{const e=["th","st","nd","rd"],r=t%100;return`[${t}${e[(r-20)%10]||e[r]||e[0]}]`}}}}function Cr(t){let e="12px",r=window.getComputedStyle(document.body).getPropertyValue("font-family").toString();return"undefined"!==typeof t&&("undefined"!==typeof t.fontSize&&(e=t.fontSize),"undefined"!==typeof t.fontFamily&&(r=t.fontFamily)),ze(e,r)}function Dr(t){return t&&"object"===typeof t&&!Array.isArray(t)&&!(t instanceof HTMLElement)&&!(t instanceof CanvasRenderingContext2D)&&"function"!==typeof t}function Pr(t,...e){if(!e.length)return t;const r=e.shift();if(Dr(t)&&Dr(r))for(const s in r)if(Dr(r[s]))"undefined"===typeof t[s]&&(t[s]={}),t[s]=Pr(t[s],r[s]);else if(Array.isArray(r[s])){t[s]=[];for(let e of r[s])Dr(e)?t[s].push(Pr({},e)):t[s].push(e)}else t[s]=r[s];return Pr(t,...e)}function Lr(t,e,...r){if(!r.length)return e;const s=r.shift();if(Dr(e)&&Dr(s))for(const i in s)Dr(s[i])?("undefined"===typeof e[i]&&t.$set(e,i,{}),Lr(t,e[i],s[i])):Array.isArray(s[i])?t.$set(e,i,s[i]):"function"===typeof s[i]?-1===s[i].toString().indexOf("[native code]")&&(e[i]=s[i]):t.$set(e,i,s[i]);return Lr(t,e,...r)}function jr(t,e,r=[],s=""){if(typeof e!==typeof t)return{left:t,right:e,what:s+".typeof"};if(Array.isArray(t)&&!Array.isArray(e))return{left:t,right:e,what:s+".isArray"};if(Array.isArray(e)&&!Array.isArray(t))return{left:t,right:e,what:s+".isArray"};if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{left:t,right:e,what:s+".length"};let i;for(let o=0,n=t.length;o<n;o++)if(i=jr(t[o],e[o],r,s+"."+o))return i}else{if(Dr(t)&&!Dr(e))return{left:t,right:e,what:s+".isObject"};if(Dr(e)&&!Dr(t))return{left:t,right:e,what:s+".isObject"};if(Dr(t)&&Dr(e))for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.prototype.propertyIsEnumerable.call(t,i))continue;if(!Object.prototype.hasOwnProperty.call(e,i))return{left:t,right:e,what:s+"."+i};let o;if(o=jr(t[i],e[i],r,s+"."+i))return o}else if(t!==e)return{left:t,right:e,what:s+". !=="}}return!1}const zr={name:"GanttElastic",components:{MainView:je,"gantt-header":$r,"gantt-view-filter":g},props:["tasks","options","dynamicStyle","isHeaderVisible","projectName"],provide(){const t={},e=this;return Object.defineProperty(t,"root",{enumerable:!0,get:()=>e}),t},data(){return{state:{tasks:[],options:{scrollBarHeight:0,allVisibleTasksHeight:0,outerHeight:0,scroll:{left:0,top:0}},dynamicStyle:{},refs:{},tasksById:{},taskTree:{},ctx:Er,emitTasksChanges:!0,emitOptionsChanges:!0,resizeObserver:null,unwatchTasks:null,unwatchOptions:null,unwatchStyle:null,unwatchOutputTasks:null,unwatchOutputOptions:null,unwatchOutputStyle:null}}},methods:{mergeDeep:Pr,mergeDeepReactive:Lr,onViewModeChanged(t){if(this.options.calendar.viewMode=t,this.options.times)switch(t){case"quarter":this.options.times.stepDuration="quarter",this.options.times.timeZoom=15;break;case"month":this.options.times.stepDuration="month",this.options.times.timeZoom=17;break;case"week":this.options.times.stepDuration="week",this.options.times.timeZoom=19;break;default:this.options.times.stepDuration="day",this.options.times.timeZoom=21;break}this.$nextTick((()=>{this.$forceUpdate(),this.$refs.ganttChart&&(this.$refs.ganttChart.prepareDates(),this.$refs.ganttChart.initTimes(),this.$refs.ganttChart.calculateSteps(),this.$refs.ganttChart.computeCalendarWidths(),this.$refs.ganttChart.ensureCalendarChartAlignment&&this.$refs.ganttChart.ensureCalendarChartAlignment())}))},handleTaskUpdated(t){this.$emit("task-updated",t),console.log("Task updated:",t)},getScrollBarHeight(){const t=document.createElement("div");t.style.visibility="hidden",t.style.height="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var e=t.offsetHeight;t.style.overflow="scroll";var r=document.createElement("div");r.style.height="100%",t.appendChild(r);var s=r.offsetHeight;t.parentNode.removeChild(t);const i=e-s;return this.style["chart-scroll-container--vertical"]["margin-left"]=`-${i}px`,this.state.options.scrollBarHeight=i},fillTasks(t){for(let e of t)"undefined"===typeof e.x&&(e.x=0),"undefined"===typeof e.y&&(e.y=0),"undefined"===typeof e.width&&(e.width=0),"undefined"===typeof e.height&&(e.height=0),"undefined"===typeof e.mouseOver&&(e.mouseOver=!1),"undefined"===typeof e.collapsed&&(e.collapsed=!1),"undefined"===typeof e.dependentOn&&(e.dependentOn=[]),"undefined"===typeof e.parentId&&(e.parentId=null),"undefined"===typeof e.style&&(e.style={}),"undefined"===typeof e.children&&(e.children=[]),"undefined"===typeof e.allChildren&&(e.allChildren=[]),"undefined"===typeof e.parents&&(e.parents=[]),"undefined"===typeof e.parent&&(e.parent=null),"undefined"===typeof e.startTime&&(e.startTime=c()(e.start).valueOf()),"undefined"===typeof e.endTime&&Object.prototype.hasOwnProperty.call(e,"end")?e.endTime=c()(e.end).valueOf():"undefined"===typeof e.endTime&&Object.prototype.hasOwnProperty.call(e,"duration")&&(e.endTime=e.startTime+e.duration),"undefined"===typeof e.duration&&Object.prototype.hasOwnProperty.call(e,"endTime")&&(e.duration=e.endTime-e.startTime);return t},mapTasks(t,e){for(let[r,s]of t.entries())t[r]={...s,id:s[e.taskMapping.id],start:s[e.taskMapping.start],label:s[e.taskMapping.label],duration:s[e.taskMapping.duration],progress:s[e.taskMapping.progress],type:s[e.taskMapping.type],style:s[e.taskMapping.style],collapsed:s[e.taskMapping.collapsed]};return t},initialize(t=""){let e=Pr({},this.state.options,Mr(this.options),this.options),r=this.mapTasks(this.tasks,e);0===Object.keys(this.state.dynamicStyle).length&&this.initializeStyle(),c().locale(e.locale,null,!0),c().locale(e.locale.name),"undefined"===typeof e.taskList&&(e.taskList={}),e.taskList.columns=e.taskList.columns.map(((t,e)=>(t.thresholdPercent=100,t.widthFromPercentage=0,t.finalWidth=0,"undefined"===typeof t.height&&(t.height=0),"undefined"===typeof t.style&&(t.style={}),t._id=`${e}-${t.label}`,t))),this.state.options=e,r=this.fillTasks(r),this.state.tasksById=this.resetTaskTree(r),this.state.taskTree=this.makeTaskTree(this.state.rootTask,r);const s=new Set;this.state.taskTree.allChildren.forEach((t=>{s.add(t)})),r.forEach((t=>{t.allChildren&&t.allChildren.length>0&&s.add(t.id)})),this.state.tasks=Array.from(s).map((t=>this.getTask(t))),this.calculateTaskListColumnsDimensions(),this.state.options.scrollBarHeight=this.getScrollBarHeight(),this.state.options.outerHeight=this.state.options.height+this.state.options.scrollBarHeight,this.globalOnResize()},initializeStyle(){this.state.dynamicStyle=Pr({},Cr(this.dynamicStyle),this.dynamicStyle)},getCalendarHeight(){return this.state.options.calendar.height+this.state.options.calendar.strokeWidth},getMaximalLevel(){let t=0;return this.state.tasks.forEach((e=>{e.parents.length>t&&(t=e.parents.length)})),t-1},getMaximalExpanderWidth(){return this.getMaximalLevel()*this.state.options.taskList.expander.padding+this.state.options.taskList.expander.margin},syncScrollTop(){this.state.refs.taskListItems&&this.state.refs.chartGraph.scrollTop!==this.state.refs.taskListItems.scrollTop&&(this.state.options.scroll.top=this.state.refs.taskListItems.scrollTop=this.state.refs.chartScrollContainerVertical.scrollTop=this.state.refs.chartGraph.scrollTop)},calculateTaskListColumnsDimensions(){let t=0,e=0;for(let r of this.state.options.taskList.columns)r.expander?r.widthFromPercentage=(this.getMaximalExpanderWidth()+r.width)/100*this.state.options.taskList.percent:r.widthFromPercentage=r.width/100*this.state.options.taskList.percent,e+=r.widthFromPercentage,r.finalWidth=r.thresholdPercent*r.widthFromPercentage/100,t+=r.finalWidth,r.height=this.getTaskHeight()-this.style["grid-line-horizontal"]["stroke-width"];this.state.options.taskList.widthFromPercentage=e,this.state.options.taskList.finalWidth=t},resetTaskTree(t){this.$set(this.state,"rootTask",{id:null,label:"root",children:[],allChildren:[],parents:[],parent:null,__root:!0});const e={};for(let r=0,s=t.length;r<s;r++){let s=t[r];s.children=[],s.allChildren=[],s.parent=null,s.parents=[],e[s.id]=s}return e},makeTaskTree(t,e){for(let r=0,s=e.length;r<s;r++){let s=e[r];s.parentId===t.id&&(t.parents.length&&t.parents.forEach((t=>s.parents.push(t))),Object.prototype.propertyIsEnumerable.call(t,"__root")?(s.parents=[],s.parent=null):(s.parents.push(t.id),s.parent=t.id),s=this.makeTaskTree(s,e),t.allChildren.push(s.id),t.children.push(s.id),s.allChildren.forEach((e=>t.allChildren.push(e))))}return t},getTask(t){return"undefined"!==typeof this.state.tasksById[t]?this.state.tasksById[t]:null},getChildren(t){return this.state.tasks.filter((e=>e.parent===t))},isTaskVisible(t){if("number"!==typeof t&&"string"!==typeof t||(t=this.getTask(t)),t.allChildren&&t.allChildren.length>0)return!0;for(let e=0,r=t.parents.length;e<r;e++){const r=this.getTask(t.parents[e]);if(r&&r.collapsed)return!1}return!0},getSVG(){return this.state.options.mainView.outerHTML},getImage(t="image/png"){return new Promise((e=>{const r=new Image;r.onload=()=>{const s=document.createElement("canvas");s.width=this.state.options.mainView.clientWidth,s.height=this.state.options.rowsHeight,s.getContext("2d").drawImage(r,0,0),e(s.toDataURL(t))},r.src="data:image/svg+xml,"+encodeURIComponent(this.getSVG())}))},getHeight(t,e=!1){let r;if(t.length>0)r=t.length*(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)+this.state.options.calendar.height+this.state.options.calendar.strokeWidth+this.state.options.calendar.gap;else{const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,s=.7*t-e-40;r=Math.max(s,300)}return e&&(r+=this.state.options.scrollBarHeight),r},getTaskHeight(t=!1){return t?this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap+this.style["grid-line-horizontal"]["stroke-width"]:this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap},getTasksHeight(t){const e=t.length*this.getTaskHeight();if(t.length>0)return e;const r=window.innerHeight,s=this.state.options.calendar.height+this.state.options.calendar.gap,i=.7*r-s-40,o=Math.max(i,300);return o},timeToPixelOffsetX(t){let e=t-this.state.options.times.firstTime;return e&&(e/=this.state.options.times.timePerPixel),e},pixelOffsetXToTime(t){let e=t+this.style["grid-line-vertical"]["stroke-width"]/2;return e*this.state.options.times.timePerPixel+this.state.options.times.firstTime},isInsideViewPort(t,e,r=5e3){return t+e+r>=this.state.options.scroll.chart.left&&t-r<=this.state.options.scroll.chart.right||t-r<=this.state.options.scroll.chart.left&&t+e+r>=this.state.options.scroll.chart.right},onScrollChart(t){this._onScrollChart(this.state.refs.chartScrollContainerHorizontal.scrollLeft,this.state.refs.chartScrollContainerVertical.scrollTop)},_onScrollChart(t,e){if(this.state.options.scroll.chart.left===t&&this.state.options.scroll.chart.top===e)return;const r=this.state.refs.chartContainer.clientWidth;this.state.options.scroll.chart.left=t,this.state.options.scroll.chart.right=t+r,this.state.options.scroll.chart.percent=t/this.state.options.times.totalViewDurationPx*100,this.state.options.scroll.chart.top=e,this.state.options.scroll.chart.time=this.pixelOffsetXToTime(t),this.state.options.scroll.chart.timeCenter=this.pixelOffsetXToTime(t+r/2),this.state.options.scroll.chart.dateTime.left=c()(this.state.options.scroll.chart.time).valueOf(),this.state.options.scroll.chart.dateTime.right=c()(this.pixelOffsetXToTime(t+this.state.refs.chart.clientWidth)).valueOf(),this.scrollTo(t,e)},scrollToTime(t){let e=this.timeToPixelOffsetX(t);const r=this.state.refs.chartContainer.clientWidth;e-=r/2,e>this.state.options.width&&(e=this.state.options.width-r),this.scrollTo(e)},scrollTo(t=null,e=null){null!==t&&(this.state.refs.chartCalendarContainer.scrollLeft=t,this.state.refs.chartGraphContainer.scrollLeft=t,this.state.refs.chartScrollContainerHorizontal.scrollLeft=t,this.state.options.scroll.left=t),null!==e&&(this.state.refs.chartScrollContainerVertical.scrollTop=e,this.state.refs.chartGraph.scrollTop=e,this.state.refs.taskListItems.scrollTop=e,this.state.options.scroll.top=e,this.syncScrollTop())},fixScrollPos(){this.scrollToTime(this.state.options.scroll.chart.timeCenter)},onWheelChart(t){if(t.shiftKey||0!==t.deltaX)if(t.shiftKey&&0===t.deltaX){let e=this.state.options.scroll.left+t.deltaY;const r=this.state.refs.chartScrollContainerHorizontal.clientWidth,s=this.state.refs.chartScrollContainerHorizontal.scrollWidth-r;e<0?e=0:e>s&&(e=s),this.scrollTo(e)}else{let e=this.state.options.scroll.left+t.deltaX;const r=this.state.refs.chartScrollContainerHorizontal.clientWidth,s=this.state.refs.chartScrollContainerHorizontal.scrollWidth-r;e<0?e=0:e>s&&(e=s),this.scrollTo(e)}else{let e=this.state.options.scroll.top+t.deltaY;const r=this.state.options.rowsHeight,s=this.state.refs.chartGraph.scrollHeight-r;e<0?e=0:e>s&&(e=s),this.scrollTo(null,e)}},onTimeZoomChange(t){this.state.options.times.timeZoom=t,this.recalculateTimes(),this.calculateSteps(),this.fixScrollPos()},onRowHeightChange(t){this.state.options.row.height=t,this.calculateTaskListColumnsDimensions(),this.syncScrollTop()},onScopeChange(t){this.state.options.scope.before=t,this.state.options.scope.after=t,this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.fixScrollPos()},onTaskListWidthChange(t){this.state.options.taskList.percent=t,this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},onTaskListColumnWidthChange(){this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},initializeEvents(){this.$on("chart-scroll-horizontal",this.onScrollChart),this.$on("chart-scroll-vertical",this.onScrollChart),this.$on("chart-wheel",this.onWheelChart),this.$on("times-timeZoom-change",this.onTimeZoomChange),this.$on("row-height-change",this.onRowHeightChange),this.$on("scope-change",this.onScopeChange),this.$on("taskList-width-change",this.onTaskListWidthChange),this.$on("taskList-column-width-change",this.onTaskListColumnWidthChange)},getResponsiveStepWidths(t){const e=this.state.options.clientWidth,r={day:{mobile:40,tablet:50,desktopSmall:60,desktopBig:80},week:{mobile:80,tablet:100,desktopSmall:120,desktopBig:150},month:{mobile:120,tablet:140,desktopSmall:160,desktopBig:200},quarter:{mobile:200,tablet:250,desktopSmall:300,desktopBig:400}};let s;s=e<768?"mobile":e<1024?"tablet":e<1440?"desktopSmall":"desktopBig";let i=r[t][s];const o=this.getDataBasedStepWidth(t,e);return Math.max(i,o)},getDataBasedStepWidth(t,e){const r=this.getEstimatedStepCount(t),s=300,i=e-s,o={day:30,week:12,month:8,quarter:3},n=Math.max(r,o[t]),a={day:30,week:60,month:80,quarter:120},l=i/n,c=Math.max(l,a[t]),h={day:100,week:200,month:300,quarter:500};return Math.min(c,h[t])},getMaxWidthMultiplier(t,e){const r=this.state.options.clientWidth,s={mobile:1.5,tablet:1.8,desktopSmall:2.2,desktopBig:2.5};let i;i=r<768?"mobile":r<1024?"tablet":r<1440?"desktopSmall":"desktopBig";let o=s[i];const n={day:30,week:12,month:8,quarter:3};if(e>n[t]){const r=e/n[t];o=Math.min(o*(1+.3*r),3)}return o},getEstimatedStepCount(t){c()(this.state.options.times.lastTime).diff(this.state.options.times.firstTime,"milliseconds");switch(t){case"quarter":return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"quarter",!0));case"month":return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"month",!0));case"week":return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"week",!0));case"day":default:return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"day",!0))}},recalculateTimes(){const t=this.state.options.times.stepDuration,e=this.state.options.times.timeZoom;const r=c()(this.state.options.times.lastTime).diff(this.state.options.times.firstTime,"milliseconds"),s=this.getResponsiveStepWidths(t),i=this.getEstimatedStepCount(t),o={day:30,week:12,month:8,quarter:3},n=Math.max(i,o[t]);if(i<o[t]){const e=c()(this.state.options.times.firstTime);let r;switch(t){case"month":r=e.add(8,"month");break;case"week":r=e.add(12,"week");break;case"quarter":r=e.add(3,"quarter");break;case"day":default:r=e.add(30,"day");break}this.state.options.times.lastTime=r.valueOf();const i=r.diff(e,"milliseconds"),n=o[t];return this.state.options.times.timePerPixel=i/(n*s),this.state.options.times.totalViewDurationMs=i,void(this.state.options.times.totalViewDurationPx=n*s)}const a=n*s;this.state.options.times.timePerPixel=r/a;const l=Math.pow(.8,(e-17)/10);this.state.options.times.timePerPixel*=l,this.state.options.times.totalViewDurationMs=r,this.state.options.times.totalViewDurationPx=this.state.options.times.totalViewDurationMs/this.state.options.times.timePerPixel;const h=this.state.options.times.totalViewDurationPx+this.style["grid-line-vertical"]["stroke-width"],u=this.getMaxWidthMultiplier(t,n),d=this.state.options.clientWidth*u,p=1.1*this.state.options.clientWidth,f=Math.max(h,p);f>d?(this.state.options.times.timePerPixel=r/(d-this.style["grid-line-vertical"]["stroke-width"]),this.state.options.times.totalViewDurationPx=r/this.state.options.times.timePerPixel,this.state.options.width=d):this.state.options.width=f},initTimes(){const t=c()(this.state.options.times.firstTaskTime).startOf("day"),e=this.calculateDynamicStartDate(),r=t.isBefore(e)?t:e;this.state.options.times.firstTime=r.locale(this.state.options.locale.name).subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=c()(this.state.options.times.lastTaskTime).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf(),this.recalculateTimes()},calculateSteps(){const t=[],e=c()(this.state.options.times.lastTime).valueOf(),r=this.state.options.times.stepDuration,s=(t,e)=>{switch(e){case"quarter":return t.startOf("quarter");case"month":return t.startOf("month");case"week":return t.startOf("week");case"day":default:return t.startOf("day")}},i=c()(this.state.options.times.firstTime);t.push({time:i.valueOf(),offset:{ms:0,px:0}});let o=s(i.clone().add(1,r),r);while(o.valueOf()<=e){const e=o.diff(this.state.options.times.firstTime,"milliseconds"),i=Math.round(e/this.state.options.times.timePerPixel),n={time:o.valueOf(),offset:{ms:e,px:i}},a=t[t.length-1];a.width={ms:e-a.offset.ms,px:Math.round(i-a.offset.px)},t.push(n),o=s(o.add(1,r),r)}const n=t[t.length-1];n.width={ms:this.state.options.times.totalViewDurationMs-n.offset.ms,px:Math.round(this.state.options.times.totalViewDurationPx-n.offset.px)},this.state.options.times.steps=t},computeCalendarWidths(){this.computeDayWidths(),this.computeHourWidths(),this.computeMonthWidths()},computeHourWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--hour"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];const e=this.state.options.locale.name;let r=c()("2018-01-01T00:00:00").locale(e),s=this.state.options.calendar.hour.maxWidths;if(!s.length){for(let t in this.state.options.calendar.hour.format)s[t]=0;for(let t=0;t<24;t++){let e={hour:t};for(let t in this.state.options.calendar.hour.format){const s=this.state.options.calendar.hour.format[t](r);this.state.options.calendar.hour.formatted[t].push(s),e[t]=this.state.ctx.measureText(s).width}this.state.options.calendar.hour.widths.push(e);for(let t in this.state.options.calendar.hour.format)e[t]>s[t]&&(s[t]=e[t]);r=r.add(1,"hour")}}},computeDayWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--day"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];const e=this.state.options.locale.name;let r=c()(this.state.options.times.steps[0].time).locale(e),s=this.state.options.calendar.day.maxWidths;this.state.options.calendar.day.widths=[],Object.keys(this.state.options.calendar.day.format).forEach((t=>{s[t]=0}));for(let i=0,o=this.state.options.times.steps.length;i<o;i++){const t={day:i};Object.keys(this.state.options.calendar.day.format).forEach((e=>{t[e]=this.state.ctx.measureText(this.state.options.calendar.day.format[e](r)).width})),this.state.options.calendar.day.widths.push(t),Object.keys(this.state.options.calendar.day.format).forEach((e=>{t[e]>s[e]&&(s[e]=t[e])})),r=r.add(1,"day")}},monthsCount(t,e){if(t>e)return 0;let r=c()(t),s=r.clone(),i=1;while(r.valueOf()<=e)r=r.add(1,"day"),s.month()!==r.month()&&i++,s=r.clone();return i},computeMonthWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--month"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];let e=this.state.options.calendar.month.maxWidths;this.state.options.calendar.month.widths=[],Object.keys(this.state.options.calendar.month.format).forEach((t=>{e[t]=0}));const r=this.state.options.locale.name;let s=c()(this.state.options.times.firstTime).locale(r);const i=this.monthsCount(this.state.options.times.firstTime,this.state.options.times.lastTime);for(let o=0;o<i;o++){const t={month:o};Object.keys(this.state.options.calendar.month.format).forEach((e=>{t[e]=this.state.ctx.measureText(this.state.options.calendar.month.format[e](s)).width})),this.state.options.calendar.month.widths.push(t),Object.keys(this.state.options.calendar.month.format).forEach((r=>{t[r]>e[r]&&(e[r]=t[r])})),s=s.add(1,"month")}},calculateDynamicStartDate(){const t=c()(),e=this.state.options.times.stepDuration;let r;switch(e){case"day":r=t.startOf("day");break;case"week":r=t.subtract(1,"week").startOf("week");break;case"month":r=t.subtract(1,"month").startOf("month");break;case"quarter":r=t.subtract(1,"quarter").startOf("quarter");break;default:r=t.startOf("day")}return r},prepareDates(){let t=Number.MAX_SAFE_INTEGER,e=0;for(let o=0,n=this.state.tasks.length;o<n;o++){let r=this.state.tasks[o];r.startTime<t&&(t=r.startTime),r.startTime+r.duration>e&&(e=r.startTime+r.duration)}this.state.options.times.firstTaskTime=t,this.state.options.times.lastTaskTime=e;const r=c()(t).startOf("day"),s=this.calculateDynamicStartDate(),i=r.isBefore(s)?r:s;this.state.options.times.firstTime=i.locale(this.state.options.locale.name).subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=c()(e).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf()},setup(t=""){this.initialize(t),this.prepareDates(),this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.state.options.taskList.width=this.state.options.taskList.columns.reduce(((t,e)=>({width:t.width+e.width})),{width:0}).width},recalculateHeight(){const t=this.state.tasks.filter((t=>this.isTaskVisible(t)));if(t.length>0)this.state.options.rowsHeight=this.getTasksHeight(t),this.state.options.height=this.getHeight(t),this.state.options.allVisibleTasksHeight=this.getTasksHeight(t),this.state.options.outerHeight=this.getHeight(t,!0);else{const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,r=.7*t-e-40,s=Math.max(r,300);this.state.options.rowsHeight=s,this.state.options.height=s+this.state.options.calendar.height+this.state.options.calendar.gap,this.state.options.allVisibleTasksHeight=s,this.state.options.outerHeight=this.state.options.height+this.state.options.scrollBarHeight}},globalOnResize(){if("undefined"!==typeof this.$el&&this.$el){if(this.state.options.clientWidth=this.$el.clientWidth,0===this.state.tasks.length){const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,r=.7*t-e-40;this.state.options.height=Math.max(r,300)}if(this.state.options.taskList.widthFromPercentage>this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold){const t=this.state.options.taskList.widthFromPercentage-this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold;let e=100-t/this.state.options.taskList.widthFromPercentage*100;e<0&&(e=0),this.state.options.taskList.columns.forEach((t=>{t.thresholdPercent=e}))}else this.state.options.taskList.columns.forEach((t=>{t.thresholdPercent=100}));this.calculateTaskListColumnsDimensions(),this.recalculateTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.$emit("calendar-recalculate"),this.syncScrollTop(),this.recalculateHeight()}}},computed:{visibleTasks(){const t=this.state.tasks.filter((t=>this.isTaskVisible(t)));this.state.options.rowsHeight=this.getTasksHeight(t);let e=0;this.state.options.maxHeight&&this.state.options.rowsHeight>this.state.options.maxHeight&&(e=this.state.options.rowsHeight-this.state.options.maxHeight,this.state.options.rowsHeight=this.state.options.maxHeight),this.state.options.height=this.getHeight(t)-e,this.state.options.allVisibleTasksHeight=this.getTasksHeight(t),this.state.options.outerHeight=this.getHeight(t,!0)-e;let r=t.length;for(let s=0;s<r;s++){let e=t[s];e.width=e.duration/this.state.options.times.timePerPixel-this.style["grid-line-vertical"]["stroke-width"],e.width<0&&(e.width=0),e.height=this.state.options.row.height,e.x=this.timeToPixelOffsetX(e.startTime),e.y=(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)*s+this.state.options.chart.grid.horizontal.gap}return t},style(){return this.state.dynamicStyle},getTaskListColumns(){return this.calculateTaskListColumnsDimensions(),this.state.options.taskList.columns},outputTasks(){return this.state.tasks},outputOptions(){return this.state.options}},created(){this.initializeEvents(),this.setup(),this.state.unwatchTasks=this.$watch("tasks",(t=>{const e=jr(t,this.outputTasks);e&&this.setup("tasks"),this.$nextTick((()=>{this.recalculateHeight()}))}),{deep:!0}),this.state.unwatchOptions=this.$watch("options",(t=>{const e=jr(t,this.outputOptions);e&&this.setup("options")}),{deep:!0}),this.state.unwatchStyle=this.$watch("dynamicStyle",(t=>{const e=jr(t,this.dynamicStyle);e&&this.initializeStyle()}),{deep:!0,immediate:!0}),this.state.unwatchOutputTasks=this.$watch("outputTasks",(t=>{this.$emit("tasks-changed",t.map((t=>t)))}),{deep:!0}),this.state.unwatchOutputOptions=this.$watch("outputOptions",(t=>{this.$emit("options-changed",Pr({},t))}),{deep:!0}),this.state.unwatchOutputStyle=this.$watch("style",(t=>{this.$emit("dynamic-style-changed",Pr({},t))}),{deep:!0}),this.$root.$emit("gantt-elastic-created",this),this.$emit("created",this)},beforeMount(){this.$emit("before-mount",this)},mounted(){if(this.state.options.clientWidth=this.$el.clientWidth,0===this.state.tasks.length){const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,r=.7*t-e-40;this.state.options.height=Math.max(r,300)}this.state.resizeObserver=new ur(((t,e)=>{this.globalOnResize()})),this.state.resizeObserver.observe(this.$el.parentNode),window.addEventListener("resize",this.globalOnResize),this.globalOnResize(),this.recalculateHeight(),this.$emit("ready",this),this.$root.$emit("gantt-elastic-mounted",this),this.$emit("mounted",this),this.$root.$emit("gantt-elastic-ready",this)},beforeUpdate(){this.$emit("before-update")},updated(){this.$nextTick((()=>{this.$emit("updated")}))},beforeDestroy(){this.state.resizeObserver.unobserve(this.$el.parentNode),window.removeEventListener("resize",this.globalOnResize),this.state.unwatchTasks(),this.state.unwatchOptions(),this.state.unwatchStyle(),this.state.unwatchOutputTasks(),this.state.unwatchOutputOptions(),this.state.unwatchOutputStyle(),this.$emit("before-destroy")},destroyed(){this.$emit("destroyed")}};var Ar=zr,Rr=Ar,Hr=f(Rr,n,a,!1,null,null,null),Ir=Hr.exports,Vr={name:"GanttElasticStandalone",components:{"gantt-elastic":Ir},props:{tasks:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},dynamicStyle:{type:Object,default:()=>({})},header:{type:Object,default:()=>({})},footer:{type:Object,default:()=>({})}},data(){return{components:{header:this.header,footer:this.footer}}}},Wr=Vr,Br=f(Wr,r,o,!1,null,null,null),Fr=Br.exports,Nr={install(t,e={}){t.component("tg-ganttchart",Fr)}},Yr=Nr}(),i}()}));
6
+ */function s(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var i=s(r("8bbf")),o="undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function n(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){a(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){a(t,e,r)}))}function a(t,e,r){var s=r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e);s.forEach((function(s){var i=r?Reflect.getOwnMetadata(s,e,r):Reflect.getOwnMetadata(s,e);r?Reflect.defineMetadata(s,i,t,r):Reflect.defineMetadata(s,i,t)}))}var l={__proto__:[]},c=l instanceof Array;function h(t){return function(e,r,s){var i="function"===typeof e?e:e.constructor;i.__decorators__||(i.__decorators__=[]),"number"!==typeof s&&(s=void 0),i.__decorators__.push((function(e){return t(e,r,s)}))}}function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.extend({mixins:t})}function d(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}function p(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var s in t.$options.props)t.hasOwnProperty(s)||r.push(s);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var s=new e;e.prototype._init=r;var i={};return Object.keys(s).forEach((function(t){void 0!==s[t]&&(i[t]=s[t])})),i}var f=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function m(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(f.indexOf(t)>-1)e[t]=r[t];else{var s=Object.getOwnPropertyDescriptor(r,t);void 0!==s.value?"function"===typeof s.value?(e.methods||(e.methods={}))[t]=s.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=s.value,e}}):(s.get||s.set)&&((e.computed||(e.computed={}))[t]={get:s.get,set:s.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return p(this,t)}});var s=t.__decorators__;s&&(s.forEach((function(t){return t(e)})),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),l=a instanceof i?a.constructor:i,c=l.extend(e);return g(c,t,l),o&&n(c,t),c}function g(t,e,r){Object.getOwnPropertyNames(e).forEach((function(s){if("prototype"!==s){var i=Object.getOwnPropertyDescriptor(t,s);if(!i||i.configurable){var o=Object.getOwnPropertyDescriptor(e,s);if(!c){if("cid"===s)return;var n=Object.getOwnPropertyDescriptor(r,s);if(!d(o.value)&&n&&n.value===o.value)return}Object.defineProperty(t,s,o)}}}))}function y(t){return"function"===typeof t?m(t):function(e){return m(e,t)}}y.registerHooks=function(t){f.push.apply(f,t)},e.default=y,e.createDecorator=h,e.mixins=u},"7a57":function(t,e,r){var s=r("24fb");e=s(!1),e.push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,r){var s,i,o;(function(r,n){i=[],s=n,o="function"===typeof s?s.apply(e,i):s,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,s,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,n=/@([^@]*):(\d+):(\d+)\s*$/gi,a=o.exec(p.stack)||n.exec(p.stack),l=a&&a[1]||!1,c=a&&a[2]||!1,h=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");l===h&&(r=document.documentElement.outerHTML,s=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=r.replace(s,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===l)return u[d];if(l===h&&u[d].innerHTML&&u[d].innerHTML.trim()===i)return u[d]}return null}}return t}))},"8bbf":function(e,r){e.exports=t},eef2:function(t,e,r){var s=r("24fb");e=s(!1),e.push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,r){"use strict";if(r.r(e),r.d(e,"ERROR_TYPE",(function(){return Q})),r.d(e,"VueSliderMark",(function(){return B})),r.d(e,"VueSliderDot",(function(){return M})),"undefined"!==typeof window){var s=window.document.currentScript,i=r("8875");s=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var n=r("2638"),a=r.n(n);function l(t,e,r,s){var i,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(n=(o<3?i(n):o>3?i(e,r,n):i(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n}var c=r("8bbf"),h=r.n(c),u=r("65d9"),d=r.n(u);function p(t,e){return void 0===e&&(e={}),Object(u["createDecorator"])((function(r,s){(r.props||(r.props={}))[s]=e,r.model={prop:s,event:t||s}}))}function f(t){return void 0===t&&(t={}),Object(u["createDecorator"])((function(e,r){(e.props||(e.props={}))[r]=t}))}function m(t,e){void 0===e&&(e={});var r=e.deep,s=void 0!==r&&r,i=e.immediate,o=void 0!==i&&i;return Object(u["createDecorator"])((function(e,r){"object"!==typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!==typeof i[t]||Array.isArray(i[t])?"undefined"===typeof i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:r,deep:s,immediate:o})}))}function g(t){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function w(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),t}function k(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}function x(t){var e=T();return function(){var r,s=$(t);if(e){var i=$(this).constructor;r=Reflect.construct(s,arguments,i)}else r=s.apply(this,arguments);return _(this,r)}}function _(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}r("4ed8");var O=function(){var t=function(t){k(r,t);var e=x(r);function r(){return y(this,r),e.apply(this,arguments)}return w(r,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,attrs:{"aria-valuetext":"number"===typeof this.tooltipValue?this.tooltipValue.toString():this.tooltipValue},on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"===typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),r}(h.a);return l([f({default:0})],t.prototype,"value",void 0),l([f()],t.prototype,"tooltip",void 0),l([f()],t.prototype,"dotStyle",void 0),l([f()],t.prototype,"tooltipStyle",void 0),l([f({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),l([f({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),l([f({type:Boolean,default:!1})],t.prototype,"focus",void 0),l([f({default:!1})],t.prototype,"disabled",void 0),t=l([d()({name:"VueSliderDot"})],t),t}(),M=O;function C(t){return C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function P(t,e,r){return e&&D(t.prototype,e),r&&D(t,r),t}function L(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},j(t,e)}function z(t){var e=H();return function(){var r,s=I(t);if(e){var i=I(this).constructor;r=Reflect.construct(s,arguments,i)}else r=s.apply(this,arguments);return A(this,r)}}function A(t,e){return!e||"object"!==C(e)&&"function"!==typeof e?R(t):e}function R(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}r("556c");var V,W=function(){var t=function(t){L(r,t);var e=z(r);function r(){return E(this,r),e.apply(this,arguments)}return P(r,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle||{},e.style||{},e.active&&this.stepActiveStyle||{},e.active&&e.activeStyle||{}]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle||{},e.labelStyle||{},e.active&&this.labelActiveStyle||{},e.active&&e.labelActiveStyle||{}],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),r}(h.a);return l([f({required:!0})],t.prototype,"mark",void 0),l([f(Boolean)],t.prototype,"hideLabel",void 0),l([f()],t.prototype,"stepStyle",void 0),l([f()],t.prototype,"stepActiveStyle",void 0),l([f()],t.prototype,"labelStyle",void 0),l([f()],t.prototype,"labelActiveStyle",void 0),t=l([d()({name:"VueSlideMark"})],t),t}(),B=W,F=function(t){return"number"===typeof t?"".concat(t,"px"):t},N=function(t){var e=document.documentElement,r=document.body,s=t.getBoundingClientRect(),i={y:s.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||r.clientTop||0),x:s.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||r.clientLeft||0)};return i},Y=function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i="targetTouches"in t?t.targetTouches[0]:t,o=N(e),n={x:i.pageX-o.x,y:i.pageY-o.y};return{x:r?e.offsetWidth*s-n.x:n.x,y:r?e.offsetHeight*s-n.y:n.y}};(function(t){t[t["PAGE_UP"]=33]="PAGE_UP",t[t["PAGE_DOWN"]=34]="PAGE_DOWN",t[t["END"]=35]="END",t[t["HOME"]=36]="HOME",t[t["LEFT"]=37]="LEFT",t[t["UP"]=38]="UP",t[t["RIGHT"]=39]="RIGHT",t[t["DOWN"]=40]="DOWN"})(V||(V={}));var q=function(t,e){if(e.hook){var r=e.hook(t);if("function"===typeof r)return r;if(!r)return null}switch(t.keyCode){case V.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case V.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case V.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case V.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case V.END:return function(){return e.max};case V.HOME:return function(){return e.min};case V.PAGE_UP:return function(t){return t+10};case V.PAGE_DOWN:return function(t){return t-10};default:return null}};function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function G(t,e,r){return e&&X(t.prototype,e),r&&X(t,r),t}var Z,Q,K=function(){function t(e){U(this,t),this.num=e}return G(t,[{key:"decimal",value:function(t,e){var r=this.num,s=this.getDecimalLen(r),i=this.getDecimalLen(t),o=0;switch(e){case"+":o=this.getExponent(s,i),this.num=(this.safeRoundUp(r,o)+this.safeRoundUp(t,o))/o;break;case"-":o=this.getExponent(s,i),this.num=(this.safeRoundUp(r,o)-this.safeRoundUp(t,o))/o;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(r,this.getExponent(s)),this.safeRoundUp(t,this.getExponent(i)))/this.getExponent(s+i);break;case"/":o=this.getExponent(s,i),this.num=this.safeRoundUp(r,o)/this.safeRoundUp(t,o);break;case"%":o=this.getExponent(s,i),this.num=this.safeRoundUp(r,o)%this.safeRoundUp(t,o)/o;break}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e){return it(t)||st(t,e)||at(t,e)||rt()}function rt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],s=!0,i=!1,o=void 0;try{for(var n,a=t[Symbol.iterator]();!(s=(n=a.next()).done);s=!0)if(r.push(n.value),e&&r.length===e)break}catch(l){i=!0,o=l}finally{try{s||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}function it(t){if(Array.isArray(t))return t}function ot(t){return ct(t)||lt(t)||at(t)||nt()}function nt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function at(t,e){if(t){if("string"===typeof t)return ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(t,e):void 0}}function lt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function ct(t){if(Array.isArray(t))return ht(t)}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}function ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function pt(t,e,r){return e&&dt(t.prototype,e),r&&dt(t,r),t}function ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}(function(t){t[t["VALUE"]=1]="VALUE",t[t["INTERVAL"]=2]="INTERVAL",t[t["MIN"]=3]="MIN",t[t["MAX"]=4]="MAX",t[t["ORDER"]=5]="ORDER"})(Q||(Q={}));var mt=(Z={},ft(Z,Q.VALUE,'The type of the "value" is illegal'),ft(Z,Q.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),ft(Z,Q.MIN,'The "value" must be greater than or equal to the "min".'),ft(Z,Q.MAX,'The "value" must be less than or equal to the "max".'),ft(Z,Q.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),Z),gt=function(){function t(e){ut(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(Q.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return pt(t,[{key:"setValue",value:function(t){var e=this;this.setDotsValue(Array.isArray(t)?this.order?ot(t).sort((function(t,r){return e.getIndexByValue(t)-e.getIndexByValue(r)})):ot(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,r=this.order?ot(t).sort((function(t,e){return t-e})):t;this.dotsPos=r,this.setDotsValue(r.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var r=100;this.markList.forEach((function(s){var i=Math.abs(s.pos-t);i<r&&(r=i,e=s.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this,r=this.dotsPos.filter((function(t,r){return!(e.getDotOption(r)&&e.getDotOption(r).disabled)})).map((function(e){return Math.abs(e-t)}));return r.indexOf(Math.min.apply(Math,ot(r)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new K(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new K(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var r=t-this.dotsPos[e];if(r){var s=new Array(this.dotsPos.length);this.fixed?s=this.getFixedChangePosArr(r,e):this.minRange||this.maxRange?s=this.getLimitRangeChangePosArr(t,r,e):s[e]=r,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(s[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var r=this;return this.dotsPos.forEach((function(s,i){if(i!==e){var o=r.getValidPos(s+t,i),n=o.pos,a=o.inRange;a||(t=Math.min(Math.abs(n-s),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,r){var s=this,i=[{index:r,changePos:e}],o=e;return[this.minRange,this.maxRange].forEach((function(n,a){if(!n)return!1;var l=0===a,c=e>0,h=0;h=l?c?1:-1:c?-1:1;var u=function(t,e){var r=Math.abs(t-e);return l?r<s.minRangeDir:r>s.maxRangeDir},d=r+h,p=s.dotsPos[d],f=t;while(s.isPos(p)&&u(p,f)){var m=s.getValidPos(p+o,d),g=m.pos;i.push({index:d,changePos:g-p}),d+=h,f=g,p=s.dotsPos[d]}})),this.dotsPos.map((function(t,e){var r=i.filter((function(t){return t.index===e}));return r.length?r[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"===typeof t}},{key:"getValidPos",value:function(t,e){var r=this.valuePosRange[e],s=!0;return t<r[0]?(t=r[0],s=!1):t>r[1]&&(t=r[1],s=!1),{pos:t,inRange:s}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"===typeof t||"string"===typeof t){if(t=+t,t<this.min)return this.emitError(Q.MIN),0;if(t>this.max)return this.emitError(Q.MAX),0;if("number"!==typeof t||t!==t)return this.emitError(Q.VALUE),0;t=new K(t).minus(this.min).divide(this.interval).toNumber()}var e=new K(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var r=et(e,2),s=r[0],i=r[1];return t>=s&&t<=i}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new K(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new K(t).divide(new K(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,mt[t])}},{key:"getDotOption",value:function(t){return Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions}},{key:"getDotRange",value:function(t,e,r){if(!this.dotOptions)return r;var s=this.getDotOption(t);return s&&void 0!==s[e]?this.parseValue(s[e]):r}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,r){var s=t.parseValue(e);return tt({pos:s,value:e,label:e,active:t.isActiveByPos(s)},r)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(r){var s=t.marks[r];return e(r,"string"!==typeof s?s:{label:s})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"===typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){var e=t.result;return!!e})).map((function(t){var r=t.value,s=t.result;return e(r,s)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"===typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,ot(this.dotsPos)),Math.max.apply(Math,ot(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new K(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!==0?(this.emitError(Q.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,r=[];return e.forEach((function(s,i){r.push([Math.max(t.minRange?t.minRangeDir*i:0,t.enableCross?0:e[i-1]||0,t.getDotRange(i,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-i):100,t.enableCross?100:e[i+1]||100,t.getDotRange(i,"max",100))])})),r}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function wt(t,e,r){return e&&vt(t.prototype,e),r&&vt(t,r),t}var kt=function(){function t(e){yt(this,t),this.states=0,this.map=e}return wt(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function bt(t,e){return St(t)||_t(t,e)||Et(t,e)||xt()}function xt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _t(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],s=!0,i=!1,o=void 0;try{for(var n,a=t[Symbol.iterator]();!(s=(n=a.next()).done);s=!0)if(r.push(n.value),e&&r.length===e)break}catch(l){i=!0,o=l}finally{try{s||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}function St(t){if(Array.isArray(t))return t}function Tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function $t(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(r),!0).forEach((function(e){Ot(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ot(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mt(t){return Pt(t)||Dt(t)||Et(t)||Ct()}function Ct(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(t,e){if(t){if("string"===typeof t)return Lt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lt(t,e):void 0}}function Dt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Pt(t){if(Array.isArray(t))return Lt(t)}function Lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}function jt(t){return jt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function Rt(t,e,r){return e&&At(t.prototype,e),r&&At(t,r),t}function Ht(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&It(t,e)}function It(t,e){return It=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},It(t,e)}function Vt(t){var e=Ft();return function(){var r,s=Nt(t);if(e){var i=Nt(this).constructor;r=Reflect.construct(s,arguments,i)}else r=s.apply(this,arguments);return Wt(this,r)}}function Wt(t,e){return!e||"object"!==jt(e)&&"function"!==typeof e?Bt(t):e}function Bt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ft(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Nt(t){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Nt(t)}r("4abb");var Yt={None:0,Drag:2,Focus:4},qt=4,Ut=function(){var t=function(t){Ht(r,t);var e=Vt(r);function r(){var t;return zt(this,r),t=e.apply(this,arguments),t.states=new kt(Yt),t.scale=1,t.focusDotIndex=0,t}return Rt(r,[{key:"isObjectData",value:function(t){return!!t&&"[object Object]"===Object.prototype.toString.call(t)}},{key:"isObjectArrayData",value:function(t){return!!t&&Array.isArray(t)&&t.length>0&&"object"===jt(t[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(Yt.Drag)&&this.isNotSync&&(this.control.setValue(this.value),this.syncValueByPos())}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove,{passive:!1}),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){var t=new K(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));void 0!==this.zoom&&t.multiply(this.zoom),t.divide(100),this.scale=t.toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new gt({value:this.value,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),this.syncValueByPos(),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(r){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(r)&&t.control.data.length===r.length&&r.every((function(e,r){return e===t.control.data[r]})))return!1;switch(e){case"data":case"dataLabel":case"dataValue":t.control.data=t.sliderData;break;case"mark":t.control.marks=t.sliderMarks;break;default:t.control[e]=r}["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:Mt(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,r){return t!==e[r]}))}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),r=this.control.getRecentDot(e);if(this.dots[r].disabled)return;this.dragStart(r),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(Yt.Drag),this.states.add(Yt.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(Yt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var r=this.control.dotsValue;this.$emit("dragging",1===r.length?r[0]:Mt(r),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,r=t;if(r>this.dragRange[1]?(r=this.dragRange[1],this.focusDotIndex++):r<this.dragRange[0]&&(r=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex){var s=this.$refs["dot-".concat(this.focusDotIndex)];s&&s.$el&&s.$el.focus(),this.control.setDotPos(r,e)}}}},{key:"dragEnd",value:function(t){var e=this;if(!this.states.has(Yt.Drag))return!1;setTimeout((function(){e.lazy&&e.syncValueByPos(),e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos(),e.states.delete(Yt.Drag),e.useKeyboard&&!("targetTouches"in t)||e.states.delete(Yt.Focus),e.$emit("drag-end",e.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(Yt.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(Yt.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(Yt.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(Yt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(Yt.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?Mt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,r=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(r)}},{key:"setValueByPos",value:function(t){var e=this,r=this.control.getRecentDot(t);if(this.disabled||this.dots[r].disabled)return!1;this.focusDotIndex=r,this.control.setDotPos(t,r),this.syncValueByPos(),this.useKeyboard&&this.states.add(Yt.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(Yt.Focus))return!1;var r=this.included&&this.marks,s=q(t,{direction:this.direction,max:r?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(s){t.preventDefault();var i=-1,o=0;r?(this.control.markList.some((function(t,r){return t.value===e.control.dotsValue[e.focusDotIndex]&&(i=s(r),!0)})),i<0?i=0:i>this.control.markList.length-1&&(i=this.control.markList.length-1),o=this.control.markList[i].pos):(i=s(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),o=this.control.parseValue(this.control.getValueByIndex(i))),this.isCrossDot(o),this.control.setDotPos(o,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return Y(t,this.$refs.rail,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,r,s){var i=this.$createElement,o=this.$scopedSlots[t];return o?s?o(e):i("template",{slot:t},[o(e)]):r}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",a()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{ref:"rail",class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(r,s){return t.renderSlot("process",r,e("div",{class:"vue-slider-process",key:"process-".concat(s),style:r.style}),!0)})),this.sliderMarks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(r,s){var i;return t.renderSlot("mark",r,e("vue-slider-mark",{key:"mark-".concat(s),attrs:{mark:r,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(i={},Ot(i,t.isHorizontal?"height":"width","100%"),Ot(i,t.isHorizontal?"width":"height",t.tailSize),Ot(i,t.mainDirection,"".concat(r.pos,"%")),i),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",r,null),t.renderSlot("label",r,null)]),!0)}))]):null,this.dots.map((function(r,s){var i;return e("vue-slider-dot",{ref:"dot-".concat(s),key:"dot-".concat(s),attrs:$t({value:r.value,disabled:r.disabled,focus:r.focus,"dot-style":[r.style,r.disabled?r.disabledStyle:null,r.focus?r.focusStyle:null],tooltip:r.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,r.tooltipStyle,r.disabled?r.tooltipDisabledStyle:null,r.focus?r.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.sliderTooltipFormatter)?t.sliderTooltipFormatter[s]:t.sliderTooltipFormatter,"tooltip-placement":t.tooltipDirections[s],role:"slider","aria-valuenow":r.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.isHorizontal?"horizontal":"vertical",tabindex:"0"},t.dotAttrs),style:[t.dotBaseStyle,(i={},Ot(i,t.mainDirection,"".concat(r.pos,"%")),Ot(i,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),i)],on:{"drag-start":function(){return t.dragStart(s)}},nativeOn:{focus:function(){return!r.disabled&&t.focus(s)},blur:function(){return t.blur()}}},[t.renderSlot("dot",r,null),t.renderSlot("tooltip",r,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return F((this.isHorizontal?this.height:this.width)||qt)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=bt(t,2),r=e[0],s=e[1],i=this.width?F(this.width):this.isHorizontal?"auto":F(qt),o=this.height?F(this.height):this.isHorizontal?F(qt):"auto";return{padding:this.contained?"".concat(s/2,"px ").concat(r/2,"px"):this.isHorizontal?"".concat(s/2,"px 0"):"0 ".concat(r/2,"px"),width:i,height:o}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,r){var s,i=bt(e,3),o=i[0],n=i[1],a=i[2];if(o>n){var l=[n,o];o=l[0],n=l[1]}var c=t.isHorizontal?"width":"height";return{start:o,end:n,index:r,style:$t($t((s={},Ot(s,t.isHorizontal?"height":"width","100%"),Ot(s,t.isHorizontal?"top":"left",0),Ot(s,t.mainDirection,"".concat(o,"%")),Ot(s,c,"".concat(n-o,"%")),Ot(s,"transitionProperty","".concat(c,",").concat(t.mainDirection)),Ot(s,"transitionDuration","".concat(t.animateTime,"s")),s),t.processStyle),a)}}))}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],r=bt(e,2),s=r[0],i=r[1];return t=this.isHorizontal?Ot({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),"-WebkitTransform":"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):Ot({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),"-WebkitTransform":"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),$t({width:"".concat(s,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,r){return $t({pos:e,index:r,value:t.control.dotsValue[r],focus:t.states.has(Yt.Focus)&&t.focusDotIndex===r,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[r]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(Yt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var t=this;return this.isObjectArrayData(this.data)?this.data.map((function(e){return e[t.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var t=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(e){var r={label:e};return t.data.some((function(s){return s[t.dataValue]===e&&(r.label=s[t.dataLabel],!0)})),r}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var t=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(e){var r=""+e;return t.data.some((function(s){return s[t.dataValue]===e&&(r=s[t.dataLabel],!0)})),r};if(this.isObjectData(this.data)){var e=this.data;return function(t){return e[t]}}}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,r){return e!==t[r]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),r}(h.a);return l([p("change",{default:0})],t.prototype,"value",void 0),l([f({type:Boolean,default:!1})],t.prototype,"silent",void 0),l([f({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),l([f({type:[Number,String]})],t.prototype,"width",void 0),l([f({type:[Number,String]})],t.prototype,"height",void 0),l([f({default:14})],t.prototype,"dotSize",void 0),l([f({default:!1})],t.prototype,"contained",void 0),l([f({type:Number,default:0})],t.prototype,"min",void 0),l([f({type:Number,default:100})],t.prototype,"max",void 0),l([f({type:Number,default:1})],t.prototype,"interval",void 0),l([f({type:Boolean,default:!1})],t.prototype,"disabled",void 0),l([f({type:Boolean,default:!0})],t.prototype,"clickable",void 0),l([f({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),l([f({type:Number,default:.5})],t.prototype,"duration",void 0),l([f({type:[Object,Array]})],t.prototype,"data",void 0),l([f({type:String,default:"value"})],t.prototype,"dataValue",void 0),l([f({type:String,default:"label"})],t.prototype,"dataLabel",void 0),l([f({type:Boolean,default:!1})],t.prototype,"lazy",void 0),l([f({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),l([f({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),l([f({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),l([f({type:Boolean,default:!0})],t.prototype,"useKeyboard",void 0),l([f(Function)],t.prototype,"keydownHook",void 0),l([f({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),l([f({type:Boolean,default:!1})],t.prototype,"fixed",void 0),l([f({type:Boolean,default:!0})],t.prototype,"order",void 0),l([f(Number)],t.prototype,"minRange",void 0),l([f(Number)],t.prototype,"maxRange",void 0),l([f({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),l([f({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),l([f({type:[Number]})],t.prototype,"zoom",void 0),l([f(Boolean)],t.prototype,"included",void 0),l([f(Boolean)],t.prototype,"adsorb",void 0),l([f(Boolean)],t.prototype,"hideLabel",void 0),l([f()],t.prototype,"dotOptions",void 0),l([f()],t.prototype,"dotAttrs",void 0),l([f()],t.prototype,"railStyle",void 0),l([f()],t.prototype,"processStyle",void 0),l([f()],t.prototype,"dotStyle",void 0),l([f()],t.prototype,"tooltipStyle",void 0),l([f()],t.prototype,"stepStyle",void 0),l([f()],t.prototype,"stepActiveStyle",void 0),l([f()],t.prototype,"labelStyle",void 0),l([f()],t.prototype,"labelActiveStyle",void 0),l([m("value")],t.prototype,"onValueChanged",null),t=l([d()({name:"VueSlider",data:function(){return{control:null}},components:{VueSliderDot:M,VueSliderMark:B}})],t),t}(),Xt=Ut;Xt.VueSliderMark=B,Xt.VueSliderDot=M;var Gt=Xt;e["default"]=Gt}})["default"]}))},9274:function(e){"use strict";e.exports=t},9306:function(t,e,r){"use strict";var s=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(s(t))return t;throw new o(i(t)+" is not a function")}},7080:function(t,e,r){"use strict";var s=r(4402).has;t.exports=function(t){return s(t),t}},679:function(t,e,r){"use strict";var s=r(1625),i=TypeError;t.exports=function(t,e){if(s(e,t))return t;throw new i("Incorrect invocation")}},8551:function(t,e,r){"use strict";var s=r(34),i=String,o=TypeError;t.exports=function(t){if(s(t))return t;throw new o(i(t)+" is not an object")}},9617:function(t,e,r){"use strict";var s=r(5397),i=r(5610),o=r(6198),n=function(t){return function(e,r,n){var a=s(e),l=o(a);if(0===l)return!t&&-1;var c,h=i(n,l);if(t&&r!==r){while(l>h)if(c=a[h++],c!==c)return!0}else for(;l>h;h++)if((t||h in a)&&a[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:n(!0),indexOf:n(!1)}},4527:function(t,e,r){"use strict";var s=r(3724),i=r(4376),o=TypeError,n=Object.getOwnPropertyDescriptor,a=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!n(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},6319:function(t,e,r){"use strict";var s=r(8551),i=r(9539);t.exports=function(t,e,r,o){try{return o?e(s(r)[0],r[1]):e(r)}catch(n){i(t,"throw",n)}}},2195:function(t,e,r){"use strict";var s=r(9504),i=s({}.toString),o=s("".slice);t.exports=function(t){return o(i(t),8,-1)}},6955:function(t,e,r){"use strict";var s=r(2140),i=r(4901),o=r(2195),n=r(8227),a=n("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),h=function(t,e){try{return t[e]}catch(r){}};t.exports=s?o:function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=h(e=l(t),a))?r:c?o(e):"Object"===(s=o(e))&&i(e.callee)?"Arguments":s}},7740:function(t,e,r){"use strict";var s=r(9297),i=r(5031),o=r(7347),n=r(4913);t.exports=function(t,e,r){for(var a=i(e),l=n.f,c=o.f,h=0;h<a.length;h++){var u=a[h];s(t,u)||r&&s(r,u)||l(t,u,c(e,u))}}},2211:function(t,e,r){"use strict";var s=r(9039);t.exports=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,r){"use strict";var s=r(3724),i=r(4913),o=r(6980);t.exports=s?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,r){"use strict";var s=r(3724),i=r(4913),o=r(6980);t.exports=function(t,e,r){s?i.f(t,e,o(0,r)):t[e]=r}},2106:function(t,e,r){"use strict";var s=r(283),i=r(4913);t.exports=function(t,e,r){return r.get&&s(r.get,e,{getter:!0}),r.set&&s(r.set,e,{setter:!0}),i.f(t,e,r)}},6840:function(t,e,r){"use strict";var s=r(4901),i=r(4913),o=r(283),n=r(9433);t.exports=function(t,e,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(s(r)&&o(r,c,a),a.global)l?t[e]=r:n(e,r);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(h){}l?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:function(t,e,r){"use strict";var s=r(6840);t.exports=function(t,e,r){for(var i in e)s(t,i,e[i],r);return t}},9433:function(t,e,r){"use strict";var s=r(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(s,t,{value:e,configurable:!0,writable:!0})}catch(r){s[t]=e}return e}},3724:function(t,e,r){"use strict";var s=r(9039);t.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,r){"use strict";var s=r(4576),i=r(34),o=s.document,n=i(o)&&i(o.createElement);t.exports=function(t){return n?o.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,r){"use strict";var s=r(4576),i=s.navigator,o=i&&i.userAgent;t.exports=o?String(o):""},9519:function(t,e,r){"use strict";var s,i,o=r(4576),n=r(2839),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,h=c&&c.v8;h&&(s=h.split("."),i=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&n&&(s=n.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=n.match(/Chrome\/(\d+)/),s&&(i=+s[1]))),t.exports=i},6518:function(t,e,r){"use strict";var s=r(4576),i=r(7347).f,o=r(6699),n=r(6840),a=r(9433),l=r(7740),c=r(2796);t.exports=function(t,e){var r,h,u,d,p,f,m=t.target,g=t.global,y=t.stat;if(h=g?s:y?s[m]||a(m,{}):s[m]&&s[m].prototype,h)for(u in e){if(p=e[u],t.dontCallGetSet?(f=i(h,u),d=f&&f.value):d=h[u],r=c(g?u:m+(y?".":"#")+u,t.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),n(h,u,p,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},6080:function(t,e,r){"use strict";var s=r(7476),i=r(9306),o=r(616),n=s(s.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?n(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,r){"use strict";var s=r(9039);t.exports=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,r){"use strict";var s=r(616),i=Function.prototype.call;t.exports=s?i.bind(i):function(){return i.apply(i,arguments)}},350:function(t,e,r){"use strict";var s=r(3724),i=r(9297),o=Function.prototype,n=s&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!s||s&&n(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},6706:function(t,e,r){"use strict";var s=r(9504),i=r(9306);t.exports=function(t,e,r){try{return s(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(o){}}},7476:function(t,e,r){"use strict";var s=r(2195),i=r(9504);t.exports=function(t){if("Function"===s(t))return i(t)}},9504:function(t,e,r){"use strict";var s=r(616),i=Function.prototype,o=i.call,n=s&&i.bind.bind(o,o);t.exports=s?n:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,r){"use strict";var s=r(4576),i=r(4901),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(s[t]):s[t]&&s[t][e]}},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,r){"use strict";var s=r(6955),i=r(5966),o=r(4117),n=r(6269),a=r(8227),l=a("iterator");t.exports=function(t){if(!o(t))return i(t,l)||i(t,"@@iterator")||n[s(t)]}},81:function(t,e,r){"use strict";var s=r(9565),i=r(9306),o=r(8551),n=r(6823),a=r(851),l=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(i(r))return o(s(r,t));throw new l(n(t)+" is not iterable")}},5966:function(t,e,r){"use strict";var s=r(9306),i=r(4117);t.exports=function(t,e){var r=t[e];return i(r)?void 0:s(r)}},3789:function(t,e,r){"use strict";var s=r(9306),i=r(8551),o=r(9565),n=r(1291),a=r(1767),l="Invalid size",c=RangeError,h=TypeError,u=Math.max,d=function(t,e){this.set=t,this.size=u(e,0),this.has=s(t.has),this.keys=s(t.keys)};d.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!==e)throw new h(l);var r=n(e);if(r<0)throw new c(l);return new d(t,r)}},4576:function(t,e,r){"use strict";var s=function(t){return t&&t.Math===Math&&t};t.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,r){"use strict";var s=r(9504),i=r(8981),o=s({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},421:function(t){"use strict";t.exports={}},397:function(t,e,r){"use strict";var s=r(7751);t.exports=s("document","documentElement")},5917:function(t,e,r){"use strict";var s=r(3724),i=r(9039),o=r(4055);t.exports=!s&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,r){"use strict";var s=r(9504),i=r(9039),o=r(2195),n=Object,a=s("".split);t.exports=i((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):n(t)}:n},3706:function(t,e,r){"use strict";var s=r(9504),i=r(4901),o=r(7629),n=s(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return n(t)}),t.exports=o.inspectSource},1181:function(t,e,r){"use strict";var s,i,o,n=r(8622),a=r(4576),l=r(34),c=r(6699),h=r(9297),u=r(7629),d=r(6119),p=r(421),f="Object already initialized",m=a.TypeError,g=a.WeakMap,y=function(t){return o(t)?i(t):s(t,{})},v=function(t){return function(e){var r;if(!l(e)||(r=i(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}};if(n||u.state){var w=u.state||(u.state=new g);w.get=w.get,w.has=w.has,w.set=w.set,s=function(t,e){if(w.has(t))throw new m(f);return e.facade=t,w.set(t,e),e},i=function(t){return w.get(t)||{}},o=function(t){return w.has(t)}}else{var k=d("state");p[k]=!0,s=function(t,e){if(h(t,k))throw new m(f);return e.facade=t,c(t,k,e),e},i=function(t){return h(t,k)?t[k]:{}},o=function(t){return h(t,k)}}t.exports={set:s,get:i,has:o,enforce:y,getterFor:v}},4209:function(t,e,r){"use strict";var s=r(8227),i=r(6269),o=s("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||n[o]===t)}},4376:function(t,e,r){"use strict";var s=r(2195);t.exports=Array.isArray||function(t){return"Array"===s(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,r){"use strict";var s=r(9039),i=r(4901),o=/#|\.prototype\./,n=function(t,e){var r=l[a(t)];return r===h||r!==c&&(i(e)?s(e):!!e)},a=n.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=n.data={},c=n.NATIVE="N",h=n.POLYFILL="P";t.exports=n},4117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},34:function(t,e,r){"use strict";var s=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:s(t)}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,r){"use strict";var s=r(7751),i=r(4901),o=r(1625),n=r(7040),a=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=s("Symbol");return i(e)&&o(e.prototype,a(t))}},507:function(t,e,r){"use strict";var s=r(9565);t.exports=function(t,e,r){var i,o,n=r?t:t.iterator,a=t.next;while(!(i=s(a,n)).done)if(o=e(i.value),void 0!==o)return o}},2652:function(t,e,r){"use strict";var s=r(6080),i=r(9565),o=r(8551),n=r(6823),a=r(4209),l=r(6198),c=r(1625),h=r(81),u=r(851),d=r(9539),p=TypeError,f=function(t,e){this.stopped=t,this.result=e},m=f.prototype;t.exports=function(t,e,r){var g,y,v,w,k,b,x,_=r&&r.that,S=!(!r||!r.AS_ENTRIES),T=!(!r||!r.IS_RECORD),$=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),M=s(e,_),C=function(t){return g&&d(g,"normal",t),new f(!0,t)},E=function(t){return S?(o(t),O?M(t[0],t[1],C):M(t[0],t[1])):O?M(t,C):M(t)};if(T)g=t.iterator;else if($)g=t;else{if(y=u(t),!y)throw new p(n(t)+" is not iterable");if(a(y)){for(v=0,w=l(t);w>v;v++)if(k=E(t[v]),k&&c(m,k))return k;return new f(!1)}g=h(t,y)}b=T?t.next:g.next;while(!(x=i(b,g)).done){try{k=E(x.value)}catch(D){d(g,"throw",D)}if("object"==typeof k&&k&&c(m,k))return k}return new f(!1)}},9539:function(t,e,r){"use strict";var s=r(9565),i=r(8551),o=r(5966);t.exports=function(t,e,r){var n,a;i(t);try{if(n=o(t,"return"),!n){if("throw"===e)throw r;return r}n=s(n,t)}catch(l){a=!0,n=l}if("throw"===e)throw r;if(a)throw n;return i(n),r}},9462:function(t,e,r){"use strict";var s=r(9565),i=r(2360),o=r(6699),n=r(6279),a=r(8227),l=r(1181),c=r(5966),h=r(7657).IteratorPrototype,u=r(2529),d=r(9539),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",g=l.set,y=function(t){var e=l.getterFor(t?m:f);return n(i(h),{next:function(){var r=e(this);if(t)return r.nextHandler();try{var s=r.done?void 0:r.nextHandler();return u(s,r.done)}catch(i){throw r.done=!0,i}},return:function(){var r=e(this),i=r.iterator;if(r.done=!0,t){var o=c(i,"return");return o?s(o,i):u(void 0,!0)}if(r.inner)try{d(r.inner.iterator,"normal")}catch(n){return d(i,"throw",n)}return i&&d(i,"normal"),u(void 0,!0)}})},v=y(!0),w=y(!1);o(w,p,"Iterator Helper"),t.exports=function(t,e){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=e?m:f,s.nextHandler=t,s.counter=0,s.done=!1,g(this,s)};return r.prototype=e?v:w,r}},713:function(t,e,r){"use strict";var s=r(9565),i=r(9306),o=r(8551),n=r(1767),a=r(9462),l=r(6319),c=a((function(){var t=this.iterator,e=o(s(this.next,t)),r=this.done=!!e.done;if(!r)return l(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return o(this),i(t),new c(n(this),{mapper:t})}},7657:function(t,e,r){"use strict";var s,i,o,n=r(9039),a=r(4901),l=r(34),c=r(2360),h=r(2787),u=r(6840),d=r(8227),p=r(6395),f=d("iterator"),m=!1;[].keys&&(o=[].keys(),"next"in o?(i=h(h(o)),i!==Object.prototype&&(s=i)):m=!0);var g=!l(s)||n((function(){var t={};return s[f].call(t)!==t}));g?s={}:p&&(s=c(s)),a(s[f])||u(s,f,(function(){return this})),t.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,r){"use strict";var s=r(8014);t.exports=function(t){return s(t.length)}},283:function(t,e,r){"use strict";var s=r(9504),i=r(9039),o=r(4901),n=r(9297),a=r(3724),l=r(350).CONFIGURABLE,c=r(3706),h=r(1181),u=h.enforce,d=h.get,p=String,f=Object.defineProperty,m=s("".slice),g=s("".replace),y=s([].join),v=a&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),w=String(String).split("String"),k=t.exports=function(t,e,r){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var s=u(t);return n(s,"source")||(s.source=y(w,"string"==typeof e?e:"")),t};Function.prototype.toString=k((function(){return o(this)&&d(this).source||c(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var s=+t;return(s>0?r:e)(s)}},2360:function(t,e,r){"use strict";var s,i=r(8551),o=r(6801),n=r(8727),a=r(421),l=r(397),c=r(4055),h=r(6119),u=">",d="<",p="prototype",f="script",m=h("IE_PROTO"),g=function(){},y=function(t){return d+f+u+t+d+"/"+f+u},v=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){var t,e=c("iframe"),r="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},k=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}k="undefined"!=typeof document?document.domain&&s?v(s):w():v(s);var t=n.length;while(t--)delete k[p][n[t]];return k()};a[m]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(g[p]=i(t),r=new g,g[p]=null,r[m]=t):r=k(),void 0===e?r:o.f(r,e)}},6801:function(t,e,r){"use strict";var s=r(3724),i=r(8686),o=r(4913),n=r(8551),a=r(5397),l=r(1072);e.f=s&&!i?Object.defineProperties:function(t,e){n(t);var r,s=a(e),i=l(e),c=i.length,h=0;while(c>h)o.f(t,r=i[h++],s[r]);return t}},4913:function(t,e,r){"use strict";var s=r(3724),i=r(5917),o=r(8686),n=r(8551),a=r(6969),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",p="writable";e.f=s?o?function(t,e,r){if(n(t),e=a(e),n(r),"function"===typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var s=h(t,e);s&&s[p]&&(t[e]=r.value,r={configurable:d in r?r[d]:s[d],enumerable:u in r?r[u]:s[u],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(n(t),e=a(e),n(r),i)try{return c(t,e,r)}catch(s){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:function(t,e,r){"use strict";var s=r(3724),i=r(9565),o=r(8773),n=r(6980),a=r(5397),l=r(6969),c=r(9297),h=r(5917),u=Object.getOwnPropertyDescriptor;e.f=s?u:function(t,e){if(t=a(t),e=l(e),h)try{return u(t,e)}catch(r){}if(c(t,e))return n(!i(o.f,t,e),t[e])}},8480:function(t,e,r){"use strict";var s=r(1828),i=r(8727),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return s(t,o)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,r){"use strict";var s=r(9297),i=r(4901),o=r(8981),n=r(6119),a=r(2211),l=n("IE_PROTO"),c=Object,h=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(s(e,l))return e[l];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof c?h:null}},1625:function(t,e,r){"use strict";var s=r(9504);t.exports=s({}.isPrototypeOf)},1828:function(t,e,r){"use strict";var s=r(9504),i=r(9297),o=r(5397),n=r(9617).indexOf,a=r(421),l=s([].push);t.exports=function(t,e){var r,s=o(t),c=0,h=[];for(r in s)!i(a,r)&&i(s,r)&&l(h,r);while(e.length>c)i(s,r=e[c++])&&(~n(h,r)||l(h,r));return h}},1072:function(t,e,r){"use strict";var s=r(1828),i=r(8727);t.exports=Object.keys||function(t){return s(t,i)}},8773:function(t,e){"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!r.call({1:2},1);e.f=i?function(t){var e=s(this,t);return!!e&&e.enumerable}:r},4270:function(t,e,r){"use strict";var s=r(9565),i=r(4901),o=r(34),n=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&i(r=t.toString)&&!o(a=s(r,t)))return a;if(i(r=t.valueOf)&&!o(a=s(r,t)))return a;if("string"!==e&&i(r=t.toString)&&!o(a=s(r,t)))return a;throw new n("Can't convert object to primitive value")}},5031:function(t,e,r){"use strict";var s=r(7751),i=r(9504),o=r(8480),n=r(3717),a=r(8551),l=i([].concat);t.exports=s("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=n.f;return r?l(e,r(t)):e}},7750:function(t,e,r){"use strict";var s=r(4117),i=TypeError;t.exports=function(t){if(s(t))throw new i("Can't call method on "+t);return t}},9286:function(t,e,r){"use strict";var s=r(4402),i=r(8469),o=s.Set,n=s.add;t.exports=function(t){var e=new o;return i(t,(function(t){n(e,t)})),e}},3440:function(t,e,r){"use strict";var s=r(7080),i=r(4402),o=r(9286),n=r(5170),a=r(3789),l=r(8469),c=r(507),h=i.has,u=i.remove;t.exports=function(t){var e=s(this),r=a(t),i=o(e);return n(e)<=r.size?l(e,(function(t){r.includes(t)&&u(i,t)})):c(r.getIterator(),(function(t){h(e,t)&&u(i,t)})),i}},4402:function(t,e,r){"use strict";var s=r(9504),i=Set.prototype;t.exports={Set:Set,add:s(i.add),has:s(i.has),remove:s(i["delete"]),proto:i}},8750:function(t,e,r){"use strict";var s=r(7080),i=r(4402),o=r(5170),n=r(3789),a=r(8469),l=r(507),c=i.Set,h=i.add,u=i.has;t.exports=function(t){var e=s(this),r=n(t),i=new c;return o(e)>r.size?l(r.getIterator(),(function(t){u(e,t)&&h(i,t)})):a(e,(function(t){r.includes(t)&&h(i,t)})),i}},4449:function(t,e,r){"use strict";var s=r(7080),i=r(4402).has,o=r(5170),n=r(3789),a=r(8469),l=r(507),c=r(9539);t.exports=function(t){var e=s(this),r=n(t);if(o(e)<=r.size)return!1!==a(e,(function(t){if(r.includes(t))return!1}),!0);var h=r.getIterator();return!1!==l(h,(function(t){if(i(e,t))return c(h,"normal",!1)}))}},3838:function(t,e,r){"use strict";var s=r(7080),i=r(5170),o=r(8469),n=r(3789);t.exports=function(t){var e=s(this),r=n(t);return!(i(e)>r.size)&&!1!==o(e,(function(t){if(!r.includes(t))return!1}),!0)}},8527:function(t,e,r){"use strict";var s=r(7080),i=r(4402).has,o=r(5170),n=r(3789),a=r(507),l=r(9539);t.exports=function(t){var e=s(this),r=n(t);if(o(e)<r.size)return!1;var c=r.getIterator();return!1!==a(c,(function(t){if(!i(e,t))return l(c,"normal",!1)}))}},8469:function(t,e,r){"use strict";var s=r(9504),i=r(507),o=r(4402),n=o.Set,a=o.proto,l=s(a.forEach),c=s(a.keys),h=c(new n).next;t.exports=function(t,e,r){return r?i({iterator:c(t),next:h},e):l(t,e)}},4916:function(t,e,r){"use strict";var s=r(7751),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=s("Set");try{(new e)[t](i(0));try{return(new e)[t](i(-1)),!1}catch(r){return!0}}catch(o){return!1}}},5170:function(t,e,r){"use strict";var s=r(6706),i=r(4402);t.exports=s(i.proto,"size","get")||function(t){return t.size}},3650:function(t,e,r){"use strict";var s=r(7080),i=r(4402),o=r(9286),n=r(3789),a=r(507),l=i.add,c=i.has,h=i.remove;t.exports=function(t){var e=s(this),r=n(t).getIterator(),i=o(e);return a(r,(function(t){c(e,t)?h(i,t):l(i,t)})),i}},4204:function(t,e,r){"use strict";var s=r(7080),i=r(4402).add,o=r(9286),n=r(3789),a=r(507);t.exports=function(t){var e=s(this),r=n(t).getIterator(),l=o(e);return a(r,(function(t){i(l,t)})),l}},6119:function(t,e,r){"use strict";var s=r(5745),i=r(3392),o=s("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},7629:function(t,e,r){"use strict";var s=r(6395),i=r(4576),o=r(9433),n="__core-js_shared__",a=t.exports=i[n]||o(n,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,r){"use strict";var s=r(7629);t.exports=function(t,e){return s[t]||(s[t]=e||{})}},4495:function(t,e,r){"use strict";var s=r(9519),i=r(9039),o=r(4576),n=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},5610:function(t,e,r){"use strict";var s=r(1291),i=Math.max,o=Math.min;t.exports=function(t,e){var r=s(t);return r<0?i(r+e,0):o(r,e)}},5397:function(t,e,r){"use strict";var s=r(7055),i=r(7750);t.exports=function(t){return s(i(t))}},1291:function(t,e,r){"use strict";var s=r(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:s(e)}},8014:function(t,e,r){"use strict";var s=r(1291),i=Math.min;t.exports=function(t){var e=s(t);return e>0?i(e,9007199254740991):0}},8981:function(t,e,r){"use strict";var s=r(7750),i=Object;t.exports=function(t){return i(s(t))}},2777:function(t,e,r){"use strict";var s=r(9565),i=r(34),o=r(757),n=r(5966),a=r(4270),l=r(8227),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,l=n(t,h);if(l){if(void 0===e&&(e="default"),r=s(l,t,e),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,r){"use strict";var s=r(2777),i=r(757);t.exports=function(t){var e=s(t,"string");return i(e)?e:e+""}},2140:function(t,e,r){"use strict";var s=r(8227),i=s("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},3392:function(t,e,r){"use strict";var s=r(9504),i=0,o=Math.random(),n=s(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++i+o,36)}},7040:function(t,e,r){"use strict";var s=r(4495);t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,r){"use strict";var s=r(3724),i=r(9039);t.exports=s&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(t,e,r){"use strict";var s=r(4576),i=r(4901),o=s.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8227:function(t,e,r){"use strict";var s=r(4576),i=r(5745),o=r(9297),n=r(3392),a=r(4495),l=r(7040),c=s.Symbol,h=i("wks"),u=l?c["for"]||c:c&&c.withoutSetter||n;t.exports=function(t){return o(h,t)||(h[t]=a&&o(c,t)?c[t]:u("Symbol."+t)),h[t]}},4114:function(t,e,r){"use strict";var s=r(6518),i=r(8981),o=r(6198),n=r(4527),a=r(6837),l=r(9039),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),h=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},u=c||!h();s({target:"Array",proto:!0,arity:1,forced:u},{push:function(t){var e=i(this),r=o(e),s=arguments.length;a(r+s);for(var l=0;l<s;l++)e[r]=arguments[l],r++;return n(e,r),r}})},8111:function(t,e,r){"use strict";var s=r(6518),i=r(4576),o=r(679),n=r(8551),a=r(4901),l=r(2787),c=r(2106),h=r(4659),u=r(9039),d=r(9297),p=r(8227),f=r(7657).IteratorPrototype,m=r(3724),g=r(6395),y="constructor",v="Iterator",w=p("toStringTag"),k=TypeError,b=i[v],x=g||!a(b)||b.prototype!==f||!u((function(){b({})})),_=function(){if(o(this,f),l(this)===f)throw new k("Abstract class Iterator not directly constructable")},S=function(t,e){m?c(f,t,{configurable:!0,get:function(){return e},set:function(e){if(n(this),this===f)throw new k("You can't redefine this property");d(this,t)?this[t]=e:h(this,t,e)}}):f[t]=e};d(f,w)||S(w,v),!x&&d(f,y)&&f[y]!==Object||S(y,_),_.prototype=f,s({global:!0,constructor:!0,forced:x},{Iterator:_})},2489:function(t,e,r){"use strict";var s=r(6518),i=r(9565),o=r(9306),n=r(8551),a=r(1767),l=r(9462),c=r(6319),h=r(6395),u=l((function(){var t,e,r,s=this.iterator,o=this.predicate,a=this.next;while(1){if(t=n(i(a,s)),e=this.done=!!t.done,e)return;if(r=t.value,c(s,o,[r,this.counter++],!0))return r}}));s({target:"Iterator",proto:!0,real:!0,forced:h},{filter:function(t){return n(this),o(t),new u(a(this),{predicate:t})}})},7588:function(t,e,r){"use strict";var s=r(6518),i=r(2652),o=r(9306),n=r(8551),a=r(1767);s({target:"Iterator",proto:!0,real:!0},{forEach:function(t){n(this),o(t);var e=a(this),r=0;i(e,(function(e){t(e,r++)}),{IS_RECORD:!0})}})},1701:function(t,e,r){"use strict";var s=r(6518),i=r(713),o=r(6395);s({target:"Iterator",proto:!0,real:!0,forced:o},{map:i})},8237:function(t,e,r){"use strict";var s=r(6518),i=r(2652),o=r(9306),n=r(8551),a=r(1767),l=TypeError;s({target:"Iterator",proto:!0,real:!0},{reduce:function(t){n(this),o(t);var e=a(this),r=arguments.length<2,s=r?void 0:arguments[1],c=0;if(i(e,(function(e){r?(r=!1,s=e):s=t(s,e,c),c++}),{IS_RECORD:!0}),r)throw new l("Reduce of empty iterator with no initial value");return s}})},7642:function(t,e,r){"use strict";var s=r(6518),i=r(3440),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("difference")},{difference:i})},8004:function(t,e,r){"use strict";var s=r(6518),i=r(9039),o=r(8750),n=r(4916),a=!n("intersection")||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));s({target:"Set",proto:!0,real:!0,forced:a},{intersection:o})},3853:function(t,e,r){"use strict";var s=r(6518),i=r(4449),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:i})},5876:function(t,e,r){"use strict";var s=r(6518),i=r(3838),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:i})},2475:function(t,e,r){"use strict";var s=r(6518),i=r(8527),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:i})},5024:function(t,e,r){"use strict";var s=r(6518),i=r(3650),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:i})},1698:function(t,e,r){"use strict";var s=r(6518),i=r(4204),o=r(4916);s({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:i})},8992:function(t,e,r){"use strict";r(8111)},4520:function(t,e,r){"use strict";r(2489)},3949:function(t,e,r){"use strict";r(7588)},1454:function(t,e,r){"use strict";r(1701)},8872:function(t,e,r){"use strict";r(8237)}},r={};function s(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t].call(o.exports,o,o.exports,s),o.exports}!function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.p=""}();var i={};return function(){"use strict";if(s.r(i),s.d(i,{default:function(){return Yr},ganttChart:function(){return Fr}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(s.p=e[1])}var r=function(){var t=this,e=t._self._c;return e("gantt-elastic",{attrs:{tasks:t.tasks,options:t.options,dynamicStyle:t.dynamicStyle},on:{"task-updated":function(e){return t.$emit("task-updated",e)},"gantt-task-updated":function(e){return t.$emit("gantt-task-updated",e)},"view-mode-changed":function(e){return t.$emit("view-mode-changed",e)},"gantt-view-mode-changed":function(e){return t.$emit("gantt-view-mode-changed",e)},"tasks-changed":function(e){return t.$emit("tasks-changed",e)},"options-changed":function(e){return t.$emit("options-changed",e)},"dynamic-style-changed":function(e){return t.$emit("dynamic-style-changed",e)},mounted:function(e){return t.$emit("mounted",e)}}},[t.components.header?e(t.components.header,{tag:"component",attrs:{slot:"header"},slot:"header"}):t._e(),t.components.footer?e(t.components.footer,{tag:"component",attrs:{slot:"footer"},slot:"footer"}):t._e()],1)},o=[],n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"gantt-elastic",staticStyle:{width:"100%"}},[1==t.isHeaderVisible?e("gantt-header",{attrs:{slot:"header"},slot:"header"}):t._e(),e("gantt-view-filter",{attrs:{slot:"header"},on:{"view-mode-changed":t.onViewModeChanged},slot:"header"}),t._t("header"),e("main-view",{ref:"mainView",on:{"task-updated":t.handleTaskUpdated}}),t._t("footer")],2)},a=[],l=(s(4114),s(7642),s(8004),s(3853),s(5876),s(2475),s(5024),s(1698),s(8992),s(4520),s(3949),s(1454),s(8872),s(4353)),c=s.n(l),h=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-view-filter"},[e("div",{staticClass:"view-toggle-group"},[e("button",{staticClass:"view-toggle-btn",class:{active:"day"===t.viewMode},on:{click:function(e){return t.changeViewMode("day")}}},[e("span",{staticClass:"view-icon"},[t._v("📅")]),e("span",{staticClass:"view-label"},[t._v("Day")])]),e("button",{staticClass:"view-toggle-btn",class:{active:"week"===t.viewMode},on:{click:function(e){return t.changeViewMode("week")}}},[e("span",{staticClass:"view-icon"},[t._v("📊")]),e("span",{staticClass:"view-label"},[t._v("Week")])]),e("button",{staticClass:"view-toggle-btn",class:{active:"month"===t.viewMode},on:{click:function(e){return t.changeViewMode("month")}}},[e("span",{staticClass:"view-icon"},[t._v("🗓️")]),e("span",{staticClass:"view-label"},[t._v("Month")])]),e("button",{staticClass:"view-toggle-btn",class:{active:"quarter"===t.viewMode},on:{click:function(e){return t.changeViewMode("quarter")}}},[e("span",{staticClass:"view-icon"},[t._v("📈")]),e("span",{staticClass:"view-label"},[t._v("Quarter")])])])])},u=[],d={name:"GanttViewFilter",data(){return{viewMode:"day"}},methods:{changeViewMode(t){this.viewMode=t,this.$emit("view-mode-changed",t)}}},p=d;function f(t,e,r,s,i,o,n,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),s&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),n?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var h=c.render;c.render=function(t,e){return l.call(e),h(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}var m=f(p,h,u,!1,null,"f4bb58fc",null),g=m.exports,y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__main-view",style:{...t.root.style["main-view"]}},[e("div",{staticClass:"gantt-elastic__main-container-wrapper",style:{...t.root.style["main-container-wrapper"],height:t.root.state.options.height+"px"}},[e("div",{ref:"mainView",staticClass:"gantt-elastic__main-container",style:{...t.root.style["main-container"],width:t.root.state.options.clientWidth+"px",height:t.root.state.options.height+"px"}},[e("div",{staticClass:"gantt-elastic__container",style:{...t.root.style["container"]},on:{mousemove:t.mouseMove,mouseup:t.mouseUp}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskList",staticClass:"gantt-elastic__task-list-container",style:{...t.root.style["task-list-container"],width:t.root.state.options.taskList.finalWidth+"px",height:t.root.state.options.height+"px"}},[e("task-list")],1),e("div",{ref:"chartContainer",staticClass:"gantt-elastic__main-view-container",style:{...t.root.style["main-view-container"]},on:{mousedown:t.chartMouseDown,touchstart:t.chartMouseDown,mouseup:t.chartMouseUp,touchend:t.chartMouseUp,mousemove:function(e){return e.preventDefault(),t.chartMouseMove.apply(null,arguments)},touchmove:function(e){return e.preventDefault(),t.chartMouseMove.apply(null,arguments)},wheel:function(e){return e.preventDefault(),t.chartWheel.apply(null,arguments)}}},[e("chart",{on:{"task-updated":t.handleTaskUpdated}})],1)])]),e("div",{ref:"chartScrollContainerVertical",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--vertical",style:{...t.root.style["chart-scroll-container"],...t.root.style["chart-scroll-container--vertical"],...t.verticalStyle},on:{scroll:t.onVerticalScroll}},[e("div",{staticClass:"gantt-elastic__chart-scroll--vertical",style:{width:"1px",height:t.root.state.options.allVisibleTasksHeight+"px"}})])]),e("div",{ref:"chartScrollContainerHorizontal",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--horizontal",style:{...t.root.style["chart-scroll-container"],...t.root.style["chart-scroll-container--horizontal"],marginLeft:t.getMarginLeft},on:{scroll:t.onHorizontalScroll}},[e("div",{staticClass:"gantt-elastic__chart-scroll--horizontal",style:{height:"1px",width:t.root.state.options.width+"px"}})])])},v=[],w=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskListWrapper",staticClass:"gantt-elastic__task-list-wrapper",style:{...t.root.style["task-list-wrapper"],width:"100%",height:"100%"}},[e("div",{ref:"taskList",staticClass:"gantt-elastic__task-list",style:{...t.root.style["task-list"]}},[e("task-list-header"),e("div",{ref:"taskListItems",staticClass:"gantt-elastic__task-list-items",style:{...t.root.style["task-list-items"],height:t.root.state.options.rowsHeight+"px"}},t._l(t.root.visibleTasks,(function(t){return e("task-list-item",{key:t.id,attrs:{task:t}})})),1)],1)])},k=[],b=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-header",style:t.headerStyle},t._l(t.root.getTaskListColumns,(function(r){return e("div",{key:r._id,staticClass:"gantt-elastic__task-list-header-column",style:t.columnStyle(r)},[r.expander?e("task-list-expander",{attrs:{tasks:t.collapsible,options:t.root.state.options.taskList.expander}}):t._e(),e("div",{staticClass:"gantt-elastic__task-list-header-label",style:t.headerLabelStyle(r),attrs:{column:r},on:{mouseup:t.resizerMouseUp}},[t._v(" "+t._s(r.label)+" ")]),e("div",{staticClass:"gantt-elastic__task-list-header-resizer-wrapper",style:t.resizerWrapperStyle(r),attrs:{column:r},on:{mousedown:function(e){return t.resizerMouseDown(e,r)}}},[e("div",{staticClass:"gantt-elastic__task-list-header-resizer",style:t.resizerStyle(r)},t._l(3,(function(s){return e("div",{key:s,staticClass:"gantt-elastic__task-list-header-resizer-dot",style:t.resizerDotStyle(r)})})),0)])],1)})),0)},x=[],_=function(){var t=this,e=t._self._c;return e("div",{class:t.getClassPrefix()+"-wrapper",style:{...t.root.style[t.getClassPrefix(!1)+"-wrapper"],...t.style}},[t.allChildren.length?e("svg",{class:t.getClassPrefix()+"-content",style:{...t.root.style[t.getClassPrefix(!1)+"-content"]},attrs:{width:t.options.size,height:t.options.size,viewBox:"0 0 16 16"},on:{click:t.toggle}},[e("path",{class:t.getClassPrefix()+"-arrow",style:{...t.root.style[t.getClassPrefix(!1)+"-arrow"]},attrs:{d:t.collapsed?"M6 4 L10 8 L6 12":"M4 6 L8 10 L12 6",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e()])},S=[],T={name:"Expander",inject:["root"],props:["tasks","options","type"],data(){const t=.5;return{border:t,borderStyle:{"stroke-width":t},lineOffset:5}},computed:{style(){if("taskList"!==this.type)return{};const t=this.root.state.options.taskList.expander.margin,e=this.tasks[0].parents.length*this.root.state.options.taskList.expander.padding;return{"padding-left":e+t+"px",margin:"auto 0"}},allChildren(){const t=[];return this.tasks.forEach((e=>{e.allChildren.forEach((e=>{t.push(e)}))})),t},collapsed(){if(0===this.tasks.length)return!1;let t=0;for(let e=0,r=this.tasks.length;e<r;e++)this.tasks[e].collapsed&&t++;return t===this.tasks.length}},methods:{getClassPrefix(t=!0){return`${t?"gantt-elastic__":""}${this.options.type}-expander`},toggle(){if(0===this.tasks.length)return;const t=!this.collapsed;this.tasks.forEach((e=>{e.collapsed=t})),this.$forceUpdate(),this.root.$forceUpdate()}}},$=T,O=f($,_,S,!1,null,null,null),M=O.exports,C={name:"TaskListHeader",components:{TaskListExpander:M},inject:["root"],data(){return{resizer:{moving:!1,x:0}}},computed:{collapsible(){return this.root.state.tasks.filter((t=>t.allChildren.length>0))},headerStyle(){return{...this.root.style["task-list-header"],height:`${this.root.state.options.calendar.height}px`,marginBottom:`${this.root.state.options.calendar.gap}px`}}},methods:{columnStyle(t){return{...this.root.style["task-list-header-column"],...t.style["task-list-header-column"],width:`${t.finalWidth}px`}},headerLabelStyle(t){return{...this.root.style["task-list-header-label"],...t.style["task-list-header-label"]}},resizerWrapperStyle(t){return{...this.root.style["task-list-header-resizer-wrapper"],...t.style["task-list-header-resizer-wrapper"]}},resizerStyle(t){return{...this.root.style["task-list-header-resizer"],...t.style["task-list-header-resizer"]}},resizerDotStyle(t){return{...this.root.style["task-list-header-resizer-dot"],...t.style["task-list-header-resizer-dot"]}},resizerMouseDown(t,e){this.resizer.moving||(this.resizer.moving=e,this.resizer.x=t.clientX,this.resizer.initialWidth=e.width,this.root.$emit("taskList-column-width-change-start",this.resizer.moving))},resizerMouseMove(t){if(this.resizer.moving){const e=this.resizer.moving.width;this.resizer.moving.width=this.resizer.initialWidth+t.clientX-this.resizer.x,this.resizer.moving.width<this.root.state.options.taskList.minWidth&&(this.resizer.moving.width=this.root.state.options.taskList.minWidth),e!==this.resizer.moving.width&&this.root.$emit("taskList-column-width-change",this.resizer.moving)}},resizerMouseUp(){this.resizer.moving&&(this.root.$emit("taskList-column-width-change-stop",this.resizer.moving),this.resizer.moving=!1)}},created(){document.addEventListener("mouseup",this.resizerMouseUp),document.addEventListener("mousemove",this.resizerMouseMove),this.root.$on("main-view-mousemove",this.resizerMouseMove),this.root.$on("main-view-mouseup",this.resizerMouseUp)}},E=C,D=f(E,b,x,!1,null,null,null),P=D.exports,L=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-item",style:{...t.root.style["task-list-item"]}},t._l(t.columns,(function(r){return e("item-column",{key:r._id,attrs:{column:r,task:t.task}},[r.expander?e("task-list-expander",{attrs:{tasks:[t.task],options:t.root.state.options.taskList.expander,type:"taskList"}}):t._e()],1)})),1)},j=[],z=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-item-column",style:t.itemColumnStyle},[e("div",{staticClass:"gantt-elastic__task-list-item-value-wrapper",style:t.wrapperStyle},[t._t("default"),e("div",{staticClass:"gantt-elastic__task-list-item-value-container",style:t.containerStyle},[t.html?e("div",{staticClass:"gantt-elastic__task-list-item-value",style:t.valueStyle,on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[t.column.expander&&t.taskIcon?e("div",{staticClass:"gantt-elastic__task-list-item-icon",style:t.iconStyle},[e("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"}},[e("path",{attrs:{d:t.taskIcon,fill:t.iconColor,stroke:t.iconStroke,"stroke-width":"0.8"}})])]):t._e(),e("span",{staticClass:"gantt-elastic__task-list-item-text",domProps:{innerHTML:t._s(t.value)}})]):e("div",{staticClass:"gantt-elastic__task-list-item-value",style:t.valueStyle,on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[t.column.expander&&t.taskIcon?e("div",{staticClass:"gantt-elastic__task-list-item-icon",style:t.iconStyle},[e("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"}},[e("path",{attrs:{d:t.taskIcon,fill:t.iconColor,stroke:t.iconStroke,"stroke-width":"0.8"}})])]):t._e(),e("span",{staticClass:"gantt-elastic__task-list-item-text"},[t._v(t._s(t.value))])])])],2)])},A=[],R={name:"ItemColumn",inject:["root"],props:["column","task"],data(){return{}},methods:{emitEvent(t,e){"undefined"!==typeof this.column.events&&"function"===typeof this.column.events[t]&&this.column.events[t]({event:e,data:this.task,column:this.column}),this.root.$emit(`taskList-${this.task.type}-${t}`,{event:e,data:this.task,column:this.column})}},computed:{html(){return"undefined"!==typeof this.column.html&&!0===this.column.html},value(){return"function"===typeof this.column.value?this.column.value(this.task):this.task[this.column.value]},itemColumnStyle(){return{...this.root.style["task-list-item-column"],...this.column.style["task-list-item-column"],width:this.column.finalWidth+"px",height:this.column.height+"px"}},wrapperStyle(){return{...this.root.style["task-list-item-value-wrapper"],...this.column.style["task-list-item-value-wrapper"]}},containerStyle(){return{...this.root.style["task-list-item-value-container"],...this.column.style["task-list-item-value-container"]}},valueStyle(){return{...this.root.style["task-list-item-value"],...this.column.style["task-list-item-value"]}},taskIcon(){if(this.task.icon)return this.task.icon;const t={milestone:"M7 2 L12 7 L7 12 L2 7 Z",task:"M3 3 L11 3 L11 11 L3 11 Z",project:"M7 2 L12 7 L7 12 L2 7 Z",sprint:"M3 4 L11 4 L11 10 L3 10 Z",flag:"M3 3 L9 3 L9 7 L7 9 L5 7 L5 3 Z M3 3 L3 11 M5 3 L5 11",check:"M3 3 L11 3 L11 11 L3 11 Z M5 7 L7 9 L9 5",epic:"M7 2 L12 7 L7 12 L2 7 Z"};return t[this.task.type]||t["task"]},iconColor(){if(this.task.iconColor)return this.task.iconColor;const t={milestone:"#CD5C5C",task:"#3B82F6",project:"#8B5CF6",sprint:"#F59E0B",flag:"#10B981",check:"#3B82F6",epic:"#8B5CF6",story:"#86EFAC",subtask:"#3B82F6"};return t[this.task.type]||"#6B7280"},iconStroke(){return this.task.iconStroke?this.task.iconStroke:this.iconColor},iconStyle(){return{display:"flex",alignItems:"center",marginRight:"6px",flexShrink:0,width:"14px",height:"14px"}}}},H=R,I=f(H,z,A,!1,null,null,null),V=I.exports,W={name:"TaskListItem",components:{TaskListExpander:M,ItemColumn:V},inject:["root"],props:["task"],data(){return{}},computed:{columns(){return this.root.state.options.taskList.columns}}},B=W,F=f(B,L,j,!1,null,null,null),N=F.exports,Y={name:"TaskList",components:{TaskListHeader:P,TaskListItem:N},inject:["root"],data(){return{}},mounted(){this.root.state.refs.taskListWrapper=this.$refs.taskListWrapper,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.taskListItems=this.$refs.taskListItems}},q=Y,U=f(q,w,k,!1,null,null,null),X=U.exports,G=function(){var t=this,e=t._self._c;return e("div",{ref:"chart",staticClass:"gantt-elastic__chart",style:{...t.root.style["chart"]}},[e("div",{ref:"chartCalendarContainer",staticClass:"gantt-elastic__chart-calendar-container",style:{...t.root.style["chart-calendar-container"],height:t.root.state.options.calendar.height+"px","margin-bottom":t.root.state.options.calendar.gap+"px"}},[e("calendar")],1),e("div",{ref:"chartGraphContainer",staticClass:"gantt-elastic__chart-graph-container",style:{...t.root.style["chart-graph-container"],height:t.root.state.options.height-t.root.state.options.calendar.height+"px"}},[e("div",{style:{...t.root.style["chart-area"],width:t.root.state.options.width+"px",height:t.root.state.options.rowsHeight+"px"}},[e("div",{ref:"chartGraph",staticClass:"gantt-elastic__chart-graph",style:{...t.root.style["chart-graph"],height:"100%"}},[e("svg",{ref:"chartGraphSvg",staticClass:"gantt-elastic__chart-graph-svg",style:{...t.root.style["chart-graph-svg"]},attrs:{x:"0",y:"0",width:t.root.state.options.width+"px",height:t.root.state.options.allVisibleTasksHeight+"px",xmlns:"http://www.w3.org/2000/svg"}},[e("days-highlight"),e("grid"),e("dependency-lines",{attrs:{tasks:t.root.visibleTasks}}),t._l(t.root.visibleTasks,(function(r){return e("g",{key:r.id,staticClass:"gantt-elastic__chart-row-wrapper",style:{...t.root.style["chart-row-wrapper"]},attrs:{task:r}},[e(r.type,{tag:"component",attrs:{task:r},on:{"task-updated":t.handleTaskUpdated}})],1)}))],2)])])])])},Z=[],Q=function(){var t=this,e=t._self._c;return e("svg",{ref:"chart",staticClass:"gantt-elastic__grid-lines-wrapper",style:{...t.root.style["grid-lines-wrapper"]},attrs:{x:"0",y:"0",width:t.root.state.options.width,height:t.root.state.options.allVisibleTasksHeight,xmlns:"http://www.w3.org/2000/svg"}},[e("g",{staticClass:"gantt-elastic__grid-lines",style:{...t.root.style["grid-lines"]}},[t._l(t.horizontalLines,(function(r){return e("line",{key:r.key,staticClass:"gantt-elastic__grid-line-horizontal",style:{...t.root.style["grid-line-horizontal"]},attrs:{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}})})),t._l(t.verticalLines,(function(r){return e("line",{key:r.key,staticClass:"gantt-elastic__grid-line-vertical",style:{...t.root.style["grid-line-vertical"]},attrs:{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}})})),e("line",{staticClass:"gantt-elastic__grid-line-time",style:{...t.root.style["grid-line-time"]},attrs:{x1:t.timeLinePosition.x,y1:t.timeLinePosition.y1,x2:t.timeLinePosition.x,y2:t.timeLinePosition.y2}})],2)])},K=[],J={name:"Grid",inject:["root"],data(){return{}},created(){this.root.$on("recenterPosition",this.recenterPosition)},mounted(){this.$nextTick((()=>{this.$nextTick((()=>{this.root.scrollToTime(this.timeLinePosition.time)}))}))},methods:{recenterPosition(){this.root.scrollToTime(this.timeLinePosition.time)}},computed:{verticalLines(){let t=[];const e=this.root.state;e.options.times.steps.forEach(((r,s)=>{if(r.offset&&"number"===typeof r.offset.px&&!isNaN(r.offset.px)){const i={key:r.time,x1:Math.round(r.offset.px),y1:0,x2:Math.round(r.offset.px),y2:e.tasks.length*(e.options.row.height+2*e.options.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]};t.push(i),"quarter"===e.options.times.stepDuration&&console.log(`Grid Line ${s}:`,{x:i.x1,time:new Date(r.time).toISOString().split("T")[0],quarter:new Date(r.time).getMonth()<3?1:new Date(r.time).getMonth()<6?2:new Date(r.time).getMonth()<9?3:4,stepWidth:r.width&&r.width.px||0,stepOffset:r.offset&&r.offset.px||0,hasValidX:i.x1>=0&&!isNaN(i.x1)})}else"quarter"===e.options.times.stepDuration&&console.log(`Skipped Grid Line ${s}:`,{time:new Date(r.time).toISOString().split("T")[0],offset:r.offset,hasValidOffset:!(!r.offset||"number"!==typeof r.offset.px||isNaN(r.offset.px))})}));const r=e.options.times.steps[e.options.times.steps.length-1];if(r){const s=Math.round(r.offset.px+r.width.px);t.push({key:"final-line",x1:s,y1:0,x2:s,y2:e.tasks.length*(e.options.row.height+2*e.options.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]})}return t},horizontalLines(){let t=[];const e=this.root.state.options;let r=this.root.visibleTasks;if(r.length>0){const s=e.row.height+2*e.chart.grid.horizontal.gap,i=r.length;for(let e=0;e<=i;e++){const r=e*s+this.root.style["grid-line-vertical"]["stroke-width"]/2;t.push({key:"hl"+e,x1:0,y1:r,x2:"100%",y2:r})}}else{const r=window.innerHeight,s=e.calendar.height+e.calendar.gap,i=.7*r-s-40,o=Math.max(i,300),n=e.row.height+2*e.chart.grid.horizontal.gap,a=Math.floor(o/n);for(let e=0;e<=a;e++){const r=e*n+this.root.style["grid-line-vertical"]["stroke-width"]/2;t.push({key:"hl"+e,x1:0,y1:r,x2:"100%",y2:r})}}return t},inViewPort(){return t=>{const e=this.root.state.options;return t.x1>=e.scroll.chart.left&&t.x1<=e.scroll.chart.right}},timeLinePosition(){const t=new Date,e=t.getTime(),r=this.root.timeToPixelOffsetX(e),s={x:0,y1:0,y2:"100%",dateTime:"",time:e};return s.x=r,s.dateTime=t.toLocaleDateString(),s}}},tt=J,et=f(tt,Q,K,!1,null,null,null),rt=et.exports,st=function(){var t=this,e=t._self._c;return t.showWorkingDays?e("g",{staticClass:"gantt-elastic__chart-days-highlight-container",style:{...t.root.style["chart-days-highlight-container"]}},t._l(t.workingDays,(function(r){return e("rect",{key:t.getKey(r),staticClass:"gantt-elastic__chart-days-highlight-rect",style:{...t.root.style["chart-days-highlight-rect"]},attrs:{x:r.offset.px,y:"0",width:r.width.px,height:"100%"}})})),0):t._e()},it=[],ot={name:"DaysHighlight",inject:["root"],data(){return{}},methods:{getKey(t){return c()(t.time).format("YYYY-MM-DD HH:mm")}},computed:{workingDays(){return this.root.state.options.times.steps.filter((t=>-1===this.root.state.options.calendar.workingDays.indexOf(c()(t.time).day())))},showWorkingDays(){const t=this.root.state.options.calendar;return!("undefined"===typeof t.workingDays||!Array.isArray(t.workingDays)||!t.workingDays.length)}}},nt=ot,at=f(nt,st,it,!1,null,null,null),lt=at.exports,ct=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__calendar-wrapper",style:{...t.root.style["calendar-wrapper"],width:t.root.state.options.width+"px"}},[e("div",{staticClass:"gantt-elastic__calendar",style:{...t.root.style["calendar"],width:t.root.state.options.width+"px"}},["quarter"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.quarters,which:"quarter"}}):t._e(),"month"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.months,which:"month"}}):t._e(),"week"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.weeks,which:"week"}}):t._e(),"day"===t.viewMode?e("calendar-row",{attrs:{items:t.dates.days,which:"day"}}):t._e()],1)])},ht=[],ut=s(8134),dt=s.n(ut),pt=s(1816),ft=s.n(pt),mt=function(){var t=this,e=t._self._c;return e("section",[e("div",{class:"gantt-elastic__calendar-row gantt-elastic__calendar-row--"+t.which,style:t.rowStyle},t._l(t.items,(function(r,s){return e("div",{key:r.key,class:"gantt-elastic__calendar-row-rect gantt-elastic__calendar-row-rect--"+t.which,style:t.rectStyle},t._l(r.children,(function(r,i){return e("div",{key:r.key,class:"gantt-elastic__calendar-row-rect-child gantt-elastic__calendar-row-rect-child--"+t.which,style:t.rectChildStyle[s][i]},[e("div",{class:"gantt-elastic__calendar-row-text gantt-elastic__calendar-row-text--"+t.which,style:t.textStyle(r)},[t._v(" "+t._s(r.label)+" ")])])})),0)})),0)])},gt=[],yt={name:"CalendarRow",inject:["root"],props:["items","which"],data(){return{}},methods:{getTextX(t){let e=t.width/2-t.textWidth/2;const r=this.root.style["grid-line-vertical"]["stroke-width"]||1,s=Math.max(r/2+2,4);return"month"===this.which?(e=(t.width-t.textWidth)/2,e<s?e=s:e+t.textWidth+s>t.width&&(e=t.width-t.textWidth-s)):e+t.textWidth+s>t.width?e=t.width-t.textWidth-s:e<s&&(e=s),e}},computed:{rowStyle(){return{...this.root.style["calendar-row"],...this.root.style["calendar-row--"+this.which],position:"relative"}},rectStyle(){return{...this.root.style["calendar-row-rect"],...this.root.style["calendar-row-rect--"+this.which]}},rectChildStyle(){const t={...this.root.style["calendar-row-rect-child"],...this.root.style["calendar-row-rect-child--"+this.which]},e=[];for(let r of this.items){const s=[];for(let e of r.children)s.push({...t,width:e.width+"px",height:e.height+"px",left:e.x+"px",position:"absolute"});e.push(s)}return e},textStyle(){const t={...this.root.style["calendar-row-text"],...this.root.style["calendar-row-text--"+this.which]};return e=>{const r={...t};return r}}}},vt=yt,wt=f(vt,mt,gt,!1,null,null,null),kt=wt.exports;c().extend(dt()),c().extend(ft());var bt={name:"Calendar",components:{CalendarRow:kt},inject:["root"],data(){return{dayjsInstance:c()}},computed:{viewMode(){return this.root.state.options.calendar.viewMode||"day"},dates(){const t=this.generateDays(),e=this.generateWeeks(),r=this.generateMonths(),s=this.generateQuarters(),i={days:t,weeks:e,months:r,quarters:s};return this.calculateCalendarDimensions(i),i}},methods:{calculateCalendarDimensions({days:t,weeks:e,months:r,quarters:s}){let i=0;"quarter"===this.viewMode&&s.length>0&&(i+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"===this.viewMode&&r.length>0&&(i+=this.root.state.options.calendar.month.height||25),"week"===this.viewMode&&e.length>0&&(i+=this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25),"day"===this.viewMode&&t.length>0&&(i+=this.root.state.options.calendar.day.height),this.root.state.options.calendar.height=i},generateDays(){let t=[];if("day"!==this.viewMode&&"week"!==this.viewMode)return t;const e=this.howManyDaysFit();if(0===e.count)return t;const r=this.root.state.options.times.steps,s=this.root.state.options.locale.name,i=Math.ceil(r.length/e.count);for(let o=0,n=r.length;o<n;o+=i){let n=0;for(let t=0;t<i;t++)"undefined"!==typeof r[o+t]&&(n+=r[o+t].width.px);const a=this.dayjsInstance(r[o].time);let l=0;"undefined"!==typeof this.root.state.options.calendar.day.widths[o]&&(l=this.root.state.options.calendar.day.widths[o][e.type]);let c=Math.round(r[o].offset.px);t.push({index:o,key:r[o].time+"d",x:c,y:this.getYPosition("day"),width:n,textWidth:l,height:this.root.state.options.calendar.day.height,label:this.root.state.options.calendar.day.format[e.type](a.locale(s))})}return t.map((t=>({key:t.key,children:[t]})))},generateWeeks(){let t=[];if("week"!==this.viewMode)return t;const e=this.root.state.options.times.steps;let r=null,s=0,i=0,o=null,n=null;for(let l=0;l<e.length;l++)try{const a=this.dayjsInstance(e[l].time),c=a.week(),h=a.year(),u=`${h}-W${c}`;if(u!==r){if(null!==r){const e=o.format("MMMM"),a=o.date(),l=n.date();let c=`${e} ${a}`;if(o.month()!==n.month()){const t=n.format("MMMM");c=`${e} ${a} - ${t} ${l}`}else a!==l&&(c=`${e} ${a}-${l}`);t.push({key:r,x:s,y:this.getYPosition("week"),width:i,textWidth:50,height:this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25,label:c})}r=u,s=Math.round(e[l].offset.px),i=e[l].width.px,o=a.clone().startOf("week"),n=a.clone().endOf("week")}else i+=e[l].width.px,n=a.clone().endOf("week")}catch(a){console.error("Error processing week:",a);continue}if(null!==r){const e=o.format("MMMM"),a=o.date(),l=n.date();let c=`${e} ${a}`;if(o.month()!==n.month()){const t=n.format("MMMM");c=`${e} ${a} - ${t} ${l}`}else a!==l&&(c=`${e} ${a}-${l}`);t.push({key:r,x:s,y:this.getYPosition("week"),width:i,textWidth:60,height:this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25,label:c})}return t.map((t=>({key:t.key,children:[t]})))},generateMonths(){let t=[];if(!this.root.state.options.calendar.month.display)return t;const e=this.howManyMonthsFit();if(0===e.count)return t;this.root.state.options.times.steps;const r=this.root.state.options.locale.name;let s=Object.keys(this.root.state.options.calendar.month.format),i=c()(this.root.state.options.times.firstTime);for(let o=0;o<e.count;o++){let e=0,n=Number.MAX_SAFE_INTEGER,a=c()(i).add(1,"month").startOf("month");a.valueOf()>this.root.state.options.times.lastTime&&(a=c()(this.root.state.options.times.lastTime));for(let t=0,r=this.root.state.options.times.steps.length;t<r;t++){let r=this.root.state.options.times.steps[t];r.time>=i.valueOf()&&r.time<a.valueOf()&&(e+=r.width.px,r.offset.px<n&&(n=r.offset.px))}let l,h="";for(let t of s)this.root.state.options.calendar.month.maxWidths[t]+2<=e&&(h=this.root.state.options.calendar.month.format[t](i.locale(r)),l=t);let u=0;"undefined"!==typeof this.root.state.options.calendar.month.widths[o]&&(u=this.root.state.options.calendar.month.widths[o][l]);let d=Math.round(n);t.push({index:o,key:o+"m",x:d,y:0,width:e,textWidth:u,choosenFormatName:l,height:this.root.state.options.calendar.month.height,label:h}),i=i.add(1,"month").startOf("month"),i.valueOf()>this.root.state.options.times.lastTime&&(i=c()(this.root.state.options.times.lastTime))}return t.map((t=>({key:t.key,children:[t]})))},generateQuarters(){let t=[];if("quarter"!==this.viewMode)return t;const e=this.root.state.options.times.steps;console.log("Quarter Generation Debug:",{stepsCount:e.length,firstStepTime:this.dayjsInstance(e[0]&&e[0].time).format("YYYY-MM-DD"),lastStepTime:this.dayjsInstance(e[e.length-1]&&e[e.length-1].time).format("YYYY-MM-DD"),firstStepQuarter:this.dayjsInstance(e[0]&&e[0].time).quarter(),lastStepQuarter:this.dayjsInstance(e[e.length-1]&&e[e.length-1].time).quarter()});let r=null,s=0,i=0,o=null,n=null;for(let l=0;l<e.length;l++)try{const a=this.dayjsInstance(e[l].time),c=a.quarter(),h=a.year(),u=`Q${c}-${h}`;if(console.log(`Step ${l}:`,{time:a.format("YYYY-MM-DD"),quarter:c,year:h,quarterKey:u,currentQuarter:r}),u!==r){if(null!==r){const e=o.format("MMMM"),a=n.format("MMMM"),l=n.format("YY"),c=`${e} – ${a} '${l}`;t.push({key:r,x:s,y:this.getYPosition("quarter"),width:i,textWidth:50,height:this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30,label:c})}r=u,s=Math.round(e[l].offset.px),i=e[l].width.px,o=a.clone().startOf("quarter"),n=a.clone().endOf("quarter")}else i+=e[l].width.px,n=a.clone().endOf("quarter")}catch(a){console.error("Error processing quarter:",a);continue}if(null!==r){const e=o.format("MMMM"),a=n.format("MMMM"),l=n.format("YY"),c=`${e} – ${a} '${l}`;t.push({key:r,x:s,y:this.getYPosition("quarter"),width:i,textWidth:60,height:this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30,label:c})}return t.map((t=>({key:t.key,children:[t]})))},getYPosition(t){let e=0;switch(t){case"quarter":return 0;case"month":return"quarter"===this.viewMode?this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30:0;case"week":return"quarter"===this.viewMode&&(e+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"!==this.viewMode&&"quarter"!==this.viewMode||(e+=this.root.state.options.calendar.month.height),e;case"day":return e=0,"quarter"===this.viewMode&&(e+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"!==this.viewMode&&"quarter"!==this.viewMode||(e+=this.root.state.options.calendar.month.height),"week"===this.viewMode&&(e+=this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25),e;case"hour":return e=0,"quarter"===this.viewMode&&(e+=this.root.state.options.calendar.quarter&&this.root.state.options.calendar.quarter.height||30),"month"!==this.viewMode&&"quarter"!==this.viewMode||(e+=this.root.state.options.calendar.month.height),"week"===this.viewMode&&(e+=this.root.state.options.calendar.week&&this.root.state.options.calendar.week.height||25),"day"===this.viewMode&&(e+=this.root.state.options.calendar.day.height),e;default:return 0}},howManyHoursFit(t){const e=1,r=e+2;let s=this.root.state.options.times.steps[t].width.px,i=Object.keys(this.root.state.options.calendar.hour.format);for(let o=24;o>1;o=Math.ceil(o/2))for(let t of i)if((this.root.state.options.calendar.hour.maxWidths[t]+r)*o<=s&&o>1)return{count:o,type:t};return{count:0,type:""}},howManyDaysFit(){const t=1,e=t+2;let r=this.root.state.options.width,s=Object.keys(this.root.state.options.calendar.day.format);for(let i=this.root.state.options.times.steps.length;i>1;i=Math.ceil(i/2))for(let t of s)if((this.root.state.options.calendar.day.maxWidths[t]+e)*i<=r&&i>1)return{count:i,type:t};return{count:0,type:""}},howManyMonthsFit(){const t=1,e=t+2;let r=this.root.state.options.width,s=Object.keys(this.root.state.options.calendar.month.format),i=c()(this.root.state.options.times.firstTime);i.clone();this.root.state.options.times.lastTime;let o=this.root.monthsCount(this.root.state.options.times.firstTime,this.root.state.options.times.lastTime);if(1===o)for(let n of s)if(this.root.state.options.calendar.month.maxWidths[n]+e<=r)return{count:1,type:n};for(let n=o;n>1;n=Math.ceil(n/2))for(let t of s)if((this.root.state.options.calendar.month.maxWidths[t]+e)*n<=r&&n>1)return{count:n,type:t};return{count:0,type:s[0]}}}},xt=bt,_t=f(xt,ct,ht,!1,null,null,null),St=_t.exports,Tt=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"gantt-elastic__chart-dependency-lines-container",style:{...t.root.style["chart-dependency-lines-container"]},attrs:{x:"0",y:"0",width:"100%",height:"100%"}},t._l(t.dependencyTasks,(function(r){return e("g",{key:r.id,attrs:{task:r}},t._l(r.dependencyLines,(function(s){return e("path",{key:s.id,staticClass:"gantt-elastic__chart-dependency-lines-path",style:{...t.root.style["chart-dependency-lines-path"],...r.style["chart-dependency-lines-path"],...r.style["chart-dependency-lines-path-"+s.task_id]},attrs:{task:r,d:s.points}})})),0)})),0)},$t=[],Ot={name:"DependencyLines",inject:["root"],props:["tasks"],data(){return{}},methods:{getPoints(t,e){const r=this.root.getTask(t),s=this.root.getTask(e);if(null===r||null===s||!this.root.isTaskVisible(s)||!this.root.isTaskVisible(r))return null;const i=r.x+r.width,o=r.y+r.height/2,n=s.x,a=s.y+s.height/2,l=n-i;let c,h=1;a>=o?c=a-o:(c=o-a,h=-1);const u=10,d=4,p=l<=u+d;let f=`M ${i} ${o}\n L ${i+u},${o} `;return f+=p?`Q ${i+u+d},${o} ${i+u+d},${o+d*h}\n L ${i+u+d},${o+c*h/2-d*h}\n Q ${i+u+d},${o+c*h/2} ${i+u},${o+c*h/2}\n L ${i-u+l},${o+c*h/2}\n Q ${i-u+l-d},${o+c*h/2} ${i-u+l-d},${o+c*h/2+d*h}\n L ${i-u+l-d},${a-d*h}\n Q ${i-u+l-d},${a} ${i-u+l},${a}\n L ${n},${a}`:`L ${i+l/2-d},${o}\n Q ${i+l/2},${o} ${i+l/2},${o+d*h}\n L ${i+l/2},${a-d*h}\n Q ${i+l/2},${a} ${i+l/2+d},${a}\n L ${n},${a}`,f}},computed:{dependencyTasks(){return this.tasks.filter((t=>"undefined"!==typeof t.dependentOn)).map((t=>(t.dependencyLines=t.dependentOn.map((e=>({points:this.getPoints(e,t.id),task_id:e}))),t))).filter((t=>null!==t.dependencyLines.points))}}},Mt=Ot,Ct=f(Mt,Tt,$t,!1,null,null,null),Et=Ct.exports,Dt=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-task-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-task-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--task",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--task"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-task",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-task"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-task-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-task-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"0",y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-12,y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},Pt=[],Lt=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"gantt-elastic__chart-row-text-wrapper",style:{...t.root.style["chart-row-text-wrapper"]},attrs:{x:t.task.x+t.task.width+t.root.state.options.chart.text.offset,y:t.task.y-t.root.state.options.chart.grid.horizontal.gap,width:t.getWidth,height:t.getHeight}},[e("foreignObject",{attrs:{x:"0",y:"0",width:"100%",height:t.getHeight}},[e("div",{staticClass:"gantt-elastic__chart-row-text",style:{...t.root.style["chart-row-text"]},attrs:{xmlns:"http://www.w3.org/1999/xhtml"}},[t.html?t._e():e("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--text",style:{...t.root.style["chart-row-text-content"],...t.root.style["chart-row-text-content--text"],...t.contentStyle}},[e("div",[t._v(t._s(t.task.label))])]),t.html?e("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--html",style:{...t.root.style["chart-row-text-content"],...t.root.style["chart-row-text-content--html"],...t.contentStyle},domProps:{innerHTML:t._s(t.task.label)}}):t._e()])])])},jt=[],zt={name:"ChartText",inject:["root"],props:["task"],data(){return{}},computed:{getWidth(){const t=this.root.style["chart-row-text"],e=`${t["font-weight"]} ${t["font-size"]} ${t["font-family"]}`;this.setFont(e);const r=this.root.state.ctx.measureText(this.task.label).width;return r+2*this.root.state.options.chart.text.xPadding},getHeight(){return this.task.height+2*this.root.state.options.chart.grid.horizontal.gap},contentStyle(){return{height:"100%","line-height":this.getHeight+"px"}},html(){const t=this.root.state.options.taskList.columns;for(let e=0,r=t.length;e<r;e++){const r=t[e];if("label"===r.value&&"undefined"!==typeof r.html&&r.html)return!0}return!1}},methods:{setFont(t){this.root.state.ctx.font=t}}},At=zt,Rt=f(At,Lt,jt,!1,null,null,null),Ht=Rt.exports,It=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-progress-bar-wrapper",style:{...t.root.style["chart-row-progress-bar-wrapper"],...t.task.style["chart-row-progress-bar-wrapper"],"pointer-events":"none"}},[e("defs",[e("pattern",{attrs:{id:"diagonalHatch",width:t.root.state.options.chart.progress.width,height:t.root.state.options.chart.progress.width,patternTransform:"rotate(45 0 0)",patternUnits:"userSpaceOnUse"}},[e("line",{staticClass:"chart-row-progress-bar-line",style:{...t.root.style["chart-row-progress-bar-line"],...t.task.style["chart-row-progress-bar-line"]},attrs:{x1:"0",y1:"0",x2:"0",y2:t.root.state.options.chart.progress.width}})])]),t.root.state.options.chart.progress.bar&&t.task.progress>0?e("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-solid",staticStyle:{"pointer-events":"none"},style:{...t.root.style["chart-row-progress-bar-solid"],...t.task.style["chart-row-progress-bar-solid"]},attrs:{x:"0",y:"0",width:t.getProgressWidth}}):t._e(),t.root.state.options.chart.progress.pattern&&t.task.progress>0?e("g",{staticStyle:{"pointer-events":"none"}},[e("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-pattern",style:{...t.root.style["chart-row-progress-bar-pattern"],...t.task.style["chart-row-progress-bar-pattern"]},attrs:{x:t.getProgressWidth,y:"0",width:100-t.task.progress+"%",height:"100%"}}),e("path",{staticClass:"gantt-elastic__chart-row-progress-bar-outline",style:{...t.root.style["chart-row-progress-bar-outline"],...t.task.style["base"],...t.task.style["chart-row-progress-bar-outline"]},attrs:{d:t.getLinePoints}})]):t._e()])},Vt=[],Wt={name:"ProgressBar",inject:["root"],props:["task"],data(){return{}},computed:{getProgressWidth(){return this.task.progress+"%"},getLinePoints(){const t=this.task.width/100*this.task.progress;return`M ${t} 0 L ${t} ${this.task.height}`},getSolidStyle(){return Object.assign({},this.root.state.options.chart.progress.styles.bar.solid,this.task.progressBarStyle.bar)},getLineStyle(){return Object.assign({},{stroke:this.root.state.options.row.styles.bar.stroke+"a0","stroke-width":this.root.state.options.row.styles.bar["stroke-width"]/2},this.task.style)}}},Bt=Wt,Ft=f(Bt,It,Vt,!1,null,null,null),Nt=Ft.exports,Yt={computed:{getViewBox(){const t=this.task;return`0 0 ${t.width} ${t.height}`},getGroupTransform(){return`translate(${this.task.x} ${this.task.y})`},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}},methods:{emitEvent(t,e){this.root.state.options.scroll.scrolling||this.root.$emit(`chart-${this.task.type}-${t}`,{event:e,data:this.task})}}},qt={data(){return{isDragging:!1,dragStartX:0,dragStartTime:0,dragType:null,originalStartTime:0,originalEndTime:0,originalDuration:0}},methods:{startDrag(t,e){t.preventDefault(),t.stopPropagation(),this.root&&this.root.state&&this.root.state.options&&this.root.state.options.times?(this.isDragging=!0,this.dragType=e,this.dragStartX=t.clientX||t.touches[0].clientX,this.dragStartTime=this.task.startTime,this.originalStartTime=this.task.startTime,this.originalEndTime=this.task.endTime,this.originalDuration=this.task.duration,document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.endDrag),document.addEventListener("touchmove",this.handleDrag),document.addEventListener("touchend",this.endDrag),this.hideHoverTooltip(),this.$el.addEventListener("keydown",this.handleKeyboardShortcuts),this.$el.classList.add("gantt-elastic__task-dragging"),this.$el.classList.add(`gantt-elastic__task-dragging--${e}`),this.createDateTooltip()):console.error("Root or times options not available for dragging")},handleDrag(t){if(!this.isDragging)return;t.preventDefault();const e=t.clientX||t.touches[0].clientX,r=e-this.dragStartX,s=r*this.root.state.options.times.timePerPixel;if("move"===this.dragType){const t=this.originalStartTime+s,e=this.originalEndTime+s,r=this.root.state.options.times.firstTime,i=this.root.state.options.times.lastTime;t>=r&&e<=i&&(this.updateTaskTime(t,e),this.dateTooltip&&this.updateDateTooltip(t))}else if("start"===this.dragType){const t=this.originalStartTime+s,e=this.originalEndTime,r=864e5,i=this.root.state.options.times.firstTime;t<e&&e-t>=r&&t>=i&&(this.updateTaskTime(t,e),this.dateTooltip&&this.updateDateTooltip(t))}else if("end"===this.dragType){const t=this.originalStartTime,e=this.originalEndTime+s,r=864e5;e>t&&e-t>=r&&(this.updateTaskTime(t,e),this.dateTooltip&&this.updateDateTooltip(e))}},endDrag(t){this.isDragging&&(this.isDragging=!1,document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.endDrag),document.removeEventListener("touchmove",this.handleDrag),document.removeEventListener("touchend",this.endDrag),this.$el.classList.remove("gantt-elastic__task-dragging"),this.$el.classList.remove(`gantt-elastic__task-dragging--${this.dragType}`),this.removeDateTooltip(),this.emitSaveEvent())},updateTaskTime(t,e){if(!(t>=e)){if(this.task.type,this.task.startTime=t,this.task.endTime=e,this.task.duration=e-t,this.root&&this.root.timeToPixelOffsetX)this.task.x=this.root.timeToPixelOffsetX(t),this.task.width=this.root.timeToPixelOffsetX(e)-this.task.x;else{const r=this.root&&this.root.state&&this.root.state.options&&this.root.state.options.times&&this.root.state.options.times.timePerPixel;r>0?(this.task.x=(t-this.root.state.options.times.firstTime)/r,this.task.width=(e-t)/r):console.error("timePerPixel is not available or invalid:",r)}this.$forceUpdate()}},emitSaveEvent(){const t=new Date(this.task.startTime),e=new Date(this.task.endTime),r=Math.ceil(this.task.duration/864e5);this.$emit("task-updated",{id:this.task.id,startTime:this.task.startTime,endTime:this.task.endTime,duration:this.task.duration,durationDays:r,startDate:t.toISOString(),endDate:e.toISOString(),startDateFormatted:t.toLocaleDateString(),endDateFormatted:e.toLocaleDateString(),dragType:this.dragType,originalStartTime:this.originalStartTime,originalEndTime:this.originalEndTime,originalDuration:this.originalDuration})},handleKeyboardShortcuts(t){this.isDragging||((t.ctrlKey||t.metaKey)&&"e"===t.key?(t.preventDefault(),this.extendTaskToNextDate()):(t.ctrlKey||t.metaKey)&&t.shiftKey&&"E"===t.key?(t.preventDefault(),this.extendTaskByDays(1)):(t.ctrlKey||t.metaKey)&&"3"===t.key?(t.preventDefault(),this.extendTaskByDays(3)):(t.ctrlKey||t.metaKey)&&"7"===t.key&&(t.preventDefault(),this.extendTaskByDays(7)))},createDateTooltip(){this.dateTooltip=document.createElement("div"),this.dateTooltip.className="gantt-elastic__date-tooltip",this.dateTooltip.style.cssText="\n position: fixed;\n background: #000000;\n color: white;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 13px;\n font-family: system-ui, -apple-system, sans-serif;\n font-weight: 500;\n pointer-events: none;\n z-index: 10000;\n white-space: nowrap;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);\n border: 1px solid rgba(255, 255, 255, 0.1);\n ",document.body.appendChild(this.dateTooltip),"start"===this.dragType?this.updateDateTooltip(this.originalStartTime):"end"===this.dragType?this.updateDateTooltip(this.originalEndTime):"move"===this.dragType&&this.updateDateTooltip(this.originalStartTime)},updateDateTooltip(t){if(!this.dateTooltip)return;const e=new Date(t),r=e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});let s="";if("start"===this.dragType){const e=Math.round((t-this.originalStartTime)/864e5);0!==e&&(s=e>0?` (+${e} days)`:` (${e} days)`)}else if("end"===this.dragType){const e=Math.round((t-this.originalEndTime)/864e5);0!==e&&(s=e>0?` (+${e} days)`:` (${e} days)`)}else if("move"===this.dragType){const e=Math.round((t-this.originalStartTime)/864e5);0!==e&&(s=e>0?` (+${e} days)`:` (${e} days)`)}this.dateTooltip.textContent=`${r}${s}`;const i=this.$el.getBoundingClientRect();"start"===this.dragType?(this.dateTooltip.style.left=i.left-this.dateTooltip.offsetWidth-10+"px",this.dateTooltip.style.top=i.top+i.height/2-10+"px"):("end"===this.dragType||"move"===this.dragType)&&(this.dateTooltip.style.left=`${i.right+10}px`,this.dateTooltip.style.top=i.top+i.height/2-10+"px")},removeDateTooltip(){this.dateTooltip&&(document.body.removeChild(this.dateTooltip),this.dateTooltip=null)},addHoverTooltips(){const t=this.$el.querySelectorAll(".gantt-elastic__chart-row-extend-handle");t.forEach(((t,e)=>{t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave),t.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),t.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}))},handleMouseEnter(t){this.isDragging||this.showHoverTooltip(t,!1)},handleMouseLeave(){this.isDragging||this.hideHoverTooltip()},showHoverTooltip(t,e){this.hideHoverTooltip();const r=new Date(this.task.startTime),s=new Date(this.task.endTime),i=r.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=s.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),n=this.task.endTime-this.task.startTime,a=Math.ceil(n/864e5);this.hoverTooltip=document.createElement("div"),this.hoverTooltip.className="gantt-elastic__hover-tooltip",this.hoverTooltip.textContent=`${i} - ${o} (${a} days)`,this.hoverTooltip.style.cssText="\n position: fixed;\n background: #333333;\n color: white;\n padding: 8px 12px;\n border-radius: 6px;\n font-size: 13px;\n font-family: system-ui, -apple-system, sans-serif;\n font-weight: 500;\n pointer-events: none;\n z-index: 10001;\n white-space: nowrap;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);\n border: 1px solid rgba(255, 255, 255, 0.1);\n ",document.body.appendChild(this.hoverTooltip);const l=t.target.getBoundingClientRect();this.hoverTooltip.style.left=l.left+l.width/2-this.hoverTooltip.offsetWidth/2+"px",this.hoverTooltip.style.top=l.top-this.hoverTooltip.offsetHeight-8+"px"},hideHoverTooltip(){this.hoverTooltip&&(document.body.removeChild(this.hoverTooltip),this.hoverTooltip=null)}},mounted(){this.$nextTick((()=>{this.addHoverTooltips()}))},beforeDestroy(){document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.endDrag),document.removeEventListener("touchmove",this.handleDrag),document.removeEventListener("touchend",this.endDrag),document.removeEventListener("click",this.hideContextMenu),this.hideContextMenu(),this.removeDateTooltip(),this.hideHoverTooltip(),this.$el&&this.$el.removeEventListener("keydown",this.handleKeyboardShortcuts)}},Ut={name:"Task",components:{ChartText:Ht,ProgressBar:Nt,Expander:M},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__task-clip-path-"+this.task.id},getPoints(){const t=this.task;return`0,0 ${t.width},0 ${t.width},${t.height} 0,${t.height}`},getPointsAdjusted(){const t=this.task;return`8,0 ${t.width+8},0 ${t.width+8},${t.height} 8,${t.height}`}}},Xt=Ut,Gt=f(Xt,Dt,Pt,!1,null,null,null),Zt=Gt.exports,Qt=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-milestone-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-milestone-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--milestone",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--milestone"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-milestone",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-milestone"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-milestone-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-milestone-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"0",y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-12,y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},Kt=[],Jt={name:"Milestone",components:{ChartText:Ht,ProgressBar:Nt,Expander:M},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__milestone-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height/2;let r=e;return t.width/2-r<0&&(r=t.width/2),`0,${e}\n ${r},0\n ${t.width-r},0\n ${t.width},${e}\n ${t.width-r},${t.height}\n ${r},${t.height}`},getPointsAdjusted(){const t=this.task,e=t.height/2;let r=e;return t.width/2-r<0&&(r=t.width/2),`8,${e}\n ${8+r},0\n ${8+t.width-r},0\n ${8+t.width},${e}\n ${8+t.width-r},${t.height}\n ${8+r},${t.height}`}}},te=Jt,ee=f(te,Qt,Kt,!1,null,null,null),re=ee.exports,se=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-project-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-project-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--project",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--project"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-project",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-project"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("path",{attrs:{d:t.getPoints}})])]),e("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-project-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-project-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{d:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"0",y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-12,y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},ie=[],oe={name:"Project",components:{ChartText:Ht,ProgressBar:Nt,Expander:M},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__project-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${s},0\n L ${t.width-s} 0\n L ${t.width} ${s}\n L ${t.width} ${e}\n L ${t.width-r} ${t.height}\n L ${t.width-2*r} ${e}\n L ${2*r} ${e}\n L ${r} ${t.height}\n L 0 ${e}\n L 0 ${s}\n Z\n `},getPointsAdjusted(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${8+s},0\n L ${8+t.width-s} 0\n L ${8+t.width} ${s}\n L ${8+t.width} ${e}\n L ${8+t.width-r} ${t.height}\n L ${8+t.width-2*r} ${e}\n L ${8+2*r} ${e}\n L ${8+r} ${t.height}\n L 8 ${e}\n L 8 ${s}\n Z\n `},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},ne=oe,ae=f(ne,se,ie,!1,null,null,null),le=ae.exports,ce=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-epic-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-epic-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--epic",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--epic"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-epic",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-epic"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("path",{attrs:{d:t.getPoints}})])]),e("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-epic-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-epic-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"],"pointer-events":"all","z-index":"10"},attrs:{d:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),t.task.progress>0?e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}):t._e(),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"0",y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-12,y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},he=[],ue={name:"Epic",components:{ChartText:Ht,ProgressBar:Nt,Expander:M},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__epic-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${s},0\n L ${t.width-s} 0\n L ${t.width} ${s}\n L ${t.width} ${e}\n L ${t.width-r} ${t.height}\n L ${t.width-2*r} ${e}\n L ${2*r} ${e}\n L ${r} ${t.height}\n L 0 ${e}\n L 0 ${s}\n Z\n `},getPointsAdjusted(){const t=this.task,e=t.height-t.height/4,r=t.height/6,s=t.height/8;return`M ${8+s},0\n L ${8+t.width-s} 0\n L ${8+t.width} ${s}\n L ${8+t.width} ${e}\n L ${8+t.width-r} ${t.height}\n L ${8+t.width-2*r} ${e}\n L ${8+2*r} ${e}\n L ${8+r} ${t.height}\n L 8 ${e}\n L 8 ${s}\n Z\n `},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},de=ue,pe=f(de,ce,he,!1,null,null,null),fe=pe.exports,me=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-subtask-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-subtask-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--subtask",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--subtask"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-subtask",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-subtask"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-subtask-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-subtask-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"0",y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-12,y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},ge=[],ye={name:"Subtask",components:{ChartText:Ht,ProgressBar:Nt,Expander:M},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__subtask-clip-path-"+this.task.id},getPoints(){const t=this.task;return`0,0 ${t.width},0 ${t.width},${t.height} 0,${t.height}`},getPointsAdjusted(){const t=this.task;return`8,0 ${t.width+8},0 ${t.width+8},${t.height} 8,${t.height}`},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},ve=ye,we=f(ve,me,ge,!1,null,null,null),ke=we.exports,be=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-story-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-story-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--story",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--story"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-story",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-story"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x-8,y:t.task.y,width:t.task.width+16,height:t.task.height,viewBox:`-8 0 ${t.task.width+16} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("path",{attrs:{d:t.getPoints}})])]),e("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-story-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-story-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{d:t.getPointsAdjusted},on:{mousedown:function(e){return t.startDrag(e,"move")},touchstart:function(e){return t.startDrag(e,"move")}}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:"0",y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"start")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"start")}}}),e("rect",{staticClass:"gantt-elastic__chart-row-extend-handle gantt-elastic__drag-handle",staticStyle:{"pointer-events":"all","z-index":"50",cursor:"ew-resize !important"},style:t.root.style["chart-row-extend-handle"],attrs:{x:t.task.width-12,y:"0",width:12,height:t.task.height},on:{mousedown:function(e){return e.stopPropagation(),t.startDrag(e,"end")},touchstart:function(e){return e.stopPropagation(),t.startDrag(e,"end")}}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},xe=[],_e={name:"Story",components:{ChartText:Ht,ProgressBar:Nt,Expander:M},inject:["root"],props:["task"],mixins:[Yt,qt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__story-clip-path-"+this.task.id},getPoints(){const t=this.task,e=Math.min(t.height/4,8);return`M ${e},0\n L ${t.width-e} 0\n Q ${t.width} 0 ${t.width} ${e}\n L ${t.width} ${t.height-e}\n Q ${t.width} ${t.height} ${t.width-e} ${t.height}\n L ${e} ${t.height}\n Q 0 ${t.height} 0 ${t.height-e}\n L 0 ${e}\n Q 0 0 ${e} 0\n Z`},getPointsAdjusted(){const t=this.task,e=Math.min(t.height/4,8);return`M ${8+e},0\n L ${8+t.width-e} 0\n Q ${8+t.width} 0 ${8+t.width} ${e}\n L ${8+t.width} ${t.height-e}\n Q ${8+t.width} ${t.height} ${8+t.width-e} ${t.height}\n L ${8+e} ${t.height}\n Q 8 ${t.height} 8 ${t.height-e}\n L 8 ${e}\n Q 8 0 ${8+e} 0\n Z`},displayExpander(){const t=this.root.state.options.chart.expander,e=this.task.allChildren&&this.task.allChildren.length>0;return(t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display)&&e}}},Se=_e,Te=f(Se,be,xe,!1,null,null,null),$e=Te.exports,Oe={name:"Chart",components:{Grid:rt,DependencyLines:Et,Calendar:St,task:Zt,milestone:re,project:le,epic:fe,subtask:ke,story:$e,DaysHighlight:lt},inject:["root"],data(){return{moving:!1}},mounted(){this.root.state.refs.chart=this.$refs.chart,this.root.state.refs.chartCalendarContainer=this.$refs.chartCalendarContainer,this.root.state.refs.chartGraphContainer=this.$refs.chartGraphContainer,this.root.state.refs.chartGraph=this.$refs.chartGraph,this.root.state.refs.chartGraphSvg=this.$refs.chartGraphSvg},methods:{handleTaskUpdated(t){console.log("task-updated --Chart"),this.$emit("task-updated",t);const e=this.root.state.tasks.findIndex((e=>e.id===t.id));if(-1!==e){if(this.root.state.tasks[e].startTime=t.startTime,this.root.state.tasks[e].endTime=t.endTime,this.root.state.tasks[e].duration=t.duration,this.root&&this.root.timeToPixelOffsetX)this.root.state.tasks[e].x=this.root.timeToPixelOffsetX(t.startTime),this.root.state.tasks[e].width=this.root.timeToPixelOffsetX(t.endTime)-this.root.state.tasks[e].x;else{const r=this.root.state.options.times.timePerPixel;r>0&&(this.root.state.tasks[e].x=(t.startTime-this.root.state.options.times.firstTime)/r,this.root.state.tasks[e].width=(t.endTime-t.startTime)/r)}this.$forceUpdate()}}},computed:{getViewBox(){return`0 0 ${this.root.state.options.width} ${this.root.state.options.allVisibleTasksHeight}`}}},Me=Oe,Ce=f(Me,G,Z,!1,null,null,null),Ee=Ce.exports;var De={name:"MainView",components:{TaskList:X,Chart:Ee},inject:["root"],data(){return{defs:"",mousePos:{x:0,y:0,movementX:0,movementY:0,lastX:0,lastY:0,positiveX:0,positiveY:0,currentX:0,currentY:0}}},mounted(){this.viewBoxWidth=this.$el.clientWidth,this.root.state.refs.mainView=this.$refs.mainView,this.root.state.refs.chartContainer=this.$refs.chartContainer,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.chartScrollContainerHorizontal=this.$refs.chartScrollContainerHorizontal,this.root.state.refs.chartScrollContainerVertical=this.$refs.chartScrollContainerVertical,document.addEventListener("mouseup",this.chartMouseUp.bind(this)),document.addEventListener("mousemove",this.chartMouseMove.bind(this)),document.addEventListener("touchmove",this.chartMouseMove.bind(this)),document.addEventListener("touchend",this.chartMouseUp.bind(this))},computed:{getMarginLeft(){return this.root.state.options.taskList.display?this.root.state.options.taskList.finalWidth+"px":"0px"},verticalStyle(){return{width:this.root.state.options.scrollBarHeight+"px",height:this.root.state.options.rowsHeight+"px","margin-top":this.root.state.options.calendar.height+this.root.state.options.calendar.gap+"px"}},getViewBox(){return this.root.state.options.clientWidth?`0 0 ${this.root.state.options.clientWidth-this.root.state.options.scrollBarHeight} ${this.root.state.options.height}`:`0 0 0 ${this.root.state.options.height}`}},methods:{handleTaskUpdated(t){console.log("task-updated --MainView"),this.$emit("task-updated",t)},mouseMove(t){this.root.$emit("main-view-mousemove",t)},mouseUp(t){this.root.$emit("main-view-mouseup",t)},onHorizontalScroll(t){this.root.$emit("chart-scroll-horizontal",t)},onVerticalScroll(t){this.root.$emit("chart-scroll-vertical",t)},chartWheel(t){this.root.$emit("chart-wheel",t)},chartMouseDown(t){"undefined"!==typeof t.touches&&(this.mousePos.x=this.mousePos.lastX=t.touches[0].screenX,this.mousePos.y=this.mousePos.lastY=t.touches[0].screenY,this.mousePos.movementX=0,this.mousePos.movementY=0,this.mousePos.currentX=this.$refs.chartScrollContainerHorizontal.scrollLeft,this.mousePos.currentY=this.$refs.chartScrollContainerVertical.scrollTop),this.root.state.options.scroll.scrolling=!0},chartMouseUp(t){this.root.state.options.scroll.scrolling=!1},chartMouseMove(t){if(this.root.state.options.scroll.scrolling){t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation();const e="undefined"!==typeof t.touches;let r,s;if(e){const e=t.touches[0].screenX,i=t.touches[0].screenY;r=this.mousePos.x-e,s=this.mousePos.y-i,this.mousePos.lastX=e,this.mousePos.lastY=i}else r=t.movementX,s=t.movementY;const i=this.$refs.chartScrollContainerHorizontal,o=this.$refs.chartScrollContainerVertical;let n=0,a=0;n=e?this.mousePos.currentX+r*this.root.state.options.scroll.dragXMoveMultiplier:i.scrollLeft-r*this.root.state.options.scroll.dragXMoveMultiplier,i.scrollLeft=n,a=e?this.mousePos.currentY+s*this.root.state.options.scroll.dragYMoveMultiplier:o.scrollTop-s*this.root.state.options.scroll.dragYMoveMultiplier,o.scrollTop=a}}}},Pe=De,Le=f(Pe,y,v,!1,null,null,null),je=Le.exports;function ze(t="12px",e="Arial, sans-serif"){return{fontSize:t,fontFamily:e,"main-view":{background:"#FFFFFF"},"main-container-wrapper":{overflow:"hidden","border-top":"1px solid #eee","border-bottom":"1px solid #eee"},"main-container":{float:"left","max-width":"100%"},"main-view-container":{},container:{display:"flex","max-width":"100%",height:"100%"},"calendar-wrapper":{"user-select":"none"},calendar:{width:"100%",background:"#f3f5f7",display:"block"},"calendar-row":{display:"flex","justify-content":"space-evenly"},"calendar-row--month":{},"calendar-row--day":{},"calendar-row--hour":{"border-bottom":"1px solid #eee"},"calendar-row-rect":{background:"transparent",display:"flex"},"calendar-row-rect--month":{},"calendar-row-rect--day":{},"calendar-row-rect--hour":{},"calendar-row-rect-child":{display:"block","border-right-width":"1px","border-right-color":"#E5E7EB","border-right-style":"solid",position:"relative","box-sizing":"border-box"},"calendar-row-rect-child--month":{},"calendar-row-rect-child--day":{"text-align":"center"},"calendar-row-rect-child--hour":{"text-align":"center"},"calendar-row-text":{"font-family":e,"font-size":t,color:"#606060",display:"inline-block",position:"relative","text-align":"center","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"100%",width:"100%","box-sizing":"border-box"},"calendar-row-text--month":{},"calendar-row-text--day":{},"calendar-row-text--hour":{},"calendar-row-text--quarter":{},"calendar-row-text--week":{},"task-list-wrapper":{},"task-list":{background:"transparent","border-color":"#eee"},"task-list-header":{display:"flex","user-select":"none","vertical-align":"middle","border-bottom":"1px solid #eee","border-left":"1px solid #eee"},"task-list-header-column":{"border-left":"1px solid #00000050","box-sizing":"border-box",display:"flex",background:"#f3f5f7","border-color":"transparent"},"task-list-expander-wrapper":{display:"inline-flex","flex-shrink":"0","box-sizing":"border-box",margin:"0 0 0 10px"},"task-list-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"task-list-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"task-list-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"task-list-expander-arrow":{fill:"none",stroke:"#999999","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},"chart-expander-wrapper":{display:"block","line-height":"1","box-sizing":"border-box",margin:"0"},"chart-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"chart-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"chart-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"chart-expander-arrow":{fill:"none",stroke:"#999999","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},"task-list-container":{},"task-list-header-label":{overflow:"hidden","text-overflow":"ellipsis","font-family":e,"font-size":t,"box-sizing":"border-box",margin:"auto 6px","flex-grow":"1","vertical-align":"middle"},"task-list-header-resizer-wrapper":{background:"transparent",height:"100%",width:"6px",cursor:"col-resize",display:"inline-flex","vertical-align":"center"},"task-list-header-resizer":{margin:"auto 0px"},"task-list-header-resizer-dot":{width:"3px",height:"3px",background:"#ddd","border-radius":"100%",margin:"4px 0px"},"task-list-items":{overflow:"hidden"},"task-list-item":{"border-top":"1px solid #eee","border-right":"1px solid #eee","box-sizing":"border-box",display:"flex",background:"transparent"},"task-list-item-column":{display:"inline-flex","flex-shrink":"0","border-left":"1px solid #00000050","box-sizing":"border-box","border-color":"#eee"},"task-list-item-value-wrapper":{overflow:"hidden",display:"flex",width:"100%"},"task-list-item-value-container":{margin:"auto 0px",overflow:"hidden"},"task-list-item-value":{display:"flex","align-items":"center","flex-shrink":"100","font-family":e,"font-size":t,"margin-top":"auto","margin-bottom":"auto","margin-left":"6px","margin-right":"6px",overflow:"hidden","text-overflow":"ellipsis","line-height":"1.5em","word-break":"keep-all","white-space":"nowrap",color:"#606060",background:"#FFFFFF"},"task-list-item-content":{display:"flex","align-items":"center",width:"100%","min-width":"0"},"task-list-item-icon":{display:"flex","align-items":"center","margin-right":"6px","flex-shrink":"0",width:"14px",height:"14px"},"task-list-item-text":{flex:"1","min-width":"0",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},"grid-lines":{},"grid-line-horizontal":{stroke:"#F3F4F6","stroke-width":1},"grid-line-vertical":{stroke:"#E5E7EB","stroke-width":1},"grid-line-time":{stroke:"#FF000080","stroke-width":1},chart:{"user-select":"none",overflow:"hidden"},"chart-calendar-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #E5E7EB",position:"relative","z-index":1},"chart-graph-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #E5E7EB",position:"relative","z-index":0},"chart-area":{},"chart-graph":{overflow:"hidden"},"chart-row-text-wrapper":{},"chart-row-text":{background:"#ffffff","border-radius":"4px","font-family":e,"font-size":"11px","font-weight":"500",color:"#374151",height:"100%",display:"inline-block","box-shadow":"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid #E5E7EB"},"chart-row-text-content":{padding:"2px 8px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"120px"},"chart-row-resize-handle":{fill:"rgba(59, 130, 246, 0.2)",stroke:"rgba(59, 130, 246, 0.8)","stroke-width":"2",cursor:"ew-resize",opacity:"0.3",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-resize-handle--start":{cursor:"w-resize",fill:"rgba(34, 197, 94, 0.3)",stroke:"rgba(34, 197, 94, 0.9)","stroke-width":"2"},"chart-row-resize-handle--end":{cursor:"e-resize",fill:"rgba(239, 68, 68, 0.4)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2"},"chart-row-bar-wrapper:hover .chart-row-resize-handle":{opacity:"0.8"},"chart-row-resize-handle:hover":{opacity:"1",fill:"rgba(59, 130, 246, 0.4)",stroke:"rgba(59, 130, 246, 1)"},"chart-row-resize-handle--start:hover":{fill:"rgba(34, 197, 94, 0.4)",stroke:"rgba(34, 197, 94, 1)"},"chart-row-resize-handle--end:hover":{fill:"rgba(239, 68, 68, 0.5)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"3"},"chart-row-resize-handle--corner":{fill:"rgba(147, 51, 234, 0.6)",stroke:"rgba(147, 51, 234, 1)","stroke-width":"2",cursor:"nw-resize",opacity:"0.9",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-resize-handle--corner:hover":{fill:"rgba(147, 51, 234, 0.8)",stroke:"rgba(147, 51, 234, 1)","stroke-width":"3",opacity:"1"},"chart-row-resize-handle--corner--start":{fill:"rgba(34, 197, 94, 0.7)",stroke:"rgba(34, 197, 94, 1)","stroke-width":"2",cursor:"w-resize"},"chart-row-resize-handle--corner--end":{fill:"rgba(239, 68, 68, 0.7)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2",cursor:"e-resize"},"chart-row-corner-handle--start":{fill:"rgba(34, 197, 94, 0.8)",stroke:"rgba(34, 197, 94, 1)","stroke-width":"2",cursor:"w-resize",opacity:"0.9",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-corner-handle--end":{fill:"rgba(239, 68, 68, 0.8)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2",cursor:"e-resize",opacity:"0.9",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-corner-handle--start:hover":{fill:"rgba(34, 197, 94, 0.5)",stroke:"rgba(34, 197, 94, 1)","stroke-width":"2",opacity:"0.9"},"chart-row-corner-handle--end:hover":{fill:"rgba(239, 68, 68, 0.5)",stroke:"rgba(239, 68, 68, 1)","stroke-width":"2",opacity:"0.9"},"chart-row-extend-handle":{fill:"rgba(255, 255, 255, 0.1)",stroke:"rgba(255, 255, 255, 0.3)","stroke-width":"1",cursor:"ew-resize",opacity:"0.3",transition:"opacity 0.2s ease","pointer-events":"all","z-index":"10"},"chart-row-extend-handle:hover":{fill:"rgba(255, 255, 255, 0.2)",stroke:"rgba(255, 255, 255, 0.6)","stroke-width":"2",opacity:"0.8"},"chart-row-expand-icon-bg":{fill:"rgba(255, 255, 255, 0.95)",stroke:"rgba(0, 0, 0, 0.5)","stroke-width":"1.5",cursor:"ew-resize",opacity:"1",transition:"opacity 0.2s ease","pointer-events":"all"},"chart-row-expand-icon-arrow":{fill:"rgba(0, 0, 0, 0.9)",cursor:"ew-resize","pointer-events":"all"},"chart-row-expand-icon:hover .gantt-elastic__chart-row-expand-icon-bg":{fill:"rgba(255, 255, 255, 1)",stroke:"rgba(0, 0, 0, 0.5)","stroke-width":"1.5",opacity:"1"},"chart-row-expand-icon:hover .gantt-elastic__chart-row-expand-icon-arrow":{fill:"rgba(0, 0, 0, 1)"},"gantt-elastic__task-dragging":{opacity:"0.8","pointer-events":"none",filter:"drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2))"},"gantt-elastic__task-dragging--start":{"border-left":"3px solid #22c55e","box-shadow":"inset 3px 0 0 #22c55e"},"gantt-elastic__task-dragging--end":{"border-right":"3px solid #ef4444","box-shadow":"inset -3px 0 0 #ef4444"},"gantt-elastic__task-dragging--move":{border:"2px solid #3b82f6","box-shadow":"0 0 0 2px rgba(59, 130, 246, 0.3)"},"gantt-elastic__context-menu":{position:"fixed",background:"white",border:"1px solid #e5e7eb","border-radius":"6px","box-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1)","z-index":"1000","min-width":"150px",padding:"4px 0","font-family":"system-ui, -apple-system, sans-serif"},"gantt-elastic__context-menu-item":{padding:"8px 16px",cursor:"pointer","font-size":"14px",color:"#374151",transition:"background-color 0.2s","user-select":"none"},"gantt-elastic__context-menu-item:hover":{"background-color":"#f3f4f6"},"gantt-elastic__date-tooltip":{position:"fixed",background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"4px 8px","border-radius":"4px","font-size":"12px","font-family":"system-ui, -apple-system, sans-serif","pointer-events":"none","z-index":"10000","white-space":"nowrap","box-shadow":"0 2px 4px rgba(0, 0, 0, 0.2)"},"chart-row-text-content--text":{},"chart-row-text-content--html":{},"chart-row-wrapper":{},"chart-row-bar-wrapper":{},"chart-row-bar":{},"chart-row-bar-polygon":{stroke:"#E74C3C","stroke-width":1,fill:"#F75C4C"},"chart-row-project-wrapper":{},"chart-row-project":{},"chart-row-project-polygon":{},"chart-row-epic-wrapper":{},"chart-row-epic":{},"chart-row-epic-polygon":{stroke:"#8B5CF6","stroke-width":2,fill:"#8B5CF6","fill-opacity":.9},"chart-row-subtask-wrapper":{},"chart-row-subtask":{},"chart-row-subtask-polygon":{stroke:"#3B82F6","stroke-width":1,fill:"#3B82F6","fill-opacity":.9},"chart-row-story-wrapper":{},"chart-row-story":{},"chart-row-story-polygon":{stroke:"#86EFAC","stroke-width":1,fill:"#86EFAC","fill-opacity":.9},"chart-row-milestone-wrapper":{},"chart-row-milestone":{},"chart-row-milestone-polygon":{stroke:"#CD5C5C","stroke-width":2,fill:"#CD5C5C","fill-opacity":.9},"chart-row-task-wrapper":{},"chart-row-task":{},"chart-row-task-polygon":{stroke:"#3B82F6","stroke-width":1,fill:"#3B82F6","fill-opacity":.9},"chart-row-progress-bar-wrapper":{},"chart-row-progress-bar":{},"chart-row-progress-bar-line":{stroke:"#ffffff25","stroke-width":20},"chart-row-progress-bar-solid":{fill:"#0EAC51",height:"20%"},"chart-row-progress-bar-pattern":{fill:"url(#diagonalHatch)",transform:"translateY(0.1) scaleY(0.8)"},"chart-row-progress-bar-outline":{stroke:"#E74C3C","stroke-width":1},"chart-dependency-lines-wrapper":{},"chart-dependency-lines-path":{fill:"transparent",stroke:"#FFa00090","stroke-width":2},"chart-scroll-container":{},"chart-scroll-container--horizontal":{overflow:"auto","max-width":"100%"},"chart-scroll-container--vertical":{"overflow-y":"auto","overflow-x":"hidden","max-height":"100%",float:"right"},"chart-days-highlight-rect":{fill:"#f3f5f780"},"slot-header-beforeOptions":{display:"inline-block"}}}var Ae=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,s){return t[0]===e&&(r=s,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),s=this.__entries__[r];return s&&s[1]},e.prototype.set=function(e,r){var s=t(this.__entries__,e);~s?this.__entries__[s][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,s=t(r,e);~s&&r.splice(s,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,s=this.__entries__;r<s.length;r++){var i=s[r];t.call(e,i[1],i[0])}},e}()}(),Re="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,He=function(){return"undefined"!==typeof s.g&&s.g.Math===Math?s.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),Ie=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(He):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),Ve=2;function We(t,e){var r=!1,s=!1,i=0;function o(){r&&(r=!1,t()),s&&a()}function n(){Ie(o)}function a(){var t=Date.now();if(r){if(t-i<Ve)return;s=!0}else r=!0,s=!1,setTimeout(n,e);i=t}return a}var Be=20,Fe=["top","right","bottom","left","width","height","size","weight"],Ne="undefined"!==typeof MutationObserver,Ye=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=We(this.refresh.bind(this),Be)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Re&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ne?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Re&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e,s=Fe.some((function(t){return!!~r.indexOf(t)}));s&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),qe=function(t,e){for(var r=0,s=Object.keys(e);r<s.length;r++){var i=s[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},Ue=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||He},Xe=ir(0,0,0,0);function Ge(t){return parseFloat(t)||0}function Ze(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){var s=t["border-"+r+"-width"];return e+Ge(s)}),0)}function Qe(t){for(var e=["top","right","bottom","left"],r={},s=0,i=e;s<i.length;s++){var o=i[s],n=t["padding-"+o];r[o]=Ge(n)}return r}function Ke(t){var e=t.getBBox();return ir(0,0,e.width,e.height)}function Je(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return Xe;var s=Ue(t).getComputedStyle(t),i=Qe(s),o=i.left+i.right,n=i.top+i.bottom,a=Ge(s.width),l=Ge(s.height);if("border-box"===s.boxSizing&&(Math.round(a+o)!==e&&(a-=Ze(s,"left","right")+o),Math.round(l+n)!==r&&(l-=Ze(s,"top","bottom")+n)),!er(t)){var c=Math.round(a+o)-e,h=Math.round(l+n)-r;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return ir(i.left,i.top,a,l)}var tr=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof Ue(t).SVGGraphicsElement}:function(t){return t instanceof Ue(t).SVGElement&&"function"===typeof t.getBBox}}();function er(t){return t===Ue(t).document.documentElement}function rr(t){return Re?tr(t)?Ke(t):Je(t):Xe}function sr(t){var e=t.x,r=t.y,s=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,n=Object.create(o.prototype);return qe(n,{x:e,y:r,width:s,height:i,top:r,right:e+s,bottom:i+r,left:e}),n}function ir(t,e,r,s){return{x:t,y:e,width:r,height:s}}var or=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ir(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=rr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),nr=function(){function t(t,e){var r=sr(e);qe(this,{target:t,contentRect:r})}return t}(),ar=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new Ae,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof Ue(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new or(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof Ue(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new nr(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),lr="undefined"!==typeof WeakMap?new WeakMap:new Ae,cr=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ye.getInstance(),s=new ar(e,r,this);lr.set(this,s)}return t}();["observe","unobserve","disconnect"].forEach((function(t){cr.prototype[t]=function(){var e;return(e=lr.get(this))[t].apply(e,arguments)}}));var hr=function(){return"undefined"!==typeof He.ResizeObserver?He.ResizeObserver:cr}(),ur=hr,dr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__header",style:{...t.style["header"]}},[e("div",{staticClass:"gantt-elastic__header-title",style:{...t.style["header-title"]}},[t.opts.title.html?t._e():e("div",{staticClass:"gantt-elastic__header-title--text",style:{...t.style["header-title--text"]}},[t._v(" "+t._s(t.opts.title.label)+" ")]),t.opts.title.html?e("div",{staticClass:"gantt-elastic__header-title--html",style:{...t.style["header-title--html"]},domProps:{innerHTML:t._s(t.opts.title.label)}}):t._e()]),e("div",{staticClass:"gantt-elastic__header-options",style:{...t.style["header-options"]}},[e("button",{staticClass:"gantt-elastic__header-btn-recenter",style:{...t.style["header-btn-recenter"]},on:{click:function(e){return e.preventDefault(),t.recenterPosition.apply(null,arguments)}}},[t._v(" "+t._s(t.opts.locale.Now)+" ")]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["X-Scale"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:24,min:2,width:"100px"},model:{value:t.scale,callback:function(e){t.scale=e},expression:"scale"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Y-Scale"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:100,min:7,width:"100px"},model:{value:t.height,callback:function(e){t.height=e},expression:"height"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Before/After"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:31,min:0,width:"100px"},model:{value:t.scope,callback:function(e){t.scope=e},expression:"scope"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Task list width"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:100,min:0,width:"100px"},model:{value:t.divider,callback:function(e){t.divider=e},expression:"divider"}})],1)]),e("label",{staticClass:"gantt-elastic__header-task-list-switch--wrapper",style:{...t.style["header-task-list-switch--label"]}},[e("switches",{staticClass:"gantt-elastic__header-task-list-switch",style:{...t.style["header-task-list-switch"]},model:{value:t.root.state.options.taskList.display,callback:function(e){t.$set(t.root.state.options.taskList,"display",e)},expression:"root.state.options.taskList.display"}}),t._v(" "+t._s(t.opts.locale["Display task list"])+" ")],1)])])},pr=[],fr=s(378),mr=s.n(fr),gr=function(){var t=this,e=t._self._c;return e("label",{class:t.classObject},[t.shouldShowLabel?e("span",{staticClass:"vue-switcher__label"},[t.label?e("span",{domProps:{textContent:t._s(t.label)}}):t._e(),!t.label&&t.value?e("span",{domProps:{textContent:t._s(t.textEnabled)}}):t._e(),t.label||t.value?t._e():e("span",{domProps:{textContent:t._s(t.textDisabled)}})]):t._e(),e("input",{attrs:{type:"checkbox",disabled:t.disabled},domProps:{checked:t.value},on:{change:t.trigger}}),e("div")])},yr=[],vr={name:"switches",props:{typeBold:{default:!1},value:{default:!1},disabled:{default:!1},label:{default:""},textEnabled:{default:""},textDisabled:{default:""},color:{default:"default"},theme:{default:"default"},emitOnMount:{default:!0}},mounted(){this.emitOnMount&&this.$emit("input",this.value)},methods:{trigger(t){this.$emit("input",t.target.checked)}},computed:{classObject(){const{color:t,value:e,theme:r,typeBold:s,disabled:i}=this;return{"vue-switcher":!0,["vue-switcher--unchecked"]:!e,["vue-switcher--disabled"]:i,["vue-switcher--bold"]:s,["vue-switcher--bold--unchecked"]:s&&!e,[`vue-switcher-theme--${r}`]:t,[`vue-switcher-color--${t}`]:t}},shouldShowLabel(){return""!==this.label||""!==this.textEnabled||""!==this.textDisabled}}},wr=vr,kr=f(wr,gr,yr,!1,null,null,null),br=kr.exports;const xr={header:{margin:"0px auto",background:"#f3f5f747",padding:"10px",overflow:"hidden",clear:"both",display:"flex","justify-content":"space-between"},"header-title":{float:"left"},"header-options":{float:"right"},"header-title--text":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-title--html":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-btn-recenter":{background:"#95A5A6",border:"none",outline:"none",cursor:"pointer",color:"white","border-radius":"3px","margin-right":"27px","font-size":"16px",padding:"8px 12px"},"header-slider":{"box-sizing":"content-box"},"header-slider-wrapper":{display:"inline-block","vertical-align":"middle"},"header-slider--slider":{"box-sizing":"content-box"},"header-slider--process":{"box-sizing":"content-box"},"header-task-list-switch--label":{"box-sizing":"content-box"},"header-task-list-switch":{margin:"0px 15px","vertical-align":"middle"},"header-label":{}},_r={title:{label:"ajay",html:!0},locale:{Now:"Now","X-Scale":"Zoom-X","Y-Scale":"Zoom-Y","Task list width":"Task list","Before/After":"Expand","Display task list":"Show task list"}};var Sr={name:"GanttHeader",components:{vueSlider:mr(),Switches:br},props:["options","dynamicStyle"],inject:["root"],data(){return{scaleTimeoutId:null,firstScale:!1,localScale:0,localHeight:0,localBefore:0,localPercent:0,sliderOptions:{xScale:{value:0}},style:{},opts:{}}},created(){_r.title.label=this.root.projectName,this.localScale=this.root.state.options.times.timeZoom,this.localHeight=this.root.state.options.row.height,this.localBefore=this.root.state.options.scope.before,this.localPercent=this.root.state.options.taskList.percent,this.sliderOptions.xScale.value=this.root.state.options.times.timeZoom,this.style=this.root.mergeDeep({},xr,this.dynamicStyle),this.opts=this.root.mergeDeep({},_r,this.options)},methods:{getImage(){this.root.getImage("image/png").then((t=>{const e=document.createElement("a");e.href=t,e.download="gantt-elastic.png",document.body.appendChild(e),e.click(),document.body.removeChild(e)}))},recenterPosition(){this.root.$emit("recenterPosition")},setScale(t){null!==this.scaleTimeoutId&&(clearTimeout(this.scaleTimeoutId),this.scaleTimeoutId=null),this.firstScale?this.scaleTimeoutId=setTimeout((()=>{this.root.$emit("times-timeZoom-change",t),this.scaleTimeoutId=null}),50):(this.root.$emit("times-timeZoom-change",t),this.firstScale=!0)}},computed:{beforeOptionsIsComponent(){const t=this.options.slots.header;return"object"===typeof t.beforeOptions&&!Array.isArray(t.beforeOptions)},beforeOptionsIsHtml(){return"string"===typeof this.options.slots.header.beforeOptions},scale:{get(){return this.localScale},set(t){this.localScale=Number(t),this.setScale(this.localScale)}},height:{get(){return this.localHeight},set(t){this.localHeight=Number(t),this.root.$emit("row-height-change",Number(t))}},scope:{get(){return this.localBefore},set(t){this.localBefore=Number(t),this.root.$emit("scope-change",Number(t))}},divider:{get(){return this.localPercent},set(t){this.localPercent=Number(t),this.root.$emit("taskList-width-change",Number(t))}}}},Tr=Sr,$r=f(Tr,dr,pr,!1,null,null,null),Or=$r.exports;const Mr=document.createElement("canvas").getContext("2d");function Cr(t){let e="en";return"undefined"!==typeof t.locale&&"undefined"!==typeof t.locale.name&&(e=t.locale.name),{slots:{header:{}},taskMapping:{id:"id",start:"start",label:"label",duration:"duration",progress:"progress",type:"type",style:"style",collapsed:"collapsed"},width:0,height:0,clientWidth:0,outerHeight:0,rowsHeight:0,allVisibleTasksHeight:0,scroll:{scrolling:!1,dragXMoveMultiplier:3,dragYMoveMultiplier:2,top:0,taskList:{left:0,right:0,top:0,bottom:0},chart:{left:0,right:0,percent:0,timePercent:0,top:0,bottom:0,time:0,timeCenter:0,dateTime:{left:"",right:""}}},scope:{before:1,after:1},times:{timeScale:6e4,timeZoom:17,timePerPixel:0,firstTime:null,lastTime:null,firstTaskTime:0,lastTaskTime:0,totalViewDurationMs:0,totalViewDurationPx:0,stepDuration:"day",steps:[]},row:{height:24},maxRows:20,maxHeight:0,chart:{grid:{horizontal:{gap:6}},progress:{width:20,height:6,pattern:!0,bar:!1},text:{offset:8,xPadding:12,display:!0},expander:{type:"chart",display:!0,displayIfTaskListHidden:!0,offset:4,size:18}},taskList:{display:!0,resizeAfterThreshold:!0,widthThreshold:75,columns:[{id:0,label:"ID",value:"id",width:40}],percent:100,width:0,finalWidth:0,widthFromPercentage:0,minWidth:18,expander:{type:"task-list",size:18,columnWidth:24,padding:16,margin:10,straight:!1}},calendar:{workingDays:[1,2,3,4,5],gap:6,height:0,strokeWidth:1,hour:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},formatted:{long:[],medium:[],short:[]},format:{long(t){return t.format("HH:mm")},medium(t){return t.format("HH:mm")},short(t){return t.format("HH")}}},day:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{long(t){return t.format("DD dddd")},medium(t){return t.format("DD ddd")},short(t){return t.format("DD")}}},month:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{short(t){return t.format("MM")},medium(t){return t.format("MMM 'YY")},long(t){return t.format("MMMM YYYY")}}},quarter:{height:30,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{short(t){return t.format("Qo quarter")},medium(t){return t.format("Qo 'YY")},long(t){return t.format("Qo quarter YYYY")}}}},locale:{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:t=>{const e=["th","st","nd","rd"],r=t%100;return`[${t}${e[(r-20)%10]||e[r]||e[0]}]`}}}}function Er(t){let e="12px",r=window.getComputedStyle(document.body).getPropertyValue("font-family").toString();return"undefined"!==typeof t&&("undefined"!==typeof t.fontSize&&(e=t.fontSize),"undefined"!==typeof t.fontFamily&&(r=t.fontFamily)),ze(e,r)}function Dr(t){return t&&"object"===typeof t&&!Array.isArray(t)&&!(t instanceof HTMLElement)&&!(t instanceof CanvasRenderingContext2D)&&"function"!==typeof t}function Pr(t,...e){if(!e.length)return t;const r=e.shift();if(Dr(t)&&Dr(r))for(const s in r)if(Dr(r[s]))"undefined"===typeof t[s]&&(t[s]={}),t[s]=Pr(t[s],r[s]);else if(Array.isArray(r[s])){t[s]=[];for(let e of r[s])Dr(e)?t[s].push(Pr({},e)):t[s].push(e)}else t[s]=r[s];return Pr(t,...e)}function Lr(t,e,...r){if(!r.length)return e;const s=r.shift();if(Dr(e)&&Dr(s))for(const i in s)Dr(s[i])?("undefined"===typeof e[i]&&t.$set(e,i,{}),Lr(t,e[i],s[i])):Array.isArray(s[i])?t.$set(e,i,s[i]):"function"===typeof s[i]?-1===s[i].toString().indexOf("[native code]")&&(e[i]=s[i]):t.$set(e,i,s[i]);return Lr(t,e,...r)}function jr(t,e,r=[],s=""){if(typeof e!==typeof t)return{left:t,right:e,what:s+".typeof"};if(Array.isArray(t)&&!Array.isArray(e))return{left:t,right:e,what:s+".isArray"};if(Array.isArray(e)&&!Array.isArray(t))return{left:t,right:e,what:s+".isArray"};if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{left:t,right:e,what:s+".length"};let i;for(let o=0,n=t.length;o<n;o++)if(i=jr(t[o],e[o],r,s+"."+o))return i}else{if(Dr(t)&&!Dr(e))return{left:t,right:e,what:s+".isObject"};if(Dr(e)&&!Dr(t))return{left:t,right:e,what:s+".isObject"};if(Dr(t)&&Dr(e))for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.prototype.propertyIsEnumerable.call(t,i))continue;if(!Object.prototype.hasOwnProperty.call(e,i))return{left:t,right:e,what:s+"."+i};let o;if(o=jr(t[i],e[i],r,s+"."+i))return o}else if(t!==e)return{left:t,right:e,what:s+". !=="}}return!1}const zr={name:"GanttElastic",components:{MainView:je,"gantt-header":Or,"gantt-view-filter":g},props:["tasks","options","dynamicStyle","isHeaderVisible","projectName"],provide(){const t={},e=this;return Object.defineProperty(t,"root",{enumerable:!0,get:()=>e}),t},data(){return{state:{tasks:[],options:{scrollBarHeight:0,allVisibleTasksHeight:0,outerHeight:0,scroll:{left:0,top:0}},dynamicStyle:{},refs:{},tasksById:{},taskTree:{},ctx:Mr,emitTasksChanges:!0,emitOptionsChanges:!0,resizeObserver:null,unwatchTasks:null,unwatchOptions:null,unwatchStyle:null,unwatchOutputTasks:null,unwatchOutputOptions:null,unwatchOutputStyle:null}}},methods:{mergeDeep:Pr,mergeDeepReactive:Lr,onViewModeChanged(t){if(this.options.calendar.viewMode=t,this.options.times)switch(t){case"quarter":this.options.times.stepDuration="quarter",this.options.times.timeZoom=15;break;case"month":this.options.times.stepDuration="month",this.options.times.timeZoom=17;break;case"week":this.options.times.stepDuration="week",this.options.times.timeZoom=19;break;default:this.options.times.stepDuration="day",this.options.times.timeZoom=21;break}this.$emit("view-mode-changed",t),this.$root.$emit("gantt-view-mode-changed",t),console.log("View mode changed - from GanttElastic:",t),this.$nextTick((()=>{this.$forceUpdate(),this.$refs.ganttChart&&(this.$refs.ganttChart.prepareDates(),this.$refs.ganttChart.initTimes(),this.$refs.ganttChart.calculateSteps(),this.$refs.ganttChart.computeCalendarWidths(),this.$refs.ganttChart.ensureCalendarChartAlignment&&this.$refs.ganttChart.ensureCalendarChartAlignment())}))},handleTaskUpdated(t){console.log("Task updated -- GanttElastic:"),this.$emit("task-updated",t),this.$emit("gantt-task-updated",t),this.$root.$emit("gantt-task-updated",t)},getScrollBarHeight(){const t=document.createElement("div");t.style.visibility="hidden",t.style.height="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var e=t.offsetHeight;t.style.overflow="scroll";var r=document.createElement("div");r.style.height="100%",t.appendChild(r);var s=r.offsetHeight;t.parentNode.removeChild(t);const i=e-s;return this.style["chart-scroll-container--vertical"]["margin-left"]=`-${i}px`,this.state.options.scrollBarHeight=i},fillTasks(t){for(let e of t)"undefined"===typeof e.x&&(e.x=0),"undefined"===typeof e.y&&(e.y=0),"undefined"===typeof e.width&&(e.width=0),"undefined"===typeof e.height&&(e.height=0),"undefined"===typeof e.mouseOver&&(e.mouseOver=!1),"undefined"===typeof e.collapsed&&(e.collapsed=!1),"undefined"===typeof e.dependentOn&&(e.dependentOn=[]),"undefined"===typeof e.parentId&&(e.parentId=null),"undefined"===typeof e.style&&(e.style={}),"undefined"===typeof e.children&&(e.children=[]),"undefined"===typeof e.allChildren&&(e.allChildren=[]),"undefined"===typeof e.parents&&(e.parents=[]),"undefined"===typeof e.parent&&(e.parent=null),"undefined"===typeof e.startTime&&(e.startTime=c()(e.start).valueOf()),"undefined"===typeof e.endTime&&Object.prototype.hasOwnProperty.call(e,"end")?e.endTime=c()(e.end).valueOf():"undefined"===typeof e.endTime&&Object.prototype.hasOwnProperty.call(e,"duration")&&(e.endTime=e.startTime+e.duration),"undefined"===typeof e.duration&&Object.prototype.hasOwnProperty.call(e,"endTime")&&(e.duration=e.endTime-e.startTime);return t},mapTasks(t,e){for(let[r,s]of t.entries())t[r]={...s,id:s[e.taskMapping.id],start:s[e.taskMapping.start],label:s[e.taskMapping.label],duration:s[e.taskMapping.duration],progress:s[e.taskMapping.progress],type:s[e.taskMapping.type],style:s[e.taskMapping.style],collapsed:s[e.taskMapping.collapsed]};return t},initialize(t=""){let e=Pr({},this.state.options,Cr(this.options),this.options),r=this.mapTasks(this.tasks,e);0===Object.keys(this.state.dynamicStyle).length&&this.initializeStyle(),c().locale(e.locale,null,!0),c().locale(e.locale.name),"undefined"===typeof e.taskList&&(e.taskList={}),e.taskList.columns=e.taskList.columns.map(((t,e)=>(t.thresholdPercent=100,t.widthFromPercentage=0,t.finalWidth=0,"undefined"===typeof t.height&&(t.height=0),"undefined"===typeof t.style&&(t.style={}),t._id=`${e}-${t.label}`,t))),this.state.options=e,r=this.fillTasks(r),this.state.tasksById=this.resetTaskTree(r),this.state.taskTree=this.makeTaskTree(this.state.rootTask,r);const s=new Set;this.state.taskTree.allChildren.forEach((t=>{s.add(t)})),r.forEach((t=>{t.allChildren&&t.allChildren.length>0&&s.add(t.id)})),this.state.tasks=Array.from(s).map((t=>this.getTask(t))),this.calculateTaskListColumnsDimensions(),this.state.options.scrollBarHeight=this.getScrollBarHeight(),this.state.options.outerHeight=this.state.options.height+this.state.options.scrollBarHeight,this.globalOnResize()},initializeStyle(){this.state.dynamicStyle=Pr({},Er(this.dynamicStyle),this.dynamicStyle)},getCalendarHeight(){return this.state.options.calendar.height+this.state.options.calendar.strokeWidth},getMaximalLevel(){let t=0;return this.state.tasks.forEach((e=>{e.parents.length>t&&(t=e.parents.length)})),t-1},getMaximalExpanderWidth(){return this.getMaximalLevel()*this.state.options.taskList.expander.padding+this.state.options.taskList.expander.margin},syncScrollTop(){this.state.refs.taskListItems&&this.state.refs.chartGraph.scrollTop!==this.state.refs.taskListItems.scrollTop&&(this.state.options.scroll.top=this.state.refs.taskListItems.scrollTop=this.state.refs.chartScrollContainerVertical.scrollTop=this.state.refs.chartGraph.scrollTop)},calculateTaskListColumnsDimensions(){let t=0,e=0;for(let r of this.state.options.taskList.columns)r.expander?r.widthFromPercentage=(this.getMaximalExpanderWidth()+r.width)/100*this.state.options.taskList.percent:r.widthFromPercentage=r.width/100*this.state.options.taskList.percent,e+=r.widthFromPercentage,r.finalWidth=r.thresholdPercent*r.widthFromPercentage/100,t+=r.finalWidth,r.height=this.getTaskHeight()-this.style["grid-line-horizontal"]["stroke-width"];this.state.options.taskList.widthFromPercentage=e,this.state.options.taskList.finalWidth=t},resetTaskTree(t){this.$set(this.state,"rootTask",{id:null,label:"root",children:[],allChildren:[],parents:[],parent:null,__root:!0});const e={};for(let r=0,s=t.length;r<s;r++){let s=t[r];s.children=[],s.allChildren=[],s.parent=null,s.parents=[],e[s.id]=s}return e},makeTaskTree(t,e){for(let r=0,s=e.length;r<s;r++){let s=e[r];s.parentId===t.id&&(t.parents.length&&t.parents.forEach((t=>s.parents.push(t))),Object.prototype.propertyIsEnumerable.call(t,"__root")?(s.parents=[],s.parent=null):(s.parents.push(t.id),s.parent=t.id),s=this.makeTaskTree(s,e),t.allChildren.push(s.id),t.children.push(s.id),s.allChildren.forEach((e=>t.allChildren.push(e))))}return t},getTask(t){return"undefined"!==typeof this.state.tasksById[t]?this.state.tasksById[t]:null},getChildren(t){return this.state.tasks.filter((e=>e.parent===t))},isTaskVisible(t){if("number"!==typeof t&&"string"!==typeof t||(t=this.getTask(t)),t.allChildren&&t.allChildren.length>0)return!0;for(let e=0,r=t.parents.length;e<r;e++){const r=this.getTask(t.parents[e]);if(r&&r.collapsed)return!1}return!0},getSVG(){return this.state.options.mainView.outerHTML},getImage(t="image/png"){return new Promise((e=>{const r=new Image;r.onload=()=>{const s=document.createElement("canvas");s.width=this.state.options.mainView.clientWidth,s.height=this.state.options.rowsHeight,s.getContext("2d").drawImage(r,0,0),e(s.toDataURL(t))},r.src="data:image/svg+xml,"+encodeURIComponent(this.getSVG())}))},getHeight(t,e=!1){let r;if(t.length>0)r=t.length*(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)+this.state.options.calendar.height+this.state.options.calendar.strokeWidth+this.state.options.calendar.gap;else{const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,s=.7*t-e-40;r=Math.max(s,300)}return e&&(r+=this.state.options.scrollBarHeight),r},getTaskHeight(t=!1){return t?this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap+this.style["grid-line-horizontal"]["stroke-width"]:this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap},getTasksHeight(t){const e=t.length*this.getTaskHeight();if(t.length>0)return e;const r=window.innerHeight,s=this.state.options.calendar.height+this.state.options.calendar.gap,i=.7*r-s-40,o=Math.max(i,300);return o},timeToPixelOffsetX(t){let e=t-this.state.options.times.firstTime;return e&&(e/=this.state.options.times.timePerPixel),e},pixelOffsetXToTime(t){let e=t+this.style["grid-line-vertical"]["stroke-width"]/2;return e*this.state.options.times.timePerPixel+this.state.options.times.firstTime},isInsideViewPort(t,e,r=5e3){return t+e+r>=this.state.options.scroll.chart.left&&t-r<=this.state.options.scroll.chart.right||t-r<=this.state.options.scroll.chart.left&&t+e+r>=this.state.options.scroll.chart.right},onScrollChart(t){this._onScrollChart(this.state.refs.chartScrollContainerHorizontal.scrollLeft,this.state.refs.chartScrollContainerVertical.scrollTop)},_onScrollChart(t,e){if(this.state.options.scroll.chart.left===t&&this.state.options.scroll.chart.top===e)return;const r=this.state.refs.chartContainer.clientWidth;this.state.options.scroll.chart.left=t,this.state.options.scroll.chart.right=t+r,this.state.options.scroll.chart.percent=t/this.state.options.times.totalViewDurationPx*100,this.state.options.scroll.chart.top=e,this.state.options.scroll.chart.time=this.pixelOffsetXToTime(t),this.state.options.scroll.chart.timeCenter=this.pixelOffsetXToTime(t+r/2),this.state.options.scroll.chart.dateTime.left=c()(this.state.options.scroll.chart.time).valueOf(),this.state.options.scroll.chart.dateTime.right=c()(this.pixelOffsetXToTime(t+this.state.refs.chart.clientWidth)).valueOf(),this.scrollTo(t,e)},scrollToTime(t){let e=this.timeToPixelOffsetX(t);const r=this.state.refs.chartContainer.clientWidth;e-=r/2,e>this.state.options.width&&(e=this.state.options.width-r),this.scrollTo(e)},scrollTo(t=null,e=null){null!==t&&(this.state.refs.chartCalendarContainer.scrollLeft=t,this.state.refs.chartGraphContainer.scrollLeft=t,this.state.refs.chartScrollContainerHorizontal.scrollLeft=t,this.state.options.scroll.left=t),null!==e&&(this.state.refs.chartScrollContainerVertical.scrollTop=e,this.state.refs.chartGraph.scrollTop=e,this.state.refs.taskListItems.scrollTop=e,this.state.options.scroll.top=e,this.syncScrollTop())},fixScrollPos(){this.scrollToTime(this.state.options.scroll.chart.timeCenter)},onWheelChart(t){if(t.shiftKey||0!==t.deltaX)if(t.shiftKey&&0===t.deltaX){let e=this.state.options.scroll.left+t.deltaY;const r=this.state.refs.chartScrollContainerHorizontal.clientWidth,s=this.state.refs.chartScrollContainerHorizontal.scrollWidth-r;e<0?e=0:e>s&&(e=s),this.scrollTo(e)}else{let e=this.state.options.scroll.left+t.deltaX;const r=this.state.refs.chartScrollContainerHorizontal.clientWidth,s=this.state.refs.chartScrollContainerHorizontal.scrollWidth-r;e<0?e=0:e>s&&(e=s),this.scrollTo(e)}else{let e=this.state.options.scroll.top+t.deltaY;const r=this.state.options.rowsHeight,s=this.state.refs.chartGraph.scrollHeight-r;e<0?e=0:e>s&&(e=s),this.scrollTo(null,e)}},onTimeZoomChange(t){this.state.options.times.timeZoom=t,this.recalculateTimes(),this.calculateSteps(),this.fixScrollPos()},onRowHeightChange(t){this.state.options.row.height=t,this.calculateTaskListColumnsDimensions(),this.syncScrollTop()},onScopeChange(t){this.state.options.scope.before=t,this.state.options.scope.after=t,this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.fixScrollPos()},onTaskListWidthChange(t){this.state.options.taskList.percent=t,this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},onTaskListColumnWidthChange(){this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},initializeEvents(){this.$on("chart-scroll-horizontal",this.onScrollChart),this.$on("chart-scroll-vertical",this.onScrollChart),this.$on("chart-wheel",this.onWheelChart),this.$on("times-timeZoom-change",this.onTimeZoomChange),this.$on("row-height-change",this.onRowHeightChange),this.$on("scope-change",this.onScopeChange),this.$on("taskList-width-change",this.onTaskListWidthChange),this.$on("taskList-column-width-change",this.onTaskListColumnWidthChange)},getResponsiveStepWidths(t){const e=this.state.options.clientWidth,r={day:{mobile:40,tablet:50,desktopSmall:60,desktopBig:80},week:{mobile:80,tablet:100,desktopSmall:120,desktopBig:150},month:{mobile:120,tablet:140,desktopSmall:160,desktopBig:200},quarter:{mobile:200,tablet:250,desktopSmall:300,desktopBig:400}};let s;s=e<768?"mobile":e<1024?"tablet":e<1440?"desktopSmall":"desktopBig";let i=r[t][s];const o=this.getDataBasedStepWidth(t,e);return Math.max(i,o)},getDataBasedStepWidth(t,e){const r=this.getEstimatedStepCount(t),s=300,i=e-s,o={day:30,week:12,month:8,quarter:3},n=Math.max(r,o[t]),a={day:30,week:60,month:80,quarter:120},l=i/n,c=Math.max(l,a[t]),h={day:100,week:200,month:300,quarter:500};return Math.min(c,h[t])},getMaxWidthMultiplier(t,e){const r=this.state.options.clientWidth,s={mobile:1.5,tablet:1.8,desktopSmall:2.2,desktopBig:2.5};let i;i=r<768?"mobile":r<1024?"tablet":r<1440?"desktopSmall":"desktopBig";let o=s[i];const n={day:30,week:12,month:8,quarter:3};if(e>n[t]){const r=e/n[t];o=Math.min(o*(1+.3*r),3)}return o},getEstimatedStepCount(t){c()(this.state.options.times.lastTime).diff(this.state.options.times.firstTime,"milliseconds");switch(t){case"quarter":return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"quarter",!0));case"month":return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"month",!0));case"week":return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"week",!0));case"day":default:return Math.ceil(c()(this.state.options.times.lastTime).diff(c()(this.state.options.times.firstTime),"day",!0))}},recalculateTimes(){const t=this.state.options.times.stepDuration,e=this.state.options.times.timeZoom;const r=c()(this.state.options.times.lastTime).diff(this.state.options.times.firstTime,"milliseconds"),s=this.getResponsiveStepWidths(t),i=this.getEstimatedStepCount(t),o={day:30,week:12,month:8,quarter:3},n=Math.max(i,o[t]);if(i<o[t]){const e=c()(this.state.options.times.firstTime);let r;switch(t){case"month":r=e.add(8,"month");break;case"week":r=e.add(12,"week");break;case"quarter":r=e.add(3,"quarter");break;case"day":default:r=e.add(30,"day");break}this.state.options.times.lastTime=r.valueOf();const i=r.diff(e,"milliseconds"),n=o[t];return this.state.options.times.timePerPixel=i/(n*s),this.state.options.times.totalViewDurationMs=i,void(this.state.options.times.totalViewDurationPx=n*s)}const a=n*s;this.state.options.times.timePerPixel=r/a;const l=Math.pow(.8,(e-17)/10);this.state.options.times.timePerPixel*=l,this.state.options.times.totalViewDurationMs=r,this.state.options.times.totalViewDurationPx=this.state.options.times.totalViewDurationMs/this.state.options.times.timePerPixel;const h=this.state.options.times.totalViewDurationPx+this.style["grid-line-vertical"]["stroke-width"],u=this.getMaxWidthMultiplier(t,n),d=this.state.options.clientWidth*u,p=1.1*this.state.options.clientWidth,f=Math.max(h,p);f>d?(this.state.options.times.timePerPixel=r/(d-this.style["grid-line-vertical"]["stroke-width"]),this.state.options.times.totalViewDurationPx=r/this.state.options.times.timePerPixel,this.state.options.width=d):this.state.options.width=f},initTimes(){const t=c()(this.state.options.times.firstTaskTime).startOf("day"),e=this.calculateDynamicStartDate(),r=t.isBefore(e)?t:e;this.state.options.times.firstTime=r.locale(this.state.options.locale.name).subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=c()(this.state.options.times.lastTaskTime).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf(),this.recalculateTimes()},calculateSteps(){const t=[],e=c()(this.state.options.times.lastTime).valueOf(),r=this.state.options.times.stepDuration,s=(t,e)=>{switch(e){case"quarter":return t.startOf("quarter");case"month":return t.startOf("month");case"week":return t.startOf("week");case"day":default:return t.startOf("day")}},i=c()(this.state.options.times.firstTime);t.push({time:i.valueOf(),offset:{ms:0,px:0}});let o=s(i.clone().add(1,r),r);while(o.valueOf()<=e){const e=o.diff(this.state.options.times.firstTime,"milliseconds"),i=Math.round(e/this.state.options.times.timePerPixel),n={time:o.valueOf(),offset:{ms:e,px:i}},a=t[t.length-1];a.width={ms:e-a.offset.ms,px:Math.round(i-a.offset.px)},t.push(n),o=s(o.add(1,r),r)}const n=t[t.length-1];n.width={ms:this.state.options.times.totalViewDurationMs-n.offset.ms,px:Math.round(this.state.options.times.totalViewDurationPx-n.offset.px)},this.state.options.times.steps=t},computeCalendarWidths(){this.computeDayWidths(),this.computeHourWidths(),this.computeMonthWidths()},computeHourWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--hour"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];const e=this.state.options.locale.name;let r=c()("2018-01-01T00:00:00").locale(e),s=this.state.options.calendar.hour.maxWidths;if(!s.length){for(let t in this.state.options.calendar.hour.format)s[t]=0;for(let t=0;t<24;t++){let e={hour:t};for(let t in this.state.options.calendar.hour.format){const s=this.state.options.calendar.hour.format[t](r);this.state.options.calendar.hour.formatted[t].push(s),e[t]=this.state.ctx.measureText(s).width}this.state.options.calendar.hour.widths.push(e);for(let t in this.state.options.calendar.hour.format)e[t]>s[t]&&(s[t]=e[t]);r=r.add(1,"hour")}}},computeDayWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--day"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];const e=this.state.options.locale.name;let r=c()(this.state.options.times.steps[0].time).locale(e),s=this.state.options.calendar.day.maxWidths;this.state.options.calendar.day.widths=[],Object.keys(this.state.options.calendar.day.format).forEach((t=>{s[t]=0}));for(let i=0,o=this.state.options.times.steps.length;i<o;i++){const t={day:i};Object.keys(this.state.options.calendar.day.format).forEach((e=>{t[e]=this.state.ctx.measureText(this.state.options.calendar.day.format[e](r)).width})),this.state.options.calendar.day.widths.push(t),Object.keys(this.state.options.calendar.day.format).forEach((e=>{t[e]>s[e]&&(s[e]=t[e])})),r=r.add(1,"day")}},monthsCount(t,e){if(t>e)return 0;let r=c()(t),s=r.clone(),i=1;while(r.valueOf()<=e)r=r.add(1,"day"),s.month()!==r.month()&&i++,s=r.clone();return i},computeMonthWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--month"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];let e=this.state.options.calendar.month.maxWidths;this.state.options.calendar.month.widths=[],Object.keys(this.state.options.calendar.month.format).forEach((t=>{e[t]=0}));const r=this.state.options.locale.name;let s=c()(this.state.options.times.firstTime).locale(r);const i=this.monthsCount(this.state.options.times.firstTime,this.state.options.times.lastTime);for(let o=0;o<i;o++){const t={month:o};Object.keys(this.state.options.calendar.month.format).forEach((e=>{t[e]=this.state.ctx.measureText(this.state.options.calendar.month.format[e](s)).width})),this.state.options.calendar.month.widths.push(t),Object.keys(this.state.options.calendar.month.format).forEach((r=>{t[r]>e[r]&&(e[r]=t[r])})),s=s.add(1,"month")}},calculateDynamicStartDate(){const t=c()(),e=this.state.options.times.stepDuration;let r;switch(e){case"day":r=t.startOf("day");break;case"week":r=t.subtract(1,"week").startOf("week");break;case"month":r=t.subtract(1,"month").startOf("month");break;case"quarter":r=t.subtract(1,"quarter").startOf("quarter");break;default:r=t.startOf("day")}return r},prepareDates(){let t=Number.MAX_SAFE_INTEGER,e=0;for(let o=0,n=this.state.tasks.length;o<n;o++){let r=this.state.tasks[o];r.startTime<t&&(t=r.startTime),r.startTime+r.duration>e&&(e=r.startTime+r.duration)}this.state.options.times.firstTaskTime=t,this.state.options.times.lastTaskTime=e;const r=c()(t).startOf("day"),s=this.calculateDynamicStartDate(),i=r.isBefore(s)?r:s;this.state.options.times.firstTime=i.locale(this.state.options.locale.name).subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=c()(e).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf()},setup(t=""){this.initialize(t),this.prepareDates(),this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.state.options.taskList.width=this.state.options.taskList.columns.reduce(((t,e)=>({width:t.width+e.width})),{width:0}).width},recalculateHeight(){const t=this.state.tasks.filter((t=>this.isTaskVisible(t)));if(t.length>0)this.state.options.rowsHeight=this.getTasksHeight(t),this.state.options.height=this.getHeight(t),this.state.options.allVisibleTasksHeight=this.getTasksHeight(t),this.state.options.outerHeight=this.getHeight(t,!0);else{const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,r=.7*t-e-40,s=Math.max(r,300);this.state.options.rowsHeight=s,this.state.options.height=s+this.state.options.calendar.height+this.state.options.calendar.gap,this.state.options.allVisibleTasksHeight=s,this.state.options.outerHeight=this.state.options.height+this.state.options.scrollBarHeight}},globalOnResize(){if("undefined"!==typeof this.$el&&this.$el){if(this.state.options.clientWidth=this.$el.clientWidth,0===this.state.tasks.length){const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,r=.7*t-e-40;this.state.options.height=Math.max(r,300)}if(this.state.options.taskList.widthFromPercentage>this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold){const t=this.state.options.taskList.widthFromPercentage-this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold;let e=100-t/this.state.options.taskList.widthFromPercentage*100;e<0&&(e=0),this.state.options.taskList.columns.forEach((t=>{t.thresholdPercent=e}))}else this.state.options.taskList.columns.forEach((t=>{t.thresholdPercent=100}));this.calculateTaskListColumnsDimensions(),this.recalculateTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.$emit("calendar-recalculate"),this.syncScrollTop(),this.recalculateHeight()}}},computed:{visibleTasks(){const t=this.state.tasks.filter((t=>this.isTaskVisible(t)));this.state.options.rowsHeight=this.getTasksHeight(t);let e=0;this.state.options.maxHeight&&this.state.options.rowsHeight>this.state.options.maxHeight&&(e=this.state.options.rowsHeight-this.state.options.maxHeight,this.state.options.rowsHeight=this.state.options.maxHeight),this.state.options.height=this.getHeight(t)-e,this.state.options.allVisibleTasksHeight=this.getTasksHeight(t),this.state.options.outerHeight=this.getHeight(t,!0)-e;let r=t.length;for(let s=0;s<r;s++){let e=t[s];e.width=e.duration/this.state.options.times.timePerPixel-this.style["grid-line-vertical"]["stroke-width"],e.width<0&&(e.width=0),e.height=this.state.options.row.height,e.x=this.timeToPixelOffsetX(e.startTime),e.y=(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)*s+this.state.options.chart.grid.horizontal.gap}return t},style(){return this.state.dynamicStyle},getTaskListColumns(){return this.calculateTaskListColumnsDimensions(),this.state.options.taskList.columns},outputTasks(){return this.state.tasks},outputOptions(){return this.state.options}},created(){this.initializeEvents(),this.setup(),this.state.unwatchTasks=this.$watch("tasks",(t=>{const e=jr(t,this.outputTasks);e&&this.setup("tasks"),this.$nextTick((()=>{this.recalculateHeight()}))}),{deep:!0}),this.state.unwatchOptions=this.$watch("options",(t=>{const e=jr(t,this.outputOptions);e&&this.setup("options")}),{deep:!0}),this.state.unwatchStyle=this.$watch("dynamicStyle",(t=>{const e=jr(t,this.dynamicStyle);e&&this.initializeStyle()}),{deep:!0,immediate:!0}),this.state.unwatchOutputTasks=this.$watch("outputTasks",(t=>{this.$emit("tasks-changed",t.map((t=>t)))}),{deep:!0}),this.state.unwatchOutputOptions=this.$watch("outputOptions",(t=>{this.$emit("options-changed",Pr({},t))}),{deep:!0}),this.state.unwatchOutputStyle=this.$watch("style",(t=>{this.$emit("dynamic-style-changed",Pr({},t))}),{deep:!0}),this.$root.$emit("gantt-elastic-created",this),this.$emit("created",this)},beforeMount(){this.$emit("before-mount",this)},mounted(){if(this.state.options.clientWidth=this.$el.clientWidth,0===this.state.tasks.length){const t=window.innerHeight,e=this.state.options.calendar.height+this.state.options.calendar.gap,r=.7*t-e-40;this.state.options.height=Math.max(r,300)}this.state.resizeObserver=new ur(((t,e)=>{this.globalOnResize()})),this.state.resizeObserver.observe(this.$el.parentNode),window.addEventListener("resize",this.globalOnResize),this.globalOnResize(),this.recalculateHeight(),this.$emit("ready",this),this.$root.$emit("gantt-elastic-mounted",this),this.$emit("mounted",this),this.$root.$emit("gantt-elastic-ready",this),this.$gantt={onTaskUpdated:this.handleTaskUpdated,onViewModeChanged:this.onViewModeChanged,getTasks:()=>this.state.tasks,updateTask:(t,e)=>{const r=this.state.tasks.findIndex((e=>e.id===t));-1!==r&&(Object.assign(this.state.tasks[r],e),this.$forceUpdate())}}},beforeUpdate(){this.$emit("before-update")},updated(){this.$nextTick((()=>{this.$emit("updated")}))},beforeDestroy(){this.state.resizeObserver.unobserve(this.$el.parentNode),window.removeEventListener("resize",this.globalOnResize),this.state.unwatchTasks(),this.state.unwatchOptions(),this.state.unwatchStyle(),this.state.unwatchOutputTasks(),this.state.unwatchOutputOptions(),this.state.unwatchOutputStyle(),this.$emit("before-destroy")},destroyed(){this.$emit("destroyed")}};var Ar=zr,Rr=Ar,Hr=f(Rr,n,a,!1,null,null,null),Ir=Hr.exports,Vr={name:"GanttElasticStandalone",components:{"gantt-elastic":Ir},props:{tasks:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},dynamicStyle:{type:Object,default:()=>({})},header:{type:Object,default:()=>({})},footer:{type:Object,default:()=>({})}},data(){return{components:{header:this.header,footer:this.footer}}}},Wr=Vr,Br=f(Wr,r,o,!1,null,null,null),Fr=Br.exports,Nr={install(t,e={}){t.component("tg-ganttchart",Fr)}},Yr=Nr}(),i}()}));
7
7
  //# sourceMappingURL=tgganttchart.umd.min.js.map