58 lines
576 KiB
JavaScript
58 lines
576 KiB
JavaScript
/**
|
||
* vis-timeline and vis-graph2d
|
||
* https://visjs.github.io/vis-timeline/
|
||
*
|
||
* Create a fully customizable, interactive timeline with items and ranges.
|
||
*
|
||
* @version 7.1.1
|
||
* @date 2020-02-14T17:02:29.658Z
|
||
*
|
||
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
||
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
||
*
|
||
* @license
|
||
* vis.js is dual licensed under both
|
||
*
|
||
* 1. The Apache 2.0 License
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* and
|
||
*
|
||
* 2. The MIT License
|
||
* http://opensource.org/licenses/MIT
|
||
*
|
||
* vis.js may be distributed under either license.
|
||
*/
|
||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis=t.vis||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var i in e)c(e,i)&&(t[i]=e[i]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,i,n){return De(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function m(t){if(null==t._isValid){var e=p(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function v(t){var e=f(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var g=r.momentProperties=[];function y(t,e){var i,n,r;if(a(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),a(e._i)||(t._i=e._i),a(e._f)||(t._f=e._f),a(e._l)||(t._l=e._l),a(e._strict)||(t._strict=e._strict),a(e._tzm)||(t._tzm=e._tzm),a(e._isUTC)||(t._isUTC=e._isUTC),a(e._offset)||(t._offset=e._offset),a(e._pf)||(t._pf=p(e)),a(e._locale)||(t._locale=e._locale),g.length>0)for(i=0;i<g.length;i++)a(r=e[n=g[i]])||(t[n]=r);return t}var b=!1;function _(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function k(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=k(e)),i}function D(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&S(t[n])!==S(e[n]))&&s++;return s+o}function x(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var i=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),i){for(var n,o=[],s=0;s<arguments.length;s++){if(n="","object"==typeof arguments[s]){for(var a in n+="\n["+s+"] ",arguments[0])n+=a+": "+arguments[0][a]+", ";n=n.slice(0,-2)}else n=arguments[s];o.push(n)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var M,T={};function C(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),T[t]||(x(e),T[t]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var i,n=d({},t);for(i in e)c(e,i)&&(s(t[i])&&s(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)c(t,i)&&!c(e,i)&&s(t[i])&&(n[i]=d({},n[i]));return n}function A(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)c(t,e)&&i.push(e);return i};var L={};function I(t,e){var i=t.toLowerCase();L[i]=L[i+"s"]=L[e]=t}function j(t){return"string"==typeof t?L[t]||L[t.toLowerCase()]:void 0}function Y(t){var e,i,n={};for(i in t)c(t,i)&&(e=j(i))&&(n[e]=t[i]);return n}var N={};function R(t,e){N[t]=e}function F(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},W={};function V(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(W[t]=r),e&&(W[e[0]]=function(){return F(r.apply(this,arguments),e[1],e[2])}),i&&(W[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=B(e,t.localeData()),z[e]=z[e]||function(t){var e,i,n,r=t.match(H);for(e=0,i=r.length;e<i;e++)W[r[e]]?r[e]=W[r[e]]:r[e]=(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=P(r[n])?r[n].call(e,t):r[n];return o}}(e),z[e](t)):t.localeData().invalidDate()}function B(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(G.lastIndex=0;i>=0&&G.test(t);)t=t.replace(G,n),G.lastIndex=0,i-=1;return t}var X=/\d/,q=/\d\d/,Z=/\d{3}/,J=/\d{4}/,$=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,rt=/\d+/,ot=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ut={};function ht(t,e,i){ut[t]=P(e)?e:function(t,n){return t&&i?i:e}}function ct(t,e){return c(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function pt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,i){i[e]=S(t)}),i=0;i<t.length;i++)ft[t[i]]=n}function mt(t,e){pt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function vt(t,e,i){null!=e&&c(ft,t)&&ft[t](e,i._a,i,t)}function gt(t){return yt(t)?366:365}function yt(t){return t%4==0&&t%100!=0||t%400==0}V("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),V(0,["YY",2],0,(function(){return this.year()%100})),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),I("year","y"),R("year",1),ht("Y",ot),ht("YY",K,q),ht("YYYY",it,J),ht("YYYYY",nt,$),ht("YYYYYY",nt,$),pt(["YYYYY","YYYYYY"],0),pt("YYYY",(function(t,e){e[0]=2===t.length?r.parseTwoDigitYear(t):S(t)})),pt("YY",(function(t,e){e[0]=r.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[0]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return S(t)+(S(t)>68?1900:2e3)};var bt,_t=wt("FullYear",!0);function wt(t,e){return function(i){return null!=i?(St(this,t,i),r.updateOffset(this,e),this):kt(this,t)}}function kt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function St(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&yt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Dt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Dt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?yt(t)?29:28:31-n%7%2}bt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},V("M",["MM",2],"Mo",(function(){return this.month()+1})),V("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),V("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),I("month","M"),R("month",8),ht("M",K),ht("MM",K,q),ht("MMM",(function(t,e){return e.monthsShortRegex(t)})),ht("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[1]=S(t)-1})),pt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:p(i).invalidMonth=t}));var xt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Tt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,s))?r:null:-1!==(r=bt.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,s))?r:-1!==(r=bt.call(this._longMonthsParse,s))?r:null:-1!==(r=bt.call(this._longMonthsParse,s))?r:-1!==(r=bt.call(this._shortMonthsParse,s))?r:null}function Ct(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Dt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Pt(t){return null!=t?(Ct(this,t),r.updateOffset(this,!0),this):kt(this,"Month")}var Et=lt,At=lt;function Lt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],o=[];for(e=0;e<12;e++)i=f([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)n[e]=dt(n[e]),r[e]=dt(r[e]);for(e=0;e<24;e++)o[e]=dt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function It(t,e,i,n,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,r,o,s),a}function jt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Yt(t,e,i){var n=7+e-i;return-(7+jt(t,0,n).getUTCDay()-e)%7+n-1}function Nt(t,e,i,n,r){var o,s,a=1+7*(e-1)+(7+i-n)%7+Yt(t,n,r);return a<=0?s=gt(o=t-1)+a:a>gt(t)?(o=t+1,s=a-gt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Rt(t,e,i){var n,r,o=Yt(t.year(),e,i),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?n=s+Ft(r=t.year()-1,e,i):s>Ft(t.year(),e,i)?(n=s-Ft(t.year(),e,i),r=t.year()+1):(r=t.year(),n=s),{week:n,year:r}}function Ft(t,e,i){var n=Yt(t,e,i),r=Yt(t+1,e,i);return(gt(t)-n+r)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),R("week",5),R("isoWeek",5),ht("w",K),ht("ww",K,q),ht("W",K),ht("WW",K,q),mt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=S(t)})),V("d",0,"do","day"),V("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),V("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),V("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),ht("d",K),ht("e",K),ht("E",K),ht("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ht("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ht("dddd",(function(t,e){return e.weekdaysRegex(t)})),mt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:p(i).invalidWeekday=t})),mt(["d","e","E"],(function(t,e,i,n){e[n]=S(t)}));var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Vt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,s))?r:-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:-1!==(r=bt.call(this._weekdaysParse,s))?r:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:-1!==(r=bt.call(this._weekdaysParse,s))?r:-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:null}var Ut=lt,Bt=lt,Xt=lt;function qt(){function t(t,e){return e.length-t.length}var e,i,n,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)i=f([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),o=this.weekdays(i,""),s.push(n),a.push(r),l.push(o),u.push(n),u.push(r),u.push(o);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),l[e]=dt(l[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Jt(t,e){V(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function $t(t,e){return e._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Zt),V("k",["kk",2],0,(function(){return this.hours()||24})),V("hmm",0,0,(function(){return""+Zt.apply(this)+F(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+Zt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),I("hour","h"),R("hour",13),ht("a",$t),ht("A",$t),ht("H",K),ht("h",K),ht("k",K),ht("HH",K,q),ht("hh",K,q),ht("kk",K,q),ht("hmm",Q),ht("hmmss",tt),ht("Hmm",Q),ht("Hmmss",tt),pt(["H","HH"],3),pt(["k","kk"],(function(t,e,i){var n=S(t);e[3]=24===n?0:n})),pt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),pt(["h","hh"],(function(t,e,i){e[3]=S(t),p(i).bigHour=!0})),pt("hmm",(function(t,e,i){var n=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n)),p(i).bigHour=!0})),pt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n,2)),e[5]=S(t.substr(r)),p(i).bigHour=!0})),pt("Hmm",(function(t,e,i){var n=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n))})),pt("Hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n,2)),e[5]=S(t.substr(r))}));var Kt,Qt=wt("Hours",!0),te={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Wt,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function re(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Kt._abbr,i(),oe(n)}catch(t){}return ee[e]}function oe(t,e){var i;return t&&((i=a(e)?ae(t):se(t,e))?Kt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Kt._abbr}function se(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])C("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=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=re(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new A(E(n,e)),ie[t]&&ie[t].forEach((function(t){se(t.name,t.config)})),oe(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Kt;if(!o(t)){if(e=re(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=ne(t[o]).split("-")).length,i=(i=ne(t[o+1]))?i.split("-"):null;e>0;){if(n=re(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&D(r,i,!0)>=e-1)break;e--}o++}return Kt}(t)}function le(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Dt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,p(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function he(t){var e,i,n,o,s,a=[];if(!t._d){for(n=function(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,r,o,s,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,i=ue(e.GG,t._a[0],Rt(xe(),1,4).year),n=ue(e.W,1),((r=ue(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var u=Rt(xe(),o,s);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}n<1||n>Ft(i,o,s)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(a=Nt(i,n,r,o,s),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=ue(t._a[0],n[0]),(t._dayOfYear>gt(s)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=jt(s,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?jt:It).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}var ce=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,de=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fe=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],me=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ve=/^\/?Date\((\-?\d+)/i;function ge(t){var e,i,n,r,o,s,a=t._i,l=ce.exec(a)||de.exec(a);if(l){for(p(t).iso=!0,e=0,i=pe.length;e<i;e++)if(pe[e][1].exec(l[1])){r=pe[e][0],n=!1!==pe[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=me.length;e<i;e++)if(me[e][1].exec(l[3])){o=(l[2]||" ")+me[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!fe.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),ke(t)}else t._isValid=!1}var ye=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function be(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var _e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function we(t){var e,i,n,r,o,s,a,l=ye.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var u=(e=l[4],i=l[3],n=l[2],r=l[5],o=l[6],s=l[7],a=[be(e),Mt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(o,10)],s&&a.push(parseInt(s,10)),a);if(!function(t,e,i){return!t||zt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(p(i).weekdayMismatch=!0,i._isValid=!1,!1)}(l[1],u,t))return;t._a=u,t._tzm=function(t,e,i){if(t)return _e[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(l[8],l[9],l[10]),t._d=jt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function ke(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],p(t).empty=!0;var e,i,n,o,s,a=""+t._i,l=a.length,u=0;for(n=B(t._f,t._locale).match(H)||[],e=0;e<n.length;e++)o=n[e],(i=(a.match(ct(o,t))||[])[0])&&((s=a.substr(0,a.indexOf(i))).length>0&&p(t).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),W[o]?(i?p(t).empty=!1:p(t).unusedTokens.push(o),vt(o,i,t)):t._strict&&!i&&p(t).unusedTokens.push(o);p(t).charsLeftOver=l-u,a.length>0&&p(t).unusedInput.push(a),t._a[3]<=12&&!0===p(t).bigHour&&t._a[3]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e: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[3],t._meridiem),he(t),le(t)}else we(t);else ge(t)}function Se(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?v({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(le(e)):(u(e)?t._d=e:o(i)?function(t){var e,i,n,r,o;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],ke(e),m(e)&&(o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,(null==n||o<n)&&(n=o,i=e));d(t,i||e)}(t):i?ke(t):function(t){var e=t._i;a(e)?t._d=new Date(r.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=ve.exec(t._i);null===e?(ge(t),!1===t._isValid&&(delete t._isValid,we(t),!1===t._isValid&&(delete t._isValid,r.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):o(e)?(t._a=h(e.slice(0),(function(t){return parseInt(t,10)})),he(t)):s(e)?function(t){if(!t._d){var e=Y(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),he(t)}}(t):l(e)?t._d=new Date(e):r.createFromInputFallback(t)}(t),m(t)||(t._d=null),t))}function De(t,e,i,n,r){var a,l={};return!0!==i&&!1!==i||(n=i,i=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=i,l._i=t,l._f=e,l._strict=n,(a=new _(le(Se(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function xe(t,e,i,n){return De(t,e,i,n,!1)}r.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Oe=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),Me=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function Te(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return xe();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Ce=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pe(t){var e=Y(t),i=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===bt.call(Ce,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Ce.length;++n)if(t[Ce[n]]){if(i)return!1;parseFloat(t[Ce[n]])!==S(t[Ce[n]])&&(i=!0)}return!0}(e),this._milliseconds=+h+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=ae(),this._bubble()}function Ee(t){return t instanceof Pe}function Ae(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Le(t,e){V(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+F(~~(t/60),2)+e+F(~~t%60,2)}))}Le("Z",":"),Le("ZZ",""),ht("Z",at),ht("ZZ",at),pt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=je(at,t)}));var Ie=/([\+\-]|\d\d)/gi;function je(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Ie)||["-",0,0],r=60*n[1]+S(n[2]);return 0===r?0:"+"===n[0]?r:-r}function Ye(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(w(t)||u(t)?t.valueOf():xe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),r.updateOffset(i,!1),i):xe(t).local()}function Ne(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Re(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Fe=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,He=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ge(t,e){var i,n,r,o,s,a,u=t,h=null;return Ee(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(u={},e?u[e]=t:u.milliseconds=t):(h=Fe.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:S(h[2])*i,h:S(h[3])*i,m:S(h[4])*i,s:S(h[5])*i,ms:S(Ae(1e3*h[6]))*i}):(h=He.exec(t))?(i="-"===h[1]?-1:1,u={y:ze(h[2],i),M:ze(h[3],i),w:ze(h[4],i),d:ze(h[5],i),h:ze(h[6],i),m:ze(h[7],i),s:ze(h[8],i)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=xe(u.from),s=xe(u.to),r=o.isValid()&&s.isValid()?(s=Ye(s,o),o.isBefore(s)?a=We(o,s):((a=We(s,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Pe(u),Ee(t)&&c(t,"_locale")&&(n._locale=t._locale),n}function ze(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function We(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Ve(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(C(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),Ue(this,Ge(i="string"==typeof i?+i:i,n),t),this}}function Ue(t,e,i,n){var o=e._milliseconds,s=Ae(e._days),a=Ae(e._months);t.isValid()&&(n=null==n||n,a&&Ct(t,kt(t,"Month")+a*i),s&&St(t,"Date",kt(t,"Date")+s*i),o&&t._d.setTime(t._d.valueOf()+o*i),n&&r.updateOffset(t,s||a))}Ge.fn=Pe.prototype,Ge.invalid=function(){return Ge(NaN)};var Be=Ve(1,"add"),Xe=Ve(-1,"subtract");function qe(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function Ze(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ae(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=O("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)}));function $e(){return this._locale}function Ke(t,e){return(t%e+e)%e}function Qe(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function ti(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ei(t,e){V(0,[t,t.length],0,e)}function ii(t,e,i,n,r){var o;return null==t?Rt(this,n,r).year:(e>(o=Ft(t,n,r))&&(e=o),ni.call(this,t,e,i,n,r))}function ni(t,e,i,n,r){var o=Nt(t,e,i,n,r),s=jt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),ht("G",ot),ht("g",ot),ht("GG",K,q),ht("gg",K,q),ht("GGGG",it,J),ht("gggg",it,J),ht("GGGGG",nt,$),ht("ggggg",nt,$),mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=S(t)})),mt(["gg","GG"],(function(t,e,i,n){e[n]=r.parseTwoDigitYear(t)})),V("Q",0,"Qo","quarter"),I("quarter","Q"),R("quarter",7),ht("Q",X),pt("Q",(function(t,e){e[1]=3*(S(t)-1)})),V("D",["DD",2],"Do","date"),I("date","D"),R("date",9),ht("D",K),ht("DD",K,q),ht("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],2),pt("Do",(function(t,e){e[2]=S(t.match(K)[0])}));var ri=wt("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),R("dayOfYear",4),ht("DDD",et),ht("DDDD",Z),pt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=S(t)})),V("m",["mm",2],0,"minute"),I("minute","m"),R("minute",14),ht("m",K),ht("mm",K,q),pt(["m","mm"],4);var oi=wt("Minutes",!1);V("s",["ss",2],0,"second"),I("second","s"),R("second",15),ht("s",K),ht("ss",K,q),pt(["s","ss"],5);var si,ai=wt("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),R("millisecond",16),ht("S",et,X),ht("SS",et,q),ht("SSS",et,Z),si="SSSS";si.length<=9;si+="S")ht(si,rt);function li(t,e){e[6]=S(1e3*("0."+t))}for(si="S";si.length<=9;si+="S")pt(si,li);var ui=wt("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var hi=_.prototype;function ci(t){return t}hi.add=Be,hi.calendar=function(t,e){var i=t||xe(),n=Ye(i,this).startOf("day"),o=r.calendarFormat(this,n)||"sameElse",s=e&&(P(e[o])?e[o].call(this,i):e[o]);return this.format(s||this.localeData().calendar(o,this,xe(i)))},hi.clone=function(){return new _(this)},hi.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Ye(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=j(e)){case"year":o=qe(this,n)/12;break;case"month":o=qe(this,n);break;case"quarter":o=qe(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:k(o)},hi.endOf=function(t){var e;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:Qe;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Ke(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Ke(e,1e3)-1}return this._d.setTime(e),r.updateOffset(this,!0),this},hi.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},hi.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||xe(t).isValid())?Ge({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},hi.fromNow=function(t){return this.from(xe(),t)},hi.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||xe(t).isValid())?Ge({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},hi.toNow=function(t){return this.to(xe(),t)},hi.get=function(t){return P(this[t=j(t)])?this[t]():this},hi.invalidAt=function(){return p(this).overflow},hi.isAfter=function(t,e){var i=w(t)?t:xe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},hi.isBefore=function(t,e){var i=w(t)?t:xe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},hi.isBetween=function(t,e,i,n){var r=w(t)?t:xe(t),o=w(e)?e:xe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},hi.isSame=function(t,e){var i,n=w(t)?t:xe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},hi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},hi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},hi.isValid=function(){return m(this)},hi.lang=Je,hi.locale=Ze,hi.localeData=$e,hi.max=Me,hi.min=Oe,hi.parsingFlags=function(){return d({},p(this))},hi.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:N[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=Y(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(P(this[t=j(t)]))return this[t](e);return this},hi.startOf=function(t){var e;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:Qe;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Ke(e,6e4);break;case"second":e=this._d.valueOf(),e-=Ke(e,1e3)}return this._d.setTime(e),r.updateOffset(this,!0),this},hi.subtract=Xe,hi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},hi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},hi.toDate=function(){return new Date(this.valueOf())},hi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hi.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",r=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+r)},hi.toJSON=function(){return this.isValid()?this.toISOString():null},hi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hi.unix=function(){return Math.floor(this.valueOf()/1e3)},hi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hi.year=_t,hi.isLeapYear=function(){return yt(this.year())},hi.weekYear=function(t){return ii.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},hi.isoWeekYear=function(t){return ii.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},hi.quarter=hi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},hi.month=Pt,hi.daysInMonth=function(){return Dt(this.year(),this.month())},hi.week=hi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},hi.isoWeek=hi.isoWeeks=function(t){var e=Rt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},hi.weeksInYear=function(){var t=this.localeData()._week;return Ft(this.year(),t.dow,t.doy)},hi.isoWeeksInYear=function(){return Ft(this.year(),1,4)},hi.date=ri,hi.day=hi.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},hi.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")},hi.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},hi.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")},hi.hour=hi.hours=Qt,hi.minute=hi.minutes=oi,hi.second=hi.seconds=ai,hi.millisecond=hi.milliseconds=ui,hi.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=je(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ne(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?Ue(this,Ge(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ne(this)},hi.utc=function(t){return this.utcOffset(0,t)},hi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},hi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=je(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},hi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?xe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},hi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hi.isLocal=function(){return!!this.isValid()&&!this._isUTC},hi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hi.isUtc=Re,hi.isUTC=Re,hi.zoneAbbr=function(){return this._isUTC?"UTC":""},hi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hi.dates=O("dates accessor is deprecated. Use date instead.",ri),hi.months=O("months accessor is deprecated. Use month instead",Pt),hi.years=O("years accessor is deprecated. Use year instead",_t),hi.zone=O("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()})),hi.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Se(t))._a){var e=t._isUTC?f(t._a):xe(t._a);this._isDSTShifted=this.isValid()&&D(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var di=A.prototype;function fi(t,e,i,n){var r=ae(),o=f().set(n,e);return r[i](o,t)}function pi(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return fi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=fi(t,n,i,"month");return r}function mi(t,e,i,n){"boolean"==typeof t?(l(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,l(e)&&(i=e,e=void 0),e=e||"");var r,o=ae(),s=t?o._week.dow:0;if(null!=i)return fi(e,(i+s)%7,n,"day");var a=[];for(r=0;r<7;r++)a[r]=fi(e,(r+s)%7,n,"day");return a}di.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return P(n)?n.call(e,i):n},di.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])},di.invalidDate=function(){return this._invalidDate},di.ordinal=function(t){return this._ordinal.replace("%d",t)},di.preparse=ci,di.postformat=ci,di.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return P(r)?r(t,e,i,n):r.replace(/%d/i,t)},di.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return P(i)?i(e):i.replace(/%s/i,e)},di.set=function(t){var e,i;for(i in t)P(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)},di.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||xt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},di.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[xt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},di.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return Tt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.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}},di.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=At),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},di.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Et),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},di.week=function(t){return Rt(t,this._week.dow,this._week.doy).week},di.firstDayOfYear=function(){return this._week.doy},di.firstDayOfWeek=function(){return this._week.dow},di.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},di.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},di.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},di.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return Vt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.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}},di.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},di.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},di.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},di.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},di.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===S(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",oe),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ae);var vi=Math.abs;function gi(t,e,i,n){var r=Ge(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function yi(t){return t<0?Math.floor(t):Math.ceil(t)}function bi(t){return 4800*t/146097}function _i(t){return 146097*t/4800}function wi(t){return function(){return this.as(t)}}var ki=wi("ms"),Si=wi("s"),Di=wi("m"),xi=wi("h"),Oi=wi("d"),Mi=wi("w"),Ti=wi("M"),Ci=wi("Q"),Pi=wi("y");function Ei(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ai=Ei("milliseconds"),Li=Ei("seconds"),Ii=Ei("minutes"),ji=Ei("hours"),Yi=Ei("days"),Ni=Ei("months"),Ri=Ei("years"),Fi=Math.round,Hi={ss:44,s:45,m:45,h:22,d:26,M:11};function Gi(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}function zi(t,e,i){var n=Ge(t).abs(),r=Fi(n.as("s")),o=Fi(n.as("m")),s=Fi(n.as("h")),a=Fi(n.as("d")),l=Fi(n.as("M")),u=Fi(n.as("y")),h=r<=Hi.ss&&["s",r]||r<Hi.s&&["ss",r]||o<=1&&["m"]||o<Hi.m&&["mm",o]||s<=1&&["h"]||s<Hi.h&&["hh",s]||a<=1&&["d"]||a<Hi.d&&["dd",a]||l<=1&&["M"]||l<Hi.M&&["MM",l]||u<=1&&["y"]||["yy",u];return h[2]=e,h[3]=+t>0,h[4]=i,Gi.apply(null,h)}var Wi=Math.abs;function Vi(t){return(t>0)-(t<0)||+t}function Ui(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Wi(this._milliseconds)/1e3,n=Wi(this._days),r=Wi(this._months);t=k(i/60),e=k(t/60),i%=60,t%=60;var o=k(r/12),s=r%=12,a=n,l=e,u=t,h=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Vi(this._months)!==Vi(c)?"-":"",p=Vi(this._days)!==Vi(c)?"-":"",m=Vi(this._milliseconds)!==Vi(c)?"-":"";return d+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||u||h?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(h?m+h+"S":"")}var Bi=Pe.prototype;return Bi.isValid=function(){return this._isValid},Bi.abs=function(){var t=this._data;return this._milliseconds=vi(this._milliseconds),this._days=vi(this._days),this._months=vi(this._months),t.milliseconds=vi(t.milliseconds),t.seconds=vi(t.seconds),t.minutes=vi(t.minutes),t.hours=vi(t.hours),t.months=vi(t.months),t.years=vi(t.years),this},Bi.add=function(t,e){return gi(this,t,e,1)},Bi.subtract=function(t,e){return gi(this,t,e,-1)},Bi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=j(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+bi(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(_i(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=ki,Bi.asSeconds=Si,Bi.asMinutes=Di,Bi.asHours=xi,Bi.asDays=Oi,Bi.asWeeks=Mi,Bi.asMonths=Ti,Bi.asQuarters=Ci,Bi.asYears=Pi,Bi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Bi._bubble=function(){var t,e,i,n,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*yi(_i(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=k(o/1e3),l.seconds=t%60,e=k(t/60),l.minutes=e%60,i=k(e/60),l.hours=i%24,s+=k(i/24),r=k(bi(s)),a+=r,s-=yi(_i(r)),n=k(a/12),a%=12,l.days=s,l.months=a,l.years=n,this},Bi.clone=function(){return Ge(this)},Bi.get=function(t){return t=j(t),this.isValid()?this[t+"s"]():NaN},Bi.milliseconds=Ai,Bi.seconds=Li,Bi.minutes=Ii,Bi.hours=ji,Bi.days=Yi,Bi.weeks=function(){return k(this.days()/7)},Bi.months=Ni,Bi.years=Ri,Bi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=zi(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Bi.toISOString=Ui,Bi.toString=Ui,Bi.toJSON=Ui,Bi.locale=Ze,Bi.localeData=$e,Bi.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ui),Bi.lang=Je,V("X",0,0,"unix"),V("x",0,0,"valueOf"),ht("x",ot),ht("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),pt("x",(function(t,e,i){i._d=new Date(S(t))})),r.version="2.24.0",e=xe,r.fn=hi,r.min=function(){var t=[].slice.call(arguments,0);return Te("isBefore",t)},r.max=function(){var t=[].slice.call(arguments,0);return Te("isAfter",t)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(t){return xe(1e3*t)},r.months=function(t,e){return pi(t,e,"months")},r.isDate=u,r.locale=oe,r.invalid=v,r.duration=Ge,r.isMoment=w,r.weekdays=function(t,e,i){return mi(t,e,i,"weekdays")},r.parseZone=function(){return xe.apply(null,arguments).parseZone()},r.localeData=ae,r.isDuration=Ee,r.monthsShort=function(t,e){return pi(t,e,"monthsShort")},r.weekdaysMin=function(t,e,i){return mi(t,e,i,"weekdaysMin")},r.defineLocale=se,r.updateLocale=function(t,e){if(null!=e){var i,n,r=te;null!=(n=re(t))&&(r=n._config),(i=new A(e=E(r,e))).parentLocale=ee[t],ee[t]=i,oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},r.locales=function(){return M(ee)},r.weekdaysShort=function(t,e,i){return mi(t,e,i,"weekdaysShort")},r.normalizeUnits=j,r.relativeTimeRounding=function(t){return void 0===t?Fi:"function"==typeof t&&(Fi=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==Hi[t]&&(void 0===e?Hi[t]:(Hi[t]=e,"s"===t&&(Hi.ss=e-1),!0))},r.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"},r.prototype=hi,r.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:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()})),o=(n((function(t,e){(function(t){function e(t,e,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[i][0]:r[i][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){t.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,i){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()<t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})(r)})),n((function(t,e){(function(t){var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,e,i){var r=t+" ";switch(i){case"ss":return r+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return r+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return r+(n(t)?"godziny":"godzin");case"MM":return r+(n(t)?"miesiące":"miesięcy");case"yy":return r+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){function e(t,e,i){var n,r;return"m"===i?e?"минута":"минуту":t+" "+(n=+t,r={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2])}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:e,m:e,mm:e,h:"час",hh:e,d:"день",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){function e(t,e,i){var n,r;return"m"===i?e?"хвилина":"хвилину":"h"===i?e?"година":"годину":t+" "+(n=+t,r={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2])}function i(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(t,e){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:e,m:e,mm:e,h:"годину",hh:e,d:"день",dd:e,M:"місяць",MM:e,y:"рік",yy:e},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})})(r)})),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function s(t,e){return t(e={exports:{}},e.exports),e.exports}var a=function(t){return t&&t.Math==Math&&t},l=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof o&&o)||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},h=!u((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,f={f:d&&!c.call({1:2},1)?function(t){var e=d(this,t);return!!e&&e.enumerable}:c},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m={}.toString,v=function(t){return m.call(t).slice(8,-1)},g="".split,y=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},_=function(t){return y(b(t))},w=function(t){return"object"==typeof t?null!==t:"function"==typeof t},k=function(t,e){if(!w(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!w(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!w(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!w(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,D=function(t,e){return S.call(t,e)},x=l.document,O=w(x)&&w(x.createElement),M=function(t){return O?x.createElement(t):{}},T=!h&&!u((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),C=Object.getOwnPropertyDescriptor,P={f:h?C:function(t,e){if(t=_(t),e=k(e,!0),T)try{return C(t,e)}catch(t){}if(D(t,e))return p(!f.f.call(t,e),t[e])}},E=/#|\.prototype\./,A=function(t,e){var i=I[L(t)];return i==Y||i!=j&&("function"==typeof e?u(e):!!e)},L=A.normalize=function(t){return String(t).replace(E,".").toLowerCase()},I=A.data={},j=A.NATIVE="N",Y=A.POLYFILL="P",N=A,R={},F=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};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,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},H=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},G=Object.defineProperty,z={f:h?G:function(t,e,i){if(H(t),e=k(e,!0),H(i),T)try{return G(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},W=h?function(t,e,i){return z.f(t,e,p(1,i))}:function(t,e,i){return t[e]=i,t},V=P.f,U=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},B=function(t,e){var i,n,r,o,s,a,u,h,c=t.target,d=t.global,f=t.stat,p=t.proto,m=d?l:f?l[c]:(l[c]||{}).prototype,v=d?R:R[c]||(R[c]={}),g=v.prototype;for(r in e)i=!N(d?r:c+(f?".":"#")+r,t.forced)&&m&&D(m,r),s=v[r],i&&(a=t.noTargetGet?(h=V(m,r))&&h.value:m[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(u=t.bind&&i?F(o,l):t.wrap&&i?U(o):p&&"function"==typeof o?F(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&W(u,"sham",!0),v[r]=u,p&&(D(R,n=c+"Prototype")||W(R,n,{}),R[n][r]=o,t.real&&g&&!g[r]&&W(g,r,o)))},X=Array.isArray||function(t){return"Array"==v(t)};B({target:"Array",stat:!0},{isArray:X});var q=R.Array.isArray,Z=q;var J=function(t){if(Z(t))return t},$={},K=l["__core-js_shared__"]||function(t,e){try{W(l,t,e)}catch(i){l[t]=e}return e}("__core-js_shared__",{}),Q=Function.toString;"function"!=typeof K.inspectSource&&(K.inspectSource=function(t){return Q.call(t)});var tt,et,it,nt=K.inspectSource,rt=l.WeakMap,ot="function"==typeof rt&&/native code/.test(nt(rt)),st=s((function(t){(t.exports=function(t,e){return K[t]||(K[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),at=0,lt=Math.random(),ut=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++at+lt).toString(36)},ht=st("keys"),ct=function(t){return ht[t]||(ht[t]=ut(t))},dt={},ft=l.WeakMap;if(ot){var pt=new ft,mt=pt.get,vt=pt.has,gt=pt.set;tt=function(t,e){return gt.call(pt,t,e),e},et=function(t){return mt.call(pt,t)||{}},it=function(t){return vt.call(pt,t)}}else{var yt=ct("state");dt[yt]=!0,tt=function(t,e){return W(t,yt,e),e},et=function(t){return D(t,yt)?t[yt]:{}},it=function(t){return D(t,yt)}}var bt,_t,wt,kt={set:tt,get:et,has:it,enforce:function(t){return it(t)?et(t):tt(t,{})},getterFor:function(t){return function(e){var i;if(!w(e)||(i=et(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},St=function(t){return Object(b(t))},Dt=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xt=ct("IE_PROTO"),Ot=Object.prototype,Mt=Dt?Object.getPrototypeOf:function(t){return t=St(t),D(t,xt)?t[xt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ot:null},Tt=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),Ct=Tt&&!Symbol.sham&&"symbol"==typeof Symbol(),Pt=st("wks"),Et=l.Symbol,At=Ct?Et:ut,Lt=function(t){return D(Pt,t)||(Tt&&D(Et,t)?Pt[t]=Et[t]:Pt[t]=At("Symbol."+t)),Pt[t]},It=(Lt("iterator"),!1);[].keys&&("next"in(wt=[].keys())?(_t=Mt(Mt(wt)))!==Object.prototype&&(bt=_t):It=!0),null==bt&&(bt={});var jt,Yt={IteratorPrototype:bt,BUGGY_SAFARI_ITERATORS:It},Nt=Math.ceil,Rt=Math.floor,Ft=function(t){return isNaN(t=+t)?0:(t>0?Rt:Nt)(t)},Ht=Math.min,Gt=function(t){return t>0?Ht(Ft(t),9007199254740991):0},zt=Math.max,Wt=Math.min,Vt=function(t,e){var i=Ft(t);return i<0?zt(i+e,0):Wt(i,e)},Ut=function(t){return function(e,i,n){var r,o=_(e),s=Gt(o.length),a=Vt(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Bt={includes:Ut(!0),indexOf:Ut(!1)},Xt=Bt.indexOf,qt=function(t,e){var i,n=_(t),r=0,o=[];for(i in n)!D(dt,i)&&D(n,i)&&o.push(i);for(;e.length>r;)D(n,i=e[r++])&&(~Xt(o,i)||o.push(i));return o},Zt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jt=Object.keys||function(t){return qt(t,Zt)},$t=h?Object.defineProperties:function(t,e){H(t);for(var i,n=Jt(e),r=n.length,o=0;r>o;)z.f(t,i=n[o++],e[i]);return t},Kt=function(t){return"function"==typeof t?t:void 0},Qt=function(t,e){return arguments.length<2?Kt(R[t])||Kt(l[t]):R[t]&&R[t][e]||l[t]&&l[t][e]},te=Qt("document","documentElement"),ee=ct("IE_PROTO"),ie=function(){},ne=function(t){return"<script>"+t+"<\/script>"},re=function(){try{jt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;re=jt?function(t){t.write(ne("")),t.close();var e=t.parentWindow.Object;return t=null,e}(jt):((e=M("iframe")).style.display="none",te.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ne("document.F=Object")),t.close(),t.F);for(var i=Zt.length;i--;)delete re.prototype[Zt[i]];return re()};dt[ee]=!0;var oe=Object.create||function(t,e){var i;return null!==t?(ie.prototype=H(t),i=new ie,ie.prototype=null,i[ee]=t):i=re(),void 0===e?i:$t(i,e)},se={};se[Lt("toStringTag")]="z";var ae="[object z]"===String(se),le=Lt("toStringTag"),ue="Arguments"==v(function(){return arguments}()),he=ae?v:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),le))?i:ue?v(e):"Object"==(n=v(e))&&"function"==typeof e.callee?"Arguments":n},ce=ae?{}.toString:function(){return"[object "+he(this)+"]"},de=z.f,fe=Lt("toStringTag"),pe=function(t,e,i,n){if(t){var r=i?t:t.prototype;D(r,fe)||de(r,fe,{configurable:!0,value:e}),n&&!ae&&W(r,"toString",ce)}},me=Yt.IteratorPrototype,ve=function(){return this},ge=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}}(),function(t,e,i,n){n&&n.enumerable?t[e]=i:W(t,e,i)}),ye=Yt.IteratorPrototype,be=Yt.BUGGY_SAFARI_ITERATORS,_e=Lt("iterator"),we=function(){return this},ke=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=oe(me,{next:p(1,i)}),pe(t,n,!1,!0),$[n]=ve}(i,e,n);var a,l,u,h=function(t){if(t===r&&v)return v;if(!be&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,m=f[_e]||f["@@iterator"]||r&&f[r],v=!be&&m||h(r),g="Array"==e&&f.entries||m;if(g&&(a=Mt(g.call(new t)),ye!==Object.prototype&&a.next&&(pe(a,c,!0,!0),$[c]=we)),"values"==r&&m&&"values"!==m.name&&(d=!0,v=function(){return m.call(this)}),s&&f[_e]!==v&&W(f,_e,v),$[e]=v,r)if(l={values:h("values"),keys:o?v:h("keys"),entries:h("entries")},s)for(u in l)!be&&!d&&u in f||ge(f,u,l[u]);else B({target:e,proto:!0,forced:be||d},l);return l},Se=kt.set,De=kt.getterFor("Array Iterator");ke(Array,"Array",(function(t,e){Se(this,{type:"Array Iterator",target:_(t),index:0,kind:e})}),(function(){var t=De(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");$.Arguments=$.Array;var xe=Lt("toStringTag");for(var Oe in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Me=l[Oe],Te=Me&&Me.prototype;Te&&!Te[xe]&&W(Te,xe,Oe),$[Oe]=$.Array}var Ce=function(t){return function(e,i){var n,r,o=String(b(e)),s=Ft(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Pe={codeAt:Ce(!1),charAt:Ce(!0)}.charAt,Ee=kt.set,Ae=kt.getterFor("String Iterator");ke(String,"String",(function(t){Ee(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ae(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Pe(i,n),e.index+=t.length,{value:t,done:!1})}));var Le=Lt("iterator"),Ie=function(t){if(null!=t)return t[Le]||t["@@iterator"]||$[he(t)]},je=function(t){var e=Ie(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return H(e.call(t))},Ye=Lt("iterator"),Ne=function(t){var e=Object(t);return void 0!==e[Ye]||"@@iterator"in e||$.hasOwnProperty(he(e))};var Re=function(t,e){if(Ne(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=je(t);!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}};var Fe=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var He=function(t,e){return J(t)||Re(t,e)||Fe()};B({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Ge=R.Date.now;function ze(t){var e=function(){for(var t=We(),e=t(" "),i=t(" "),n=t(" "),r=0;r<arguments.length;r++)(e-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(e+=1),(i-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(i+=1),(n-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(n+=1);return[e,i,n]}(t),i=He(e,3),n=i[0],r=i[1],o=i[2],s=1,a=function(){var t=2091639*n+2.3283064365386963e-10*s;return n=r,r=o,o=t-(s=0|t)};return a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.algorithm="Alea",a.seed=t,a.version="0.9",a}function We(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var r=.02519603282416938*(t+=i.charCodeAt(n));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)}}B({target:"Object",stat:!0,forced:!h,sham:!h},{defineProperty:z.f});var Ve=s((function(t){var e=R.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),Ue=Ve;B({target:"Object",stat:!0,forced:!h,sham:!h},{defineProperties:$t});var Be=s((function(t){var e=R.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Xe=Zt.concat("length","prototype"),qe={f:Object.getOwnPropertyNames||function(t){return qt(t,Xe)}},Ze={f:Object.getOwnPropertySymbols},Je=Qt("Reflect","ownKeys")||function(t){var e=qe.f(H(t)),i=Ze.f;return i?e.concat(i(t)):e},$e=function(t,e,i){var n=k(e);n in t?z.f(t,n,p(0,i)):t[n]=i};B({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,i,n=_(t),r=P.f,o=Je(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&$e(s,e,i);return s}});var Ke=R.Object.getOwnPropertyDescriptors,Qe=P.f,ti=u((function(){Qe(1)}));B({target:"Object",stat:!0,forced:!h||ti,sham:!h},{getOwnPropertyDescriptor:function(t,e){return Qe(_(t),e)}});var ei=s((function(t){var e=R.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),ii=qe.f,ni={}.toString,ri="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oi={f:function(t){return ri&&"[object Window]"==ni.call(t)?function(t){try{return ii(t)}catch(t){return ri.slice()}}(t):ii(_(t))}},si={f:Lt},ai=z.f,li=function(t){var e=R.Symbol||(R.Symbol={});D(e,t)||ai(e,t,{value:si.f(t)})},ui=Lt("species"),hi=function(t,e){var i;return X(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!X(i.prototype)?w(i)&&null===(i=i[ui])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},ci=[].push,di=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=St(a),p=y(f),m=F(l,u,3),v=Gt(p.length),g=0,b=h||hi,_=e?b(a,v):i?b(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)_[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:ci.call(_,c)}else if(r)return!1;return o?-1:n||r?r:_}},fi={forEach:di(0),map:di(1),filter:di(2),some:di(3),every:di(4),find:di(5),findIndex:di(6)},pi=fi.forEach,mi=ct("hidden"),vi=Lt("toPrimitive"),gi=kt.set,yi=kt.getterFor("Symbol"),bi=Object.prototype,_i=l.Symbol,wi=Qt("JSON","stringify"),ki=P.f,Si=z.f,Di=oi.f,xi=f.f,Oi=st("symbols"),Mi=st("op-symbols"),Ti=st("string-to-symbol-registry"),Ci=st("symbol-to-string-registry"),Pi=st("wks"),Ei=l.QObject,Ai=!Ei||!Ei.prototype||!Ei.prototype.findChild,Li=h&&u((function(){return 7!=oe(Si({},"a",{get:function(){return Si(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=ki(bi,e);n&&delete bi[e],Si(t,e,i),n&&t!==bi&&Si(bi,e,n)}:Si,Ii=function(t,e){var i=Oi[t]=oe(_i.prototype);return gi(i,{type:"Symbol",tag:t,description:e}),h||(i.description=e),i},ji=Tt&&"symbol"==typeof _i.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof _i},Yi=function(t,e,i){t===bi&&Yi(Mi,e,i),H(t);var n=k(e,!0);return H(i),D(Oi,n)?(i.enumerable?(D(t,mi)&&t[mi][n]&&(t[mi][n]=!1),i=oe(i,{enumerable:p(0,!1)})):(D(t,mi)||Si(t,mi,p(1,{})),t[mi][n]=!0),Li(t,n,i)):Si(t,n,i)},Ni=function(t,e){H(t);var i=_(e),n=Jt(i).concat(Gi(i));return pi(n,(function(e){h&&!Ri.call(i,e)||Yi(t,e,i[e])})),t},Ri=function(t){var e=k(t,!0),i=xi.call(this,e);return!(this===bi&&D(Oi,e)&&!D(Mi,e))&&(!(i||!D(this,e)||!D(Oi,e)||D(this,mi)&&this[mi][e])||i)},Fi=function(t,e){var i=_(t),n=k(e,!0);if(i!==bi||!D(Oi,n)||D(Mi,n)){var r=ki(i,n);return!r||!D(Oi,n)||D(i,mi)&&i[mi][n]||(r.enumerable=!0),r}},Hi=function(t){var e=Di(_(t)),i=[];return pi(e,(function(t){D(Oi,t)||D(dt,t)||i.push(t)})),i},Gi=function(t){var e=t===bi,i=Di(e?Mi:_(t)),n=[];return pi(i,(function(t){!D(Oi,t)||e&&!D(bi,t)||n.push(Oi[t])})),n};if(Tt||(ge((_i=function(){if(this instanceof _i)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=ut(t),i=function(t){this===bi&&i.call(Mi,t),D(this,mi)&&D(this[mi],e)&&(this[mi][e]=!1),Li(this,e,p(1,t))};return h&&Ai&&Li(bi,e,{configurable:!0,set:i}),Ii(e,t)}).prototype,"toString",(function(){return yi(this).tag})),f.f=Ri,z.f=Yi,P.f=Fi,qe.f=oi.f=Hi,Ze.f=Gi,h&&Si(_i.prototype,"description",{configurable:!0,get:function(){return yi(this).description}})),Ct||(si.f=function(t){return Ii(Lt(t),t)}),B({global:!0,wrap:!0,forced:!Tt,sham:!Tt},{Symbol:_i}),pi(Jt(Pi),(function(t){li(t)})),B({target:"Symbol",stat:!0,forced:!Tt},{for:function(t){var e=String(t);if(D(Ti,e))return Ti[e];var i=_i(e);return Ti[e]=i,Ci[i]=e,i},keyFor:function(t){if(!ji(t))throw TypeError(t+" is not a symbol");if(D(Ci,t))return Ci[t]},useSetter:function(){Ai=!0},useSimple:function(){Ai=!1}}),B({target:"Object",stat:!0,forced:!Tt,sham:!h},{create:function(t,e){return void 0===e?oe(t):Ni(oe(t),e)},defineProperty:Yi,defineProperties:Ni,getOwnPropertyDescriptor:Fi}),B({target:"Object",stat:!0,forced:!Tt},{getOwnPropertyNames:Hi,getOwnPropertySymbols:Gi}),B({target:"Object",stat:!0,forced:u((function(){Ze.f(1)}))},{getOwnPropertySymbols:function(t){return Ze.f(St(t))}}),wi){var zi=!Tt||u((function(){var t=_i();return"[null]"!=wi([t])||"{}"!=wi({a:t})||"{}"!=wi(Object(t))}));B({target:"JSON",stat:!0,forced:zi},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(w(e)||void 0!==t)&&!ji(t))return X(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ji(e))return e}),r[1]=e,wi.apply(null,r)}})}_i.prototype[vi]||W(_i.prototype,vi,_i.prototype.valueOf),pe(_i,"Symbol"),dt[mi]=!0;var Wi=R.Object.getOwnPropertySymbols;B({target:"Object",stat:!0,sham:!h},{create:oe});var Vi=R.Object,Ui=function(t,e){return Vi.create(t,e)},Bi=Ve;var Xi=function(t,e,i){return e in t?Bi(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},qi=u((function(){Jt(1)}));B({target:"Object",stat:!0,forced:qi},{keys:function(t){return Jt(St(t))}});var Zi,Ji=R.Object.keys,$i="\t\n\v\f\r \u2028\u2029\ufeff",Ki="["+$i+"]",Qi=RegExp("^"+Ki+Ki+"*"),tn=RegExp(Ki+Ki+"*$"),en=function(t){return function(e){var i=String(b(e));return 1&t&&(i=i.replace(Qi,"")),2&t&&(i=i.replace(tn,"")),i}},nn={start:en(1),end:en(2),trim:en(3)},rn=nn.trim;B({target:"String",proto:!0,forced:(Zi="trim",u((function(){return!!$i[Zi]()||"
"!="
"[Zi]()||$i[Zi].name!==Zi})))},{trim:function(){return rn(this)}});var on=function(t){return R[t+"Prototype"]},sn=on("String").trim,an=String.prototype,ln=function(t){var e=t.trim;return"string"==typeof t||t===an||t instanceof String&&e===an.trim?sn:e},un=function(t,e){var i=[][t];return!i||!u((function(){i.call(null,e||function(){throw 1},1)}))},hn=fi.forEach,cn=un("forEach")?function(t){return hn(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;B({target:"Array",proto:!0,forced:[].forEach!=cn},{forEach:cn});var dn,fn,pn=on("Array").forEach,mn=Array.prototype,vn={DOMTokenList:!0,NodeList:!0},gn=function(t){var e=t.forEach;return t===mn||t instanceof Array&&e===mn.forEach||vn.hasOwnProperty(he(t))?pn:e},yn=Qt("navigator","userAgent")||"",bn=l.process,_n=bn&&bn.versions,wn=_n&&_n.v8;wn?fn=(dn=wn.split("."))[0]+dn[1]:yn&&(!(dn=yn.match(/Edge\/(\d+)/))||dn[1]>=74)&&(dn=yn.match(/Chrome\/(\d+)/))&&(fn=dn[1]);var kn=fn&&+fn,Sn=Lt("species"),Dn=function(t){return kn>=51||!u((function(){var e=[];return(e.constructor={})[Sn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},xn=fi.map,On=Dn("map"),Mn=On&&!u((function(){[].map.call({length:-1,0:1},(function(t){throw t}))}));B({target:"Array",proto:!0,forced:!On||!Mn},{map:function(t){return xn(this,t,arguments.length>1?arguments[1]:void 0)}});var Tn=on("Array").map,Cn=Array.prototype,Pn=function(t){var e=t.map;return t===Cn||t instanceof Array&&e===Cn.map?Tn:e},En=nn.trim,An=l.parseInt,Ln=/^[+-]?0[Xx]/,In=8!==An($i+"08")||22!==An($i+"0x16")?function(t,e){var i=En(String(t));return An(i,e>>>0||(Ln.test(i)?16:10))}:An;B({global:!0,forced:parseInt!=In},{parseInt:In});var jn=R.parseInt,Yn=f.f,Nn=function(t){return function(e){for(var i,n=_(e),r=Jt(n),o=r.length,s=0,a=[];o>s;)i=r[s++],h&&!Yn.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Rn={entries:Nn(!0),values:Nn(!1)}.values;B({target:"Object",stat:!0},{values:function(t){return Rn(t)}});var Fn=R.Object.values,Hn=fi.filter,Gn=Dn("filter"),zn=Gn&&!u((function(){[].filter.call({length:-1,0:1},(function(t){throw t}))}));B({target:"Array",proto:!0,forced:!Gn||!zn},{filter:function(t){return Hn(this,t,arguments.length>1?arguments[1]:void 0)}});var Wn=on("Array").filter,Vn=Array.prototype,Un=function(t){var e=t.filter;return t===Vn||t instanceof Array&&e===Vn.filter?Wn:e},Bn=Lt("isConcatSpreadable"),Xn=kn>=51||!u((function(){var t=[];return t[Bn]=!1,t.concat()[0]!==t})),qn=Dn("concat"),Zn=function(t){if(!w(t))return!1;var e=t[Bn];return void 0!==e?!!e:X(t)};B({target:"Array",proto:!0,forced:!Xn||!qn},{concat:function(t){var e,i,n,r,o,s=St(this),a=hi(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],Zn(o)){if(l+(r=Gt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&$e(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$e(a,l++,o)}return a.length=l,a}});var Jn=on("Array").concat,$n=Array.prototype,Kn=function(t){var e=t.concat;return t===$n||t instanceof Array&&e===$n.concat?Jn:e};var Qn=function(t){if(Z(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}},tr=function(t,e,i,n){try{return n?e(H(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&H(r.call(t)),e}},er=Lt("iterator"),ir=Array.prototype,nr=function(t){return void 0!==t&&($.Array===t||ir[er]===t)},rr=Lt("iterator"),or=!1;try{var sr=0,ar={next:function(){return{done:!!sr++}},return:function(){or=!0}};ar[rr]=function(){return this},Array.from(ar,(function(){throw 2}))}catch(t){}var lr=!function(t,e){if(!e&&!or)return!1;var i=!1;try{var n={};n[rr]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));B({target:"Array",stat:!0,forced:lr},{from:function(t){var e,i,n,r,o,s=St(t),a="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,c=0,d=Ie(s);if(h&&(u=F(u,l>2?arguments[2]:void 0,2)),null==d||a==Array&&nr(d))for(i=new a(e=Gt(s.length));e>c;c++)$e(i,c,h?u(s[c],c):s[c]);else for(o=(r=d.call(s)).next,i=new a;!(n=o.call(r)).done;c++)$e(i,c,h?tr(r,u,[n.value,c],!0):n.value);return i.length=c,i}});var ur=R.Array.from;var hr=function(t){if(Ne(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return ur(t)};var cr=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var dr=function(t){return Qn(t)||hr(t)||cr()},fr=Lt("species"),pr=[].slice,mr=Math.max;B({target:"Array",proto:!0,forced:!Dn("slice")},{slice:function(t,e){var i,n,r,o=_(this),s=Gt(o.length),a=Vt(t,s),l=Vt(void 0===e?s:e,s);if(X(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!X(i.prototype)?w(i)&&null===(i=i[fr])&&(i=void 0):i=void 0,i===Array||void 0===i))return pr.call(o,a,l);for(n=new(void 0===i?Array:i)(mr(l-a,0)),r=0;a<l;a++,r++)a in o&&$e(n,r,o[a]);return n.length=r,n}});var vr=on("Array").slice,gr=Array.prototype,yr=function(t){var e=t.slice;return t===gr||t instanceof Array&&e===gr.slice?vr:e},br=u((function(){Mt(1)}));B({target:"Object",stat:!0,forced:br,sham:!Dt},{getPrototypeOf:function(t){return Mt(St(t))}});var _r=R.Object.getPrototypeOf,wr=Bt.indexOf,kr=[].indexOf,Sr=!!kr&&1/[1].indexOf(1,-0)<0,Dr=un("indexOf");B({target:"Array",proto:!0,forced:Sr||Dr},{indexOf:function(t){return Sr?kr.apply(this,arguments)||0:wr(this,t,arguments.length>1?arguments[1]:void 0)}});var xr=on("Array").indexOf,Or=Array.prototype,Mr=function(t){var e=t.indexOf;return t===Or||t instanceof Array&&e===Or.indexOf?xr:e},Tr=q,Cr=Object.assign,Pr=Object.defineProperty,Er=!Cr||u((function(){if(h&&1!==Cr({b:1},Cr(Pr({},"a",{enumerable:!0,get:function(){Pr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Cr({},t)[i]||"abcdefghijklmnopqrst"!=Jt(Cr({},e)).join("")}))?function(t,e){for(var i=St(t),n=arguments.length,r=1,o=Ze.f,s=f.f;n>r;)for(var a,l=y(arguments[r++]),u=o?Jt(l).concat(o(l)):Jt(l),c=u.length,d=0;c>d;)a=u[d++],h&&!s.call(l,a)||(i[a]=l[a]);return i}:Cr;B({target:"Object",stat:!0,forced:Object.assign!==Er},{assign:Er});var Ar=R.Object.assign;li("iterator");var Lr=si.f("iterator");li("asyncIterator"),li("hasInstance"),li("isConcatSpreadable"),li("match"),li("matchAll"),li("replace"),li("search"),li("species"),li("split"),li("toPrimitive"),li("toStringTag"),li("unscopables"),pe(Math,"Math",!0),pe(l.JSON,"JSON",!0);var Ir=R.Symbol;li("asyncDispose"),li("dispose"),li("observable"),li("patternMatch"),li("replaceAll");for(var jr=Ir,Yr=s((function(t){function e(i){return t.exports=e="function"==typeof jr&&"symbol"==typeof Lr?function(t){return typeof t}:function(t){return t&&"function"==typeof jr&&t.constructor===jr&&t!==jr.prototype?"symbol":typeof t},e(i)}t.exports=e})),Nr=[],Rr=0;Rr<256;Rr++)Nr[Rr]=(Rr+256).toString(16).substr(1);function Fr(t,e){var i=e||0,n=Nr;return n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]}for(var Hr=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var e=new Array(16);return function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),e[i]=t>>>((3&i)<<3)&255;return e}}(),Gr=[],zr=0;zr<256;zr++)Gr[zr]=(zr+256).toString(16).substr(1);var Wr=Hr();Wr[0],Wr[1],Wr[2],Wr[3],Wr[4],Wr[5],Wr[6],Wr[7];function Vr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var r=t.random||(t.rng||Hr)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;o++)e[n+o]=r[o];return e||Fr(r)}function Ur(t,e){var i=Ji(t);if(Wi){var n=Wi(t);e&&(n=Un(n).call(n,(function(e){return ei(t,e).enumerable}))),i.push.apply(i,n)}return i}var Br=/^\/?Date\((-?\d+)/i,Xr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qr=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Zr=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Jr=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function $r(t){return t instanceof Number||"number"==typeof t}function Kr(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Kr(e),t.removeChild(e))}}function Qr(t){return t instanceof String||"string"==typeof t}function to(t){return"object"===Yr(t)&&null!==t}function eo(t){if(t instanceof Date)return!0;if(Qr(t)){if(Br.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function io(t,e,i,n){var r=!1;!0===n&&(r=null===e[i]&&void 0!==t[i]),r?delete t[i]:t[i]=e[i]}function no(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==Yr(e[n]))io(t,e,n,i);else{var r=t[n],o=e[n];to(r)&&to(o)&&no(r,o,i)}}var ro=Ar;function oo(t,e){if(!Tr(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];for(var o=0,s=n;o<s.length;o++)for(var a=s[o],l=0;l<t.length;l++){var u=t[l];a&&Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u])}return e}function so(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Tr(i))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r<t.length;r++){var o=t[r];if(Object.prototype.hasOwnProperty.call(i,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?lo(e[o],i[o],!1,n):io(e,i,o,n);else{if(Tr(i[o]))throw new TypeError("Arrays are not supported by deepExtend");io(e,i,o,n)}}return e}function ao(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Tr(i))throw new TypeError("Arrays are not supported by deepExtend");for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&-1===Mr(t).call(t,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?lo(e[r],i[r]):io(e,i,r,n);else if(Tr(i[r])){e[r]=[];for(var o=0;o<i[r].length;o++)e[r].push(i[r][o])}else io(e,i,r,n);return e}function lo(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===i)if("object"===Yr(e[r])&&null!==e[r]&&_r(e[r])===Object.prototype)void 0===t[r]?t[r]=lo({},e[r],i):"object"===Yr(t[r])&&null!==t[r]&&_r(t[r])===Object.prototype?lo(t[r],e[r],i):io(t,e,r,n);else if(Tr(e[r])){var o;t[r]=yr(o=e[r]).call(o)}else io(t,e,r,n);return t}function uo(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0}function ho(t){var e=Yr(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Tr(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function co(t,e){var i;return Kn(i=[]).call(i,dr(t),[e])}function fo(t){return yr(t).call(t)}function po(t){return t.getBoundingClientRect().left}function mo(t){return t.getBoundingClientRect().right}function vo(t){return t.getBoundingClientRect().top}function go(t,e){var i=t.className.split(" "),n=e.split(" ");i=Kn(i).call(i,Un(n).call(n,(function(t){return Mr(i).call(i,t)<0}))),t.className=i.join(" ")}function yo(t,e){var i=t.className.split(" "),n=e.split(" ");i=Un(i).call(i,(function(t){return Mr(n).call(n,t)<0})),t.className=i.join(" ")}function bo(t,e){if(Tr(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],r,t)}var _o=Fn;function wo(t,e,i){return t[e]!==i&&(t[e]=i,!0)}function ko(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}}function So(t,e,i,n){var r;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mr(r=navigator.userAgent).call(r,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)}function Do(t,e,i,n){var r;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mr(r=navigator.userAgent).call(r,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)}function xo(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function Oo(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null}function Mo(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1}var To={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Qr(t)?t:$r(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function Co(t){var e;switch(t.length){case 3:case 4:return(e=qr.exec(t))?{r:jn(e[1]+e[1],16),g:jn(e[2]+e[2],16),b:jn(e[3]+e[3],16)}:null;case 6:case 7:return(e=Xr.exec(t))?{r:jn(e[1],16),g:jn(e[2],16),b:jn(e[3],16)}:null;default:return null}}function Po(t,e){if(-1!==Mr(t).call(t,"rgba"))return t;if(-1!==Mr(t).call(t,"rgb")){var i=t.substr(Mr(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=Co(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}function Eo(t,e,i){var n;return"#"+yr(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function Ao(t,e){if(Qr(t)){var i=t;if(zo(i)){var n,r=Pn(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return jn(t)}));i=Eo(r[0],r[1],r[2])}if(!0===Go(i)){var o=Ho(i),s={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},a={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},l=Fo(a.h,a.s,a.v),u=Fo(s.h,s.s,s.v);return{background:i,border:l,highlight:{background:u,border:l},hover:{background:u,border:l}}}return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Qr(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Qr(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Qr(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Qr(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function Lo(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),r=Math.max(t,Math.max(e,i));return n===r?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(r-n))/360,s:(r-n)/r,v:r}}var Io=function(t){var e,i={};return gn(e=t.split(";")).call(e,(function(t){if(""!=ln(t).call(t)){var e,n,r=t.split(":"),o=ln(e=r[0]).call(e),s=ln(n=r[1]).call(n);i[o]=s}})),i},jo=function(t){var e;return Pn(e=Ji(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function Yo(t,e){var i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)gn(i=Ur(Object(n),!0)).call(i,(function(e){Xi(t,e,n[e])}));else if(Ke)Be(t,Ke(n));else{var r;gn(r=Ur(Object(n))).call(r,(function(e){Ue(t,e,ei(n,e))}))}}return t}({},Io(t.style.cssText),{},Io(e));t.style.cssText=jo(i)}function No(t,e){var i=Io(t.style.cssText),n=Io(e);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&delete i[r];t.style.cssText=jo(i)}function Ro(t,e,i){var n,r,o,s=Math.floor(6*t),a=6*t-s,l=i*(1-e),u=i*(1-a*e),h=i*(1-(1-a)*e);switch(s%6){case 0:n=i,r=h,o=l;break;case 1:n=u,r=i,o=l;break;case 2:n=l,r=i,o=h;break;case 3:n=l,r=u,o=i;break;case 4:n=h,r=l,o=i;break;case 5:n=i,r=l,o=u}return{r:Math.floor(255*n),g:Math.floor(255*r),b:Math.floor(255*o)}}function Fo(t,e,i){var n=Ro(t,e,i);return Eo(n.r,n.g,n.b)}function Ho(t){var e=Co(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return Lo(e.r,e.g,e.b)}function Go(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function zo(t){return Zr.test(t)}function Wo(t){return Jr.test(t)}function Vo(t,e){if(null!==e&&"object"===Yr(e)){for(var i=Ui(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==Yr(e[t[n]])&&(i[t[n]]=Uo(e[t[n]]));return i}return null}function Uo(t){if(null===t||"object"!==Yr(t))return null;if(t instanceof Element)return t;var e=Ui(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==Yr(t[i])&&(e[i]=Uo(t[i]));return e}function Bo(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=void 0;for(r=i;r>0&&e(n,t[r-1])<0;r--)t[r]=t[r-1];t[r]=n}return t}function Xo(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return null!=t},o=function(t){return null!==t&&"object"===Yr(t)},s=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!r(i))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var a=function(t,e,i){o(t[i])||(t[i]={});var n=e[i],r=t[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},l=e[i],u=o(n)&&!s(n),h=u?n[i]:void 0,c=h?h.enabled:void 0;if(void 0!==l){if("boolean"==typeof l)return o(t[i])||(t[i]={}),void(t[i].enabled=l);if(null===l&&!o(t[i])){if(!r(h))return;t[i]=Ui(h)}if(o(l)){var d=!0;void 0!==l.enabled?d=l.enabled:void 0!==c&&(d=h.enabled),a(t,e,i),t[i].enabled=d}}}function qo(t,e,i,n){for(var r=0,o=0,s=t.length-1;o<=s&&r<1e4;){var a=Math.floor((o+s)/2),l=t[a],u=e(void 0===n?l[i]:l[i][n]);if(0==u)return a;-1==u?o=a+1:s=a-1,r++}return-1}function Zo(t,e,i,n,r){var o,s,a,l,u=0,h=0,c=t.length-1;for(r=null!=r?r:function(t,e){return t==e?0:t<e?-1:1};h<=c&&u<1e4;){if(l=Math.floor(.5*(c+h)),o=t[Math.max(0,l-1)][i],s=t[l][i],a=t[Math.min(t.length-1,l+1)][i],0==r(s,e))return l;if(r(o,e)<0&&r(s,e)>0)return"before"==n?Math.max(0,l-1):l;if(r(s,e)<0&&r(a,e)>0)return"before"==n?l:Math.min(t.length-1,l+1);r(s,e)<0?h=l+1:c=l-1,u++}return-1}var Jo={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function $o(){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}function Ko(t,e){var i;Tr(e)||(e=[e]);var n=!0,r=!1,o=void 0;try{for(var s,a=je(t);!(n=(s=a.next()).done);n=!0){var l=s.value;if(l){i=l[e[0]];for(var u=1;u<e.length;u++)i&&(i=i[e[u]]);if(void 0!==i)break}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}var Qo=Object.freeze({__proto__:null,isNumber:$r,recursiveDOMDelete:Kr,isString:Qr,isObject:to,isDate:eo,fillIfDefined:no,extend:ro,selectiveExtend:oo,selectiveDeepExtend:so,selectiveNotDeepExtend:ao,deepExtend:lo,equalArray:uo,getType:ho,copyAndExtendArray:co,copyArray:fo,getAbsoluteLeft:po,getAbsoluteRight:mo,getAbsoluteTop:vo,addClassName:go,removeClassName:yo,forEach:bo,toArray:_o,updateProperty:wo,throttle:ko,addEventListener:So,removeEventListener:Do,preventDefault:xo,getTarget:Oo,hasParent:Mo,option:To,hexToRGB:Co,overrideOpacity:Po,RGBToHex:Eo,parseColor:Ao,RGBToHSV:Lo,addCssText:Yo,removeCssText:No,HSVToRGB:Ro,HSVToHex:Fo,hexToHSV:Ho,isValidHex:Go,isValidRGB:zo,isValidRGBA:Wo,selectiveBridgeObject:Vo,bridgeObject:Uo,insertSort:Bo,mergeOptions:Xo,binarySearchCustom:qo,binarySearchValue:Zo,easingFunctions:Jo,getScrollBarWidth:$o,topMost:Ko,randomUUID:Vr}),ts=Object.freeze({default:Qo,Alea:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return ze(e.length?e:[Ge()])},HSVToHex:Fo,HSVToRGB:Ro,RGBToHSV:Lo,RGBToHex:Eo,addClassName:go,addCssText:Yo,addEventListener:So,binarySearchCustom:qo,binarySearchValue:Zo,bridgeObject:Uo,copyAndExtendArray:co,copyArray:fo,deepExtend:lo,easingFunctions:Jo,equalArray:uo,extend:ro,fillIfDefined:no,forEach:bo,getAbsoluteLeft:po,getAbsoluteRight:mo,getAbsoluteTop:vo,getScrollBarWidth:$o,getTarget:Oo,getType:ho,hasParent:Mo,hexToHSV:Ho,hexToRGB:Co,insertSort:Bo,isDate:eo,isNumber:$r,isObject:to,isString:Qr,isValidHex:Go,isValidRGB:zo,isValidRGBA:Wo,mergeOptions:Xo,option:To,overrideOpacity:Po,parseColor:Ao,preventDefault:xo,randomUUID:Vr,recursiveDOMDelete:Kr,removeClassName:yo,removeCssText:No,removeEventListener:Do,selectiveBridgeObject:Vo,selectiveDeepExtend:so,selectiveExtend:oo,selectiveNotDeepExtend:ao,throttle:ko,toArray:_o,topMost:Ko,updateProperty:wo});function es(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function is(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var i=0;i<t[e].redundant.length;i++)t[e].redundant[i].parentNode.removeChild(t[e].redundant[i]);t[e].redundant=[]}}function ns(t){es(t),is(t),es(t)}function rs(t,e,i){var n;return e.hasOwnProperty(t)?e[t].redundant.length>0?(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}function os(t,e,i,n){var r;return e.hasOwnProperty(t)?e[t].redundant.length>0?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElement(t),void 0!==n?i.insertBefore(r,n):i.appendChild(r)):(r=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(r,n):i.appendChild(r)),e[t].used.push(r),r}function ss(t,e,i,n,r,o){var s;if("circle"==i.style?((s=rs("circle",n,r)).setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*i.size)):((s=rs("rect",n,r)).setAttributeNS(null,"x",t-.5*i.size),s.setAttributeNS(null,"y",e-.5*i.size),s.setAttributeNS(null,"width",i.size),s.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&s.setAttributeNS(null,"style",i.styles),s.setAttributeNS(null,"class",i.className+" vis-point"),o){var a=rs("text",n,r);o.xOffset&&(t+=o.xOffset),o.yOffset&&(e+=o.yOffset),o.content&&(a.textContent=o.content),o.className&&a.setAttributeNS(null,"class",o.className+" vis-label"),a.setAttributeNS(null,"x",t),a.setAttributeNS(null,"y",e)}return s}function as(t,e,i,n,r,o,s,a){if(0!=n){n<0&&(e-=n*=-1);var l=rs("rect",o,s);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",r),a&&l.setAttributeNS(null,"style",a)}}function ls(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(t){return"en"}}var us=Object.freeze({prepareElements:es,cleanupElements:is,resetElements:ns,getSVGElement:rs,getDOMElement:os,drawPoint:ss,drawBar:as,getNavigatorLanguage:ls}),hs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
|
||
/**
|
||
* vis-data
|
||
* http://visjs.org/
|
||
*
|
||
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
||
*
|
||
* @version 6.3.5
|
||
* @date 2020-01-19T08:37:05.508Z
|
||
*
|
||
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
||
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
||
*
|
||
* @license
|
||
* vis.js is dual licensed under both
|
||
*
|
||
* 1. The Apache 2.0 License
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* and
|
||
*
|
||
* 2. The MIT License
|
||
* http://opensource.org/licenses/MIT
|
||
*
|
||
* vis.js may be distributed under either license.
|
||
*/function cs(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function ds(t,e){return t(e={exports:{}},e.exports),e.exports}var fs=function(t){return t&&t.Math==Math&&t},ps=fs("object"==typeof globalThis&&globalThis)||fs("object"==typeof window&&window)||fs("object"==typeof self&&self)||fs("object"==typeof hs&&hs)||Function("return this")(),ms=function(t){try{return!!t()}catch(t){return!0}},vs=!ms((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gs={}.propertyIsEnumerable,ys=Object.getOwnPropertyDescriptor,bs={f:ys&&!gs.call({1:2},1)?function(t){var e=ys(this,t);return!!e&&e.enumerable}:gs},_s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ws={}.toString,ks=function(t){return ws.call(t).slice(8,-1)},Ss="".split,Ds=ms((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==ks(t)?Ss.call(t,""):Object(t)}:Object,xs=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Os=function(t){return Ds(xs(t))},Ms=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Ts=function(t,e){if(!Ms(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!Ms(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!Ms(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!Ms(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Cs={}.hasOwnProperty,Ps=function(t,e){return Cs.call(t,e)},Es=ps.document,As=Ms(Es)&&Ms(Es.createElement),Ls=function(t){return As?Es.createElement(t):{}},Is=!vs&&!ms((function(){return 7!=Object.defineProperty(Ls("div"),"a",{get:function(){return 7}}).a})),js=Object.getOwnPropertyDescriptor,Ys={f:vs?js:function(t,e){if(t=Os(t),e=Ts(e,!0),Is)try{return js(t,e)}catch(t){}if(Ps(t,e))return _s(!bs.f.call(t,e),t[e])}},Ns=/#|\.prototype\./,Rs=function(t,e){var i=Hs[Fs(t)];return i==zs||i!=Gs&&("function"==typeof e?ms(e):!!e)},Fs=Rs.normalize=function(t){return String(t).replace(Ns,".").toLowerCase()},Hs=Rs.data={},Gs=Rs.NATIVE="N",zs=Rs.POLYFILL="P",Ws=Rs,Vs={},Us=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Bs=function(t,e,i){if(Us(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};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,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},Xs=function(t){if(!Ms(t))throw TypeError(String(t)+" is not an object");return t},qs=Object.defineProperty,Zs={f:vs?qs:function(t,e,i){if(Xs(t),e=Ts(e,!0),Xs(i),Is)try{return qs(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},Js=vs?function(t,e,i){return Zs.f(t,e,_s(1,i))}:function(t,e,i){return t[e]=i,t},$s=Ys.f,Ks=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},Qs=function(t,e){var i,n,r,o,s,a,l,u,h=t.target,c=t.global,d=t.stat,f=t.proto,p=c?ps:d?ps[h]:(ps[h]||{}).prototype,m=c?Vs:Vs[h]||(Vs[h]={}),v=m.prototype;for(r in e)i=!Ws(c?r:h+(d?".":"#")+r,t.forced)&&p&&Ps(p,r),s=m[r],i&&(a=t.noTargetGet?(u=$s(p,r))&&u.value:p[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(l=t.bind&&i?Bs(o,ps):t.wrap&&i?Ks(o):f&&"function"==typeof o?Bs(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&Js(l,"sham",!0),m[r]=l,f&&(Ps(Vs,n=h+"Prototype")||Js(Vs,n,{}),Vs[n][r]=o,t.real&&v&&!v[r]&&Js(v,r,o)))},ta=Array.isArray||function(t){return"Array"==ks(t)},ea=Math.ceil,ia=Math.floor,na=function(t){return isNaN(t=+t)?0:(t>0?ia:ea)(t)},ra=Math.min,oa=function(t){return t>0?ra(na(t),9007199254740991):0},sa=function(t,e,i,n,r,o,s,a){for(var l,u=r,h=0,c=!!s&&Bs(s,a,3);h<n;){if(h in i){if(l=c?c(i[h],h,e):i[h],o>0&&ta(l))u=sa(t,e,l,oa(l.length),u,o-1)-1;else{if(u>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[u]=l}u++}h++}return u},aa=sa,la=function(t){return Object(xs(t))},ua=ps["__core-js_shared__"]||function(t,e){try{Js(ps,t,e)}catch(i){ps[t]=e}return e}("__core-js_shared__",{}),ha=ds((function(t){(t.exports=function(t,e){return ua[t]||(ua[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.3",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ca=0,da=Math.random(),fa=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ca+da).toString(36)},pa=!!Object.getOwnPropertySymbols&&!ms((function(){return!String(Symbol())})),ma=pa&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,va=ha("wks"),ga=ps.Symbol,ya=ma?ga:ga&&ga.withoutSetter||fa,ba=function(t){return Ps(va,t)||(pa&&Ps(ga,t)?va[t]=ga[t]:va[t]=ya("Symbol."+t)),va[t]},_a=ba("species"),wa=function(t,e){var i;return ta(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!ta(i.prototype)?Ms(i)&&null===(i=i[_a])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)};Qs({target:"Array",proto:!0},{flatMap:function(t){var e,i=la(this),n=oa(i.length);return Us(t),(e=wa(i,0)).length=aa(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var ka,Sa,Da=function(t){return Vs[t+"Prototype"]},xa=Da("Array").flatMap,Oa=Array.prototype,Ma=function(t){var e=t.flatMap;return t===Oa||t instanceof Array&&e===Oa.flatMap?xa:e},Ta=[].push,Ca=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=la(a),p=Ds(f),m=Bs(l,u,3),v=oa(p.length),g=0,y=h||wa,b=e?y(a,v):i?y(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)b[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:Ta.call(b,c)}else if(r)return!1;return o?-1:n||r?r:b}},Pa={forEach:Ca(0),map:Ca(1),filter:Ca(2),some:Ca(3),every:Ca(4),find:Ca(5),findIndex:Ca(6)},Ea=function(t){return"function"==typeof t?t:void 0},Aa=function(t,e){return arguments.length<2?Ea(Vs[t])||Ea(ps[t]):Vs[t]&&Vs[t][e]||ps[t]&&ps[t][e]},La=Aa("navigator","userAgent")||"",Ia=ps.process,ja=Ia&&Ia.versions,Ya=ja&&ja.v8;Ya?Sa=(ka=Ya.split("."))[0]+ka[1]:La&&(!(ka=La.match(/Edge\/(\d+)/))||ka[1]>=74)&&(ka=La.match(/Chrome\/(\d+)/))&&(Sa=ka[1]);var Na=Sa&&+Sa,Ra=ba("species"),Fa=function(t){return Na>=51||!ms((function(){var e=[];return(e.constructor={})[Ra]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ha=Object.defineProperty,Ga=function(t){throw t},za=function(t,e){e||(e={});var i=[][t],n=!!Ps(e,"ACCESSORS")&&e.ACCESSORS,r=Ps(e,0)?e[0]:Ga,o=Ps(e,1)?e[1]:void 0;return!!i&&!ms((function(){if(n&&!vs)return!0;var t={length:-1},e=function(e){n?Ha(t,e,{enumerable:!0,get:Ga}):t[e]=1};e(1),e(2147483646),e(4294967294),i.call(t,r,o)}))},Wa=Pa.map,Va=Fa("map"),Ua=za("map");Qs({target:"Array",proto:!0,forced:!Va||!Ua},{map:function(t){return Wa(this,t,arguments.length>1?arguments[1]:void 0)}});var Ba=Da("Array").map,Xa=Array.prototype,qa=function(t){var e=t.map;return t===Xa||t instanceof Array&&e===Xa.map?Ba:e},Za=Pa.filter,Ja=Fa("filter"),$a=za("filter");Qs({target:"Array",proto:!0,forced:!Ja||!$a},{filter:function(t){return Za(this,t,arguments.length>1?arguments[1]:void 0)}});var Ka=Da("Array").filter,Qa=Array.prototype,tl=function(t){var e=t.filter;return t===Qa||t instanceof Array&&e===Qa.filter?Ka:e},el=function(t){return function(e,i,n,r){Us(i);var o=la(e),s=Ds(o),a=oa(o.length),l=t?a-1:0,u=t?-1:1;if(n<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=i(r,s[l],l,o));return r}},il=function(t,e){var i=[][t];return!!i&&ms((function(){i.call(null,e||function(){throw 1},1)}))},nl={left:el(!1),right:el(!0)}.left,rl=il("reduce"),ol=za("reduce",{1:0});Qs({target:"Array",proto:!0,forced:!rl||!ol},{reduce:function(t){return nl(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var sl=Da("Array").reduce,al=Array.prototype,ll=function(t){var e=t.reduce;return t===al||t instanceof Array&&e===al.reduce?sl:e},ul=[].slice,hl={},cl=function(t,e,i){if(!(e in hl)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";hl[e]=Function("C,a","return new C("+n.join(",")+")")}return hl[e](t,i)},dl=Function.bind||function(t){var e=Us(this),i=ul.call(arguments,1),n=function(){var r=i.concat(ul.call(arguments));return this instanceof n?cl(e,r.length,r):e.apply(t,r)};return Ms(e.prototype)&&(n.prototype=e.prototype),n};Qs({target:"Function",proto:!0},{bind:dl});var fl=Da("Function").bind,pl=Function.prototype,ml=function(t){var e=t.bind;return t===pl||t instanceof Function&&e===pl.bind?fl:e};var vl=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Qs({target:"Object",stat:!0,forced:!vs,sham:!vs},{defineProperty:Zs.f});var gl=ds((function(t){var e=Vs.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),yl=gl;function bl(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),yl(t,n.key,n)}}var _l=function(t,e,i){return e&&bl(t.prototype,e),i&&bl(t,i),t};function wl(t){return new Sl(t)}var kl=function(){function t(e,i,n){var r,o,s;vl(this,t),this._source=e,this._transformers=i,this._target=n,this._listeners={add:ml(r=this._add).call(r,this),remove:ml(o=this._remove).call(o,this),update:ml(s=this._update).call(s,this)}}return _l(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return ll(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Sl=function(){function t(e){vl(this,t),this._source=e,this._transformers=[]}return _l(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return tl(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return qa(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Ma(e).call(e,t)})),this}},{key:"to",value:function(t){return new kl(this._source,this._transformers,t)}}]),t}(),Dl=gl,xl=Math.max,Ol=Math.min,Ml=function(t,e){var i=na(t);return i<0?xl(i+e,0):Ol(i,e)},Tl=function(t){return function(e,i,n){var r,o=Os(e),s=oa(o.length),a=Ml(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Cl={includes:Tl(!0),indexOf:Tl(!1)},Pl={},El=Cl.indexOf,Al=function(t,e){var i,n=Os(t),r=0,o=[];for(i in n)!Ps(Pl,i)&&Ps(n,i)&&o.push(i);for(;e.length>r;)Ps(n,i=e[r++])&&(~El(o,i)||o.push(i));return o},Ll=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Il=Object.keys||function(t){return Al(t,Ll)},jl=vs?Object.defineProperties:function(t,e){Xs(t);for(var i,n=Il(e),r=n.length,o=0;r>o;)Zs.f(t,i=n[o++],e[i]);return t};Qs({target:"Object",stat:!0,forced:!vs,sham:!vs},{defineProperties:jl});var Yl=ds((function(t){var e=Vs.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Nl=Ll.concat("length","prototype"),Rl={f:Object.getOwnPropertyNames||function(t){return Al(t,Nl)}},Fl={f:Object.getOwnPropertySymbols},Hl=Aa("Reflect","ownKeys")||function(t){var e=Rl.f(Xs(t)),i=Fl.f;return i?e.concat(i(t)):e},Gl=function(t,e,i){var n=Ts(e);n in t?Zs.f(t,n,_s(0,i)):t[n]=i};Qs({target:"Object",stat:!0,sham:!vs},{getOwnPropertyDescriptors:function(t){for(var e,i,n=Os(t),r=Ys.f,o=Hl(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&Gl(s,e,i);return s}});var zl=Vs.Object.getOwnPropertyDescriptors,Wl={},Vl=Function.toString;"function"!=typeof ua.inspectSource&&(ua.inspectSource=function(t){return Vl.call(t)});var Ul,Bl,Xl,ql=ua.inspectSource,Zl=ps.WeakMap,Jl="function"==typeof Zl&&/native code/.test(ql(Zl)),$l=ha("keys"),Kl=function(t){return $l[t]||($l[t]=fa(t))},Ql=ps.WeakMap;if(Jl){var tu=new Ql,eu=tu.get,iu=tu.has,nu=tu.set;Ul=function(t,e){return nu.call(tu,t,e),e},Bl=function(t){return eu.call(tu,t)||{}},Xl=function(t){return iu.call(tu,t)}}else{var ru=Kl("state");Pl[ru]=!0,Ul=function(t,e){return Js(t,ru,e),e},Bl=function(t){return Ps(t,ru)?t[ru]:{}},Xl=function(t){return Ps(t,ru)}}var ou,su,au,lu={set:Ul,get:Bl,has:Xl,enforce:function(t){return Xl(t)?Bl(t):Ul(t,{})},getterFor:function(t){return function(e){var i;if(!Ms(e)||(i=Bl(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},uu=!ms((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),hu=Kl("IE_PROTO"),cu=Object.prototype,du=uu?Object.getPrototypeOf:function(t){return t=la(t),Ps(t,hu)?t[hu]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?cu:null},fu=(ba("iterator"),!1);[].keys&&("next"in(au=[].keys())?(su=du(du(au)))!==Object.prototype&&(ou=su):fu=!0),null==ou&&(ou={});var pu,mu={IteratorPrototype:ou,BUGGY_SAFARI_ITERATORS:fu},vu=Aa("document","documentElement"),gu=Kl("IE_PROTO"),yu=function(){},bu=function(t){return"<script>"+t+"<\/script>"},_u=function(){try{pu=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;_u=pu?function(t){t.write(bu("")),t.close();var e=t.parentWindow.Object;return t=null,e}(pu):((e=Ls("iframe")).style.display="none",vu.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(bu("document.F=Object")),t.close(),t.F);for(var i=Ll.length;i--;)delete _u.prototype[Ll[i]];return _u()};Pl[gu]=!0;var wu=Object.create||function(t,e){var i;return null!==t?(yu.prototype=Xs(t),i=new yu,yu.prototype=null,i[gu]=t):i=_u(),void 0===e?i:jl(i,e)},ku={};ku[ba("toStringTag")]="z";var Su="[object z]"===String(ku),Du=ba("toStringTag"),xu="Arguments"==ks(function(){return arguments}()),Ou=Su?ks:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Du))?i:xu?ks(e):"Object"==(n=ks(e))&&"function"==typeof e.callee?"Arguments":n},Mu=Su?{}.toString:function(){return"[object "+Ou(this)+"]"},Tu=Zs.f,Cu=ba("toStringTag"),Pu=function(t,e,i,n){if(t){var r=i?t:t.prototype;Ps(r,Cu)||Tu(r,Cu,{configurable:!0,value:e}),n&&!Su&&Js(r,"toString",Mu)}},Eu=mu.IteratorPrototype,Au=function(){return this},Lu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return Xs(i),function(t){if(!Ms(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),Iu=function(t,e,i,n){n&&n.enumerable?t[e]=i:Js(t,e,i)},ju=mu.IteratorPrototype,Yu=mu.BUGGY_SAFARI_ITERATORS,Nu=ba("iterator"),Ru=function(){return this},Fu=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=wu(Eu,{next:_s(1,i)}),Pu(t,n,!1,!0),Wl[n]=Au}(i,e,n);var a,l,u,h=function(t){if(t===r&&m)return m;if(!Yu&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,p=f[Nu]||f["@@iterator"]||r&&f[r],m=!Yu&&p||h(r),v="Array"==e&&f.entries||p;if(v&&(a=du(v.call(new t)),ju!==Object.prototype&&a.next&&(Pu(a,c,!0,!0),Wl[c]=Ru)),"values"==r&&p&&"values"!==p.name&&(d=!0,m=function(){return p.call(this)}),s&&f[Nu]!==m&&Js(f,Nu,m),Wl[e]=m,r)if(l={values:h("values"),keys:o?m:h("keys"),entries:h("entries")},s)for(u in l)!Yu&&!d&&u in f||Iu(f,u,l[u]);else Qs({target:e,proto:!0,forced:Yu||d},l);return l},Hu=lu.set,Gu=lu.getterFor("Array Iterator");Fu(Array,"Array",(function(t,e){Hu(this,{type:"Array Iterator",target:Os(t),index:0,kind:e})}),(function(){var t=Gu(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Wl.Arguments=Wl.Array;var zu=ba("toStringTag");for(var Wu in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Vu=ps[Wu],Uu=Vu&&Vu.prototype;Uu&&Ou(Uu)!==zu&&Js(Uu,zu,Wu),Wl[Wu]=Wl.Array}var Bu=Pa.forEach,Xu=il("forEach"),qu=za("forEach"),Zu=Xu&&qu?[].forEach:function(t){return Bu(this,t,arguments.length>1?arguments[1]:void 0)};Qs({target:"Array",proto:!0,forced:[].forEach!=Zu},{forEach:Zu});var Ju=Da("Array").forEach,$u=Array.prototype,Ku={DOMTokenList:!0,NodeList:!0},Qu=function(t){var e=t.forEach;return t===$u||t instanceof Array&&e===$u.forEach||Ku.hasOwnProperty(Ou(t))?Ju:e},th=Ys.f,eh=ms((function(){th(1)}));Qs({target:"Object",stat:!0,forced:!vs||eh,sham:!vs},{getOwnPropertyDescriptor:function(t,e){return th(Os(t),e)}});var ih=ds((function(t){var e=Vs.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),nh=Rl.f,rh={}.toString,oh="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sh={f:function(t){return oh&&"[object Window]"==rh.call(t)?function(t){try{return nh(t)}catch(t){return oh.slice()}}(t):nh(Os(t))}},ah={f:ba},lh=Zs.f,uh=function(t){var e=Vs.Symbol||(Vs.Symbol={});Ps(e,t)||lh(e,t,{value:ah.f(t)})},hh=Pa.forEach,ch=Kl("hidden"),dh=ba("toPrimitive"),fh=lu.set,ph=lu.getterFor("Symbol"),mh=Object.prototype,vh=ps.Symbol,gh=Aa("JSON","stringify"),yh=Ys.f,bh=Zs.f,_h=sh.f,wh=bs.f,kh=ha("symbols"),Sh=ha("op-symbols"),Dh=ha("string-to-symbol-registry"),xh=ha("symbol-to-string-registry"),Oh=ha("wks"),Mh=ps.QObject,Th=!Mh||!Mh.prototype||!Mh.prototype.findChild,Ch=vs&&ms((function(){return 7!=wu(bh({},"a",{get:function(){return bh(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=yh(mh,e);n&&delete mh[e],bh(t,e,i),n&&t!==mh&&bh(mh,e,n)}:bh,Ph=function(t,e){var i=kh[t]=wu(vh.prototype);return fh(i,{type:"Symbol",tag:t,description:e}),vs||(i.description=e),i},Eh=ma?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof vh},Ah=function(t,e,i){t===mh&&Ah(Sh,e,i),Xs(t);var n=Ts(e,!0);return Xs(i),Ps(kh,n)?(i.enumerable?(Ps(t,ch)&&t[ch][n]&&(t[ch][n]=!1),i=wu(i,{enumerable:_s(0,!1)})):(Ps(t,ch)||bh(t,ch,_s(1,{})),t[ch][n]=!0),Ch(t,n,i)):bh(t,n,i)},Lh=function(t,e){Xs(t);var i=Os(e),n=Il(i).concat(Nh(i));return hh(n,(function(e){vs&&!Ih.call(i,e)||Ah(t,e,i[e])})),t},Ih=function(t){var e=Ts(t,!0),i=wh.call(this,e);return!(this===mh&&Ps(kh,e)&&!Ps(Sh,e))&&(!(i||!Ps(this,e)||!Ps(kh,e)||Ps(this,ch)&&this[ch][e])||i)},jh=function(t,e){var i=Os(t),n=Ts(e,!0);if(i!==mh||!Ps(kh,n)||Ps(Sh,n)){var r=yh(i,n);return!r||!Ps(kh,n)||Ps(i,ch)&&i[ch][n]||(r.enumerable=!0),r}},Yh=function(t){var e=_h(Os(t)),i=[];return hh(e,(function(t){Ps(kh,t)||Ps(Pl,t)||i.push(t)})),i},Nh=function(t){var e=t===mh,i=_h(e?Sh:Os(t)),n=[];return hh(i,(function(t){!Ps(kh,t)||e&&!Ps(mh,t)||n.push(kh[t])})),n};if(pa||(Iu((vh=function(){if(this instanceof vh)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=fa(t),i=function(t){this===mh&&i.call(Sh,t),Ps(this,ch)&&Ps(this[ch],e)&&(this[ch][e]=!1),Ch(this,e,_s(1,t))};return vs&&Th&&Ch(mh,e,{configurable:!0,set:i}),Ph(e,t)}).prototype,"toString",(function(){return ph(this).tag})),Iu(vh,"withoutSetter",(function(t){return Ph(fa(t),t)})),bs.f=Ih,Zs.f=Ah,Ys.f=jh,Rl.f=sh.f=Yh,Fl.f=Nh,ah.f=function(t){return Ph(ba(t),t)},vs&&bh(vh.prototype,"description",{configurable:!0,get:function(){return ph(this).description}})),Qs({global:!0,wrap:!0,forced:!pa,sham:!pa},{Symbol:vh}),hh(Il(Oh),(function(t){uh(t)})),Qs({target:"Symbol",stat:!0,forced:!pa},{for:function(t){var e=String(t);if(Ps(Dh,e))return Dh[e];var i=vh(e);return Dh[e]=i,xh[i]=e,i},keyFor:function(t){if(!Eh(t))throw TypeError(t+" is not a symbol");if(Ps(xh,t))return xh[t]},useSetter:function(){Th=!0},useSimple:function(){Th=!1}}),Qs({target:"Object",stat:!0,forced:!pa,sham:!vs},{create:function(t,e){return void 0===e?wu(t):Lh(wu(t),e)},defineProperty:Ah,defineProperties:Lh,getOwnPropertyDescriptor:jh}),Qs({target:"Object",stat:!0,forced:!pa},{getOwnPropertyNames:Yh,getOwnPropertySymbols:Nh}),Qs({target:"Object",stat:!0,forced:ms((function(){Fl.f(1)}))},{getOwnPropertySymbols:function(t){return Fl.f(la(t))}}),gh){var Rh=!pa||ms((function(){var t=vh();return"[null]"!=gh([t])||"{}"!=gh({a:t})||"{}"!=gh(Object(t))}));Qs({target:"JSON",stat:!0,forced:Rh},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(Ms(e)||void 0!==t)&&!Eh(t))return ta(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Eh(e))return e}),r[1]=e,gh.apply(null,r)}})}vh.prototype[dh]||Js(vh.prototype,dh,vh.prototype.valueOf),Pu(vh,"Symbol"),Pl[ch]=!0;var Fh=Vs.Object.getOwnPropertySymbols,Hh=Da("Array").entries,Gh=Array.prototype,zh={DOMTokenList:!0,NodeList:!0},Wh=function(t){var e=t.entries;return t===Gh||t instanceof Array&&e===Gh.entries||zh.hasOwnProperty(Ou(t))?Hh:e},Vh=ds((function(t){var e=function(t){var e=Object.prototype,i=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,e,i,n){var r=e&&e.prototype instanceof h?e:h,o=Object.create(r.prototype),s=new k(n||[]);return o._invoke=function(t,e,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return D()}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var a=b(s,i);if(a){if(a===u)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var h=l(t,e,i);if("normal"===h.type){if(n=i.done?"completed":"suspendedYield",h.arg===u)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(n="completed",i.method="throw",i.arg=h.arg)}}}(t,i,s),o}function l(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var u={};function h(){}function c(){}function d(){}var f={};f[r]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(S([])));m&&m!==e&&i.call(m,r)&&(f=m);var v=d.prototype=h.prototype=Object.create(f);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function y(t){var e;this._invoke=function(n,r){function o(){return new Promise((function(e,o){!function e(n,r,o,s){var a=l(t[n],t,r);if("throw"!==a.type){var u=a.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?Promise.resolve(h.__await).then((function(t){e("next",t,o,s)}),(function(t){e("throw",t,o,s)})):Promise.resolve(h).then((function(t){u.value=t,o(u)}),(function(t){return e("throw",t,o,s)}))}s(a.arg)}(n,r,e,o)}))}return e=e?e.then(o,o):o()}}function b(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(i,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var r=n.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function S(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:D}}function D(){return{value:void 0,done:!0}}return c.prototype=v.constructor=d,d.constructor=c,d[s]=c.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===c||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},g(y.prototype),y.prototype[o]=function(){return this},t.AsyncIterator=y,t.async=function(e,i,n,r){var o=new y(a(e,i,n,r));return t.isGeneratorFunction(i)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},g(v),v[s]="Generator",v[r]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return s.type="throw",s.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),w(i),u}},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 r=n.arg;w(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:S(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));uh("iterator");var Uh=function(t){return function(e,i){var n,r,o=String(xs(e)),s=na(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Bh={codeAt:Uh(!1),charAt:Uh(!0)}.charAt,Xh=lu.set,qh=lu.getterFor("String Iterator");Fu(String,"String",(function(t){Xh(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=qh(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Bh(i,n),e.index+=t.length,{value:t,done:!1})}));var Zh=ah.f("iterator"),Jh=Zh,$h=Aa("JSON","stringify"),Kh=/[\uD800-\uDFFF]/g,Qh=/^[\uD800-\uDBFF]$/,tc=/^[\uDC00-\uDFFF]$/,ec=function(t,e,i){var n=i.charAt(e-1),r=i.charAt(e+1);return Qh.test(t)&&!tc.test(r)||tc.test(t)&&!Qh.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},ic=ms((function(){return'"\\udf06\\ud834"'!==$h("\udf06\ud834")||'"\\udead"'!==$h("\udead")}));$h&&Qs({target:"JSON",stat:!0,forced:ic},{stringify:function(t,e,i){var n=$h.apply(null,arguments);return"string"==typeof n?n.replace(Kh,ec):n}}),Vs.JSON||(Vs.JSON={stringify:JSON.stringify});var nc=function(t,e,i){return Vs.JSON.stringify.apply(null,arguments)};var rc=function(t,e,i){return e in t?yl(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},oc=Da("Array").values,sc=Array.prototype,ac={DOMTokenList:!0,NodeList:!0},lc=function(t){var e=t.values;return t===sc||t instanceof Array&&e===sc.values||ac.hasOwnProperty(Ou(t))?oc:e},uc=ba("iterator"),hc=function(t){if(null!=t)return t[uc]||t["@@iterator"]||Wl[Ou(t)]},cc=function(t){var e=hc(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return Xs(e.call(t))},dc=[],fc=dc.sort,pc=ms((function(){dc.sort(void 0)})),mc=ms((function(){dc.sort(null)})),vc=il("sort");Qs({target:"Array",proto:!0,forced:pc||!mc||!vc},{sort:function(t){return void 0===t?fc.call(la(this)):fc.call(la(this),Us(t))}});var gc=Da("Array").sort,yc=Array.prototype,bc=function(t){var e=t.sort;return t===yc||t instanceof Array&&e===yc.sort?gc:e},_c=Da("Array").keys,wc=Array.prototype,kc={DOMTokenList:!0,NodeList:!0},Sc=function(t){var e=t.keys;return t===wc||t instanceof Array&&e===wc.keys||kc.hasOwnProperty(Ou(t))?_c:e};Qs({target:"Array",stat:!0},{isArray:ta});var Dc=Vs.Array.isArray,xc=Dc;var Oc=function(t){if(xc(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}},Mc=function(t,e,i,n){try{return n?e(Xs(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&Xs(r.call(t)),e}},Tc=ba("iterator"),Cc=Array.prototype,Pc=function(t){return void 0!==t&&(Wl.Array===t||Cc[Tc]===t)},Ec=ba("iterator"),Ac=!1;try{var Lc=0,Ic={next:function(){return{done:!!Lc++}},return:function(){Ac=!0}};Ic[Ec]=function(){return this},Array.from(Ic,(function(){throw 2}))}catch(t){}var jc=!function(t,e){if(!e&&!Ac)return!1;var i=!1;try{var n={};n[Ec]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));Qs({target:"Array",stat:!0,forced:jc},{from:function(t){var e,i,n,r,o,s,a=la(t),l="function"==typeof this?this:Array,u=arguments.length,h=u>1?arguments[1]:void 0,c=void 0!==h,d=hc(a),f=0;if(c&&(h=Bs(h,u>2?arguments[2]:void 0,2)),null==d||l==Array&&Pc(d))for(i=new l(e=oa(a.length));e>f;f++)s=c?h(a[f],f):a[f],Gl(i,f,s);else for(o=(r=d.call(a)).next,i=new l;!(n=o.call(r)).done;f++)s=c?Mc(r,h,[n.value,f],!0):n.value,Gl(i,f,s);return i.length=f,i}});var Yc=Vs.Array.from,Nc=ba("iterator"),Rc=function(t){var e=Object(t);return void 0!==e[Nc]||"@@iterator"in e||Wl.hasOwnProperty(Ou(e))};var Fc=function(t){if(Rc(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Yc(t)};var Hc=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var Gc=function(t){return Oc(t)||Fc(t)||Hc()},zc=ba("isConcatSpreadable"),Wc=Na>=51||!ms((function(){var t=[];return t[zc]=!1,t.concat()[0]!==t})),Vc=Fa("concat"),Uc=function(t){if(!Ms(t))return!1;var e=t[zc];return void 0!==e?!!e:ta(t)};Qs({target:"Array",proto:!0,forced:!Wc||!Vc},{concat:function(t){var e,i,n,r,o,s=la(this),a=wa(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],Uc(o)){if(l+(r=oa(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&Gl(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Gl(a,l++,o)}return a.length=l,a}});var Bc=Da("Array").concat,Xc=Array.prototype,qc=function(t){var e=t.concat;return t===Xc||t instanceof Array&&e===Xc.concat?Bc:e},Zc=Object.assign,Jc=Object.defineProperty,$c=!Zc||ms((function(){if(vs&&1!==Zc({b:1},Zc(Jc({},"a",{enumerable:!0,get:function(){Jc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Zc({},t)[i]||"abcdefghijklmnopqrst"!=Il(Zc({},e)).join("")}))?function(t,e){for(var i=la(t),n=arguments.length,r=1,o=Fl.f,s=bs.f;n>r;)for(var a,l=Ds(arguments[r++]),u=o?Il(l).concat(o(l)):Il(l),h=u.length,c=0;h>c;)a=u[c++],vs&&!s.call(l,a)||(i[a]=l[a]);return i}:Zc;Qs({target:"Object",stat:!0,forced:Object.assign!==$c},{assign:$c});var Kc=Vs.Object.assign,Qc=Pa.some,td=il("some"),ed=za("some");Qs({target:"Array",proto:!0,forced:!td||!ed},{some:function(t){return Qc(this,t,arguments.length>1?arguments[1]:void 0)}});var id=Da("Array").some,nd=Array.prototype,rd=function(t){var e=t.some;return t===nd||t instanceof Array&&e===nd.some?id:e},od=Zh;uh("asyncIterator"),uh("hasInstance"),uh("isConcatSpreadable"),uh("match"),uh("matchAll"),uh("replace"),uh("search"),uh("species"),uh("split"),uh("toPrimitive"),uh("toStringTag"),uh("unscopables"),Pu(Math,"Math",!0),Pu(ps.JSON,"JSON",!0);var sd=Vs.Symbol;uh("asyncDispose"),uh("dispose"),uh("observable"),uh("patternMatch"),uh("replaceAll");var ad=sd,ld=ds((function(t){function e(i){return t.exports=e="function"==typeof ad&&"symbol"==typeof od?function(t){return typeof t}:function(t){return t&&"function"==typeof ad&&t.constructor===ad&&t!==ad.prototype?"symbol":typeof t},e(i)}t.exports=e})),ud=ms((function(){Il(1)}));Qs({target:"Object",stat:!0,forced:ud},{keys:function(t){return Il(la(t))}});var hd=Vs.Object.keys,cd=!ms((function(){return Object.isExtensible(Object.preventExtensions({}))})),dd=ds((function(t){var e=Zs.f,i=fa("meta"),n=0,r=Object.isExtensible||function(){return!0},o=function(t){e(t,i,{value:{objectID:"O"+ ++n,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!Ms(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Ps(t,i)){if(!r(t))return"F";if(!e)return"E";o(t)}return t[i].objectID},getWeakData:function(t,e){if(!Ps(t,i)){if(!r(t))return!0;if(!e)return!1;o(t)}return t[i].weakData},onFreeze:function(t){return cd&&s.REQUIRED&&r(t)&&!Ps(t,i)&&o(t),t}};Pl[i]=!0})),fd=(dd.REQUIRED,dd.fastKey,dd.getWeakData,dd.onFreeze,ds((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,i,n,r,o){var s,a,l,u,h,c,d,f=Bs(i,n,r?2:1);if(o)s=t;else{if("function"!=typeof(a=hc(t)))throw TypeError("Target is not iterable");if(Pc(a)){for(l=0,u=oa(t.length);u>l;l++)if((h=r?f(Xs(d=t[l])[0],d[1]):f(t[l]))&&h instanceof e)return h;return new e(!1)}s=a.call(t)}for(c=s.next;!(d=c.call(s)).done;)if("object"==typeof(h=Mc(s,f,d.value,r))&&h&&h instanceof e)return h;return new e(!1)}).stop=function(t){return new e(!0,t)}}))),pd=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},md=Zs.f,vd=Pa.forEach,gd=lu.set,yd=lu.getterFor,bd=function(t,e,i){var n,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=ps[t],l=a&&a.prototype,u={};if(vs&&"function"==typeof a&&(o||l.forEach&&!ms((function(){(new a).entries().next()})))){n=e((function(e,i){gd(pd(e,n,t),{type:t,collection:new a}),null!=i&&fd(i,e[s],e,r)}));var h=yd(t);vd(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;t in l&&(!o||"clear"!=t)&&Js(n.prototype,t,(function(i,n){var r=h(this).collection;if(!e&&o&&!Ms(i))return"get"==t&&void 0;var s=r[t](0===i?0:i,n);return e?this:s}))})),o||md(n.prototype,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else n=i.getConstructor(e,t,r,s),dd.REQUIRED=!0;return Pu(n,t,!1,!0),u[t]=n,Qs({global:!0,forced:!0},u),o||i.setStrong(n,t,r),n},_d=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:Iu(t,n,e[n],i);return t},wd=ba("species"),kd=Zs.f,Sd=dd.fastKey,Dd=lu.set,xd=lu.getterFor,Od={getConstructor:function(t,e,i,n){var r=t((function(t,o){pd(t,r,e),Dd(t,{type:e,index:wu(null),first:void 0,last:void 0,size:0}),vs||(t.size=0),null!=o&&fd(o,t[n],t,i)})),o=xd(e),s=function(t,e,i){var n,r,s=o(t),l=a(t,e);return l?l.value=i:(s.last=l={index:r=Sd(e,!0),key:e,value:i,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=l),n&&(n.next=l),vs?s.size++:t.size++,"F"!==r&&(s.index[r]=l)),t},a=function(t,e){var i,n=o(t),r=Sd(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==e)return i};return _d(r.prototype,{clear:function(){for(var t=o(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,vs?t.size=0:this.size=0},delete:function(t){var e=o(this),i=a(this,t);if(i){var n=i.next,r=i.previous;delete e.index[i.index],i.removed=!0,r&&(r.next=n),n&&(n.previous=r),e.first==i&&(e.first=n),e.last==i&&(e.last=r),vs?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=o(this),n=Bs(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),_d(r.prototype,i?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),vs&&kd(r.prototype,"size",{get:function(){return o(this).size}}),r},setStrong:function(t,e,i){var n=e+" Iterator",r=xd(e),o=xd(n);Fu(t,e,(function(t,e){Dd(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),function(t){var e=Aa(t),i=Zs.f;vs&&e&&!e[wd]&&i(e,wd,{configurable:!0,get:function(){return this}})}(e)}},Md=(bd("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Od),Vs.Map),Td=Dc;var Cd=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Pd=function(t,e){return!e||"object"!==ld(e)&&"function"!=typeof e?Cd(t):e},Ed=ms((function(){du(1)}));Qs({target:"Object",stat:!0,forced:Ed,sham:!uu},{getPrototypeOf:function(t){return du(la(t))}});var Ad=Vs.Object.getPrototypeOf;Qs({target:"Object",stat:!0},{setPrototypeOf:Lu});var Ld=Vs.Object.setPrototypeOf,Id=ds((function(t){function e(i){return t.exports=e=Ld?Ad:function(t){return t.__proto__||Ad(t)},e(i)}t.exports=e}));Qs({target:"Object",stat:!0,sham:!vs},{create:wu});var jd=Vs.Object,Yd=function(t,e){return jd.create(t,e)},Nd=Yd,Rd=ds((function(t){function e(i,n){return t.exports=e=Ld||function(t,e){return t.__proto__=e,t},e(i,n)}t.exports=e}));for(var Fd=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Nd(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rd(t,e)},Hd=[],Gd=0;Gd<256;Gd++)Hd[Gd]=(Gd+256).toString(16).substr(1);function zd(t,e){var i=e||0,n=Hd;return n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]}for(var Wd=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var e=new Array(16);return function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),e[i]=t>>>((3&i)<<3)&255;return e}}(),Vd=[],Ud=0;Ud<256;Ud++)Vd[Ud]=(Ud+256).toString(16).substr(1);var Bd=Wd();Bd[0],Bd[1],Bd[2],Bd[3],Bd[4],Bd[5],Bd[6],Bd[7];var Xd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qd(t,e){return t(e={exports:{}},e.exports),e.exports}var Zd=function(t){return t&&t.Math==Math&&t},Jd=Zd("object"==typeof globalThis&&globalThis)||Zd("object"==typeof window&&window)||Zd("object"==typeof self&&self)||Zd("object"==typeof Xd&&Xd)||Function("return this")(),$d=function(t){try{return!!t()}catch(t){return!0}},Kd=!$d((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),Qd={}.propertyIsEnumerable,tf=Object.getOwnPropertyDescriptor,ef={f:tf&&!Qd.call({1:2},1)?function(t){var e=tf(this,t);return!!e&&e.enumerable}:Qd},nf=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},rf={}.toString,of=function(t){return rf.call(t).slice(8,-1)},sf="".split,af=$d((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==of(t)?sf.call(t,""):Object(t)}:Object,lf=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},uf=function(t){return af(lf(t))},hf=function(t){return"object"==typeof t?null!==t:"function"==typeof t},cf=function(t,e){if(!hf(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!hf(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!hf(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!hf(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},df={}.hasOwnProperty,ff=function(t,e){return df.call(t,e)},pf=Jd.document,mf=hf(pf)&&hf(pf.createElement),vf=function(t){return mf?pf.createElement(t):{}},gf=!Kd&&!$d((function(){return 7!=Object.defineProperty(vf("div"),"a",{get:function(){return 7}}).a})),yf=Object.getOwnPropertyDescriptor,bf={f:Kd?yf:function(t,e){if(t=uf(t),e=cf(e,!0),gf)try{return yf(t,e)}catch(t){}if(ff(t,e))return nf(!ef.f.call(t,e),t[e])}},_f=/#|\.prototype\./,wf=function(t,e){var i=Sf[kf(t)];return i==xf||i!=Df&&("function"==typeof e?$d(e):!!e)},kf=wf.normalize=function(t){return String(t).replace(_f,".").toLowerCase()},Sf=wf.data={},Df=wf.NATIVE="N",xf=wf.POLYFILL="P",Of=wf,Mf={},Tf=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};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,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},Cf=function(t){if(!hf(t))throw TypeError(String(t)+" is not an object");return t},Pf=Object.defineProperty,Ef={f:Kd?Pf:function(t,e,i){if(Cf(t),e=cf(e,!0),Cf(i),gf)try{return Pf(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},Af=Kd?function(t,e,i){return Ef.f(t,e,nf(1,i))}:function(t,e,i){return t[e]=i,t},Lf=bf.f,If=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},jf=function(t,e){var i,n,r,o,s,a,l,u,h=t.target,c=t.global,d=t.stat,f=t.proto,p=c?Jd:d?Jd[h]:(Jd[h]||{}).prototype,m=c?Mf:Mf[h]||(Mf[h]={}),v=m.prototype;for(r in e)i=!Of(c?r:h+(d?".":"#")+r,t.forced)&&p&&ff(p,r),s=m[r],i&&(a=t.noTargetGet?(u=Lf(p,r))&&u.value:p[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(l=t.bind&&i?Tf(o,Jd):t.wrap&&i?If(o):f&&"function"==typeof o?Tf(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&Af(l,"sham",!0),m[r]=l,f&&(ff(Mf,n=h+"Prototype")||Af(Mf,n,{}),Mf[n][r]=o,t.real&&v&&!v[r]&&Af(v,r,o)))};jf({target:"Object",stat:!0,forced:!Kd,sham:!Kd},{defineProperty:Ef.f});qd((function(t){var e=Mf.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)}));var Yf=Math.ceil,Nf=Math.floor,Rf=function(t){return isNaN(t=+t)?0:(t>0?Nf:Yf)(t)},Ff=Math.min,Hf=function(t){return t>0?Ff(Rf(t),9007199254740991):0},Gf=Math.max,zf=Math.min,Wf=function(t,e){var i=Rf(t);return i<0?Gf(i+e,0):zf(i,e)},Vf=function(t){return function(e,i,n){var r,o=uf(e),s=Hf(o.length),a=Wf(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Uf={includes:Vf(!0),indexOf:Vf(!1)},Bf={},Xf=Uf.indexOf,qf=function(t,e){var i,n=uf(t),r=0,o=[];for(i in n)!ff(Bf,i)&&ff(n,i)&&o.push(i);for(;e.length>r;)ff(n,i=e[r++])&&(~Xf(o,i)||o.push(i));return o},Zf=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jf=Object.keys||function(t){return qf(t,Zf)},$f=Kd?Object.defineProperties:function(t,e){Cf(t);for(var i,n=Jf(e),r=n.length,o=0;r>o;)Ef.f(t,i=n[o++],e[i]);return t};jf({target:"Object",stat:!0,forced:!Kd,sham:!Kd},{defineProperties:$f});qd((function(t){var e=Mf.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)}));var Kf=function(t){return"function"==typeof t?t:void 0},Qf=function(t,e){return arguments.length<2?Kf(Mf[t])||Kf(Jd[t]):Mf[t]&&Mf[t][e]||Jd[t]&&Jd[t][e]},tp=Zf.concat("length","prototype"),ep={f:Object.getOwnPropertyNames||function(t){return qf(t,tp)}},ip={f:Object.getOwnPropertySymbols},np=Qf("Reflect","ownKeys")||function(t){var e=ep.f(Cf(t)),i=ip.f;return i?e.concat(i(t)):e},rp=function(t,e,i){var n=cf(e);n in t?Ef.f(t,n,nf(0,i)):t[n]=i};jf({target:"Object",stat:!0,sham:!Kd},{getOwnPropertyDescriptors:function(t){for(var e,i,n=uf(t),r=bf.f,o=np(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&rp(s,e,i);return s}});Mf.Object.getOwnPropertyDescriptors;var op=bf.f,sp=$d((function(){op(1)}));jf({target:"Object",stat:!0,forced:!Kd||sp,sham:!Kd},{getOwnPropertyDescriptor:function(t,e){return op(uf(t),e)}});qd((function(t){var e=Mf.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)}));var ap=!!Object.getOwnPropertySymbols&&!$d((function(){return!String(Symbol())})),lp=Array.isArray||function(t){return"Array"==of(t)},up=function(t){return Object(lf(t))},hp=Qf("document","documentElement"),cp=Jd["__core-js_shared__"]||function(t,e){try{Af(Jd,t,e)}catch(i){Jd[t]=e}return e}("__core-js_shared__",{}),dp=qd((function(t){(t.exports=function(t,e){return cp[t]||(cp[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.1",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),fp=0,pp=Math.random(),mp=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++fp+pp).toString(36)},vp=dp("keys"),gp=function(t){return vp[t]||(vp[t]=mp(t))},yp=gp("IE_PROTO"),bp=function(){},_p=function(){var t,e=vf("iframe"),i=Zf.length;for(e.style.display="none",hp.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),_p=t.F;i--;)delete _p.prototype[Zf[i]];return _p()},wp=Object.create||function(t,e){var i;return null!==t?(bp.prototype=Cf(t),i=new bp,bp.prototype=null,i[yp]=t):i=_p(),void 0===e?i:$f(i,e)};Bf[yp]=!0;var kp=ep.f,Sp={}.toString,Dp="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xp={f:function(t){return Dp&&"[object Window]"==Sp.call(t)?function(t){try{return kp(t)}catch(t){return Dp.slice()}}(t):kp(uf(t))}},Op=function(t,e,i,n){n&&n.enumerable?t[e]=i:Af(t,e,i)},Mp=Jd.Symbol,Tp=dp("wks"),Cp=function(t){return Tp[t]||(Tp[t]=ap&&Mp[t]||(ap?Mp:mp)("Symbol."+t))},Pp={f:Cp},Ep=Ef.f,Ap=function(t){var e=Mf.Symbol||(Mf.Symbol={});ff(e,t)||Ep(e,t,{value:Pp.f(t)})},Lp=Cp("toStringTag"),Ip="Arguments"==of(function(){return arguments}()),jp=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Lp))?i:Ip?of(e):"Object"==(n=of(e))&&"function"==typeof e.callee?"Arguments":n},Yp={};Yp[Cp("toStringTag")]="z";var Np,Rp,Fp,Hp="[object z]"!==String(Yp)?function(){return"[object "+jp(this)+"]"}:Yp.toString,Gp=Ef.f,zp=Cp("toStringTag"),Wp=Hp!=={}.toString,Vp=function(t,e,i,n){if(t){var r=i?t:t.prototype;ff(r,zp)||Gp(r,zp,{configurable:!0,value:e}),n&&Wp&&Af(r,"toString",Hp)}},Up=dp("native-function-to-string",Function.toString),Bp=Jd.WeakMap,Xp="function"==typeof Bp&&/native code/.test(Up.call(Bp)),qp=Jd.WeakMap;if(Xp){var Zp=new qp,Jp=Zp.get,$p=Zp.has,Kp=Zp.set;Np=function(t,e){return Kp.call(Zp,t,e),e},Rp=function(t){return Jp.call(Zp,t)||{}},Fp=function(t){return $p.call(Zp,t)}}else{var Qp=gp("state");Bf[Qp]=!0,Np=function(t,e){return Af(t,Qp,e),e},Rp=function(t){return ff(t,Qp)?t[Qp]:{}},Fp=function(t){return ff(t,Qp)}}var tm={set:Np,get:Rp,has:Fp,enforce:function(t){return Fp(t)?Rp(t):Np(t,{})},getterFor:function(t){return function(e){var i;if(!hf(e)||(i=Rp(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},em=Cp("species"),im=function(t,e){var i;return lp(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!lp(i.prototype)?hf(i)&&null===(i=i[em])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},nm=[].push,rm=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=up(a),p=af(f),m=Tf(l,u,3),v=Hf(p.length),g=0,y=h||im,b=e?y(a,v):i?y(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)b[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:nm.call(b,c)}else if(r)return!1;return o?-1:n||r?r:b}},om={forEach:rm(0),map:rm(1),filter:rm(2),some:rm(3),every:rm(4),find:rm(5),findIndex:rm(6)},sm=om.forEach,am=gp("hidden"),lm=Cp("toPrimitive"),um=tm.set,hm=tm.getterFor("Symbol"),cm=Object.prototype,dm=Jd.Symbol,fm=Qf("JSON","stringify"),pm=bf.f,mm=Ef.f,vm=xp.f,gm=ef.f,ym=dp("symbols"),bm=dp("op-symbols"),_m=dp("string-to-symbol-registry"),wm=dp("symbol-to-string-registry"),km=dp("wks"),Sm=Jd.QObject,Dm=!Sm||!Sm.prototype||!Sm.prototype.findChild,xm=Kd&&$d((function(){return 7!=wp(mm({},"a",{get:function(){return mm(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=pm(cm,e);n&&delete cm[e],mm(t,e,i),n&&t!==cm&&mm(cm,e,n)}:mm,Om=function(t,e){var i=ym[t]=wp(dm.prototype);return um(i,{type:"Symbol",tag:t,description:e}),Kd||(i.description=e),i},Mm=ap&&"symbol"==typeof dm.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof dm},Tm=function(t,e,i){t===cm&&Tm(bm,e,i),Cf(t);var n=cf(e,!0);return Cf(i),ff(ym,n)?(i.enumerable?(ff(t,am)&&t[am][n]&&(t[am][n]=!1),i=wp(i,{enumerable:nf(0,!1)})):(ff(t,am)||mm(t,am,nf(1,{})),t[am][n]=!0),xm(t,n,i)):mm(t,n,i)},Cm=function(t,e){Cf(t);var i=uf(e),n=Jf(i).concat(Lm(i));return sm(n,(function(e){Kd&&!Pm.call(i,e)||Tm(t,e,i[e])})),t},Pm=function(t){var e=cf(t,!0),i=gm.call(this,e);return!(this===cm&&ff(ym,e)&&!ff(bm,e))&&(!(i||!ff(this,e)||!ff(ym,e)||ff(this,am)&&this[am][e])||i)},Em=function(t,e){var i=uf(t),n=cf(e,!0);if(i!==cm||!ff(ym,n)||ff(bm,n)){var r=pm(i,n);return!r||!ff(ym,n)||ff(i,am)&&i[am][n]||(r.enumerable=!0),r}},Am=function(t){var e=vm(uf(t)),i=[];return sm(e,(function(t){ff(ym,t)||ff(Bf,t)||i.push(t)})),i},Lm=function(t){var e=t===cm,i=vm(e?bm:uf(t)),n=[];return sm(i,(function(t){!ff(ym,t)||e&&!ff(cm,t)||n.push(ym[t])})),n};if(ap||(Op((dm=function(){if(this instanceof dm)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=mp(t),i=function(t){this===cm&&i.call(bm,t),ff(this,am)&&ff(this[am],e)&&(this[am][e]=!1),xm(this,e,nf(1,t))};return Kd&&Dm&&xm(cm,e,{configurable:!0,set:i}),Om(e,t)}).prototype,"toString",(function(){return hm(this).tag})),ef.f=Pm,Ef.f=Tm,bf.f=Em,ep.f=xp.f=Am,ip.f=Lm,Kd&&mm(dm.prototype,"description",{configurable:!0,get:function(){return hm(this).description}}),Pp.f=function(t){return Om(Cp(t),t)}),jf({global:!0,wrap:!0,forced:!ap,sham:!ap},{Symbol:dm}),sm(Jf(km),(function(t){Ap(t)})),jf({target:"Symbol",stat:!0,forced:!ap},{for:function(t){var e=String(t);if(ff(_m,e))return _m[e];var i=dm(e);return _m[e]=i,wm[i]=e,i},keyFor:function(t){if(!Mm(t))throw TypeError(t+" is not a symbol");if(ff(wm,t))return wm[t]},useSetter:function(){Dm=!0},useSimple:function(){Dm=!1}}),jf({target:"Object",stat:!0,forced:!ap,sham:!Kd},{create:function(t,e){return void 0===e?wp(t):Cm(wp(t),e)},defineProperty:Tm,defineProperties:Cm,getOwnPropertyDescriptor:Em}),jf({target:"Object",stat:!0,forced:!ap},{getOwnPropertyNames:Am,getOwnPropertySymbols:Lm}),jf({target:"Object",stat:!0,forced:$d((function(){ip.f(1)}))},{getOwnPropertySymbols:function(t){return ip.f(up(t))}}),fm){var Im=!ap||$d((function(){var t=dm();return"[null]"!=fm([t])||"{}"!=fm({a:t})||"{}"!=fm(Object(t))}));jf({target:"JSON",stat:!0,forced:Im},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(hf(e)||void 0!==t)&&!Mm(t))return lp(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Mm(e))return e}),r[1]=e,fm.apply(null,r)}})}dm.prototype[lm]||Af(dm.prototype,lm,dm.prototype.valueOf),Vp(dm,"Symbol"),Bf[am]=!0;Mf.Object.getOwnPropertySymbols;var jm,Ym,Nm,Rm={},Fm=!$d((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Hm=gp("IE_PROTO"),Gm=Object.prototype,zm=Fm?Object.getPrototypeOf:function(t){return t=up(t),ff(t,Hm)?t[Hm]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Gm:null},Wm=(Cp("iterator"),!1);[].keys&&("next"in(Nm=[].keys())?(Ym=zm(zm(Nm)))!==Object.prototype&&(jm=Ym):Wm=!0),null==jm&&(jm={});var Vm={IteratorPrototype:jm,BUGGY_SAFARI_ITERATORS:Wm},Um=Vm.IteratorPrototype,Bm=function(){return this},Xm=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}}(),Vm.IteratorPrototype),qm=Vm.BUGGY_SAFARI_ITERATORS,Zm=Cp("iterator"),Jm=function(){return this},$m=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=wp(Um,{next:nf(1,i)}),Vp(t,n,!1,!0),Rm[n]=Bm}(i,e,n);var a,l,u,h=function(t){if(t===r&&m)return m;if(!qm&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,p=f[Zm]||f["@@iterator"]||r&&f[r],m=!qm&&p||h(r),v="Array"==e&&f.entries||p;if(v&&(a=zm(v.call(new t)),Xm!==Object.prototype&&a.next&&(Vp(a,c,!0,!0),Rm[c]=Jm)),"values"==r&&p&&"values"!==p.name&&(d=!0,m=function(){return p.call(this)}),s&&f[Zm]!==m&&Af(f,Zm,m),Rm[e]=m,r)if(l={values:h("values"),keys:o?m:h("keys"),entries:h("entries")},s)for(u in l)!qm&&!d&&u in f||Op(f,u,l[u]);else jf({target:e,proto:!0,forced:qm||d},l);return l},Km=tm.set,Qm=tm.getterFor("Array Iterator");$m(Array,"Array",(function(t,e){Km(this,{type:"Array Iterator",target:uf(t),index:0,kind:e})}),(function(){var t=Qm(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Rm.Arguments=Rm.Array;var tv=Cp("toStringTag");for(var ev in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var iv=Jd[ev],nv=iv&&iv.prototype;nv&&!nv[tv]&&Af(nv,tv,ev),Rm[ev]=Rm.Array}var rv=function(t){return function(e,i){var n,r,o=String(lf(e)),s=Rf(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},ov={codeAt:rv(!1),charAt:rv(!0)}.charAt,sv=tm.set,av=tm.getterFor("String Iterator");$m(String,"String",(function(t){sv(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=av(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=ov(i,n),e.index+=t.length,{value:t,done:!1})}));var lv=Cp("iterator"),uv=function(t){if(null!=t)return t[lv]||t["@@iterator"]||Rm[jp(t)]};jf({target:"Object",stat:!0,sham:!Kd},{create:wp});var hv=$d((function(){Jf(1)}));jf({target:"Object",stat:!0,forced:hv},{keys:function(t){return Jf(up(t))}});Mf.Object.keys;var cv="\t\n\v\f\r \u2028\u2029\ufeff",dv="["+cv+"]",fv=RegExp("^"+dv+dv+"*"),pv=RegExp(dv+dv+"*$"),mv=function(t){return function(e){var i=String(lf(e));return 1&t&&(i=i.replace(fv,"")),2&t&&(i=i.replace(pv,"")),i}},vv={start:mv(1),end:mv(2),trim:mv(3)},gv=vv.trim;jf({target:"String",proto:!0,forced:function(t){return $d((function(){return!!cv[t]()||"
"!="
"[t]()||cv[t].name!==t}))}("trim")},{trim:function(){return gv(this)}});var yv=function(t){return Mf[t+"Prototype"]},bv=(yv("String").trim,function(t,e){var i=[][t];return!i||!$d((function(){i.call(null,e||function(){throw 1},1)}))}),_v=om.forEach,wv=bv("forEach")?function(t){return _v(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;jf({target:"Array",proto:!0,forced:[].forEach!=wv},{forEach:wv});yv("Array").forEach;var kv,Sv,Dv=Qf("navigator","userAgent")||"",xv=Jd.process,Ov=xv&&xv.versions,Mv=Ov&&Ov.v8;Mv?Sv=(kv=Mv.split("."))[0]+kv[1]:Dv&&(!(kv=Dv.match(/Edge\/(\d+)/))||kv[1]>=74)&&(kv=Dv.match(/Chrome\/(\d+)/))&&(Sv=kv[1]);var Tv=Sv&&+Sv,Cv=Cp("species"),Pv=function(t){return Tv>=51||!$d((function(){var e=[];return(e.constructor={})[Cv]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ev=om.map;jf({target:"Array",proto:!0,forced:!Pv("map")},{map:function(t){return Ev(this,t,arguments.length>1?arguments[1]:void 0)}});yv("Array").map;var Av=vv.trim,Lv=Jd.parseInt,Iv=/^[+-]?0[Xx]/,jv=8!==Lv(cv+"08")||22!==Lv(cv+"0x16")?function(t,e){var i=Av(String(t));return Lv(i,e>>>0||(Iv.test(i)?16:10))}:Lv;jf({global:!0,forced:parseInt!=jv},{parseInt:jv});var Yv=ef.f,Nv=function(t){return function(e){for(var i,n=uf(e),r=Jf(n),o=r.length,s=0,a=[];o>s;)i=r[s++],Kd&&!Yv.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Rv={entries:Nv(!0),values:Nv(!1)}.values;jf({target:"Object",stat:!0},{values:function(t){return Rv(t)}});Mf.Object.values;var Fv=om.filter;jf({target:"Array",proto:!0,forced:!Pv("filter")},{filter:function(t){return Fv(this,t,arguments.length>1?arguments[1]:void 0)}});yv("Array").filter;var Hv=Cp("isConcatSpreadable"),Gv=Tv>=51||!$d((function(){var t=[];return t[Hv]=!1,t.concat()[0]!==t})),zv=Pv("concat"),Wv=function(t){if(!hf(t))return!1;var e=t[Hv];return void 0!==e?!!e:lp(t)};jf({target:"Array",proto:!0,forced:!Gv||!zv},{concat:function(t){var e,i,n,r,o,s=up(this),a=im(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],Wv(o)){if(l+(r=Hf(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&rp(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");rp(a,l++,o)}return a.length=l,a}});yv("Array").concat;jf({target:"Array",stat:!0},{isArray:lp});var Vv=Mf.Array.isArray,Uv=function(t,e,i,n){try{return n?e(Cf(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&Cf(r.call(t)),e}},Bv=Cp("iterator"),Xv=Array.prototype,qv=function(t){return void 0!==t&&(Rm.Array===t||Xv[Bv]===t)},Zv=Cp("iterator"),Jv=!1;try{var $v=0,Kv={next:function(){return{done:!!$v++}},return:function(){Jv=!0}};Kv[Zv]=function(){return this},Array.from(Kv,(function(){throw 2}))}catch(t){}var Qv=!function(t,e){if(!e&&!Jv)return!1;var i=!1;try{var n={};n[Zv]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));jf({target:"Array",stat:!0,forced:Qv},{from:function(t){var e,i,n,r,o,s=up(t),a="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,c=0,d=uv(s);if(h&&(u=Tf(u,l>2?arguments[2]:void 0,2)),null==d||a==Array&&qv(d))for(i=new a(e=Hf(s.length));e>c;c++)rp(i,c,h?u(s[c],c):s[c]);else for(o=(r=d.call(s)).next,i=new a;!(n=o.call(r)).done;c++)rp(i,c,h?Uv(r,u,[n.value,c],!0):n.value);return i.length=c,i}});Mf.Array.from,Cp("iterator");var tg=Cp("species"),eg=[].slice,ig=Math.max;jf({target:"Array",proto:!0,forced:!Pv("slice")},{slice:function(t,e){var i,n,r,o=uf(this),s=Hf(o.length),a=Wf(t,s),l=Wf(void 0===e?s:e,s);if(lp(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!lp(i.prototype)?hf(i)&&null===(i=i[tg])&&(i=void 0):i=void 0,i===Array||void 0===i))return eg.call(o,a,l);for(n=new(void 0===i?Array:i)(ig(l-a,0)),r=0;a<l;a++,r++)a in o&&rp(n,r,o[a]);return n.length=r,n}});var ng=yv("Array").slice,rg=Array.prototype,og=function(t){var e=t.slice;return t===rg||t instanceof Array&&e===rg.slice?ng:e},sg=$d((function(){zm(1)}));jf({target:"Object",stat:!0,forced:sg,sham:!Fm},{getPrototypeOf:function(t){return zm(up(t))}});var ag=Mf.Object.getPrototypeOf,lg=Uf.indexOf,ug=[].indexOf,hg=!!ug&&1/[1].indexOf(1,-0)<0,cg=bv("indexOf");jf({target:"Array",proto:!0,forced:hg||cg},{indexOf:function(t){return hg?ug.apply(this,arguments)||0:lg(this,t,arguments.length>1?arguments[1]:void 0)}});yv("Array").indexOf;var dg=Vv,fg=Object.assign,pg=!fg||$d((function(){var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=fg({},t)[i]||"abcdefghijklmnopqrst"!=Jf(fg({},e)).join("")}))?function(t,e){for(var i=up(t),n=arguments.length,r=1,o=ip.f,s=ef.f;n>r;)for(var a,l=af(arguments[r++]),u=o?Jf(l).concat(o(l)):Jf(l),h=u.length,c=0;h>c;)a=u[c++],Kd&&!s.call(l,a)||(i[a]=l[a]);return i}:fg;jf({target:"Object",stat:!0,forced:Object.assign!==pg},{assign:pg});Mf.Object.assign;Ap("iterator");var mg=Pp.f("iterator");Ap("asyncIterator"),Ap("hasInstance"),Ap("isConcatSpreadable"),Ap("match"),Ap("matchAll"),Ap("replace"),Ap("search"),Ap("species"),Ap("split"),Ap("toPrimitive"),Ap("toStringTag"),Ap("unscopables"),Vp(Math,"Math",!0),Vp(Jd.JSON,"JSON",!0);var vg=Mf.Symbol;Ap("asyncDispose"),Ap("dispose"),Ap("observable"),Ap("patternMatch"),Ap("replaceAll");for(var gg=vg,yg=qd((function(t){function e(t){return(e="function"==typeof gg&&"symbol"==typeof mg?function(t){return typeof t}:function(t){return t&&"function"==typeof gg&&t.constructor===gg&&t!==gg.prototype?"symbol":typeof t})(t)}function i(n){return"function"==typeof gg&&"symbol"===e(mg)?t.exports=i=function(t){return e(t)}:t.exports=i=function(t){return t&&"function"==typeof gg&&t.constructor===gg&&t!==gg.prototype?"symbol":e(t)},i(n)}t.exports=i})),bg=[],_g=0;_g<256;_g++)bg[_g]=(_g+256).toString(16).substr(1);for(var wg=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var e=new Array(16);return function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),e[i]=t>>>((3&i)<<3)&255;return e}}(),kg=[],Sg=0;Sg<256;Sg++)kg[Sg]=(Sg+256).toString(16).substr(1);var Dg=wg();Dg[0],Dg[1],Dg[2],Dg[3],Dg[4],Dg[5],Dg[6],Dg[7];function xg(t){return t instanceof Number||"number"==typeof t}function Og(t){return t instanceof String||"string"==typeof t}function Mg(t,e,i,n){var r=!1;!0===n&&(r=null===e[i]&&void 0!==t[i]),r?delete t[i]:t[i]=e[i]}function Tg(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===i)if("object"===yg(e[r])&&null!==e[r]&&ag(e[r])===Object.prototype)void 0===t[r]?t[r]=Tg({},e[r],i):"object"===yg(t[r])&&null!==t[r]&&ag(t[r])===Object.prototype?Tg(t[r],e[r],i):Mg(t,e,r,n);else if(dg(e[r])){var o;t[r]=og(o=e[r]).call(o)}else Mg(t,e,r,n);return t}function Cg(t){var e=yg(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":dg(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}var Pg=ds((function(t,e){t.exports=function(){var e,i;function n(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var i in e)h(e,i)&&(t[i]=e[i]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,i,n){return Se(t,e,i,n,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=f(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=d(NaN);return null!=t?c(f(e),t):f(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var v=n.momentProperties=[];function g(t,e){var i,n,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),v.length>0)for(i=0;i<v.length;i++)s(r=e[n=v[i]])||(t[n]=r);return t}var y=!1;function b(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function _(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=w(e)),i}function S(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&k(t[n])!==k(e[n]))&&s++;return s+o}function D(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var i=!0;return c((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(var a in r+="\n["+s+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}D(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var O,M={};function T(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),M[t]||(D(e),M[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var i,n=c({},t);for(i in e)h(e,i)&&(o(t[i])&&o(e[i])?(n[i]={},c(n[i],t[i]),c(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)h(t,i)&&!h(e,i)&&o(t[i])&&(n[i]=c({},n[i]));return n}function E(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)h(t,e)&&i.push(e);return i};var A={};function L(t,e){var i=t.toLowerCase();A[i]=A[i+"s"]=A[e]=t}function I(t){return"string"==typeof t?A[t]||A[t.toLowerCase()]:void 0}function j(t){var e,i,n={};for(i in t)h(t,i)&&(e=I(i))&&(n[e]=t[i]);return n}var Y={};function N(t,e){Y[t]=e}function R(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},z={};function W(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(z[t]=r),e&&(z[e[0]]=function(){return R(r.apply(this,arguments),e[1],e[2])}),i&&(z[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),G[e]=G[e]||function(t){var e,i,n,r=t.match(F);for(e=0,i=r.length;e<i;e++)z[r[e]]?r[e]=z[r[e]]:r[e]=(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=C(r[n])?r[n].call(e,t):r[n];return o}}(e),G[e](t)):t.localeData().invalidDate()}function U(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;i>=0&&H.test(t);)t=t.replace(H,n),H.lastIndex=0,i-=1;return t}var B=/\d/,X=/\d\d/,q=/\d{3}/,Z=/\d{4}/,J=/[+-]?\d{6}/,$=/\d\d?/,K=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,it=/[+-]?\d{1,6}/,nt=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lt={};function ut(t,e,i){lt[t]=C(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(lt,t)?lt[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),a(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i<t.length;i++)dt[t[i]]=n}function pt(t,e){ft(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function mt(t,e,i){null!=e&&h(dt,t)&&dt[t](e,i._a,i,t)}function vt(t){return gt(t)?366:365}function gt(t){return t%4==0&&t%100!=0||t%400==0}W("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),W(0,["YY",2],0,(function(){return this.year()%100})),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),L("year","y"),N("year",1),ut("Y",rt),ut("YY",$,X),ut("YYYY",et,Z),ut("YYYYY",it,J),ut("YYYYYY",it,J),ft(["YYYYY","YYYYYY"],0),ft("YYYY",(function(t,e){e[0]=2===t.length?n.parseTwoDigitYear(t):k(t)})),ft("YY",(function(t,e){e[0]=n.parseTwoDigitYear(t)})),ft("Y",(function(t,e){e[0]=parseInt(t,10)})),n.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var yt,bt=_t("FullYear",!0);function _t(t,e){return function(i){return null!=i?(kt(this,t,i),n.updateOffset(this,e),this):wt(this,t)}}function wt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function kt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&>(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),St(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function St(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?gt(t)?29:28:31-n%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},W("M",["MM",2],"Mo",(function(){return this.month()+1})),W("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),W("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),L("month","M"),N("month",8),ut("M",$),ut("MM",$,X),ut("MMM",(function(t,e){return e.monthsShortRegex(t)})),ut("MMMM",(function(t,e){return e.monthsRegex(t)})),ft(["M","MM"],(function(t,e){e[1]=k(t)-1})),ft(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:f(i).invalidMonth=t}));var Dt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Mt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=yt.call(this._shortMonthsParse,s))?r:null:-1!==(r=yt.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=yt.call(this._shortMonthsParse,s))?r:-1!==(r=yt.call(this._longMonthsParse,s))?r:null:-1!==(r=yt.call(this._longMonthsParse,s))?r:-1!==(r=yt.call(this._shortMonthsParse,s))?r:null}function Tt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!a(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),St(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Ct(t){return null!=t?(Tt(this,t),n.updateOffset(this,!0),this):wt(this,"Month")}var Pt=at,Et=at;function At(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],o=[];for(e=0;e<12;e++)i=d([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)n[e]=ct(n[e]),r[e]=ct(r[e]);for(e=0;e<24;e++)o[e]=ct(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Lt(t,e,i,n,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,r,o,s),a}function It(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function jt(t,e,i){var n=7+e-i;return-(7+It(t,0,n).getUTCDay()-e)%7+n-1}function Yt(t,e,i,n,r){var o,s,a=1+7*(e-1)+(7+i-n)%7+jt(t,n,r);return a<=0?s=vt(o=t-1)+a:a>vt(t)?(o=t+1,s=a-vt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Nt(t,e,i){var n,r,o=jt(t.year(),e,i),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?n=s+Rt(r=t.year()-1,e,i):s>Rt(t.year(),e,i)?(n=s-Rt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=s),{week:n,year:r}}function Rt(t,e,i){var n=jt(t,e,i),r=jt(t+1,e,i);return(vt(t)-n+r)/7}function Ft(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),N("week",5),N("isoWeek",5),ut("w",$),ut("ww",$,X),ut("W",$),ut("WW",$,X),pt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=k(t)})),W("d",0,"do","day"),W("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),W("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),W("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),ut("d",$),ut("e",$),ut("E",$),ut("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ut("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ut("dddd",(function(t,e){return e.weekdaysRegex(t)})),pt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:f(i).invalidWeekday=t})),pt(["d","e","E"],(function(t,e,i,n){e[n]=k(t)}));var Ht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Wt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,s))?r:-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:-1!==(r=yt.call(this._weekdaysParse,s))?r:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:-1!==(r=yt.call(this._weekdaysParse,s))?r:-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:null}var Vt=at,Ut=at,Bt=at;function Xt(){function t(t,e){return e.length-t.length}var e,i,n,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)i=d([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),o=this.weekdays(i,""),s.push(n),a.push(r),l.push(o),u.push(n),u.push(r),u.push(o);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=ct(a[e]),l[e]=ct(l[e]),u[e]=ct(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function qt(){return this.hours()%12||12}function Zt(t,e){W(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Jt(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,qt),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+qt.apply(this)+R(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+qt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Zt("a",!0),Zt("A",!1),L("hour","h"),N("hour",13),ut("a",Jt),ut("A",Jt),ut("H",$),ut("h",$),ut("k",$),ut("HH",$,X),ut("hh",$,X),ut("kk",$,X),ut("hmm",K),ut("hmmss",Q),ut("Hmm",K),ut("Hmmss",Q),ft(["H","HH"],3),ft(["k","kk"],(function(t,e,i){var n=k(t);e[3]=24===n?0:n})),ft(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),ft(["h","hh"],(function(t,e,i){e[3]=k(t),f(i).bigHour=!0})),ft("hmm",(function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n)),f(i).bigHour=!0})),ft("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(r)),f(i).bigHour=!0})),ft("Hmm",(function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n))})),ft("Hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(r))}));var $t,Kt=_t("Hours",!0),Qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Ht,weekdaysMin:zt,weekdaysShort:Gt,meridiemParse:/[ap]\.?m?\.?/i},te={},ee={};function ie(t){return t?t.toLowerCase().replace("_","-"):t}function ne(e){var i=null;if(!te[e]&&t&&t.exports)try{i=$t._abbr,cs(),re(i)}catch(t){}return te[e]}function re(t,e){var i;return t&&((i=s(e)?se(t):oe(t,e))?$t=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),$t._abbr}function oe(t,e){if(null!==e){var i,n=Qt;if(e.abbr=t,null!=te[t])T("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=te[t]._config;else if(null!=e.parentLocale)if(null!=te[e.parentLocale])n=te[e.parentLocale]._config;else{if(null==(i=ne(e.parentLocale)))return ee[e.parentLocale]||(ee[e.parentLocale]=[]),ee[e.parentLocale].push({name:t,config:e}),null;n=i._config}return te[t]=new E(P(n,e)),ee[t]&&ee[t].forEach((function(t){oe(t.name,t.config)})),re(t),te[t]}return delete te[t],null}function se(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return $t;if(!r(t)){if(e=ne(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=ie(t[o]).split("-")).length,i=(i=ie(t[o+1]))?i.split("-"):null;e>0;){if(n=ne(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&S(r,i,!0)>=e-1)break;e--}o++}return $t}(t)}function ae(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>St(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function le(t,e,i){return null!=t?t:null!=e?e:i}function ue(t){var e,i,r,o,s,a=[];if(!t._d){for(r=function(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,r,o,s,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,i=le(e.GG,t._a[0],Nt(De(),1,4).year),n=le(e.W,1),((r=le(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var u=Nt(De(),o,s);i=le(e.gg,t._a[0],u.year),n=le(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}n<1||n>Rt(i,o,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=Yt(i,n,r,o,s),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=le(t._a[0],r[0]),(t._dayOfYear>vt(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=It(s,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?It:Lt).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var he=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,de=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],me=/^\/?Date\((\-?\d+)/i;function ve(t){var e,i,n,r,o,s,a=t._i,l=he.exec(a)||ce.exec(a);if(l){for(f(t).iso=!0,e=0,i=fe.length;e<i;e++)if(fe[e][1].exec(l[1])){r=fe[e][0],n=!1!==fe[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=pe.length;e<i;e++)if(pe[e][1].exec(l[3])){o=(l[2]||" ")+pe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!de.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),we(t)}else t._isValid=!1}var ge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ye(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var be={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _e(t){var e,i,n,r,o,s,a,l=ge.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var u=(e=l[4],i=l[3],n=l[2],r=l[5],o=l[6],s=l[7],a=[ye(e),Ot.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(o,10)],s&&a.push(parseInt(s,10)),a);if(!function(t,e,i){return!t||Gt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(i).weekdayMismatch=!0,i._isValid=!1,!1)}(l[1],u,t))return;t._a=u,t._tzm=function(t,e,i){if(t)return be[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(l[8],l[9],l[10]),t._d=It.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function we(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],f(t).empty=!0;var e,i,r,o,s,a=""+t._i,l=a.length,u=0;for(r=U(t._f,t._locale).match(F)||[],e=0;e<r.length;e++)o=r[e],(i=(a.match(ht(o,t))||[])[0])&&((s=a.substr(0,a.indexOf(i))).length>0&&f(t).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),z[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),mt(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=l-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e: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[3],t._meridiem),ue(t),ae(t)}else _e(t);else ve(t)}function ke(t){var e=t._i,i=t._f;return t._locale=t._locale||se(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),_(e)?new b(ae(e)):(l(e)?t._d=e:r(i)?function(t){var e,i,n,r,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],we(e),p(e)&&(o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,(null==n||o<n)&&(n=o,i=e));c(t,i||e)}(t):i?we(t):function(t){var e=t._i;s(e)?t._d=new Date(n.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=me.exec(t._i);null===e?(ve(t),!1===t._isValid&&(delete t._isValid,_e(t),!1===t._isValid&&(delete t._isValid,n.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):r(e)?(t._a=u(e.slice(0),(function(t){return parseInt(t,10)})),ue(t)):o(e)?function(t){if(!t._d){var e=j(t._i);t._a=u([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),ue(t)}}(t):a(e)?t._d=new Date(e):n.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Se(t,e,i,n,s){var a,l={};return!0!==i&&!1!==i||(n=i,i=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=i,l._i=t,l._f=e,l._strict=n,(a=new b(ae(ke(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function De(t,e,i,n){return Se(t,e,i,n,!1)}n.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var xe=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),Oe=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Me(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return De();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Te=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ce(t){var e=j(t),i=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===yt.call(Te,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Te.length;++n)if(t[Te[n]]){if(i)return!1;parseFloat(t[Te[n]])!==k(t[Te[n]])&&(i=!0)}return!0}(e),this._milliseconds=+h+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=se(),this._bubble()}function Pe(t){return t instanceof Ce}function Ee(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ae(t,e){W(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+R(~~(t/60),2)+e+R(~~t%60,2)}))}Ae("Z",":"),Ae("ZZ",""),ut("Z",st),ut("ZZ",st),ft(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ie(st,t)}));var Le=/([\+\-]|\d\d)/gi;function Ie(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Le)||["-",0,0],r=60*n[1]+k(n[2]);return 0===r?0:"+"===n[0]?r:-r}function je(t,e){var i,r;return e._isUTC?(i=e.clone(),r=(_(t)||l(t)?t.valueOf():De(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):De(t).local()}function Ye(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ne(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Re=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Fe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function He(t,e){var i,n,r,o,s,l,u=t,c=null;return Pe(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(u={},e?u[e]=t:u.milliseconds=t):(c=Re.exec(t))?(i="-"===c[1]?-1:1,u={y:0,d:k(c[2])*i,h:k(c[3])*i,m:k(c[4])*i,s:k(c[5])*i,ms:k(Ee(1e3*c[6]))*i}):(c=Fe.exec(t))?(i="-"===c[1]?-1:1,u={y:Ge(c[2],i),M:Ge(c[3],i),w:Ge(c[4],i),d:Ge(c[5],i),h:Ge(c[6],i),m:Ge(c[7],i),s:Ge(c[8],i)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=De(u.from),s=De(u.to),r=o.isValid()&&s.isValid()?(s=je(s,o),o.isBefore(s)?l=ze(o,s):((l=ze(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Ce(u),Pe(t)&&h(t,"_locale")&&(n._locale=t._locale),n}function Ge(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ze(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function We(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),Ve(this,He(i="string"==typeof i?+i:i,n),t),this}}function Ve(t,e,i,r){var o=e._milliseconds,s=Ee(e._days),a=Ee(e._months);t.isValid()&&(r=null==r||r,a&&Tt(t,wt(t,"Month")+a*i),s&&kt(t,"Date",wt(t,"Date")+s*i),o&&t._d.setTime(t._d.valueOf()+o*i),r&&n.updateOffset(t,s||a))}He.fn=Ce.prototype,He.invalid=function(){return He(NaN)};var Ue=We(1,"add"),Be=We(-1,"subtract");function Xe(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function qe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=se(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ze=x("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)}));function Je(){return this._locale}function $e(t,e){return(t%e+e)%e}function Ke(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function Qe(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ti(t,e){W(0,[t,t.length],0,e)}function ei(t,e,i,n,r){var o;return null==t?Nt(this,n,r).year:(e>(o=Rt(t,n,r))&&(e=o),ii.call(this,t,e,i,n,r))}function ii(t,e,i,n,r){var o=Yt(t,e,i,n,r),s=It(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),ut("G",rt),ut("g",rt),ut("GG",$,X),ut("gg",$,X),ut("GGGG",et,Z),ut("gggg",et,Z),ut("GGGGG",it,J),ut("ggggg",it,J),pt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=k(t)})),pt(["gg","GG"],(function(t,e,i,r){e[r]=n.parseTwoDigitYear(t)})),W("Q",0,"Qo","quarter"),L("quarter","Q"),N("quarter",7),ut("Q",B),ft("Q",(function(t,e){e[1]=3*(k(t)-1)})),W("D",["DD",2],"Do","date"),L("date","D"),N("date",9),ut("D",$),ut("DD",$,X),ut("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ft(["D","DD"],2),ft("Do",(function(t,e){e[2]=k(t.match($)[0])}));var ni=_t("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),N("dayOfYear",4),ut("DDD",tt),ut("DDDD",q),ft(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=k(t)})),W("m",["mm",2],0,"minute"),L("minute","m"),N("minute",14),ut("m",$),ut("mm",$,X),ft(["m","mm"],4);var ri=_t("Minutes",!1);W("s",["ss",2],0,"second"),L("second","s"),N("second",15),ut("s",$),ut("ss",$,X),ft(["s","ss"],5);var oi,si=_t("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),L("millisecond","ms"),N("millisecond",16),ut("S",tt,B),ut("SS",tt,X),ut("SSS",tt,q),oi="SSSS";oi.length<=9;oi+="S")ut(oi,nt);function ai(t,e){e[6]=k(1e3*("0."+t))}for(oi="S";oi.length<=9;oi+="S")ft(oi,ai);var li=_t("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ui=b.prototype;function hi(t){return t}ui.add=Ue,ui.calendar=function(t,e){var i=t||De(),r=je(i,this).startOf("day"),o=n.calendarFormat(this,r)||"sameElse",s=e&&(C(e[o])?e[o].call(this,i):e[o]);return this.format(s||this.localeData().calendar(o,this,De(i)))},ui.clone=function(){return new b(this)},ui.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=je(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=I(e)){case"year":o=Xe(this,n)/12;break;case"month":o=Xe(this,n);break;case"quarter":o=Xe(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:w(o)},ui.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Qe:Ke;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-$e(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-$e(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-$e(e,1e3)-1}return this._d.setTime(e),n.updateOffset(this,!0),this},ui.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},ui.from=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||De(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.fromNow=function(t){return this.from(De(),t)},ui.to=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||De(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.toNow=function(t){return this.to(De(),t)},ui.get=function(t){return C(this[t=I(t)])?this[t]():this},ui.invalidAt=function(){return f(this).overflow},ui.isAfter=function(t,e){var i=_(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},ui.isBefore=function(t,e){var i=_(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},ui.isBetween=function(t,e,i,n){var r=_(t)?t:De(t),o=_(e)?e:De(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},ui.isSame=function(t,e){var i,n=_(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},ui.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ui.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ui.isValid=function(){return p(this)},ui.lang=Ze,ui.locale=qe,ui.localeData=Je,ui.max=Oe,ui.min=xe,ui.parsingFlags=function(){return c({},f(this))},ui.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:Y[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=j(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(C(this[t=I(t)]))return this[t](e);return this},ui.startOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Qe:Ke;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=$e(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=$e(e,6e4);break;case"second":e=this._d.valueOf(),e-=$e(e,1e3)}return this._d.setTime(e),n.updateOffset(this,!0),this},ui.subtract=Be,ui.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ui.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ui.toDate=function(){return new Date(this.valueOf())},ui.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?V(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ui.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",r=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+r)},ui.toJSON=function(){return this.isValid()?this.toISOString():null},ui.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ui.unix=function(){return Math.floor(this.valueOf()/1e3)},ui.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ui.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ui.year=bt,ui.isLeapYear=function(){return gt(this.year())},ui.weekYear=function(t){return ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ui.isoWeekYear=function(t){return ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ui.quarter=ui.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ui.month=Ct,ui.daysInMonth=function(){return St(this.year(),this.month())},ui.week=ui.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ui.isoWeek=ui.isoWeeks=function(t){var e=Nt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ui.weeksInYear=function(){var t=this.localeData()._week;return Rt(this.year(),t.dow,t.doy)},ui.isoWeeksInYear=function(){return Rt(this.year(),1,4)},ui.date=ni,ui.day=ui.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},ui.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")},ui.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},ui.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")},ui.hour=ui.hours=Kt,ui.minute=ui.minutes=ri,ui.second=ui.seconds=si,ui.millisecond=ui.milliseconds=li,ui.utcOffset=function(t,e,i){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ie(st,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(r=Ye(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Ve(this,He(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ye(this)},ui.utc=function(t){return this.utcOffset(0,t)},ui.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ye(this),"m")),this},ui.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ie(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ui.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ui.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ui.isLocal=function(){return!!this.isValid()&&!this._isUTC},ui.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ui.isUtc=Ne,ui.isUTC=Ne,ui.zoneAbbr=function(){return this._isUTC?"UTC":""},ui.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ui.dates=x("dates accessor is deprecated. Use date instead.",ni),ui.months=x("months accessor is deprecated. Use month instead",Ct),ui.years=x("years accessor is deprecated. Use year instead",bt),ui.zone=x("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()})),ui.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=ke(t))._a){var e=t._isUTC?d(t._a):De(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var ci=E.prototype;function di(t,e,i,n){var r=se(),o=d().set(n,e);return r[i](o,t)}function fi(t,e,i){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return di(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=di(t,n,i,"month");return r}function pi(t,e,i,n){"boolean"==typeof t?(a(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,a(e)&&(i=e,e=void 0),e=e||"");var r,o=se(),s=t?o._week.dow:0;if(null!=i)return di(e,(i+s)%7,n,"day");var l=[];for(r=0;r<7;r++)l[r]=di(e,(r+s)%7,n,"day");return l}ci.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return C(n)?n.call(e,i):n},ci.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])},ci.invalidDate=function(){return this._invalidDate},ci.ordinal=function(t){return this._ordinal.replace("%d",t)},ci.preparse=hi,ci.postformat=hi,ci.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return C(r)?r(t,e,i,n):r.replace(/%d/i,t)},ci.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return C(i)?i(e):i.replace(/%s/i,e)},ci.set=function(t){var e,i;for(i in t)C(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)},ci.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Dt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},ci.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Dt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ci.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return Mt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.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}},ci.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||At.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},ci.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||At.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Pt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},ci.week=function(t){return Nt(t,this._week.dow,this._week.doy).week},ci.firstDayOfYear=function(){return this._week.doy},ci.firstDayOfWeek=function(){return this._week.dow},ci.weekdays=function(t,e){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ft(i,this._week.dow):t?i[t.day()]:i},ci.weekdaysMin=function(t){return!0===t?Ft(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},ci.weekdaysShort=function(t){return!0===t?Ft(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},ci.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return Wt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.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}},ci.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},ci.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ut),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ci.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ci.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},ci.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",re),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",se);var mi=Math.abs;function vi(t,e,i,n){var r=He(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function gi(t){return t<0?Math.floor(t):Math.ceil(t)}function yi(t){return 4800*t/146097}function bi(t){return 146097*t/4800}function _i(t){return function(){return this.as(t)}}var wi=_i("ms"),ki=_i("s"),Si=_i("m"),Di=_i("h"),xi=_i("d"),Oi=_i("w"),Mi=_i("M"),Ti=_i("Q"),Ci=_i("y");function Pi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ei=Pi("milliseconds"),Ai=Pi("seconds"),Li=Pi("minutes"),Ii=Pi("hours"),ji=Pi("days"),Yi=Pi("months"),Ni=Pi("years"),Ri=Math.round,Fi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}function Gi(t,e,i){var n=He(t).abs(),r=Ri(n.as("s")),o=Ri(n.as("m")),s=Ri(n.as("h")),a=Ri(n.as("d")),l=Ri(n.as("M")),u=Ri(n.as("y")),h=r<=Fi.ss&&["s",r]||r<Fi.s&&["ss",r]||o<=1&&["m"]||o<Fi.m&&["mm",o]||s<=1&&["h"]||s<Fi.h&&["hh",s]||a<=1&&["d"]||a<Fi.d&&["dd",a]||l<=1&&["M"]||l<Fi.M&&["MM",l]||u<=1&&["y"]||["yy",u];return h[2]=e,h[3]=+t>0,h[4]=i,Hi.apply(null,h)}var zi=Math.abs;function Wi(t){return(t>0)-(t<0)||+t}function Vi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=zi(this._milliseconds)/1e3,n=zi(this._days),r=zi(this._months);t=w(i/60),e=w(t/60),i%=60,t%=60;var o=w(r/12),s=r%=12,a=n,l=e,u=t,h=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Wi(this._months)!==Wi(c)?"-":"",p=Wi(this._days)!==Wi(c)?"-":"",m=Wi(this._milliseconds)!==Wi(c)?"-":"";return d+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||u||h?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(h?m+h+"S":"")}var Ui=Ce.prototype;return Ui.isValid=function(){return this._isValid},Ui.abs=function(){var t=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),t.milliseconds=mi(t.milliseconds),t.seconds=mi(t.seconds),t.minutes=mi(t.minutes),t.hours=mi(t.hours),t.months=mi(t.months),t.years=mi(t.years),this},Ui.add=function(t,e){return vi(this,t,e,1)},Ui.subtract=function(t,e){return vi(this,t,e,-1)},Ui.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+yi(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(bi(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)}},Ui.asMilliseconds=wi,Ui.asSeconds=ki,Ui.asMinutes=Si,Ui.asHours=Di,Ui.asDays=xi,Ui.asWeeks=Oi,Ui.asMonths=Mi,Ui.asQuarters=Ti,Ui.asYears=Ci,Ui.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Ui._bubble=function(){var t,e,i,n,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*gi(bi(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=w(o/1e3),l.seconds=t%60,e=w(t/60),l.minutes=e%60,i=w(e/60),l.hours=i%24,s+=w(i/24),r=w(yi(s)),a+=r,s-=gi(bi(r)),n=w(a/12),a%=12,l.days=s,l.months=a,l.years=n,this},Ui.clone=function(){return He(this)},Ui.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},Ui.milliseconds=Ei,Ui.seconds=Ai,Ui.minutes=Li,Ui.hours=Ii,Ui.days=ji,Ui.weeks=function(){return w(this.days()/7)},Ui.months=Yi,Ui.years=Ni,Ui.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=Gi(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Ui.toISOString=Vi,Ui.toString=Vi,Ui.toJSON=Vi,Ui.locale=qe,Ui.localeData=Je,Ui.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vi),Ui.lang=Ze,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ut("x",rt),ut("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),ft("x",(function(t,e,i){i._d=new Date(k(t))})),n.version="2.24.0",e=De,n.fn=ui,n.min=function(){var t=[].slice.call(arguments,0);return Me("isBefore",t)},n.max=function(){var t=[].slice.call(arguments,0);return Me("isAfter",t)},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(t){return De(1e3*t)},n.months=function(t,e){return fi(t,e,"months")},n.isDate=l,n.locale=re,n.invalid=m,n.duration=He,n.isMoment=_,n.weekdays=function(t,e,i){return pi(t,e,i,"weekdays")},n.parseZone=function(){return De.apply(null,arguments).parseZone()},n.localeData=se,n.isDuration=Pe,n.monthsShort=function(t,e){return fi(t,e,"monthsShort")},n.weekdaysMin=function(t,e,i){return pi(t,e,i,"weekdaysMin")},n.defineLocale=oe,n.updateLocale=function(t,e){if(null!=e){var i,n,r=Qt;null!=(n=ne(t))&&(r=n._config),(i=new E(e=P(r,e))).parentLocale=te[t],te[t]=i,re(t)}else null!=te[t]&&(null!=te[t].parentLocale?te[t]=te[t].parentLocale:null!=te[t]&&delete te[t]);return te[t]},n.locales=function(){return O(te)},n.weekdaysShort=function(t,e,i){return pi(t,e,i,"weekdaysShort")},n.normalizeUnits=I,n.relativeTimeRounding=function(t){return void 0===t?Ri:"function"==typeof t&&(Ri=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Fi[t]&&(void 0===e?Fi[t]:(Fi[t]=e,"s"===t&&(Fi.ss=e-1),!0))},n.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"},n.prototype=ui,n.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:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()})),Eg=/^\/?Date\((-?\d+)/i;function Ag(t){return Pg.isMoment(t)}function Lg(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return Og(t)&&!isNaN(Date.parse(t))?Pg(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(xg(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(Ag(t))return new Date(t.valueOf());if(Og(t))return(i=Eg.exec(t))?new Date(Number(i[1])):Pg(new Date(t)).toDate();throw new Error("Cannot convert object of type "+Cg(t)+" to type Date");case"Moment":if(xg(t))return Pg(t);if(t instanceof Date)return Pg(t.valueOf());if(Ag(t))return Pg(t);if(Og(t))return i=Eg.exec(t),Pg(i?Number(i[1]):t);throw new Error("Cannot convert object of type "+Cg(t)+" to type Date");case"ISODate":if(xg(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(Ag(t))return t.toDate().toISOString();if(Og(t))return(i=Eg.exec(t))?new Date(Number(i[1])).toISOString():Pg(t).format();throw new Error("Cannot convert object of type "+Cg(t)+" to type ISODate");case"ASPDate":if(xg(t))return"/Date("+t+")/";if(t instanceof Date||Ag(t))return"/Date("+t.valueOf()+")/";if(Og(t))return"/Date("+((i=Eg.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+Cg(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function Ig(t){return"string"==typeof t||"number"==typeof t}var jg=Fa("splice"),Yg=za("splice",{ACCESSORS:!0,0:0,1:2}),Ng=Math.max,Rg=Math.min;Qs({target:"Array",proto:!0,forced:!jg||!Yg},{splice:function(t,e){var i,n,r,o,s,a,l=la(this),u=oa(l.length),h=Ml(t,u),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=u-h):(i=c-2,n=Rg(Ng(na(e),0),u-h)),u+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=wa(l,n),o=0;o<n;o++)(s=h+o)in l&&Gl(r,o,l[s]);if(r.length=n,i<n){for(o=h;o<u-n;o++)a=o+i,(s=o+n)in l?l[a]=l[s]:delete l[a];for(o=u;o>u-n+i;o--)delete l[o-1]}else if(i>n)for(o=u-n;o>h;o--)a=o+i-1,(s=o+n-1)in l?l[a]=l[s]:delete l[a];for(o=0;o<i;o++)l[o+h]=arguments[o+2];return l.length=u-n+i,r}});var Fg=Da("Array").splice,Hg=Array.prototype,Gg=function(t){var e=t.splice;return t===Hg||t instanceof Array&&e===Hg.splice?Fg:e},zg=[].slice,Wg=/MSIE .\./.test(La),Vg=function(t){return function(e,i){var n=arguments.length>2,r=n?zg.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};Qs({global:!0,bind:!0,forced:Wg},{setTimeout:Vg(ps.setTimeout),setInterval:Vg(ps.setInterval)});var Ug=Vs.setTimeout,Bg=function(){function t(e){vl(this,t),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(e)}return _l(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){for(var t=this._extended.object,e=this._extended.methods,i=0;i<e.length;i++){var n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var i=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];i.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Ug((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;Qu(t=Gg(e=this._queue).call(e,0)).call(t,(function(t){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 r=[{name:"flush",original:void 0}];if(i&&i.replace)for(var o=0;o<i.replace.length;o++){var s=i.replace[o];r.push({name:s,original:e[s]}),n.replace(e,s)}return n._extended={object:e,methods:r},n}}]),t}(),Xg=function(){function t(){vl(this,t),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return _l(t,[{key:"_trigger",value:function(t,e,i){var n,r;if("*"===t)throw new Error("Cannot trigger event *");Qu(n=qc(r=[]).call(r,Gc(this._subscribers[t]),Gc(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=i?i:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var i;this._subscribers[t]=tl(i=this._subscribers[t]).call(i,(function(t){return t!==e}))}}]),t}(),qg=(bd("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Od),Vs.Set),Zg=Yd;var Jg=function(t){if(xc(t))return t};var $g=function(t,e){if(Rc(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=cc(t);!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}};var Kg=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Qg=function(t,e){return Jg(t)||$g(t,e)||Kg()},ty=function(){function t(e){vl(this,t),this._pairs=e}return _l(t,[{key:Jh,value:Vh.mark((function t(){var e,i,n,r,o,s,a,l;return Vh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=cc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=Qg(o.value,2),a=s[0],l=s[1],t.next=9,[a,l];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"entries",value:Vh.mark((function t(){var e,i,n,r,o,s,a,l;return Vh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=cc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=Qg(o.value,2),a=s[0],l=s[1],t.next=9,[a,l];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"keys",value:Vh.mark((function t(){var e,i,n,r,o,s,a;return Vh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=cc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=Qg(o.value,1),a=s[0],t.next=9,a;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"values",value:Vh.mark((function t(){var e,i,n,r,o,s,a;return Vh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=cc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=Qg(o.value,2),a=s[1],t.next=9,a;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"toIdArray",value:function(){var t;return qa(t=Gc(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return qa(t=Gc(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Gc(this._pairs)}},{key:"toObjectMap",value:function(){var t=Zg(null),e=!0,i=!1,n=void 0;try{for(var r,o=cc(this._pairs);!(e=(r=o.next()).done);e=!0){var s=Qg(r.value,2),a=s[0],l=s[1];t[a]=l}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}return t}},{key:"toMap",value:function(){return new Md(this._pairs)}},{key:"toIdSet",value:function(){return new qg(this.toIdArray())}},{key:"toItemSet",value:function(){return new qg(this.toItemArray())}},{key:"cache",value:function(){return new t(Gc(this._pairs))}},{key:"distinct",value:function(t){var e=new qg,i=!0,n=!1,r=void 0;try{for(var o,s=cc(this._pairs);!(i=(o=s.next()).done);i=!0){var a=Qg(o.value,2),l=a[0],u=a[1];e.add(t(u,l))}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}return e}},{key:"filter",value:function(e){var i=this._pairs;return new t(rc({},Jh,Vh.mark((function t(){var n,r,o,s,a,l,u,h;return Vh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,r=!1,o=void 0,t.prev=3,s=cc(i);case 5:if(n=(a=s.next()).done){t.next=13;break}if(l=Qg(a.value,2),u=l[0],h=l[1],!e(h,u)){t.next=10;break}return t.next=10,[u,h];case 10:n=!0,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),r=!0,o=t.t0;case 19:t.prev=19,t.prev=20,n||null==s.return||s.return();case 22:if(t.prev=22,!r){t.next=25;break}throw o;case 25:return t.finish(22);case 26:return t.finish(19);case 27:case"end":return t.stop()}}),t,null,[[3,15,19,27],[20,,22,26]])}))))}},{key:"forEach",value:function(t){var e=!0,i=!1,n=void 0;try{for(var r,o=cc(this._pairs);!(e=(r=o.next()).done);e=!0){var s=Qg(r.value,2),a=s[0];t(s[1],a)}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}}},{key:"map",value:function(e){var i=this._pairs;return new t(rc({},Jh,Vh.mark((function t(){var n,r,o,s,a,l,u,h;return Vh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,r=!1,o=void 0,t.prev=3,s=cc(i);case 5:if(n=(a=s.next()).done){t.next=12;break}return l=Qg(a.value,2),u=l[0],h=l[1],t.next=9,[u,e(h,u)];case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),r=!0,o=t.t0;case 18:t.prev=18,t.prev=19,n||null==s.return||s.return();case 21:if(t.prev=21,!r){t.next=24;break}throw o;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,null,[[3,14,18,26],[19,,21,25]])}))))}},{key:"max",value:function(t){var e=cc(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],r=t(i.value[1],i.value[0]);!(i=e.next()).done;){var o=Qg(i.value,2),s=o[0],a=o[1],l=t(a,s);l>r&&(r=l,n=a)}return n}},{key:"min",value:function(t){var e=cc(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],r=t(i.value[1],i.value[0]);!(i=e.next()).done;){var o=Qg(i.value,2),s=o[0],a=o[1],l=t(a,s);l<r&&(r=l,n=a)}return n}},{key:"reduce",value:function(t,e){var i=!0,n=!1,r=void 0;try{for(var o,s=cc(this._pairs);!(i=(o=s.next()).done);i=!0){var a=Qg(o.value,2),l=a[0];e=t(e,a[1],l)}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}return e}},{key:"sort",value:function(e){var i=this;return new t(rc({},Jh,(function(){var t;return cc(bc(t=Gc(i._pairs)).call(t,(function(t,i){var n=Qg(t,2),r=n[0],o=n[1],s=Qg(i,2),a=s[0],l=s[1];return e(o,l,r,a)})))})))}}]),t}();function ey(t,e){var i=hd(t);if(Fh){var n=Fh(t);e&&(n=tl(n).call(n,(function(e){return ih(t,e).enumerable}))),i.push.apply(i,n)}return i}var iy=function(){console.warn("Type coercion has been deprecated. Please, use data pipes instead. See https://visjs.github.io/vis-data/data/datapipe.html#TypeCoercion for more details with working migration example.")},ny=function(t){function e(t,i){var n;if(vl(this,e),n=Pd(this,Id(e).call(this)),t&&!Td(t)&&(i=t,t=[]),n._options=i||{},n._data=new Md,n.length=0,n._idProp=n._options.fieldId||"id",n._type={},n._options.type){iy();for(var r=hd(n._options.type),o=0,s=r.length;o<s;o++){var a=r[o],l=n._options.type[a];n._type[a]="Date"==l||"ISODate"==l||"ASPDate"==l?"Date":l}}return t&&t.length&&n.add(t),n.setOptions(i),n}return Fd(e,t),_l(e,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=Bg.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===ld(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var i,n=this,r=[];if(Td(t)){var o=qa(t).call(t,(function(t){return t[n._idProp]}));if(rd(o).call(o,(function(t){return n._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var s=0,a=t.length;s<a;s++)i=this._addItem(t[s]),r.push(i)}else{if(!t||"object"!==ld(t))throw new Error("Unknown dataType");i=this._addItem(t),r.push(i)}return r.length&&this._trigger("add",{items:r},e),r}},{key:"update",value:function(t,e){var i=this,n=[],r=[],o=[],s=[],a=this._idProp,l=function(t){var e=t[a];if(null!=e&&i._data.has(e)){var l=t,u=Kc({},i._data.get(e)),h=i._updateItem(l);r.push(h),s.push(l),o.push(u)}else{var c=i._addItem(t);n.push(c)}};if(Td(t))for(var u=0,h=t.length;u<h;u++)t[u]&&"object"===ld(t[u])?l(t[u]):console.warn("Ignoring input item, which is not an object at index "+u);else{if(!t||"object"!==ld(t))throw new Error("Unknown dataType");l(t)}if(n.length&&this._trigger("add",{items:n},e),r.length){var c={items:r,oldData:o,data:s};this._trigger("update",c,e)}return qc(n).call(n,r)}},{key:"updateOnly",value:function(t,e){var i,n=this;Td(t)||(t=[t]);var r=qa(i=qa(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(i,(function(t){var e=t.oldData,i=t.update,r=e[n._idProp],o=Tg(Tg({},e),i);return n._data.set(r,o),{id:r,oldData:e,updatedData:o}}));if(r.length){var o={items:qa(r).call(r,(function(t){return t.id})),oldData:qa(r).call(r,(function(t){return t.oldData})),data:qa(r).call(r,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var i=void 0,n=void 0,r=void 0;Ig(t)?(i=t,r=e):Td(t)?(n=t,r=e):r=t;var o=r&&"Object"===r.returnType?"Object":"Array",s=r&&r.type||this._options.type,a=r&&tl(r),l=[],u=null,h=null,c=null;if(null!=i)(u=this._getItem(i,s))&&a&&!a(u)&&(u=null);else if(null!=n)for(var d=0,f=n.length;d<f;d++)null==(u=this._getItem(n[d],s))||a&&!a(u)||l.push(u);else for(var p,m=0,v=(h=Gc(Sc(p=this._data).call(p))).length;m<v;m++)c=h[m],null==(u=this._getItem(c,s))||a&&!a(u)||l.push(u);if(r&&r.order&&null==i&&this._sort(l,r.order),r&&r.fields){var g=r.fields;if(null!=i&&null!=u)u=this._filterFields(u,g);else for(var y=0,b=l.length;y<b;y++)l[y]=this._filterFields(l[y],g)}if("Object"==o){for(var _={},w=0,k=l.length;w<k;w++){var S=l[w];_[S[this._idProp]]=S}return _}return null!=i?u:l}},{key:"getIds",value:function(t){var e,i,n=this._data,r=t&&tl(t),o=t&&t.order,s=t&&t.type||this._options.type,a=Gc(Sc(n).call(n)),l=[];if(r)if(o){i=[];for(var u=0,h=a.length;u<h;u++){var c=a[u];r(e=this._getItem(c,s))&&i.push(e)}this._sort(i,o);for(var d=0,f=i.length;d<f;d++)l.push(i[d][this._idProp])}else for(var p=0,m=a.length;p<m;p++){var v=a[p];r(e=this._getItem(v,s))&&l.push(e[this._idProp])}else if(o){i=[];for(var g=0,y=a.length;g<y;g++){var b=a[g];i.push(n.get(b))}this._sort(i,o);for(var _=0,w=i.length;_<w;_++)l.push(i[_][this._idProp])}else for(var k=0,S=a.length;k<S;k++){var D=a[k];e=n.get(D),l.push(e[this._idProp])}return l}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var i=e&&tl(e),n=e&&e.type||this._options.type,r=this._data,o=Gc(Sc(r).call(r));if(e&&e.order)for(var s=this.get(e),a=0,l=s.length;a<l;a++){var u=s[a];t(u,u[this._idProp])}else for(var h=0,c=o.length;h<c;h++){var d=o[h],f=this._getItem(d,n);i&&!i(f)||t(f,d)}}},{key:"map",value:function(t,e){for(var i=e&&tl(e),n=e&&e.type||this._options.type,r=[],o=this._data,s=Gc(Sc(o).call(o)),a=0,l=s.length;a<l;a++){var u=s[a],h=this._getItem(u,n);i&&!i(h)||r.push(t(h,u))}return e&&e.order&&this._sort(r,e.order),r}},{key:"_filterFields",value:function(t,e){var i;return t?ll(i=Td(e)?e:hd(e)).call(i,(function(e,i){return e[i]=t[i],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var i=e;bc(t).call(t,(function(t,e){var n=t[i],r=e[i];return n>r?1:n<r?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");bc(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var i=[],n=[],r=Td(t)?t:[t],o=0,s=r.length;o<s;o++){var a=this._remove(r[o]);if(a){var l=a[this._idProp];null!=l&&(i.push(l),n.push(a))}}return i.length&&this._trigger("remove",{items:i,oldData:n},e),i}},{key:"_remove",value:function(t){var e;if(Ig(t)?e=t:t&&"object"===ld(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var i=this._data.get(e)||null;return this._data.delete(e),--this.length,i}return null}},{key:"clear",value:function(t){for(var e,i=Gc(Sc(e=this._data).call(e)),n=[],r=0,o=i.length;r<o;r++)n.push(this._data.get(i[r]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},t),i}},{key:"max",value:function(t){var e=null,i=null,n=!0,r=!1,o=void 0;try{for(var s,a=cc(lc(l=this._data).call(l));!(n=(s=a.next()).done);n=!0){var l,u=s.value,h=u[t];"number"==typeof h&&(null==i||h>i)&&(e=u,i=h)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e||null}},{key:"min",value:function(t){var e=null,i=null,n=!0,r=!1,o=void 0;try{for(var s,a=cc(lc(l=this._data).call(l));!(n=(s=a.next()).done);n=!0){var l,u=s.value,h=u[t];"number"==typeof h&&(null==i||h<i)&&(e=u,i=h)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e||null}},{key:"distinct",value:function(t){for(var e=this._data,i=Gc(Sc(e).call(e)),n=[],r=this._options.type&&this._options.type[t]||null,o=0,s=0,a=i.length;s<a;s++){for(var l=i[s],u=e.get(l)[t],h=!1,c=0;c<o;c++)if(n[c]==u){h=!0;break}h||void 0===u||(n[o]=u,o++)}if(r)for(var d=0,f=n.length;d<f;d++)n[d]=Lg(n[d],r);return n}},{key:"_addItem",value:function(t){var e=t[this._idProp];if(null!=e){if(this._data.has(e))throw new Error("Cannot add item: item with id "+e+" already exists")}else e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var r=t.random||(t.rng||Wd)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;o++)e[n+o]=r[o];return e||zd(r)}(),t[this._idProp]=e;for(var i={},n=hd(t),r=0,o=n.length;r<o;r++){var s=n[r],a=this._type[s];i[s]=Lg(t[s],a)}return this._data.set(e,i),++this.length,e}},{key:"_getItem",value:function(t,e){var i,n=this._data.get(t);if(!n)return null;var r=hd(n);if(e){iy(),i={};for(var o=0,s=r.length;o<s;o++){var a=r[o],l=n[a];i[a]=Lg(l,e[a])}}else i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)Qu(i=ey(Object(n),!0)).call(i,(function(e){rc(t,e,n[e])}));else if(zl)Yl(t,zl(n));else{var r;Qu(r=ey(Object(n))).call(r,(function(e){Dl(t,e,ih(n,e))}))}}return t}({},n);return null==i[this._idProp]&&(i[this._idProp]=n.id),i}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+nc(t)+")");var i=this._data.get(e);if(!i)throw new Error("Cannot update item: no item with id "+e+" found");for(var n=hd(t),r=0,o=n.length;r<o;r++){var s=n[r],a=this._type[s];i[s]=Lg(t[s],a)}return e}},{key:"stream",value:function(t){if(t){var e=this._data;return new ty(rc({},Jh,Vh.mark((function i(){var n,r,o,s,a,l,u;return Vh.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=!0,r=!1,o=void 0,i.prev=3,s=cc(t);case 5:if(n=(a=s.next()).done){i.next=14;break}if(l=a.value,null==(u=e.get(l))){i.next=11;break}return i.next=11,[l,u];case 11:n=!0,i.next=5;break;case 14:i.next=20;break;case 16:i.prev=16,i.t0=i.catch(3),r=!0,o=i.t0;case 20:i.prev=20,i.prev=21,n||null==s.return||s.return();case 23:if(i.prev=23,!r){i.next=26;break}throw o;case 26:return i.finish(23);case 27:return i.finish(20);case 28:case"end":return i.stop()}}),i,null,[[3,16,20,28],[21,,23,27]])}))))}var i;return new ty(rc({},Jh,ml(i=Wh(this._data)).call(i,this._data)))}}]),e}(Xg),ry=function(t){function e(t,i){var n,r;return vl(this,e),(r=Pd(this,Id(e).call(this))).length=0,r._ids=new qg,r._options=i||{},r._listener=ml(n=r._onEvent).call(n,Cd(r)),r.setData(t),r}return Fd(e,t),_l(e,[{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:tl(this._options)}),i=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:i})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:tl(this._options)}),r=0,o=n.length;r<o;r++){var s=n[r];this._ids.add(s)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new ny;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:tl(this._options)}),e=Gc(this._ids),i={},n=[],r=[],o=[],s=0,a=t.length;s<a;s++){var l=t[s];i[l]=!0,this._ids.has(l)||(n.push(l),this._ids.add(l))}for(var u=0,h=e.length;u<h;u++){var c=e[u],d=this._data.get(c);null==d?console.error("If you see this, report it please."):i[c]||(r.push(c),o.push(d),this._ids.delete(c))}this.length+=n.length-r.length,n.length&&this._trigger("add",{items:n}),r.length&&this._trigger("remove",{items:r,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var i,n=null;Ig(t)||Td(t)?(n=t,i=e):i=t;var r=Kc({},this._options,i),o=tl(this._options),s=i&&tl(i);return o&&s&&(r.filter=function(t){return o(t)&&s(t)}),null==n?this._data.get(r):this._data.get(n,r)}},{key:"getIds",value:function(t){if(this._data.length){var e,i=tl(this._options),n=null!=t?tl(t):null;return e=n?i?function(t){return i(t)&&n(t)}:n:i,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var i,n,r=tl(this._options),o=e&&tl(e);n=o?r?function(t){return r(t)&&o(t)}:o:r,Qu(i=this._data).call(i,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var i,n,r=tl(this._options),o=e&&tl(e);return n=o?r?function(t){return r(t)&&o(t)}:o:r,qa(i=this._data).call(i,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||rc({},Jh,ml(e=Sc(this._ids)).call(e,this._ids)))}},{key:"_onEvent",value:function(t,e,i){if(e&&e.items&&this._data){var n=e.items,r=[],o=[],s=[],a=[],l=[],u=[];switch(t){case"add":for(var h=0,c=n.length;h<c;h++){var d=n[h];this.get(d)&&(this._ids.add(d),r.push(d))}break;case"update":for(var f=0,p=n.length;f<p;f++){var m=n[f];this.get(m)?this._ids.has(m)?(o.push(m),l.push(e.data[f]),a.push(e.oldData[f])):(this._ids.add(m),r.push(m)):this._ids.has(m)&&(this._ids.delete(m),s.push(m),u.push(e.oldData[f]))}break;case"remove":for(var v=0,g=n.length;v<g;v++){var y=n[v];this._ids.has(y)&&(this._ids.delete(y),s.push(y),u.push(e.oldData[v]))}}this.length+=r.length-s.length,r.length&&this._trigger("add",{items:r},i),o.length&&this._trigger("update",{items:o,oldData:a,data:l},i),s.length&&this._trigger("remove",{items:s,oldData:u},i)}}}]),e}(Xg),oy=function(t){try{return!!t()}catch(t){return!0}},sy={}.toString,ay=function(t){return sy.call(t).slice(8,-1)},ly="".split,uy=oy((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==ay(t)?ly.call(t,""):Object(t)}:Object,hy=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},cy=function(t){return uy(hy(t))},dy={},fy=function(t){return t&&t.Math==Math&&t},py=fy("object"==typeof globalThis&&globalThis)||fy("object"==typeof window&&window)||fy("object"==typeof self&&self)||fy("object"==typeof e&&e)||Function("return this")(),my=!oy((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vy=function(t){return"object"==typeof t?null!==t:"function"==typeof t},gy=py.document,yy=vy(gy)&&vy(gy.createElement),by=function(t){return yy?gy.createElement(t):{}},_y=!my&&!oy((function(){return 7!=Object.defineProperty(by("div"),"a",{get:function(){return 7}}).a})),wy=function(t){if(!vy(t))throw TypeError(String(t)+" is not an object");return t},ky=function(t,e){if(!vy(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!vy(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!vy(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!vy(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Sy=Object.defineProperty,Dy={f:my?Sy:function(t,e,i){if(wy(t),e=ky(e,!0),wy(i),_y)try{return Sy(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},xy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Oy=my?function(t,e,i){return Dy.f(t,e,xy(1,i))}:function(t,e,i){return t[e]=i,t},My=py["__core-js_shared__"]||function(t,e){try{Oy(py,t,e)}catch(i){py[t]=e}return e}("__core-js_shared__",{}),Ty=Function.toString;"function"!=typeof My.inspectSource&&(My.inspectSource=function(t){return Ty.call(t)});var Cy,Py,Ey,Ay=My.inspectSource,Ly=py.WeakMap,Iy="function"==typeof Ly&&/native code/.test(Ay(Ly)),jy={}.hasOwnProperty,Yy=function(t,e){return jy.call(t,e)},Ny=n((function(t){(t.exports=function(t,e){return My[t]||(My[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Ry=0,Fy=Math.random(),Hy=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Ry+Fy).toString(36)},Gy=Ny("keys"),zy=function(t){return Gy[t]||(Gy[t]=Hy(t))},Wy={},Vy=py.WeakMap;if(Iy){var Uy=new Vy,By=Uy.get,Xy=Uy.has,qy=Uy.set;Cy=function(t,e){return qy.call(Uy,t,e),e},Py=function(t){return By.call(Uy,t)||{}},Ey=function(t){return Xy.call(Uy,t)}}else{var Zy=zy("state");Wy[Zy]=!0,Cy=function(t,e){return Oy(t,Zy,e),e},Py=function(t){return Yy(t,Zy)?t[Zy]:{}},Ey=function(t){return Yy(t,Zy)}}var Jy,$y,Ky,Qy={set:Cy,get:Py,has:Ey,enforce:function(t){return Ey(t)?Py(t):Cy(t,{})},getterFor:function(t){return function(e){var i;if(!vy(e)||(i=Py(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},tb={}.propertyIsEnumerable,eb=Object.getOwnPropertyDescriptor,ib={f:eb&&!tb.call({1:2},1)?function(t){var e=eb(this,t);return!!e&&e.enumerable}:tb},nb=Object.getOwnPropertyDescriptor,rb={f:my?nb:function(t,e){if(t=cy(t),e=ky(e,!0),_y)try{return nb(t,e)}catch(t){}if(Yy(t,e))return xy(!ib.f.call(t,e),t[e])}},ob=/#|\.prototype\./,sb=function(t,e){var i=lb[ab(t)];return i==hb||i!=ub&&("function"==typeof e?oy(e):!!e)},ab=sb.normalize=function(t){return String(t).replace(ob,".").toLowerCase()},lb=sb.data={},ub=sb.NATIVE="N",hb=sb.POLYFILL="P",cb=sb,db={},fb=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},pb=function(t,e,i){if(fb(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};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,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},mb=rb.f,vb=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},gb=function(t,e){var i,n,r,o,s,a,l,u,h=t.target,c=t.global,d=t.stat,f=t.proto,p=c?py:d?py[h]:(py[h]||{}).prototype,m=c?db:db[h]||(db[h]={}),v=m.prototype;for(r in e)i=!cb(c?r:h+(d?".":"#")+r,t.forced)&&p&&Yy(p,r),s=m[r],i&&(a=t.noTargetGet?(u=mb(p,r))&&u.value:p[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(l=t.bind&&i?pb(o,py):t.wrap&&i?vb(o):f&&"function"==typeof o?pb(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&Oy(l,"sham",!0),m[r]=l,f&&(Yy(db,n=h+"Prototype")||Oy(db,n,{}),db[n][r]=o,t.real&&v&&!v[r]&&Oy(v,r,o)))},yb=function(t){return Object(hy(t))},bb=!oy((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_b=zy("IE_PROTO"),wb=Object.prototype,kb=bb?Object.getPrototypeOf:function(t){return t=yb(t),Yy(t,_b)?t[_b]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?wb:null},Sb=!!Object.getOwnPropertySymbols&&!oy((function(){return!String(Symbol())})),Db=Sb&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,xb=Ny("wks"),Ob=py.Symbol,Mb=Db?Ob:Ob&&Ob.withoutSetter||Hy,Tb=function(t){return Yy(xb,t)||(Sb&&Yy(Ob,t)?xb[t]=Ob[t]:xb[t]=Mb("Symbol."+t)),xb[t]},Cb=(Tb("iterator"),!1);[].keys&&("next"in(Ky=[].keys())?($y=kb(kb(Ky)))!==Object.prototype&&(Jy=$y):Cb=!0),null==Jy&&(Jy={});var Pb,Eb={IteratorPrototype:Jy,BUGGY_SAFARI_ITERATORS:Cb},Ab=Math.ceil,Lb=Math.floor,Ib=function(t){return isNaN(t=+t)?0:(t>0?Lb:Ab)(t)},jb=Math.min,Yb=function(t){return t>0?jb(Ib(t),9007199254740991):0},Nb=Math.max,Rb=Math.min,Fb=function(t,e){var i=Ib(t);return i<0?Nb(i+e,0):Rb(i,e)},Hb=function(t){return function(e,i,n){var r,o=cy(e),s=Yb(o.length),a=Fb(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Gb={includes:Hb(!0),indexOf:Hb(!1)},zb=Gb.indexOf,Wb=function(t,e){var i,n=cy(t),r=0,o=[];for(i in n)!Yy(Wy,i)&&Yy(n,i)&&o.push(i);for(;e.length>r;)Yy(n,i=e[r++])&&(~zb(o,i)||o.push(i));return o},Vb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ub=Object.keys||function(t){return Wb(t,Vb)},Bb=my?Object.defineProperties:function(t,e){wy(t);for(var i,n=Ub(e),r=n.length,o=0;r>o;)Dy.f(t,i=n[o++],e[i]);return t},Xb=function(t){return"function"==typeof t?t:void 0},qb=function(t,e){return arguments.length<2?Xb(db[t])||Xb(py[t]):db[t]&&db[t][e]||py[t]&&py[t][e]},Zb=qb("document","documentElement"),Jb=zy("IE_PROTO"),$b=function(){},Kb=function(t){return"<script>"+t+"<\/script>"},Qb=function(){try{Pb=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Qb=Pb?function(t){t.write(Kb("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Pb):((e=by("iframe")).style.display="none",Zb.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Kb("document.F=Object")),t.close(),t.F);for(var i=Vb.length;i--;)delete Qb.prototype[Vb[i]];return Qb()};Wy[Jb]=!0;var t_=Object.create||function(t,e){var i;return null!==t?($b.prototype=wy(t),i=new $b,$b.prototype=null,i[Jb]=t):i=Qb(),void 0===e?i:Bb(i,e)},e_={};e_[Tb("toStringTag")]="z";var i_="[object z]"===String(e_),n_=Tb("toStringTag"),r_="Arguments"==ay(function(){return arguments}()),o_=i_?ay:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),n_))?i:r_?ay(e):"Object"==(n=ay(e))&&"function"==typeof e.callee?"Arguments":n},s_=i_?{}.toString:function(){return"[object "+o_(this)+"]"},a_=Dy.f,l_=Tb("toStringTag"),u_=function(t,e,i,n){if(t){var r=i?t:t.prototype;Yy(r,l_)||a_(r,l_,{configurable:!0,value:e}),n&&!i_&&Oy(r,"toString",s_)}},h_=Eb.IteratorPrototype,c_=function(){return this},d_=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return wy(i),function(t){if(!vy(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),f_=function(t,e,i,n){n&&n.enumerable?t[e]=i:Oy(t,e,i)},p_=Eb.IteratorPrototype,m_=Eb.BUGGY_SAFARI_ITERATORS,v_=Tb("iterator"),g_=function(){return this},y_=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=t_(h_,{next:xy(1,i)}),u_(t,n,!1,!0),dy[n]=c_}(i,e,n);var a,l,u,h=function(t){if(t===r&&m)return m;if(!m_&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,p=f[v_]||f["@@iterator"]||r&&f[r],m=!m_&&p||h(r),v="Array"==e&&f.entries||p;if(v&&(a=kb(v.call(new t)),p_!==Object.prototype&&a.next&&(u_(a,c,!0,!0),dy[c]=g_)),"values"==r&&p&&"values"!==p.name&&(d=!0,m=function(){return p.call(this)}),s&&f[v_]!==m&&Oy(f,v_,m),dy[e]=m,r)if(l={values:h("values"),keys:o?m:h("keys"),entries:h("entries")},s)for(u in l)!m_&&!d&&u in f||f_(f,u,l[u]);else gb({target:e,proto:!0,forced:m_||d},l);return l},b_=Qy.set,__=Qy.getterFor("Array Iterator");y_(Array,"Array",(function(t,e){b_(this,{type:"Array Iterator",target:cy(t),index:0,kind:e})}),(function(){var t=__(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");dy.Arguments=dy.Array;var w_=Tb("toStringTag");for(var k_ in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var S_=py[k_],D_=S_&&S_.prototype;D_&&o_(D_)!==w_&&Oy(D_,w_,k_),dy[k_]=dy.Array}var x_=Array.isArray||function(t){return"Array"==ay(t)},O_=Tb("species"),M_=function(t,e){var i;return x_(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!x_(i.prototype)?vy(i)&&null===(i=i[O_])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},T_=[].push,C_=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=yb(a),p=uy(f),m=pb(l,u,3),v=Yb(p.length),g=0,y=h||M_,b=e?y(a,v):i?y(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)b[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:T_.call(b,c)}else if(r)return!1;return o?-1:n||r?r:b}},P_={forEach:C_(0),map:C_(1),filter:C_(2),some:C_(3),every:C_(4),find:C_(5),findIndex:C_(6)},E_=function(t,e){var i=[][t];return!!i&&oy((function(){i.call(null,e||function(){throw 1},1)}))},A_=Object.defineProperty,L_={},I_=function(t){throw t},j_=function(t,e){if(Yy(L_,t))return L_[t];e||(e={});var i=[][t],n=!!Yy(e,"ACCESSORS")&&e.ACCESSORS,r=Yy(e,0)?e[0]:I_,o=Yy(e,1)?e[1]:void 0;return L_[t]=!!i&&!oy((function(){if(n&&!my)return!0;var t={length:-1};n?A_(t,1,{enumerable:!0,get:I_}):t[1]=1,i.call(t,r,o)}))},Y_=P_.forEach,N_=E_("forEach"),R_=j_("forEach"),F_=N_&&R_?[].forEach:function(t){return Y_(this,t,arguments.length>1?arguments[1]:void 0)};gb({target:"Array",proto:!0,forced:[].forEach!=F_},{forEach:F_});var H_,G_,z_=function(t){return db[t+"Prototype"]},W_=z_("Array").forEach,V_=Array.prototype,U_={DOMTokenList:!0,NodeList:!0},B_=function(t){var e=t.forEach;return t===V_||t instanceof Array&&e===V_.forEach||U_.hasOwnProperty(o_(t))?W_:e},X_=qb("navigator","userAgent")||"",q_=py.process,Z_=q_&&q_.versions,J_=Z_&&Z_.v8;J_?G_=(H_=J_.split("."))[0]+H_[1]:X_&&(!(H_=X_.match(/Edge\/(\d+)/))||H_[1]>=74)&&(H_=X_.match(/Chrome\/(\d+)/))&&(G_=H_[1]);var $_=G_&&+G_,K_=Tb("species"),Q_=function(t){return $_>=51||!oy((function(){var e=[];return(e.constructor={})[K_]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},tw=P_.filter,ew=Q_("filter"),iw=j_("filter");gb({target:"Array",proto:!0,forced:!ew||!iw},{filter:function(t){return tw(this,t,arguments.length>1?arguments[1]:void 0)}});var nw=z_("Array").filter,rw=Array.prototype,ow=function(t){var e=t.filter;return t===rw||t instanceof Array&&e===rw.filter?nw:e},sw=[].slice,aw=/MSIE .\./.test(X_),lw=function(t){return function(e,i){var n=arguments.length>2,r=n?sw.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};gb({global:!0,bind:!0,forced:aw},{setTimeout:lw(py.setTimeout),setInterval:lw(py.setInterval)});var uw=db.setTimeout,hw=[].slice,cw={},dw=function(t,e,i){if(!(e in cw)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";cw[e]=Function("C,a","return new C("+n.join(",")+")")}return cw[e](t,i)},fw=Function.bind||function(t){var e=fb(this),i=hw.call(arguments,1),n=function(){var r=i.concat(hw.call(arguments));return this instanceof n?dw(e,r.length,r):e.apply(t,r)};return vy(e.prototype)&&(n.prototype=e.prototype),n};gb({target:"Function",proto:!0},{bind:fw});var pw=z_("Function").bind,mw=Function.prototype,vw=function(t){var e=t.bind;return t===mw||t instanceof Function&&e===mw.bind?pw:e};gb({target:"Array",stat:!0},{isArray:x_});var gw=db.Array.isArray,yw=gw;var bw=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};gb({target:"Object",stat:!0,forced:!my,sham:!my},{defineProperty:Dy.f});var _w=n((function(t){var e=db.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),ww=_w;function kw(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),ww(t,n.key,n)}}var Sw=function(t,e,i){return e&&kw(t.prototype,e),i&&kw(t,i),t},Dw={f:Tb},xw=Dy.f,Ow=function(t){var e=db.Symbol||(db.Symbol={});Yy(e,t)||xw(e,t,{value:Dw.f(t)})};Ow("iterator");var Mw=function(t){return function(e,i){var n,r,o=String(hy(e)),s=Ib(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Tw={codeAt:Mw(!1),charAt:Mw(!0)}.charAt,Cw=Qy.set,Pw=Qy.getterFor("String Iterator");y_(String,"String",(function(t){Cw(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Pw(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Tw(i,n),e.index+=t.length,{value:t,done:!1})}));var Ew=Dw.f("iterator"),Aw=function(t,e,i){var n=ky(e);n in t?Dy.f(t,n,xy(0,i)):t[n]=i},Lw=Tb("isConcatSpreadable"),Iw=$_>=51||!oy((function(){var t=[];return t[Lw]=!1,t.concat()[0]!==t})),jw=Q_("concat"),Yw=function(t){if(!vy(t))return!1;var e=t[Lw];return void 0!==e?!!e:x_(t)};gb({target:"Array",proto:!0,forced:!Iw||!jw},{concat:function(t){var e,i,n,r,o,s=yb(this),a=M_(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],Yw(o)){if(l+(r=Yb(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&Aw(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Aw(a,l++,o)}return a.length=l,a}});var Nw=Vb.concat("length","prototype"),Rw={f:Object.getOwnPropertyNames||function(t){return Wb(t,Nw)}},Fw=Rw.f,Hw={}.toString,Gw="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zw={f:function(t){return Gw&&"[object Window]"==Hw.call(t)?function(t){try{return Fw(t)}catch(t){return Gw.slice()}}(t):Fw(cy(t))}},Ww={f:Object.getOwnPropertySymbols},Vw=P_.forEach,Uw=zy("hidden"),Bw=Tb("toPrimitive"),Xw=Qy.set,qw=Qy.getterFor("Symbol"),Zw=Object.prototype,Jw=py.Symbol,$w=qb("JSON","stringify"),Kw=rb.f,Qw=Dy.f,tk=zw.f,ek=ib.f,ik=Ny("symbols"),nk=Ny("op-symbols"),rk=Ny("string-to-symbol-registry"),ok=Ny("symbol-to-string-registry"),sk=Ny("wks"),ak=py.QObject,lk=!ak||!ak.prototype||!ak.prototype.findChild,uk=my&&oy((function(){return 7!=t_(Qw({},"a",{get:function(){return Qw(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Kw(Zw,e);n&&delete Zw[e],Qw(t,e,i),n&&t!==Zw&&Qw(Zw,e,n)}:Qw,hk=function(t,e){var i=ik[t]=t_(Jw.prototype);return Xw(i,{type:"Symbol",tag:t,description:e}),my||(i.description=e),i},ck=Db?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Jw},dk=function(t,e,i){t===Zw&&dk(nk,e,i),wy(t);var n=ky(e,!0);return wy(i),Yy(ik,n)?(i.enumerable?(Yy(t,Uw)&&t[Uw][n]&&(t[Uw][n]=!1),i=t_(i,{enumerable:xy(0,!1)})):(Yy(t,Uw)||Qw(t,Uw,xy(1,{})),t[Uw][n]=!0),uk(t,n,i)):Qw(t,n,i)},fk=function(t,e){wy(t);var i=cy(e),n=Ub(i).concat(gk(i));return Vw(n,(function(e){my&&!pk.call(i,e)||dk(t,e,i[e])})),t},pk=function(t){var e=ky(t,!0),i=ek.call(this,e);return!(this===Zw&&Yy(ik,e)&&!Yy(nk,e))&&(!(i||!Yy(this,e)||!Yy(ik,e)||Yy(this,Uw)&&this[Uw][e])||i)},mk=function(t,e){var i=cy(t),n=ky(e,!0);if(i!==Zw||!Yy(ik,n)||Yy(nk,n)){var r=Kw(i,n);return!r||!Yy(ik,n)||Yy(i,Uw)&&i[Uw][n]||(r.enumerable=!0),r}},vk=function(t){var e=tk(cy(t)),i=[];return Vw(e,(function(t){Yy(ik,t)||Yy(Wy,t)||i.push(t)})),i},gk=function(t){var e=t===Zw,i=tk(e?nk:cy(t)),n=[];return Vw(i,(function(t){!Yy(ik,t)||e&&!Yy(Zw,t)||n.push(ik[t])})),n};if(Sb||(f_((Jw=function(){if(this instanceof Jw)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Hy(t),i=function(t){this===Zw&&i.call(nk,t),Yy(this,Uw)&&Yy(this[Uw],e)&&(this[Uw][e]=!1),uk(this,e,xy(1,t))};return my&&lk&&uk(Zw,e,{configurable:!0,set:i}),hk(e,t)}).prototype,"toString",(function(){return qw(this).tag})),f_(Jw,"withoutSetter",(function(t){return hk(Hy(t),t)})),ib.f=pk,Dy.f=dk,rb.f=mk,Rw.f=zw.f=vk,Ww.f=gk,Dw.f=function(t){return hk(Tb(t),t)},my&&Qw(Jw.prototype,"description",{configurable:!0,get:function(){return qw(this).description}})),gb({global:!0,wrap:!0,forced:!Sb,sham:!Sb},{Symbol:Jw}),Vw(Ub(sk),(function(t){Ow(t)})),gb({target:"Symbol",stat:!0,forced:!Sb},{for:function(t){var e=String(t);if(Yy(rk,e))return rk[e];var i=Jw(e);return rk[e]=i,ok[i]=e,i},keyFor:function(t){if(!ck(t))throw TypeError(t+" is not a symbol");if(Yy(ok,t))return ok[t]},useSetter:function(){lk=!0},useSimple:function(){lk=!1}}),gb({target:"Object",stat:!0,forced:!Sb,sham:!my},{create:function(t,e){return void 0===e?t_(t):fk(t_(t),e)},defineProperty:dk,defineProperties:fk,getOwnPropertyDescriptor:mk}),gb({target:"Object",stat:!0,forced:!Sb},{getOwnPropertyNames:vk,getOwnPropertySymbols:gk}),gb({target:"Object",stat:!0,forced:oy((function(){Ww.f(1)}))},{getOwnPropertySymbols:function(t){return Ww.f(yb(t))}}),$w){var yk=!Sb||oy((function(){var t=Jw();return"[null]"!=$w([t])||"{}"!=$w({a:t})||"{}"!=$w(Object(t))}));gb({target:"JSON",stat:!0,forced:yk},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(vy(e)||void 0!==t)&&!ck(t))return x_(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ck(e))return e}),r[1]=e,$w.apply(null,r)}})}Jw.prototype[Bw]||Oy(Jw.prototype,Bw,Jw.prototype.valueOf),u_(Jw,"Symbol"),Wy[Uw]=!0,Ow("asyncIterator"),Ow("hasInstance"),Ow("isConcatSpreadable"),Ow("match"),Ow("matchAll"),Ow("replace"),Ow("search"),Ow("species"),Ow("split"),Ow("toPrimitive"),Ow("toStringTag"),Ow("unscopables"),u_(Math,"Math",!0),u_(py.JSON,"JSON",!0);var bk=db.Symbol;Ow("asyncDispose"),Ow("dispose"),Ow("observable"),Ow("patternMatch"),Ow("replaceAll");var _k=bk,wk=n((function(t){function e(i){return t.exports=e="function"==typeof _k&&"symbol"==typeof Ew?function(t){return typeof t}:function(t){return t&&"function"==typeof _k&&t.constructor===_k&&t!==_k.prototype?"symbol":typeof t},e(i)}t.exports=e}));var kk=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Sk=function(t,e){return!e||"object"!==wk(e)&&"function"!=typeof e?kk(t):e},Dk=oy((function(){kb(1)}));gb({target:"Object",stat:!0,forced:Dk,sham:!bb},{getPrototypeOf:function(t){return kb(yb(t))}});var xk=db.Object.getPrototypeOf;gb({target:"Object",stat:!0},{setPrototypeOf:d_});var Ok=db.Object.setPrototypeOf,Mk=n((function(t){function e(i){return t.exports=e=Ok?xk:function(t){return t.__proto__||xk(t)},e(i)}t.exports=e}));gb({target:"Object",stat:!0,sham:!my},{create:t_});var Tk=db.Object,Ck=function(t,e){return Tk.create(t,e)},Pk=Ck,Ek=n((function(t){function e(i,n){return t.exports=e=Ok||function(t,e){return t.__proto__=e,t},e(i,n)}t.exports=e}));var Ak=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Pk(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ek(t,e)},Lk="undefined"!=typeof window&&window.moment||r,Ik=_w;gb({target:"Object",stat:!0,forced:!my,sham:!my},{defineProperties:Bb});var jk=n((function(t){var e=db.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Yk=qb("Reflect","ownKeys")||function(t){var e=Rw.f(wy(t)),i=Ww.f;return i?e.concat(i(t)):e};gb({target:"Object",stat:!0,sham:!my},{getOwnPropertyDescriptors:function(t){for(var e,i,n=cy(t),r=rb.f,o=Yk(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&Aw(s,e,i);return s}});var Nk=db.Object.getOwnPropertyDescriptors,Rk=rb.f,Fk=oy((function(){Rk(1)}));gb({target:"Object",stat:!0,forced:!my||Fk,sham:!my},{getOwnPropertyDescriptor:function(t,e){return Rk(cy(t),e)}});var Hk=n((function(t){var e=db.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Gk=db.Object.getOwnPropertySymbols;var zk=function(t,e,i){return e in t?ww(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},Wk=oy((function(){Ub(1)}));gb({target:"Object",stat:!0,forced:Wk},{keys:function(t){return Ub(yb(t))}});var Vk=db.Object.keys,Uk=function(t){return function(e,i,n,r){fb(i);var o=yb(e),s=uy(o),a=Yb(o.length),l=t?a-1:0,u=t?-1:1;if(n<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=i(r,s[l],l,o));return r}},Bk={left:Uk(!1),right:Uk(!0)}.left,Xk=E_("reduce"),qk=j_("reduce",{1:0});gb({target:"Array",proto:!0,forced:!Xk||!qk},{reduce:function(t){return Bk(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Zk=z_("Array").reduce,Jk=Array.prototype,$k=function(t){var e=t.reduce;return t===Jk||t instanceof Array&&e===Jk.reduce?Zk:e},Kk=P_.map,Qk=Q_("map"),tS=j_("map");gb({target:"Array",proto:!0,forced:!Qk||!tS},{map:function(t){return Kk(this,t,arguments.length>1?arguments[1]:void 0)}});var eS=z_("Array").map,iS=Array.prototype,nS=function(t){var e=t.map;return t===iS||t instanceof Array&&e===iS.map?eS:e};function rS(t,e){var i=Vk(t);if(Gk){var n=Gk(t);e&&(n=ow(n).call(n,(function(e){return Hk(t,e).enumerable}))),i.push.apply(i,n)}return i}var oS=/^\/?Date\((-?\d+)/i;function sS(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return Qr(t)&&!isNaN(Date.parse(t))?r(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if($r(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(r.isMoment(t))return new Date(t.valueOf());if(Qr(t))return(i=oS.exec(t))?new Date(Number(i[1])):r(new Date(t)).toDate();throw new Error("Cannot convert object of type "+ho(t)+" to type Date");case"Moment":if($r(t))return r(t);if(t instanceof Date)return r(t.valueOf());if(r.isMoment(t))return r(t);if(Qr(t))return i=oS.exec(t),r(i?Number(i[1]):t);throw new Error("Cannot convert object of type "+ho(t)+" to type Date");case"ISODate":if($r(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(r.isMoment(t))return t.toDate().toISOString();if(Qr(t))return(i=oS.exec(t))?new Date(Number(i[1])).toISOString():r(t).format();throw new Error("Cannot convert object of type "+ho(t)+" to type ISODate");case"ASPDate":if($r(t))return"/Date("+t+")/";if(t instanceof Date||r.isMoment(t))return"/Date("+t.valueOf()+")/";if(Qr(t))return"/Date("+((i=oS.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+ho(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function aS(t){var e,i,n,r,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},l=t._idProp,u=new ny({fieldId:l}),h=nS(e=wl(t)).call(e,(function(t){var e;return $k(e=Vk(t)).call(e,(function(e,i){return e[i]=sS(t[i],a[i]),e}),{})})).to(u);return h.all().start(),{add:function(){var e;return(e=t.getDataSet()).add.apply(e,arguments)},remove:function(){var e;return(e=t.getDataSet()).remove.apply(e,arguments)},update:function(){var e;return(e=t.getDataSet()).update.apply(e,arguments)},updateOnly:function(){var e;return(e=t.getDataSet()).updateOnly.apply(e,arguments)},forEach:vw(i=B_(u)).call(i,u),get:vw(n=u.get).call(n,u),getIds:vw(r=u.getIds).call(r,u),off:vw(o=u.off).call(o,u),on:vw(s=u.on).call(s,u),get length(){return u.length},idProp:l,type:a,rawDS:t,coercedDS:u,dispose:function(){return h.stop()}}}var lS=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)B_(i=rS(Object(n),!0)).call(i,(function(e){zk(t,e,n[e])}));else if(Nk)jk(t,Nk(n));else{var r;B_(r=rS(Object(n))).call(r,(function(e){Ik(t,e,Hk(n,e))}))}}return t}({},ts,{convert:sS}),uS="\t\n\v\f\r \u2028\u2029\ufeff",hS="["+uS+"]",cS=RegExp("^"+hS+hS+"*"),dS=RegExp(hS+hS+"*$"),fS=function(t){return function(e){var i=String(hy(e));return 1&t&&(i=i.replace(cS,"")),2&t&&(i=i.replace(dS,"")),i}},pS={start:fS(1),end:fS(2),trim:fS(3)},mS=pS.trim,vS=py.parseFloat,gS=1/vS(uS+"-0")!=-1/0?function(t){var e=mS(String(t)),i=vS(e);return 0===i&&"-"==e.charAt(0)?-0:i}:vS;gb({global:!0,forced:parseFloat!=gS},{parseFloat:gS});var yS=db.parseFloat;gb({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var bS=db.Date.now,_S=qb("JSON","stringify"),wS=/[\uD800-\uDFFF]/g,kS=/^[\uD800-\uDBFF]$/,SS=/^[\uDC00-\uDFFF]$/,DS=function(t,e,i){var n=i.charAt(e-1),r=i.charAt(e+1);return kS.test(t)&&!SS.test(r)||SS.test(t)&&!kS.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},xS=oy((function(){return'"\\udf06\\ud834"'!==_S("\udf06\ud834")||'"\\udead"'!==_S("\udead")}));_S&&gb({target:"JSON",stat:!0,forced:xS},{stringify:function(t,e,i){var n=_S.apply(null,arguments);return"string"==typeof n?n.replace(wS,DS):n}}),db.JSON||(db.JSON={stringify:JSON.stringify});var OS=function(t,e,i){return db.JSON.stringify.apply(null,arguments)},MS=z_("Array").concat,TS=Array.prototype,CS=function(t){var e=t.concat;return t===TS||t instanceof Array&&e===TS.concat?MS:e},PS=function(){function t(e,i){bw(this,t),this.options=null,this.props=null}return Sw(t,[{key:"setOptions",value:function(t){t&&lS.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}(),ES=[],AS=ES.sort,LS=oy((function(){ES.sort(void 0)})),IS=oy((function(){ES.sort(null)})),jS=E_("sort");gb({target:"Array",proto:!0,forced:LS||!IS||!jS},{sort:function(t){return void 0===t?AS.call(yb(this)):AS.call(yb(this),fb(t))}});var YS=z_("Array").sort,NS=Array.prototype,RS=function(t){var e=t.sort;return t===NS||t instanceof Array&&e===NS.sort?YS:e};gb({target:"String",proto:!0},{repeat:"".repeat||function(t){var e=String(hy(this)),i="",n=Ib(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i}});var FS=z_("String").repeat,HS=String.prototype,GS=function(t){var e=t.repeat;return"string"==typeof t||t===HS||t instanceof String&&e===HS.repeat?FS:e};function zS(t,e,i){if(i&&!yw(i))return zS(t,e,[i]);if(e.hiddenDates=[],i&&1==yw(i)){for(var n,r=0;r<i.length;r++)if(void 0===GS(i[r])){var o={};o.start=t(i[r].start).toDate().valueOf(),o.end=t(i[r].end).toDate().valueOf(),e.hiddenDates.push(o)}RS(n=e.hiddenDates).call(n,(function(t,e){return t.start-e.start}))}}function WS(t,e,i){if(i&&!yw(i))return WS(t,e,[i]);if(i&&void 0!==e.domProps.centerContainer.width){zS(t,e,i);for(var n=t(e.range.start),r=t(e.range.end),o=(e.range.end-e.range.start)/e.domProps.centerContainer.width,s=0;s<i.length;s++)if(void 0!==GS(i[s])){var a=t(i[s].start),l=t(i[s].end);if("Invalid Date"==a._d)throw new Error("Supplied start date is not valid: ".concat(i[s].start));if("Invalid Date"==l._d)throw new Error("Supplied end date is not valid: ".concat(i[s].end));if(l-a>=4*o){var u=0,h=r.clone();switch(GS(i[s])){case"daily":a.day()!=l.day()&&(u=1),a.dayOfYear(n.dayOfYear()),a.year(n.year()),a.subtract(7,"days"),l.dayOfYear(n.dayOfYear()),l.year(n.year()),l.subtract(7-u,"days"),h.add(1,"weeks");break;case"weekly":var c=l.diff(a,"days"),d=a.day();a.date(n.date()),a.month(n.month()),a.year(n.year()),l=a.clone(),a.day(d),l.day(d),l.add(c,"days"),a.subtract(1,"weeks"),l.subtract(1,"weeks"),h.add(1,"weeks");break;case"monthly":a.month()!=l.month()&&(u=1),a.month(n.month()),a.year(n.year()),a.subtract(1,"months"),l.month(n.month()),l.year(n.year()),l.subtract(1,"months"),l.add(u,"months"),h.add(1,"months");break;case"yearly":a.year()!=l.year()&&(u=1),a.year(n.year()),a.subtract(1,"years"),l.year(n.year()),l.subtract(1,"years"),l.add(u,"years"),h.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",GS(i[s]))}for(;a<h;)switch(e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()}),GS(i[s])){case"daily":a.add(1,"days"),l.add(1,"days");break;case"weekly":a.add(1,"weeks"),l.add(1,"weeks");break;case"monthly":a.add(1,"months"),l.add(1,"months");break;case"yearly":a.add(1,"y"),l.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",GS(i[s]))}e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()})}}VS(e);var f=tD(e.range.start,e.hiddenDates),p=tD(e.range.end,e.hiddenDates),m=e.range.start,v=e.range.end;1==f.hidden&&(m=1==e.range.startToFront?f.startDate-1:f.endDate+1),1==p.hidden&&(v=1==e.range.endToFront?p.startDate-1:p.endDate+1),1!=f.hidden&&1!=p.hidden||e.range._applyRange(m,v)}}function VS(t){for(var e,i=t.hiddenDates,n=[],r=0;r<i.length;r++)for(var o=0;o<i.length;o++)r!=o&&1!=i[o].remove&&1!=i[r].remove&&(i[o].start>=i[r].start&&i[o].end<=i[r].end?i[o].remove=!0:i[o].start>=i[r].start&&i[o].start<=i[r].end?(i[r].end=i[o].end,i[o].remove=!0):i[o].end>=i[r].start&&i[o].end<=i[r].end&&(i[r].start=i[o].start,i[o].remove=!0));for(r=0;r<i.length;r++)!0!==i[r].remove&&n.push(i[r]);t.hiddenDates=n,RS(e=t.hiddenDates).call(e,(function(t,e){return t.start-e.start}))}function US(t,e,i){for(var n=!1,r=e.current.valueOf(),o=0;o<e.hiddenDates.length;o++){var s=e.hiddenDates[o].start,a=e.hiddenDates[o].end;if(r>=s&&r<a){n=!0;break}}if(1==n&&r<e._end.valueOf()&&r!=i){var l=t(i),u=t(a);l.year()!=u.year()?e.switchedYear=!0:l.month()!=u.month()?e.switchedMonth=!0:l.dayOfYear()!=u.dayOfYear()&&(e.switchedDay=!0),e.current=u}}function BS(t,e,i){var n;if(0==t.body.hiddenDates.length)return n=t.range.conversion(i),(e.valueOf()-n.offset)*n.scale;var r=tD(e,t.body.hiddenDates);1==r.hidden&&(e=r.startDate);var o=qS(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){n=t.range.conversion(i,o);var s=ZS(t.body.hiddenDates,e,n.offset);return e=t.options.moment(e).toDate().valueOf(),e+=s,-(n.offset-e.valueOf())*n.scale}if(e>t.range.end){var a={start:t.range.start,end:e};return e=JS(t.options.moment,t.body.hiddenDates,a,e),n=t.range.conversion(i,o),(e.valueOf()-n.offset)*n.scale}return e=JS(t.options.moment,t.body.hiddenDates,t.range,e),n=t.range.conversion(i,o),(e.valueOf()-n.offset)*n.scale}function XS(t,e,i){if(0==t.body.hiddenDates.length){var n=t.range.conversion(i);return new Date(e/n.scale+n.offset)}var r=qS(t.body.hiddenDates,t.range.start,t.range.end),o=(t.range.end-t.range.start-r)*e/i,s=KS(t.body.hiddenDates,t.range,o);return new Date(s+o+t.range.start)}function qS(t,e,i){for(var n=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<i&&(n+=s-o)}return n}function ZS(t,e,i){for(var n=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<=i&&(n+=s-o)}return n}function JS(t,e,i,n){return n=t(n).toDate().valueOf(),n-=$S(t,e,i,n)}function $S(t,e,i,n){var r=0;n=t(n).toDate().valueOf();for(var o=0;o<e.length;o++){var s=e[o].start,a=e[o].end;s>=i.start&&a<i.end&&n>=a&&(r+=a-s)}return r}function KS(t,e,i){for(var n=0,r=0,o=e.start,s=0;s<t.length;s++){var a=t[s].start,l=t[s].end;if(a>=e.start&&l<e.end){if(r+=a-o,o=l,r>=i)break;n+=l-a}}return n}function QS(t,e,i,n){var r=tD(e,t);return 1==r.hidden?i<0?1==n?r.startDate-(r.endDate-e)-1:r.startDate-1:1==n?r.endDate+(e-r.startDate)+1:r.endDate+1:e}function tD(t,e){for(var i=0;i<e.length;i++){var n=e[i].start,r=e[i].end;if(t>=n&&t<r)return{hidden:!0,startDate:n,endDate:r}}return{hidden:!1,startDate:n,endDate:r}}var eD=Object.freeze({convertHiddenOptions:zS,updateHiddenDates:WS,removeDuplicates:VS,printDates:function(t){for(var e=0;e<t.length;e++)console.log(e,new Date(t[e].start),new Date(t[e].end),t[e].start,t[e].end,t[e].remove)},stepOverHiddenDates:US,toScreen:BS,toTime:XS,getHiddenDurationBetween:qS,getHiddenDurationBeforeStart:ZS,correctTimeForHidden:JS,getHiddenDurationBefore:$S,getAccumulatedHiddenDuration:KS,snapAwayFromHidden:QS,getIsHidden:tD}),iD=function(t){function e(t,i){var n,r,o,s,a,l,u,h;bw(this,e),h=Sk(this,Mk(e).call(this));var c=Lk().hours(0).minutes(0).seconds(0).milliseconds(0),d=c.clone().add(-3,"days").valueOf(),f=c.clone().add(3,"days").valueOf();return h.millisecondsPerPixelCache=void 0,void 0===i?(h.start=d,h.end=f):(h.start=i.start||d,h.end=i.end||f),h.rolling=!1,h.body=t,h.deltaDifference=0,h.scaleOffset=0,h.startToFront=!1,h.endToFront=!0,h.defaultOptions={rtl:!1,start:null,end:null,moment:Lk,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},h.options=lS.extend({},h.defaultOptions),h.props={touch:{}},h.animationTimer=null,h.body.emitter.on("panstart",vw(n=h._onDragStart).call(n,kk(h))),h.body.emitter.on("panmove",vw(r=h._onDrag).call(r,kk(h))),h.body.emitter.on("panend",vw(o=h._onDragEnd).call(o,kk(h))),h.body.emitter.on("mousewheel",vw(s=h._onMouseWheel).call(s,kk(h))),h.body.emitter.on("touch",vw(a=h._onTouch).call(a,kk(h))),h.body.emitter.on("pinch",vw(l=h._onPinch).call(l,kk(h))),h.body.dom.rollingModeBtn.addEventListener("click",vw(u=h.startRolling).call(u,kk(h))),h.setOptions(i),h}return Ak(e,t),Sw(e,[{key:"setOptions",value:function(t){if(t){lS.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(){var t=this;!function e(){t.stopRolling(),t.rolling=!0;var i=t.end-t.start,n=lS.convert(new Date,"Date").valueOf(),r=t.options.rollingMode&&t.options.rollingMode.offset||.5,o=n-i*r,s=n+i*(1-r);t.setRange(o,s,{animation:!1}),(i=1/t.conversion(t.body.domProps.center.width).scale/10)<30&&(i=30),i>1e3&&(i=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=uw(e,i)}()}},{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,r){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var o=this,s=null!=t?lS.convert(t,"Date").valueOf():null,a=null!=e?lS.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var l,u=this.start,h=this.end,c="object"===wk(i.animation)&&"duration"in i.animation?i.animation.duration:500,d="object"===wk(i.animation)&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",f=lS.easingFunctions[d];if(!f)throw new Error(CS(l="Unknown easing function ".concat(OS(d),". Choose from: ")).call(l,Vk(lS.easingFunctions).join(", ")));var p=bS(),m=!1;return function t(){if(!o.props.touch.dragging){var e=bS()-p,l=f(e/c),d=e>c,g=d||null===s?s:u+(s-u)*l,y=d||null===a?a:h+(a-h)*l;v=o._applyRange(g,y),WS(o.options.moment,o.body,o.options.hiddenDates),m=m||v;var b={start:new Date(o.start),end:new Date(o.end),byUser:i.byUser,event:i.event};if(r&&r(l,v,d),v&&o.body.emitter.emit("rangechange",b),d){if(m&&(o.body.emitter.emit("rangechanged",b),n))return n()}else o.animationTimer=uw(t,20)}}()}var v=this._applyRange(s,a);if(WS(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(o.timeoutID),o.timeoutID=uw((function(){o.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?lS.convert(t,"Date").valueOf():this.start,r=null!=e?lS.convert(e,"Date").valueOf():this.end,o=null!=this.options.max?lS.convert(this.options.max,"Date").valueOf():null,s=null!=this.options.min?lS.convert(this.options.min,"Date").valueOf():null;if(isNaN(n)||null===n)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(r)||null===r)throw new Error('Invalid end "'.concat(e,'"'));if(r<n&&(r=n),null!==s&&n<s&&(n+=i=s-n,r+=i,null!=o&&r>o&&(r=o)),null!==o&&r>o&&(n-=i=r-o,r-=i,null!=s&&n<s&&(n=s)),null!==this.options.zoomMin){var a=yS(this.options.zoomMin);if(a<0&&(a=0),r-n<a){this.end-this.start===a&&n>=this.start-.5&&r<=this.end?(n=this.start,r=this.end):(n-=(i=a-(r-n))/2,r+=i/2)}}if(null!==this.options.zoomMax){var l=yS(this.options.zoomMax);l<0&&(l=0),r-n>l&&(this.end-this.start===l&&n<this.start&&r>this.end?(n=this.start,r=this.end):(n+=(i=r-n-l)/2,r-=i/2))}var u=this.start!=n||this.end!=r;return n>=this.start&&n<=this.end||r>=this.start&&r<=this.end||this.start>=n&&this.start<=r||this.end>=n&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=n,this.end=r,u}},{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;nD(e);var i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var n=this.props.touch.end-this.props.touch.start;n-=qS(this.body.hiddenDates,this.start,this.end);var r,o="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;r=this.options.rtl?i/o*n:-i/o*n;var s=this.props.touch.start+r,a=this.props.touch.end+r,l=QS(this.body.hiddenDates,s,this.previousDelta-i,!0),u=QS(this.body.hiddenDates,a,this.previousDelta-i,!0);if(l!=s||u!=a)return this.deltaDifference+=i,this.props.touch.start=l,this.props.touch.end=u,void this._onDrag(t);this.previousDelta=i,this._applyRange(s,a);var h=new Date(this.start),c=new Date(this.end);this.body.emitter.emit("rangechange",{start:h,end:c,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,r=this.options.zoomFriction||5;if(i=e<0?1-e/r:1/(1+e/r),this.rolling){var o=this.options.rollingMode&&this.options.rollingMode.offset||.5;n=this.start+(this.end-this.start)*o}else{var s=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);n=this._pointerToDate(s)}this.zoom(i,n,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.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,lS.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){lS.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),i=this.props.touch.centerDate,n=qS(this.body.hiddenDates,this.start,this.end),r=$S(this.options.moment,this.body.hiddenDates,this,i),o=n-r,s=i-r+(this.props.touch.start-(i-r))*e,a=i+o+(this.props.touch.end-(i+o))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var l=QS(this.body.hiddenDates,s,1-e,!0),u=QS(this.body.hiddenDates,a,e-1,!0);l==s&&u==a||(this.props.touch.start=l,this.props.touch.end=u,this.scaleOffset=1-t.scale,s=l,a=u);var h={animation:!1,byUser:!0,event:t};this.setRange(s,a,h),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e=t.center?t.center.x:t.clientX,i=this.body.dom.centerContainer.getBoundingClientRect(),n=this.options.rtl?e-i.left:i.right-e,r=this.body.util.toTime(n);return r>=this.start&&r<=this.end}},{key:"_pointerToDate",value:function(t){var e,i=this.options.direction;if(nD(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();var n=this.body.domProps.center.height;return e=this.conversion(n),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){var i=e.getBoundingClientRect();return this.options.rtl?{x:i.right-t.x,y:t.y-i.top}:{x:t.x-i.left,y:t.y-i.top}}},{key:"zoom",value:function(t,e,i,n){null==e&&(e=(this.start+this.end)/2);var r=qS(this.body.hiddenDates,this.start,this.end),o=$S(this.options.moment,this.body.hiddenDates,this,e),s=r-o,a=e-o+(this.start-(e-o))*t,l=e+s+(this.end-(e+s))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0);var u=QS(this.body.hiddenDates,a,i,!0),h=QS(this.body.hiddenDates,l,-i,!0);u==a&&h==l||(a=u,l=h);var c={animation:!1,byUser:!0,event:n};this.setRange(a,l,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}(PS);function nD(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var rD=db.setInterval,oD=P_.some,sD=E_("some"),aD=j_("some");gb({target:"Array",proto:!0,forced:!sD||!aD},{some:function(t){return oD(this,t,arguments.length>1?arguments[1]:void 0)}});var lD=z_("Array").some,uD=Array.prototype,hD=function(t){var e=t.some;return t===uD||t instanceof Array&&e===uD.some?lD:e},cD=Q_("splice"),dD=j_("splice",{ACCESSORS:!0,0:0,1:2}),fD=Math.max,pD=Math.min;gb({target:"Array",proto:!0,forced:!cD||!dD},{splice:function(t,e){var i,n,r,o,s,a,l=yb(this),u=Yb(l.length),h=Fb(t,u),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=u-h):(i=c-2,n=pD(fD(Ib(e),0),u-h)),u+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=M_(l,n),o=0;o<n;o++)(s=h+o)in l&&Aw(r,o,l[s]);if(r.length=n,i<n){for(o=h;o<u-n;o++)a=o+i,(s=o+n)in l?l[a]=l[s]:delete l[a];for(o=u;o>u-n+i;o--)delete l[o-1]}else if(i>n)for(o=u-n;o>h;o--)a=o+i-1,(s=o+n-1)in l?l[a]=l[s]:delete l[a];for(o=0;o<i;o++)l[o+h]=arguments[o+2];return l.length=u-n+i,r}});var mD=z_("Array").splice,vD=Array.prototype,gD=function(t){var e=t.splice;return t===vD||t instanceof Array&&e===vD.splice?mD:e},yD=Gb.indexOf,bD=[].indexOf,_D=!!bD&&1/[1].indexOf(1,-0)<0,wD=E_("indexOf"),kD=j_("indexOf",{ACCESSORS:!0,1:0});gb({target:"Array",proto:!0,forced:_D||!wD||!kD},{indexOf:function(t){return _D?bD.apply(this,arguments)||0:yD(this,t,arguments.length>1?arguments[1]:void 0)}});var SD=z_("Array").indexOf,DD=Array.prototype,xD=function(t){var e=t.indexOf;return t===DD||t instanceof Array&&e===DD.indexOf?SD:e},OD=MD;function MD(t){if(t)return function(t){for(var e in MD.prototype)t[e]=MD.prototype[e];return t}(t)}MD.prototype.on=MD.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},MD.prototype.once=function(t,e){var i=this;function n(){i.off(t,n),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},MD.prototype.off=MD.prototype.removeListener=MD.prototype.removeAllListeners=MD.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r=0;r<n.length;r++)if((i=n[r])===e||i.fn===e){n.splice(r,1);break}return this},MD.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),i=this._callbacks[t];if(i)for(var n=0,r=(i=i.slice(0)).length;n<r;++n)i[n].apply(this,e);return this},MD.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},MD.prototype.hasListeners=function(t){return!!this.listeners(t).length};var TD=n((function(t,e){var i;t.exports=(i=null,function t(e,n){var r=n||{preventDefault:!1};if(e.Manager){var o=e,s=function(e,i){var n=Object.create(r);return i&&o.assign(n,i),t(new o(e,n),n)};return o.assign(s,o),s.Manager=function(e,i){var n=Object.create(r);return i&&o.assign(n,i),t(new o.Manager(e,n),n)},s}var a=Object.create(e),l=e.element;function u(t){return t.match(/[^ ]+/g)}function h(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var n=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof n&&(t.srcEvent.stopPropagation=function(){n(),t.stopPropagation()}),t.firstTarget=i;for(var r=i;r&&!e;){var o=r.hammer;if(o)for(var s,a=0;a<o.length;a++)if(s=o[a]._handlers[t.type])for(var l=0;l<s.length&&!e;l++)s[l](t);r=r.parentNode}}return l.hammer||(l.hammer=[]),l.hammer.push(a),e.on("hammer.input",(function(t){!0!==r.preventDefault&&r.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(i=t.target)})),a._handlers={},a.on=function(t,i){return u(t).forEach((function(t){var n=a._handlers[t];n||(a._handlers[t]=n=[],e.on(t,h)),n.push(i)})),a},a.off=function(t,i){return u(t).forEach((function(t){var n=a._handlers[t];n&&((n=i?n.filter((function(t){return t!==i})):[]).length>0?a._handlers[t]=n:(e.off(t,h),delete a._handlers[t]))})),a},a.emit=function(t,n){i=n.target,e.emit(t,n)},a.destroy=function(){var t=e.element.hammer,i=t.indexOf(a);-1!==i&&t.splice(i,1),t.length||delete e.element.hammer,a._handlers={},e.destroy()},a})}));
|
||
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
||
* http://naver.github.io/egjs
|
||
*
|
||
* Forked By Naver egjs
|
||
* Copyright (c) hammerjs
|
||
* Licensed under the MIT license */function CD(){return(CD=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function PD(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ED(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var AD,LD="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign,ID=["","webkit","Moz","MS","ms","o"],jD="undefined"==typeof document?{style:{}}:document.createElement("div"),YD=Math.round,ND=Math.abs,RD=Date.now;function FD(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;o<ID.length;){if((n=(i=ID[o])?i+r:e)in t)return n;o++}}AD="undefined"==typeof window?{}:window;var HD=FD(jD.style,"touchAction"),GD=void 0!==HD;var zD=function(){if(!GD)return!1;var t={},e=AD.CSS&&AD.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||AD.CSS.supports("touch-action",i)})),t}(),WD="ontouchstart"in AD,VD=void 0!==FD(AD,"PointerEvent"),UD=WD&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),BD=["x","y"],XD=["clientX","clientY"];function qD(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function ZD(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function JD(t,e){return t.indexOf(e)>-1}var $D=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){"compute"===t&&(t=this.compute()),GD&&this.manager.element.style&&zD[t]&&(this.manager.element.style[HD]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return qD(this.manager.recognizers,(function(e){ZD(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(JD(t,"none"))return"none";var e=JD(t,"pan-x"),i=JD(t,"pan-y");return e&&i?"none":e||i?e?"pan-x":"pan-y":JD(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=JD(n,"none")&&!zD.none,o=JD(n,"pan-y")&&!zD["pan-y"],s=JD(n,"pan-x")&&!zD["pan-x"];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&6&i||s&&24&i?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function KD(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function QD(t){var e=t.length;if(1===e)return{x:YD(t[0].clientX),y:YD(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:YD(i/e),y:YD(n/e)}}function tx(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:YD(t.pointers[i].clientX),clientY:YD(t.pointers[i].clientY)},i++;return{timeStamp:RD(),pointers:e,center:QD(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ex(t,e,i){i||(i=BD);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function ix(t,e,i){i||(i=BD);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function nx(t,e){return t===e?1:ND(t)>=ND(e)?t<0?2:4:e<0?8:16}function rx(t,e,i){return{x:e/t||0,y:i/t||0}}function ox(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=tx(e)),r>1&&!i.firstMultiple?i.firstMultiple=tx(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=QD(n);e.timeStamp=RD(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=ix(a,l),e.distance=ex(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=nx(e.deltaX,e.deltaY);var u,h,c=rx(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=ND(c.x)>ND(c.y)?c.x:c.y,e.scale=s?(u=s.pointers,ex((h=n)[0],h[1],XD)/ex(u[0],u[1],XD)):1,e.rotation=s?function(t,e){return ix(e[1],e[0],XD)+ix(t[1],t[0],XD)}(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,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,h=rx(a,l,u);n=h.x,r=h.y,i=ND(h.x)>ND(h.y)?h.x:h.y,o=nx(l,u),t.lastInterval=e}else i=s.velocity,n=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}(i,e);var d,f=t.element,p=e.srcEvent;KD(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,f)&&(f=d),e.target=f}function sx(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=1&e&&n-r==0,s=12&e&&n-r==0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,ox(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function ax(t){return t.trim().split(/\s+/g)}function lx(t,e,i){qD(ax(e),(function(e){t.addEventListener(e,i,!1)}))}function ux(t,e,i){qD(ax(e),(function(e){t.removeEventListener(e,i,!1)}))}function hx(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var cx=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){ZD(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&lx(this.element,this.evEl,this.domHandler),this.evTarget&&lx(this.target,this.evTarget,this.domHandler),this.evWin&&lx(hx(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ux(this.element,this.evEl,this.domHandler),this.evTarget&&ux(this.target,this.evTarget,this.domHandler),this.evWin&&ux(hx(this.element),this.evWin,this.domHandler)},t}();function dx(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var fx={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},px={2:"touch",3:"pen",4:"mouse",5:"kinect"},mx="pointerdown",vx="pointermove pointerup pointercancel";AD.MSPointerEvent&&!AD.PointerEvent&&(mx="MSPointerDown",vx="MSPointerMove MSPointerUp MSPointerCancel");var gx=function(t){function e(){var i,n=e.prototype;return n.evEl=mx,n.evWin=vx,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return PD(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=fx[n],o=px[t.pointerType]||t.pointerType,s="touch"===o,a=dx(e,t.pointerId,"pointerId");1&r&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&r&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))},e}(cx);function yx(t){return Array.prototype.slice.call(t,0)}function bx(t,e,i){for(var n=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];dx(r,s)<0&&n.push(t[o]),r[o]=s,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var _x={touchstart:1,touchmove:2,touchend:4,touchcancel:8},wx=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return PD(e,t),e.prototype.handler=function(t){var e=_x[t.type],i=kx.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})},e}(cx);function kx(t,e){var i,n,r=yx(t.touches),o=this.targetIds;if(3&e&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=yx(t.changedTouches),a=[],l=this.target;if(n=r.filter((function(t){return KD(t.target,l)})),1===e)for(i=0;i<n.length;)o[n[i].identifier]=!0,i++;for(i=0;i<s.length;)o[s[i].identifier]&&a.push(s[i]),12&e&&delete o[s[i].identifier],i++;return a.length?[bx(n.concat(a),"identifier",!0),a]:void 0}var Sx={mousedown:1,mousemove:2,mouseup:4},Dx=function(t){function e(){var i,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(i=t.apply(this,arguments)||this).pressed=!1,i}return PD(e,t),e.prototype.handler=function(t){var e=Sx[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))},e}(cx);function xx(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function Ox(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,xx.call(this,e)):12&t&&xx.call(this,e)}function Mx(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),s=Math.abs(i-r.y);if(o<=25&&s<=25)return!0}return!1}var Tx=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var r="touch"===i.pointerType,o="mouse"===i.pointerType;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(r)Ox.call(ED(ED(n)),e,i);else if(o&&Mx.call(ED(ED(n)),i))return;n.callback(t,e,i)}},n.touch=new wx(n.manager,n.handler),n.mouse=new Dx(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return PD(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(cx)}();function Cx(t,e,i){return!!Array.isArray(t)&&(qD(t,i[e],i),!0)}var Px=1;function Ex(t,e){var i=e.manager;return i?i.get(t):t}function Ax(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Lx=function(){function t(t){void 0===t&&(t={}),this.options=CD({enable:!0},t),this.id=Px++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return LD(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Cx(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ex(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Cx(t,"dropRecognizeWith",this)?this:(t=Ex(t,this),delete this.simultaneous[t.id],this)},e.requireFailure=function(t){if(Cx(t,"requireFailure",this))return this;var e=this.requireFail;return-1===dx(e,t=Ex(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Cx(t,"dropRequireFailure",this))return this;t=Ex(t,this);var e=dx(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+Ax(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+Ax(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=LD({},t);if(!ZD(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),Ix=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,CD({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}PD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["manipulation"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||ex(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.interval),2):8}return 32},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=32}),this.options.interval),32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Lx),jx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,CD({pointers:1},e))||this}PD(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=6&e,r=this.attrTest(t);return n&&(8&i||!r)?16|e:n||r?4&i?8|e:2&e?4|e:2:32},e}(Lx);function Yx(t){return 16===t?"down":8===t?"up":2===t?"left":4===t?"right":""}var Nx=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,CD({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}PD(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,i=o!==this.pX,n=Math.abs(t.deltaX)):(r=0===s?1:s<0?8:16,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},i.attrTest=function(t){return jx.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=Yx(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(jx),Rx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,CD({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}PD(e,t);var i=e.prototype;return i.getTouchAction=function(){return Nx.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return 30&n?i=e.overallVelocity:6&n?i=e.overallVelocityX:24&n&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&ND(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=Yx(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(jx),Fx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,CD({event:"pinch",threshold:0,pointers:2},e))||this}PD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(jx),Hx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,CD({event:"rotate",threshold:0,pointers:2},e))||this}PD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(jx),Gx=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,CD({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}PD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["auto"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime>i.time;if(this._input=t,!r||!n||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(4&t.eventType)return 8;return 32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=RD(),this.manager.emit(this.options.event,this._input)))},e}(Lx),zx={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Wx=[[Hx,{enable:!1}],[Fx,{enable:!1},["rotate"]],[Rx,{direction:6}],[Nx,{direction:6},["swipe"]],[Ix],[Ix,{event:"doubletap",taps:2},["tap"]],[Gx]];function Vx(t,e){var i,n=t.element;n.style&&(qD(t.options.cssProps,(function(r,o){i=FD(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var Ux=function(){function t(t,e){var i,n=this;this.options=LD({},zx,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(VD?gx:UD?wx:WD?Tx:Dx))(i,sx),this.touchAction=new $D(this,this.options.touchAction),Vx(this,!0),qD(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return LD(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(e.curRecognizer=null,r=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||r&&i!==r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&14&i.state&&(e.curRecognizer=i,r=i),o++}},e.get=function(t){if(t instanceof Lx)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event===t)return e[i];return null},e.add=function(t){if(Cx(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(Cx(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=dx(i,e);-1!==n&&(i.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var i=this.handlers;return qD(ax(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var i=this.handlers;return qD(ax(t),(function(t){e?i[t]&&i[t].splice(dx(i[t],e),1):delete i[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var i=document.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},e.destroy=function(){this.element&&Vx(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Bx={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Xx=function(t){function e(){var i,n=e.prototype;return n.evTarget="touchstart",n.evWin="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).started=!1,i}return PD(e,t),e.prototype.handler=function(t){var e=Bx[t.type];if(1===e&&(this.started=!0),this.started){var i=qx.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}},e}(cx);function qx(t,e){var i=yx(t.touches),n=yx(t.changedTouches);return 12&e&&(i=bx(i.concat(n),"identifier",!0)),[i,n]}function Zx(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,n,i),t.apply(this,arguments)}}var Jx=Zx((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&void 0===t[n[r]])&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),$x=Zx((function(t,e){return Jx(t,e,!0)}),"merge","Use `assign`.");function Kx(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&LD(n,i)}function Qx(t,e){return function(){return t.apply(e,arguments)}}var tO,eO=function(){var t=function(t,e){return void 0===e&&(e={}),new Ux(t,CD({recognizers:Wx.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=16,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=24,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=16,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=32,t.Manager=Ux,t.Input=cx,t.TouchAction=$D,t.TouchInput=wx,t.MouseInput=Dx,t.PointerEventInput=gx,t.TouchMouseInput=Tx,t.SingleTouchInput=Xx,t.Recognizer=Lx,t.AttrRecognizer=jx,t.Tap=Ix,t.Pan=Nx,t.Swipe=Rx,t.Pinch=Fx,t.Rotate=Hx,t.Press=Gx,t.on=lx,t.off=ux,t.each=qD,t.merge=$x,t.extend=Jx,t.bindFn=Qx,t.assign=LD,t.inherit=Kx,t.bindFn=Qx,t.prefixed=FD,t.toArray=yx,t.inArray=dx,t.uniqueArray=bx,t.splitStr=ax,t.boolOrFn=ZD,t.hasParent=KD,t.addEventListeners=lx,t.removeEventListeners=ux,t.defaults=LD({},zx,{preset:Wx}),t}();"undefined"!=typeof window?tO=TD(window.Hammer||eO,{preventDefault:"mouse"}):tO=function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(e){return{set:t}}};var t};var iO=tO;function nO(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}var rO=pS.trim,oO=py.parseInt,sO=/^[+-]?0[Xx]/,aO=8!==oO(uS+"08")||22!==oO(uS+"0x16")?function(t,e){var i=rO(String(t));return oO(i,e>>>0||(sO.test(i)?16:10))}:oO;gb({global:!0,forced:parseInt!=aO},{parseInt:aO});var lO=db.parseInt,uO=function(){function t(e,i,n,r,o){bw(this,t),this.moment=o&&o.moment||Lk,this.options=o||{},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,yw(r)?this.hiddenDates=r:this.hiddenDates=null!=r?[r]:[],this.format=t.FORMAT}return Sw(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=lS.deepExtend({},t.FORMAT);this.format=lS.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=null!=t?this.moment(t.valueOf()):bS(),this._end=null!=e?this.moment(e.valueOf()):bS(),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){var t=this.current.clone();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")}t.isSame(this.current)||(this.current=this.moment(QS(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{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()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0)}this.current.valueOf()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,US(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&"string"==typeof t.scale&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(null!=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.options.showWeekScale&&(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(null==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(1===t.date()&&0!==t.weekday())return"";default:return e&&e.length>0?this.moment(t).format(e):""}}},{key:"getLabelMajor",value:function(t){if(null==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(){var t,e=this.moment,i=this.moment(this.current),n=i.locale?i.locale("en"):i.lang("en"),r=this.step,o=[];function s(t){return t/r%2==0?" vis-even":" vis-odd"}function a(t){return t.isSame(bS(),"day")?" vis-today":t.isSame(e().add(1,"day"),"day")?" vis-tomorrow":t.isSame(e().add(-1,"day"),"day")?" vis-yesterday":""}function l(t){return t.isSame(bS(),"week")?" vis-current-week":""}function u(t){return t.isSame(bS(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":o.push(a(n)),o.push(s(n.milliseconds()));break;case"second":o.push(a(n)),o.push(s(n.seconds()));break;case"minute":o.push(a(n)),o.push(s(n.minutes()));break;case"hour":o.push(CS(t="vis-h".concat(n.hours())).call(t,4==this.step?"-h"+(n.hours()+4):"")),o.push(a(n)),o.push(s(n.hours()));break;case"weekday":o.push("vis-".concat(n.format("dddd").toLowerCase())),o.push(a(n)),o.push(l(n)),o.push(s(n.date()));break;case"day":o.push("vis-day".concat(n.date())),o.push("vis-".concat(n.format("MMMM").toLowerCase())),o.push(a(n)),o.push(u(n)),o.push(this.step<=2?a(n):""),o.push(this.step<=2?"vis-".concat(n.format("dddd").toLowerCase()):""),o.push(s(n.date()-1));break;case"week":o.push("vis-week".concat(n.format("w"))),o.push(l(n)),o.push(s(n.week()));break;case"month":o.push("vis-".concat(n.format("MMMM").toLowerCase())),o.push(u(n)),o.push(s(n.month()));break;case"year":o.push("vis-year".concat(n.year())),o.push(function(t){return t.isSame(bS(),"year")?" vis-current-year":""}(n)),o.push(s(n.year()))}return ow(o).call(o,String).join(" ")}}],[{key:"snap",value:function(t,e,i){var n=Lk(t);if("year"==e){var r=n.year()+Math.round(n.month()/12);n.year(Math.round(r/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 o=i>5?i/2:1;n.milliseconds(Math.round(n.milliseconds()/o)*o)}return n}}]),t}();uO.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",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:""}};var hO=function(t){function e(t,i){var n;return bw(this,e),(n=Sk(this,Mk(e).call(this))).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},n.props={range:{start:0,end:0,minimumStep:0},lineTop:0},n.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:uO.FORMAT,moment:Lk,timeAxis:null},n.options=lS.extend({},n.defaultOptions),n.body=t,n._create(),n.setOptions(i),n}return Ak(e,t),Sw(e,[{key:"setOptions",value:function(t){t&&(lS.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),lS.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.axis=t.orientation:"object"===wk(t.orientation)&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"==typeof Lk.locale?Lk.locale(t.locale):Lk.lang(t.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var t=this.props,e=this.dom.foreground,i=this.dom.background,n="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=e.parentNode!==n;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,s=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;t.minorLabelHeight=o?t.minorCharHeight:0,t.majorLabelHeight=s?t.majorCharHeight:0,t.height=t.minorLabelHeight+t.majorLabelHeight,t.width=e.offsetWidth,t.minorLineHeight=this.body.domProps.root.height-t.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),t.minorLineWidth=1,t.majorLineHeight=t.minorLineHeight+t.majorLabelHeight,t.majorLineWidth=1;var a=e.nextSibling,l=i.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),i.parentNode&&i.parentNode.removeChild(i),e.style.height="".concat(this.props.height,"px"),this._repaintLabels(),a?n.insertBefore(e,a):n.appendChild(e),l?this.body.dom.backgroundVertical.insertBefore(i,l):this.body.dom.backgroundVertical.appendChild(i),this._isResized()||r}},{key:"_repaintLabels",value:function(){var t=this.options.orientation.axis,e=lS.convert(this.body.range.start,"Number"),i=lS.convert(this.body.range.end,"Number"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),r=n-$S(this.options.moment,this.body.hiddenDates,this.body.range,n);r-=this.body.util.toTime(0).valueOf();var o=new uO(new Date(e),new Date(i),r,this.body.hiddenDates,this.options);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var s,a,l,u,h,c,d=this.dom;d.redundant.lines=d.lines,d.redundant.majorTexts=d.majorTexts,d.redundant.minorTexts=d.minorTexts,d.lines=[],d.majorTexts=[],d.minorTexts=[];var f,p,m,v=0,g=void 0,y=0;for(o.start(),a=o.getCurrent(),u=this.body.util.toScreen(a);o.hasNext()&&y<1e3;){switch(y++,h=o.isMajor(),m=o.getClassName(),s=a,l=u,o.next(),a=o.getCurrent(),f=v,v=(u=this.body.util.toScreen(a))-l,o.scale){case"week":c=!0;break;default:c=v>=.4*f}if(this.options.showMinorLabels&&c){var b=this._repaintMinorText(l,o.getLabelMinor(s),t,m);b.style.width="".concat(v,"px")}h&&this.options.showMajorLabels?(l>0&&(null==g&&(g=l),b=this._repaintMajorText(l,o.getLabelMajor(s),t,m)),p=this._repaintMajorLine(l,v,t,m)):c?p=this._repaintMinorLine(l,v,t,m):p&&(p.style.width="".concat(lO(p.style.width)+v,"px"))}if(1e3!==y||cO||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(1e3," lines.")),cO=!0),this.options.showMajorLabels){var _=this.body.util.toTime(0),w=o.getLabelMajor(_),k=w.length*(this.props.majorCharWidth||10)+10;(null==g||k<g)&&this._repaintMajorText(0,w,t,m)}B_(lS).call(lS,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 r=this.dom.redundant.minorTexts.shift();if(!r){var o=document.createTextNode("");(r=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(r)}this.dom.minorTexts.push(r),r.innerHTML=e;var s="top"==i?this.props.majorLabelHeight:0;return this._setXY(r,t,s),r.className="vis-text vis-minor ".concat(n),r}},{key:"_repaintMajorText",value:function(t,e,i,n){var r=this.dom.redundant.majorTexts.shift();if(!r){var o=document.createElement("div");(r=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(r)}r.childNodes[0].innerHTML=e,r.className="vis-text vis-major ".concat(n);var s="top"==i?0:this.props.minorLabelHeight;return this._setXY(r,t,s),this.dom.majorTexts.push(r),r}},{key:"_setXY",value:function(t,e,i){var n,r=this.options.rtl?-1*e:e;t.style.transform=CS(n="translate(".concat(r,"px, ")).call(n,i,"px)")}},{key:"_repaintMinorLine",value:function(t,e,i,n){var r,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var s=this.props;o.style.width="".concat(e,"px"),o.style.height="".concat(s.minorLineHeight,"px");var a="top"==i?s.majorLabelHeight:this.body.domProps.top.height,l=t-s.minorLineWidth/2;return this._setXY(o,l,a),o.className=CS(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(r,n),o}},{key:"_repaintMajorLine",value:function(t,e,i,n){var r,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var s=this.props;o.style.width="".concat(e,"px"),o.style.height="".concat(s.majorLineHeight,"px");var a="top"==i?0:this.body.domProps.top.height,l=t-s.majorLineWidth/2;return this._setXY(o,l,a),o.className=CS(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(r,n),o}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-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="vis-text vis-major vis-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}(PS),cO=!1,dO=n((function(t,e){t.exports=function(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,r={},o={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(t){u(t,"keydown")},l=function(t){u(t,"keyup")},u=function(t,e){if(void 0!==o[e][t.keyCode]){for(var n=o[e][t.keyCode],r=0;r<n.length;r++)void 0===n[r].shift?n[r].fn(t):1==n[r].shift&&1==t.shiftKey?n[r].fn(t):0==n[r].shift&&0==t.shiftKey&&n[r].fn(t);1==i&&t.preventDefault()}};return r.bind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===o[i][s[t].code]&&(o[i][s[t].code]=[]),o[i][s[t].code].push({fn:e,shift:s[t].shift})},r.bindAll=function(t,e){for(var i in void 0===e&&(e="keydown"),s)s.hasOwnProperty(i)&&r.bind(i,t,e)},r.getKey=function(t){for(var e in s)if(s.hasOwnProperty(e)){if(1==t.shiftKey&&1==s[e].shift&&t.keyCode==s[e].code)return e;if(0==t.shiftKey&&0==s[e].shift&&t.keyCode==s[e].code)return e;if(t.keyCode==s[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},r.unbind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);if(void 0!==e){var n=[],r=o[i][s[t].code];if(void 0!==r)for(var a=0;a<r.length;a++)r[a].fn==e&&r[a].shift==s[t].shift||n.push(o[i][s[t].code][a]);o[i][s[t].code]=n}else o[i][s[t].code]=[]},r.reset=function(){o={keydown:{},keyup:{}}},r.destroy=function(){o={keydown:{},keyup:{}},n.removeEventListener("keydown",a,!0),n.removeEventListener("keyup",l,!0)},n.addEventListener("keydown",a,!0),n.addEventListener("keyup",l,!0),r}}));function fO(t){var e,i;this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=iO(this.dom.overlay),this.hammer.on("tap",vw(e=this._onTapOverlay).call(e,this));var n=this,r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];B_(r).call(r,(function(t){n.hammer.on(t,(function(t){t.stopPropagation()}))})),document&&document.body&&(this.onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=dO(),this.escListener=vw(i=this.deactivate).call(i,this)}OD(fO.prototype),fO.current=null,fO.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},fO.prototype.activate=function(){var t;fO.current&&fO.current.deactivate(),fO.current=this,this.active=!0,this.dom.overlay.style.display="none",lS.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),vw(t=this.keycharm).call(t,"esc",this.escListener)},fO.prototype.deactivate=function(){fO.current===this&&(fO.current=null),this.active=!1,this.dom.overlay.style.display="",lS.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},fO.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var pO={current:"current",time:"time",deleteSelected:"Delete selected"},mO={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},vO={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},gO={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},yO={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},bO={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},_O={current:"поточний",time:"час",deleteSelected:"Видалити обране"},wO={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},kO={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},SO={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},DO={en:pO,en_EN:pO,en_US:pO,it:mO,it_IT:mO,it_CH:mO,nl:vO,nl_NL:vO,nl_BE:vO,de:gO,de_DE:gO,fr:yO,fr_FR:yO,fr_CA:yO,fr_BE:yO,es:bO,es_ES:bO,uk:_O,uk_UA:_O,ru:wO,ru_RU:wO,pl:kO,pl_PL:kO,ja:SO,ja_JP:SO},xO=function(t){function e(t,i){var n,r;bw(this,e),(r=Sk(this,Mk(e).call(this))).body=t,r.defaultOptions={moment:Lk,locales:DO,locale:"en",id:void 0,title:void 0},r.options=lS.extend({},r.defaultOptions),r.setOptions(i),r.options.locales=lS.extend({},DO,r.options.locales);var o=r.defaultOptions.locales[r.defaultOptions.locale];return B_(n=Vk(r.options.locales)).call(n,(function(t){r.options.locales[t]=lS.extend({},o,r.options.locales[t])})),i&&i.time?r.customTime=i.time:r.customTime=new Date,r.eventParams={},r._create(),r}return Ak(e,t),Sw(e,[{key:"setOptions",value:function(t){t&&lS.selectiveExtend(["moment","locale","locales","id","title","rtl"],this.options,t)}},{key:"_create",value:function(){var t,e,i,n=document.createElement("div");n["custom-time"]=this,n.className="vis-custom-time ".concat(this.options.id||""),n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n;var r=document.createElement("div");function o(t){this.body.range._onMouseWheel(t)}r.style.position="relative",r.style.top="0px",this.options.rtl?r.style.right="-10px":r.style.left="-10px",r.style.height="100%",r.style.width="20px",r.addEventListener?(r.addEventListener("mousewheel",vw(o).call(o,this),!1),r.addEventListener("DOMMouseScroll",vw(o).call(o,this),!1)):r.attachEvent("onmousewheel",vw(o).call(o,this)),n.appendChild(r),this.hammer=new iO(r),this.hammer.on("panstart",vw(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",vw(e=this._onDrag).call(e,this)),this.hammer.on("panend",vw(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:iO.DIRECTION_ALL})}},{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.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),i=this.options.locales.en);var n,r=this.options.title;void 0===r?r=(r=CS(n="".concat(i.time,": ")).call(n,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+r.substring(1):"function"==typeof r&&(r=r.call(this.customTime));return this.options.rtl?this.bar.style.right="".concat(e,"px"):this.bar.style.left="".concat(e,"px"),this.bar.title=r,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(t){this.customTime=lS.convert(t,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(t,e){var i,n,r=document.createElement("div");(r.className="vis-custom-time-marker",r.innerHTML=t,r.style.position="absolute",e)&&(r.setAttribute("contenteditable","true"),r.addEventListener("pointerdown",(function(){r.focus()})),r.addEventListener("input",vw(i=this._onMarkerChange).call(i,this)),r.title=t,r.addEventListener("blur",vw(n=function(t){this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}).call(n,this)));this.bar.appendChild(r)}},{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:"_onMarkerChange",value:function(t){this.body.emitter.emit("markerchange",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}},{key:"_onMarkerChanged",value:function(t){this.body.emitter.emit("markerchanged",{id:this.options.id,title:t.target.innerHTML,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}(PS),OO=function(){function t(){bw(this,t)}return Sw(t,[{key:"_create",value:function(t){var e,i,n,r=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="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-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===r.initialDrawDone&&r._redraw()})),this.on("rangechanged",(function(){r.initialRangeChangeDone||(r.initialRangeChangeDone=!0)})),this.on("touch",vw(e=this._onTouch).call(e,this)),this.on("panmove",vw(i=this._onDrag).call(i,this));var o=this;this._origRedraw=vw(n=this._redraw).call(n,this),this._redraw=lS.throttle(this._origRedraw),this.on("_change",(function(t){o.itemSet&&o.itemSet.initialItemSetDrawn&&t&&1==t.queue?o._redraw():o._origRedraw()})),this.hammer=new iO(this.dom.root);var s=this.hammer.get("pinch").set({enable:!0});s&&function(t){t.getTouchAction=function(){return["pan-y"]}}(s),this.hammer.get("pan").set({threshold:5,direction:iO.DIRECTION_ALL}),this.listeners={};var a,l,u=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function h(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,r=n+i;if(this.isActive())this._setScrollTop(r)!==n&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}else if(this.options.horizontalScroll){var o=(Math.abs(e)>=Math.abs(i)?e:i)/120*(this.range.end-this.range.start)/20,s=this.range.start+o,a=this.range.end+o,l={animation:!1,byUser:!0,event:t};this.range.setRange(s,a,l),t.preventDefault()}}B_(u).call(u,(function(t){var e=function(e){o.isActive()&&o.emit(t,e)};o.hammer.on(t,e),o.listeners[t]=e})),nO(this.hammer,(function(t){o.emit("touch",t)})),a=this.hammer,(l=function(t){o.emit("release",t)}).inputHandler=function(t){t.isFinal&&l(t)},a.on("hammer.input",l.inputHandler);var c="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function d(t){if(o.options.verticalScroll)if(o._isProgramaticallyScrolled)o._isProgramaticallyScrolled=!1;else if(t.preventDefault(),o.isActive()){var e=-t.target.scrollTop;o._setScrollTop(e),o._redraw(),o.emit("scrollSide",t)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(c,vw(h).call(h,this),!1),this.dom.top.addEventListener(c,vw(h).call(h,this),!1),this.dom.bottom.addEventListener(c,vw(h).call(h,this),!1),this.dom.left.parentNode.addEventListener("scroll",vw(d).call(d,this)),this.dom.right.parentNode.addEventListener("scroll",vw(d).call(d,this));var f=!1;function p(t){var e;if(t.preventDefault&&(o.emit("dragover",o.getEventProperties(t)),t.preventDefault()),xD(e=t.target.className).call(e,"timeline")>-1&&!f)return t.dataTransfer.dropEffect="move",f=!0,!1}function m(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 f=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?o.itemSet._onAddItem(t):o.itemSet._onDropObjectOnItem(t),o.emit("drop",o.getEventProperties(t)),!1}if(this.dom.center.addEventListener("dragover",vw(p).call(p,this),!1),this.dom.center.addEventListener("drop",vw(m).call(m,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){var e;if(t){if(lS.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime"],this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==wk(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"===wk(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 i=this.timeAxis2=new hO(this.body);i.setOptions=function(t){var e=t?lS.extend({},t):{};e.orientation="top",hO.prototype.setOptions.call(i,e)},this.components.push(i)}}else if(this.timeAxis2){var n,r,o=xD(n=this.components).call(n,this.timeAxis2);if(-1!==o)gD(r=this.components).call(r,o,1);this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&zS(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new fO(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(B_(e=this.components).call(e,(function(e){return e.setOptions(t)})),"configure"in t){var s;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var a=lS.deepExtend({},this.options);B_(s=this.components).call(s,(function(t){lS.deepExtend(a,t.options)})),this.configurator.setModuleOptions({global:a})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;for(var e in 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),this.listeners)this.listeners.hasOwnProperty(e)&&delete this.listeners[e];this.listeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,B_(t=this.components).call(t,(function(t){return t.destroy()})),this.body=null}},{key:"setCustomTime",value:function(t,e){var i,n=ow(i=this.customTimes).call(i,(function(t){return e===t.options.id}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(OS(e)));n.length>0&&n[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e,i=ow(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(OS(t)));return i[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,e,i){var n,r=ow(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(OS(e)));r.length>0&&r[0].setCustomMarker(t,i)}},{key:"setCustomTimeTitle",value:function(t,e){var i,n=ow(i=this.customTimes).call(i,(function(t){return t.options.id===e}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(OS(e)));if(n.length>0)return n[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var i,n=void 0!==t?lS.convert(t,"Date").valueOf():new Date;if(hD(i=this.customTimes).call(i,(function(t){return t.options.id===e})))throw new Error("A custom time with id ".concat(OS(e)," already exists"));var r=new xO(this.body,lS.extend({},this.options,{time:n,id:e}));return this.customTimes.push(r),this.components.push(r),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e,i=this,n=ow(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(OS(t)));B_(n).call(n,(function(t){var e,n,r,o;gD(e=i.customTimes).call(e,xD(n=i.customTimes).call(n,t),1),gD(r=i.components).call(r,xD(o=i.components).call(o,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,r=new Date(i.min.valueOf()-.01*n),o=new Date(i.max.valueOf()+.01*n),s=!t||void 0===t.animation||t.animation;this.range.setRange(r,o,{animation:s},e)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,e,i,n){var r,o;"function"==typeof arguments[2]&&(n=arguments[2],i={}),1==arguments.length?(r=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:r})):2==arguments.length&&"function"==typeof arguments[1]?(o=arguments[0],n=arguments[1],r=void 0===o.animation||o.animation,this.range.setRange(o.start,o.end,{animation:r},n)):(r=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:r},n))}},{key:"moveTo",value:function(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.range.end-this.range.start,r=lS.convert(t,"Date").valueOf(),o=r-n/2,s=r+n/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(o,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(),r=n.start.valueOf(),o=n.end.valueOf(),s=o-r,a=s/(1+t),l=(s-a)/2,u=r+l,h=o-l;this.setWindow(u,h,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(),r=n.start.valueOf(),o=n.end.valueOf(),s=o-r,a=r-s*t/2,l=o+s*t/2;this.setWindow(a,l,e,i)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var e=this.dom;if(e&&e.container&&0!=e.root.offsetWidth){var i=!1,n=this.options,r=this.props;WS(this.options.moment,this.body,this.options.hiddenDates),"top"==n.orientation?(lS.addClassName(e.root,"vis-top"),lS.removeClassName(e.root,"vis-bottom")):(lS.removeClassName(e.root,"vis-top"),lS.addClassName(e.root,"vis-bottom")),n.rtl?(lS.addClassName(e.root,"vis-rtl"),lS.removeClassName(e.root,"vis-ltr")):(lS.addClassName(e.root,"vis-ltr"),lS.removeClassName(e.root,"vis-rtl")),e.root.style.maxHeight=lS.option.asSize(n.maxHeight,""),e.root.style.minHeight=lS.option.asSize(n.minHeight,""),e.root.style.width=lS.option.asSize(n.width,"");var o=e.root.offsetWidth;r.border.left=1,r.border.right=1,r.border.top=1,r.border.bottom=1,r.center.height=e.center.offsetHeight,r.left.height=e.left.offsetHeight,r.right.height=e.right.offsetHeight,r.top.height=e.top.clientHeight||-r.border.top,r.bottom.height=e.bottom.clientHeight||-r.border.bottom;var s=Math.max(r.left.height,r.center.height,r.right.height),a=r.top.height+s+r.bottom.height+r.border.top+r.border.bottom;e.root.style.height=lS.option.asSize(n.height,"".concat(a,"px")),r.root.height=e.root.offsetHeight,r.background.height=r.root.height;var l=r.root.height-r.top.height-r.bottom.height;r.centerContainer.height=l,r.leftContainer.height=l,r.rightContainer.height=r.leftContainer.height,r.root.width=o,r.background.width=r.root.width,this.initialDrawDone||(r.scrollbarWidth=lS.getScrollBarWidth());var u=e.leftContainer.clientWidth,h=e.rightContainer.clientWidth;n.verticalScroll?n.rtl?(r.left.width=u||-r.border.left,r.right.width=h+r.scrollbarWidth||-r.border.right):(r.left.width=u+r.scrollbarWidth||-r.border.left,r.right.width=h||-r.border.right):(r.left.width=u||-r.border.left,r.right.width=h||-r.border.right),this._setDOM();var c=this._updateScrollTop();"top"!=n.orientation.item&&(c+=Math.max(r.centerContainer.height-r.center.height-r.border.top-r.border.bottom,0)),e.center.style.transform="translateY(".concat(c,"px)");var d=0==r.scrollTop?"hidden":"",f=r.scrollTop==r.scrollTopMin?"hidden":"";e.shadowTop.style.visibility=d,e.shadowBottom.style.visibility=f,e.shadowTopLeft.style.visibility=d,e.shadowBottomLeft.style.visibility=f,e.shadowTopRight.style.visibility=d,e.shadowBottomRight.style.visibility=f,n.verticalScroll&&(e.rightContainer.className="vis-panel vis-right vis-vertical-scroll",e.leftContainer.className="vis-panel vis-left vis-vertical-scroll",e.shadowTopRight.style.visibility="hidden",e.shadowBottomRight.style.visibility="hidden",e.shadowTopLeft.style.visibility="hidden",e.shadowBottomLeft.style.visibility="hidden",e.left.style.top="0px",e.right.style.top="0px"),(!n.verticalScroll||r.center.height<r.centerContainer.height)&&(e.left.style.top="".concat(c,"px"),e.right.style.top="".concat(c,"px"),e.rightContainer.className=e.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),e.leftContainer.className=e.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),r.left.width=u||-r.border.left,r.right.width=h||-r.border.right,this._setDOM());var p=r.center.height>r.centerContainer.height;this.hammer.get("pan").set({direction:p?iO.DIRECTION_ALL:iO.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),B_(t=this.components).call(t,(function(t){i=t.redraw()||i}));if(i){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.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 XS(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return XS(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return BS(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return BS(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(){if(1==t.options.autoResize){if(t.dom.root){var e=t.dom.root.offsetHeight,i=t.dom.root.offsetWidth;i==t.props.lastWidth&&e==t.props.lastHeight||(t.props.lastWidth=i,t.props.lastHeight=e,t.props.scrollbarWidth=lS.getScrollBarWidth(),t.body.emitter.emit("_change"))}}else t._stopAutoResize()},lS.addEventListener(window,"resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=rD(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(lS.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.scrollTop<t&&(this.props.scrollTop=t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this._isProgramaticallyScrolled=!0,this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),t}();OD(OO.prototype);var MO=function(t){function e(t,i){var n,r;bw(this,e),(r=Sk(this,Mk(e).call(this))).body=t,r.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Lk,locales:DO,locale:"en"},r.options=lS.extend({},r.defaultOptions),r.setOptions(i),r.options.locales=lS.extend({},DO,r.options.locales);var o=r.defaultOptions.locales[r.defaultOptions.locale];return B_(n=Vk(r.options.locales)).call(n,(function(t){r.options.locales[t]=lS.extend({},o,r.options.locales[t])})),r.offset=0,r._create(),r}return Ak(e,t),Sw(e,[{key:"_create",value:function(){var t=document.createElement("div");t.className="vis-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(t){t&&lS.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,t)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var t,e,i=this.body.dom.backgroundVertical;this.bar.parentNode!=i&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),i.appendChild(this.bar),this.start());var n=this.options.moment(bS()+this.offset);this.options.alignCurrentTime&&(n=n.startOf(this.options.alignCurrentTime));var r=this.body.util.toScreen(n),o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en);var s=CS(t=CS(e="".concat(o.current," ")).call(e,o.time,": ")).call(t,n.format("dddd, MMMM Do YYYY, H:mm:ss"));s=s.charAt(0).toUpperCase()+s.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*r,"px)"):this.bar.style.transform="translateX(".concat(r,"px)"),this.bar.title=s}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var t=this;!function e(){t.stop();var i=1/t.body.range.conversion(t.body.domProps.center.width).scale/10;i<30&&(i=30),i>1e3&&(i=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=uw(e,i)}()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=lS.convert(t,"Date").valueOf(),i=bS();this.offset=e-i,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(bS()+this.offset)}}]),e}(PS),TO=!oy((function(){return Object.isExtensible(Object.preventExtensions({}))})),CO=n((function(t){var e=Dy.f,i=Hy("meta"),n=0,r=Object.isExtensible||function(){return!0},o=function(t){e(t,i,{value:{objectID:"O"+ ++n,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!vy(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Yy(t,i)){if(!r(t))return"F";if(!e)return"E";o(t)}return t[i].objectID},getWeakData:function(t,e){if(!Yy(t,i)){if(!r(t))return!0;if(!e)return!1;o(t)}return t[i].weakData},onFreeze:function(t){return TO&&s.REQUIRED&&r(t)&&!Yy(t,i)&&o(t),t}};Wy[i]=!0})),PO=(CO.REQUIRED,CO.fastKey,CO.getWeakData,CO.onFreeze,Tb("iterator")),EO=Array.prototype,AO=function(t){return void 0!==t&&(dy.Array===t||EO[PO]===t)},LO=Tb("iterator"),IO=function(t){if(null!=t)return t[LO]||t["@@iterator"]||dy[o_(t)]},jO=function(t,e,i,n){try{return n?e(wy(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&wy(r.call(t)),e}},YO=n((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,i,n,r,o){var s,a,l,u,h,c,d,f=pb(i,n,r?2:1);if(o)s=t;else{if("function"!=typeof(a=IO(t)))throw TypeError("Target is not iterable");if(AO(a)){for(l=0,u=Yb(t.length);u>l;l++)if((h=r?f(wy(d=t[l])[0],d[1]):f(t[l]))&&h instanceof e)return h;return new e(!1)}s=a.call(t)}for(c=s.next;!(d=c.call(s)).done;)if("object"==typeof(h=jO(s,f,d.value,r))&&h&&h instanceof e)return h;return new e(!1)}).stop=function(t){return new e(!0,t)}})),NO=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},RO=Dy.f,FO=P_.forEach,HO=Qy.set,GO=Qy.getterFor,zO=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:f_(t,n,e[n],i);return t},WO=Tb("species"),VO=Dy.f,UO=CO.fastKey,BO=Qy.set,XO=Qy.getterFor,qO=(function(t,e,i){var n,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=py[t],l=a&&a.prototype,u={};if(my&&"function"==typeof a&&(o||l.forEach&&!oy((function(){(new a).entries().next()})))){n=e((function(e,i){HO(NO(e,n,t),{type:t,collection:new a}),null!=i&&YO(i,e[s],e,r)}));var h=GO(t);FO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;t in l&&(!o||"clear"!=t)&&Oy(n.prototype,t,(function(i,n){var r=h(this).collection;if(!e&&o&&!vy(i))return"get"==t&&void 0;var s=r[t](0===i?0:i,n);return e?this:s}))})),o||RO(n.prototype,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else n=i.getConstructor(e,t,r,s),CO.REQUIRED=!0;u_(n,t,!1,!0),u[t]=n,gb({global:!0,forced:!0},u),o||i.setStrong(n,t,r)}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,e,i,n){var r=t((function(t,o){NO(t,r,e),BO(t,{type:e,index:t_(null),first:void 0,last:void 0,size:0}),my||(t.size=0),null!=o&&YO(o,t[n],t,i)})),o=XO(e),s=function(t,e,i){var n,r,s=o(t),l=a(t,e);return l?l.value=i:(s.last=l={index:r=UO(e,!0),key:e,value:i,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=l),n&&(n.next=l),my?s.size++:t.size++,"F"!==r&&(s.index[r]=l)),t},a=function(t,e){var i,n=o(t),r=UO(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==e)return i};return zO(r.prototype,{clear:function(){for(var t=o(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,my?t.size=0:this.size=0},delete:function(t){var e=o(this),i=a(this,t);if(i){var n=i.next,r=i.previous;delete e.index[i.index],i.removed=!0,r&&(r.next=n),n&&(n.previous=r),e.first==i&&(e.first=n),e.last==i&&(e.last=r),my?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=o(this),n=pb(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),zO(r.prototype,i?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),my&&VO(r.prototype,"size",{get:function(){return o(this).size}}),r},setStrong:function(t,e,i){var n=e+" Iterator",r=XO(e),o=XO(n);y_(t,e,(function(t,e){BO(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),function(t){var e=qb(t),i=Dy.f;my&&e&&!e[WO]&&i(e,WO,{configurable:!0,get:function(){return this}})}(e)}}),db.Set),ZO=Ck,JO=P_.find,$O=!0,KO=j_("find");"find"in[]&&Array(1).find((function(){$O=!1})),gb({target:"Array",proto:!0,forced:$O||!KO},{find:function(t){return JO(this,t,arguments.length>1?arguments[1]:void 0)}});var QO=z_("Array").find,tM=Array.prototype,eM=function(t){var e=t.find;return t===tM||t instanceof Array&&e===tM.find?QO:e},iM=function(t){var e=IO(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return wy(e.call(t))},nM=gw;var rM=function(t){if(nM(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}},oM=Tb("iterator"),sM=!1;try{var aM=0,lM={next:function(){return{done:!!aM++}},return:function(){sM=!0}};lM[oM]=function(){return this},Array.from(lM,(function(){throw 2}))}catch(t){}var uM=!function(t,e){if(!e&&!sM)return!1;var i=!1;try{var n={};n[oM]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));gb({target:"Array",stat:!0,forced:uM},{from:function(t){var e,i,n,r,o,s,a=yb(t),l="function"==typeof this?this:Array,u=arguments.length,h=u>1?arguments[1]:void 0,c=void 0!==h,d=IO(a),f=0;if(c&&(h=pb(h,u>2?arguments[2]:void 0,2)),null==d||l==Array&&AO(d))for(i=new l(e=Yb(a.length));e>f;f++)s=c?h(a[f],f):a[f],Aw(i,f,s);else for(o=(r=d.call(a)).next,i=new l;!(n=o.call(r)).done;f++)s=c?jO(r,h,[n.value,f],!0):n.value,Aw(i,f,s);return i.length=f,i}});var hM=db.Array.from,cM=Tb("iterator"),dM=function(t){var e=Object(t);return void 0!==e[cM]||"@@iterator"in e||dy.hasOwnProperty(o_(e))};var fM=function(t){if(dM(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return hM(t)};var pM=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var mM=function(t){return rM(t)||fM(t)||pM()},vM=Object.assign,gM=Object.defineProperty,yM=!vM||oy((function(){if(my&&1!==vM({b:1},vM(gM({},"a",{enumerable:!0,get:function(){gM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=vM({},t)[i]||"abcdefghijklmnopqrst"!=Ub(vM({},e)).join("")}))?function(t,e){for(var i=yb(t),n=arguments.length,r=1,o=Ww.f,s=ib.f;n>r;)for(var a,l=uy(arguments[r++]),u=o?Ub(l).concat(o(l)):Ub(l),h=u.length,c=0;h>c;)a=u[c++],my&&!s.call(l,a)||(i[a]=l[a]);return i}:vM;gb({target:"Object",stat:!0,forced:Object.assign!==yM},{assign:yM});var bM=db.Object.assign,_M=Gb.includes,wM=j_("indexOf",{ACCESSORS:!0,1:0});gb({target:"Array",proto:!0,forced:!wM},{includes:function(t){return _M(this,t,arguments.length>1?arguments[1]:void 0)}});var kM=z_("Array").includes,SM=Tb("match"),DM=function(t){if(function(t){var e;return vy(t)&&(void 0!==(e=t[SM])?!!e:"RegExp"==ay(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},xM=Tb("match");gb({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[xM]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(hy(this)).indexOf(DM(t),arguments.length>1?arguments[1]:void 0)}});var OM=z_("String").includes,MM=Array.prototype,TM=String.prototype,CM=function(t){var e=t.includes;return t===MM||t instanceof Array&&e===MM.includes?kM:"string"==typeof t||t===TM||t instanceof String&&e===TM.includes?OM:e},PM=Q_("slice"),EM=j_("slice",{ACCESSORS:!0,0:0,1:2}),AM=Tb("species"),LM=[].slice,IM=Math.max;gb({target:"Array",proto:!0,forced:!PM||!EM},{slice:function(t,e){var i,n,r,o=cy(this),s=Yb(o.length),a=Fb(t,s),l=Fb(void 0===e?s:e,s);if(x_(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!x_(i.prototype)?vy(i)&&null===(i=i[AM])&&(i=void 0):i=void 0,i===Array||void 0===i))return LM.call(o,a,l);for(n=new(void 0===i?Array:i)(IM(l-a,0)),r=0;a<l;a++,r++)a in o&&Aw(n,r,o[a]);return n.length=r,n}});var jM=z_("Array").slice,YM=Array.prototype,NM=function(t){var e=t.slice;return t===YM||t instanceof Array&&e===YM.slice?jM:e};function RM(t){RS(t).call(t,(function(t,e){return t.data.start-e.data.start}))}function FM(t){RS(t).call(t,(function(t,e){return("end"in t.data?t.data.end:t.data.start)-("end"in e.data?e.data.end:e.data.start)}))}function HM(t,e,i,n){if(i)for(var r=0;r<t.length;r++)t[r].top=null;for(r=0;r<t.length;r++){var o=t[r];if(o.stack&&null===o.top){o.top=e.axis;var s=!1;do{for(var a=null,l=0,u=t.length;l<u;l++){var h=t[l];if(s=n()||!1)return!0;if(null!==h.top&&h!==o&&h.stack&&UM(o,h,e.item,h.options.rtl)){a=h;break}}null!=a&&(o.top=a.top+a.height+e.item.vertical)}while(a)}}return s}function GM(t,e,i){for(var n=0;n<t.length;n++)t[n].top=null;var r=i.height;for(n=0;n<t.length;n++){var o=t[n];if(o.stack&&null===o.top){o.top=o.baseTop;do{for(var s=null,a=0,l=t.length;a<l;a++){var u=t[a];if(null!==u.top&&u!==o&&UM(o,u,e.item,u.options.rtl)){s=u;break}}null!=s&&(o.top=s.top+s.height+e.item.vertical),o.top+o.height>r&&(r=o.top+o.height)}while(s)}}i.height=r-i.top+.5*e.item.vertical}function zM(t,e,i,n){for(var r=0;r<t.length;r++)if(null==t[r].data.subgroup)t[r].top=e.item.vertical;else if(void 0!==t[r].data.subgroup&&n){var o=0;for(var s in i)i.hasOwnProperty(s)&&1==i[s].visible&&i[s].index<i[t[r].data.subgroup].index&&(o+=i[s].height,i[t[r].data.subgroup].top=o);t[r].top=o+.5*e.item.vertical}n||WM(t,e,i)}function WM(t,e,i){for(var n in i)if(i.hasOwnProperty(n)){i[n].top=0;do{var r=null;for(var o in i)if(null!==i[o].top&&o!==n&&i[n].index>i[o].index&&BM(i[n],i[o])){r=i[o];break}null!=r&&(i[n].top=r.top+r.height)}while(r)}for(var s=0;s<t.length;s++)void 0!==t[s].data.subgroup&&(t[s].top=i[t[s].data.subgroup].top+.5*e.item.vertical)}function VM(t,e,i){var n=!1,r=[];for(var o in i)i[o].hasOwnProperty("index")?r[i[o].index]=o:r.push(o);for(var s=0;s<r.length;s++)if(o=r[s],i.hasOwnProperty(o)){for(var a in n=n||i[o].stack,i[o].top=0,i)i[a].visible&&i[o].index>i[a].index&&(i[o].top+=i[a].height);for(var l=t[o],u=0;u<l.length;u++)void 0!==l[u].data.subgroup&&(l[u].top=i[l[u].data.subgroup].top+.5*e.item.vertical,i[o].stack&&(l[u].baseTop=l[u].top));n&&i[o].stack&&GM(t[o],e,i[o])}}function UM(t,e,i,n){return n?t.right-i.horizontal+.001<e.right+e.width&&t.right+t.width+i.horizontal-.001>e.right&&t.top-i.vertical+.001<e.top+e.height&&t.top+t.height+i.vertical-.001>e.top:t.left-i.horizontal+.001<e.left+e.width&&t.left+t.width+i.horizontal-.001>e.left&&t.top-i.vertical+.001<e.top+e.height&&t.top+t.height+i.vertical-.001>e.top}function BM(t,e){return t.start<=e.start&&t.end>=e.start&&t.top<e.top+e.height&&t.top+t.height>e.top||e.start<=t.start&&e.end>=t.start&&e.top<t.top+t.height&&e.top+e.height>t.top}var XM=Object.freeze({orderByStart:RM,orderByEnd:FM,stack:HM,substack:GM,nostack:zM,stackSubgroups:WM,stackSubgroupsWithInnerStack:VM,collision:UM,collisionByTimes:BM}),qM="__background__",ZM=function(){function t(e,i,n){var r=this;if(bw(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=i&&i.subgroupOrder,this.itemSet=n,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],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 s=function(){r.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",s),this._disposeCallbacks.push((function(){r.itemSet.body.emitter.off("checkRangedItems",s)})),this._create(),this.setData(i)}return Sw(t,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;var i=document.createElement("div");i.className="vis-group",i["vis-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-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,n;if(t&&t.subgroupVisibility)for(var r in t.subgroupVisibility)this.subgroupVisibility[r]=t.subgroupVisibility[r];if(this.itemSet.options&&this.itemSet.options.groupTemplate)e=(i=vw(n=this.itemSet.options.groupTemplate).call(n,this))(t,this.dom.inner);else e=t&&t.content;if(e 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=null!=e?e:this.groupId||"");this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?lS.removeClassName(this.dom.inner,"vis-hidden"):lS.addClassName(this.dom.inner,"vis-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),lS.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(lS.removeClassName(this.dom.label,"collapsed"),lS.addClassName(this.dom.label,"expanded")):(lS.removeClassName(this.dom.label,"expanded"),lS.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,lS.removeClassName(this.dom.label,"collapsed"),lS.removeClassName(this.dom.label,"expanded"),lS.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(lS.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?lS.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):lS.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):lS.addClassName(this.dom.label,"vis-group-level-0");var o=t&&t.className||null;o!=this.className&&(this.className&&(lS.removeClassName(this.dom.label,this.className),lS.removeClassName(this.dom.foreground,this.className),lS.removeClassName(this.dom.background,this.className),lS.removeClassName(this.dom.axis,this.className)),lS.addClassName(this.dom.label,o),lS.addClassName(this.dom.foreground,o),lS.addClassName(this.dom.background,o),lS.addClassName(this.dom.axis,o),this.className=o),this.style&&(lS.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(lS.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;if(B_(lS).call(lS,this.items,(function(t,n){if(t.dirty=!0,t.displayed){e[n]=t.redraw(!0),i=e[n].length}})),i>0)for(var n=function(t){B_(lS).call(lS,e,(function(e){e[t]()}))},r=0;r<i;r++)n(r);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,e=t.offsetTop,i=t.offsetLeft,n=t.offsetWidth;this.top=e,this.right=i,this.width=n}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,e=this.itemSet.options.onTimeout,i={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:e&&e.timeoutMs,userBailFunction:e&&e.callback,shouldBailStackItems:this.shouldBailStackItems},n=null;if(!this.itemSet.initialDrawDone){if(i.shouldBailStackItems)return!0;Math.abs(bS()-new Date(i.relativeBailingTime))>i.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 o,s,a,l,u,h,c={byEnd:ow(o=this.orderedItems.byEnd).call(o,(function(t){return!t.isCluster})),byStart:ow(s=this.orderedItems.byStart).call(s,(function(t){return!t.isCluster}))},d={byEnd:mM(new qO(ow(a=nS(l=this.orderedItems.byEnd).call(l,(function(t){return t.cluster}))).call(a,(function(t){return!!t})))),byStart:mM(new qO(ow(u=nS(h=this.orderedItems.byStart).call(h,(function(t){return t.cluster}))).call(u,(function(t){return!!t}))))},f=function(){var t,e,i,o=r._updateItemsInRange(c,ow(t=r.visibleItems).call(t,(function(t){return!t.isCluster})),n),s=r._updateClustersInRange(d,ow(e=r.visibleItems).call(e,(function(t){return t.isCluster})),n);return CS(i=[]).call(i,mM(o),mM(s))},p=function(t){var e={},i=function(i){var n,o=ow(n=r.visibleItems).call(n,(function(t){return t.data.subgroup===i}));e[i]=t?RS(o).call(o,(function(e,i){return t(e.data,i.data)})):o};for(var n in r.subgroups)i(n);return e};if("function"==typeof this.itemSet.options.order){var m=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){VM(p(this.itemSet.options.order),i,this.subgroups),this.visibleItems=f(),this._updateSubGroupHeights(i)}else{var v,g,y,b;this.visibleItems=f(),this._updateSubGroupHeights(i);var _=RS(v=ow(g=NM(y=this.visibleItems).call(y)).call(g,(function(t){return t.isCluster||!t.isCluster&&!t.cluster}))).call(v,(function(t,e){return m.itemSet.options.order(t.data,e.data)}));this.shouldBailStackItems=HM(_,i,!0,vw(b=this._shouldBailItemsRedraw).call(b,this))}}else{var w;if(this.visibleItems=f(),this._updateSubGroupHeights(i),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups)VM(p(),i,this.subgroups);else this.shouldBailStackItems=HM(this.visibleItems,i,!0,vw(w=this._shouldBailItemsRedraw).call(w,this));else zM(this.visibleItems,i,this.subgroups,this.itemSet.options.stackSubgroups)}for(var k=0;k<this.visibleItems.length;k++)this.visibleItems[k].repositionX(),void 0!==this.subgroupVisibility[this.visibleItems[k].data.subgroup]&&(this.subgroupVisibility[this.visibleItems[k].data.subgroup]||this.visibleItems[k].hide());this.itemSet.options.cluster&&B_(lS).call(lS,this.items,(function(t){t.cluster&&t.displayed&&t.hide()})),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,e){t=lS.updateProperty(this,"height",e)||t;var i=this.dom.inner.clientWidth,n=this.dom.inner.clientHeight;return t=lS.updateProperty(this.props.label,"width",i)||t,t=lS.updateProperty(this.props.label,"height",n)||t}},{key:"_applyGroupHeight",value:function(t){this.dom.background.style.height="".concat(t,"px"),this.dom.foreground.style.height="".concat(t,"px"),this.dom.label.style.height="".concat(t,"px")}},{key:"_updateItemsVerticalPosition",value:function(t){for(var e=0,i=this.visibleItems.length;e<i;e++){var n=this.visibleItems[e];n.repositionY(t),this.isVisible||this.groupId==qM||n.displayed&&n.hide()}}},{key:"redraw",value:function(t,e,i,n){var r,o,s,a,l,u,h,c=this,d=!1,f=this.isVisible,p=[function(){i=c._didMarkerHeightChange.call(c)||i},vw(r=this._updateSubGroupHeights).call(r,this,e),vw(o=this._calculateGroupSizeAndPosition).call(o,this),function(){var i;c.isVisible=vw(i=c._isGroupVisible).call(i,c)(t,e)},function(){var n;vw(n=c._redrawItems).call(n,c)(i,f,e,t)},vw(s=this._updateSubgroupsSizes).call(s,this),function(){var t;u=vw(t=c._calculateHeight).call(t,c)(e)},vw(a=this._calculateGroupSizeAndPosition).call(a,this),function(){var t;d=vw(t=c._didResize).call(t,c)(d,u)},function(){var t;vw(t=c._applyGroupHeight).call(t,c)(u)},function(){var t;vw(t=c._updateItemsVerticalPosition).call(t,c)(e)},vw(l=function(){return!c.isVisible&&c.height&&(d=!1),d}).call(l,this)];return n?p:(B_(p).call(p,(function(t){h=t()})),h)}},{key:"_updateSubGroupHeights",value:function(t){var e=this;if(Vk(this.subgroups).length>0){var i=this;this._resetSubgroups(),B_(lS).call(lS,this.visibleItems,(function(n){void 0!==n.data.subgroup&&(i.subgroups[n.data.subgroup].height=Math.max(i.subgroups[n.data.subgroup].height,n.height+t.item.vertical),i.subgroups[n.data.subgroup].visible=void 0===e.subgroupVisibility[n.data.subgroup]||Boolean(e.subgroupVisibility[n.data.subgroup]))}))}}},{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?lS.toArray(this.items):this.visibleItems).length>0){var n=i[0].top,r=i[0].top+i[0].height;if(B_(lS).call(lS,i,(function(t){n=Math.min(n,t.top),r=Math.max(r,t.top+t.height)})),n>t.axis){var o=n-t.axis;r-=o,B_(lS).call(lS,i,(function(t){t.top-=o}))}e=Math.ceil(r+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){var e;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),!CM(e=this.visibleItems).call(e,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;null!=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].start)&&(this.subgroups[e].start=t.data.start);var i=t.data.end||t.data.start;new Date(i)>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,n=t.subgroups[e].items[0].data.end||t.subgroups[e].items[0].data.start,r=t.subgroups[e].items[0].data.start,o=n-1;B_(i=t.subgroups[e].items).call(i,(function(t){new Date(t.data.start)<new Date(r)&&(r=t.data.start);var e=t.data.end||t.data.start;new Date(e)>new Date(o)&&(o=e)})),t.subgroups[e].start=r,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]});RS(t).call(t,(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);RS(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var n=0;n<t.length;n++)this.subgroups[t[n].subgroup].index=n}}},{key:"_resetSubgroups",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:"remove",value:function(t){var e,i;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var n=xD(e=this.visibleItems).call(e,t);-1!=n&&gD(i=this.visibleItems).call(i,n,1),void 0!==t.data.subgroup&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(null!=e){var i=this.subgroups[e];if(i){var n,r,o=xD(n=i.items).call(n,t);if(o>=0)gD(r=i.items).call(r,o,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=lS.toArray(this.items),e=[],i=[],n=0;n<t.length;n++)void 0!==t[n].data.end&&i.push(t[n]),e.push(t[n]);this.orderedItems={byStart:e,byEnd:i},RM(this.orderedItems.byStart),FM(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,e,i){var n=[],r={};if(!this.isVisible&&this.groupId!=qM){for(var o=0;o<e.length;o++){var s=e[o];s.displayed&&s.hide()}return n}var a=(i.end-i.start)/4,l=i.start-a,u=i.end+a;if(e.length>0)for(var h=0;h<e.length;h++)this._checkIfVisibleWithReference(e[h],n,r,i);var c=lS.binarySearchCustom(t.byStart,(function(t){return t<l?-1:t<=u?0:1}),"data","start");if(this._traceVisible(c,t.byStart,n,r,(function(t){return t.data.start<l||t.data.start>u})),1==this.checkRangedItems){this.checkRangedItems=!1;for(var d=0;d<t.byEnd.length;d++)this._checkIfVisibleWithReference(t.byEnd[d],n,r,i)}else{var f=lS.binarySearchCustom(t.byEnd,(function(t){return t<l?-1:0}),"data","end");this._traceVisible(f,t.byEnd,n,r,(function(t){return t.data.end<l||t.data.start>u}))}for(var p={},m=0,v=0;v<n.length;v++){var g=n[v];if(!g.displayed){p[v]=g.redraw(!0),m=p[v].length}}if(m>0)for(var y=function(t){B_(lS).call(lS,p,(function(e){e[t]()}))},b=0;b<m;b++)y(b);for(var _=0;_<n.length;_++)n[_].repositionX();return n}},{key:"_traceVisible",value:function(t,e,i,n,r){if(-1!=t){for(var o=t;o>=0;o--){var s=e[o];if(r(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;a<e.length;a++){var l=e[a];if(r(l))break;l.isCluster&&!l.hasItems()||l.cluster||void 0===n[l.id]&&(n[l.id]=!0,i.push(l))}}}},{key:"_checkIfVisible",value:function(t,e,i){t.isVisible(i)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,e,i,n){t.isVisible(n)?void 0===i[t.id]&&(i[t.id]=!0,e.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,e,i){var n=[],r={};if(e.length>0)for(var o=0;o<e.length;o++)this._checkIfVisibleWithReference(e[o],n,r,i);for(var s=0;s<t.byStart.length;s++)this._checkIfVisibleWithReference(t.byStart[s],n,r,i);for(var a=0;a<t.byEnd.length;a++)this._checkIfVisibleWithReference(t.byEnd[a],n,r,i);for(var l={},u=0,h=0;h<n.length;h++){var c=n[h];if(!c.displayed){l[h]=c.redraw(!0),u=l[h].length}}if(u>0)for(var d=0;d<u;d++)B_(lS).call(lS,l,(function(t){t[d]()}));for(var f=0;f<n.length;f++)n[f].repositionX();return n}},{key:"changeSubgroup",value:function(t,e,i){this._removeFromSubgroup(t,e),this._addToSubgroup(t,i),this.orderSubgroups()}},{key:"dispose",value:function(){var t;for(this.hide();t=this._disposeCallbacks.pop();)t()}}]),t}(),JM=function(t){function e(t,i,n){var r;return bw(this,e),(r=Sk(this,Mk(e).call(this,t,i,n))).width=0,r.height=0,r.top=0,r.left=0,r}return Ak(e,t),Sw(e,[{key:"redraw",value:function(t,e,i){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var n=0,r=this.visibleItems.length;n<r;n++){this.visibleItems[n].repositionY(e)}return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),e}(ZM),$M=function(){function t(e,i,n){var r,o=this;bw(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=i||{},this.defaultOptions={locales:DO,locale:"en"},this.options=lS.extend({},this.defaultOptions,n),this.options.locales=lS.extend({},DO,this.options.locales);var s=this.defaultOptions.locales[this.defaultOptions.locale];B_(r=Vk(this.options.locales)).call(r,(function(t){o.options.locales[t]=lS.extend({},s,o.options.locales[t])})),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=n&&n.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(e),this.editable=null,this._updateEditStatus()}return Sw(t,[{key:"select",value:function(){this.selectable&&(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){null!=t.group&&this.data.group!=t.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0),null!=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:"setSelectability",value:function(t){t&&(this.selectable=void 0===t.selectable||Boolean(t.selectable))}},{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,e,i=this,n=document.createElement("div");n.className="vis-drag-center",n.dragCenterItem=this,this.hammerDragCenter=new iO(n),this.hammerDragCenter.on("tap",(function(t){i.parent.itemSet.body.emitter.emit("click",{event:t,item:i.id})})),this.hammerDragCenter.on("doubletap",(function(t){t.stopPropagation(),i.parent.itemSet._onUpdateItem(i),i.parent.itemSet.body.emitter.emit("doubleClick",{event:t,item:i.id})})),this.hammerDragCenter.on("panstart",(function(t){t.stopPropagation(),i.parent.itemSet._onDragStart(t)})),this.hammerDragCenter.on("panmove",vw(t=i.parent.itemSet._onDrag).call(t,i.parent.itemSet)),this.hammerDragCenter.on("panend",vw(e=i.parent.itemSet._onDragEnd).call(e,i.parent.itemSet)),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(n,this.dom.dragLeft):this.dom.box.appendChild(n):this.dom.point&&this.dom.point.appendChild(n),this.dom.dragCenter=n}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="vis-delete-rtl":n.className="vis-delete";var r=this.options.locales[this.options.locale];r||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),r=this.options.locales.en),n.title=r.deleteSelected,this.hammerDeleteButton=new iO(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="vis-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.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var n,r,o=this.parent.itemSet.body.domProps.scrollTop;if(("top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-o?(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")),this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template)n=vw(r=this.options.tooltipOnItemUpdateTime.template).call(r,this)(this.data);else n="start: ".concat(Lk(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(n+="<br> end: ".concat(Lk(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=n}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var e,i,n,r,o,s,a=this._getItemData(),l=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];this.options.visibleFrameTemplate?n=(r=vw(o=this.options.visibleFrameTemplate).call(o,this))(a,l):n="";if(l)if(n instanceof Object&&!(n instanceof Element))r(a,l);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(n)){if(n instanceof Element)l.innerHTML="",l.appendChild(n);else if(null!=n)l.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}this.options.template?e=(i=vw(s=this.options.template).call(s,this))(a,t,this.data):e=this.data.content;if(e instanceof Object&&!(e instanceof Element))i(a,t);else if(this._contentToString(this.content)!==this._contentToString(e)){if(e instanceof Element)t.innerHTML="",t.appendChild(e);else if(null!=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(yw(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=Vk(this.data)}var i=!0,n=!1,r=void 0;try{for(var o,s=iM(e);!(i=(o=s.next()).done);i=!0){var a=o.value,l=this.data[a];null!=l?t.setAttribute("data-".concat(a),l):t.removeAttribute("data-".concat(a))}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}}}},{key:"_updateStyle",value:function(t){this.style&&(lS.removeCssText(t,this.style),this.style=null),this.data.style&&(lS.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"===wk(this.options.editable)&&(this.editable={},lS.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"===wk(this.data.editable)&&(this.editable={},lS.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(){var t;return this.options.tooltip&&this.options.tooltip.template?vw(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data):this.data.title}}]),t}();$M.prototype.stack=!0;var KM=function(t){function e(t,i,n){var r;if(bw(this,e),(r=Sk(this,Mk(e).call(this,t,i,n))).props={dot:{width:0,height:0},line:{width:0,height:0}},t&&null==t.start)throw new Error('Property "start" missing in item '.concat(t));return r}return Ak(e,t),Sw(e,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e,i=this.data.align||this.options.align,n=this.width*t.getMillisecondsPerPixel();return e="right"==i?this.data.start.getTime()>t.start&&this.data.start.getTime()-n<t.end:"left"==i?this.data.start.getTime()+n>t.start&&this.data.start.getTime()<t.end:this.data.start.getTime()+n/2>t.start&&this.data.start.getTime()-n/2<t.end,e}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-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)}if(!this.dom.line.parentNode){var e=this.parent.dom.background;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.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(e),this.dom.line.className="vis-item vis-line".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},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.props.dot.height=t.dot.height,this.props.dot.width=t.dot.width,this.props.line.width=t.line.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),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(t){var e,i,n,r,o,s,a=this,l=[vw(e=this._createDomElement).call(e,this),vw(i=this._appendDomElement).call(i,this),vw(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&vw(t=a._updateDomComponentsSizes).call(t,a)(o)},vw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(B_(l).call(l,(function(t){s=t()})),s)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.remove?t.box.remove():t.box.parentNode&&t.box.parentNode.removeChild(t.box),t.line.remove?t.line.remove():t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.remove?t.dot.remove():t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,i){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var o=r?-1*e:e;t.style.transform=void 0!==i?void 0!==e?CS(n="translate(".concat(o,"px, ")).call(n,i,"px)"):"translateY(".concat(i,"px)"):"translateX(".concat(o,"px)")}};e(this.dom.box,this.boxX,this.boxY,t),e(this.dom.dot,this.dotX,this.dotY,t),e(this.dom.line,this.lineX,this.lineY,t)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=void 0===this.data.align?this.options.align:this.data.align,i=this.props.line.width,n=this.props.dot.width;"right"==e?(this.boxX=t-this.width,this.lineX=t-i,this.dotX=t-i/2-n/2):"left"==e?(this.boxX=t,this.lineX=t,this.dotX=t+i/2-n/2):(this.boxX=t-this.width/2,this.lineX=this.options.rtl?t-i:t-i/2,this.dotX=t-n/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.line.style;if("top"==t){var i=this.parent.top+this.top+1;this.boxY=this.top||0,e.height="".concat(i,"px"),e.bottom="",e.top="0"}else{var n=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),e.height="".concat(n,"px"),e.top="",e.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),e}($M),QM=function(t){function e(t,i,n){var r;if(bw(this,e),(r=Sk(this,Mk(e).call(this,t,i,n))).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},t&&null==t.start)throw new Error('Property "start" missing in item '.concat(t));return r}return Ak(e,t),Sw(e,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.width*t.getMillisecondsPerPixel();return this.data.start.getTime()+e>t.start&&this.data.start<t.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.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.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.dot.width=t.dot.width,this.props.dot.height=t.dot.height,this.props.content.height=t.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(2*this.props.dot.width,"px"):this.dom.content.style.marginLeft="".concat(2*this.props.dot.width,"px"),this.width=t.point.width,this.height=t.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var e=this.props.dot.width,i=this.options.rtl?e/2*-1:e/2;this.dom.dot.style.transform="translateX(".concat(i,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(t){var e,i,n,r,o,s,a=this,l=[vw(e=this._createDomElement).call(e,this),vw(i=this._appendDomElement).call(i,this),vw(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&vw(t=a._updateDomComponentsSizes).call(t,a)(o)},vw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(B_(l).call(l,(function(t){s=t()})),s)}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,i){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var o=r?-1*e:e;t.style.transform=void 0!==i?void 0!==e?CS(n="translate(".concat(o,"px, ")).call(n,i,"px)"):"translateY(".concat(i,"px)"):"translateX(".concat(o,"px)")}};e(this.dom.point,this.pointX,this.pointY,t)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start);this.pointX=t,this.options.rtl?this.right=t-this.props.dot.width:this.left=t-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item;this.pointY="top"==t?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),e}($M),tT=function(t){function e(t,i,n){var r;if(bw(this,e),(r=Sk(this,Mk(e).call(this,t,i,n))).props={content:{width:0}},r.overflow=!1,t){if(null==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return r}return Ak(e,t),Sw(e,[{key:"isVisible",value:function(t){return!this.cluster&&(this.data.start<t.end&&this.data.end>t.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="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-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?" vis-selected":"")+(t?" vis-editable":" vis-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,this.whiteSpace="nowrap"!==window.getComputedStyle(this.dom.content).whiteSpace,{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,n,r,o,s,a=this,l=[vw(e=this._createDomElement).call(e,this),vw(i=this._appendDomElement).call(i,this),vw(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(o=vw(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&vw(t=a._updateDomComponentsSizes).call(t,a)(o)},vw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(B_(l).call(l,(function(t){s=t()})),s)}},{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,r=this.conversion.toScreen(this.data.start),o=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||(r<-n&&(r=-n),o>2*n&&(o=2*n));var a=Math.max(Math.round(1e3*(o-r))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=r:this.left=r,this.width=a+this.props.content.width,i=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=a,i=Math.min(o-r,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(-1*this.right,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(a,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),s){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var l=-1*Math.max(a-i,0);this.dom.content.style.transform="translateX(".concat(l,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(a-i,0),"px)");break;case"center":if(this.options.rtl){var u=-1*Math.max((a-i)/2,0);this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((a-i)/2,0),"px)");break;default:if(e=this.overflow?o>0?Math.max(-r,0):-i:r<0?-r:0,this.options.rtl){var h=-1*e;this.dom.content.style.transform="translateX(".concat(h,"px)")}else this.dom.content.style.transform="translateX(".concat(e,"px)")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;e.style.top="".concat("top"==t?this.top: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="vis-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="vis-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);tT.prototype.baseClassName="vis-item vis-range";var eT=function(t){function e(t,i,n){var r;if(bw(this,e),(r=Sk(this,Mk(e).call(this,t,i,n))).props={content:{width:0}},r.overflow=!1,t){if(null==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return r}return Ak(e,t),Sw(e,[{key:"isVisible",value:function(t){return this.data.start<t.end&&this.data.end>t.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="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-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?" vis-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,n,r,o,s,a=this,l=[vw(e=this._createDomElement).call(e,this),vw(i=this._appendDomElement).call(i,this),vw(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(o=vw(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&vw(t=a._updateDomComponentsSizes).call(t,a)(o)},vw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(B_(l).call(l,(function(t){s=t()})),s)}},{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="".concat("top"==i?this.parent.top+this.parent.subgroups[n].top: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 JM?(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);eT.prototype.baseClassName="vis-item vis-background",eT.prototype.stack=!1,eT.prototype.show=tT.prototype.show,eT.prototype.hide=tT.prototype.hide,eT.prototype.repositionX=tT.prototype.repositionX;var iT=function(){function t(e,i){bw(this,t),this.container=e,this.overflowMethod=i||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Sw(t,[{key:"setPosition",value:function(t,e){this.x=lO(t),this.y=lO(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,o=0,s=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){var a=!1,l=!0;"flip"==this.overflowMethod&&(this.y-e<this.padding&&(l=!1),this.x+i>r-this.padding&&(a=!0)),o=a?this.x-i:this.x,s=l?this.y-e:this.y}else(s=this.y-e)+e+this.padding>n&&(s=n-e-this.padding),s<this.padding&&(s=this.padding),(o=this.x)+i+this.padding>r&&(o=r-i-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=s+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),nT=P_.every,rT=E_("every"),oT=j_("every");gb({target:"Array",proto:!0,forced:!rT||!oT},{every:function(t){return nT(this,t,arguments.length>1?arguments[1]:void 0)}});var sT=z_("Array").every,aT=Array.prototype,lT=function(t){var e=t.every;return t===aT||t instanceof Array&&e===aT.every?sT:e},uT=ib.f,hT=function(t){return function(e){for(var i,n=cy(e),r=Ub(n),o=r.length,s=0,a=[];o>s;)i=r[s++],my&&!uT.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},cT={entries:hT(!0),values:hT(!1)}.values;gb({target:"Object",stat:!0},{values:function(t){return cT(t)}});var dT=db.Object.values,fT=function(t){function e(t,i,n){var r;bw(this,e);var o=bM({},{fitOnDoubleClick:!0},n,{editable:!1});if((r=Sk(this,Mk(e).call(this,t,i,o))).props={content:{width:0,height:0}},!t||null==t.uiItems)throw new Error('Property "uiItems" missing in item '+t.id);return r.id=lS.randomUUID(),r.group=t.group,r._setupRange(),r.emitter=r.data.eventEmitter,r.range=r.data.range,r.attached=!1,r.isCluster=!0,r.data.isCluster=!0,r}return Ak(e,t),Sw(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.start<t.end&&n>t.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,n,r,o,s,a,l,u=[vw(e=this._createDomElement).call(e,this),vw(i=this._appendDomElement).call(i,this),vw(n=this._updateDirtyDomComponents).call(n,this),vw(r=function(){this.dirty&&(a=this._getDomComponentsSizes())}).call(r,this),vw(o=function(){var t;this.dirty&&vw(t=this._updateDomComponentsSizes).call(t,this)(a)}).call(o,this),vw(s=this._repaintDomAdditionals).call(s,this)];return t?u:(B_(u).call(u,(function(t){l=t()})),l)}},{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";var i=this.dom.line.offsetWidth,n=this.dom.dot.offsetWidth;if(e){var r=i+t+(e-t)/2,o=r-n/2,s=this.options.rtl?-1*r:r,a=this.options.rtl?-1*o:o;this.dom.line.style.transform="translateX(".concat(s,"px)"),this.dom.dot.style.transform="translateX(".concat(a,"px)")}else{var l=this.options.rtl?-1*t:t,u=this.options.rtl?-1*(t-n/2):t-n/2;this.dom.line.style.transform="translateX(".concat(l,"px)"),this.dom.dot.style.transform="translateX(".concat(u,"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,e=!0,i=!1,n=void 0;try{for(var r,o=iM(this.data.uiItems);!(e=(r=o.next()).done);e=!0){r.value.cluster=this}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}this.data.items=nS(t=this.data.uiItems).call(t,(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 r,o=iM(this.data.uiItems);!(e=(r=o.next()).done);e=!0){var s=r.value;delete s.cluster}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.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,e,i,n=nS(t=this.data.uiItems).call(t,(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,mM(nS(n).call(n,(function(t){return Math.min(t.start,t.end||t.start)})))),this.data.max=Math.max.apply(Math,mM(nS(n).call(n,(function(t){return Math.max(t.start,t.end||t.start)}))));var r=nS(e=this.data.uiItems).call(e,(function(t){return t.center})),o=$k(r).call(r,(function(t,e){return t+e}),0)/this.data.uiItems.length;hD(i=this.data.uiItems).call(i,(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(o),this.data.end=null)}},{key:"_getUiItems",value:function(){var t,e=this;return this.data.uiItems&&this.data.uiItems.length?ow(t=this.data.uiItems).call(t,(function(t){return t.cluster===e})):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var t;if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick)this.dom.box.ondblclick=vw(t=e.prototype._onDoubleClick).call(t,this);this.dom.box["vis-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?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+t,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-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},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},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}($M);fT.prototype.baseClassName="vis-item vis-range vis-cluster";var pT="__ungrouped__",mT=function(){function t(e){bw(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return Sw(t,[{key:"createClusterItem",value:function(t,e,i){return new fT(t,e,i)}},{key:"setItems",value:function(t,e){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,e&&e.applyOnChangedLevel&&(this.applyOnChangedLevel=e.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(t,e,i){var n="boolean"==typeof i?{}:i,r=n.maxItems,o=n.clusterCriteria;o||(o=function(){return!0}),r=r||1;var s=-1,a=0;if(e>0){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 l=s!=this.cacheLevel;(!this.applyOnChangedLevel||l)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=s;var u=this.cache[s];if(!u){for(var h in u=[],this.groups)if(this.groups.hasOwnProperty(h))for(var c=this.groups[h],d=c.length,f=0;f<d;){for(var p=c[f],m=1,v=f-1;v>=0&&p.center-c[v].center<a/2;)!c[v].cluster&&o(p.data,c[v].data)&&m++,v--;for(var g=f+1;g<c.length&&c[g].center-p.center<a/2;)o(p.data,c[g].data)&&m++,g++;for(var y=u.length-1;y>=0&&p.center-u[y].center<a;)p.group==u[y].group&&o(p.data,u[y].data)&&m++,y--;if(m>r){for(var b=m-r+1,_=[],w=f;_.length<b&&w<c.length;)o(c[w].data,c[w].data)&&_.push(c[w]),w++;var k=this.itemSet.getGroupId(p.data),S=this.itemSet.groups[k]||this.itemSet.groups[pT],D=this._getClusterForItems(_,S,t,i);u.push(D),f+=b}else delete p.cluster,f+=1}this.cache[s]=u}return u}},{key:"_filterData",value:function(){var t={};this.groups=t;for(var e=0,i=dT(this.items);e<i.length;e++){var n=i[e],r=n.parent?n.parent.groupId:"",o=t[r];o||(o=[],t[r]=o),o.push(n),n.data.start&&(n.data.end?n.center=(n.data.start.valueOf()+n.data.end.valueOf())/2:n.center=n.data.start.valueOf())}for(var s in t){var a;if(t.hasOwnProperty(s))RS(a=t[s]).call(a,(function(t,e){return t.center-e.center}))}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,e,i,n){var r,o,s=nS(r=i||[]).call(r,(function(t){var e;return{cluster:t,itemsIds:new qO(nS(e=t.data.uiItems).call(e,(function(t){return t.id})))}}));if(s.length){var a=!0,l=!1,u=void 0;try{for(var h,c=function(){var e=h.value;if(e.itemsIds.size===t.length&&lT(t).call(t,(function(t){return e.itemsIds.has(t.id)})))return o=e.cluster,"break"},d=iM(s);!(a=(h=d.next()).done);a=!0){if("break"===c())break}}catch(t){l=!0,u=t}finally{try{a||null==d.return||d.return()}finally{if(l)throw u}}}if(o)return o.setUiItems(t),o.group!==e&&(o.group&&o.group.remove(o),e&&(e.add(o),o.group=e)),o;var f=n.titleTemplate||"",p={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},m='<div title="'+v+'">'+t.length+"</div>",v=f.replace(/{count}/,t.length),g=bM({},n,this.itemSet.options),y={content:m,title:v,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(y,p,g),e&&(e.add(o),o.group=e),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}(),vT="__background__",gT=function(t){function e(t,i){var n;bw(this,e),(n=Sk(this,Mk(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,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:uO.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=lS.extend({},n.defaultOptions),n.options.rtl=i.rtl,n.options.onTimeout=i.onTimeout,n.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},n.dom={},n.props={},n.hammer=null;var r=kk(n);return n.itemsData=null,n.groupsData=null,n.itemsSettingTime=null,n.initialItemSetDrawn=!1,n.userContinueNotBail=null,n.sequentialSelection=!1,n.itemListeners={add:function(t,e,i){r._onAdd(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()},update:function(t,e,i){r._onUpdate(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()},remove:function(t,e,i){r._onRemove(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()}},n.groupListeners={add:function(t,e,i){if(r._onAddGroups(e.items),r.groupsData&&r.groupsData.length>0){var n,o=r.groupsData.getDataSet();B_(n=o.get()).call(n,(function(t){if(t.nestedGroups){var e;0!=t.showNested&&(t.showNested=!0);var n=[];B_(e=t.nestedGroups).call(e,(function(e){var i=o.get(e);i&&(i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),n=CS(n).call(n,i))})),o.update(n,i)}}))}},update:function(t,e,i){r._onUpdateGroups(e.items)},remove:function(t,e,i){r._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 Ak(e,t),Sw(e,[{key:"_create",value:function(){var t,e,i,n,r,o,s,a,l,u,h,c,d,f,p,m=this,v=document.createElement("div");v.className="vis-itemset",v["vis-itemset"]=this,this.dom.frame=v;var g=document.createElement("div");g.className="vis-background",v.appendChild(g),this.dom.background=g;var y=document.createElement("div");y.className="vis-foreground",v.appendChild(y),this.dom.foreground=y;var b=document.createElement("div");b.className="vis-axis",this.dom.axis=b;var _=document.createElement("div");_.className="vis-labelset",this.dom.labelSet=_,this._updateUngrouped();var w=new JM(vT,null,this);w.show(),this.groups[vT]=w,this.hammer=new iO(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(t){t.isFirst&&m._onTouch(t)})),this.hammer.on("panstart",vw(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",vw(e=this._onDrag).call(e,this)),this.hammer.on("panend",vw(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:iO.ALL}),this.hammer.on("tap",vw(n=this._onSelectItem).call(n,this)),this.hammer.on("press",vw(r=this._onMultiSelectItem).call(r,this)),this.hammer.on("doubletap",vw(o=this._onAddItem).call(o,this)),this.options.rtl?this.groupHammer=new iO(this.body.dom.rightContainer):this.groupHammer=new iO(this.body.dom.leftContainer),this.groupHammer.on("tap",vw(s=this._onGroupClick).call(s,this)),this.groupHammer.on("panstart",vw(a=this._onGroupDragStart).call(a,this)),this.groupHammer.on("panmove",vw(l=this._onGroupDrag).call(l,this)),this.groupHammer.on("panend",vw(u=this._onGroupDragEnd).call(u,this)),this.groupHammer.get("pan").set({threshold:5,direction:iO.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",vw(h=this._onMouseOver).call(h,this)),this.body.dom.centerContainer.addEventListener("mouseout",vw(c=this._onMouseOut).call(c,this)),this.body.dom.centerContainer.addEventListener("mousemove",vw(d=this._onMouseMove).call(d,this)),this.body.dom.centerContainer.addEventListener("contextmenu",vw(f=this._onDragEnd).call(f,this)),this.body.dom.centerContainer.addEventListener("mousewheel",vw(p=this._onMouseWheel).call(p,this)),this.show()}},{key:"setOptions",value:function(t){var e=this;if(t){var i,n;lS.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","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"===wk(t.itemsAlwaysDraggable)&&(lS.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in t&&"boolean"==typeof t.sequentialSelection&&(this.options.sequentialSelection=t.sequentialSelection),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===wk(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"===wk(t.margin)&&(lS.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"===wk(t.margin.item)&&lS.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),B_(i=["locale","locales"]).call(i,(function(i){i in t&&(e.options[i]=t[i])})),"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"===wk(t.editable)&&lS.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"===wk(t.groupEditable)&&lS.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable));B_(n=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(n,(function(i){var n=t[i];if(n){var r;if("function"!=typeof n)throw new Error(CS(r="option ".concat(i," must be a function ")).call(r,i,"(item, callback)"));e.options[i]=n}})),t.cluster?(bM(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new mT(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&&B_(lS).call(lS,this.items,(function(t){t.dirty=!0,t.displayed&&t.redraw()})),t.restackGroups&&B_(lS).call(lS,this.groups,(function(t,e){e!==vT&&(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){if(this.clearPopupTimer(),t){var e=this.options.tooltip.delay||"number"==typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=uw((function(){t.show()}),e)}}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(t){var e;null==t&&(t=[]),yw(t)||(t=[t]);var i=ow(e=this.selection).call(e,(function(e){return-1===xD(t).call(t,e)})),n=!0,r=!1,o=void 0;try{for(var s,a=iM(i);!(n=(s=a.next()).done);n=!0){var l=s.value,u=this.getItemById(l);u&&u.unselect()}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}this.selection=mM(t);var h=!0,c=!1,d=void 0;try{for(var f,p=iM(t);!(h=(f=p.next()).done);h=!0){var m=f.value,v=this.getItemById(m);v&&v.select()}}catch(t){c=!0,d=t}finally{try{h||null==p.return||p.return()}finally{if(c)throw d}}}},{key:"getSelection",value:function(){var t;return CS(t=this.selection).call(t,[])}},{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 r in this.groups)if(this.groups.hasOwnProperty(r)){var o=this.groups[r],s=o.isVisible?o.visibleItems:[],a=!0,l=!1,u=void 0;try{for(var h,c=iM(s);!(a=(h=c.next()).done);a=!0){var d=h.value;this.options.rtl?d.right<e&&d.right+d.width>t&&n.push(d.id):d.left<t&&d.left+d.width>e&&n.push(d.id)}}catch(t){l=!0,u=t}finally{try{a||null==c.return||c.return()}finally{if(l)throw u}}}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){var e;return this.items[t]||eM(e=this.clusters).call(e,(function(e){return e.id===t}))}},{key:"_deselect",value:function(t){for(var e=this.selection,i=0,n=e.length;i<n;i++)if(e[i]==t){gD(e).call(e,i,1);break}}},{key:"redraw",value:function(){var t=this,e=this.options.margin,i=this.body.range,n=lS.option.asSize,r=this.options,o=r.orientation.item,s=!1,a=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,a.className="vis-itemset",this.options.cluster&&this._clusterItems(),s=this._orderGroups()||s;var l=i.end-i.start,u=l!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,h=i.start!=this.lastRangeStart,c=r.stack!=this.lastStack,d=r.stackSubgroups!=this.lastStackSubgroups,f=u||h||c||d;this.lastVisibleInterval=l,this.lastRangeStart=i.start,this.lastStack=r.stack,this.lastStackSubgroups=r.stackSubgroups,this.props.lastWidth=this.props.width;var p=this._firstGroup(),m={item:e.item,axis:e.axis},v={item:e.item,axis:e.item.vertical/2},g=0,y=e.axis+e.item.vertical;this.groups[vT].redraw(i,v,f);var b={},_=0;return B_(lS).call(lS,this.groups,(function(t,e){if(e!==vT){var n=t==p?m:v;b[e]=t.redraw(i,n,f,!0),_=b[e].length}})),_>0&&function(){for(var e={},i=function(t){B_(lS).call(lS,b,(function(i,n){e[n]=i[t]()}))},n=0;n<_;n++)i(n);B_(lS).call(lS,t.groups,(function(t,i){if(i!==vT){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"==o?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.hammer.get("press").set({time:this.options.longSelectPressTime}),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.__ungrouped__||null}},{key:"_updateUngrouped",value:function(){var t,e,i=this.groups.__ungrouped__;if(this.groupsData){if(i)for(e in i.dispose(),delete this.groups.__ungrouped__,this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var n=this.getGroupId(t.data),r=this.groups[n];r&&r.add(t)||t.hide()}}else if(!i){for(e in i=new ZM(null,null,this),this.groups.__ungrouped__=i,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 ny||t instanceof ry))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=aS(t)}else this.itemsData=null;if(n&&(B_(lS).call(lS,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;B_(lS).call(lS,this.itemListeners,(function(t,e){i.itemsData.on(e,t,r)})),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return null!=this.itemsData?this.itemsData.rawDS:null}},{key:"setGroups",value:function(t){var e,i=this;if(this.groupsData&&(B_(lS).call(lS,this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!(t instanceof ny||t instanceof ry))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var n,r=this.groupsData;this.groupsData instanceof ry&&(r=this.groupsData.getDataSet()),B_(n=r.get()).call(n,(function(t){var e;t.nestedGroups&&B_(e=t.nestedGroups).call(e,(function(e){var i=r.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),r.update(i)}))}));var o=this.id;B_(lS).call(lS,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,i=this.itemsData.get(t);i&&this.options.onRemove(i,(function(i){i&&e.itemsData.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)&&null==t.group?vT:this.groupsData?t.group:"__ungrouped__"}},{key:"_onUpdate",value:function(t){var i=this,n=this;B_(t).call(t,(function(t){var r,o=n.itemsData.get(t),s=n.items[t],a=o?n._getType(o):null,l=e.types[a];if(s&&(l&&s instanceof l?n._updateItem(s,o):(r=s.selected,n._removeItem(s),s=null)),!s&&o){if(!l)throw new TypeError('Unknown item type "'.concat(a,'"'));(s=new l(o,n.conversion,n.options)).id=t,n._addItem(s),r&&(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;B_(t).call(t,(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(){B_(lS).call(lS,this.groups,(function(t){t.order()}))}},{key:"_onUpdateGroups",value:function(t){this._onAddGroups(t)}},{key:"_onAddGroups",value:function(t){var e=this;B_(t).call(t,(function(t){var i=e.groupsData.get(t),n=e.groups[t];if(n)n.setData(i);else{if("__ungrouped__"==t||t==vT)throw new Error("Illegal group id. ".concat(t," is a reserved id."));var r=ZO(e.options);for(var o in lS.extend(r,{height:null}),n=new ZM(t,i,e),e.groups[t]=n,e.items)if(e.items.hasOwnProperty(o)){var s=e.items[o];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;B_(t).call(t,(function(t){var i=e.groups[t];i&&(i.dispose(),delete e.groups[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=!lS.equalArray(t,this.groupIds);if(e){var i=this.groups;B_(t).call(t,(function(t){i[t].hide()})),B_(t).call(t,(function(t){i[t].show()})),this.groupIds=t}return e}return!1}},{key:"_orderNestedGroups",value:function(t){var e=this;return function t(e,i){var n=[];return B_(i).call(i,(function(i){if(n.push(i),e.groupsData.get(i).nestedGroups){var r,o=nS(r=e.groupsData.get({filter:function(t){return t.nestedInGroup==i},order:e.options.groupOrder})).call(r,(function(t){return t.id}));n=CS(n).call(n,t(e,o))}})),n}(this,ow(t).call(t,(function(t){return!e.groupsData.get(t).nestedInGroup})))}},{key:"_addItem",value:function(t){this.items[t.id]=t;var e=this.getGroupId(t.data),i=this.groups[e];i?i&&i.data&&i.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,i&&i.add(t)}},{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){var e,i;t.hide(),delete this.items[t.id];var n=xD(e=this.selection).call(e,t.id);-1!=n&&gD(i=this.selection).call(i,n,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(t){for(var e=[],i=0;i<t.length;i++)t[i]instanceof tT&&e.push(t[i]);return e}},{key:"_onTouch",value:function(t){this.touchParams.item=this.itemFromTarget(t),this.touchParams.dragLeftItem=t.target.dragLeftItem||!1,this.touchParams.dragRightItem=t.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(t){for(var e=0;e<this.groupIds.length;e++)if(t==this.groupIds[e])return e}},{key:"_onDragStart",value:function(t){var e=this;if(!this.touchParams.itemIsDragging){var i,n=this.touchParams.item||null,r=this;if(n&&(n.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=n.editable&&!n.editable.updateTime&&!n.editable.updateGroup&&!this.options.editable.overrideItems)return;var o=this.touchParams.dragLeftItem,s=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=n,o)i={item:o,initialX:t.center.x,dragLeft:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];else if(s)i={item:s,initialX:t.center.x,dragRight:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];else if(this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey))this._onDragStartAddItem(t);else{this.groupIds.length<1&&this.redraw();var a=this._getGroupIndex(n.data.group),l=this.options.itemsAlwaysDraggable.item&&!n.selected?[n.id]:this.getSelection();this.touchParams.itemProps=nS(l).call(l,(function(i){var n=r.items[i],o=r._getGroupIndex(n.data.group);return{item:n,initialX:t.center.x,groupOffset:a-o,data:e._cloneItemData(n.data)}}))}t.stopPropagation()}else this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey)&&this._onDragStartAddItem(t)}}},{key:"_onDragStartAddItem",value:function(t){var e=this.options.snap||null,i=this.dom.frame.getBoundingClientRect(),n=this.options.rtl?i.right-t.center.x+10:t.center.x-i.left-10,r=this.body.util.toTime(n),o=this.body.util.getScale(),s=this.body.util.getStep(),a=e?e(r,o,s):r,l={type:"range",start:a,end:a,content:"new item"},u=lS.randomUUID();l[this.itemsData.idProp]=u;var h=this.groupFromTarget(t);h&&(l.group=h.groupId);var c=new tT(l,this.conversion,this.options);c.id=u,c.data=this._cloneItemData(l),this._addItem(c),this.touchParams.selectedItem=c;var d={item:c,initialX:t.center.x,data:c.data};this.options.rtl?d.dragLeft=!0:d.dragRight=!0,this.touchParams.itemProps=[d],t.stopPropagation()}},{key:"_onDrag",value:function(t){var e=this;if(null!=this.popup&&this.options.showTooltips&&!this.popup.hidden){var i=this.body.dom.centerContainer,n=i.getBoundingClientRect();this.popup.setPosition(t.center.x-n.left+i.offsetLeft,t.center.y-n.top+i.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var r;t.stopPropagation();var o=this,s=this.options.snap||null,a=this.body.dom.root.offsetLeft,l=this.options.rtl?a+this.body.domProps.right.width:a+this.body.domProps.left.width,u=this.body.util.getScale(),h=this.body.util.getStep(),c=this.touchParams.selectedItem,d=(this.options.editable.overrideItems||null==c.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=c.editable&&c.editable.updateGroup,f=null;if(d&&c&&null!=c.data.group){var p=o.groupFromTarget(t);p&&(f=this._getGroupIndex(p.groupId))}B_(r=this.touchParams.itemProps).call(r,(function(i){var n,r,a,p,m,v=o.body.util.toTime(t.center.x-l),g=o.body.util.toTime(i.initialX-l);n=e.options.rtl?-(v-g):v-g;var y=e._cloneItemData(i.item.data);if(null==i.item.editable||i.item.editable.updateTime||i.item.editable.updateGroup||o.options.editable.overrideItems){if((e.options.editable.overrideItems||null==c.editable)&&e.options.editable.updateTime||!e.options.editable.overrideItems&&null!=c.editable&&c.editable.updateTime)if(i.dragLeft)e.options.rtl?null!=y.end&&(a=lS.convert(i.data.end,"Date"),m=new Date(a.valueOf()+n),y.end=s?s(m,u,h):m):null!=y.start&&(r=lS.convert(i.data.start,"Date"),p=new Date(r.valueOf()+n),y.start=s?s(p,u,h):p);else if(i.dragRight)e.options.rtl?null!=y.start&&(r=lS.convert(i.data.start,"Date"),p=new Date(r.valueOf()+n),y.start=s?s(p,u,h):p):null!=y.end&&(a=lS.convert(i.data.end,"Date"),m=new Date(a.valueOf()+n),y.end=s?s(m,u,h):m);else if(null!=y.start)if(r=lS.convert(i.data.start,"Date").valueOf(),p=new Date(r+n),null!=y.end){var b=(a=lS.convert(i.data.end,"Date")).valueOf()-r.valueOf();y.start=s?s(p,u,h):p,y.end=new Date(y.start.valueOf()+b)}else y.start=s?s(p,u,h):p;if(d&&!i.dragLeft&&!i.dragRight&&null!=f&&null!=y.group){var _=f-i.groupOffset;_=Math.max(0,_),_=Math.min(o.groupIds.length-1,_),y.group=o.groupIds[_]}y=e._cloneItemData(y),o.options.onMoving(y,(function(t){t&&i.item.setData(e._cloneItemData(t,"Date"))}))}})),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(t,e){var i=this.groups[e];if(i&&i.groupId!=t.data.group){var n=t.parent;n.remove(t),n.order(),t.data.group=i.groupId,i.add(t),i.order()}}},{key:"_onDragEnd",value:function(t){var e=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){t.stopPropagation();var i=this,n=this.touchParams.itemProps;this.touchParams.itemProps=null,B_(n).call(n,(function(t){var n=t.item.id;if(null!=i.itemsData.get(n)){var r=e._cloneItemData(t.item.data);i.options.onMove(r,(function(r){r?(r[e.itemsData.idProp]=n,e.itemsData.update(r)):(t.item.setData(t.data),i.body.emitter.emit("_change"))}))}else i.options.onAdd(t.item.data,(function(e){i._removeItem(t.item),e&&i.itemsData.add(e),i.body.emitter.emit("_change")}))}))}}},{key:"_onGroupClick",value:function(t){var e=this,i=this.groupFromTarget(t);uw((function(){e.toggleGroupShowNested(i)}),1)}},{key:"toggleGroupShowNested",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&t.nestedGroups){var n=this.groupsData.getDataSet();t.showNested=null!=i?!!i:!t.showNested;var r=n.get(t.groupId);r.showNested=t.showNested;for(var o=t.nestedGroups,s=o;s.length>0;){var a=s;s=[];for(var l=0;l<a.length;l++){var u=n.get(a[l]);u.nestedGroups&&(s=CS(s).call(s,u.nestedGroups))}s.length>0&&(o=CS(o).call(o,s))}var h=nS(e=n.get(o)).call(e,(function(t){return null==t.visible&&(t.visible=!0),t.visible=!!r.showNested,t}));n.update(CS(h).call(h,r)),r.showNested?(lS.removeClassName(t.dom.label,"collapsed"),lS.addClassName(t.dom.label,"expanded")):(lS.removeClassName(t.dom.label,"expanded"),lS.addClassName(t.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(t){t.dom.label.classList.toggle("vis-group-is-dragging"),t.dom.foreground.classList.toggle("vis-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 ry&&(e=this.groupsData.getDataSet());var i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){var n=i.top<this.groupTouchParams.group.top,r=t.center?t.center.y:t.clientY,o=i.dom.foreground.getBoundingClientRect(),s=this.groupTouchParams.group.height;if(n){if(o.top+s<r)return}else{var a=i.height;if(o.top+a-s>r)return}}if(i&&i!=this.groupTouchParams.group){var l=e.get(i.groupId),u=e.get(this.groupTouchParams.group.groupId);u&&l&&(this.options.groupOrderSwap(u,l,e),e.update(u),e.update(l));var h=e.getIds({order:this.options.groupOrder});if(!lS.equalArray(h,this.groupTouchParams.originalOrder))for(var c=this.groupTouchParams.originalOrder,d=this.groupTouchParams.group.groupId,f=Math.min(c.length,h.length),p=0,m=0,v=0;p<f;){for(;p+m<f&&p+v<f&&h[p+m]==c[p+v];)p++;if(p+m>=f)break;if(h[p+m]==d)m=1;else if(c[p+v]==d)v=1;else{var g=xD(h).call(h,c[p+v]),y=e.get(h[p+m]),b=e.get(c[p+v]);this.options.groupOrderSwap(y,b,e),e.update(y),e.update(b);var _=h[p+m];h[p+m]=c[p+v],h[g]=_,p++}}}}}},{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(),r=lS.extend({},n.get(i));e.options.onMoveGroup(r,(function(t){if(t)t[n._idProp]=i,n.update(t);else{var r=n.getIds({order:e.options.groupOrder});if(!lS.equalArray(r,e.groupTouchParams.originalOrder))for(var o=e.groupTouchParams.originalOrder,s=Math.min(o.length,r.length),a=0;a<s;){for(;a<s&&r[a]==o[a];)a++;if(a>=s)break;var l=xD(r).call(r,o[a]),u=n.get(r[a]),h=n.get(o[a]);e.options.groupOrderSwap(u,h,n),n.update(u),n.update(h);var c=r[a];r[a]=o[a],r[l]=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(),r=this.itemFromTarget(t),o=r&&r.selectable?[r.id]:[];this.setSelection(o);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&&e!==this.itemFromRelatedTarget(t)){var i=e.getTitle();if(this.options.showTooltips&&i){null==this.popup&&(this.popup=new iT(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var n=this.body.dom.centerContainer,r=n.getBoundingClientRect();this.popup.setPosition(t.clientX-r.left+n.offsetLeft,t.clientY-r.top+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);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,i=e.getBoundingClientRect();this.popup.setPosition(t.clientX-i.left+e.offsetLeft,t.clientY-i.top+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.updateTime||this.options.editable.updateGroup)){var e=this;if(t){var i=e.itemsData.get(t.id);this.options.onUpdate(i,(function(t){t&&e.itemsData.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,r=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),s=this.options.rtl?o.right-t.center.x:t.center.x-o.left,a=this.body.util.toTime(s),l=this.body.util.getScale(),u=this.body.util.getStep();"drop"==t.type?((i=JSON.parse(t.dataTransfer.getData("text"))).content=i.content?i.content:"new item",i.start=i.start?i.start:r?r(a,l,u):a,i.type=i.type||"box",i[this.itemsData.idProp]=i.id||lS.randomUUID(),"range"!=i.type||i.end||(e=this.body.util.toTime(s+this.props.width/5),i.end=r?r(e,l,u):e)):((i={start:r?r(a,l,u):a,content:"new item"})[this.itemsData.idProp]=lS.randomUUID(),"range"===this.options.type&&(e=this.body.util.toTime(s+this.props.width/5),i.end=r?r(e,l,u):e));var h=this.groupFromTarget(t);h&&(i.group=h.groupId),i=this._cloneItemData(i),this.options.onAdd(i,(function(e){e&&(n.itemsData.add(e),"drop"==t.type&&n.setSelection([e.id]))}))}}},{key:"_onMultiSelectItem",value:function(t){var i=this;if(this.options.selectable){var n=this.itemFromTarget(t);if(n){var r=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||!1||this.options.sequentialSelection)&&this.options.multiselect){var o=this.itemsData.get(n.id).group,s=void 0;this.options.multiselectPerGroup&&r.length>0&&(s=this.itemsData.get(r[0]).group),this.options.multiselectPerGroup&&null!=s&&s!=o||r.push(n.id);var a=e._getItemRange(this.itemsData.get(r));if(!this.options.multiselectPerGroup||s==o)for(var l in r=[],this.items)if(this.items.hasOwnProperty(l)){var u=this.items[l],h=u.data.start,c=void 0!==u.data.end?u.data.end:h;!(h>=a.min&&c<=a.max)||this.options.multiselectPerGroup&&s!=this.itemsData.get(u.id).group||u instanceof eT||r.push(u.id)}}else{var d=xD(r).call(r,n.id);-1==d?r.push(n.id):gD(r).call(r,d,1)}var f=ow(r).call(r,(function(t){return i.getItemById(t).selectable}));this.setSelection(f),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}}},{key:"itemFromElement",value:function(t){for(var e=t;e;){if(e.hasOwnProperty("vis-item"))return e["vis-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<i.length;n++){var r=i[n],o=this.groups[r],s=o.dom.foreground,a=s.getBoundingClientRect();if(e>=a.top&&e<a.top+s.offsetHeight)return o;if("top"===this.options.orientation.item){if(n===this.groupIds.length-1&&e>a.top)return o}else if(0===n&&e<a.top+s.offset)return o}return null}},{key:"_cloneItemData",value:function(t,e){var i=lS.extend({},t);return e||(e=this.itemsData.type),null!=i.start&&(i.start=lS.convert(i.start,e&&e.start||"Date")),null!=i.end&&(i.end=lS.convert(i.end,e&&e.end||"Date")),i}},{key:"_clusterItems",value:function(){if(this.options.cluster){var t=this.body.range.conversion(this.body.domProps.center.width).scale,e=this.clusterGenerator.getClusters(this.clusters,t,this.options.cluster);if(this.clusters!=e){if(this._detachAllClusters(),e){var i=!0,n=!1,r=void 0;try{for(var o,s=iM(e);!(i=(o=s.next()).done);i=!0){o.value.attach()}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}this.clusters=e}this._updateClusters(e)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t=!0,e=!1,i=void 0;try{for(var n,r=iM(this.clusters);!(t=(n=r.next()).done);t=!0){n.value.detach()}}catch(t){e=!0,i=t}finally{try{t||null==r.return||r.return()}finally{if(e)throw i}}}}},{key:"_updateClusters",value:function(t){if(this.clusters&&this.clusters.length){var e,i=new qO(nS(t).call(t,(function(t){return t.id}))),n=ow(e=this.clusters).call(e,(function(t){return!i.has(t.id)})),r=!1,o=!0,s=!1,a=void 0;try{for(var l,u=iM(n);!(o=(l=u.next()).done);o=!0){var h,c,d=l.value,f=xD(h=this.selection).call(h,d.id);if(-1!==f)d.unselect(),gD(c=this.selection).call(c,f,1),r=!0}}catch(t){s=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(s)throw a}}if(r){var p=this.getSelection();this.body.emitter.emit("select",{items:p,event:event})}}this.clusters=t||[]}}],[{key:"_getItemRange",value:function(t){var e=null,i=null;return B_(t).call(t,(function(t){(null==i||t.start<i)&&(i=t.start),null!=t.end?(null==e||t.end>e)&&(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("vis-itemset"))return e["vis-itemset"];e=e.parentNode}return null}}]),e}(PS);gT.types={background:eT,box:KM,range:tT,point:QM},gT.prototype._onAdd=gT.prototype._onUpdate;var yT,bT=!1,_T="background: #FFeeee; color: #dd0000",wT=function(){function t(){bw(this,t)}return Sw(t,null,[{key:"validate",value:function(e,i,n){bT=!1,yT=i;var r=i;return void 0!==n&&(r=i[n]),t.parse(e,r,[]),bT}},{key:"parse",value:function(e,i,n){for(var r in e)e.hasOwnProperty(r)&&t.check(r,e,i,n)}},{key:"check",value:function(e,i,n,r){if(void 0!==n[e]||void 0!==n.__any__){var o=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(o="__any__",s="object"===t.getType(i[e]));var a=n[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,o,a,r)}else t.getSuggestion(e,n,r)}},{key:"checkFields",value:function(e,i,n,r,o,s){var a=function(i){console.log("%c"+i+t.printLocation(s,e),_T)},l=t.getType(i[e]),u=o[l];void 0!==u?"array"===t.getType(u)&&-1===xD(u).call(u,i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+i[e]+'". '),bT=!0):"object"===l&&"__any__"!==r&&(s=lS.copyAndExtendArray(s,e),t.parse(i[e],n[r],s)):void 0===o.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(Vk(o))+". Received ["+l+'] "'+i[e]+'"'),bT=!0)}},{key:"getType",value:function(t){var e=wk(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":yw(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,n){var r,o=t.findInOptions(e,i,n,!1),s=t.findInOptions(e,yT,[],!0);r=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':s.distance<=4&&o.distance>s.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Vk(i))+t.printLocation(n,e),console.log('%cUnknown option detected: "'+e+'"'+r,_T),bT=!0}},{key:"findInOptions",value:function(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),u=void 0;for(var h in i){var c=void 0;if(void 0!==i[h].__type__&&!0===r){var d=t.findInOptions(e,i[h],lS.copyAndExtendArray(n,h));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,u=d.indexMatch)}else{var f;-1!==xD(f=h.toLowerCase()).call(f,l)&&(u=h),o>(c=t.levenshteinDistance(e,h))&&(s=h,a=lS.copyArray(n),o=c)}}return{closestMatch:s,path:a,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",n="\n\n"+i+"options = {\n",r=0;r<t.length;r++){for(var o=0;o<r+1;o++)n+=" ";n+=t[r]+": {\n"}for(var s=0;s<t.length+1;s++)n+=" ";n+=e+"\n";for(var a=0;a<t.length+1;a++){for(var l=0;l<t.length-a;l++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return OS(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var i,n,r=[];for(i=0;i<=e.length;i++)r[i]=[i];for(n=0;n<=t.length;n++)r[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)==t.charAt(n-1)?r[i][n]=r[i-1][n-1]:r[i][n]=Math.min(r[i-1][n-1]+1,Math.min(r[i][n-1]+1,r[i-1][n]+1));return r[e.length][t.length]}}]),t}(),kT="string",ST="boolean",DT="number",xT="object",OT={configure:{enabled:{boolean:ST},filter:{boolean:ST,function:"function"},container:{dom:"dom"},__type__:{object:xT,boolean:ST,function:"function"}},align:{string:kT},alignCurrentTime:{string:kT,undefined:"undefined"},rtl:{boolean:ST,undefined:"undefined"},rollingMode:{follow:{boolean:ST},offset:{number:DT,undefined:"undefined"},__type__:{object:xT}},onTimeout:{timeoutMs:{number:DT},callback:{function:"function"},__type__:{object:xT}},verticalScroll:{boolean:ST,undefined:"undefined"},horizontalScroll:{boolean:ST,undefined:"undefined"},autoResize:{boolean:ST},throttleRedraw:{number:DT},clickToUse:{boolean:ST},dataAttributes:{string:kT,array:"array"},editable:{add:{boolean:ST,undefined:"undefined"},remove:{boolean:ST,undefined:"undefined"},updateGroup:{boolean:ST,undefined:"undefined"},updateTime:{boolean:ST,undefined:"undefined"},overrideItems:{boolean:ST,undefined:"undefined"},__type__:{boolean:ST,object:xT}},end:{number:DT,date:"date",string:kT,moment:"moment"},format:{minorLabels:{millisecond:{string:kT,undefined:"undefined"},second:{string:kT,undefined:"undefined"},minute:{string:kT,undefined:"undefined"},hour:{string:kT,undefined:"undefined"},weekday:{string:kT,undefined:"undefined"},day:{string:kT,undefined:"undefined"},week:{string:kT,undefined:"undefined"},month:{string:kT,undefined:"undefined"},year:{string:kT,undefined:"undefined"},__type__:{object:xT,function:"function"}},majorLabels:{millisecond:{string:kT,undefined:"undefined"},second:{string:kT,undefined:"undefined"},minute:{string:kT,undefined:"undefined"},hour:{string:kT,undefined:"undefined"},weekday:{string:kT,undefined:"undefined"},day:{string:kT,undefined:"undefined"},week:{string:kT,undefined:"undefined"},month:{string:kT,undefined:"undefined"},year:{string:kT,undefined:"undefined"},__type__:{object:xT,function:"function"}},__type__:{object:xT}},moment:{function:"function"},groupHeightMode:{string:kT},groupOrder:{string:kT,function:"function"},groupEditable:{add:{boolean:ST,undefined:"undefined"},remove:{boolean:ST,undefined:"undefined"},order:{boolean:ST,undefined:"undefined"},__type__:{boolean:ST,object:xT}},groupOrderSwap:{function:"function"},height:{string:kT,number:DT},hiddenDates:{start:{date:"date",number:DT,string:kT,moment:"moment"},end:{date:"date",number:DT,string:kT,moment:"moment"},repeat:{string:kT},__type__:{object:xT,array:"array"}},itemsAlwaysDraggable:{item:{boolean:ST,undefined:"undefined"},range:{boolean:ST,undefined:"undefined"},__type__:{boolean:ST,object:xT}},limitSize:{boolean:ST},locale:{string:kT},locales:{__any__:{any:"any"},__type__:{object:xT}},longSelectPressTime:{number:DT},margin:{axis:{number:DT},item:{horizontal:{number:DT,undefined:"undefined"},vertical:{number:DT,undefined:"undefined"},__type__:{object:xT,number:DT}},__type__:{object:xT,number:DT}},max:{date:"date",number:DT,string:kT,moment:"moment"},maxHeight:{number:DT,string:kT},maxMinorChars:{number:DT},min:{date:"date",number:DT,string:kT,moment:"moment"},minHeight:{number:DT,string:kT},moveable:{boolean:ST},multiselect:{boolean:ST},multiselectPerGroup:{boolean:ST},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:kT,undefined:"undefined"},item:{string:kT,undefined:"undefined"},__type__:{string:kT,object:xT}},selectable:{boolean:ST},sequentialSelection:{boolean:ST},showCurrentTime:{boolean:ST},showMajorLabels:{boolean:ST},showMinorLabels:{boolean:ST},showWeekScale:{boolean:ST},stack:{boolean:ST},stackSubgroups:{boolean:ST},cluster:{maxItems:{number:DT,undefined:"undefined"},titleTemplate:{string:kT,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:ST,undefined:"undefined"},fitOnDoubleClick:{boolean:ST,undefined:"undefined"},__type__:{boolean:ST,object:xT}},snap:{function:"function",null:"null"},start:{date:"date",number:DT,string:kT,moment:"moment"},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:kT,function:"function"},showTooltips:{boolean:ST},tooltip:{followMouse:{boolean:ST},overflowMethod:{string:["cap","flip","none"]},delay:{number:DT},template:{function:"function"},__type__:{object:xT}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:ST,object:xT}},timeAxis:{scale:{string:kT,undefined:"undefined"},step:{number:DT,undefined:"undefined"},__type__:{object:xT}},type:{string:kT},width:{string:kT,number:DT},preferZoom:{boolean:ST},zoomable:{boolean:ST},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:DT},zoomMax:{number:DT},zoomMin:{number:DT},__type__:{object:xT}},MT={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",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:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1]}};gb({target:"Array",proto:!0},{fill:function(t){for(var e=yb(this),i=Yb(e.length),n=arguments.length,r=Fb(n>1?arguments[1]:void 0,i),o=n>2?arguments[2]:void 0,s=void 0===o?i:Fb(o,i);s>r;)e[r++]=t;return e}});var TT=z_("Array").fill,CT=Array.prototype,PT=function(t){var e=t.fill;return t===CT||t instanceof Array&&e===CT.fill?TT:e},ET={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},AT=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;bw(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 Sw(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 ET[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===lS.isString(t)){if(!0===lS.isValidRGB(t)){var r=t.substr(4).substr(0,t.length-5).split(",");i={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===lS.isValidRGBA(t)){var o=t.substr(5).substr(0,t.length-6).split(",");i={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===lS.isValidHex(t)){var s=lS.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: "+OS(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,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=lS.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",uw((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){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=lS.extend({},t)),this.color=t;var i=lS.RGBToHSV(t.r,t.g,t.b),n=2*Math.PI,r=this.r*i.s,o=this.centerCoordinates.x+r*Math.sin(n*i.h),s=this.centerCoordinates.y+r*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.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=lS.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=lS.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=lS.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,r=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,r),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),PT(i).call(i),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(){var t,e,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var r=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-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="vis-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="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=vw(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=vw(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=vw(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=vw(n=this._loadLast).call(n,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 iO(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),nO(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,i,n,r,o=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,s),this.centerCoordinates={x:.5*o,y:.5*s},this.r=.49*o;var a,l=2*Math.PI/360,u=1/this.r;for(n=0;n<360;n++)for(r=0;r<this.r;r++)e=this.centerCoordinates.x+r*Math.sin(l*n),i=this.centerCoordinates.y+r*Math.cos(l*n),a=lS.HSVToRGB(n*(1/360),r*u,1),t.fillStyle="rgb("+a.r+","+a.g+","+a.b+")",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,s)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,s=i-o,a=n-r,l=Math.atan2(s,a),u=.98*Math.min(Math.sqrt(s*s+a*a),o),h=Math.cos(l)*u+r,c=Math.sin(l)*u+o;this.colorPickerSelector.style.top=h-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=c-.5*this.colorPickerSelector.clientWidth+"px";var d=l/(2*Math.PI);d=d<0?d+1:d;var f=u/this.r,p=lS.RGBToHSV(this.color.r,this.color.g,this.color.b);p.h=d,p.s=f;var m=lS.HSVToRGB(p.h,p.s,p.v);m.a=this.color.a,this.color=m,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+")"}}]),t}(),LT=function(){function t(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;bw(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},lS.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new AT(r),this.wrapper=void 0}return Sw(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"===wk(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==ow(t)&&(this.options.filter=ow(t)),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===ow(this.options)&&(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=ow(this.options),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===xD(t).call(t,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="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return B_(n).call(n,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerHTML=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");return n.className="vis-configuration vis-config-label vis-config-s"+e.length,n.innerHTML=!0===i?"<i><b>"+t+":</b></i>":t+":",n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==xD(t).call(t,e)&&(r=xD(t).call(t,e));for(var o=0;o<t.length;o++){var s=document.createElement("option");s.value=t[o],o===r&&(s.selected="selected"),s.innerHTML=t[o],n.appendChild(s)}var a=this;n.onchange=function(){a._update(this.value,i)};var l=this._makeLabel(i[i.length-1],i);this._makeItem(i,l,n)}},{key:"_makeRange",value:function(t,e,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=r,a.max=o}catch(t){}a.step=s;var l="",u=0;if(void 0!==e){e<0&&1.2*e<r?(a.min=Math.ceil(1.2*e),u=a.min,l="range increased"):e/1.2<r&&(a.min=Math.ceil(e/1.2),u=a.min,l="range increased"),1.2*e>o&&1!==o&&(a.max=Math.ceil(1.2*e),u=a.max,l="range increased"),a.value=e}else a.value=n;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=Number(a.value);var c=this;a.onchange=function(){h.value=this.value,c._update(Number(this.value),i)},a.oninput=function(){h.value=this.value};var d=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,d,a,h);""!==l&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-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.popupCounter<this.popupLimit){var n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerHTML=t,n.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=uw((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=uw((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,i){var n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=t,void 0!==e&&(n.checked=e,e!==t&&("object"===wk(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var r=this;n.onchange=function(){r._update(this.checked,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeTextInput",value:function(t,e,i){var n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=e,e!==t&&this.changedOptions.push({path:i,value:e});var r=this;n.onchange=function(){r._update(this.value,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeColorField",value:function(t,e,i){var n=this,r=t[1],o=document.createElement("div");"none"!==(e=void 0===e?r:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,o.onclick=function(){n._showColorPicker(e,o,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,o)}},{key:"_showColorPicker",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,n._update(r,i)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){n._showColorPicker(t,e,i)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,r=ow(this.options),o=!1;for(var s in t)if(t.hasOwnProperty(s)){n=!0;var a=t[s],l=lS.copyAndExtendArray(e,s);if("function"==typeof r&&!1===(n=r(s,e))&&!(a instanceof Array)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i),!1!==n){o=!0;var u=this._getValue(l);if(a instanceof Array)this._handleArray(a,u,l);else if("string"==typeof a)this._makeTextInput(a,u,l);else if("boolean"==typeof a)this._makeCheckbox(a,u,l);else if(a instanceof Object){var h=!0;if(-1!==xD(e).call(e,"physics")&&this.moduleOptions.physics.solver!==s&&(h=!1),!0===h)if(void 0!==a.enabled){var c=lS.copyAndExtendArray(l,"enabled"),d=this._getValue(c);if(!0===d){var f=this._makeLabel(s,l,!0);this._makeItem(l,f),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,d,l)}else{var p=this._makeLabel(s,l,!0);this._makeItem(l,p),o=this._handleObject(a,l)||o}}else console.error("dont know how to handle",a,s,l)}}return o}},{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 r=0;r<e.length;r++)"global"!==e[r]&&(void 0===n[e[r]]&&(n[e[r]]={}),r!==e.length-1?n=n[e[r]]:n[e[r]]=t);return i}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+OS(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),IT=function(t){function e(t,i,n,r){var o,s,a,l,u,h,c,d;if(bw(this,e),(d=Sk(this,Mk(e).call(this))).initTime=new Date,d.itemsDone=!1,!(kk(d)instanceof e))throw new SyntaxError("Constructor must be called with the new operator");if(!(yw(n)||n instanceof ny||n instanceof ry)&&n instanceof Object){var f=r;r=n,n=f}r&&r.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var p=kk(d);if(d.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Lk},d.options=lS.deepExtend({},d.defaultOptions),d._create(t),!r||r&&void 0===r.rtl){var m;d.dom.root.style.visibility="hidden";for(var v=d.dom.root;!m&&v;)m=window.getComputedStyle(v,null).direction,v=v.parentElement;d.options.rtl=m&&"rtl"==m.toLowerCase()}else d.options.rtl=r.rtl;r&&(r.rollingMode&&(d.options.rollingMode=r.rollingMode),r.onInitialDrawComplete&&(d.options.onInitialDrawComplete=r.onInitialDrawComplete),r.onTimeout&&(d.options.onTimeout=r.onTimeout),r.loadingScreenTemplate&&(d.options.loadingScreenTemplate=r.loadingScreenTemplate));var g=document.createElement("div");if(d.options.loadingScreenTemplate){var y,b=vw(y=d.options.loadingScreenTemplate).call(y,kk(d)),_=b(d.dom.loadingScreen);_ instanceof Object&&!(_ instanceof Element)?b(g):_ instanceof Element?(g.innerHTML="",g.appendChild(_)):null!=_&&(g.innerHTML=_)}return d.dom.loadingScreen.appendChild(g),d.components=[],d.body={dom:d.dom,domProps:d.props,emitter:{on:vw(o=d.on).call(o,kk(d)),off:vw(s=d.off).call(s,kk(d)),emit:vw(a=d.emit).call(a,kk(d))},hiddenDates:[],util:{getScale:function(){return p.timeAxis.step.scale},getStep:function(){return p.timeAxis.step.step},toScreen:vw(l=p._toScreen).call(l,p),toGlobalScreen:vw(u=p._toGlobalScreen).call(u,p),toTime:vw(h=p._toTime).call(h,p),toGlobalTime:vw(c=p._toGlobalTime).call(c,p)}},d.range=new iD(d.body,d.options),d.components.push(d.range),d.body.range=d.range,d.timeAxis=new hO(d.body,d.options),d.timeAxis2=null,d.components.push(d.timeAxis),d.currentTime=new MO(d.body,d.options),d.components.push(d.currentTime),d.itemSet=new gT(d.body,d.options),d.components.push(d.itemSet),d.itemsData=null,d.groupsData=null,d.dom.root.onclick=function(t){p.emit("click",p.getEventProperties(t))},d.dom.root.ondblclick=function(t){p.emit("doubleClick",p.getEventProperties(t))},d.dom.root.oncontextmenu=function(t){p.emit("contextmenu",p.getEventProperties(t))},d.dom.root.onmouseover=function(t){p.emit("mouseOver",p.getEventProperties(t))},window.PointerEvent?(d.dom.root.onpointerdown=function(t){p.emit("mouseDown",p.getEventProperties(t))},d.dom.root.onpointermove=function(t){p.emit("mouseMove",p.getEventProperties(t))},d.dom.root.onpointerup=function(t){p.emit("mouseUp",p.getEventProperties(t))}):(d.dom.root.onmousemove=function(t){p.emit("mouseMove",p.getEventProperties(t))},d.dom.root.onmousedown=function(t){p.emit("mouseDown",p.getEventProperties(t))},d.dom.root.onmouseup=function(t){p.emit("mouseUp",p.getEventProperties(t))}),d.initialFitDone=!1,d.on("changed",(function(){if(null!=p.itemsData){if(!p.initialFitDone&&!p.options.rollingMode)if(p.initialFitDone=!0,null!=p.options.start||null!=p.options.end){if(null==p.options.start||null==p.options.end)var t=p.getItemRange();var e=null!=p.options.start?p.options.start:t.min,i=null!=p.options.end?p.options.end:t.max;p.setWindow(e,i,{animation:!1})}else p.fit({animation:!1});p.initialDrawDone||!p.initialRangeChangeDone&&(p.options.start||p.options.end)&&!p.options.rollingMode||(p.initialDrawDone=!0,p.itemSet.initialDrawDone=!0,p.dom.root.style.visibility="visible",p.dom.loadingScreen.parentNode.removeChild(p.dom.loadingScreen),p.options.onInitialDrawComplete&&uw((function(){return p.options.onInitialDrawComplete()}),0))}})),d.on("destroyTimeline",(function(){p.destroy()})),r&&d.setOptions(r),d.body.emitter.on("fit",(function(t){d._onFit(t),d.redraw()})),n&&d.setGroups(n),i&&d.setItems(i),d._redraw(),d}return Ak(e,t),Sw(e,[{key:"_createConfigurator",value:function(){return new LT(this,this.dom.container,MT)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(t){if(!0===wT.validate(t,OT)&&console.log("%cErrors have been found in the supplied options object.",_T),OO.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.rawDS),this.setSelection(i)}}}},{key:"setItems",value:function(t){var e;this.itemsDone=!1,e=t?aS(t instanceof ny||t instanceof ry?t:new ny(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.itemSet&&this.itemSet.setItems(null!=e?e.rawDS:null)}},{key:"setGroups",value:function(t){var e;if(t){var i=function(t){return!1!==t.visible};e=t instanceof ny||t instanceof ry?new ry(t,{filter:i}):new ny(ow(t).call(t,i))}else e=null;this.groupsData instanceof ry&&this.groupsData.setData(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&&null!=t){var i=yw(t)?t:[t],n=this.itemsData.get(i),r=null,o=null;if(B_(n).call(n,(function(t){var e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===r||e<r)&&(r=e),(null===o||i>o)&&(o=i)})),null!==r&&null!==o){var s=this,a=this.itemSet.items[i[0]],l=-1*this._getScrollTop(),u=null,h=function(){var t=NT(s,a);t.shouldScroll&&t.itemTop!=u.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},c=!e||void 0===e.zoom||e.zoom,d=(r+o)/2,f=c?1.1*(o-r):Math.max(this.range.end-this.range.start,1.1*(o-r)),p=!e||void 0===e.animation||e.animation;p||(u={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(d-f/2,d+f/2,{animation:p},(function(){h(),uw(h,100)}),(function(t,e,i){var n=NT(s,a);if(!1!==n&&(u||(u=n),u.itemTop!=n.itemTop||u.shouldScroll)){u.itemTop!=n.itemTop&&n.shouldScroll&&(u=n,l=-1*s._getScrollTop());var r=l,o=u.scrollOffset,h=i?o:r+(o-r)*t;s._setScrollTop(-h),e||s._redraw()}}))}}}},{key:"fit",value:function(t,e){var i,n=!t||void 0===t.animation||t.animation;1===this.itemsData.length&&void 0===this.itemsData.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,n=null!==e.max?e.max.valueOf():null,r=null,o=null;if(null!=i&&null!=n){var s=n-i;s<=0&&(s=10);var a=s/this.props.center.width,l={},u=0;if(B_(lS).call(lS,this.itemSet.items,(function(t,e){if(t.groupShowing){l[e]=t.redraw(!0),u=l[e].length}})),u>0)for(var h=function(t){B_(lS).call(lS,l,(function(e){e[t]()}))},c=0;c<u;c++)h(c);if(B_(lS).call(lS,this.itemSet.items,(function(e){var s,l,u=jT(e),h=YT(e);t.options.rtl?(s=u-(e.getWidthRight()+10)*a,l=h+(e.getWidthLeft()+10)*a):(s=u-(e.getWidthLeft()+10)*a,l=h+(e.getWidthRight()+10)*a),s<i&&(i=s,r=e),l>n&&(n=l,o=e)})),r&&o){var d=r.getWidthLeft()+10,f=o.getWidthRight()+10,p=this.props.center.width-d-f;p>0&&(this.options.rtl?(i=jT(r)-f*s/p,n=YT(o)+d*s/p):(i=jT(r)-d*s/p,n=YT(o)+f*s/p))}}return{min:null!=i?new Date(i):null,max:null!=n?new Date(n):null}}},{key:"getDataRange",value:function(){var t,e=null,i=null;this.itemsData&&B_(t=this.itemsData).call(t,(function(t){var n=lS.convert(t.start,"Date").valueOf(),r=lS.convert(null!=t.end?t.end:t.start,"Date").valueOf();(null===e||n<e)&&(e=n),(null===i||r>i)&&(i=r)}));return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}}},{key:"getEventProperties",value:function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=this.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?n.right-e:e-n.left,o=i-n.top,s=this.itemSet.itemFromTarget(t),a=this.itemSet.groupFromTarget(t),l=xO.customTimeFromTarget(t),u=this.itemSet.options.snap||null,h=this.body.util.getScale(),c=this.body.util.getStep(),d=this._toTime(r),f=u?u(d,h,c):d,p=lS.getTarget(t),m=null;return null!=s?m="item":null!=l?m="custom-time":lS.hasParent(p,this.timeAxis.dom.foreground)?m="axis":this.timeAxis2&&lS.hasParent(p,this.timeAxis2.dom.foreground)?m="axis":lS.hasParent(p,this.itemSet.dom.labelSet)?m="group-label":lS.hasParent(p,this.currentTime.bar)?m="current-time":lS.hasParent(p,this.dom.center)&&(m="background"),{event:t,item:s?s.id:null,isCluster:!!s&&!!s.isCluster,items:s?s.items||[]:null,group:a?a.groupId:null,customTime:l?l.options.id:null,what:m,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:r,y:o,time:d,snappedTime:f}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){OO.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}(OO);function jT(t){return lS.convert(t.data.start,"Date").valueOf()}function YT(t){var e=null!=t.data.end?t.data.end:t.data.start;return lS.convert(e,"Date").valueOf()}function NT(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,r=e.parent,o=r.top,s=!0,a=t.timeAxis.options.orientation.axis,l=function(){return"bottom"==a?r.height-e.top-e.height:e.top},u=-1*t._getScrollTop(),h=o+l(),c=e.height;return h<u?o+i<=o+l()+c&&(o+=l()-t.itemSet.options.margin.item.vertical):h+c>u+i?o+=l()+c-i+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:o=Math.min(o,n-i),itemTop:h}}var RT=function(){function t(e,i,n,r,o,s){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(bw(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=s,this._start=e,this._end=i,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=n,this.autoScaleEnd=r,this.formattingFunction=l,n||r){var u=this,h=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=h(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=h(this._end)),this.determineScale()}}return Sw(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 r=!1,o=n;Math.abs(o)<=Math.abs(i);o++){this.magnitudefactor=Math.pow(10,o);for(var s=0;s<this.minorSteps.length;s++){if(this.magnitudefactor*this.minorSteps[s]>=e){r=!0,this.minorStepIdx=s;break}}if(!0===r)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,r=this,o=function(){r.magnitudefactor*=2},s=function(){r.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==e?o():(o(),o())):(this.minorStepIdx=2,1==e?s():(s(),s())));for(var a=t.convertValue(0),l=t.getStep()*t.scale,u=!1,h=0;!u&&h++<5;){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var c=this.containerHeight/this.scale;this._start=i,this._end=this._start+c;var d=this._end*this.scale,f=this.magnitudefactor*this.majorSteps[this.minorStepIdx],p=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var m=a-d;this._end+=m/this.scale,this._start=this._end-c}else this.autoScaleStart?(this._start-=p/this.scale,this._end=this._start+c):(this._start+=f-p/this.scale,this._end=this._start+c);if(!this.autoScaleEnd&&this._end>n+1e-5)s(),u=!1;else{if(!this.autoScaleStart&&this._start<i-1e-5){if(!(this.zeroAlign&&i>=0)){s(),u=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&c<n-i?(o(),u=!1):u=!0}}}},{key:"convertValue",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:"screenToValue",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),t}(),FT=function(t){function e(t,i,n,r){var o;bw(this,e),(o=Sk(this,Mk(e).call(this))).id=lS.randomUUID(),o.body=t,o.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(t){return"".concat(yS(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return"".concat(yS(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},o.linegraphOptions=r,o.linegraphSVG=n,o.props={},o.DOMelements={lines:{},labels:{},title:{}},o.dom={},o.scale=void 0,o.range={start:0,end:0},o.options=lS.extend({},o.defaultOptions),o.conversionFactor=1,o.setOptions(i),o.width=Number("".concat(o.options.width).replace("px","")),o.minWidth=o.width,o.height=o.linegraphSVG.getBoundingClientRect().height,o.hidden=!1,o.stepPixels=25,o.zeroCrossing=-1,o.amountOfSteps=-1,o.lineOffset=0,o.master=!0,o.masterAxis=null,o.svgElements={},o.iconsRemoved=!1,o.groups={},o.amountOfGroups=0,o._create(),null==o.scale&&o._redrawLabels(),o.framework={svg:o.svg,svgElements:o.svgElements,options:o.options,groups:o.groups};var s=kk(o);return o.body.emitter.on("verticalDrag",(function(){s.dom.lineContainer.style.top="".concat(s.body.domProps.scrollTop,"px")})),o}return Ak(e,t),Sw(e,[{key:"addGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1}},{key:"updateGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.amountOfGroups+=1),this.groups[t]=e}},{key:"removeGroup",value:function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)}},{key:"setOptions",value:function(t){if(t){var e=!1;this.options.orientation!=t.orientation&&void 0!==t.orientation&&(e=!0);lS.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,t),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===e&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){var t;es(this.svgElements);var e=this.options.iconWidth,i=11.5;t="left"===this.options.orientation?4:this.width-e-4;var n=Vk(this.groups);RS(n).call(n,(function(t,e){return t<e?-1:1}));var r=!0,o=!1,s=void 0;try{for(var a,l=iM(n);!(r=(a=l.next()).done);r=!0){var u=a.value;!0!==this.groups[u].visible||void 0!==this.linegraphOptions.visibility[u]&&!0!==this.linegraphOptions.visibility[u]||(this.groups[u].getLegend(e,15,this.framework,t,i),i+=19)}}catch(t){o=!0,s=t}finally{try{r||null==l.return||l.return()}finally{if(o)throw s}}is(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(es(this.svgElements),is(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||("left"===this.options.orientation?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(t,e){this.range.start=t,this.range.end=e}},{key:"redraw",value:function(){var t=!1,e=0;for(var i in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(i)&&(!0!==this.groups[i].visible||void 0!==this.linegraphOptions.visibility[i]&&!0!==this.linegraphOptions.visibility[i]||e++);if(0===this.amountOfGroups||0===e)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=!0===this.options.visible?Number("".concat(this.options.width).replace("px","")):0;var n=this.props,r=this.dom.frame;r.className="vis-data-axis",this._calculateCharSize();var o=this.options.orientation,s=this.options.showMinorLabels,a=this.options.showMajorLabels,l=this.body.dom.backgroundHorizontal.offsetWidth;n.minorLabelHeight=s?n.minorCharHeight:0,n.majorLabelHeight=a?n.majorCharHeight:0,n.minorLineWidth=l-this.lineOffset-this.width+2*this.options.minorLinesOffset,n.minorLineHeight=1,n.majorLineWidth=l-this.lineOffset-this.width+2*this.options.majorLinesOffset,n.majorLineHeight=1,"left"===o?(r.style.top="0",r.style.left="0",r.style.bottom="",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(r.style.top="",r.style.bottom="0",r.style.left="0",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),t=this._redrawLabels(),t=this._isResized()||t,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(o)}return t}},{key:"_redrawLabels",value:function(){var t=this,e=!1;es(this.DOMelements.lines),es(this.DOMelements.labels);var i=this.options.orientation,n=null!=this.options[i].range?this.options[i].range:{},r=!0;null!=n.max&&(this.range.end=n.max,r=!1);var o=!0;null!=n.min&&(this.range.start=n.min,o=!1),this.scale=new RT(this.range.start,this.range.end,o,r,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[i].format),!1===this.master&&null!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var s=this.scale.getLines();B_(s).call(s,(function(e){var n=e.y,r=e.major;t.options.showMinorLabels&&!1===r&&t._redrawLabel(n-2,e.val,i,"vis-y-axis vis-minor",t.props.minorCharHeight),r&&n>=0&&t._redrawLabel(n-2,e.val,i,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(r?t._redrawLine(n,i,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(n,i,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))}));var a=0;void 0!==this.options[i].title&&void 0!==this.options[i].title.text&&(a=this.props.titleCharHeight);var l=!0===this.options.icons?Math.max(this.options.iconWidth,a)+this.options.labelOffsetX+15:a+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&!0===this.options.visible?(this.width=this.maxLabelSize+l,this.options.width="".concat(this.width,"px"),is(this.DOMelements.lines),is(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSize<this.width-l&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width="".concat(this.width,"px"),is(this.DOMelements.lines),is(this.DOMelements.labels),this.redraw(),e=!0):(is(this.DOMelements.lines),is(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,r){var o=os("div",this.DOMelements.labels,this.dom.frame);o.className=n,o.innerHTML=e,"left"===i?(o.style.left="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="right"):(o.style.right="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="left"),o.style.top="".concat(t-.5*r+this.options.labelOffsetY,"px"),e+="";var s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<e.length*s&&(this.maxLabelSize=e.length*s)}},{key:"_redrawLine",value:function(t,e,i,n,r){if(!0===this.master){var o=os("div",this.DOMelements.lines,this.dom.lineContainer);o.className=i,o.innerHTML="","left"===e?o.style.left="".concat(this.width-n,"px"):o.style.right="".concat(this.width-n,"px"),o.style.width="".concat(r,"px"),o.style.top="".concat(t,"px")}}},{key:"_redrawTitle",value:function(t){if(es(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){var e=os("div",this.DOMelements.title,this.dom.frame);e.className="vis-y-axis vis-title vis-".concat(t),e.innerHTML=this.options[t].title.text,void 0!==this.options[t].title.style&&lS.addCssText(e,this.options[t].title.style),"left"===t?e.style.left="".concat(this.props.titleCharHeight,"px"):e.style.right="".concat(this.props.titleCharHeight,"px"),e.style.width="".concat(this.height,"px")}is(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var t=document.createTextNode("0"),e=document.createElement("div");e.className="vis-y-axis vis-minor vis-measure",e.appendChild(t),this.dom.frame.appendChild(e),this.props.minorCharHeight=e.clientHeight,this.props.minorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)}if(!("majorCharHeight"in this.props)){var i=document.createTextNode("0"),n=document.createElement("div");n.className="vis-y-axis vis-major vis-measure",n.appendChild(i),this.dom.frame.appendChild(n),this.props.majorCharHeight=n.clientHeight,this.props.majorCharWidth=n.clientWidth,this.dom.frame.removeChild(n)}if(!("titleCharHeight"in this.props)){var r=document.createTextNode("0"),o=document.createElement("div");o.className="vis-y-axis vis-title vis-measure",o.appendChild(r),this.dom.frame.appendChild(o),this.props.titleCharHeight=o.clientHeight,this.props.titleCharWidth=o.clientWidth,this.dom.frame.removeChild(o)}}}]),e}(PS);function HT(t,e){}function GT(t,e){return{style:(e=void 0===e?{}:e).style||t.options.drawPoints.style,styles:e.styles||t.options.drawPoints.styles,size:e.size||t.options.drawPoints.size,className:e.className||t.className}}function zT(t,e){}function WT(t,e){}function VT(t,e,i,n){this.id=e;this.options=lS.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],i),this.usingDefaultStyle=void 0===t.className,this.groupsUsingDefaultStyles=n,this.zeroPosition=0,this.update(t),1==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===t.visible||t.visible}function UT(t,e,i,n){this.body=t,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=i,this.options=lS.extend({},this.defaultOptions),this.linegraphOptions=n,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(e)}HT.draw=function(t,e,i,n){n=n||0;for(var r=function(t,e){var i=void 0;t.options&&t.options.drawPoints&&t.options.drawPoints.onRender&&"function"==typeof t.options.drawPoints.onRender&&(i=t.options.drawPoints.onRender);e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&"function"==typeof e.group.options.drawPoints.onRender&&(i=e.group.options.drawPoints.onRender);return i}(i,e),o=0;o<t.length;o++)if(r){var s=r(t[o],e);!0!==s&&"object"!==wk(s)||ss(t[o].screen_x+n,t[o].screen_y,GT(e,s),i.svgElements,i.svg,t[o].label)}else ss(t[o].screen_x+n,t[o].screen_y,GT(e),i.svgElements,i.svg,t[o].label)},HT.drawIcon=function(t,e,i,n,r,o){var s=.5*r,a=rs("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",i-s),a.setAttributeNS(null,"width",n),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline"),ss(e+.5*n,i,GT(t),o.svgElements,o.svg)},zT.drawIcon=function(t,e,i,n,r,o){var s=.5*r,a=rs("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",i-s),a.setAttributeNS(null,"width",n),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline");var l=Math.round(.3*n),u=t.options.barChart.width/l,h=Math.round(.4*r),c=Math.round(.75*r),d=Math.round((n-2*l)/3);if(as(e+.5*l+d,i+s-h-1,l,h,t.className+" vis-bar",o.svgElements,o.svg,t.style),as(e+1.5*l+d+2,i+s-c-1,l,c,t.className+" vis-bar",o.svgElements,o.svg,t.style),1==t.options.drawPoints.enabled){var f={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/u,className:t.className};ss(e+.5*l+d,i+s-h-1,f,o.svgElements,o.svg),ss(e+1.5*l+d+2,i+s-c-1,f,o.svgElements,o.svg)}},zT.draw=function(t,e,i){var n,r,o,s,a,l,u=[],h={},c=0;for(a=0;a<t.length;a++)if("bar"===(s=i.groups[t[a]]).options.style&&!0===s.visible&&(void 0===i.options.groups.visibility[t[a]]||!0===i.options.groups.visibility[t[a]]))for(l=0;l<e[t[a]].length;l++)u.push({screen_x:e[t[a]][l].screen_x,screen_end:e[t[a]][l].screen_end,screen_y:e[t[a]][l].screen_y,x:e[t[a]][l].x,end:e[t[a]][l].end,y:e[t[a]][l].y,groupId:t[a],label:e[t[a]][l].label}),c+=1;if(0!==c)for(RS(u).call(u,(function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x})),zT._getDataIntersections(h,u),a=0;a<u.length;a++){var d=null!=(s=i.groups[u[a].groupId]).options.barChart.minWidth?s.options.barChart.minWidth:.1*s.options.barChart.width,f=0;if(void 0===h[r=u[a].screen_x])a+1<u.length&&(n=Math.abs(u[a+1].screen_x-r)),o=zT._getSafeDrawData(n,s,d);else{var p=a+(h[r].amount-h[r].resolved);p<u.length&&(n=Math.abs(u[p].screen_x-r)),o=zT._getSafeDrawData(n,s,d),h[r].resolved+=1,!0===s.options.stack&&!0!==s.options.excludeFromStacking?u[a].screen_y<s.zeroPosition?(f=h[r].accumulatedNegative,h[r].accumulatedNegative+=s.zeroPosition-u[a].screen_y):(f=h[r].accumulatedPositive,h[r].accumulatedPositive+=s.zeroPosition-u[a].screen_y):!0===s.options.barChart.sideBySide&&(o.width=o.width/h[r].amount,o.offset+=h[r].resolved*o.width-.5*o.width*(h[r].amount+1))}var m=o.width,v=u[a].screen_x;if(null!=u[a].screen_end?v+=.5*(m=u[a].screen_end-u[a].screen_x):v+=o.offset,as(v,u[a].screen_y-f,m,s.zeroPosition-u[a].screen_y,s.className+" vis-bar",i.svgElements,i.svg,s.style),!0===s.options.drawPoints.enabled){var g={screen_x:u[a].screen_x,screen_y:u[a].screen_y-f,x:u[a].x,y:u[a].y,groupId:u[a].groupId,label:u[a].label};HT.draw([g],s,i,o.offset)}}},zT._getDataIntersections=function(t,e){for(var i,n=0;n<e.length;n++)n+1<e.length&&(i=Math.abs(e[n+1].screen_x-e[n].screen_x)),n>0&&(i=Math.min(i,Math.abs(e[n-1].screen_x-e[n].screen_x))),0===i&&(void 0===t[e[n].screen_x]&&(t[e[n].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[n].screen_x].amount+=1)},zT._getSafeDrawData=function(t,e,i){var n,r;return t<e.options.barChart.width&&t>0?(n=t<i?i:t,r=0,"left"===e.options.barChart.align?r-=.5*t:"right"===e.options.barChart.align&&(r+=.5*t)):(n=e.options.barChart.width,r=0,"left"===e.options.barChart.align?r-=.5*e.options.barChart.width:"right"===e.options.barChart.align&&(r+=.5*e.options.barChart.width)),{width:n,offset:r}},zT.getStackedYRange=function(t,e,i,n,r){if(t.length>0){RS(t).call(t,(function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x}));var o={};zT._getDataIntersections(o,t),e[n]=zT._getStackedYRange(o,t),e[n].yAxisOrientation=r,i.push(n)}},zT._getStackedYRange=function(t,e){for(var i,n=e[0].screen_y,r=e[0].screen_y,o=0;o<e.length;o++)void 0===t[i=e[o].screen_x]?(n=n>e[o].screen_y?e[o].screen_y:n,r=r<e[o].screen_y?e[o].screen_y:r):e[o].screen_y<0?t[i].accumulatedNegative+=e[o].screen_y:t[i].accumulatedPositive+=e[o].screen_y;for(var s in t)t.hasOwnProperty(s)&&(n=(n=n>t[s].accumulatedNegative?t[s].accumulatedNegative:n)>t[s].accumulatedPositive?t[s].accumulatedPositive:n,r=(r=r<t[s].accumulatedNegative?t[s].accumulatedNegative:r)<t[s].accumulatedPositive?t[s].accumulatedPositive:r);return{min:n,max:r}},WT.calcPath=function(t,e){if(null!=t&&t.length>0){return 1==e.options.interpolation.enabled?WT._catmullRom(t,e):WT._linear(t)}},WT.drawIcon=function(t,e,i,n,r,o){var s,a,l=.5*r,u=rs("rect",o.svgElements,o.svg);(u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",i-l),u.setAttributeNS(null,"width",n),u.setAttributeNS(null,"height",2*l),u.setAttributeNS(null,"class","vis-outline"),(s=rs("path",o.svgElements,o.svg)).setAttributeNS(null,"class",t.className),void 0!==t.style&&s.setAttributeNS(null,"style",t.style),s.setAttributeNS(null,"d","M"+e+","+i+" L"+(e+n)+","+i),1==t.options.shaded.enabled&&(a=rs("path",o.svgElements,o.svg),"top"==t.options.shaded.orientation?a.setAttributeNS(null,"d","M"+e+", "+(i-l)+"L"+e+","+i+" L"+(e+n)+","+i+" L"+(e+n)+","+(i-l)):a.setAttributeNS(null,"d","M"+e+","+i+" L"+e+","+(i+l)+" L"+(e+n)+","+(i+l)+"L"+(e+n)+","+i),a.setAttributeNS(null,"class",t.className+" vis-icon-fill"),void 0!==t.options.shaded.style&&""!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style)),1==t.options.drawPoints.enabled)&&ss(e+.5*n,i,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},o.svgElements,o.svg)},WT.drawShading=function(t,e,i,n){if(1==e.options.shaded.enabled){var r,o=Number(n.svg.style.height.replace("px","")),s=rs("path",n.svgElements,n.svg),a="L";1==e.options.interpolation.enabled&&(a="C");var l=0;l="top"==e.options.shaded.orientation?0:"bottom"==e.options.shaded.orientation?o:Math.min(Math.max(0,e.zeroPosition),o),r="group"==e.options.shaded.orientation&&null!=i&&null!=i?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+i[i.length-1][0]+","+i[i.length-1][1]+" "+this.serializePath(i,a,!0)+i[0][0]+","+i[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" V"+l+" H"+t[0][0]+" Z",s.setAttributeNS(null,"class",e.className+" vis-fill"),void 0!==e.options.shaded.style&&s.setAttributeNS(null,"style",e.options.shaded.style),s.setAttributeNS(null,"d",r)}},WT.draw=function(t,e,i){if(null!=t&&null!=t){var n=rs("path",i.svgElements,i.svg);n.setAttributeNS(null,"class",e.className),void 0!==e.style&&n.setAttributeNS(null,"style",e.style);var r="L";1==e.options.interpolation.enabled&&(r="C"),n.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,r,!1))}},WT.serializePath=function(t,e,i){if(t.length<2)return"";var n,r=e;if(i)for(n=t.length-2;n>0;n--)r+=t[n][0]+","+t[n][1]+" ";else for(n=1;n<t.length;n++)r+=t[n][0]+","+t[n][1]+" ";return r},WT._catmullRomUniform=function(t){var e,i,n,r,o,s,a=[];a.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var l=t.length,u=0;u<l-1;u++)e=0==u?t[0]:t[u-1],i=t[u],n=t[u+1],r=u+2<l?t[u+2]:n,o={screen_x:(-e.screen_x+6*i.screen_x+n.screen_x)*(1/6),screen_y:(-e.screen_y+6*i.screen_y+n.screen_y)*(1/6)},s={screen_x:(i.screen_x+6*n.screen_x-r.screen_x)*(1/6),screen_y:(i.screen_y+6*n.screen_y-r.screen_y)*(1/6)},a.push([o.screen_x,o.screen_y]),a.push([s.screen_x,s.screen_y]),a.push([n.screen_x,n.screen_y]);return a},WT._catmullRom=function(t,e){var i=e.options.interpolation.alpha;if(0==i||void 0===i)return this._catmullRomUniform(t);var n,r,o,s,a,l,u,h,c,d,f,p,m,v,g,y,b,_,w,k=[];k.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var S=t.length,D=0;D<S-1;D++)n=0==D?t[0]:t[D-1],r=t[D],o=t[D+1],s=D+2<S?t[D+2]:o,u=Math.sqrt(Math.pow(n.screen_x-r.screen_x,2)+Math.pow(n.screen_y-r.screen_y,2)),h=Math.sqrt(Math.pow(r.screen_x-o.screen_x,2)+Math.pow(r.screen_y-o.screen_y,2)),c=Math.sqrt(Math.pow(o.screen_x-s.screen_x,2)+Math.pow(o.screen_y-s.screen_y,2)),v=Math.pow(c,i),y=Math.pow(c,2*i),g=Math.pow(h,i),b=Math.pow(h,2*i),w=Math.pow(u,i),d=2*(_=Math.pow(u,2*i))+3*w*g+b,f=2*y+3*v*g+b,(p=3*w*(w+g))>0&&(p=1/p),(m=3*v*(v+g))>0&&(m=1/m),a={screen_x:(-b*n.screen_x+d*r.screen_x+_*o.screen_x)*p,screen_y:(-b*n.screen_y+d*r.screen_y+_*o.screen_y)*p},l={screen_x:(y*r.screen_x+f*o.screen_x-b*s.screen_x)*m,screen_y:(y*r.screen_y+f*o.screen_y-b*s.screen_y)*m},0==a.screen_x&&0==a.screen_y&&(a=r),0==l.screen_x&&0==l.screen_y&&(l=o),k.push([a.screen_x,a.screen_y]),k.push([l.screen_x,l.screen_y]),k.push([o.screen_x,o.screen_y]);return k},WT._linear=function(t){for(var e=[],i=0;i<t.length;i++)e.push([t[i].screen_x,t[i].screen_y]);return e},VT.prototype.setItems=function(t){null!=t?(this.itemsData=t,1==RS(this.options)&&lS.insertSort(this.itemsData,(function(t,e){return t.x>e.x?1:-1}))):this.itemsData=[]},VT.prototype.getItems=function(){return this.itemsData},VT.prototype.setZeroPosition=function(t){this.zeroPosition=t},VT.prototype.setOptions=function(t){if(void 0!==t){lS.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),lS.mergeOptions(this.options,t,"interpolation"),lS.mergeOptions(this.options,t,"drawPoints"),lS.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==wk(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},VT.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},VT.prototype.getLegend=function(t,e,i,n,r){null!=i&&null!=i||(i={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]});switch(null!=n&&null!=n||(n=0),null!=r&&null!=r||(r=.5*e),this.options.style){case"line":WT.drawIcon(this,n,r,t,e,i);break;case"points":case"point":HT.drawIcon(this,n,r,t,e,i);break;case"bar":zT.drawIcon(this,n,r,t,e,i)}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},VT.prototype.getYRange=function(t){for(var e=t[0].y,i=t[0].y,n=0;n<t.length;n++)e=e>t[n].y?t[n].y:e,i=i<t[n].y?t[n].y:i;return{min:e,max:i,yAxisOrientation:this.options.yAxisOrientation}},UT.prototype=new PS,UT.prototype.clear=function(){this.groups={},this.amountOfGroups=0},UT.prototype.addGroup=function(t,e){1!=e.options.excludeFromLegend&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},UT.prototype.updateGroup=function(t,e){this.groups[t]=e},UT.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)},UT.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)},UT.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},UT.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},UT.prototype.setOptions=function(t){lS.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,t)},UT.prototype.redraw=function(){var t=0,e=Vk(this.groups);RS(e).call(e,(function(t,e){return t<e?-1:1}));for(var i=0;i<e.length;i++){var n=e[i];1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||t++}if(0==this.options[this.side].visible||0==this.amountOfGroups||0==this.options.enabled||0==t)this.hide();else{if(this.show(),"top-left"==this.options[this.side].position||"bottom-left"==this.options[this.side].position?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),"top-left"==this.options[this.side].position||"top-right"==this.options[this.side].position)this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var r=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+r+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}0==this.options.icons?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var o="";for(i=0;i<e.length;i++)n=e[i],1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||(o+=this.groups[n].content+"<br />");this.dom.textArea.innerHTML=o,this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},UT.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=Vk(this.groups);RS(t).call(t,(function(t,e){return t<e?-1:1})),ns(this.svgElements);var e=window.getComputedStyle(this.dom.frame).paddingTop,i=Number(e.replace("px","")),n=i,r=this.options.iconSize,o=.75*this.options.iconSize,s=i+.5*o+3;this.svg.style.width=r+5+i+"px";for(var a=0;a<t.length;a++){var l=t[a];1!=this.groups[l].visible||void 0!==this.linegraphOptions.visibility[l]&&1!=this.linegraphOptions.visibility[l]||(this.groups[l].getLegend(r,o,this.framework,n,s),s+=o+this.options.iconSpacing)}}};function BT(t,e){this.id=lS.randomUUID(),this.body=t,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=lS.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var i=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(t,e,n){i._onAdd(e.items)},update:function(t,e,n){i._onUpdate(e.items)},remove:function(t,e,n){i._onRemove(e.items)}},this.groupListeners={add:function(t,e,n){i._onAddGroups(e.items)},update:function(t,e,n){i._onUpdateGroups(e.items)},remove:function(t,e,n){i._onRemoveGroups(e.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(e),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",(function(){i.lastStart=i.body.range.start,i.svg.style.left=lS.option.asSize(-i.props.width),i.forceGraphUpdate=!0,i.redraw.call(i)})),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}BT.prototype=new PS,BT.prototype._create=function(){var t=document.createElement("div");t.className="vis-line-graph",this.dom.frame=t,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",t.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new FT(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new FT(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new UT(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new UT(this.body,this.options.legend,"right",this.options.groups),this.show()},BT.prototype.setOptions=function(t){if(t){void 0===t.graphHeight&&void 0!==t.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==t.graphHeight&&lO((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),lS.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,t),lS.mergeOptions(this.options,t,"interpolation"),lS.mergeOptions(this.options,t,"drawPoints"),lS.mergeOptions(this.options,t,"shaded"),lS.mergeOptions(this.options,t,"legend"),t.interpolation&&"object"==wk(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&void 0!==t.dataAxis&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&void 0!==t.legend&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty("__ungrouped__")&&this.groups.__ungrouped__.setOptions(t)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},BT.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},BT.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},BT.prototype.setItems=function(t){var e,i=this,n=this.itemsData;if(t){if(!(t instanceof ny||t instanceof ry))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=aS(t)}else this.itemsData=null;if(n&&(B_(lS).call(lS,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;B_(lS).call(lS,this.itemListeners,(function(t,e){i.itemsData.on(e,t,r)})),e=this.itemsData.getIds(),this._onAdd(e)}},BT.prototype.setGroups=function(t){var e,i=this;if(this.groupsData){B_(lS).call(lS,this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null;for(var n=0;n<e.length;n++)this._removeGroup(e[n])}if(t){if(!(t instanceof ny||t instanceof ry))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var r=this.id;B_(lS).call(lS,this.groupListeners,(function(t,e){i.groupsData.on(e,t,r)})),e=this.groupsData.getIds(),this._onAddGroups(e)}},BT.prototype._onUpdate=function(t){this._updateAllGroupData(t)},BT.prototype._onAdd=function(t){this._onUpdate(t)},BT.prototype._onRemove=function(t){this._onUpdate(t)},BT.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},BT.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},BT.prototype._onRemoveGroups=function(t){for(var e=0;e<t.length;e++)this._removeGroup(t[e]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})},BT.prototype._removeGroup=function(t){this.groups.hasOwnProperty(t)&&("right"==this.groups[t].options.yAxisOrientation?(this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t),this.legendLeft.redraw()),delete this.groups[t])},BT.prototype._updateGroup=function(t,e){this.groups.hasOwnProperty(e)?(this.groups[e].update(t),"right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.updateGroup(e,this.groups[e]),this.legendRight.updateGroup(e,this.groups[e]),this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e)):(this.yAxisLeft.updateGroup(e,this.groups[e]),this.legendLeft.updateGroup(e,this.groups[e]),this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e))):(this.groups[e]=new VT(t,e,this.options,this.groupsUsingDefaultStyles),"right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.addGroup(e,this.groups[e]),this.legendRight.addGroup(e,this.groups[e])):(this.yAxisLeft.addGroup(e,this.groups[e]),this.legendLeft.addGroup(e,this.groups[e]))),this.legendLeft.redraw(),this.legendRight.redraw()},BT.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var i={},n=this.itemsData.get(),r=this.itemsData.idProp,o={};t&&nS(t).call(t,(function(t){o[t]=t}));for(var s={},a=0;a<n.length;a++){var l=n[a],u=l.group;null==u&&(u="__ungrouped__"),s.hasOwnProperty(u)?s[u]++:s[u]=1}var h={};if(!e&&t)for(u in this.groups)if(this.groups.hasOwnProperty(u)){var c=(m=this.groups[u]).getItems();i[u]=ow(c).call(c,(function(t){return h[t[r]]=t[r],t[r]!==o[t[r]]}));var d=s[u];s[u]-=i[u].length,i[u].length<d&&(i[u][d-1]={})}for(a=0;a<n.length;a++)if(null==(u=(l=n[a]).group)&&(u="__ungrouped__"),e||!t||l[r]===o[l[r]]||!h.hasOwnProperty(l[r])){i.hasOwnProperty(u)||(i[u]=new Array(s[u]));var f=lS.bridgeObject(l);f.x=lS.convert(l.x,"Date"),f.end=lS.convert(l.end,"Date"),f.orginalY=l.y,f.y=Number(l.y),f[r]=l[r];var p=i[u].length-s[u]--;i[u][p]=f}for(u in this.groups)this.groups.hasOwnProperty(u)&&(i.hasOwnProperty(u)||(i[u]=new Array(0)));for(u in i)if(i.hasOwnProperty(u))if(0==i[u].length)this.groups.hasOwnProperty(u)&&this._removeGroup(u);else{var m=void 0;null!=this.groupsData&&(m=this.groupsData.get(u)),null==m&&(m={id:u,content:this.options.defaultGroup+u}),this._updateGroup(m,u),this.groups[u].setItems(i[u])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},BT.prototype.redraw=function(){var t=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,t=this._isResized()||t;var e,i=this.body.range.end-this.body.range.start,n=i!=this.lastVisibleInterval;(this.lastVisibleInterval=i,1==t)&&(this.svg.style.width=lS.option.asSize(3*this.props.width),this.svg.style.left=lS.option.asSize(-this.props.width),-1==xD(e=this.options.height+"").call(e,"%")&&1!=this.updateSVGheightOnResize||(this.updateSVGheight=!0));if(1==this.updateSVGheight?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",1==t||1==n||1==this.abortedGraphUpdate||1==this.forceGraphUpdate)t=this._updateGraph()||t,this.forceGraphUpdate=!1;else if(0!=this.lastStart){var r=this.body.range.start-this.lastStart,o=this.body.range.end-this.body.range.start;if(0!=this.props.width){var s=r*(this.props.width/o);this.svg.style.left=-this.props.width-s+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),t},BT.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var i=this.groups[e];1!=i.visible||void 0!==this.options.groups.visibility[e]&&1!=this.options.groups.visibility[e]||t.push({id:e,zIndex:i.options.zIndex})}lS.insertSort(t,(function(t,e){var i=t.zIndex,n=e.zIndex;return void 0===i&&(i=0),void 0===n&&(n=0),i==n?0:i<n?-1:1}));for(var n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r].id;return n},BT.prototype._updateGraph=function(){if(es(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e,i={},n=this.body.util.toGlobalTime(-this.body.domProps.root.width),r=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var s={};for(this._getRelevantData(o,s,n,r),this._applySampling(o,s),e=0;e<o.length;e++)this._convertXcoordinates(s[o[e]]);if(this._getYRanges(o,s,i),1==this._updateYAxis(o,i))return is(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var a=void 0;for(e=0;e<o.length;e++)t=this.groups[o[e]],!0===this.options.stack&&"line"===this.options.style&&(null!=t.options.excludeFromStacking&&t.options.excludeFromStacking||(null!=a&&(this._stack(s[t.id],s[a.id]),1==t.options.shaded.enabled&&"group"!==t.options.shaded.orientation&&("top"==t.options.shaded.orientation&&"group"!==a.options.shaded.orientation?(a.options.shaded.orientation="group",a.options.shaded.groupId=t.id):(t.options.shaded.orientation="group",t.options.shaded.groupId=a.id))),a=t)),this._convertYcoordinates(s[o[e]],t);var l={};for(e=0;e<o.length;e++)if("line"===(t=this.groups[o[e]]).options.style&&1==t.options.shaded.enabled){var u=s[o[e]];if(null==u||0==u.length)continue;if(l.hasOwnProperty(o[e])||(l[o[e]]=WT.calcPath(u,t)),"group"===t.options.shaded.orientation){var h=t.options.shaded.groupId;if(-1===xD(o).call(o,h)){console.log(t.id+": Unknown shading group target given:"+h);continue}l.hasOwnProperty(h)||(l[h]=WT.calcPath(s[h],this.groups[h])),WT.drawShading(l[o[e]],t,l[h],this.framework)}else WT.drawShading(l[o[e]],t,void 0,this.framework)}for(zT.draw(o,s,this.framework),e=0;e<o.length;e++)if(t=this.groups[o[e]],s[o[e]].length>0)switch(t.options.style){case"line":l.hasOwnProperty(o[e])||(l[o[e]]=WT.calcPath(s[o[e]],t)),WT.draw(l[o[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||HT.draw(s[o[e]],t,this.framework)}}}return is(this.svgElements),!1},BT.prototype._stack=function(t,e){var i,n,r,o,s;i=0;for(var a=0;a<t.length;a++){o=void 0,s=void 0;for(var l=i;l<e.length;l++){if(e[l].x===t[a].x){o=e[l],s=e[l],i=l;break}if(e[l].x>t[a].x){s=e[l],o=0==l?s:e[l-1],i=l;break}}void 0===s&&(o=e[e.length-1],s=e[e.length-1]),n=s.x-o.x,r=s.y-o.y,t[a].y=0==n?t[a].orginalY+s.y:t[a].orginalY+r/n*(t[a].x-o.x)+o.y}},BT.prototype._getRelevantData=function(t,e,i,n){var r,o,s,a;if(t.length>0)for(o=0;o<t.length;o++){var l=(r=this.groups[t[o]]).getItems();if(1==RS(r.options)){var u=function(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},h=Math.max(0,lS.binarySearchValue(l,i,"x","before",u)),c=Math.min(l.length,lS.binarySearchValue(l,n,"x","after",u)+1);c<=0&&(c=l.length);var d=new Array(c-h);for(s=h;s<c;s++)a=r.itemsData[s],d[s-h]=a;e[t[o]]=d}else e[t[o]]=r.itemsData}},BT.prototype._applySampling=function(t,e){if(t.length>0)for(var i=0;i<t.length;i++)if(1==this.groups[t[i]].options.sampling){var n=e[t[i]];if(n.length>0){var r,o=n.length,s=o/(this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x));r=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(s)));for(var a=new Array(o),l=0;l<o;l+=r){a[Math.round(l/r)]=n[l]}e[t[i]]=gD(a).call(a,0,Math.round(o/r))}}},BT.prototype._getYRanges=function(t,e,i){var n,r,o,s,a=[],l=[];if(t.length>0){for(o=0;o<t.length;o++)n=e[t[o]],s=this.groups[t[o]].options,n.length>0&&(r=this.groups[t[o]],!0===s.stack&&"bar"===s.style?"left"===s.yAxisOrientation?a=CS(a).call(a,n):l=CS(l).call(l,n):i[t[o]]=r.getYRange(n,t[o]));zT.getStackedYRange(a,i,t,"__barStackLeft","left"),zT.getStackedYRange(l,i,t,"__barStackRight","right")}},BT.prototype._updateYAxis=function(t,e){var i,n,r=!1,o=!1,s=!1,a=1e9,l=1e9,u=-1e9,h=-1e9;if(t.length>0){for(var c=0;c<t.length;c++){var d=this.groups[t[c]];d&&"right"!=d.options.yAxisOrientation?(o=!0,a=1e9,u=-1e9):d&&d.options.yAxisOrientation&&(s=!0,l=1e9,h=-1e9)}for(c=0;c<t.length;c++)e.hasOwnProperty(t[c])&&!0!==e[t[c]].ignore&&(i=e[t[c]].min,n=e[t[c]].max,"right"!=e[t[c]].yAxisOrientation?(o=!0,a=a>i?i:a,u=u<n?n:u):(s=!0,l=l>i?i:l,h=h<n?n:h));1==o&&this.yAxisLeft.setRange(a,u),1==s&&this.yAxisRight.setRange(l,h)}r=this._toggleAxisVisiblity(o,this.yAxisLeft)||r,r=this._toggleAxisVisiblity(s,this.yAxisRight)||r,1==s&&1==o?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!o,this.yAxisRight.masterAxis=this.yAxisLeft,0==this.yAxisRight.master?(this.yAxisLeft.lineOffset=1==s?this.yAxisRight.width:0,r=this.yAxisLeft.redraw()||r,r=this.yAxisRight.redraw()||r):r=this.yAxisRight.redraw()||r;var f=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(c=0;c<f.length;c++)-1!=xD(t).call(t,f[c])&&gD(t).call(t,xD(t).call(t,f[c]),1);return r},BT.prototype._toggleAxisVisiblity=function(t,e){var i=!1;return 0==t?e.dom.frame.parentNode&&0==e.hidden&&(e.hide(),i=!0):e.dom.frame.parentNode||1!=e.hidden||(e.show(),i=!0),i},BT.prototype._convertXcoordinates=function(t){for(var e=this.body.util.toScreen,i=0;i<t.length;i++)t[i].screen_x=e(t[i].x)+this.props.width,t[i].screen_y=t[i].y,null!=t[i].end?t[i].screen_end=e(t[i].end)+this.props.width:t[i].screen_end=void 0},BT.prototype._convertYcoordinates=function(t,e){var i=this.yAxisLeft,n=Number(this.svg.style.height.replace("px",""));"right"==e.options.yAxisOrientation&&(i=this.yAxisRight);for(var r=0;r<t.length;r++)t[r].screen_y=Math.round(i.convertValue(t[r].y));e.setZeroPosition(Math.min(n,i.convertValue(0)))};var XT="boolean",qT={configure:{enabled:{boolean:XT},filter:{boolean:XT,function:"function"},container:{dom:"dom"},__type__:{object:"object",boolean:XT,function:"function"}},alignCurrentTime:{string:"string",undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:"string"},sort:{boolean:XT},sampling:{boolean:XT},stack:{boolean:XT},graphHeight:{string:"string",number:"number"},shaded:{enabled:{boolean:XT},orientation:{string:["bottom","top","zero","group"]},groupId:{object:"object"},__type__:{boolean:XT,object:"object"}},style:{string:["line","bar","points"]},barChart:{width:{number:"number"},minWidth:{number:"number"},sideBySide:{boolean:XT},align:{string:["left","center","right"]},__type__:{object:"object"}},interpolation:{enabled:{boolean:XT},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:"number"},__type__:{object:"object",boolean:XT}},drawPoints:{enabled:{boolean:XT},onRender:{function:"function"},size:{number:"number"},style:{string:["square","circle"]},__type__:{object:"object",boolean:XT,function:"function"}},dataAxis:{showMinorLabels:{boolean:XT},showMajorLabels:{boolean:XT},showWeekScale:{boolean:XT},icons:{boolean:XT},width:{string:"string",number:"number"},visible:{boolean:XT},alignZeros:{boolean:XT},left:{range:{min:{number:"number",undefined:"undefined"},max:{number:"number",undefined:"undefined"},__type__:{object:"object"}},format:{function:"function"},title:{text:{string:"string",number:"number",undefined:"undefined"},style:{string:"string",undefined:"undefined"},__type__:{object:"object"}},__type__:{object:"object"}},right:{range:{min:{number:"number",undefined:"undefined"},max:{number:"number",undefined:"undefined"},__type__:{object:"object"}},format:{function:"function"},title:{text:{string:"string",number:"number",undefined:"undefined"},style:{string:"string",undefined:"undefined"},__type__:{object:"object"}},__type__:{object:"object"}},__type__:{object:"object"}},legend:{enabled:{boolean:XT},icons:{boolean:XT},left:{visible:{boolean:XT},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:"object"}},right:{visible:{boolean:XT},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:"object"}},__type__:{object:"object",boolean:XT}},groups:{visibility:{any:"any"},__type__:{object:"object"}},autoResize:{boolean:XT},throttleRedraw:{number:"number"},clickToUse:{boolean:XT},end:{number:"number",date:"date",string:"string",moment:"moment"},format:{minorLabels:{millisecond:{string:"string",undefined:"undefined"},second:{string:"string",undefined:"undefined"},minute:{string:"string",undefined:"undefined"},hour:{string:"string",undefined:"undefined"},weekday:{string:"string",undefined:"undefined"},day:{string:"string",undefined:"undefined"},week:{string:"string",undefined:"undefined"},month:{string:"string",undefined:"undefined"},quarter:{string:"string",undefined:"undefined"},year:{string:"string",undefined:"undefined"},__type__:{object:"object"}},majorLabels:{millisecond:{string:"string",undefined:"undefined"},second:{string:"string",undefined:"undefined"},minute:{string:"string",undefined:"undefined"},hour:{string:"string",undefined:"undefined"},weekday:{string:"string",undefined:"undefined"},day:{string:"string",undefined:"undefined"},week:{string:"string",undefined:"undefined"},month:{string:"string",undefined:"undefined"},quarter:{string:"string",undefined:"undefined"},year:{string:"string",undefined:"undefined"},__type__:{object:"object"}},__type__:{object:"object"}},moment:{function:"function"},height:{string:"string",number:"number"},hiddenDates:{start:{date:"date",number:"number",string:"string",moment:"moment"},end:{date:"date",number:"number",string:"string",moment:"moment"},repeat:{string:"string"},__type__:{object:"object",array:"array"}},locale:{string:"string"},locales:{__any__:{any:"any"},__type__:{object:"object"}},max:{date:"date",number:"number",string:"string",moment:"moment"},maxHeight:{number:"number",string:"string"},maxMinorChars:{number:"number"},min:{date:"date",number:"number",string:"string",moment:"moment"},minHeight:{number:"number",string:"string"},moveable:{boolean:XT},multiselect:{boolean:XT},orientation:{string:"string"},showCurrentTime:{boolean:XT},showMajorLabels:{boolean:XT},showMinorLabels:{boolean:XT},showWeekScale:{boolean:XT},start:{date:"date",number:"number",string:"string",moment:"moment"},timeAxis:{scale:{string:"string",undefined:"undefined"},step:{number:"number",undefined:"undefined"},__type__:{object:"object"}},width:{string:"string",number:"number"},zoomable:{boolean:XT},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:"number"},zoomMin:{number:"number"},zIndex:{number:"number"},__type__:{object:"object"}},ZT={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",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",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function JT(t,e,i,n){var r,o,s,a,l,u,h;if(!(yw(i)||i instanceof ny||i instanceof ry)&&i instanceof Object){var c=n;n=i,i=c}n&&n.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var d=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Lk,width:null,height:null,maxHeight:null,minHeight:null},this.options=lS.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:vw(r=this.on).call(r,this),off:vw(o=this.off).call(o,this),emit:vw(s=this.emit).call(s,this)},hiddenDates:[],util:{toScreen:vw(a=d._toScreen).call(a,d),toGlobalScreen:vw(l=d._toGlobalScreen).call(l,d),toTime:vw(u=d._toTime).call(u,d),toGlobalTime:vw(h=d._toGlobalTime).call(h,d)}},this.range=new iD(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new hO(this.body),this.components.push(this.timeAxis),this.currentTime=new MO(this.body),this.components.push(this.currentTime),this.linegraph=new BT(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",(function(t){d.emit("click",d.getEventProperties(t))})),this.on("doubletap",(function(t){d.emit("doubleClick",d.getEventProperties(t))})),this.dom.root.oncontextmenu=function(t){d.emit("contextmenu",d.getEventProperties(t))},this.initialFitDone=!1,this.on("changed",(function(){if(null!=d.itemsData){if(!d.initialFitDone&&!d.options.rollingMode)if(d.initialFitDone=!0,null!=d.options.start||null!=d.options.end){if(null==d.options.start||null==d.options.end)var t=d.getItemRange();var e=null!=d.options.start?d.options.start:t.min,i=null!=d.options.end?d.options.end:t.max;d.setWindow(e,i,{animation:!1})}else d.fit({animation:!1});d.initialDrawDone||!d.initialRangeChangeDone&&(d.options.start||d.options.end)&&!d.options.rollingMode||(d.initialDrawDone=!0,d.dom.root.style.visibility="visible",d.dom.loadingScreen.parentNode.removeChild(d.dom.loadingScreen),d.options.onInitialDrawComplete&&uw((function(){return d.options.onInitialDrawComplete()}),0))}})),n&&this.setOptions(n),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}JT.prototype=new OO,JT.prototype.setOptions=function(t){!0===wT.validate(t,qT)&&console.log("%cErrors have been found in the supplied options object.",_T),OO.prototype.setOptions.call(this,t)},JT.prototype.setItems=function(t){var e,i=null==this.itemsData;if(e=t?aS(t instanceof ny||t instanceof ry?t:new ny(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.linegraph&&this.linegraph.setItems(null!=e?e.rawDS:null),i)if(null!=this.options.start||null!=this.options.end){var n=null!=this.options.start?this.options.start:null,r=null!=this.options.end?this.options.end:null;this.setWindow(n,r,{animation:!1})}else this.fit({animation:!1})},JT.prototype.setGroups=function(t){var e;e=t?t instanceof ny||t instanceof ry?t:new ny(t):null,this.groupsData=e,this.linegraph.setGroups(e)},JT.prototype.getLegend=function(t,e,i){return void 0===e&&(e=15),void 0===i&&(i=15),void 0!==this.linegraph.groups[t]?this.linegraph.groups[t].getLegend(e,i):"cannot find group:'"+t+"'"},JT.prototype.isGroupVisible=function(t){return void 0!==this.linegraph.groups[t]&&(this.linegraph.groups[t].visible&&(void 0===this.linegraph.options.groups.visibility[t]||1==this.linegraph.options.groups.visibility[t]))},JT.prototype.getDataRange=function(){var t=null,e=null;for(var i in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(i)&&1==this.linegraph.groups[i].visible)for(var n=0;n<this.linegraph.groups[i].itemsData.length;n++){var r=this.linegraph.groups[i].itemsData[n],o=lS.convert(r.x,"Date").valueOf();t=null==t?o:t>o?o:t,e=null==e?o:e<o?o:e}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},JT.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=e-lS.getAbsoluteLeft(this.dom.centerContainer),r=i-lS.getAbsoluteTop(this.dom.centerContainer),o=this._toTime(n),s=xO.customTimeFromTarget(t),a=lS.getTarget(t),l=null;lS.hasParent(a,this.timeAxis.dom.foreground)?l="axis":this.timeAxis2&&lS.hasParent(a,this.timeAxis2.dom.foreground)?l="axis":lS.hasParent(a,this.linegraph.yAxisLeft.dom.frame)?l="data-axis":lS.hasParent(a,this.linegraph.yAxisRight.dom.frame)?l="data-axis":lS.hasParent(a,this.linegraph.legendLeft.dom.frame)?l="legend":lS.hasParent(a,this.linegraph.legendRight.dom.frame)?l="legend":null!=s?l="custom-time":lS.hasParent(a,this.currentTime.bar)?l="current-time":lS.hasParent(a,this.dom.center)&&(l="background");var u=[],h=this.linegraph.yAxisLeft,c=this.linegraph.yAxisRight;return!h.hidden&&this.itemsData.length>0&&u.push(h.screenToValue(r)),!c.hidden&&this.itemsData.length>0&&u.push(c.screenToValue(r)),{event:t,customTime:s?s.options.id:null,what:l,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:n,y:r,time:o,value:u}},JT.prototype._createConfigurator=function(){return new LT(this,this.dom.container,ZT)};var $T=ls();Lk.locale($T);var KT={Core:OO,DateUtil:eD,Range:iD,stack:XM,TimeStep:uO,components:{items:{Item:$M,BackgroundItem:eT,BoxItem:KM,PointItem:QM,RangeItem:tT},BackgroundGroup:JM,Component:PS,CurrentTime:MO,CustomTime:xO,DataAxis:FT,DataScale:RT,GraphGroup:VT,Group:ZM,ItemSet:gT,Legend:UT,LineGraph:BT,TimeAxis:hO}};t.DOMutil=us,t.DataSet=ny,t.DataView=ry,t.Graph2d=JT,t.Hammer=iO,t.Queue=Bg,t.Timeline=IT,t.keycharm=dO,t.moment=Lk,t.timeline=KT,t.util=Qo,Object.defineProperty(t,"__esModule",{value:!0})}));
|
||
//# sourceMappingURL=vis-timeline-graph2d.min.js.map
|