From d1a6e0075a9d4130ca8a07206cb73835ff1f1306 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 30 Mar 2019 09:16:48 -0400 Subject: removal of unecessary files --- www/external/timeline.min.js | 1 - 1 file changed, 1 deletion(-) delete mode 100644 www/external/timeline.min.js (limited to 'www/external/timeline.min.js') diff --git a/www/external/timeline.min.js b/www/external/timeline.min.js deleted file mode 100644 index d1197368..00000000 --- a/www/external/timeline.min.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.timeline=e():t.timeline=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=155)}([function(t,e,i){var n=i(3),o=i(12),r=i(20),s=i(13),a=i(29),h="prototype",l=function(t,e,i){var u,c,d,f,p=t&l.F,m=t&l.G,v=t&l.S,g=t&l.P,y=t&l.B,b=m?n:v?n[e]||(n[e]={}):(n[e]||{})[h],_=m?o:o[e]||(o[e]={}),w=_[h]||(_[h]={});m&&(i=e);for(u in i)d=((c=!p&&b&&void 0!==b[u])?b:i)[u],f=y&&c?a(d,n):g&&"function"==typeof d?a(Function.call,d):d,b&&s(b,u,d,t&l.U),_[u]!=d&&r(_,u,f),g&&w[u]!=d&&(w[u]=d)};n.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(4);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function i(t,e){for(var i=0;i0?o(n(t),9007199254740991):0}},function(t,e,i){function n(t){return t instanceof Number||"number"==typeof t}function o(t){if(t)for(;!0===t.hasChildNodes();)o(t.firstChild),t.removeChild(t.firstChild)}function r(t){return t instanceof String||"string"==typeof t}function s(t,e,i,n){var o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}function a(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)void 0!==e[n]&&(null===e[n]||"object"!==w()(e[n])?s(t,e,n,i):"object"===w()(t[n])&&a(t[n],e[n],i))}function h(t,e){for(var i=1;i2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(e.hasOwnProperty(o)||!0===i)if(e[o]&&e[o].constructor===Object)void 0===t[o]&&(t[o]={}),t[o].constructor===Object?l(t[o],e[o],i):s(t,e,o,n);else if(Array.isArray(e[o])){t[o]=[];for(var r=0;r3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");var o=!0,r=!1,a=void 0;try{for(var h,u=t[Symbol.iterator]();!(o=(h=u.next()).done);o=!0){var c=h.value;if(i.hasOwnProperty(c))if(i[c]&&i[c].constructor===Object)void 0===e[c]&&(e[c]={}),e[c].constructor===Object?l(e[c],i[c],!1,n):s(e,i,c,n);else{if(Array.isArray(i[c]))throw new TypeError("Arrays are not supported by deepExtend");s(e,i,c,n)}}}catch(t){r=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(r)throw a}}return e},e.selectiveNotDeepExtend=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(i.hasOwnProperty(o)&&!t.includes(o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?l(e[o],i[o]):s(e,i,o,n);else if(Array.isArray(i[o])){e[o]=[];for(var r=0;r0&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[i]=n}return t},e.mergeOptions=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!==t&&void 0!==t},r=function(t){return null!==t&&"object"===w()(t)};if(!r(t))throw new Error("Parameter mergeTarget must be an object");if(!r(e))throw new Error("Parameter options must be an object");if(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");var s=e[i],a=r(n)&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(n)?n[i]:void 0,h=a?a.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return r(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!r(t[i])){if(!o(a))return;t[i]=Object.create(a)}if(r(s)){var l=!0;void 0!==s.enabled?l=s.enabled:void 0!==h&&(l=a.enabled),function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}(t,e,i),t[i].enabled=l}}},e.binarySearchCustom=function(t,e,i,n){for(var o=0,r=0,s=t.length-1;r<=s&&o<1e4;){var a=Math.floor((r+s)/2),h=t[a],l=e(void 0===n?h[i]:h[i][n]);if(0==l)return a;-1==l?r=a+1:s=a-1,o++}return-1},e.binarySearchValue=function(t,e,i,n,o){var r,s,a,h,l=0,u=0,c=t.length-1;for(o=void 0!=o?o:function(t,e){return t==e?0:t0)return"before"==n?Math.max(0,h-1):h;if(o(s,e)<0&&o(a,e)>0)return"before"==n?h:Math.min(t.length-1,h+1);o(s,e)<0?u=h+1:c=h-1,l++}return-1},i.d(e,"easingFunctions",function(){return C}),e.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},e.topMost=function(t,e){var i;Array.isArray(e)||(e=[e]);var n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var h=s.value;if(h){i=h[e[0]];for(var l=1;l"+o+""};t.exports=function(t,e){var i={};i[t]=e(a),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){var n=i(27),o=i(28);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e}},function(t,e){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(e)}t.exports=i},function(t,e,i){var n=i(327);t.exports=function(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&&n(t,e)}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(10),o=i(37);t.exports=i(11)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(55),o=i(32);t.exports=function(t){return n(o(t))}},function(t,e,i){var n=i(1);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(56),o=i(37),r=i(21),s=i(35),a=i(19),h=i(108),l=Object.getOwnPropertyDescriptor;e.f=i(11)?l:function(t,e){if(t=r(t),e=s(e,!0),h)try{return l(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(0),o=i(12),r=i(1);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],s={};s[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",s)}},function(t,e,i){var n=i(29),o=i(55),r=i(14),s=i(8),a=i(248);t.exports=function(t,e){var i=1==t,h=2==t,l=3==t,u=4==t,c=6==t,d=5==t||c,f=e||a;return function(e,a,p){for(var m,v,g=r(e),y=o(g),b=n(a,p,3),_=s(y.length),w=0,k=i?f(e,_):h?f(e,0):void 0;_>w;w++)if((d||w in y)&&(m=y[w],v=b(m,w,g),t))if(i)k[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return c?-1:l||u?u:k}}},function(t,e){function i(t){return(i="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})(t)}function n(e){return"function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?t.exports=n=function(t){return i(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)},n(e)}t.exports=n},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,i){var n=i(30);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){if(i(11)){var n=i(39),o=i(3),r=i(1),s=i(0),a=i(70),h=i(98),l=i(29),u=i(51),c=i(37),d=i(20),f=i(52),p=i(23),m=i(8),v=i(134),g=i(41),y=i(35),b=i(19),_=i(57),w=i(4),k=i(14),x=i(90),S=i(42),D=i(44),T=i(43).f,C=i(92),O=i(38),M=i(7),E=i(26),I=i(60),P=i(58),N=i(94),A=i(48),F=i(63),R=i(50),L=i(93),j=i(125),Y=i(10),H=i(24),W=Y.f,G=H.f,z=o.RangeError,B=o.TypeError,V=o.Uint8Array,U="ArrayBuffer",q="Shared"+U,X="BYTES_PER_ELEMENT",Z="prototype",K=Array[Z],J=h.ArrayBuffer,$=h.DataView,Q=E(0),tt=E(2),et=E(3),it=E(4),nt=E(5),ot=E(6),rt=I(!0),st=I(!1),at=N.values,ht=N.keys,lt=N.entries,ut=K.lastIndexOf,ct=K.reduce,dt=K.reduceRight,ft=K.join,pt=K.sort,mt=K.slice,vt=K.toString,gt=K.toLocaleString,yt=M("iterator"),bt=M("toStringTag"),_t=O("typed_constructor"),wt=O("def_constructor"),kt=a.CONSTR,xt=a.TYPED,St=a.VIEW,Dt="Wrong length!",Tt=E(1,function(t,e){return It(P(t,t[wt]),e)}),Ct=r(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),Ot=!!V&&!!V[Z].set&&r(function(){new V(1).set({})}),Mt=function(t,e){var i=p(t);if(i<0||i%e)throw z("Wrong offset!");return i},Et=function(t){if(w(t)&&xt in t)return t;throw B(t+" is not a typed array!")},It=function(t,e){if(!(w(t)&&_t in t))throw B("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Nt(P(t,t[wt]),e)},Nt=function(t,e){for(var i=0,n=e.length,o=It(t,n);n>i;)o[i]=e[i++];return o},At=function(t,e,i){W(t,e,{get:function(){return this._d[i]}})},Ft=function(t){var e,i,n,o,r,s,a=k(t),h=arguments.length,u=h>1?arguments[1]:void 0,c=void 0!==u,d=C(a);if(void 0!=d&&!x(d)){for(s=d.call(a),n=[],e=0;!(r=s.next()).done;e++)n.push(r.value);a=n}for(c&&h>2&&(u=l(u,arguments[2],2)),e=0,i=m(a.length),o=It(this,i);i>e;e++)o[e]=c?u(a[e],e):a[e];return o},Rt=function(){for(var t=0,e=arguments.length,i=It(this,e);e>t;)i[t]=arguments[t++];return i},Lt=!!V&&r(function(){gt.call(new V(1))}),jt=function(){return gt.apply(Lt?mt.call(Et(this)):Et(this),arguments)},Yt={copyWithin:function(t,e){return j.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Et(this),arguments)},filter:function(t){return Pt(this,tt(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return rt(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Et(this),arguments)},lastIndexOf:function(t){return ut.apply(Et(this),arguments)},map:function(t){return Tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Et(this),arguments)},reduceRight:function(t){return dt.apply(Et(this),arguments)},reverse:function(){for(var t,e=Et(this).length,i=Math.floor(e/2),n=0;n1?arguments[1]:void 0)},sort:function(t){return pt.call(Et(this),t)},subarray:function(t,e){var i=Et(this),n=i.length,o=g(t,n);return new(P(i,i[wt]))(i.buffer,i.byteOffset+o*i.BYTES_PER_ELEMENT,m((void 0===e?n:g(e,n))-o))}},Ht=function(t,e){return Pt(this,mt.call(Et(this),t,e))},Wt=function(t){Et(this);var e=Mt(arguments[1],1),i=this.length,n=k(t),o=m(n.length),r=0;if(o+e>i)throw z(Dt);for(;r255?255:255&n),o.v[f](i*e+o.o,n,Ct)}(this,i,t)},enumerable:!0})};b?(p=i(function(t,i,n,o){u(t,p,l,"_d");var r,s,a,h,c=0,f=0;if(w(i)){if(!(i instanceof J||(h=_(i))==U||h==q))return xt in i?Nt(p,i):Ft.call(p,i);r=i,f=Mt(n,e);var g=i.byteLength;if(void 0===o){if(g%e)throw z(Dt);if((s=g-f)<0)throw z(Dt)}else if((s=m(o)*e)+f>g)throw z(Dt);a=s/e}else a=v(i),r=new J(s=a*e);for(d(t,"_d",{b:r,o:f,l:s,e:a,v:new $(r)});cdocument.F=Object<\/script>"),t.close(),h=t.F;n--;)delete h.prototype[r[n]];return h()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[s]=t):i=h(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(110),o=i(76).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,i){var n=i(19),o=i(14),r=i(75)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"default",function(){return h});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(9),h=function(){function t(e,i){o()(this,t),this.options=null,this.props=null}return s()(t,[{key:"setOptions",value:function(t){t&&a.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),t}()},function(t,e,i){if("undefined"!=typeof window){var n=i(328),o=window.Hammer||i(329);t.exports=n(o,{preventDefault:"mouse"})}else t.exports=function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}()}},function(t,e,i){var n=i(10).f,o=i(19),r=i(7)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,i){var n=i(7)("unscopables"),o=Array.prototype;void 0==o[n]&&i(20)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e,i){var n=i(3),o=i(10),r=i(11),s=i(7)("species");t.exports=function(t){var e=n[t];r&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){var n=i(13);t.exports=function(t,e,i){for(var o in e)n(t,o,e[o],i);return t}},function(t,e,i){var n=i(4);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(46),u=i.n(l),c=i(9),d=i(34),f=function(){function t(e,i,n){s()(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=i||{},this.options=n||{},this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.editable=null,this._updateEditStatus()}return h()(t,[{key:"select",value:function(){this.selected=!0,this.dirty=!0,this.displayed&&this.redraw()}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(t){void 0!=t.group&&this.data.group!=t.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.parent&&(this.parent.stackDirty=!0);void 0!=t.subgroup&&this.data.subgroup!=t.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setParent",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:"isVisible",value:function(t){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragCenter){var t=this,e=document.createElement("div");e.className="timeline-drag-center",e.dragCenterItem=this,this.hammerDragCenter=new u.a(e),this.hammerDragCenter.on("tap",function(e){t.parent.itemSet.body.emitter.emit("click",{event:e,item:t.id})}),this.hammerDragCenter.on("doubletap",function(e){e.stopPropagation(),t.parent.itemSet._onUpdateItem(t),t.parent.itemSet.body.emitter.emit("doubleClick",{event:e,item:t.id})}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(e,this.dom.dragLeft):this.dom.box.appendChild(e):this.dom.point&&this.dom.point.appendChild(e),this.dom.dragCenter=e}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(t){var e=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&e&&!this.dom.deleteButton){var i=this,n=document.createElement("div");this.options.rtl?n.className="timeline-delete-rtl":n.className="timeline-delete",n.title="Delete this item",this.hammerDeleteButton=new u.a(n).on("tap",function(t){t.stopPropagation(),i.parent.removeFromDataSet(i)}),t.appendChild(n),this.dom.deleteButton=n}else!this.selected&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(t){if(this.options.tooltipOnItemUpdateTime){var e=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&e&&!this.dom.onItemUpdateTimeTooltip){var i=document.createElement("div");i.className="timeline-onUpdateTime-tooltip",t.appendChild(i),this.dom.onItemUpdateTimeTooltip=i}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.options.rtl?this.dom.onItemUpdateTimeTooltip.style.right=this.dom.content.style.right:this.dom.onItemUpdateTimeTooltip.style.left=this.dom.content.style.left;var n=this.parent.itemSet.body.domProps.scrollTop;("top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-n?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px"));var o;this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template?o=this.options.tooltipOnItemUpdateTime.template.bind(this)(this.data):(o="start: ".concat(Object(d.default)(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(o+="
end: ".concat(Object(d.default)(this.data.end).format("MM/DD/YYYY hh:mm")))),this.dom.onItemUpdateTimeTooltip.innerHTML=o}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var e,i,n,o,r=this._getItemData(),s=(this.dom.box||this.dom.point).getElementsByClassName("timeline-item-visible-frame")[0];if(n=this.options.visibleFrameTemplate?(o=this.options.visibleFrameTemplate.bind(this))(r,s):"",s)if(n instanceof Object&&!(n instanceof Element))o(r,s);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(n)){if(n instanceof Element)s.innerHTML="",s.appendChild(n);else if(void 0!=n)s.innerHTML=n;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=n}if((e=this.options.template?(i=this.options.template.bind(this))(r,t,this.data):this.data.content)instanceof Object&&!(e instanceof Element))i(r,t);else if(this._contentToString(this.content)!==this._contentToString(e)){if(e instanceof Element)t.innerHTML="",t.appendChild(e);else if(void 0!=e)t.innerHTML=e;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.content=e}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var e=[];if(Array.isArray(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=Object.keys(this.data)}var i=!0,n=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var a=r.value,h=this.data[a];null!=h?t.setAttribute("data-".concat(a),h):t.removeAttribute("data-".concat(a))}}catch(t){n=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}},{key:"_updateStyle",value:function(t){this.style&&(c.removeCssText(t,this.style),this.style=null),this.data.style&&(c.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return"string"==typeof t?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===o()(this.options.editable)&&(this.editable={},c.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&("boolean"==typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===o()(this.data.editable)&&(this.editable={},c.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){return this.data.title}}]),t}();f.prototype.stack=!0,e.default=f},function(t,e,i){var n=i(31);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(31),o=i(7)("toStringTag"),r="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){var n=i(2),o=i(30),r=i(7)("species");t.exports=function(t,e){var i,s=n(t).constructor;return void 0===s||void 0==(i=n(s)[r])?e:o(i)}},function(t,e,i){function n(t,e,i){if(i&&!Array.isArray(i))return n(t,e,[i]);if(e.hiddenDates=[],i&&1==Array.isArray(i)){for(var o=0;o=4*h){var f=0,p=a.clone();switch(i[l].repeat){case"daily":u.day()!=d.day()&&(f=1),u.dayOfYear(s.dayOfYear()),u.year(s.year()),u.subtract(7,"days"),d.dayOfYear(s.dayOfYear()),d.year(s.year()),d.subtract(7-f,"days"),p.add(1,"weeks");break;case"weekly":var m=d.diff(u,"days"),v=u.day();u.date(s.date()),u.month(s.month()),u.year(s.year()),d=u.clone(),u.day(v),d.day(v),d.add(m,"days"),u.subtract(1,"weeks"),d.subtract(1,"weeks"),p.add(1,"weeks");break;case"monthly":u.month()!=d.month()&&(f=1),u.month(s.month()),u.year(s.year()),u.subtract(1,"months"),d.month(s.month()),d.year(s.year()),d.subtract(1,"months"),d.add(f,"months"),p.add(1,"months");break;case"yearly":u.year()!=d.year()&&(f=1),u.year(s.year()),u.subtract(1,"years"),d.year(s.year()),d.subtract(1,"years"),d.add(f,"years"),p.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",i[l].repeat)}for(;u=e[n].start&&e[o].end<=e[n].end?e[o].remove=!0:e[o].start>=e[n].start&&e[o].start<=e[n].end?(e[n].end=e[o].end,e[o].remove=!0):e[o].end>=e[n].start&&e[o].end<=e[n].end&&(e[n].start=e[o].start,e[o].remove=!0));for(n=0;n=e&&s=e&&s<=i&&(n+=s-r)}return n}function h(t,e,i,n){return n=t(n).toDate().valueOf(),n-=l(t,e,i,n)}function l(t,e,i,n){var o=0;n=t(n).toDate().valueOf();for(var r=0;r=i.start&&a=a&&(o+=a-s)}return o}function u(t,e,i){for(var n=0,o=0,r=e.start,s=0;s=e.start&&h=i)break;n+=h-a}}return n}function c(t,e){for(var i=0;i=n&&t=s&&ot.range.end){var u={start:t.range.start,end:e};return e=h(t.options.moment,t.body.hiddenDates,u,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale}return e=h(t.options.moment,t.body.hiddenDates,t.range,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale},e.toTime=function(t,e,i){if(0==t.body.hiddenDates.length){var n=t.range.conversion(i);return new Date(e/n.scale+n.offset)}var o=s(t.body.hiddenDates,t.range.start,t.range.end),r=(t.range.end-t.range.start-o)*e/i,a=u(t.body.hiddenDates,t.range,r);return new Date(a+r+t.range.start)},e.getHiddenDurationBetween=s,e.getHiddenDurationBeforeStart=a,e.correctTimeForHidden=h,e.getHiddenDurationBefore=l,e.getAccumulatedHiddenDuration=u,e.snapAwayFromHidden=function(t,e,i,n){var o=c(e,t);return 1==o.hidden?i<0?1==n?o.startDate-(o.endDate-e)-1:o.startDate-1:1==n?o.endDate+(e-o.startDate)+1:o.endDate+1:e},e.getIsHidden=c},function(t,e,i){var n=i(21),o=i(8),r=i(41);t.exports=function(t){return function(e,i,s){var a,h=n(e),l=o(h.length),u=r(s,l);if(t&&i!=i){for(;l>u;)if((a=h[u++])!=a)return!0}else for(;l>u;u++)if((t||u in h)&&h[u]===i)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(0),o=i(32),r=i(1),s=i(80),a="["+s+"]",h=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),u=function(t,e,i){var o={},a=r(function(){return!!s[t]()||"​…"!="​…"[t]()}),h=o[t]=a?e(c):s[t];i&&(o[i]=h),n(n.P+n.F*a,"String",o)},c=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(h,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},function(t,e,i){var n=i(7)("iterator"),o=!1;try{var r=[7][n]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],s=r[n]();s.next=function(){return{done:i=!0}},r[n]=function(){return s},t(r)}catch(t){}return i}},function(t,e,i){var n=i(2);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){var n=i(57),o=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"==typeof i){var r=i.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,i){i(127);var n=i(13),o=i(20),r=i(1),s=i(32),a=i(7),h=i(95),l=a("species"),u=!r(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),c=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=a(t),f=!r(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=f?!r(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[l]=function(){return i}),i[d](""),!e}):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!c){var m=/./[d],v=i(s,d,""[t],function(t,e,i,n,o){return e.exec===h?f&&!o?{done:!0,value:m.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),g=v[0],y=v[1];n(String.prototype,t,g),o(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,i){var n=i(29),o=i(123),r=i(90),s=i(2),a=i(8),h=i(92),l={},u={};(e=t.exports=function(t,e,i,c,d){var f,p,m,v,g=d?function(){return t}:h(t),y=n(i,c,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(r(g)){for(f=a(t.length);f>b;b++)if((v=e?y(s(p=t[b])[0],p[1]):y(t[b]))===l||v===u)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=o(m,y,p.value,e))===l||v===u)return v}).BREAK=l,e.RETURN=u},function(t,e,i){var n=i(3).navigator;t.exports=n&&n.userAgent||""},function(t,e,i){var n=i(3),o=i(0),r=i(13),s=i(52),a=i(36),h=i(67),l=i(51),u=i(4),c=i(1),d=i(63),f=i(47),p=i(81);t.exports=function(t,e,i,m,v,g){var y=n[t],b=y,_=v?"set":"add",w=b&&b.prototype,k={},x=function(t){var e=w[t];r(w,t,"delete"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof b&&(g||w.forEach&&!c(function(){(new b).entries().next()}))){var S=new b,D=S[_](g?{}:-0,1)!=S,T=c(function(){S.has(1)}),C=d(function(t){new b(t)}),O=!g&&c(function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)});C||((b=e(function(e,i){l(e,b,t);var n=p(new y,e,b);return void 0!=i&&h(i,v,n[_],n),n})).prototype=w,w.constructor=b),(T||O)&&(x("delete"),x("has"),v&&x("get")),(O||D)&&x(_),g&&w.clear&&delete w.clear}else b=m.getConstructor(e,t,v,_),s(b.prototype,i),a.NEED=!0;return f(b,t),k[t]=b,o(o.G+o.W+o.F*(b!=y),k),g||m.setStrong(b,t,v),b}},function(t,e,i){for(var n,o=i(3),r=i(20),s=i(38),a=s("typed_array"),h=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,c=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");c<9;)(n=o[d[c++]])?(r(n.prototype,a,!0),r(n.prototype,h,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:h}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(9),u=i(139),c=function(){function t(e,i){if(s()(this,t),e&&!Array.isArray(e)&&(i=e,e=null),this._options=i||{},this._data={},this.length=0,this._fieldId=this._options.fieldId||"id",this._type={},this._options.type)for(var n=Object.keys(this._options.type),o=0,r=n.length;oo?1:ns)&&(r=a,s=h)}return r}},{key:"min",value:function(t){var e,i,n=this._data,o=Object.keys(n),r=null,s=null;for(e=0,i=o.length;e0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},function(t,e,i){var n=i(23),o=i(32);t.exports=function(t){return function(e,i){var r,s,a=String(o(e)),h=n(i),l=a.length;return h<0||h>=l?t?"":void 0:(r=a.charCodeAt(h))<55296||r>56319||h+1===l||(s=a.charCodeAt(h+1))<56320||s>57343?t?a.charAt(h):r:t?a.slice(h,h+2):s-56320+(r-55296<<10)+65536}}},function(t,e,i){var n=i(39),o=i(0),r=i(13),s=i(20),a=i(48),h=i(122),l=i(47),u=i(44),c=i(7)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,p,m,v,g){h(i,e,p);var y,b,_,w=function(t){if(!d&&t in D)return D[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},k=e+" Iterator",x="values"==m,S=!1,D=t.prototype,T=D[c]||D["@@iterator"]||m&&D[m],C=T||w(m),O=m?x?w("entries"):C:void 0,M="Array"==e?D.entries||T:T;if(M&&(_=u(M.call(new t)))!==Object.prototype&&_.next&&(l(_,k,!0),n||"function"==typeof _[c]||s(_,c,f)),x&&T&&"values"!==T.name&&(S=!0,C=function(){return T.call(this)}),n&&!g||!d&&!S&&D[c]||s(D,c,C),a[e]=C,a[k]=f,m)if(y={values:x?C:w("values"),keys:v?C:w("keys"),entries:O},g)for(b in y)b in D||r(D,b,y[b]);else o(o.P+o.F*(d||S),e,y);return y}},function(t,e,i){var n=i(88),o=i(32);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(o(t))}},function(t,e,i){var n=i(4),o=i(31),r=i(7)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},function(t,e,i){var n=i(7)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,i){var n=i(48),o=i(7)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},function(t,e,i){var n=i(10),o=i(37);t.exports=function(t,e,i){e in t?n.f(t,e,o(0,i)):t[e]=i}},function(t,e,i){var n=i(57),o=i(7)("iterator"),r=i(48);t.exports=i(12).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(14),o=i(41),r=i(8);t.exports=function(t){for(var e=n(this),i=r(e.length),s=arguments.length,a=o(s>1?arguments[1]:void 0,i),h=s>2?arguments[2]:void 0,l=void 0===h?i:o(h,i);l>a;)e[a++]=t;return e}},function(t,e,i){var n=i(49),o=i(126),r=i(48),s=i(21);t.exports=i(86)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},function(t,e,i){var n=i(64),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",h=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t[a]||0!==e[a]}(),l=void 0!==/()??/.exec("")[1];(h||l)&&(s=function(t){var e,i,s,u;return l&&(i=new RegExp("^"+this.source+"$(?!\\s)",n.call(this))),h&&(e=this[a]),s=o.call(this,t),h&&s&&(this[a]=this.global?s.index+s[0].length:e),l&&s&&s.length>1&&r.call(s[0],i,function(){for(u=1;ui;)e.push(arguments[i++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},n(v),v},f=function(t){delete g[t]},"process"==i(31)(c)?n=function(t){c.nextTick(s(b,t,1))}:m&&m.now?n=function(t){m.now(s(b,t,1))}:p?(r=(o=new p).port2,o.port1.onmessage=_,n=s(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):n=y in l("script")?function(t){h.appendChild(l("script"))[y]=function(){h.removeChild(this),b.call(t)}}:function(t){setTimeout(s(b,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,i){function n(t,e,i){var n,o,r,s=new Array(i),a=8*i-e-1,h=(1<>1,u=23===e?H(2,-24)-H(2,-77):0,c=0,d=t<0||0===t&&1/t<0?1:0;for((t=Y(t))!=t||t===L?(o=t!=t?1:0,n=h):(n=W(G(t)/z),t*(r=H(2,-n))<1&&(n--,r*=2),(t+=n+l>=1?u/r:u*H(2,1-l))*r>=2&&(n++,r/=2),n+l>=h?(o=0,n=h):n+l>=1?(o=(t*r-1)*H(2,e),n+=l):(o=t*H(2,l-1)*H(2,e),n=0));e>=8;s[c++]=255&o,o/=256,e-=8);for(n=n<0;s[c++]=255&n,n/=256,a-=8);return s[--c]|=128*d,s}function o(t,e,i){var n,o=8*i-e-1,r=(1<>1,a=o-7,h=i-1,l=t[h--],u=127&l;for(l>>=7;a>0;u=256*u+t[h],h--,a-=8);for(n=u&(1<<-a)-1,u>>=-a,a+=e;a>0;n=256*n+t[h],h--,a-=8);if(0===u)u=1-s;else{if(u===r)return n?NaN:l?-L:L;n+=H(2,e),u-=s}return(l?-1:1)*n*H(2,u-e)}function r(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function s(t){return[255&t]}function a(t){return[255&t,t>>8&255]}function h(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return n(t,52,8)}function u(t){return n(t,23,4)}function c(t,e,i){T(t[I],e,{get:function(){return this[i]}})}function d(t,e,i,n){var o=S(+i);if(o+e>t[U])throw R(P);var r=t[V]._b,s=o+t[q],a=r.slice(s,s+e);return n?a:a.reverse()}function f(t,e,i,n,o,r){var s=S(+i);if(s+e>t[U])throw R(P);for(var a=t[V]._b,h=s+t[q],l=n(+o),u=0;uJ;)(X=K[J++])in N||y(N,X,j[X]);v||(Z.constructor=N)}var $=new A(new N(2)),Q=A[I].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||b(A[I],{setInt8:function(t,e){Q.call(this,t,e<<24>>24)},setUint8:function(t,e){Q.call(this,t,e<<24>>24)}},!0)}else N=function(t){w(this,N,M);var e=S(t);this._b=C.call(new Array(e),0),this[U]=e},A=function(t,e,i){w(this,A,E),w(t,N,E);var n=t[U],o=k(e);if(o<0||o>n)throw R("Wrong offset!");if(i=void 0===i?n-o:x(i),o+i>n)throw R("Wrong length!");this[V]=t,this[q]=o,this[U]=i},m&&(c(N,B,"_l"),c(A,"buffer","_b"),c(A,B,"_l"),c(A,"byteOffset","_o")),b(A[I],{getInt8:function(t){return d(this,1,t)[0]<<24>>24},getUint8:function(t){return d(this,1,t)[0]},getInt16:function(t){var e=d(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=d(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return r(d(this,4,t,arguments[1]))},getUint32:function(t){return r(d(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(d(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(d(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){f(this,1,t,s,e)},setUint8:function(t,e){f(this,1,t,s,e)},setInt16:function(t,e){f(this,2,t,a,e,arguments[2])},setUint16:function(t,e){f(this,2,t,a,e,arguments[2])},setInt32:function(t,e){f(this,4,t,h,e,arguments[2])},setUint32:function(t,e){f(this,4,t,h,e,arguments[2])},setFloat32:function(t,e){f(this,4,t,u,e,arguments[2])},setFloat64:function(t,e){f(this,8,t,l,e,arguments[2])}});O(N,M),O(A,E),y(A[I],g.VIEW,!0),e[M]=N,e[E]=A},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(9),h=i(71),l=function(){function t(e,i){o()(this,t),this._data=null,this._ids={},this.length=0,this._options=i||{},this._fieldId="id",this._subscribers={};var n=this;this.listener=function(){n._onEvent.apply(n,arguments)},this.setData(e)}return s()(t,[{key:"setData",value:function(t){var e,i,n,o,r;if(this._data){for(this._data.off&&this._data.off("*",this.listener),r=[],n=0,o=(e=this._data.getIds({filter:this._options&&this._options.filter})).length;n=.4*f}if(this.options.showMinorLabels&&d){var x=this._repaintMinorText(l,r.getLabelMinor(a),t,v);x.style.width="".concat(b,"px")}c&&this.options.showMajorLabels?(l>0&&(void 0==_&&(_=l),x=this._repaintMajorText(l,r.getLabelMajor(a),t,v)),p=this._repaintMajorLine(l,b,t,v)):d?p=this._repaintMinorLine(l,b,t,v):p&&(p.style.width="".concat(parseInt(p.style.width)+b,"px"))}if(1e3!==k||w||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(1e3," lines.")),w=!0),this.options.showMajorLabels){var S=this.body.util.toTime(0),D=r.getLabelMajor(S),T=D.length*(this.props.majorCharWidth||10)+10;(void 0==_||T<_)&&this._repaintMajorText(0,D,t,v)}m.forEach(this.dom.redundant,function(t){for(;t.length;){var e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}})}},{key:"_repaintMinorText",value:function(t,e,i,n){var o=this.dom.redundant.minorTexts.shift();if(!o){var r=document.createTextNode("");(o=document.createElement("div")).appendChild(r),this.dom.foreground.appendChild(o)}return this.dom.minorTexts.push(o),o.innerHTML=e,o.style.top="top"==i?"".concat(this.props.majorLabelHeight,"px"):"0",this.options.rtl?(o.style.left="",o.style.right="".concat(t,"px")):o.style.left="".concat(t,"px"),o.className="timeline-text timeline-minor ".concat(n),o}},{key:"_repaintMajorText",value:function(t,e,i,n){var o=this.dom.redundant.majorTexts.shift();if(!o){var r=document.createElement("div");(o=document.createElement("div")).appendChild(r),this.dom.foreground.appendChild(o)}return o.childNodes[0].innerHTML=e,o.className="timeline-text timeline-major ".concat(n),o.style.top="top"==i?"0":"".concat(this.props.minorLabelHeight,"px"),this.options.rtl?(o.style.left="",o.style.right="".concat(t,"px")):o.style.left="".concat(t,"px"),this.dom.majorTexts.push(o),o}},{key:"_repaintMinorLine",value:function(t,e,i,n){var o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var r=this.props;return o.style.top="top"==i?"".concat(r.majorLabelHeight,"px"):"".concat(this.body.domProps.top.height,"px"),o.style.height="".concat(r.minorLineHeight,"px"),this.options.rtl?(o.style.left="",o.style.right="".concat(t-r.minorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical-rtl timeline-minor ".concat(n)):(o.style.left="".concat(t-r.minorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical timeline-minor ".concat(n)),o.style.width="".concat(e,"px"),o}},{key:"_repaintMajorLine",value:function(t,e,i,n){var o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var r=this.props;return o.style.top="top"==i?"0":"".concat(this.body.domProps.top.height,"px"),this.options.rtl?(o.style.left="",o.style.right="".concat(t-r.majorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical-rtl timeline-major ".concat(n)):(o.style.left="".concat(t-r.majorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical timeline-major ".concat(n)),o.style.height="".concat(r.majorLineHeight,"px"),o.style.width="".concat(e,"px"),o}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="timeline-text timeline-minor timeline-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="timeline-text timeline-major timeline-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),e}(v.default),w=!1;e.default=_},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(34),h=i(59),l=i(9),u=function(){function t(e,i,n,r,s){o()(this,t),this.moment=a.default,this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,i,n),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Array.isArray(r)?this.hiddenDates=r:this.hiddenDates=void 0!=r?[r]:[],this.format=t.FORMAT,this.options=s||{}}return s()(t,[{key:"setMoment",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(e){var i=l.deepExtend({},t.FORMAT);this.format=l.deepExtend(i,e)}},{key:"setRange",value:function(t,e,i){if(!(t instanceof Date&&e instanceof Date))throw"No legal start or end date in method setRange";this._start=void 0!=t?this.moment(t.valueOf()):new Date,this._end=void 0!=e?this.moment(e.valueOf()):new Date,this.autoScale&&this.setMinimumStep(i)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(1!=this.step)switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var e=this.current.clone();e.add(1,"week"),e.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(1!=this.step)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(void 0!=t){31104e9>t&&(this.scale="year",this.step=1e3),15552e9>t&&(this.scale="year",this.step=500),31104e8>t&&(this.scale="year",this.step=100),15552e8>t&&(this.scale="year",this.step=50),31104e7>t&&(this.scale="year",this.step=10),15552e7>t&&(this.scale="year",this.step=5),31104e6>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),2592e6>t&&(this.scale="month",this.step=1),6048e5>t&&(this.scale="week",this.step=1),1728e5>t&&(this.scale="day",this.step=2),864e5>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),36e5>t&&(this.scale="hour",this.step=1),9e5>t&&(this.scale="minute",this.step=15),6e5>t&&(this.scale="minute",this.step=10),3e5>t&&(this.scale="minute",this.step=5),6e4>t&&(this.scale="minute",this.step=1),15e3>t&&(this.scale="second",this.step=15),1e4>t&&(this.scale="second",this.step=10),5e3>t&&(this.scale="second",this.step=5),1e3>t&&(this.scale="second",this.step=1),200>t&&(this.scale="millisecond",this.step=200),100>t&&(this.scale="millisecond",this.step=100),50>t&&(this.scale="millisecond",this.step=50),10>t&&(this.scale="millisecond",this.step=10),5>t&&(this.scale="millisecond",this.step=5),1>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":case"week":return 1==t.date();case"month":return 0==t.month();case"year":default:return!1}}},{key:"getLabelMinor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(this.isMajor()&&0!==t.weekday())return"";default:return e&&e.length>0?this.moment(t).format(e):""}}},{key:"getLabelMajor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""}},{key:"getClassName",value:function(){function t(t){return t/a%2==0?" timeline-even":" timeline-odd"}function e(t){return t.isSame(new Date,"day")?" timeline-today":t.isSame(o().add(1,"day"),"day")?" timeline-tomorrow":t.isSame(o().add(-1,"day"),"day")?" timeline-yesterday":""}function i(t){return t.isSame(new Date,"week")?" timeline-current-week":""}function n(t){return t.isSame(new Date,"month")?" timeline-current-month":""}var o=this.moment,r=this.moment(this.current),s=r.locale?r.locale("en"):r.lang("en"),a=this.step,h=[];switch(this.scale){case"millisecond":h.push(e(s)),h.push(t(s.milliseconds()));break;case"second":h.push(e(s)),h.push(t(s.seconds()));break;case"minute":h.push(e(s)),h.push(t(s.minutes()));break;case"hour":h.push("timeline-h".concat(s.hours()).concat(4==this.step?"-h"+(s.hours()+4):"")),h.push(e(s)),h.push(t(s.hours()));break;case"weekday":h.push("timeline-".concat(s.format("dddd").toLowerCase())),h.push(e(s)),h.push(i(s)),h.push(t(s.date()));break;case"day":h.push("timeline-day".concat(s.date())),h.push("timeline-".concat(s.format("MMMM").toLowerCase())),h.push(e(s)),h.push(n(s)),h.push(this.step<=2?e(s):""),h.push(this.step<=2?"timeline-".concat(s.format("dddd").toLowerCase()):""),h.push(t(s.date()-1));break;case"week":h.push("timeline-week".concat(s.format("w"))),h.push(i(s)),h.push(t(s.week()));break;case"month":h.push("timeline-".concat(s.format("MMMM").toLowerCase())),h.push(n(s)),h.push(t(s.month()));break;case"year":h.push("timeline-year".concat(s.year())),h.push(function(t){return t.isSame(new Date,"year")?" timeline-current-year":""}(s)),h.push(t(s.year()))}return h.filter(String).join(" ")}}],[{key:"snap",value:function(t,e,i){var n=Object(a.default)(t);if("year"==e){var o=n.year()+Math.round(n.month()/12);n.year(Math.round(o/i)*i),n.month(0),n.date(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("month"==e)n.date()>15?(n.date(1),n.add(1,"month")):n.date(1),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("week"==e)n.weekday()>2?(n.weekday(0),n.add(1,"week")):n.weekday(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("day"==e){switch(i){case 5:case 2:n.hours(24*Math.round(n.hours()/24));break;default:n.hours(12*Math.round(n.hours()/12))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("weekday"==e){switch(i){case 5:case 2:n.hours(12*Math.round(n.hours()/12));break;default:n.hours(6*Math.round(n.hours()/6))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("hour"==e){switch(i){case 4:n.minutes(60*Math.round(n.minutes()/60));break;default:n.minutes(30*Math.round(n.minutes()/30))}n.seconds(0),n.milliseconds(0)}else if("minute"==e){switch(i){case 15:case 10:n.minutes(5*Math.round(n.minutes()/5)),n.seconds(0);break;case 5:n.seconds(60*Math.round(n.seconds()/60));break;default:n.seconds(30*Math.round(n.seconds()/30))}n.milliseconds(0)}else if("second"==e)switch(i){case 15:case 10:n.seconds(5*Math.round(n.seconds()/5)),n.milliseconds(0);break;case 5:n.milliseconds(1e3*Math.round(n.milliseconds()/1e3));break;default:n.milliseconds(500*Math.round(n.milliseconds()/500))}else if("millisecond"==e){var r=i>5?i/2:1;n.milliseconds(Math.round(n.milliseconds()/r)*r)}return n}}]),t}();u.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"D",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},e.default=u},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(46),p=i.n(f),m=i(9),v=i(45),g=i(34),y=i(145),b=i.n(y),_=function(t){function e(t,i){var n;return o()(this,e),n=h()(this,u()(e).call(this)),n.body=t,n.defaultOptions={moment:g.default,locales:b.a,locale:"en",id:void 0,title:void 0},n.options=m.extend({},n.defaultOptions),i&&i.time?n.customTime=i.time:n.customTime=new Date,n.eventParams={},n.setOptions(i),n._create(),n}return d()(e,t),s()(e,[{key:"setOptions",value:function(t){t&&m.selectiveExtend(["moment","locale","locales","id","title","rtl"],this.options,t)}},{key:"_create",value:function(){function t(t){this.body.range._onMouseWheel(t)}var e=document.createElement("div");e["custom-time"]=this,e.className="timeline-custom-time ".concat(this.options.id||""),e.style.position="absolute",e.style.top="0px",e.style.height="100%",this.bar=e;var i=document.createElement("div");i.style.position="relative",i.style.top="0px",this.options.rtl?i.style.right="-10px":i.style.left="-10px",i.style.height="100%",i.style.width="20px",i.addEventListener?(i.addEventListener("mousewheel",t.bind(this),!1),i.addEventListener("DOMMouseScroll",t.bind(this),!1)):i.attachEvent("onmousewheel",t.bind(this)),e.appendChild(i),this.hammer=new p.a(i),this.hammer.on("panstart",this._onDragStart.bind(this)),this.hammer.on("panmove",this._onDrag.bind(this)),this.hammer.on("panend",this._onDragEnd.bind(this)),this.hammer.get("pan").set({threshold:5,direction:p.a.DIRECTION_HORIZONTAL})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar));var e=this.body.util.toScreen(this.customTime),i=this.options.locales[this.options.locale];i||(this.warned||(console.log("WARNING: options.locales['".concat(this.options.locale,"'] not found. See http://visjs.org/docs/timeline/#Localization")),this.warned=!0),i=this.options.locales.en);var n=this.options.title;return void 0===n?n=(n="".concat(i.time,": ").concat(this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+n.substring(1):"function"==typeof n&&(n=n.call(this.customTime)),this.options.rtl?this.bar.style.right="".concat(e,"px"):this.bar.style.left="".concat(e,"px"),this.bar.title=n,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(t){this.customTime=m.convert(t,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomTitle",value:function(t){this.options.title=t}},{key:"_onDragStart",value:function(t){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,t.stopPropagation()}},{key:"_onDrag",value:function(t){if(this.eventParams.dragging){var e=this.options.rtl?-1*t.deltaX:t.deltaX,i=this.body.util.toScreen(this.eventParams.customTime)+e,n=this.body.util.toTime(i);this.setCustomTime(n),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation()}}},{key:"_onDragEnd",value:function(t){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}}],[{key:"customTimeFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("custom-time"))return e["custom-time"];e=e.parentNode}return null}}]),e}(v.default);e.default=_},function(t,e,i){var n=i(331),o=i(332),r=i(333);t.exports=function(t){return n(t)||o(t)||r()}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(103),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(9),u=i(148),c=function(){function t(e,i,n){if(s()(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=i&&i.subgroupOrder,this.itemSet=n,this.isVisible=null,this.stackDirty=!0,i&&i.nestedGroups&&(this.nestedGroups=i.nestedGroups,0==i.showNested?this.showNested=!1:this.showNested=!0),i&&i.subgroupStack)if("boolean"==typeof i.subgroupStack)this.doInnerStack=i.subgroupStack,this.subgroupStackAll=i.subgroupStack;else for(var o in i.subgroupStack)this.subgroupStack[o]=i.subgroupStack[o],this.doInnerStack=this.doInnerStack||i.subgroupStack[o];i&&i.heightMode?this.heightMode=i.heightMode:this.heightMode=n.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var r=this;this.itemSet.body.emitter.on("checkRangedItems",function(){r.checkRangedItems=!0}),this._create(),this.setData(i)}return h()(t,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="timeline-label draggable":t.className="timeline-label",this.dom.label=t;var e=document.createElement("div");e.className="timeline-inner",t.appendChild(e),this.dom.inner=e;var i=document.createElement("div");i.className="timeline-group",i["timeline-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="timeline-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="timeline-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var e,i;if((e=this.itemSet.options&&this.itemSet.options.groupTemplate?(i=this.itemSet.options.groupTemplate.bind(this))(t,this.dom.inner):t&&t.content)instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object&&e.isReactComponent||(e instanceof Object?i(t,this.dom.inner):this.dom.inner.innerHTML=void 0!==e&&null!==e?e:this.groupId||"");if(this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?l.removeClassName(this.dom.inner,"timeline-hidden"):l.addClassName(this.dom.inner,"timeline-hidden"),t&&t.nestedGroups){this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),l.addClassName(this.dom.label,"timeline-nesting-group");var n=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";this.showNested?(l.removeClassName(this.dom.label,n),l.addClassName(this.dom.label,"expanded")):(l.removeClassName(this.dom.label,"expanded"),l.addClassName(this.dom.label,n))}else this.nestedGroups&&(this.nestedGroups=null,n=this.itemSet.options.rtl?"collapsed-rtl":"collapsed",l.removeClassName(this.dom.label,n),l.removeClassName(this.dom.label,"expanded"),l.removeClassName(this.dom.label,"timeline-nesting-group"));if(t&&(t.treeLevel||t.nestedInGroup)){var o=15*(t.treeLevel||2);t.nestedGroups||(o+=15),l.addClassName(this.dom.label,"vis-nested-group"),this.itemSet.options&&this.itemSet.options.rtl?this.dom.inner.style.paddingRight=o+"px":this.dom.inner.style.paddingLeft=o+"px"}var r=t&&t.className||null;r!=this.className&&(this.className&&(l.removeClassName(this.dom.label,this.className),l.removeClassName(this.dom.foreground,this.className),l.removeClassName(this.dom.background,this.className),l.removeClassName(this.dom.axis,this.className)),l.addClassName(this.dom.label,r),l.addClassName(this.dom.foreground,r),l.addClassName(this.dom.background,r),l.addClassName(this.dom.axis,r),this.className=r),this.style&&(l.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(l.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var e={},i=0;l.forEach(this.items,function(t,n){if(t.dirty=!0,t.displayed){e[n]=t.redraw(!0),i=e[n].length}});if(i>0)for(var n=function(t){l.forEach(e,function(e){e[t]()})},o=0;oi.bailTimeMs&&(i.userBailFunction&&null==this.itemSet.userContinueNotBail?i.userBailFunction(function(e){t.itemSet.userContinueNotBail=e,n=!e}):n=0==t.itemSet.userContinueNotBail)}return n}},{key:"_redrawItems",value:function(t,e,i,n){var r=this;if(t||this.stackDirty||this.isVisible&&!e){var s={},a={byEnd:this.orderedItems.byEnd.filter(function(t){return!t.isCluster}),byStart:this.orderedItems.byStart.filter(function(t){return!t.isCluster})},h={byEnd:o()(new Set(this.orderedItems.byEnd.map(function(t){return t.cluster}).filter(function(t){return!!t}))),byStart:o()(new Set(this.orderedItems.byStart.map(function(t){return t.cluster}).filter(function(t){return!!t})))},c=function(){var t=r._updateItemsInRange(a,r.visibleItems.filter(function(t){return!t.isCluster}),n),e=r._updateClustersInRange(h,r.visibleItems.filter(function(t){return t.isCluster}),n);return[].concat(o()(t),o()(e))};if("function"==typeof this.itemSet.options.order)!function(){var t=r;if(r.doInnerStack&&r.itemSet.options.stackSubgroups){for(var e in r.subgroups)s[e]=r.subgroups[e].items.slice().sort(function(e,i){return t.itemSet.options.order(e.data,i.data)});u.stackSubgroupsWithInnerStack(s,i,r.subgroups),r.visibleItems=c()}else{r.visibleItems=c();var n=r.visibleItems.slice().filter(function(t){return t.isCluster||!t.isCluster&&!t.cluster}).sort(function(e,i){return t.itemSet.options.order(e.data,i.data)});r.shouldBailStackItems=u.stack(n,i,!0,r._shouldBailItemsRedraw.bind(r))}}();else{var d=this._updateItemsInRange(a,this.visibleItems.filter(function(t){return!t.isCluster}),n),f=this._updateClustersInRange(h,this.visibleItems.filter(function(t){return t.isCluster}),n);if(this.visibleItems=[].concat(o()(d),o()(f)),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){for(var p in this.subgroups)s[p]=this.subgroups[p].items;u.stackSubgroupsWithInnerStack(s,i,this.subgroups)}else this.shouldBailStackItems=u.stack(this.visibleItems,i,!0,this._shouldBailItemsRedraw.bind(this));else u.nostack(this.visibleItems,i,this.subgroups,this.itemSet.options.stackSubgroups)}for(var m=0;m0){var e=this;this.resetSubgroups(),l.forEach(this.visibleItems,function(i){void 0!==i.data.subgroup&&(e.subgroups[i.data.subgroup].height=Math.max(e.subgroups[i.data.subgroup].height,i.height+t.item.vertical),e.subgroups[i.data.subgroup].visible=!0)})}}},{key:"_isGroupVisible",value:function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var e,i;if((i="fixed"===this.heightMode?l.toArray(this.items):this.visibleItems).length>0){var n=i[0].top,o=i[0].top+i[0].height;if(l.forEach(i,function(t){n=Math.min(n,t.top),o=Math.max(o,t.top+t.height)}),n>t.axis){var r=n-t.axis;o-=r,l.forEach(i,function(t){t.top-=r})}e=o+t.item.vertical/2,"fitItems"!==this.heightMode&&(e=Math.max(e,this.props.label.height))}else e=this.props.label.height;return e}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);var n=this.dom.axis;n.parentNode&&n.parentNode.removeChild(n)}},{key:"add",value:function(t,e){if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),!e&&!this.visibleItems.includes(t)){var i=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,i)}}},{key:"_addToSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;void 0!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)new Date(this.subgroups[e].end)&&(this.subgroups[e].end=i),this.subgroups[e].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var e=function(e){var i=t.subgroups[e].items[0].data.end||t.subgroups[e].items[0].data.start,n=t.subgroups[e].items[0].data.start,o=i-1;t.subgroups[e].items.forEach(function(t){new Date(t.data.start)new Date(o)&&(o=e)}),t.subgroups[e].start=n,t.subgroups[e].end=new Date(o-1)};for(var i in t.subgroups)e(i)}}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var t=[];if("string"==typeof this.subgroupOrderer){for(var e in this.subgroups)t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});t.sort(function(t,e){return t.sortField-e.sortField})}else if("function"==typeof this.subgroupOrderer){for(var i in this.subgroups)t.push(this.subgroups[i].items[0].data);t.sort(this.subgroupOrderer)}if(t.length>0)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(void 0!=e){var i=this.subgroups[e];if(i){var n=i.items.indexOf(t);n>=0&&(i.items.splice(n,1),i.items.length?this._updateSubgroupsSizes():delete this.subgroups[e])}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=l.toArray(this.items),e=[],i=[],n=0;n0)for(var d=0;du}),1==this.checkRangedItems){this.checkRangedItems=!1;for(var p=0;pu})}for(var v={},g=0,y=0;y0)for(var _=function(t){l.forEach(v,function(e){e[t]()})},w=0;w=0;r--){var s=e[r];if(o(s))break;s.isCluster&&!s.hasItems()||s.cluster||void 0===n[s.id]&&(n[s.id]=!0,i.push(s))}for(var a=t+1;a0)for(var r=0;r0)for(var f=0;ft.start)}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="timeline-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="timeline-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="timeline-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["timeline-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"")+(t?" timeline-editable":" timeline-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(t){var e,i=this,n=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){i.dirty&&(e=i._getDomComponentsSizes.bind(i)())},function(){i.dirty&&i._updateDomComponentsSizes.bind(i)(e)},this._repaintDomAdditionals.bind(this)];if(t)return n;var o;return n.forEach(function(t){o=t()}),o}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}}},{key:"repositionX",value:function(t){var e,i,n=this.parent.width,o=this.conversion.toScreen(this.data.start),r=this.conversion.toScreen(this.data.end),s=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==t&&!0!==t||(o<-n&&(o=-n),r>2*n&&(r=2*n));var a=Math.max(r-o+.5,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=a+this.props.content.width,i=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=a,i=Math.min(r-o,this.props.content.width)),this.options.rtl?this.dom.box.style.right="".concat(this.right,"px"):this.dom.box.style.left="".concat(this.left,"px"),this.dom.box.style.width="".concat(a,"px"),s){case"left":this.options.rtl?this.dom.content.style.right="0":this.dom.content.style.left="0";break;case"right":this.options.rtl?this.dom.content.style.right="".concat(Math.max(a-i,0),"px"):this.dom.content.style.left="".concat(Math.max(a-i,0),"px");break;case"center":this.options.rtl?this.dom.content.style.right="".concat(Math.max((a-i)/2,0),"px"):this.dom.content.style.left="".concat(Math.max((a-i)/2,0),"px");break;default:e=this.overflow?r>0?Math.max(-o,0):-i:o<0?-o:0,this.options.rtl?this.dom.content.style.right="".concat(e,"px"):this.dom.content.style.left="".concat(e,"px")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;e.style.top="top"==t?"".concat(this.top,"px"):"".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement("div");t.className="timeline-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragRight){var t=document.createElement("div");t.className="timeline-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),e}(m.default);v.prototype.baseClassName="timeline-item timeline-range",e.default=v},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){t.exports=!i(11)&&!i(1)(function(){return 7!=Object.defineProperty(i(72)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(3),o=i(12),r=i(39),s=i(74),a=i(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,i){var n=i(19),o=i(21),r=i(60)(!1),s=i(75)("IE_PROTO");t.exports=function(t,e){var i,a=o(t),h=0,l=[];for(i in a)i!=s&&n(a,i)&&l.push(i);for(;e.length>h;)n(a,i=e[h++])&&(~r(l,i)||l.push(i));return l}},function(t,e,i){var n=i(10),o=i(2),r=i(40);t.exports=i(11)?Object.defineProperties:function(t,e){o(t);for(var i,s=r(e),a=s.length,h=0;a>h;)n.f(t,i=s[h++],e[i]);return t}},function(t,e,i){var n=i(21),o=i(43).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==r.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(n(t))}},function(t,e,i){var n=i(40),o=i(61),r=i(56),s=i(14),a=i(55),h=Object.assign;t.exports=!h||i(1)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=n})?function(t,e){for(var i=s(t),h=arguments.length,l=1,u=o.f,c=r.f;h>l;)for(var d,f=a(arguments[l++]),p=u?n(f).concat(u(f)):n(f),m=p.length,v=0;m>v;)c.call(f,d=p[v++])&&(i[d]=f[d]);return i}:h},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,i){var n=i(30),o=i(4),r=i(116),s=[].slice,a={};t.exports=Function.bind||function(t){var e=n(this),i=s.call(arguments,1),h=function(){var n=i.concat(s.call(arguments));return this instanceof h?function(t,e,i){if(!(e in a)){for(var n=[],o=0;o>>0||(s.test(i)?16:10))}:n},function(t,e,i){var n=i(3).parseFloat,o=i(62).trim;t.exports=1/n(i(80)+"-0")!=-1/0?function(t){var e=o(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},function(t,e,i){var n=i(31);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,i){var n=i(4),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,i){var n=i(42),o=i(37),r=i(47),s={};i(20)(s,i(7)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(s,{next:o(1,i)}),r(t,e+" Iterator")}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&n(r.call(t)),e}}},function(t,e,i){var n=i(30),o=i(14),r=i(55),s=i(8);t.exports=function(t,e,i,a,h){n(e);var l=o(t),u=r(l),c=s(l.length),d=h?c-1:0,f=h?-1:1;if(i<2)for(;;){if(d in u){a=u[d],d+=f;break}if(d+=f,h?d<0:c<=d)throw TypeError("Reduce of empty array with no initial value")}for(;h?d>=0:c>d;d+=f)d in u&&(a=e(a,u[d],d,l));return a}},function(t,e,i){var n=i(14),o=i(41),r=i(8);t.exports=[].copyWithin||function(t,e){var i=n(this),s=r(i.length),a=o(t,s),h=o(e,s),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?s:o(l,s))-h,s-a),c=1;for(h0;)h in i?i[a]=i[h]:delete i[a],a+=c,h+=c;return i}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(95);i(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(t,e,i){i(11)&&"g"!=/./g.flags&&i(10).f(RegExp.prototype,"flags",{configurable:!0,get:i(64)})},function(t,e,i){var n,o,r,s,a=i(39),h=i(3),l=i(29),u=i(57),c=i(0),d=i(4),f=i(30),p=i(51),m=i(67),v=i(58),g=i(97).set,y=i(269)(),b=i(130),_=i(270),w=i(68),k=i(131),x="Promise",S=h.TypeError,D=h.process,T=D&&D.versions,C=T&&T.v8||"",O=h[x],M="process"==u(D),E=function(){},I=o=b.f,P=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[i(7)("species")]=function(t){t(E,E)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==C.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var i=t._c;y(function(){for(var n=t._v,o=1==t._s,r=0,s=function(e){var i,r,s,a=o?e.ok:e.fail,h=e.resolve,l=e.reject,u=e.domain;try{a?(o||(2==t._h&&L(t),t._h=1),!0===a?i=n:(u&&u.enter(),i=a(n),u&&(u.exit(),s=!0)),i===e.promise?l(S("Promise-chain cycle")):(r=N(i))?r.call(i,h,l):h(i)):l(n)}catch(t){u&&!s&&u.exit(),l(t)}};i.length>r;)s(i[r++]);t._c=[],t._n=!1,e&&!t._h&&F(t)})}},F=function(t){g.call(h,function(){var e,i,n,o=t._v,r=R(t);if(r&&(e=_(function(){M?D.emit("unhandledRejection",o,t):(i=h.onunhandledrejection)?i({promise:t,reason:o}):(n=h.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=M||R(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(h,function(){var e;M?D.emit("rejectionHandled",t):(e=h.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},Y=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw S("Promise can't be resolved itself");(e=N(t))?y(function(){var n={_w:i,_d:!1};try{e.call(t,l(Y,n,1),l(j,n,1))}catch(t){j.call(n,t)}}):(i._v=t,i._s=1,A(i,!1))}catch(t){j.call({_w:i,_d:!1},t)}}};P||(O=function(t){p(this,O,x,"_h"),f(t),n.call(this);try{t(l(Y,this,1),l(j,this,1))}catch(t){j.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i(52)(O.prototype,{then:function(t,e){var i=I(v(this,O));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=M?D.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&A(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n;this.promise=t,this.resolve=l(Y,t,1),this.reject=l(j,t,1)},b.f=I=function(t){return t===O||t===s?new r(t):o(t)}),c(c.G+c.W+c.F*!P,{Promise:O}),i(47)(O,x),i(50)(x),s=i(12)[x],c(c.S+c.F*!P,x,{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(a||!P),x,{resolve:function(t){return k(a&&this===s?O:this,t)}}),c(c.S+c.F*!(P&&i(63)(function(t){O.all(t).catch(E)})),x,{all:function(t){var e=this,i=I(e),n=i.resolve,o=i.reject,r=_(function(){var i=[],r=0,s=1;m(t,!1,function(t){var a=r++,h=!1;i.push(void 0),s++,e.resolve(t).then(function(t){h||(h=!0,i[a]=t,--s||n(i))},o)}),--s||n(i)});return r.e&&o(r.v),i.promise},race:function(t){var e=this,i=I(e),n=i.reject,o=_(function(){m(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return o.e&&n(o.v),i.promise}})},function(t,e,i){var n=i(30);t.exports.f=function(t){return new function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)}(t)}},function(t,e,i){var n=i(2),o=i(4),r=i(130);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var i=r.f(t);return(0,i.resolve)(e),i.promise}},function(t,e,i){var n=i(10).f,o=i(42),r=i(52),s=i(29),a=i(51),h=i(67),l=i(86),u=i(126),c=i(50),d=i(11),f=i(36).fastKey,p=i(53),m=d?"_s":"size",v=function(t,e){var i,n=f(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,l){var u=t(function(t,n){a(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=n&&h(n,i,t[l],t)});return r(u.prototype,{clear:function(){for(var t=p(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var i=p(this,e),n=v(i,t);if(n){var o=n.n,r=n.p;delete i._i[n.i],n.r=!0,r&&(r.n=o),o&&(o.p=r),i._f==n&&(i._f=o),i._l==n&&(i._l=r),i[m]--}return!!n},forEach:function(t){p(this,e);for(var i,n=s(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!v(p(this,e),t)}}),d&&n(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,i){var n,o,r=v(t,e);return r?r.v=i:(t._l=r={i:o=f(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=r),n&&(n.n=r),t[m]++,"F"!==o&&(t._i[o]=r)),t},getEntry:v,setStrong:function(t,e,i){l(t,e,function(t,i){this._t=p(t,e),this._k=i,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?"keys"==t?u(0,e.k):"values"==t?u(0,e.v):u(0,[e.k,e.v]):(this._t=void 0,u(1))},i?"entries":"values",!i,!0),c(e)}}},function(t,e,i){var n=i(52),o=i(36).getWeak,r=i(2),s=i(4),a=i(51),h=i(67),l=i(26),u=i(19),c=i(53),d=l(5),f=l(6),p=0,m=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return d(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var i=g(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,r){var l=t(function(t,n){a(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=n&&h(n,i,t[r],t)});return n(l.prototype,{delete:function(t){if(!s(t))return!1;var i=o(t);return!0===i?m(c(this,e)).delete(t):i&&u(i,this._i)&&delete i[this._i]},has:function(t){if(!s(t))return!1;var i=o(t);return!0===i?m(c(this,e)).has(t):i&&u(i,this._i)}}),l},def:function(t,e,i){var n=o(r(e),!0);return!0===n?m(t).set(e,i):n[t._i]=i,t},ufstore:m}},function(t,e,i){var n=i(23),o=i(8);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=o(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(43),o=i(61),r=i(2),s=i(3).Reflect;t.exports=s&&s.ownKeys||function(t){var e=n.f(r(t)),i=o.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(8),o=i(82),r=i(32);t.exports=function(t,e,i,s){var a=String(r(t)),h=a.length,l=void 0===i?" ":String(i),u=n(e);if(u<=h||""==l)return a;var c=u-h,d=o.call(l,Math.ceil(c/l.length));return d.length>c&&(d=d.slice(0,c)),s?d+a:a+d}},function(t,e,i){var n=i(40),o=i(21),r=i(56).f;t.exports=function(t){return function(e){for(var i,s=o(e),a=n(s),h=a.length,l=0,u=[];h>l;)r.call(s,i=a[l++])&&u.push(t?[i,s[i]]:s[i]);return u}}},function(t,e,i){function n(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function o(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var i=0;i0?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElementNS("http://www.w3.org/2000/svg",t),i.appendChild(n)):(n=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},i.appendChild(n)),e[t].used.push(n),n}Object.defineProperty(e,"__esModule",{value:!0}),e.prepareElements=n,e.cleanupElements=o,e.resetElements=function(t){n(t),o(t),n(t)},e.getSVGElement=r,e.getDOMElement=function(t,e,i,n){var o;return e.hasOwnProperty(t)?e[t].redundant.length>0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElement(t),void 0!==n?i.insertBefore(o,n):i.appendChild(o)):(o=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(o,n):i.appendChild(o)),e[t].used.push(o),o},e.drawPoint=function(t,e,i,n,o,s){var a;if("circle"==i.style?((a=r("circle",n,o)).setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",e),a.setAttributeNS(null,"r",.5*i.size)):((a=r("rect",n,o)).setAttributeNS(null,"x",t-.5*i.size),a.setAttributeNS(null,"y",e-.5*i.size),a.setAttributeNS(null,"width",i.size),a.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&a.setAttributeNS(null,"style",i.styles),a.setAttributeNS(null,"class","".concat(i.className," timeline-point")),s){var h=r("text",n,o);s.xOffset&&(t+=s.xOffset),s.yOffset&&(e+=s.yOffset),s.content&&(h.textContent=s.content),s.className&&h.setAttributeNS(null,"class","".concat(s.className," timeline-label")),h.setAttributeNS(null,"x",t),h.setAttributeNS(null,"y",e)}return a},e.drawBar=function(t,e,i,n,o,s,a,h){if(0!=n){n<0&&(e-=n*=-1);var l=r("rect",s,a);l.setAttributeNS(null,"x",t-.5*i),l.setAttributeNS(null,"y",e),l.setAttributeNS(null,"width",i),l.setAttributeNS(null,"height",n),l.setAttributeNS(null,"class",o),h&&l.setAttributeNS(null,"style",h)}}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=function(){function t(e){o()(this,t),this.delay=null,this.max=1/0,this._queue=[],this._timeout=null,this._extended=null,this.setOptions(e)}return s()(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){var t=this._extended.object,e=this._extended.methods,i=!0,n=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var a=r.value;a.original?t[a.name]=a.original:delete t[a.name]}}catch(t){n=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}this._extended=null}}},{key:"replace",value:function(t,e){var i=this,n=t[e];if(!n)throw new Error("Method ".concat(e," undefined"));t[e]=function(){for(var t=[],e=0;ethis.max&&this.flush(),clearTimeout(this._timeout),this.queue.length>0&&"number"==typeof this.delay){var t=this;this._timeout=setTimeout(function(){t.flush()},this.delay)}}},{key:"flush",value:function(){for(;this._queue.length>0;){var t=this._queue.shift();t.fn.apply(t.context||t.fn,t.args||[])}}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var o=[{name:"flush",original:void 0}];if(i&&i.replace){var r=!0,s=!1,a=void 0;try{for(var h,l=i.replace[Symbol.iterator]();!(r=(h=l.next()).done);r=!0){var u=h.value;o.push({name:u,original:e[u]}),n.replace(e,u)}}catch(t){s=!0,a=t}finally{try{r||null==l.return||l.return()}finally{if(s)throw a}}}return n._extended={object:e,methods:o},n}}]),t}();e.default=a},function(t,e,i){function n(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"default",function(){return k});var o=i(27),r=i.n(o),s=i(5),a=i.n(s),h=i(6),l=i.n(h),u=i(16),c=i.n(u),d=i(17),f=i.n(d),p=i(18),m=i.n(p),v=i(28),g=i.n(v),y=i(9),b=i(34),_=i(45),w=i(59),k=function(t){function e(t,i){var n;a()(this,e),n=c()(this,f()(e).call(this));var o=Object(b.default)().hours(0).minutes(0).seconds(0).milliseconds(0),r=o.clone().add(-3,"days").valueOf(),s=o.clone().add(3,"days").valueOf();return n.millisecondsPerPixelCache=void 0,void 0===i?(n.start=r,n.end=s):(n.start=i.start||r,n.end=i.end||s),n.rolling=!1,n.body=t,n.deltaDifference=0,n.scaleOffset=0,n.startToFront=!1,n.endToFront=!0,n.defaultOptions={rtl:!1,start:null,end:null,moment:b.default,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},n.options=y.extend({},n.defaultOptions),n.props={touch:{}},n.animationTimer=null,n.body.emitter.on("panstart",n._onDragStart.bind(g()(g()(n)))),n.body.emitter.on("panmove",n._onDrag.bind(g()(g()(n)))),n.body.emitter.on("panend",n._onDragEnd.bind(g()(g()(n)))),n.body.emitter.on("mousewheel",n._onMouseWheel.bind(g()(g()(n)))),n.body.emitter.on("touch",n._onTouch.bind(g()(g()(n)))),n.body.emitter.on("pinch",n._onPinch.bind(g()(g()(n)))),n.body.dom.rollingModeBtn.addEventListener("click",n.startRolling.bind(g()(g()(n)))),n.setOptions(i),n}return m()(e,t),l()(e,[{key:"setOptions",value:function(t){if(t){y.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end)}}},{key:"startRolling",value:function(){function t(){e.stopRolling(),e.rolling=!0;var i=e.end-e.start,n=y.convert(new Date,"Date").valueOf(),o=e.options.rollingMode&&e.options.rollingMode.offset||.5,r=n-i*o,s=n+i*(1-o);e.setRange(r,s,{animation:!1});(i=1/e.conversion(e.body.domProps.center.width).scale/10)<30&&(i=30),i>1e3&&(i=1e3),e.body.dom.rollingModeBtn.style.visibility="hidden",e.currentTimeTimer=setTimeout(t,i)}var e=this;t()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(t,e,i,n,o){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var s=this,a=void 0!=t?y.convert(t,"Date").valueOf():null,h=void 0!=e?y.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var l=this.start,u=this.end,c="object"===r()(i.animation)&&"duration"in i.animation?i.animation.duration:500,d="object"===r()(i.animation)&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",f=y.easingFunctions[d];if(!f)throw new Error("Unknown easing function ".concat(JSON.stringify(d),". Choose from: ").concat(Object.keys(y.easingFunctions).join(", ")));var p=(new Date).valueOf(),m=!1;return function t(){if(!s.props.touch.dragging){var e=(new Date).valueOf()-p,r=f(e/c),d=e>c,g=d||null===a?a:l+(a-l)*r,y=d||null===h?h:u+(h-u)*r;v=s._applyRange(g,y),w.updateHiddenDates(s.options.moment,s.body,s.options.hiddenDates),m=m||v;var b={start:new Date(s.start),end:new Date(s.end),byUser:i.byUser,event:i.event};if(o&&o(r,v,d),v&&s.body.emitter.emit("rangechange",b),d){if(m&&(s.body.emitter.emit("rangechanged",b),n))return n()}else s.animationTimer=setTimeout(t,20)}}()}var v=this._applyRange(a,h);if(w.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),v){var g={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",g),clearTimeout(s.timeoutID),s.timeoutID=setTimeout(function(){s.body.emitter.emit("rangechanged",g)},200),n)return n()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(t,e){var i,n=null!=t?y.convert(t,"Date").valueOf():this.start,o=null!=e?y.convert(e,"Date").valueOf():this.end,r=null!=this.options.max?y.convert(this.options.max,"Date").valueOf():null,s=null!=this.options.min?y.convert(this.options.min,"Date").valueOf():null;if(isNaN(n)||null===n)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(o)||null===o)throw new Error('Invalid end "'.concat(e,'"'));if(or&&(o=r)),null!==r&&o>r&&(n-=i=o-r,o-=i,null!=s&&n=this.start-.5&&o<=this.end?(n=this.start,o=this.end):(n-=(i=a-(o-n))/2,o+=i/2)}}if(null!==this.options.zoomMax){var h=parseFloat(this.options.zoomMax);h<0&&(h=0),o-n>h&&(this.end-this.start===h&&nthis.end?(n=this.start,o=this.end):(n+=(i=o-n-h)/2,o-=i/2))}var l=this.start!=n||this.end!=o;return n>=this.start&&n<=this.end||o>=this.start&&o<=this.end||this.start>=n&&this.start<=o||this.end>=n&&this.end<=o||this.body.emitter.emit("checkRangedItems"),this.start=n,this.end=o,l}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(t,i){return e.conversion(this.start,this.end,t,i)}},{key:"_onDragStart",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;n(e);var i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var o=this.props.touch.end-this.props.touch.start;o-=w.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var r,s="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;r=this.options.rtl?i/s*o:-i/s*o;var a=this.props.touch.start+r,h=this.props.touch.end+r,l=w.snapAwayFromHidden(this.body.hiddenDates,a,this.previousDelta-i,!0),u=w.snapAwayFromHidden(this.body.hiddenDates,h,this.previousDelta-i,!0);if(l!=a||u!=h)return this.deltaDifference+=i,this.props.touch.start=l,this.props.touch.end=u,void this._onDrag(t);this.previousDelta=i,this._applyRange(a,h);var c=new Date(this.start),d=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:d,byUser:!0,event:t}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))}},{key:"_onMouseWheel",value:function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail?e=-t.detail/3:t.deltaY&&(e=-t.deltaY/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var i,n=this.options.zoomFriction||5;i=e<0?1-e/n:1/(1+e/n);var o;if(this.rolling){var r=this.options.rollingMode&&this.options.rollingMode.offset||.5;o=this.start+(this.end-this.start)*r}else{var s=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);o=this._pointerToDate(s)}this.zoom(i,o,e,t),t.preventDefault()}}},{key:"_onTouch",value:function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.scaleOffset=0,this.deltaDifference=0,y.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){y.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),i=this._pointerToDate(this.props.touch.center),n=w.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),o=w.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,i),r=n-o,s=i-o+(this.props.touch.start-(i-o))*e,a=i+r+(this.props.touch.end-(i+r))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var h=w.snapAwayFromHidden(this.body.hiddenDates,s,1-e,!0),l=w.snapAwayFromHidden(this.body.hiddenDates,a,e-1,!0);h==s&&l==a||(this.props.touch.start=h,this.props.touch.end=l,this.scaleOffset=1-t.scale,s=h,a=l);var u={animation:!1,byUser:!0,event:t};this.setRange(s,a,u),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e,i=t.center?t.center.x:t.clientX;e=this.options.rtl?i-y.getAbsoluteLeft(this.body.dom.centerContainer):y.getAbsoluteRight(this.body.dom.centerContainer)-i;var n=this.body.util.toTime(e);return n>=this.start&&n<=this.end}},{key:"_pointerToDate",value:function(t){var e,i=this.options.direction;if(n(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();var o=this.body.domProps.center.height;return e=this.conversion(o),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){return this.options.rtl?{x:y.getAbsoluteRight(e)-t.x,y:t.y-y.getAbsoluteTop(e)}:{x:t.x-y.getAbsoluteLeft(e),y:t.y-y.getAbsoluteTop(e)}}},{key:"zoom",value:function(t,e,i,n){null==e&&(e=(this.start+this.end)/2);var o=w.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),r=w.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,e),s=o-r,a=e-r+(this.start-(e-r))*t,h=e+s+(this.end-(e+s))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0);var l=w.snapAwayFromHidden(this.body.hiddenDates,a,i,!0),u=w.snapAwayFromHidden(this.body.hiddenDates,h,-i,!0);l==a&&u==h||(a=l,h=u);var c={animation:!1,byUser:!0,event:n};this.setRange(a,h,c),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(t){var e=this.end-this.start,i=this.start+e*t,n=this.end+e*t;this.start=i,this.end=n}},{key:"moveTo",value:function(t){var e=(this.start+this.end)/2-t,i=this.start-e,n=this.end-e;this.setRange(i,n,{animation:!1,byUser:!0,event:null})}}],[{key:"conversion",value:function(t,e,i,n){return void 0===n&&(n=0),0!=i&&e-t!=0?{offset:t,scale:i/(e-t-n)}:{offset:0,scale:1}}}]),e}(_.default)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(142),u=i.n(l),c=i(46),d=i.n(c),f=i(143),p=i(9),m=i(59),v=i(100),g=i(330),y=i.n(g),b=i(102),_=function(){function t(){s()(this,t)}return h()(t,[{key:"_create",value:function(t){function e(t){if(n.options.verticalScroll&&(t.preventDefault(),n.isActive())){var e=-t.target.scrollTop;n._setScrollTop(e),n._redraw(),n.emit("scrollSide",t)}}var i=this;this.dom={},this.dom.container=t,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="timeline-timeline",this.dom.background.className="timeline-panel timeline-background",this.dom.backgroundVertical.className="timeline-panel timeline-background timeline-vertical",this.dom.backgroundHorizontal.className="timeline-panel timeline-background timeline-horizontal",this.dom.centerContainer.className="timeline-panel timeline-center",this.dom.leftContainer.className="timeline-panel timeline-left",this.dom.rightContainer.className="timeline-panel timeline-right",this.dom.top.className="timeline-panel timeline-top",this.dom.bottom.className="timeline-panel timeline-bottom",this.dom.left.className="timeline-content",this.dom.center.className="timeline-content",this.dom.right.className="timeline-content",this.dom.shadowTop.className="timeline-shadow timeline-top",this.dom.shadowBottom.className="timeline-shadow timeline-bottom",this.dom.shadowTopLeft.className="timeline-shadow timeline-top",this.dom.shadowBottomLeft.className="timeline-shadow timeline-bottom",this.dom.shadowTopRight.className="timeline-shadow timeline-top",this.dom.shadowBottomRight.className="timeline-shadow timeline-bottom",this.dom.rollingModeBtn.className="timeline-rolling-mode-btn",this.dom.loadingScreen.className="timeline-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){!0===i.initialDrawDone&&i._redraw()}),this.on("rangechanged",function(){i.initialRangeChangeDone||(i.initialRangeChangeDone=!0)}),this.on("touch",this._onTouch.bind(this)),this.on("panmove",this._onDrag.bind(this));var n=this;this._origRedraw=this._redraw.bind(this),this._redraw=p.throttle(this._origRedraw),this.on("_change",function(t){n.itemSet&&n.itemSet.initialItemSetDrawn&&t&&1==t.queue?n._redraw():n._origRedraw()}),this.hammer=new d.a(this.dom.root);var o=this.hammer.get("pinch").set({enable:!0});o&&f.disablePreventDefaultVertically(o),this.hammer.get("pan").set({threshold:5,direction:d.a.DIRECTION_HORIZONTAL}),this.listeners={};["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach(function(t){var e=function(e){n.isActive()&&n.emit(t,e)};n.hammer.on(t,e),n.listeners[t]=e}),f.onTouch(this.hammer,function(t){n.emit("touch",t)}),f.onRelease(this.hammer,function(t){n.emit("release",t)});var r="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.centerContainer.addEventListener(r,function(t){this.isActive()&&this.emit("mousewheel",t);var e=0,i=0;if("detail"in t&&(i=-1*t.detail),"wheelDelta"in t&&(i=t.wheelDelta),"wheelDeltaY"in t&&(i=t.wheelDeltaY),"wheelDeltaX"in t&&(e=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=-1*i,i=0),"deltaY"in t&&(i=-1*t.deltaY),"deltaX"in t&&(e=t.deltaX),t.deltaMode&&(1===t.deltaMode?(e*=40,i*=40):(e*=40,i*=800)),this.options.preferZoom){if(!this.options.zoomKey||t[this.options.zoomKey])return}else if(this.options.zoomKey&&t[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll)if(this.options.verticalScroll&&Math.abs(i)>=Math.abs(e)){var n=this.props.scrollTop,o=n+i;this.isActive()&&this._setScrollTop(o)!==n&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}else if(this.options.horizontalScroll){var r=(Math.abs(e)>=Math.abs(i)?e:i)/120*(this.range.end-this.range.start)/20,s=this.range.start+r,a=this.range.end+r,h={animation:!1,byUser:!0,event:t};this.range.setRange(s,a,h),t.preventDefault()}}.bind(this),!1),this.dom.left.parentNode.addEventListener("scroll",e.bind(this)),this.dom.right.parentNode.addEventListener("scroll",e.bind(this));var s=!1;if(this.dom.center.addEventListener("dragover",function(t){if(t.preventDefault&&t.preventDefault(),t.target.className.indexOf("timeline")>-1&&!s)return t.dataTransfer.dropEffect="move",s=!0,!1}.bind(this),!1),this.dom.center.addEventListener("drop",function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(t){return!1}return s=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?n.itemSet._onAddItem(t):n.itemSet._onDropObjectOnItem(t),n.emit("drop",n.getEventProperties(t)),!1}.bind(this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){if(t){if(p.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll"],this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="timeline-panel timeline-background timeline-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="timeline-panel timeline-right timeline-vertical-scroll":this.dom.leftContainer.className="timeline-panel timeline-left timeline-vertical-scroll"),"object"!==o()(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===o()(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var e=this.timeAxis2=new v.default(this.body);e.setOptions=function(t){var i=t?p.extend({},t):{};i.orientation="top",v.default.prototype.setOptions.call(e,i)},this.components.push(e)}}else if(this.timeAxis2){var i=this.components.indexOf(this.timeAxis2);-1!==i&&this.components.splice(i,1),this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&m.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new y.a(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(this.components.forEach(function(e){return e.setOptions(t)}),"configure"in t){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var n=p.deepExtend({},this.options);this.components.forEach(function(t){p.deepExtend(n,t.options)}),this.configurator.setModuleOptions({global:n})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var t in this.listeners)this.listeners.hasOwnProperty(t)&&delete this.listeners[t];this.listeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,this.components.forEach(function(t){return t.destroy()}),this.body=null}},{key:"setCustomTime",value:function(t,e){var i=this.customTimes.filter(function(t){return e===t.options.id});if(0===i.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(e)));i.length>0&&i[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e=this.customTimes.filter(function(e){return e.options.id===t});if(0===e.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(t)));return e[0].getCustomTime()}},{key:"setCustomTimeTitle",value:function(t,e){var i=this.customTimes.filter(function(t){return t.options.id===e});if(0===i.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(e)));if(i.length>0)return i[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var i=void 0!==t?p.convert(t,"Date").valueOf():new Date;if(this.customTimes.some(function(t){return t.options.id===e}))throw new Error("A custom time with id ".concat(JSON.stringify(e)," already exists"));var n=new b.default(this.body,p.extend({},this.options,{time:i,id:e}));return this.customTimes.push(n),this.components.push(n),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e=this,i=this.customTimes.filter(function(e){return e.options.id===t});if(0===i.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(t)));i.forEach(function(t){e.customTimes.splice(e.customTimes.indexOf(t),1),e.components.splice(e.components.indexOf(t),1),t.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,e){var i=this.getDataRange();if(null!==i.min||null!==i.max){var n=i.max-i.min,o=new Date(i.min.valueOf()-.01*n),r=new Date(i.max.valueOf()+.01*n),s=!t||void 0===t.animation||t.animation;this.range.setRange(o,r,{animation:s},e)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,e,i,n){"function"==typeof arguments[2]&&(n=arguments[2],i={});var o,r;1==arguments.length?(o=void 0===(r=arguments[0]).animation||r.animation,this.range.setRange(r.start,r.end,{animation:o})):2==arguments.length&&"function"==typeof arguments[1]?(r=arguments[0],n=arguments[1],o=void 0===r.animation||r.animation,this.range.setRange(r.start,r.end,{animation:o},n)):(o=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:o},n))}},{key:"moveTo",value:function(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.range.end-this.range.start,o=p.convert(t,"Date").valueOf(),r=o-n/2,s=o+n/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(r,s,{animation:a},i)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=(s-s/(1+t))/2,h=o+a,l=r-a;this.setWindow(h,l,e,i)}}},{key:"zoomOut",value:function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=o-s*t/2,h=r+s*t/2;this.setWindow(a,h,e,i)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){this.redrawCount++;var t=!1,e=this.options,i=this.props,n=this.dom;if(n&&n.container&&0!=n.root.offsetWidth){m.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),"top"==e.orientation?(p.addClassName(n.root,"timeline-top"),p.removeClassName(n.root,"timeline-bottom")):(p.removeClassName(n.root,"timeline-top"),p.addClassName(n.root,"timeline-bottom")),n.root.style.maxHeight=p.option.asSize(e.maxHeight,""),n.root.style.minHeight=p.option.asSize(e.minHeight,""),n.root.style.width=p.option.asSize(e.width,""),i.border.left=(n.centerContainer.offsetWidth-n.centerContainer.clientWidth)/2,i.border.right=i.border.left,i.border.top=(n.centerContainer.offsetHeight-n.centerContainer.clientHeight)/2,i.border.bottom=i.border.top,i.borderRootHeight=n.root.offsetHeight-n.root.clientHeight,i.borderRootWidth=n.root.offsetWidth-n.root.clientWidth,0===n.centerContainer.clientHeight&&(i.border.left=i.border.top,i.border.right=i.border.left),0===n.root.clientHeight&&(i.borderRootWidth=i.borderRootHeight),i.center.height=n.center.offsetHeight,i.left.height=n.left.offsetHeight,i.right.height=n.right.offsetHeight,i.top.height=n.top.clientHeight||-i.border.top,i.bottom.height=n.bottom.clientHeight||-i.border.bottom;var o=Math.max(i.left.height,i.center.height,i.right.height),r=i.top.height+o+i.bottom.height+i.borderRootHeight+i.border.top+i.border.bottom;n.root.style.height=p.option.asSize(e.height,"".concat(r,"px")),i.root.height=n.root.offsetHeight,i.background.height=i.root.height-i.borderRootHeight;var s=i.root.height-i.top.height-i.bottom.height-i.borderRootHeight;i.centerContainer.height=s,i.leftContainer.height=s,i.rightContainer.height=i.leftContainer.height,i.root.width=n.root.offsetWidth,i.background.width=i.root.width-i.borderRootWidth,this.initialDrawDone||(i.scrollbarWidth=p.getScrollBarWidth()),e.verticalScroll?e.rtl?(i.left.width=n.leftContainer.clientWidth||-i.border.left,i.right.width=n.rightContainer.clientWidth+i.scrollbarWidth||-i.border.right):(i.left.width=n.leftContainer.clientWidth+i.scrollbarWidth||-i.border.left,i.right.width=n.rightContainer.clientWidth||-i.border.right):(i.left.width=n.leftContainer.clientWidth||-i.border.left,i.right.width=n.rightContainer.clientWidth||-i.border.right),this._setDOM();var a=this._updateScrollTop();"top"!=e.orientation.item&&(a+=Math.max(i.centerContainer.height-i.center.height-i.border.top-i.border.bottom,0)),n.center.style.top="".concat(a,"px");var h=0==i.scrollTop?"hidden":"",l=i.scrollTop==i.scrollTopMin?"hidden":"";n.shadowTop.style.visibility=h,n.shadowBottom.style.visibility=l,n.shadowTopLeft.style.visibility=h,n.shadowBottomLeft.style.visibility=l,n.shadowTopRight.style.visibility=h,n.shadowBottomRight.style.visibility=l,e.verticalScroll&&(n.rightContainer.className="timeline-panel timeline-right timeline-vertical-scroll",n.leftContainer.className="timeline-panel timeline-left timeline-vertical-scroll",n.shadowTopRight.style.visibility="hidden",n.shadowBottomRight.style.visibility="hidden",n.shadowTopLeft.style.visibility="hidden",n.shadowBottomLeft.style.visibility="hidden",n.left.style.top="0px",n.right.style.top="0px"),(!e.verticalScroll||i.center.heighti.centerContainer.height;this.hammer.get("pan").set({direction:u?d.a.DIRECTION_ALL:d.a.DIRECTION_HORIZONTAL}),this.components.forEach(function(e){t=e.redraw()||t});if(t){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var i=t.root.width-t.left.width-t.right.width-t.borderRootWidth;t.center.width=i,t.centerContainer.width=i,t.top.width=i,t.bottom.width=i,e.background.style.height="".concat(t.background.height,"px"),e.backgroundVertical.style.height="".concat(t.background.height,"px"),e.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),e.centerContainer.style.height="".concat(t.centerContainer.height,"px"),e.leftContainer.style.height="".concat(t.leftContainer.height,"px"),e.rightContainer.style.height="".concat(t.rightContainer.height,"px"),e.background.style.width="".concat(t.background.width,"px"),e.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),e.backgroundHorizontal.style.width="".concat(t.background.width,"px"),e.centerContainer.style.width="".concat(t.center.width,"px"),e.top.style.width="".concat(t.top.width,"px"),e.bottom.style.width="".concat(t.bottom.width,"px"),e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top="".concat(t.top.height,"px"),e.centerContainer.style.left="".concat(t.left.width,"px"),e.centerContainer.style.top="".concat(t.top.height,"px"),e.leftContainer.style.left="0",e.leftContainer.style.top="".concat(t.top.height,"px"),e.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),e.rightContainer.style.top="".concat(t.top.height,"px"),e.top.style.left="".concat(t.left.width,"px"),e.top.style.top="0",e.bottom.style.left="".concat(t.left.width,"px"),e.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return m.toTime(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return m.toTime(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return m.toScreen(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return m.toScreen(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){1==t.options.autoResize?t.dom.root&&(t.dom.root.offsetWidth==t.props.lastWidth&&t.dom.root.offsetHeight==t.props.lastHeight||(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight,t.props.scrollbarWidth=p.getScrollBarWidth(),t.body.emitter.emit("_change"))):t._stopAutoResize()},p.addEventListener(window,"resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=setInterval(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(p.removeEventListener(window,"resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,i=this._getScrollTop(),n=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),n!=i&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop1e3&&(i=1e3),e.redraw(),e.body.emitter.emit("currentTimeTick"),e.currentTimeTimer=setTimeout(t,i)}var e=this;t()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=f.convert(t,"Date").valueOf(),i=(new Date).valueOf();this.offset=e-i,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date((new Date).valueOf()+this.offset)}}]),e}(p.default);e.default=y},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(103),o=i.n(n),r=i(27),s=i.n(r),a=i(5),h=i.n(a),l=i(6),u=i.n(l),c=i(16),d=i.n(c),f=i(17),p=i.n(f),m=i(18),v=i.n(m),g=i(28),y=i.n(g),b=i(46),_=i.n(b),w=i(9),k=i(71),x=i(99),S=i(101),D=i(45),T=i(104),C=i(105),O=i(149),M=i(150),E=i(106),I=i(151),P=i(334),N=i(335),A="__ungrouped__",F="__background__",R=function(t){function e(t,i){var n;h()(this,e),(n=d()(this,p()(e).call(this))).body=t,n.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(t,e,i){var n=e.order;e.order=t.order,t.order=n},groupOrder:"order",selectable:!0,multiselect:!1,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:S.default.snap,onDropObjectOnItem:function(t,e,i){i(e)},onAdd:function(t,e){e(t)},onUpdate:function(t,e){e(t)},onMove:function(t,e){e(t)},onRemove:function(t,e){e(t)},onMoving:function(t,e){e(t)},onAddGroup:function(t,e){e(t)},onMoveGroup:function(t,e){e(t)},onRemoveGroup:function(t,e){e(t)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},n.options=w.extend({},n.defaultOptions),n.options.rtl=i.rtl,n.options.onTimeout=i.onTimeout,n.itemOptions={type:{start:"Date",end:"Date"}},n.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},n.dom={},n.props={},n.hammer=null;var o=y()(y()(n));return n.itemsData=null,n.groupsData=null,n.itemsSettingTime=null,n.initialItemSetDrawn=!1,n.userContinueNotBail=null,n.itemListeners={add:function(t,e,i){o._onAdd(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(t,e,i){o._onUpdate(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(t,e,i){o._onRemove(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},n.groupListeners={add:function(t,e,i){if(o._onAddGroups(e.items),o.groupsData&&o.groupsData.length>0){var n=o.groupsData.getDataSet();n.get().forEach(function(t){if(t.nestedGroups){0!=t.showNested&&(t.showNested=!0);var e=[];t.nestedGroups.forEach(function(i){var o=n.get(i);o&&(o.nestedInGroup=t.id,0==t.showNested&&(o.visible=!1),e=e.concat(o))}),n.update(e,i)}})}},update:function(t,e,i){o._onUpdateGroups(e.items)},remove:function(t,e,i){o._onRemoveGroups(e.items)}},n.items={},n.groups={},n.groupIds=[],n.selection=[],n.popup=null,n.popupTimer=null,n.touchParams={},n.groupTouchParams={group:null,isDragging:!1},n._create(),n.setOptions(i),n.clusters=[],n}return v()(e,t),u()(e,[{key:"_create",value:function(){var t=this,e=document.createElement("div");e.className="timeline-itemset",e["timeline-itemset"]=this,this.dom.frame=e;var i=document.createElement("div");i.className="timeline-background",e.appendChild(i),this.dom.background=i;var n=document.createElement("div");n.className="timeline-foreground",e.appendChild(n),this.dom.foreground=n;var o=document.createElement("div");o.className="timeline-axis",this.dom.axis=o;var r=document.createElement("div");r.className="timeline-labelset",this.dom.labelSet=r,this._updateUngrouped();var s=new C.default(F,null,this);s.show(),this.groups[F]=s,this.hammer=new _.a(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(e){e.isFirst&&t._onTouch(e)}),this.hammer.on("panstart",this._onDragStart.bind(this)),this.hammer.on("panmove",this._onDrag.bind(this)),this.hammer.on("panend",this._onDragEnd.bind(this)),this.hammer.get("pan").set({threshold:5,direction:_.a.DIRECTION_HORIZONTAL}),this.hammer.on("tap",this._onSelectItem.bind(this)),this.hammer.on("press",this._onMultiSelectItem.bind(this)),this.hammer.on("doubletap",this._onAddItem.bind(this)),this.options.rtl?this.groupHammer=new _.a(this.body.dom.rightContainer):this.groupHammer=new _.a(this.body.dom.leftContainer),this.groupHammer.on("tap",this._onGroupClick.bind(this)),this.groupHammer.on("panstart",this._onGroupDragStart.bind(this)),this.groupHammer.on("panmove",this._onGroupDrag.bind(this)),this.groupHammer.on("panend",this._onGroupDragEnd.bind(this)),this.groupHammer.get("pan").set({threshold:5,direction:_.a.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",this._onMouseOver.bind(this)),this.body.dom.centerContainer.addEventListener("mouseout",this._onMouseOut.bind(this)),this.body.dom.centerContainer.addEventListener("mousemove",this._onMouseMove.bind(this)),this.body.dom.centerContainer.addEventListener("contextmenu",this._onDragEnd.bind(this)),this.body.dom.centerContainer.addEventListener("mousewheel",this._onMouseWheel.bind(this)),this.show()}},{key:"setOptions",value:function(t){var e=this;if(t){w.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","multiselectPerGroup","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===s()(t.itemsAlwaysDraggable)&&(w.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===s()(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"==typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===s()(t.margin)&&(w.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"==typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===s()(t.margin.item)&&w.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),"editable"in t&&("boolean"==typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===s()(t.editable)&&w.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"==typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===s()(t.groupEditable)&&w.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable));["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"].forEach(function(i){var n=t[i];if(n){if("function"!=typeof n)throw new Error("option ".concat(i," must be a function ").concat(i,"(item, callback)"));e.options[i]=n}}),t.cluster?(Object.assign(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new N.a(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(t){this.groupIds=[],t&&(t.refreshItems&&w.forEach(this.items,function(t){t.dirty=!0,t.displayed&&t.redraw()}),t.restackGroups&&w.forEach(this.groups,function(t,e){e!==F&&(t.stackDirty=!0)}))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(t){this.clearPopupTimer(),t&&(this.popupTimer=setTimeout(function(){t.show()},this.options.tooltip.delay||500))}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(t){void 0==t&&(t=[]),Array.isArray(t)||(t=[t]);var e=this.selection.filter(function(e){return-1===t.indexOf(e)}),i=!0,n=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var h=s.value,l=this.getItemById(h);l&&l.unselect()}}catch(t){n=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(n)throw r}}this.selection=o()(t);var u=!0,c=!1,d=void 0;try{for(var f,p=t[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value,v=this.getItemById(m);v&&v.select()}}catch(t){c=!0,d=t}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}}},{key:"getSelection",value:function(){return this.selection.concat([])}},{key:"getVisibleItems",value:function(){var t,e,i=this.body.range.getRange();this.options.rtl?(t=this.body.util.toScreen(i.start),e=this.body.util.toScreen(i.end)):(e=this.body.util.toScreen(i.start),t=this.body.util.toScreen(i.end));var n=[];for(var o in this.groups)if(this.groups.hasOwnProperty(o)){var r=this.groups[o],s=r.isVisible?r.visibleItems:[],a=!0,h=!1,l=void 0;try{for(var u,c=s[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;this.options.rtl?d.rightt&&n.push(d.id):d.lefte&&n.push(d.id)}}catch(t){h=!0,l=t}finally{try{a||null==c.return||c.return()}finally{if(h)throw l}}}return n}},{key:"getVisibleGroups",value:function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){this.groups[e].isVisible&&t.push(e)}return t}},{key:"getItemById",value:function(t){return this.items[t]||this.clusters.find(function(e){return e.id===t})}},{key:"_deselect",value:function(t){for(var e=this.selection,i=0,n=e.length;i0&&function(){for(var e={},i=function(t){w.forEach(b,function(i,n){e[n]=i[t]()})},n=0;n<_;n++)i(n);w.forEach(t.groups,function(t,i){if(i!==F){var n=e[i];s=n||s,g+=t.height}}),g=Math.max(g,y)}(),g=Math.max(g,y),a.style.height=n(g),this.props.width=a.offsetWidth,this.props.height=g,this.dom.axis.style.top=n("top"==r?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.initialItemSetDrawn=!0,s=this._isResized()||s}},{key:"_firstGroup",value:function(){var t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t];return this.groups[e]||this.groups[A]||null}},{key:"_updateUngrouped",value:function(){var t,e,i=this.groups[A];if(this.groupsData){if(i){i.hide(),delete this.groups[A];for(e in this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var n=this.getGroupId(t.data),o=this.groups[n];o&&o.add(t)||t.hide()}}}else if(!i){i=new T.default(null,null,this),this.groups[A]=i;for(e in this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],i.add(t));i.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(t){this.itemsSettingTime=new Date;var e,i=this,n=this.itemsData;if(t){if(!(t instanceof k.default||t instanceof x.default))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=t}else this.itemsData=null;if(n&&(w.forEach(this.itemListeners,function(t,e){n.off(e,t)}),e=n.getIds(),this._onRemove(e)),this.itemsData){var o=this.id;w.forEach(this.itemListeners,function(t,e){i.itemsData.on(e,t,o)}),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData}},{key:"setGroups",value:function(t){var e,i=this;if(this.groupsData&&(w.forEach(this.groupListeners,function(t,e){i.groupsData.off(e,t)}),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!(t instanceof k.default||t instanceof x.default))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var n=this.groupsData;this.groupsData instanceof x.default&&(n=this.groupsData.getDataSet()),n.get().forEach(function(t){t.nestedGroups&&t.nestedGroups.forEach(function(e){var i=n.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),n.update(i)})});var o=this.id;w.forEach(this.groupListeners,function(t,e){i.groupsData.on(e,t,o)}),e=this.groupsData.getIds(),this._onAddGroups(e)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(t){var e=this.itemsData.get(t),i=this.itemsData.getDataSet();e&&this.options.onRemove(e,function(e){e&&i.remove(t)})}},{key:"_getType",value:function(t){return t.type||this.options.type||(t.end?"range":"box")}},{key:"getGroupId",value:function(t){return"background"==this._getType(t)&&void 0==t.group?F:this.groupsData?t.group:A}},{key:"_onUpdate",value:function(t){var i=this,n=this;t.forEach(function(t){var o,r=n.itemsData.get(t,n.itemOptions),s=n.items[t],a=r?n._getType(r):null,h=e.types[a];if(s&&(h&&s instanceof h?n._updateItem(s,r):(o=s.selected,n._removeItem(s),s=null)),!s&&r){if(!h)throw new TypeError('Unknown item type "'.concat(a,'"'));(s=new h(r,n.conversion,n.options)).id=t,n._addItem(s,!0),o&&(i.selection.push(t),s.select())}}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(t){var e=0,i=this;t.forEach(function(t){var n=i.items[t];n&&(e++,i._removeItem(n))}),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){w.forEach(this.groups,function(t){t.order()})}},{key:"_onUpdateGroups",value:function(t){this._onAddGroups(t)}},{key:"_onAddGroups",value:function(t){var e=this;t.forEach(function(t){var i=e.groupsData.get(t),n=e.groups[t];if(n)n.setData(i);else{if(t==A||t==F)throw new Error("Illegal group id. ".concat(t," is a reserved id."));var o=Object.create(e.options);w.extend(o,{height:null}),n=new T.default(t,i,e),e.groups[t]=n;for(var r in e.items)if(e.items.hasOwnProperty(r)){var s=e.items[r];s.data.group==t&&n.add(s)}n.order(),n.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(t){var e=this.groups;t.forEach(function(t){var i=e[t];i&&(i.hide(),delete e[t])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);var e=!w.equalArray(t,this.groupIds);if(e){var i=this.groups;t.forEach(function(t){i[t].hide()}),t.forEach(function(t){i[t].show()}),this.groupIds=t}return e}return!1}},{key:"_orderNestedGroups",value:function(t){function e(t,i){var n=[];return i.forEach(function(i){n.push(i);if(t.groupsData.get(i).nestedGroups){var o=t.groupsData.get({filter:function(t){return t.nestedInGroup==i},order:t.options.groupOrder}).map(function(t){return t.id});n=n.concat(e(t,o))}}),n}var i=this;return e(this,t.filter(function(t){return!i.groupsData.get(t).nestedInGroup}))}},{key:"_addItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.items[t.id]=t;var i=this.getGroupId(t.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,n&&n.add(t,e)}},{key:"_updateItem",value:function(t,e){t.setData(e);var i=this.getGroupId(t.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}},{key:"_removeItem",value:function(t){t.hide(),delete this.items[t.id];var e=this.selection.indexOf(t.id);-1!=e&&this.selection.splice(e,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(t){for(var e=[],i=0;i0;){var s=r;r=[];for(var a=0;a0&&(o=o.concat(r))}var l=i.get(o).map(function(t){return void 0==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t});if(i.update(l.concat(n)),n.showNested)w.removeClassName(e.dom.label,"collapsed"),w.addClassName(e.dom.label,"expanded");else{w.removeClassName(e.dom.label,"expanded");var u=this.options.rtl?"collapsed-rtl":"collapsed";w.addClassName(e.dom.label,u)}}}},{key:"toggleGroupDragClassName",value:function(t){t.dom.label.classList.toggle("timeline-group-is-dragging"),t.dom.foreground.classList.toggle("timeline-group-is-dragging")}},{key:"_onGroupDragStart",value:function(t){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData;this.groupsData instanceof x.default&&(e=this.groupsData.getDataSet());var i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){var n=i.topo)return}}if(i&&i!=this.groupTouchParams.group){var a=e.get(i.groupId),h=e.get(this.groupTouchParams.group.groupId);h&&a&&(this.options.groupOrderSwap(h,a,e),e.update(h),e.update(a));var l=e.getIds({order:this.options.groupOrder});if(!w.equalArray(l,this.groupTouchParams.originalOrder))for(var u=this.groupTouchParams.originalOrder,c=this.groupTouchParams.group.groupId,d=Math.min(u.length,l.length),f=0,p=0,m=0;f=d)break;if(l[f+p]==c)p=1;else if(u[f+m]==c)m=1;else{var v=l.indexOf(u[f+m]),g=e.get(l[f+p]),y=e.get(u[f+m]);this.options.groupOrderSwap(g,y,e),e.update(g),e.update(y);var b=l[f+p];l[f+p]=u[f+m],l[v]=b,f++}}}}}},{key:"_onGroupDragEnd",value:function(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,i=e.groupTouchParams.group.groupId,n=e.groupsData.getDataSet(),o=w.extend({},n.get(i));e.options.onMoveGroup(o,function(t){if(t)t[n._fieldId]=i,n.update(t);else{var o=n.getIds({order:e.options.groupOrder});if(!w.equalArray(o,e.groupTouchParams.originalOrder))for(var r=e.groupTouchParams.originalOrder,s=Math.min(r.length,o.length),a=0;a=s)break;var h=o.indexOf(r[a]),l=n.get(o[a]),u=n.get(r[a]);e.options.groupOrderSwap(l,u,n),n.update(l),n.update(u);var c=o[a];o[a]=r[a],o[h]=c,a++}}}),e.body.emitter.emit("groupDragged",{groupId:i}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),i=t.srcEvent&&t.srcEvent.shiftKey;if(e||i)this._onMultiSelectItem(t);else{var n=this.getSelection(),o=this.itemFromTarget(t),r=o?[o.id]:[];this.setSelection(r);var s=this.getSelection();(s.length>0||n.length>0)&&this.body.emitter.emit("select",{items:s,event:t})}}}},{key:"_onMouseOver",value:function(t){var e=this.itemFromTarget(t);if(e){if(e!==this.itemFromRelatedTarget(t)){var i=e.getTitle();if(this.options.showTooltips&&i){null==this.popup&&(this.popup=new P.a(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var n=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-w.getAbsoluteLeft(n)+n.offsetLeft,t.clientY-w.getAbsoluteTop(n)+n.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}}}},{key:"_onMouseOut",value:function(t){var e=this.itemFromTarget(t);if(e){e!==this.itemFromRelatedTarget(t)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))}}},{key:"_onMouseMove",value:function(t){if(this.itemFromTarget(t)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var e=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-w.getAbsoluteLeft(e)+e.offsetLeft,t.clientY-w.getAbsoluteTop(e)+e.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}},{key:"_onUpdateItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e=this;if(t){var i=e.itemsData.get(t.id);this.options.onUpdate(i,function(t){t&&e.itemsData.getDataSet().update(t)})}}}},{key:"_onDropObjectOnItem",value:function(t){var e=this.itemFromTarget(t),i=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,e)}},{key:"_onAddItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e,i,n=this,o=this.options.snap||null;this.options.rtl?i=(e=w.getAbsoluteRight(this.dom.frame))-t.center.x:(e=w.getAbsoluteLeft(this.dom.frame),i=t.center.x-e);var r,s,a=this.body.util.toTime(i),h=this.body.util.getScale(),l=this.body.util.getStep();"drop"==t.type?((s=JSON.parse(t.dataTransfer.getData("text"))).content=s.content?s.content:"new item",s.start=s.start?s.start:o?o(a,h,l):a,s.type=s.type||"box",s[this.itemsData._fieldId]=s.id||w.randomUUID(),"range"!=s.type||s.end||(r=this.body.util.toTime(i+this.props.width/5),s.end=o?o(r,h,l):r)):((s={start:o?o(a,h,l):a,content:"new item"})[this.itemsData._fieldId]=w.randomUUID(),"range"===this.options.type&&(r=this.body.util.toTime(i+this.props.width/5),s.end=o?o(r,h,l):r));var u=this.groupFromTarget(t);u&&(s.group=u.groupId),s=this._cloneItemData(s),this.options.onAdd(s,function(e){e&&(n.itemsData.getDataSet().add(e),"drop"==t.type&&n.setSelection([e.id]))})}}},{key:"_onMultiSelectItem",value:function(t){if(this.options.selectable){var i=this.itemFromTarget(t);if(i){var n=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||!1)&&this.options.multiselect){var o=this.itemsData.get(i.id).group,r=void 0;this.options.multiselectPerGroup&&n.length>0&&(r=this.itemsData.get(n[0]).group),this.options.multiselectPerGroup&&void 0!=r&&r!=o||n.push(i.id);var s=e._getItemRange(this.itemsData.get(n,this.itemOptions));if(!this.options.multiselectPerGroup||r==o){n=[];for(var a in this.items)if(this.items.hasOwnProperty(a)){var h=this.items[a],l=h.data.start,u=void 0!==h.data.end?h.data.end:l;!(l>=s.min&&u<=s.max)||this.options.multiselectPerGroup&&r!=this.itemsData.get(h.id).group||h instanceof I.default||n.push(h.id)}}}else{var c=n.indexOf(i.id);-1==c?n.push(i.id):n.splice(c,1)}this.setSelection(n),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}}},{key:"itemFromElement",value:function(t){for(var e=t;e;){if(e.hasOwnProperty("timeline-item"))return e["timeline-item"];e=e.parentNode}return null}},{key:"itemFromTarget",value:function(t){return this.itemFromElement(t.target)}},{key:"itemFromRelatedTarget",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:"groupFromTarget",value:function(t){var e=t.center?t.center.y:t.clientY,i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(var n=0;n=a&&ea)return r}else if(0===n&&ee)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)}),{min:i,max:e}}},{key:"itemSetFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("timeline-itemset"))return e["timeline-itemset"];e=e.parentNode}return null}}]),e}(D.default);R.types={background:I.default,box:O.default,range:E.default,point:M.default},R.prototype._onAdd=R.prototype._onUpdate,e.default=R},function(t,e,i){function n(t,e,i){for(var n=0;nr&&(r=s.top+s.height)}while(a)}}i.height=r-i.top+.5*e.item.vertical}function o(t,e,i,n){return n?t.right-i.horizontal+se.right&&t.top-i.vertical+se.top:t.left-i.horizontal+se.left&&t.top-i.vertical+se.top}function r(t,e){return t.start<=e.start&&t.end>=e.start&&t.tope.top||e.start<=t.start&&e.end>=t.start&&e.topt.top}Object.defineProperty(e,"__esModule",{value:!0}),e.orderByStart=function(t){t.sort(function(t,e){return t.data.start-e.data.start})},e.orderByEnd=function(t){t.sort(function(t,e){return("end"in t.data?t.data.end:t.data.start)-("end"in e.data?e.data.end:e.data.start)})},e.stack=function(t,e,i,n){if(i)for(var r=0;ri[s].index&&r(i[n],i[s])){o=i[s];break}null!=o&&(i[n].top=o.top+o.height)}while(o)}for(var a=0;ai[h].index&&(i[s].top+=i[h].height);for(var l=t[s],u=0;ut.start&&this.data.start.getTime()-nt.start&&this.data.start.getTime()t.start&&this.data.start.getTime()-n/2t.start&&this.data.startt.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="timeline-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="timeline-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var t=(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"");this.dom.box.className=this.baseClassName+t}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(t){var e,i=this,n=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){i.dirty&&(e=i._getDomComponentsSizes.bind(i)())},function(){i.dirty&&i._updateDomComponentsSizes.bind(i)(e)},this._repaintDomAdditionals.bind(this)];if(t)return n;var o;return n.forEach(function(t){o=t()}),o}},{key:"repositionY",value:function(t){var e,i=this.options.orientation.item;if(void 0!==this.data.subgroup){var n=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[n].height,"px"),this.dom.box.style.top="top"==i?"".concat(this.parent.top+this.parent.subgroups[n].top,"px"):"".concat(this.parent.top+this.parent.height-this.parent.subgroups[n].top-this.parent.subgroups[n].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof v.default?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==i?"0":"",this.dom.box.style.top="top"==i?"0":""):(e=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(e,"px")}}]),e}(m.default);y.prototype.baseClassName="timeline-item timeline-background",y.prototype.stack=!1,y.prototype.show=g.default.prototype.show,y.prototype.hide=g.default.prototype.hide,y.prototype.repositionX=g.default.prototype.repositionX,e.default=y},function(t,e,i){i.d(e,"b",function(){return d});var n,o=i(27),r=i.n(o),s=i(5),a=i.n(s),h=i(6),l=i.n(h),u=i(9),c=!1,d="background: #FFeeee; color: #dd0000",f=function(){function t(){a()(this,t)}return l()(t,null,[{key:"validate",value:function(e,i,o){c=!1,n=i;var r=i;return void 0!==o&&(r=i[o]),t.parse(e,r,[]),c}},{key:"parse",value:function(e,i,n){for(var o in e)e.hasOwnProperty(o)&&t.check(o,e,i,n)}},{key:"check",value:function(e,i,n,o){if(void 0!==n[e]||void 0!==n.__any__){var r=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(r="__any__",s="object"===t.getType(i[e]));var a=n[r];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,r,a,o)}else t.getSuggestion(e,n,o)}},{key:"checkFields",value:function(e,i,n,o,r,s){var a=function(i){console.log("%c"+i+t.printLocation(s,e),d)},h=t.getType(i[e]),l=r[h];void 0!==l?"array"===t.getType(l)&&-1===l.indexOf(i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(l)+' not "'+i[e]+'". '),c=!0):"object"===h&&"__any__"!==o&&(s=u.copyAndExtendArray(s,e),t.parse(i[e],n[o],s)):void 0===r.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(Object.keys(r))+". Received ["+h+'] "'+i[e]+'"'),c=!0)}},{key:"getType",value:function(t){var e=r()(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Array.isArray(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,i,o){var r,s=t.findInOptions(e,i,o,!1),a=t.findInOptions(e,n,[],!0);r=void 0!==s.indexMatch?" in "+t.printLocation(s.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+'"?\n\n':a.distance<=4&&s.distance>a.distance?" in "+t.printLocation(s.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):s.distance<=8?'. Did you mean "'+s.closestMatch+'"?'+t.printLocation(s.path,e):". Did you mean one of these: "+t.print(Object.keys(i))+t.printLocation(o,e),console.log('%cUnknown option detected: "'+e+'"'+r,d),c=!0}},{key:"findInOptions",value:function(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=1e9,s="",a=[],h=e.toLowerCase(),l=void 0;for(var c in i){var d=void 0;if(void 0!==i[c].__type__&&!0===o){var f=t.findInOptions(e,i[c],u.copyAndExtendArray(n,c));r>f.distance&&(s=f.closestMatch,a=f.path,r=f.distance,l=f.indexMatch)}else-1!==c.toLowerCase().indexOf(h)&&(l=c),r>(d=t.levenshteinDistance(e,c))&&(s=c,a=u.copyArray(n),r=d)}return{closestMatch:s,path:a,distance:r,indexMatch:l}}},{key:"printLocation",value:function(t,e){for(var i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",n=0;n6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(o()(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=a,this._start=e,this._end=i,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=h,this.autoScaleStart=n,this.autoScaleEnd=r,this.formattingFunction=l,n||r){var u=this,c=function(t){var e=t-t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>u.magnitudefactor*u.minorSteps[u.minorStepIdx]*.5?e+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:e};n&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=c(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=c(this._end)),this.determineScale()}}return s()(t,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,i=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i);var n=0;i<0&&(n=i);for(var o=!1,r=n;Math.abs(r)<=Math.abs(i);r++){this.magnitudefactor=Math.pow(10,r);for(var s=0;s=e){o=!0,this.minorStepIdx=s;break}}if(!0===o)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var e=t.toPrecision(5);return"function"==typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"==typeof e?"".concat(e):"string"==typeof e?e:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],e=this.getStep(),i=(e-this._start%e)%e,n=this._start+i;this._end-n>1e-5;n+=e)n!=this._start&&t.push({major:this.is_major(n),y:this.convertValue(n),val:this.formatValue(n)});return t}},{key:"followScale",value:function(t){var e=this.minorStepIdx,i=this._start,n=this._end,o=this,r=function(){o.magnitudefactor*=2},s=function(){o.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdxn+1e-5)s(),l=!1;else{if(!this.autoScaleStart&&this._start=0)){s(),l=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&co;)X(t,i=n[o++],e[i]);return t},K=function(t){var e=L.call(this,t=w(t,!0));return!(this===W&&o(Y,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(Y,t)||o(this,F)&&this[F][t])||e)},J=function(t,e){if(t=_(t),e=w(e,!0),t!==W||!o(Y,e)||o(H,e)){var i=O(t,e);return!i||!o(Y,e)||o(t,F)&&t[F][e]||(i.enumerable=!0),i}},$=function(t){for(var e,i=E(_(t)),n=[],r=0;i.length>r;)o(Y,e=i[r++])||e==F||e==h||n.push(e);return n},Q=function(t){for(var e,i=t===W,n=E(i?H:_(t)),r=[],s=0;n.length>s;)!o(Y,e=n[s++])||i&&!o(W,e)||r.push(Y[e]);return r};G||(a((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(i){this===W&&e.call(H,i),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),V(this,t,k(1,i))};return r&&B&&V(W,t,{configurable:!0,set:e}),U(t)})[A],"toString",function(){return this._k}),D.f=J,T.f=X,i(43).f=S.f=$,i(56).f=K,i(61).f=Q,r&&!i(39)&&a(W,"propertyIsEnumerable",K,!0),p.f=function(t){return U(f(t))}),s(s.G+s.W+s.F*!G,{Symbol:I});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)f(tt[et++]);for(var it=C(f.store),nt=0;it.length>nt;)m(it[nt++]);s(s.S+s.F*!G,"Symbol",{for:function(t){return o(j,t+="")?j[t]:j[t]=I(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),s(s.S+s.F*!G,"Object",{create:function(t,e){return void 0===e?x(t):Z(x(t),e)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:J,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),P&&s(s.S+s.F*(!G||l(function(){var t=I();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(b(e)||void 0!==t)&&!q(t))return g(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,N.apply(P,n)}}),I[A][R]||i(20)(I[A],R,I[A].valueOf),c(I,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(t,e,i){var n=i(40),o=i(61),r=i(56);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var s,a=i(t),h=r.f,l=0;a.length>l;)h.call(t,s=a[l++])&&e.push(s);return e}},function(t,e,i){var n=i(0);n(n.S,"Object",{create:i(42)})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(11),"Object",{defineProperty:i(10).f})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(11),"Object",{defineProperties:i(111)})},function(t,e,i){var n=i(21),o=i(24).f;i(25)("getOwnPropertyDescriptor",function(){return function(t,e){return o(n(t),e)}})},function(t,e,i){var n=i(14),o=i(44);i(25)("getPrototypeOf",function(){return function(t){return o(n(t))}})},function(t,e,i){var n=i(14),o=i(40);i(25)("keys",function(){return function(t){return o(n(t))}})},function(t,e,i){i(25)("getOwnPropertyNames",function(){return i(112).f})},function(t,e,i){var n=i(4),o=i(36).onFreeze;i(25)("freeze",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(4),o=i(36).onFreeze;i(25)("seal",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(4),o=i(36).onFreeze;i(25)("preventExtensions",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(4);i(25)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(4);i(25)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(4);i(25)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(0);n(n.S+n.F,"Object",{assign:i(113)})},function(t,e,i){var n=i(0);n(n.S,"Object",{is:i(114)})},function(t,e,i){var n=i(0);n(n.S,"Object",{setPrototypeOf:i(79).set})},function(t,e,i){var n=i(57),o={};o[i(7)("toStringTag")]="z",o+""!="[object z]"&&i(13)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){var n=i(0);n(n.P,"Function",{bind:i(115)})},function(t,e,i){var n=i(10).f,o=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in o||i(11)&&n(o,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},function(t,e,i){var n=i(4),o=i(44),r=i(7)("hasInstance"),s=Function.prototype;r in s||i(10).f(s,r,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,i){var n=i(0),o=i(117);n(n.G+n.F*(parseInt!=o),{parseInt:o})},function(t,e,i){var n=i(0),o=i(118);n(n.G+n.F*(parseFloat!=o),{parseFloat:o})},function(t,e,i){var n=i(3),o=i(19),r=i(31),s=i(81),a=i(35),h=i(1),l=i(43).f,u=i(24).f,c=i(10).f,d=i(62).trim,f=n.Number,p=f,m=f.prototype,v="Number"==r(i(42)(m)),g="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var i,n,o,r=(e=g?e.trim():d(e,3)).charCodeAt(0);if(43===r||45===r){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var s,h=e.slice(2),l=0,u=h.length;lo)return NaN;return parseInt(h,n)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof f&&(v?h(function(){m.valueOf.call(i)}):"Number"!=r(i))?s(new p(y(e)),i,f):y(e)};for(var b,_=i(11)?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(p,b=_[w])&&!o(f,b)&&c(f,b,u(p,b));f.prototype=m,m.constructor=f,i(13)(n,"Number",f)}},function(t,e,i){var n=i(0),o=i(23),r=i(119),s=i(82),a=1..toFixed,h=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",c=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*l[i],l[i]=n%1e7,n=h(n/1e7)},d=function(t){for(var e=6,i=0;--e>=0;)i+=l[e],l[e]=h(i/t),i=i%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var i=String(l[t]);e=""===e?i:e+s.call("0",7-i.length)+i}return e},p=function(t,e,i){return 0===e?i:e%2==1?p(t,e-1,i*t):p(t*t,e/2,i)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(1)(function(){a.call({})})),"Number",{toFixed:function(t){var e,i,n,a,h=r(this,u),l=o(t),m="",v="0";if(l<0||l>20)throw RangeError(u);if(h!=h)return"NaN";if(h<=-1e21||h>=1e21)return String(h);if(h<0&&(m="-",h=-h),h>1e-21)if(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(h*p(2,69,1))-69,i=e<0?h*p(2,-e,1):h/p(2,e,1),i*=4503599627370496,(e=52-e)>0){for(c(0,i),n=l;n>=7;)c(1e7,0),n-=7;for(c(p(10,n,1),0),n=e-1;n>=23;)d(1<<23),n-=23;d(1<0?m+((a=v.length)<=l?"0."+s.call("0",l-a)+v:v.slice(0,a-l)+"."+v.slice(a-l)):m+v}})},function(t,e,i){var n=i(0),o=i(1),r=i(119),s=1..toPrecision;n(n.P+n.F*(o(function(){return"1"!==s.call(1,void 0)})||!o(function(){s.call({})})),"Number",{toPrecision:function(t){var e=r(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,i){var n=i(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,i){var n=i(0),o=i(3).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,i){var n=i(0);n(n.S,"Number",{isInteger:i(120)})},function(t,e,i){var n=i(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,i){var n=i(0),o=i(120),r=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return o(t)&&r(t)<=9007199254740991}})},function(t,e,i){var n=i(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,i){var n=i(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,i){var n=i(0),o=i(118);n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,i){var n=i(0),o=i(117);n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,i){var n=i(0),o=i(121),r=Math.sqrt,s=Math.acosh;n(n.S+n.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+r(t-1)*r(t+1))}})},function(t,e,i){function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=i(0),r=Math.asinh;o(o.S+o.F*!(r&&1/r(0)>0),"Math",{asinh:n})},function(t,e,i){var n=i(0),o=Math.atanh;n(n.S+n.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,i){var n=i(0),o=i(83);n(n.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,i){var n=i(0),o=Math.exp;n(n.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,i){var n=i(0),o=i(84);n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,i){var n=i(0);n(n.S,"Math",{fround:i(202)})},function(t,e,i){var n=i(83),o=Math.pow,r=o(2,-52),s=o(2,-23),a=o(2,127)*(2-s),h=o(2,-126);t.exports=Math.fround||function(t){var e,i,o=Math.abs(t),l=n(t);return oa||i!=i?l*(1/0):l*i)}},function(t,e,i){var n=i(0),o=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,r=0,s=0,a=arguments.length,h=0;s0?(n=i/h)*n:i;return h===1/0?1/0:h*Math.sqrt(r)}})},function(t,e,i){var n=i(0),o=Math.imul;n(n.S+n.F*i(1)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var i=+t,n=+e,o=65535&i,r=65535&n;return 0|o*r+((65535&i>>>16)*r+o*(65535&n>>>16)<<16>>>0)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,i){var n=i(0);n(n.S,"Math",{log1p:i(121)})},function(t,e,i){var n=i(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,i){var n=i(0);n(n.S,"Math",{sign:i(83)})},function(t,e,i){var n=i(0),o=i(84),r=Math.exp;n(n.S+n.F*i(1)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(r(t-1)-r(-t-1))*(Math.E/2)}})},function(t,e,i){var n=i(0),o=i(84),r=Math.exp;n(n.S,"Math",{tanh:function(t){var e=o(t=+t),i=o(-t);return e==1/0?1:i==1/0?-1:(e-i)/(r(t)+r(-t))}})},function(t,e,i){var n=i(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,i){var n=i(0),o=i(41),r=String.fromCharCode,s=String.fromCodePoint;n(n.S+n.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,s=0;n>s;){if(e=+arguments[s++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?r(e):r(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}})},function(t,e,i){var n=i(0),o=i(21),r=i(8);n(n.S,"String",{raw:function(t){for(var e=o(t.raw),i=r(e.length),n=arguments.length,s=[],a=0;i>a;)s.push(String(e[a++])),a=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(0),o=i(85)(!1);n(n.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,i){var n=i(0),o=i(8),r=i(87),s="".endsWith;n(n.P+n.F*i(89)("endsWith"),"String",{endsWith:function(t){var e=r(this,t,"endsWith"),i=arguments.length>1?arguments[1]:void 0,n=o(e.length),a=void 0===i?n:Math.min(o(i),n),h=String(t);return s?s.call(e,h,a):e.slice(a-h.length,a)===h}})},function(t,e,i){var n=i(0),o=i(87);n(n.P+n.F*i(89)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(0);n(n.P,"String",{repeat:i(82)})},function(t,e,i){var n=i(0),o=i(8),r=i(87),s="startsWith",a=""[s];n(n.P+n.F*i(89)(s),"String",{startsWith:function(t){var e=r(this,t,s),i=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,i):e.slice(i,i+n.length)===n}})},function(t,e,i){i(15)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,i){i(15)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,i){i(15)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,i){i(15)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,i){i(15)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,i){i(15)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,i){i(15)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,i){i(15)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,i){i(15)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){i(15)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,i){i(15)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,i){i(15)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,i){i(15)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,i){var n=i(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,i){var n=i(0),o=i(14),r=i(35);n(n.P+n.F*i(1)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),i=r(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},function(t,e,i){var n=i(0),o=i(237);n(n.P+n.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,i){var n=i(1),o=Date.prototype.getTime,r=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=r.call(new Date(-5e13-1))})||!n(function(){r.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+("00000"+Math.abs(t)).slice(i?-6:-4)+"-"+s(this.getUTCMonth()+1)+"-"+s(this.getUTCDate())+"T"+s(this.getUTCHours())+":"+s(this.getUTCMinutes())+":"+s(this.getUTCSeconds())+"."+(e>99?e:"0"+s(e))+"Z"}:r},function(t,e,i){var n=Date.prototype,o=n.toString,r=n.getTime;new Date(NaN)+""!="Invalid Date"&&i(13)(n,"toString",function(){var t=r.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,e,i){var n=i(7)("toPrimitive"),o=Date.prototype;n in o||i(20)(o,n,i(240))},function(t,e,i){var n=i(2),o=i(35);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),"number"!=t)}},function(t,e,i){var n=i(0);n(n.S,"Array",{isArray:i(77)})},function(t,e,i){var n=i(29),o=i(0),r=i(14),s=i(123),a=i(90),h=i(8),l=i(91),u=i(92);o(o.S+o.F*!i(63)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,o,c,d=r(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(d);if(v&&(m=n(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(i=new f(e=h(d.length));e>g;g++)l(i,g,v?m(d[g],g):d[g]);else for(c=y.call(d),i=new f;!(o=c.next()).done;g++)l(i,g,v?s(c,m,[o.value,g],!0):o.value);return i.length=g,i}})},function(t,e,i){var n=i(0),o=i(91);n(n.S+n.F*i(1)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)o(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){var n=i(0),o=i(21),r=[].join;n(n.P+n.F*(i(55)!=Object||!i(22)(r)),"Array",{join:function(t){return r.call(o(this),void 0===t?",":t)}})},function(t,e,i){var n=i(0),o=i(78),r=i(31),s=i(41),a=i(8),h=[].slice;n(n.P+n.F*i(1)(function(){o&&h.call(o)}),"Array",{slice:function(t,e){var i=a(this.length),n=r(this);if(e=void 0===e?i:e,"Array"==n)return h.call(this,t,e);for(var o=s(t,i),l=s(e,i),u=a(l-o),c=new Array(u),d=0;d1&&(n=Math.min(n,r(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){var n=i(0);n(n.P,"Array",{copyWithin:i(125)}),i(49)("copyWithin")},function(t,e,i){var n=i(0);n(n.P,"Array",{fill:i(93)}),i(49)("fill")},function(t,e,i){var n=i(0),o=i(26)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),n(n.P+n.F*r,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(49)("find")},function(t,e,i){var n=i(0),o=i(26)(6),r=!0;"findIndex"in[]&&Array(1).findIndex(function(){r=!1}),n(n.P+n.F*r,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(49)("findIndex")},function(t,e,i){i(50)("Array")},function(t,e,i){var n=i(3),o=i(81),r=i(10).f,s=i(43).f,a=i(88),h=i(64),l=n.RegExp,u=l,c=l.prototype,d=/a/g,f=/a/g,p=new l(d)!==d;if(i(11)&&(!p||i(1)(function(){return f[i(7)("match")]=!1,l(d)!=d||l(f)==f||"/a/i"!=l(d,"i")}))){l=function(t,e){var i=this instanceof l,n=a(t),r=void 0===e;return!i&&n&&t.constructor===l&&r?t:o(p?new u(n&&!r?t.source:t,e):u((n=t instanceof l)?t.source:t,n&&r?h.call(t):e),i?this:c,l)};for(var m=function(t){t in l||r(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},v=s(u),g=0;v.length>g;)m(v[g++]);c.constructor=l,l.prototype=c,i(13)(n,"RegExp",l)}i(50)("RegExp")},function(t,e,i){i(128);var n=i(2),o=i(64),r=i(11),s=/./.toString,a=function(t){i(13)(RegExp.prototype,"toString",t,!0)};i(1)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(t,e,i){var n=i(2),o=i(8),r=i(96),s=i(65);i(66)("match",1,function(t,e,i,a){return[function(i){var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=a(i,t,this);if(e.done)return e.value;var h=n(t),l=String(this);if(!h.global)return s(h,l);var u=h.unicode;h.lastIndex=0;for(var c,d=[],f=0;null!==(c=s(h,l));){var p=String(c[0]);d[f]=p,""===p&&(h.lastIndex=r(l,o(h.lastIndex),u)),f++}return 0===f?null:d}]})},function(t,e,i){var n=i(2),o=i(14),r=i(8),s=i(23),a=i(96),h=i(65),l=Math.max,u=Math.min,c=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};i(66)("replace",2,function(t,e,i,m){return[function(n,o){var r=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,r,o):i.call(String(r),n,o)},function(t,e){var v=m(i,t,this,e);if(v.done)return v.value;var g=n(t),y=String(this),b="function"==typeof e;b||(e=String(e));var _=g.global;if(_){var w=g.unicode;g.lastIndex=0}for(var k=[];;){var x=h(g,y);if(null===x)break;if(k.push(x),!_)break;""===String(x[0])&&(g.lastIndex=a(y,r(g.lastIndex),w))}for(var S="",D=0,T=0;Tl){var d=c(u/10);return 0===d?i:d<=l?void 0===r[d-1]?o.charAt(1):r[d-1]+o.charAt(1):i}a=r[u-1]}return void 0===a?"":a})}(C,y,O,M,I,e);O>=D&&(S+=y.slice(D,O)+N,D=O+C.length)}return S+y.slice(D)}]})},function(t,e,i){var n=i(2),o=i(114),r=i(65);i(66)("search",1,function(t,e,i,s){return[function(i){var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=s(i,t,this);if(e.done)return e.value;var a=n(t),h=String(this),l=a.lastIndex;o(l,0)||(a.lastIndex=0);var u=r(a,h);return o(a.lastIndex,l)||(a.lastIndex=l),null===u?-1:u.index}]})},function(t,e,i){var n=i(88),o=i(2),r=i(58),s=i(96),a=i(8),h=i(65),l=i(95),u=i(1),c=Math.min,d=[].push,f=!u(function(){RegExp(4294967295,"y")});i(66)("split",2,function(t,e,i,u){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(o,t,e);for(var r,s,a,h=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,f=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,u+"g");(r=l.call(p,o))&&!((s=p.lastIndex)>c&&(h.push(o.slice(c,r.index)),r.length>1&&r.index=f));)p.lastIndex===r.index&&p.lastIndex++;return c===o.length?!a&&p.test("")||h.push(""):h.push(o.slice(c)),h.length>f?h.slice(0,f):h}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,o,n):p.call(String(o),i,n)},function(t,e){var n=u(p,t,this,e,p!==i);if(n.done)return n.value;var l=o(t),d=String(this),m=r(l,RegExp),v=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),y=new m(f?l:"^(?:"+l.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===d.length)return null===h(y,d)?[d]:[];for(var _=0,w=0,k=[];w0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(o(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,i){var n=i(132),o=i(53);t.exports=i(69)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,i){var n,o=i(26)(0),r=i(13),s=i(36),a=i(113),h=i(133),l=i(4),u=i(1),c=i(53),d=s.getWeak,f=Object.isExtensible,p=h.ufstore,m={},v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(l(t)){var e=d(t);return!0===e?p(c(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return h.def(c(this,"WeakMap"),t,e)}},y=t.exports=i(69)("WeakMap",v,g,h,!0,!0);u(function(){return 7!=(new y).set((Object.freeze||Object)(m),7).get(m)})&&(a((n=h.getConstructor(v,"WeakMap")).prototype,g),s.NEED=!0,o(["delete","has","get","set"],function(t){var e=y.prototype,i=e[t];r(e,t,function(e,o){if(l(e)&&!f(e)){this._f||(this._f=new n);var r=this._f[t](e,o);return"set"==t?this:r}return i.call(this,e,o)})}))},function(t,e,i){var n=i(133),o=i(53);i(69)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,i){var n=i(0),o=i(70),r=i(98),s=i(2),a=i(41),h=i(8),l=i(4),u=i(3).ArrayBuffer,c=i(58),d=r.ArrayBuffer,f=r.DataView,p=o.ABV&&u.isView,m=d.prototype.slice,v=o.VIEW,g="ArrayBuffer";n(n.G+n.W+n.F*(u!==d),{ArrayBuffer:d}),n(n.S+n.F*!o.CONSTR,g,{isView:function(t){return p&&p(t)||l(t)&&v in t}}),n(n.P+n.U+n.F*i(1)(function(){return!new d(2).slice(1,void 0).byteLength}),g,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(s(this),t);for(var i=s(this).byteLength,n=a(t,i),o=a(void 0===e?i:e,i),r=new(c(this,d))(h(o-n)),l=new f(this),u=new f(r),p=0;n=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new r(t)}})},function(t,e,i){function n(t,e){var i,a,u=arguments.length<3?t:arguments[2];return l(t)===u?t[e]:(i=o.f(t,e))?s(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:h(a=r(t))?n(a,e,u):void 0}var o=i(24),r=i(44),s=i(19),a=i(0),h=i(4),l=i(2);a(a.S,"Reflect",{get:n})},function(t,e,i){var n=i(24),o=i(0),r=i(2);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(r(t),e)}})},function(t,e,i){var n=i(0),o=i(44),r=i(2);n(n.S,"Reflect",{getPrototypeOf:function(t){return o(r(t))}})},function(t,e,i){var n=i(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,i){var n=i(0),o=i(2),r=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return o(t),!r||r(t)}})},function(t,e,i){var n=i(0);n(n.S,"Reflect",{ownKeys:i(135)})},function(t,e,i){var n=i(0),o=i(2),r=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){o(t);try{return r&&r(t),!0}catch(t){return!1}}})},function(t,e,i){function n(t,e,i){var h,d,f=arguments.length<4?t:arguments[3],p=r.f(u(t),e);if(!p){if(c(d=s(t)))return n(d,e,i,f);p=l(0)}if(a(p,"value")){if(!1===p.writable||!c(f))return!1;if(h=r.f(f,e)){if(h.get||h.set||!1===h.writable)return!1;h.value=i,o.f(f,e,h)}else o.f(f,e,l(0,i));return!0}return void 0!==p.set&&(p.set.call(f,i),!0)}var o=i(10),r=i(24),s=i(44),a=i(19),h=i(0),l=i(37),u=i(2),c=i(4);h(h.S,"Reflect",{set:n})},function(t,e,i){var n=i(0),o=i(79);o&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,i){i(301),t.exports=i(12).Array.includes},function(t,e,i){var n=i(0),o=i(60)(!0);n(n.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(49)("includes")},function(t,e,i){i(303),t.exports=i(12).String.padStart},function(t,e,i){var n=i(0),o=i(136),r=i(68);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,i){i(305),t.exports=i(12).String.padEnd},function(t,e,i){var n=i(0),o=i(136),r=i(68);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,i){i(307),t.exports=i(74).f("asyncIterator")},function(t,e,i){i(109)("asyncIterator")},function(t,e,i){i(309),t.exports=i(12).Object.getOwnPropertyDescriptors},function(t,e,i){var n=i(0),o=i(135),r=i(21),s=i(24),a=i(91);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=r(t),h=s.f,l=o(n),u={},c=0;l.length>c;)void 0!==(i=h(n,e=l[c++]))&&a(u,e,i);return u}})},function(t,e,i){i(311),t.exports=i(12).Object.values},function(t,e,i){var n=i(0),o=i(137)(!1);n(n.S,"Object",{values:function(t){return o(t)}})},function(t,e,i){i(313),t.exports=i(12).Object.entries},function(t,e,i){var n=i(0),o=i(137)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},function(t,e,i){i(129),i(315),t.exports=i(12).Promise.finally},function(t,e,i){var n=i(0),o=i(12),r=i(3),s=i(58),a=i(131);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,o.Promise||r.Promise),i="function"==typeof t;return this.then(i?function(i){return a(e,t()).then(function(){return i})}:t,i?function(i){return a(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){i(317),i(318),i(319),t.exports=i(12)},function(t,e,i){var n=i(3),o=i(0),r=i(68),s=[].slice,a=/MSIE .\./.test(r),h=function(t){return function(e,i){var n=arguments.length>2,o=!!n&&s.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};o(o.G+o.B+o.F*a,{setTimeout:h(n.setTimeout),setInterval:h(n.setInterval)})},function(t,e,i){var n=i(0),o=i(97);n(n.G+n.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,i){for(var n=i(94),o=i(40),r=i(13),s=i(3),a=i(20),h=i(48),l=i(7),u=l("iterator"),c=l("toStringTag"),d=h.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),m=0;m=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var s=g.call(o,"catchLoc"),a=g.call(o,"finallyLoc");if(s&&a){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),c(i),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;c(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:f(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=m),O}}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"util",function(){return n}),i.d(e,"DOMutil",function(){return o}),i.d(e,"DataSet",function(){return r}),i.d(e,"DataView",function(){return s}),i.d(e,"Queue",function(){return a}),i.d(e,"Timeline",function(){return h}),i.d(e,"timeline",function(){return l}),i.d(e,"moment",function(){return u}),i.d(e,"Hammer",function(){return c}),i.d(e,"keycharm",function(){return d});var n=i(9),o=i(138),r=i(71).default,s=i(99).default,a=i(139).default,h=i(326).default,l={Core:i(141).default,DateUtil:i(59),Range:i(140).default,stack:i(148),TimeStep:i(101).default,components:{items:{Item:i(54).default,BackgroundItem:i(151).default,BoxItem:i(149).default,PointItem:i(150).default,RangeItem:i(106).default},BackgroundGroup:i(105).default,Component:i(45).default,CurrentTime:i(146).default,CustomTime:i(102).default,DataAxis:i(339).default,DataScale:i(154).default,Group:i(104).default,ItemSet:i(147).default,TimeAxis:i(100).default}},u=i(34).default,c=i(46),d=i(144)},function(t,e,i){(function(t){!function(e,i){t.exports=i()}(0,function(){function e(){return $t.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return void 0===t}function r(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){var i,n=[];for(i=0;i0)for(i=0;i=0?i?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}function I(t,e,i,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),t&&(le[t]=o),e&&(le[e[0]]=function(){return E(o.apply(this,arguments),e[1],e[2])}),i&&(le[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function P(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function N(t,e){return t.isValid()?(e=A(e,t.localeData()),he[e]=he[e]||function(t){var e,i,n=t.match(se);for(e=0,i=n.length;e=0&&ae.test(t);)t=t.replace(ae,i),ae.lastIndex=0,n-=1;return t}function F(t,e,i){Te[t]=x(e)?e:function(t,n){return t&&i?i:e}}function R(t,e){return h(Te,t)?Te[t](e._strict,e._locale):new RegExp(function(t){return L(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,o){return e||i||n||o}))}(t))}function L(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function j(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),r(e)&&(n=function(t,i){i[e]=y(t)}),i=0;i=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function J(t,e,i){var n=7+e-i;return-((7+K(t,0,n).getUTCDay()-e)%7)+n-1}function $(t,e,i,n,o){var r,s,a=1+7*(e-1)+(7+i-n)%7+J(t,n,o);return a<=0?s=W(r=t-1)+a:a>W(t)?(r=t+1,s=a-W(t)):(r=t,s=a),{year:r,dayOfYear:s}}function Q(t,e,i){var n,o,r=J(t.year(),e,i),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?n=s+tt(o=t.year()-1,e,i):s>tt(t.year(),e,i)?(n=s-tt(t.year(),e,i),o=t.year()+1):(o=t.year(),n=s),{week:n,year:o}}function tt(t,e,i){var n=J(t,e,i),o=J(t+1,e,i);return(W(t)-n+o)/7}function et(){function t(t,e){return e.length-t.length}var e,i,n,o,r,s=[],a=[],h=[],l=[];for(e=0;e<7;e++)i=u([2e3,1]).day(e),n=this.weekdaysMin(i,""),o=this.weekdaysShort(i,""),r=this.weekdays(i,""),s.push(n),a.push(o),h.push(r),l.push(n),l.push(o),l.push(r);for(s.sort(t),a.sort(t),h.sort(t),l.sort(t),e=0;e<7;e++)a[e]=L(a[e]),h[e]=L(h[e]),l[e]=L(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function nt(t,e){I(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ot(t,e){return e._meridiemParse}function rt(t){return t?t.toLowerCase().replace("_","-"):t}function st(e){var i=null;if(!Qe[e]&&void 0!==t&&t&&t.exports)try{i=Ke._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),at(i)}catch(t){}return Qe[e]}function at(t,e){var i;return t&&((i=o(e)?lt(t):ht(t,e))?Ke=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ke._abbr}function ht(t,e){if(null!==e){var i,n=$e;if(e.abbr=t,null!=Qe[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Qe[t]._config;else if(null!=e.parentLocale)if(null!=Qe[e.parentLocale])n=Qe[e.parentLocale]._config;else{if(null==(i=st(e.parentLocale)))return ti[e.parentLocale]||(ti[e.parentLocale]=[]),ti[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Qe[t]=new D(S(n,e)),ti[t]&&ti[t].forEach(function(t){ht(t.name,t.config)}),at(t),Qe[t]}return delete Qe[t],null}function lt(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ke;if(!i(t)){if(e=st(t))return e;t=[t]}return function(t){for(var e,i,n,o,r=0;r0;){if(n=st(o.slice(0,e).join("-")))return n;if(i&&i.length>=e&&b(o,i,!0)>=e-1)break;e--}r++}return Ke}(t)}function ut(t){var e,i=t._a;return i&&-2===c(t).overflow&&(e=i[Me]<0||i[Me]>11?Me:i[Ee]<1||i[Ee]>U(i[Oe],i[Me])?Ee:i[Ie]<0||i[Ie]>24||24===i[Ie]&&(0!==i[Pe]||0!==i[Ne]||0!==i[Ae])?Ie:i[Pe]<0||i[Pe]>59?Pe:i[Ne]<0||i[Ne]>59?Ne:i[Ae]<0||i[Ae]>999?Ae:-1,c(t)._overflowDayOfYear&&(eEe)&&(e=Ee),c(t)._overflowWeeks&&-1===e&&(e=Fe),c(t)._overflowWeekday&&-1===e&&(e=Re),c(t).overflow=e),t}function ct(t,e,i){return null!=t?t:null!=e?e:i}function dt(t){var i,n,o,r,s,a=[];if(!t._d){for(o=function(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}(t),t._w&&null==t._a[Ee]&&null==t._a[Me]&&function(t){var e,i,n,o,r,s,a,h;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,s=4,i=ct(e.GG,t._a[Oe],Q(bt(),1,4).year),n=ct(e.W,1),((o=ct(e.E,1))<1||o>7)&&(h=!0);else{r=t._locale._week.dow,s=t._locale._week.doy;var l=Q(bt(),r,s);i=ct(e.gg,t._a[Oe],l.year),n=ct(e.w,l.week),null!=e.d?((o=e.d)<0||o>6)&&(h=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(h=!0)):o=r}n<1||n>tt(i,r,s)?c(t)._overflowWeeks=!0:null!=h?c(t)._overflowWeekday=!0:(a=$(i,n,o,r,s),t._a[Oe]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=ct(t._a[Oe],o[Oe]),(t._dayOfYear>W(s)||0===t._dayOfYear)&&(c(t)._overflowDayOfYear=!0),n=K(s,0,t._dayOfYear),t._a[Me]=n.getUTCMonth(),t._a[Ee]=n.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=a[i]=o[i];for(;i<7;i++)t._a[i]=a[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[Ie]&&0===t._a[Pe]&&0===t._a[Ne]&&0===t._a[Ae]&&(t._nextDay=!0,t._a[Ie]=0),t._d=(t._useUTC?K:function(t,e,i,n,o,r,s){var a=new Date(t,e,i,n,o,r,s);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ie]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(c(t).weekdayMismatch=!0)}}function ft(t){var e,i,n,o,r,s,a=t._i,h=ei.exec(a)||ii.exec(a);if(h){for(c(t).iso=!0,e=0,i=oi.length;e0&&c(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),l+=n.length),le[r]?(n?c(t).empty=!1:c(t).unusedTokens.push(r),H(r,n,t)):t._strict&&!n&&c(t).unusedTokens.push(r);c(t).charsLeftOver=h-l,a.length>0&&c(t).unusedInput.push(a),t._a[Ie]<=12&&!0===c(t).bigHour&&t._a[Ie]>0&&(c(t).bigHour=void 0),c(t).parsedDateParts=t._a.slice(0),c(t).meridiem=t._meridiem,t._a[Ie]=function(t,e,i){var n;if(null==i)return e;return null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[Ie],t._meridiem),dt(t),ut(t)}else mt(t);else ft(t)}function gt(t){var h=t._i,u=t._f;return t._locale=t._locale||lt(t._l),null===h||void 0===u&&""===h?f({nullInput:!0}):("string"==typeof h&&(t._i=h=t._locale.preparse(h)),v(h)?new m(ut(h)):(s(h)?t._d=h:i(u)?function(t){var e,i,n,o,r;if(0===t._f.length)return c(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;or&&(e=r),function(t,e,i,n,o){var r=$(t,e,i,n,o),s=K(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,t,e,i,n,o))}function Yt(t,e){e[Ae]=y(1e3*("0."+t))}function Ht(t){return t}function Wt(t,e,i,n){var o=lt(),r=u().set(n,e);return o[i](r,t)}function Gt(t,e,i){if(r(t)&&(e=t,t=void 0),t=t||"",null!=e)return Wt(t,e,i,"month");var n,o=[];for(n=0;n<12;n++)o[n]=Wt(t,n,i,"month");return o}function zt(t,e,i,n){"boolean"==typeof t?(r(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,r(e)&&(i=e,e=void 0),e=e||"");var o=lt(),s=t?o._week.dow:0;if(null!=i)return Wt(e,(i+s)%7,n,"day");var a,h=[];for(a=0;a<7;a++)h[a]=Wt(e,(a+s)%7,n,"day");return h}function Bt(t,e,i,n){var o=Mt(e,i);return t._milliseconds+=n*o._milliseconds,t._days+=n*o._days,t._months+=n*o._months,t._bubble()}function Vt(t){return t<0?Math.floor(t):Math.ceil(t)}function Ut(t){return 4800*t/146097}function qt(t){return 146097*t/4800}function Xt(t){return function(){return this.as(t)}}function Zt(t){return function(){return this.isValid()?this._data[t]:NaN}}function Kt(t){return(t>0)-(t<0)||+t}function Jt(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=zi(this._milliseconds)/1e3,n=zi(this._days),o=zi(this._months);e=g((t=g(i/60))/60),i%=60,t%=60;var r=g(o/12),s=o%=12,a=n,h=e,l=t,u=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Kt(this._months)!==Kt(c)?"-":"",p=Kt(this._days)!==Kt(c)?"-":"",m=Kt(this._milliseconds)!==Kt(c)?"-":"";return d+"P"+(r?f+r+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(h||l||u?"T":"")+(h?m+h+"H":"")+(l?m+l+"M":"")+(u?m+u+"S":"")}var $t,Qt;Qt=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n68?1900:2e3)};var Le,je=z("FullYear",!0);Le=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;ethis?this:t:f()}),ci=["year","quarter","month","week","day","hour","minute","second","millisecond"];St("Z",":"),St("ZZ",""),F("Z",Se),F("ZZ",Se),j(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Dt(Se,t)});var di=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var fi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,pi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Mt.fn=wt.prototype,Mt.invalid=function(){return Mt(NaN)};var mi=Pt(1,"add"),vi=Pt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var gi=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Lt("gggg","weekYear"),Lt("ggggg","weekYear"),Lt("GGGG","isoWeekYear"),Lt("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),M("weekYear",1),M("isoWeekYear",1),F("G",ke),F("g",ke),F("GG",me,ce),F("gg",me,ce),F("GGGG",be,fe),F("gggg",be,fe),F("GGGGG",_e,pe),F("ggggg",_e,pe),Y(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=y(t)}),Y(["gg","GG"],function(t,i,n,o){i[o]=e.parseTwoDigitYear(t)}),I("Q",0,"Qo","quarter"),T("quarter","Q"),M("quarter",7),F("Q",ue),j("Q",function(t,e){e[Me]=3*(y(t)-1)}),I("D",["DD",2],"Do","date"),T("date","D"),M("date",9),F("D",me),F("DD",me,ce),F("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),j(["D","DD"],Ee),j("Do",function(t,e){e[Ee]=y(t.match(me)[0])});var yi=z("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),M("dayOfYear",4),F("DDD",ye),F("DDDD",de),j(["DDD","DDDD"],function(t,e,i){i._dayOfYear=y(t)}),I("m",["mm",2],0,"minute"),T("minute","m"),M("minute",14),F("m",me),F("mm",me,ce),j(["m","mm"],Pe);var bi=z("Minutes",!1);I("s",["ss",2],0,"second"),T("second","s"),M("second",15),F("s",me),F("ss",me,ce),j(["s","ss"],Ne);var _i=z("Seconds",!1);I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),M("millisecond",16),F("S",ye,ue),F("SS",ye,ce),F("SSS",ye,de);var wi;for(wi="SSSS";wi.length<=9;wi+="S")F(wi,we);for(wi="S";wi.length<=9;wi+="S")j(wi,Yt);var ki=z("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var xi=m.prototype;xi.add=mi,xi.calendar=function(t,i){var n=t||bt(),o=Tt(n,this).startOf("day"),r=e.calendarFormat(this,o)||"sameElse",s=i&&(x(i[r])?i[r].call(this,n):i[r]);return this.format(s||this.localeData().calendar(r,this,bt(n)))},xi.clone=function(){return new m(this)},xi.diff=function(t,e,i){var n,o,r;if(!this.isValid())return NaN;if(!(n=Tt(t,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),e=C(e)){case"year":r=At(this,n)/12;break;case"month":r=At(this,n);break;case"quarter":r=At(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-o)/864e5;break;case"week":r=(this-n-o)/6048e5;break;default:r=this-n}return i?r:g(r)},xi.endOf=function(t){return void 0===(t=C(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},xi.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=N(this,t);return this.localeData().postformat(i)},xi.from=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||bt(t).isValid())?Mt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},xi.fromNow=function(t){return this.from(bt(),t)},xi.to=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||bt(t).isValid())?Mt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},xi.toNow=function(t){return this.to(bt(),t)},xi.get=function(t){return t=C(t),x(this[t])?this[t]():this},xi.invalidAt=function(){return c(this).overflow},xi.isAfter=function(t,e){var i=v(t)?t:bt(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=C(o(e)?"millisecond":e))?this.valueOf()>i.valueOf():i.valueOf()9999?N(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(i,"Z")):N(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+o)},xi.toJSON=function(){return this.isValid()?this.toISOString():null},xi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xi.unix=function(){return Math.floor(this.valueOf()/1e3)},xi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xi.year=je,xi.isLeapYear=function(){return G(this.year())},xi.weekYear=function(t){return jt.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},xi.isoWeekYear=function(t){return jt.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},xi.quarter=xi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},xi.month=X,xi.daysInMonth=function(){return U(this.year(),this.month())},xi.week=xi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},xi.isoWeek=xi.isoWeeks=function(t){var e=Q(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},xi.weeksInYear=function(){var t=this.localeData()._week;return tt(this.year(),t.dow,t.doy)},xi.isoWeeksInYear=function(){return tt(this.year(),1,4)},xi.date=yi,xi.day=xi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},xi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},xi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},xi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},xi.hour=xi.hours=Je,xi.minute=xi.minutes=bi,xi.second=xi.seconds=_i,xi.millisecond=xi.milliseconds=ki,xi.utcOffset=function(t,i,n){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Dt(Se,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&i&&(o=Ct(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!i||this._changeInProgress?Nt(this,Mt(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ct(this)},xi.utc=function(t){return this.utcOffset(0,t)},xi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ct(this),"m")),this},xi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Dt(xe,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},xi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?bt(t).utcOffset():0,(this.utcOffset()-t)%60==0)},xi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xi.isLocal=function(){return!!this.isValid()&&!this._isUTC},xi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xi.isUtc=Ot,xi.isUTC=Ot,xi.zoneAbbr=function(){return this._isUTC?"UTC":""},xi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xi.dates=w("dates accessor is deprecated. Use date instead.",yi),xi.months=w("months accessor is deprecated. Use month instead",X),xi.years=w("years accessor is deprecated. Use year instead",je),xi.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),xi.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(p(t,this),(t=gt(t))._a){var e=t._isUTC?u(t._a):bt(t._a);this._isDSTShifted=this.isValid()&&b(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Si=D.prototype;Si.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return x(n)?n.call(e,i):n},Si.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},Si.invalidDate=function(){return this._invalidDate},Si.ordinal=function(t){return this._ordinal.replace("%d",t)},Si.preparse=Ht,Si.postformat=Ht,Si.relativeTime=function(t,e,i,n){var o=this._relativeTime[i];return x(o)?o(t,e,i,n):o.replace(/%d/i,t)},Si.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return x(i)?i(e):i.replace(/%s/i,e)},Si.set=function(t){var e,i;for(i in t)x(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Si.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ye).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},Si.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ye.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Si.monthsParse=function(t,e,i){var n,o,r;if(this._monthsParseExact)return function(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(o=Le.call(this._shortMonthsParse,s))?o:null:-1!==(o=Le.call(this._longMonthsParse,s))?o:null:"MMM"===e?-1!==(o=Le.call(this._shortMonthsParse,s))?o:-1!==(o=Le.call(this._longMonthsParse,s))?o:null:-1!==(o=Le.call(this._longMonthsParse,s))?o:-1!==(o=Le.call(this._shortMonthsParse,s))?o:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Si.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Z.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=ze),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Si.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Z.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Si.week=function(t){return Q(t,this._week.dow,this._week.doy).week},Si.firstDayOfYear=function(){return this._week.doy},Si.firstDayOfWeek=function(){return this._week.dow},Si.weekdays=function(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},Si.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},Si.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},Si.weekdaysParse=function(t,e,i){var n,o,r;if(this._weekdaysParseExact)return function(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(o=Le.call(this._weekdaysParse,s))?o:null:"ddd"===e?-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:null:"dddd"===e?-1!==(o=Le.call(this._weekdaysParse,s))?o:-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:null:"ddd"===e?-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:-1!==(o=Le.call(this._weekdaysParse,s))?o:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:-1!==(o=Le.call(this._weekdaysParse,s))?o:-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=u([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Si.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||et.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Si.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||et.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Si.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||et.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Si.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Si.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=w("moment.lang is deprecated. Use moment.locale instead.",at),e.langData=w("moment.langData is deprecated. Use moment.localeData instead.",lt);var Di=Math.abs,Ti=Xt("ms"),Ci=Xt("s"),Oi=Xt("m"),Mi=Xt("h"),Ei=Xt("d"),Ii=Xt("w"),Pi=Xt("M"),Ni=Xt("y"),Ai=Zt("milliseconds"),Fi=Zt("seconds"),Ri=Zt("minutes"),Li=Zt("hours"),ji=Zt("days"),Yi=Zt("months"),Hi=Zt("years"),Wi=Math.round,Gi={ss:44,s:45,m:45,h:22,d:26,M:11},zi=Math.abs,Bi=wt.prototype;return Bi.isValid=function(){return this._isValid},Bi.abs=function(){var t=this._data;return this._milliseconds=Di(this._milliseconds),this._days=Di(this._days),this._months=Di(this._months),t.milliseconds=Di(t.milliseconds),t.seconds=Di(t.seconds),t.minutes=Di(t.minutes),t.hours=Di(t.hours),t.months=Di(t.months),t.years=Di(t.years),this},Bi.add=function(t,e){return Bt(this,t,e,1)},Bi.subtract=function(t,e){return Bt(this,t,e,-1)},Bi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=C(t))||"year"===t)return e=this._days+n/864e5,i=this._months+Ut(e),"month"===t?i:i/12;switch(e=this._days+Math.round(qt(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Bi.asMilliseconds=Ti,Bi.asSeconds=Ci,Bi.asMinutes=Oi,Bi.asHours=Mi,Bi.asDays=Ei,Bi.asWeeks=Ii,Bi.asMonths=Pi,Bi.asYears=Ni,Bi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN},Bi._bubble=function(){var t,e,i,n,o,r=this._milliseconds,s=this._days,a=this._months,h=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*Vt(qt(a)+s),s=0,a=0),h.milliseconds=r%1e3,t=g(r/1e3),h.seconds=t%60,e=g(t/60),h.minutes=e%60,i=g(e/60),h.hours=i%24,s+=g(i/24),o=g(Ut(s)),a+=o,s-=Vt(qt(o)),n=g(a/12),a%=12,h.days=s,h.months=a,h.years=n,this},Bi.clone=function(){return Mt(this)},Bi.get=function(t){return t=C(t),this.isValid()?this[t+"s"]():NaN},Bi.milliseconds=Ai,Bi.seconds=Fi,Bi.minutes=Ri,Bi.hours=Li,Bi.days=ji,Bi.weeks=function(){return g(this.days()/7)},Bi.months=Yi,Bi.years=Hi,Bi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=Mt(t).abs(),o=Wi(n.as("s")),r=Wi(n.as("m")),s=Wi(n.as("h")),a=Wi(n.as("d")),h=Wi(n.as("M")),l=Wi(n.as("y")),u=o<=Gi.ss&&["s",o]||o0,u[4]=i,function(t,e,i,n,o){return o.relativeTime(e||1,!!i,t,n)}.apply(null,u)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Bi.toISOString=Jt,Bi.toString=Jt,Bi.toJSON=Jt,Bi.locale=Ft,Bi.localeData=Rt,Bi.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jt),Bi.lang=gi,I("X",0,0,"unix"),I("x",0,0,"valueOf"),F("x",ke),F("X",/[+-]?\d+(\.\d{1,3})?/),j("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),j("x",function(t,e,i){i._d=new Date(y(t))}),e.version="2.22.2",function(t){$t=t}(bt),e.fn=xi,e.min=function(){return _t("isBefore",[].slice.call(arguments,0))},e.max=function(){return _t("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=u,e.unix=function(t){return bt(1e3*t)},e.months=function(t,e){return Gt(t,e,"months")},e.isDate=s,e.locale=at,e.invalid=f,e.duration=Mt,e.isMoment=v,e.weekdays=function(t,e,i){return zt(t,e,i,"weekdays")},e.parseZone=function(){return bt.apply(null,arguments).parseZone()},e.localeData=lt,e.isDuration=kt,e.monthsShort=function(t,e){return Gt(t,e,"monthsShort")},e.weekdaysMin=function(t,e,i){return zt(t,e,i,"weekdaysMin")},e.defineLocale=ht,e.updateLocale=function(t,e){if(null!=e){var i,n,o=$e;null!=(n=st(t))&&(o=n._config),(i=new D(e=S(o,e))).parentLocale=Qe[t],Qe[t]=i,at(t)}else null!=Qe[t]&&(null!=Qe[t].parentLocale?Qe[t]=Qe[t].parentLocale:null!=Qe[t]&&delete Qe[t]);return Qe[t]},e.locales=function(){return ne(Qe)},e.weekdaysShort=function(t,e,i){return zt(t,e,i,"weekdaysShort")},e.normalizeUnits=C,e.relativeTimeRounding=function(t){return void 0===t?Wi:"function"==typeof t&&(Wi=t,!0)},e.relativeTimeThreshold=function(t,e){return void 0!==Gi[t]&&(void 0===e?Gi[t]:(Gi[t]=e,"s"===t&&(Gi.ss=e-1),!0))},e.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},e.prototype=xi,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,i(323)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){function i(t){throw new Error("Cannot find module '"+t+"'.")}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id=324},function(t,e,i){(function(t){function i(t,e){var i=e||0,n=h;return"".concat(n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]])}function n(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||o)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;a++)e[r+a]=s[a];return e||i(s)}var o,r="undefined"!=typeof window?window:void 0!==t?t:null;if(r&&r.crypto&&crypto.getRandomValues){var s=new Uint8Array(16);o=function(){return crypto.getRandomValues(s),s}}if(!o){var a=new Array(16);o=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),a[e]=t>>>((3&e)<<3)&255;return a}}for(var h=[],l={},u=0;u<256;u++)h[u]=(u+256).toString(16).substr(1),l[h[u]]=u;var c=o(),d=[1|c[0],c[1],c[2],c[3],c[4],c[5]],f=16383&(c[6]<<8|c[7]),p=0,m=0,v=n;v.v1=function(t,e,n){var o=e&&n||0,r=e||[],s=void 0!==(t=t||{}).clockseq?t.clockseq:f,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),h=void 0!==t.nsecs?t.nsecs:m+1,l=a-p+(h-m)/1e4;if(l<0&&void 0===t.clockseq&&(s=s+1&16383),(l<0||a>p)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=a,m=h,f=s;var u=(1e4*(268435455&(a+=122192928e5))+h)%4294967296;r[o++]=u>>>24&255,r[o++]=u>>>16&255,r[o++]=u>>>8&255,r[o++]=255&u;var c=a/4294967296*1e4&268435455;r[o++]=c>>>8&255,r[o++]=255&c,r[o++]=c>>>24&15|16,r[o++]=c>>>16&255,r[o++]=s>>>8|128,r[o++]=255&s;for(var v=t.node||d,g=0;g<6;g++)r[o+g]=v[g];return e||i(r)},v.v4=n,v.parse=function(t,e,i){var n=e&&i||0,o=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){o<16&&(e[n+o++]=l[t])});o<16;)e[n+o++]=0;return e},v.unparse=i,e.a=v}).call(e,i(107))},function(t,e,i){function n(t){return b.convert(t.data.start,"Date").valueOf()}function o(t){var e=void 0!=t.data.end?t.data.end:t.data.start;return b.convert(e,"Date").valueOf()}function r(t,e){if(!e.parent)return!1;var i=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,n=t.props.center.height,o=e.parent,r=o.top,s=!0,a=t.timeAxis.options.orientation.axis,h=function(){return"bottom"==a?o.height-e.top-e.height:e.top},l=-1*t._getScrollTop(),u=r+h(),c=e.height;return ul+i?r+=h()+c-i+t.itemSet.options.margin.item.vertical:s=!1,r=Math.min(r,n-i),{shouldScroll:s,scrollOffset:r,itemTop:u}}Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"default",function(){return I});var s=i(5),a=i.n(s),h=i(6),l=i.n(h),u=i(16),c=i.n(u),d=i(17),f=i.n(d),p=i(18),m=i.n(p),v=i(28),g=i.n(v),y=i(34),b=i(9),_=i(71),w=i(99),k=i(140),x=i(141),S=i(100),D=i(146),T=i(102),C=i(147),O=i(152),M=i(153),E=i(337),I=function(t){function e(t,i,n,o){var r;if(a()(this,e),r=c()(this,f()(e).call(this)),r.initTime=new Date,r.itemsDone=!1,!(g()(g()(r))instanceof e))throw new SyntaxError("Constructor must be called with the new operator");if(!(Array.isArray(n)||n instanceof _.default||n instanceof w.default)&&n instanceof Object){var s=o;o=n,n=s}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var h=g()(g()(r));if(r.defaultOptions={autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:y.default},r.options=b.deepExtend({},r.defaultOptions),r._create(t),!o||o&&void 0===o.rtl){r.dom.root.style.visibility="hidden";for(var l,u=r.dom.root;!l&&u;)l=window.getComputedStyle(u,null).direction,u=u.parentElement;r.options.rtl=l&&"rtl"==l.toLowerCase()}else r.options.rtl=o.rtl;o&&(o.rollingMode&&(r.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(r.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(r.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(r.options.loadingScreenTemplate=o.loadingScreenTemplate));var d=document.createElement("div");if(r.options.loadingScreenTemplate){var p=r.options.loadingScreenTemplate.bind(g()(g()(r))),m=p(r.dom.loadingScreen);m instanceof Object&&!(m instanceof Element)?p(d):m instanceof Element?(d.innerHTML="",d.appendChild(m)):void 0!=m&&(d.innerHTML=m)}return r.dom.loadingScreen.appendChild(d),r.components=[],r.body={dom:r.dom,domProps:r.props,emitter:{on:r.on.bind(g()(g()(r))),off:r.off.bind(g()(g()(r))),emit:r.emit.bind(g()(g()(r)))},hiddenDates:[],util:{getScale:function(){return h.timeAxis.step.scale},getStep:function(){return h.timeAxis.step.step},toScreen:h._toScreen.bind(h),toGlobalScreen:h._toGlobalScreen.bind(h),toTime:h._toTime.bind(h),toGlobalTime:h._toGlobalTime.bind(h)}},r.range=new k.default(r.body,r.options),r.components.push(r.range),r.body.range=r.range,r.timeAxis=new S.default(r.body,r.options),r.timeAxis2=null,r.components.push(r.timeAxis),r.currentTime=new D.default(r.body,r.options),r.components.push(r.currentTime),r.itemSet=new C.default(r.body,r.options),r.components.push(r.itemSet),r.itemsData=null,r.groupsData=null,r.dom.root.onclick=function(t){h.emit("click",h.getEventProperties(t))},r.dom.root.ondblclick=function(t){h.emit("doubleClick",h.getEventProperties(t))},r.dom.root.oncontextmenu=function(t){h.emit("contextmenu",h.getEventProperties(t))},r.dom.root.onmouseover=function(t){h.emit("mouseOver",h.getEventProperties(t))},window.PointerEvent?(r.dom.root.onpointerdown=function(t){h.emit("mouseDown",h.getEventProperties(t))},r.dom.root.onpointermove=function(t){h.emit("mouseMove",h.getEventProperties(t))},r.dom.root.onpointerup=function(t){h.emit("mouseUp",h.getEventProperties(t))}):(r.dom.root.onmousemove=function(t){h.emit("mouseMove",h.getEventProperties(t))},r.dom.root.onmousedown=function(t){h.emit("mouseDown",h.getEventProperties(t))},r.dom.root.onmouseup=function(t){h.emit("mouseUp",h.getEventProperties(t))}),r.initialFitDone=!1,r.on("changed",function(){if(null!=h.itemsData){if(!h.initialFitDone&&!h.options.rollingMode)if(h.initialFitDone=!0,void 0!=h.options.start||void 0!=h.options.end){if(void 0==h.options.start||void 0==h.options.end)var t=h.getItemRange();var e=void 0!=h.options.start?h.options.start:t.min,i=void 0!=h.options.end?h.options.end:t.max;h.setWindow(e,i,{animation:!1})}else h.fit({animation:!1});h.initialDrawDone||!h.initialRangeChangeDone&&(h.options.start||h.options.end)&&!h.options.rollingMode||(h.initialDrawDone=!0,h.itemSet.initialDrawDone=!0,h.dom.root.style.visibility="visible",h.dom.loadingScreen.parentNode.removeChild(h.dom.loadingScreen),h.options.onInitialDrawComplete&&setTimeout(function(){return h.options.onInitialDrawComplete()},0))}}),r.on("destroyTimeline",function(){h.destroy()}),o&&r.setOptions(o),r.body.emitter.on("fit",function(t){r._onFit(t),r.redraw()}),n&&r.setGroups(n),i&&r.setItems(i),r._redraw(),r}return m()(e,t),l()(e,[{key:"_createConfigurator",value:function(){return new E.a(this,this.dom.container,M.b)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(t){if(!0===O.a.validate(t,M.a)&&console.log("%cErrors have been found in the supplied options object.",O.b),x.default.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;var e=this.itemsData;if(e){var i=this.getSelection();this.setItems(null),this.setItems(e),this.setSelection(i)}}}},{key:"setItems",value:function(t){this.itemsDone=!1;var e;e=t?t instanceof _.default||t instanceof w.default?t:new _.default(t,{type:{start:"Date",end:"Date"}}):null,this.itemsData=e,this.itemSet&&this.itemSet.setItems(e)}},{key:"setGroups",value:function(t){var e;if(t){var i=function(t){return!1!==t.visible};e=t instanceof _.default||t instanceof w.default?new w.default(t,{filter:i}):new _.default(t.filter(i))}else e=null;this.groupsData=e,this.itemSet.setGroups(e)}},{key:"setData",value:function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}},{key:"setSelection",value:function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(t,e){if(this.itemsData&&void 0!=t){var i=Array.isArray(t)?t:[t],n=null,o=null;if(this.itemsData.getDataSet().get(i,{type:{start:"Date",end:"Date"}}).forEach(function(t){var e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===n||eo)&&(o=i)}),null!==n&&null!==o){var s=this,a=this.itemSet.items[i[0]],h=-1*this._getScrollTop(),l=null,u=function(){var t=r(s,a);t.shouldScroll&&t.itemTop!=l.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},c=(n+o)/2,d=1.1*(o-n),f=!e||void 0===e.animation||e.animation;f||(l={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(c-d/2,c+d/2,{animation:f},function(){u(),setTimeout(u,100)},function(t,e,i){var n=r(s,a);if(!1!==n&&(l||(l=n),l.itemTop!=n.itemTop||l.shouldScroll)){l.itemTop!=n.itemTop&&n.shouldScroll&&(l=n,h=-1*s._getScrollTop());var o=h,u=l.scrollOffset,c=i?u:o+(u-o)*t;s._setScrollTop(-c),e||s._redraw()}})}}}},{key:"fit",value:function(t,e){var i,n=!t||void 0===t.animation||t.animation,o=this.itemsData&&this.itemsData.getDataSet();1===o.length&&void 0===o.get()[0].end?(i=this.getDataRange(),this.moveTo(i.min.valueOf(),{animation:n},e)):(i=this.getItemRange(),this.range.setRange(i.min,i.max,{animation:n},e))}},{key:"getItemRange",value:function(){var t=this,e=this.getDataRange(),i=null!==e.min?e.min.valueOf():null,r=null!==e.max?e.max.valueOf():null,s=null,a=null;if(null!=i&&null!=r){var h=r-i;h<=0&&(h=10);var l=h/this.props.center.width,u={},c=0;b.forEach(this.itemSet.items,function(t,e){if(t.groupShowing){u[e]=t.redraw(!0),c=u[e].length}});if(c>0)for(var d=function(t){b.forEach(u,function(e){e[t]()})},f=0;fr&&(r=u,a=e)}),s&&a){var p=s.getWidthLeft()+10,m=a.getWidthRight()+10,v=this.props.center.width-p-m;v>0&&(this.options.rtl?(i=n(s)-m*h/v,r=o(a)+p*h/v):(i=n(s)-p*h/v,r=o(a)+m*h/v))}}return{min:null!=i?new Date(i):null,max:null!=r?new Date(r):null}}},{key:"getDataRange",value:function(){var t=null,e=null,i=this.itemsData&&this.itemsData.getDataSet();return i&&i.forEach(function(i){var n=b.convert(i.start,"Date").valueOf(),o=b.convert(void 0!=i.end?i.end:i.start,"Date").valueOf();(null===t||ne)&&(e=o)}),{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}}},{key:"getEventProperties",value:function(t){var e,i=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY;e=this.options.rtl?b.getAbsoluteRight(this.dom.centerContainer)-i:i-b.getAbsoluteLeft(this.dom.centerContainer);var o=n-b.getAbsoluteTop(this.dom.centerContainer),r=this.itemSet.itemFromTarget(t),s=this.itemSet.groupFromTarget(t),a=T.default.customTimeFromTarget(t),h=this.itemSet.options.snap||null,l=this.body.util.getScale(),u=this.body.util.getStep(),c=this._toTime(e),d=h?h(c,l,u):c,f=b.getTarget(t),p=null;return null!=r?p="item":null!=a?p="custom-time":b.hasParent(f,this.timeAxis.dom.foreground)?p="axis":this.timeAxis2&&b.hasParent(f,this.timeAxis2.dom.foreground)?p="axis":b.hasParent(f,this.itemSet.dom.labelSet)?p="group-label":b.hasParent(f,this.currentTime.bar)?p="current-time":b.hasParent(f,this.dom.center)&&(p="background"),{event:t,item:r?r.id:null,isCluster:!!r&&!!r.isCluster,items:r?r.items||[]:null,group:s?s.groupId:null,what:p,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:e,y:o,time:c,snappedTime:d}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){x.default.prototype._redraw.call(this)}},{key:"_onFit",value:function(t){var e=t.start,i=t.end,n=t.animation;i?this.range.setRange(e,i,{animation:n}):this.moveTo(e.valueOf(),{animation:n})}}]),e}(x.default)},function(t,e){function i(e,n){return t.exports=i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(e,n)}t.exports=i},function(t,e,i){var n,o,r;!function(i){o=[],void 0===(r="function"==typeof(n=i)?n.apply(e,o):n)||(t.exports=r)}(function(){var t=null;return function e(i,n){function o(t){return t.match(/[^ ]+/g)}function r(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var i=!1;e.stopPropagation=function(){i=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()}),e.firstTarget=t;for(var o=t;o&&!i;){var r=o.hammer;if(r)for(var s,a=0;a0?l._handlers[t]=n:(i.off(t,r),delete l._handlers[t]))}),l},l.emit=function(e,n){t=n.target,i.emit(e,n)},l.destroy=function(){var t=i.element.hammer,e=t.indexOf(l);-1!==e&&t.splice(e,1),t.length||delete i.element.hammer,l._handlers={},i.destroy()},l}})},function(t,e,i){var n;!function(o,r,s,a){function h(t,e,i){return setTimeout(f(t,i),e)}function l(t,e,i){return!!Array.isArray(t)&&(u(t,i[e],i),!0)}function u(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,n,i),t.apply(this,arguments)}}function d(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&et(n,i)}function f(t,e){return function(){return t.apply(e,arguments)}}function p(t,e){return typeof t==ot?t.apply(e?e[0]||a:a,e):t}function m(t,e){return t===a?e:t}function v(t,e,i){u(_(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){u(_(e),function(e){t.removeEventListener(e,i,!1)})}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}function w(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]}):n.sort()),n}function S(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r1&&!i.firstMultiple?i.firstMultiple=O(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,h=s?s.center:r.center,l=e.center=M(n);e.timeStamp=at(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=N(h,l),e.distance=P(h,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==mt&&r.eventType!==gt||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=I(e.deltaX,e.deltaY);var u=E(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=st(u.x)>st(u.y)?u.x:u.y,e.scale=s?function(t,e){return P(e[0],e[1],Ot)/P(t[0],t[1],Ot)}(s.pointers,n):1,e.rotation=s?function(t,e){return N(e[1],e[0],Ot)+N(t[1],t[0],Ot)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,h=e.timeStamp-s.timeStamp;if(e.eventType!=yt&&(h>pt||s.velocity===a)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=E(h,l,u);n=c.x,o=c.y,i=st(c.x)>st(c.y)?c.x:c.y,r=I(l,u),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var c=t.element;y(e.srcEvent.target,c)&&(c=e.srcEvent.target);e.target=c}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function O(t){for(var e=[],i=0;i=st(e)?t<0?_t:wt:e<0?kt:xt}function P(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function N(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function A(){this.evEl=Et,this.evWin=It,this.pressed=!1,T.apply(this,arguments)}function F(){this.evEl=At,this.evWin=Ft,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function R(){this.evTarget=Lt,this.evWin=jt,this.started=!1,T.apply(this,arguments)}function L(){this.evTarget=Ht,this.targetIds={},T.apply(this,arguments)}function j(){T.apply(this,arguments);var t=f(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new A(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Y(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)},Wt)}}function H(t,e){this.manager=t,this.set(e)}function W(t){this.options=et({},this.defaults,t||{}),this.id=ut++,this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=Jt,this.simultaneous={},this.requireFail=[]}function G(t){return t&ie?"cancel":t&te?"end":t&Qt?"move":t&$t?"start":""}function z(t){return t==xt?"down":t==kt?"up":t==_t?"left":t==wt?"right":""}function B(t,e){var i=e.manager;return i?i.get(t):t}function V(){W.apply(this,arguments)}function U(){V.apply(this,arguments),this.pX=null,this.pY=null}function q(){V.apply(this,arguments)}function X(){W.apply(this,arguments),this._timer=null,this._input=null}function Z(){V.apply(this,arguments)}function K(){V.apply(this,arguments)}function J(){W.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function $(t,e){return e=e||{},e.recognizers=m(e.recognizers,$.defaults.preset),new Q(t,e)}function Q(t,e){this.options=et({},$.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(dt?F:ft?L:ct?j:A))(t,C)}(this),this.touchAction=new H(this,this.options.touchAction),tt(this,!0),u(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function tt(t,e){var i=t.element;if(i.style){var n;u(t.options.cssProps,function(o,r){n=S(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={})}}var et,it=["","webkit","Moz","MS","ms","o"],nt=r.createElement("div"),ot="function",rt=Math.round,st=Math.abs,at=Date.now;et="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;n=te&&e(i.options.event+G(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&o&e.direction},attrTest:function(t){return V.prototype.attrTest.call(this,t)&&(this.state&$t||!(this.state&$t)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=z(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),d(q,V,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&$t)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),d(X,W,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Vt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(gt|yt)&&!o)this.reset();else if(t.eventType&mt)this.reset(),this._timer=h(function(){this.state=ee,this.tryEmit()},e.time,this);else if(t.eventType>)return ee;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ee&&(t&&t.eventType>?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=at(),this.manager.emit(this.options.event,this._input)))}}),d(Z,V,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&$t)}}),d(K,V,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:St|Dt,pointers:1},getTouchAction:function(){return U.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(St|Dt)?e=t.overallVelocity:i&St?e=t.overallVelocityX:i&Dt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&st(e)>this.options.velocity&&t.eventType>},emit:function(t){var e=z(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),d(J,W,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ut]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distanceo-this.padding&&(a=!0),r=a?this.x-i:this.x,s=h?this.y-e:this.y}else(s=this.y-e)+e+this.padding>n&&(s=n-e-this.padding),so&&(r=o-i-this.padding),r0){if(e>=1)return[];s=Math.abs(Math.round(Math.log(100/e)/Math.log(2))),a=Math.abs(Math.pow(2,s))}if(this.dataChanged){var h=s!=this.cacheLevel;(!this.applyOnChangedLevel||h)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=s;var l=this.cache[s];if(!l){l=[];for(var u in this.groups)if(this.groups.hasOwnProperty(u))for(var c=this.groups[u],d=c.length,f=0;f=0&&p.center-c[v].center=0&&p.center-l[y].centero){for(var b=m-o+1,_=[],w=f;_.length'+t.length+"",m=d.replace(/{count}/,t.length),v=Object.assign({},n,this.itemSet.options),g={content:p,title:m,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(g,f,v),e&&(e.add(o,!1),o.group=e),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}()},function(t,e,i){var n=i(103),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(16),u=i.n(l),c=i(17),d=i.n(c),f=i(18),p=i.n(f),m=i(28),v=i.n(m),g=i(54),y=i(9),b=function(t){function e(t,i,n){var o;if(s()(this,e),o=u()(this,d()(e).call(this)),o.props={content:{width:0,height:0}},o.options=Object.assign({},{fitOnDoubleClick:!0},n,{editable:!1}),!t||void 0==t.uiItems)throw new Error('Property "uiItems" missing in item '+t.id);return g.default.call(v()(v()(o)),t,i,o.options),o.id=y.randomUUID(),o.group=t.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return p()(e,t),h()(e,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(t){this.detach(),this.data.uiItems=t,this._setupRange(),this.attach()}},{key:"isVisible",value:function(t){var e=this.data.end?this.data.end-this.data.start:0,i=this.width*t.getMillisecondsPerPixel(),n=Math.max(e,this.data.start.getTime()+i);return this.data.startt.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(t){var e,i=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){this.dirty&&(e=this._getDomComponentsSizes())}.bind(this),function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(e)}.bind(this),this._repaintDomAdditionals.bind(this)];if(t)return i;var n;return i.forEach(function(t){n=t()}),n}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.parentNode&&t.box.parentNode.removeChild(t.box),this.options.showStipes&&(t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=this.data.end?this.conversion.toScreen(this.data.end):0;if(e)this.repositionXWithRanges(t,e);else{var i=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,i)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(t,e))}},{key:"repositionStype",value:function(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block",e?(this.dom.line.style.left=this.dom.line.offsetWidth+t+(e-t)/2+"px",this.dom.dot.style.left=this.dom.line.offsetWidth+t+(e-t)/2-this.dom.dot.offsetWidth/2+"px"):(this.dom.line.style.left="".concat(t,"px"),this.dom.dot.style.left="".concat(t-this.dom.dot.offsetWidth/2,"px"))}},{key:"repositionXWithoutRanges",value:function(t,e){"right"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width,this.dom.box.style.left=this.left+"px"):"left"==e?this.options.rtl?(this.right=t,this.dom.box.style.right=this.right+"px"):(this.left=t,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(t,e){var i=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(i,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=i+"px"}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;if(e.style.top="top"==t?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==t)this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var i=this.parent.itemSet.props.height,n=i-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=i-n+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var t=!0,e=!1,i=void 0;try{for(var n,o=this.data.uiItems[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){n.value.cluster=this}}catch(t){e=!0,i=t}finally{try{t||null==o.return||o.return()}finally{if(e)throw i}}this.data.items=this.data.uiItems.map(function(t){return t.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var e=!0,i=!1,n=void 0;try{for(var o,r=this.data.uiItems[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){delete o.value.cluster}}catch(t){i=!0,n=t}finally{try{e||null==r.return||r.return()}finally{if(i)throw n}}this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var t=this.data.uiItems.map(function(t){return{start:t.data.start.valueOf(),end:t.data.end?t.data.end.valueOf():t.data.start.valueOf()}});this.data.min=Math.min.apply(Math,o()(t.map(function(t){return Math.min(t.start,t.end||t.start)}))),this.data.max=Math.max.apply(Math,o()(t.map(function(t){return Math.max(t.start,t.end||t.start)})));var e=this.data.uiItems.map(function(t){return t.center}).reduce(function(t,e){return t+e},0)/this.data.uiItems.length;this.data.uiItems.some(function(t){return t.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(e),this.data.end=null)}},{key:"_getUiItems",value:function(){var t=this;return this.data.uiItems&&this.data.uiItems.length?this.data.uiItems.filter(function(e){return e.cluster===t}):[]}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="timeline-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="timeline-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="timeline-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick&&(this.dom.box.ondblclick=e.prototype._onDoubleClick.bind(this)),this.dom.box["timeline-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}var e=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var i=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");i.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"")+" timeline-readonly";this.dom.box.className="vis-item "+t,this.options.showStipes&&(this.dom.line.className="timeline-item timeline-cluster-line "+(this.selected?" timeline-selected":""),this.dom.dot.className="timeline-item timeline-cluster-dot "+(this.selected?" timeline-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:"_fit",value:function(){if(this.emitter){var t=this._getFitRange(),e=t.fitStart,i=t.fitEnd,n={start:new Date(e),end:new Date(i),animation:!0};this.emitter.emit("fit",n)}}},{key:"_getItemData",value:function(){return this.data}}]),e}(g.default);b.prototype.baseClassName="timeline-item timeline-range timeline-cluster",e.a=b},function(t,e,i){var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(9),u=i(338).default,c=function(){function t(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;s()(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},l.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new u(o),this.wrapper=void 0}return h()(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(t instanceof Array)this.options.filter=t.join();else if("object"===o()(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==t.filter&&(this.options.filter=t.filter),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===this.options.filter&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=this.options.filter,e=0,i=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===t.indexOf(n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="timeline-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?i-1:0),o=1;o2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");return n.className="timeline-configuration timeline-config-label timeline-config-s"+e.length,n.innerHTML=!0===i?""+t+":":t+":",n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="timeline-configuration timeline-config-select";var o=0;void 0!==e&&-1!==t.indexOf(e)&&(o=t.indexOf(e));for(var r=0;rr&&1!==r&&(a.max=Math.ceil(1.2*e),l=a.max,h="range increased"),a.value=e}else a.value=n;var u=document.createElement("input");u.className="timeline-configuration timeline-config-rangeinput",u.value=a.value;var c=this;a.onchange=function(){u.value=this.value,c._update(Number(this.value),i)},a.oninput=function(){u.value=this.value};var d=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,d,a,u);""!==h&&this.popupHistory[f]!==l&&(this.popupHistory[f]=l,this._setupPopup(h,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="timeline-configuration timeline-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="timeline-configuration timeline-config-button hover"},e.onmouseout=function(){e.className="timeline-configuration timeline-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="timeline-configuration timeline-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,o=this.options.filter,r=!1;for(var s in t)if(t.hasOwnProperty(s)){n=!0;var a=t[s],h=l.copyAndExtendArray(e,s);if("function"==typeof o&&!1===(n=o(s,e))&&!(a instanceof Array)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,h,!0),this.allowCreation=!1===i),!1!==n){r=!0;var u=this._getValue(h);if(a instanceof Array)this._handleArray(a,u,h);else if("string"==typeof a)this._makeTextInput(a,u,h);else if("boolean"==typeof a)this._makeCheckbox(a,u,h);else if(a instanceof Object){var c=!0;if(-1!==e.indexOf("physics")&&this.moduleOptions.physics.solver!==s&&(c=!1),!0===c)if(void 0!==a.enabled){var d=l.copyAndExtendArray(h,"enabled"),f=this._getValue(d);if(!0===f){var p=this._makeLabel(s,h,!0);this._makeItem(h,p),r=this._handleObject(a,h)||r}else this._makeCheckbox(a,f,h)}else{var m=this._makeLabel(s,h,!0);this._makeItem(h,m),r=this._handleObject(a,h)||r}}else console.error("dont know how to handle",a,s,h)}}return r}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(var o=0;ovar options = "+JSON.stringify(t,null,2)+""}},{key:"getOptions",value:function(){for(var t={},e=0;e0&&void 0!==arguments[0]?arguments[0]:1;o()(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return s()(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return u[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===l.isString(t)){if(!0===l.isValidRGB(t)){var o=t.substr(4).substr(0,t.length-5).split(",");i={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===l.isValidRGBA(t)){var r=t.substr(5).substr(0,t.length-6).split(",");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===l.isValidHex(t)){var s=l.hexToRGB(t);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+JSON.stringify(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=l.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",setTimeout(function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=l.extend({},t)),this.color=t;var e=l.RGBToHSV(t.r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),r=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=l.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=l.HSVToRGB(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=l.RGBToHSV(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),i.fill(),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="timeline-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="timeline-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(e)}this.colorPickerDiv.className="timeline-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="timeline-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="timeline-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="timeline-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="timeline-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="timeline-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="timeline-label timeline-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="timeline-label timeline-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="timeline-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="timeline-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="timeline-button timeline-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=this._hide.bind(this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="timeline-button timeline-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=this._apply.bind(this),this.saveButton=document.createElement("div"),this.saveButton.className="timeline-button timeline-save",this.saveButton.innerHTML="save",this.saveButton.onclick=this._save.bind(this),this.loadButton=document.createElement("div"),this.loadButton.className="timeline-button timeline-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=this._loadLast.bind(this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new a(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),h.onTouch(this.hammer,function(e){t._moveSelector(e)}),this.hammer.on("tap",function(e){t._moveSelector(e)}),this.hammer.on("panstart",function(e){t._moveSelector(e)}),this.hammer.on("panmove",function(e){t._moveSelector(e)}),this.hammer.on("panend",function(e){t._moveSelector(e)})}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,e,i);var n,o,r,s;this.centerCoordinates={x:.5*e,y:.5*i},this.r=.49*e;var a,h=2*Math.PI/360,u=1/this.r;for(r=0;r<360;r++)for(s=0;s=0&&t._redrawLabel(n-2,e.val,i,"timeline-y-axis timeline-major",t.props.majorCharHeight),!0===t.master&&(o?t._redrawLine(n,i,"timeline-grid timeline-horizontal timeline-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(n,i,"timeline-grid timeline-horizontal timeline-minor",t.options.minorLinesOffset,t.props.minorLineWidth))});var s=0;void 0!==this.options[i].title&&void 0!==this.options[i].title.text&&(s=this.props.titleCharHeight);var a=!0===this.options.icons?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-a&&!0===this.options.visible?(this.width=this.maxLabelSize+a,this.options.width="".concat(this.width,"px"),v.default.cleanupElements(this.DOMelements.lines),v.default.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+a),this.options.width="".concat(this.width,"px"),v.default.cleanupElements(this.DOMelements.lines),v.default.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):(v.default.cleanupElements(this.DOMelements.lines),v.default.cleanupElements(this.DOMelements.labels),e=!1),e}},{key:"convertValue",value:function(t){return this.scale.convertValue(t)}},{key:"screenToValue",value:function(t){return this.scale.screenToValue(t)}},{key:"_redrawLabel",value:function(t,e,i,n,o){var r=v.default.getDOMElement("div",this.DOMelements.labels,this.dom.frame);r.className=n,r.innerHTML=e,"left"===i?(r.style.left="-".concat(this.options.labelOffsetX,"px"),r.style.textAlign="right"):(r.style.right="-".concat(this.options.labelOffsetX,"px"),r.style.textAlign="left"),r.style.top="".concat(t-.5*o+this.options.labelOffsetY,"px"),e+="";var s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize