UNPKG

vis-timeline

Version:

Create a fully customizable, interactive timeline with items and ranges.

51 lines • 529 kB
/**
 * vis-timeline and vis-graph2d
 * https://visjs.github.io/vis-timeline/
 *
 * Create a fully customizable, interactive timeline with items and ranges.
 *
 * @version 8.5.6
 * @date    2026-10-26T17:19:35.017Z
 *
 * @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="undefined"!=typeof globalThis?globalThis: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(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var o,r={exports:{}};function s(){return o||(o=1,function(t){t.exports=function(){var e,i;function o(){return e.apply(null,arguments)}function r(t){e=t}function s(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function c(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var i,n=[],o=t.length;for(i=0;i<o;++i)n.push(e(t[i],i));return n}function m(t,e){for(var i in e)l(e,i)&&(t[i]=e[i]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,i,n){return qi(t,e,i,n,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(t){return null==t._pf&&(t._pf=g()),t._pf}function y(t){var e=null,n=!1,o=t._d&&!isNaN(t._d.getTime());return o&&(e=v(t),n=i.call(e.parsedDateParts,function(t){return null!=t}),o=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?o:(t._isValid=o,t._isValid)}function b(t){var e=f(NaN);return null!=t?m(v(e),t):v(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var _=o.momentProperties=[],w=!1;function x(t,e){var i,n,o,r=_.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=v(e)),c(e._locale)||(t._locale=e._locale),r>0)for(i=0;i<r;i++)c(o=e[n=_[i]])||(t[n]=o);return t}function D(t){x(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,o.updateOffset(this),w=!1)}function k(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function S(t){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var i=!0;return m(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,t),i){var n,r,s,a=[],h=arguments.length;for(r=0;r<h;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])l(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}S(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)},e)}var T,M={};function O(t,e){null!=o.deprecationHandler&&o.deprecationHandler(t,e),M[t]||(S(e),M[t]=!0)}function E(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t){var e,i;for(i in t)l(t,i)&&(E(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)}function I(t,e){var i,n=m({},t);for(i in e)l(e,i)&&(a(t[i])&&a(e[i])?(n[i]={},m(n[i],t[i]),m(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)l(t,i)&&!l(e,i)&&a(t[i])&&(n[i]=m({},n[i]));return n}function N(t){null!=t&&this.set(t)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)l(t,e)&&i.push(e);return i};var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return E(n)?n.call(e,i):n}function F(t,e,i){var n=""+Math.abs(t),o=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},H={};function z(t,e,i,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),t&&(H[t]=o),e&&(H[e[0]]=function(){return F(o.apply(this,arguments),e[1],e[2])}),i&&(H[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function W(t){var e,i,n=t.match(R);for(e=0,i=n.length;e<i;e++)H[n[e]]?n[e]=H[n[e]]:n[e]=G(n[e]);return function(e){var o,r="";for(o=0;o<i;o++)r+=E(n[o])?n[o].call(e,t):n[o];return r}}function B(t,e){return t.isValid()?(e=V(e,t.localeData()),j[e]=j[e]||W(e),j[e](t)):t.localeData().invalidDate()}function V(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(Y.lastIndex=0;i>=0&&Y.test(t);)t=t.replace(Y,n),Y.lastIndex=0,i-=1;return t}var U={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"};function X(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(R).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])}var q="Invalid date";function K(){return this._invalidDate}var Z="%d",$=/\d{1,2}/;function J(t){return this._ordinal.replace("%d",t)}var Q={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,i,n){var o=this._relativeTime[i];return E(o)?o(t,e,i,n):o.replace(/%d/i,t)}function et(t,e){var i=this._relativeTime[t>0?"future":"past"];return E(i)?i(e):i.replace(/%s/i,e)}var it={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function nt(t){return"string"==typeof t?it[t]||it[t.toLowerCase()]:void 0}function ot(t){var e,i,n={};for(i in t)l(t,i)&&(e=nt(i))&&(n[e]=t[i]);return n}var rt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function st(t){var e,i=[];for(e in t)l(t,e)&&i.push({unit:e,priority:rt[e]});return i.sort(function(t,e){return t.priority-e.priority}),i}var at,lt=/\d/,ht=/\d\d/,ct=/\d{3}/,ut=/\d{4}/,dt=/[+-]?\d{6}/,pt=/\d\d?/,mt=/\d\d\d\d?/,ft=/\d\d\d\d\d\d?/,gt=/\d{1,3}/,vt=/\d{1,4}/,yt=/[+-]?\d{1,6}/,bt=/\d+/,_t=/[+-]?\d+/,wt=/Z|[+-]\d\d:?\d\d/gi,xt=/Z|[+-]\d\d(?::?\d\d)?/gi,Dt=/[+-]?\d+(\.\d{1,3})?/,kt=/[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,St=/^[1-9]\d?/,Ct=/^([1-9]\d|\d)/;function Tt(t,e,i){at[t]=E(e)?e:function(t,n){return t&&i?i:e}}function Mt(t,e){return l(at,t)?at[t](e._strict,e._locale):new RegExp(Ot(t))}function Ot(t){return Et(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,o){return e||i||n||o}))}function Et(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function It(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=Pt(e)),i}at={};var Nt={};function Lt(t,e){var i,n,o=e;for("string"==typeof t&&(t=[t]),u(e)&&(o=function(t,i){i[e]=It(t)}),n=t.length,i=0;i<n;i++)Nt[t[i]]=o}function At(t,e){Lt(t,function(t,i,n,o){n._w=n._w||{},e(t,n._w,n,o)})}function Ft(t,e,i){null!=e&&l(Nt,t)&&Nt[t](e,i._a,i,t)}function Rt(t){return t%4==0&&t%100!=0||t%400==0}var Yt=0,jt=1,Ht=2,zt=3,Gt=4,Wt=5,Bt=6,Vt=7,Ut=8;function Xt(t){return Rt(t)?366:365}z("Y",0,0,function(){var t=this.year();return t<=9999?F(t,4):"+"+t}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Tt("Y",_t),Tt("YY",pt,ht),Tt("YYYY",vt,ut),Tt("YYYYY",yt,dt),Tt("YYYYYY",yt,dt),Lt(["YYYYY","YYYYYY"],Yt),Lt("YYYY",function(t,e){e[Yt]=2===t.length?o.parseTwoDigitYear(t):It(t)}),Lt("YY",function(t,e){e[Yt]=o.parseTwoDigitYear(t)}),Lt("Y",function(t,e){e[Yt]=parseInt(t,10)}),o.parseTwoDigitYear=function(t){return It(t)+(It(t)>68?1900:2e3)};var qt,Kt=$t("FullYear",!0);function Zt(){return Rt(this.year())}function $t(t,e){return function(i){return null!=i?(Qt(this,t,i),o.updateOffset(this,e),this):Jt(this,t)}}function Jt(t,e){if(!t.isValid())return NaN;var i=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function Qt(t,e,i){var n,o,r,s,a;if(t.isValid()&&!isNaN(i)){switch(n=t._d,o=t._isUTC,e){case"Milliseconds":return void(o?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(o?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(o?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(o?n.setUTCHours(i):n.setHours(i));case"Date":return void(o?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}r=i,s=t.month(),a=29!==(a=t.date())||1!==s||Rt(r)?a:28,o?n.setUTCFullYear(r,s,a):n.setFullYear(r,s,a)}}function te(t){return E(this[t=nt(t)])?this[t]():this}function ee(t,e){if("object"==typeof t){var i,n=st(t=ot(t)),o=n.length;for(i=0;i<o;i++)this[n[i].unit](t[n[i].unit])}else if(E(this[t=nt(t)]))return this[t](e);return this}function ie(t,e){return(t%e+e)%e}function ne(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=ie(e,12);return t+=(e-i)/12,1===i?Rt(t)?29:28:31-i%7%2}qt=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},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),z("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Tt("M",pt,St),Tt("MM",pt,ht),Tt("MMM",function(t,e){return e.monthsShortRegex(t)}),Tt("MMMM",function(t,e){return e.monthsRegex(t)}),Lt(["M","MM"],function(t,e){e[jt]=It(t)-1}),Lt(["MMM","MMMM"],function(t,e,i,n){var o=i._locale.monthsParse(t,n,i._strict);null!=o?e[jt]=o:v(i).invalidMonth=t});var oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ae=kt,le=kt;function he(t,e){return t?s(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||se).test(e)?"format":"standalone"][t.month()]:s(this._months)?this._months:this._months.standalone}function ce(t,e){return t?s(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[se.test(e)?"format":"standalone"][t.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ue(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(o=qt.call(this._shortMonthsParse,s))?o:null:-1!==(o=qt.call(this._longMonthsParse,s))?o:null:"MMM"===e?-1!==(o=qt.call(this._shortMonthsParse,s))||-1!==(o=qt.call(this._longMonthsParse,s))?o:null:-1!==(o=qt.call(this._longMonthsParse,s))||-1!==(o=qt.call(this._shortMonthsParse,s))?o:null}function de(t,e,i){var n,o,r;if(this._monthsParseExact)return ue.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}}function pe(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=It(e);else if(!u(e=t.localeData().monthsParse(e)))return t;var i=e,n=t.date();return n=n<29?n:Math.min(n,ne(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n),t}function me(t){return null!=t?(pe(this,t),o.updateOffset(this,!0),this):Jt(this,"Month")}function fe(){return ne(this.year(),this.month())}function ge(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ye.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ae),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ve(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ye.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=le),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ye(){function t(t,e){return e.length-t.length}var e,i,n,o,r=[],s=[],a=[];for(e=0;e<12;e++)i=f([2e3,e]),n=Et(this.monthsShort(i,"")),o=Et(this.months(i,"")),r.push(n),s.push(o),a.push(o),a.push(n);r.sort(t),s.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function be(t,e,i,n,o,r,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,o,r,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,o,r,s),a}function _e(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,i){var n=7+e-i;return-(7+_e(t,0,n).getUTCDay()-e)%7+n-1}function xe(t,e,i,n,o){var r,s,a=1+7*(e-1)+(7+i-n)%7+we(t,n,o);return a<=0?s=Xt(r=t-1)+a:a>Xt(t)?(r=t+1,s=a-Xt(t)):(r=t,s=a),{year:r,dayOfYear:s}}function De(t,e,i){var n,o,r=we(t.year(),e,i),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?n=s+ke(o=t.year()-1,e,i):s>ke(t.year(),e,i)?(n=s-ke(t.year(),e,i),o=t.year()+1):(o=t.year(),n=s),{week:n,year:o}}function ke(t,e,i){var n=we(t,e,i),o=we(t+1,e,i);return(Xt(t)-n+o)/7}function Se(t){return De(t,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Tt("w",pt,St),Tt("ww",pt,ht),Tt("W",pt,St),Tt("WW",pt,ht),At(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=It(t)});var Ce={dow:0,doy:6};function Te(){return this._week.dow}function Me(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ee(t){var e=De(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pe(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ie(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ne(t,e){return t.slice(e,7).concat(t.slice(0,e))}z("d",0,"do","day"),z("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),z("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),z("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Tt("d",pt),Tt("e",pt),Tt("E",pt),Tt("dd",function(t,e){return e.weekdaysMinRegex(t)}),Tt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Tt("dddd",function(t,e){return e.weekdaysRegex(t)}),At(["dd","ddd","dddd"],function(t,e,i,n){var o=i._locale.weekdaysParse(t,n,i._strict);null!=o?e.d=o:v(i).invalidWeekday=t}),At(["d","e","E"],function(t,e,i,n){e[n]=It(t)});var Le="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ae="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Re=kt,Ye=kt,je=kt;function He(t,e){var i=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ne(i,this._week.dow):t?i[t.day()]:i}function ze(t){return!0===t?Ne(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ge(t){return!0===t?Ne(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function We(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(o=qt.call(this._weekdaysParse,s))?o:null:"ddd"===e?-1!==(o=qt.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=qt.call(this._minWeekdaysParse,s))?o:null:"dddd"===e?-1!==(o=qt.call(this._weekdaysParse,s))||-1!==(o=qt.call(this._shortWeekdaysParse,s))||-1!==(o=qt.call(this._minWeekdaysParse,s))?o:null:"ddd"===e?-1!==(o=qt.call(this._shortWeekdaysParse,s))||-1!==(o=qt.call(this._weekdaysParse,s))||-1!==(o=qt.call(this._minWeekdaysParse,s))?o:null:-1!==(o=qt.call(this._minWeekdaysParse,s))||-1!==(o=qt.call(this._weekdaysParse,s))||-1!==(o=qt.call(this._shortWeekdaysParse,s))?o:null}function Be(t,e,i){var n,o,r;if(this._weekdaysParseExact)return We.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}}function Ve(t){if(!this.isValid())return null!=t?this:NaN;var e=Jt(this,"Day");return null!=t?(t=Pe(t,this.localeData()),this.add(t-e,"d")):e}function Ue(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")}function Xe(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ie(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function qe(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Re),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ze(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $e(){function t(t,e){return e.length-t.length}var e,i,n,o,r,s=[],a=[],l=[],h=[];for(e=0;e<7;e++)i=f([2e3,1]).day(e),n=Et(this.weekdaysMin(i,"")),o=Et(this.weekdaysShort(i,"")),r=Et(this.weekdays(i,"")),s.push(n),a.push(o),l.push(r),h.push(n),h.push(o),h.push(r);s.sort(t),a.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.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 Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function ti(t,e){z(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ei(t,e){return e._meridiemParse}function ii(t){return"p"===(t+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Je),z("k",["kk",2],0,Qe),z("hmm",0,0,function(){return""+Je.apply(this)+F(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Je.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),ti("a",!0),ti("A",!1),Tt("a",ei),Tt("A",ei),Tt("H",pt,Ct),Tt("h",pt,St),Tt("k",pt,St),Tt("HH",pt,ht),Tt("hh",pt,ht),Tt("kk",pt,ht),Tt("hmm",mt),Tt("hmmss",ft),Tt("Hmm",mt),Tt("Hmmss",ft),Lt(["H","HH"],zt),Lt(["k","kk"],function(t,e,i){var n=It(t);e[zt]=24===n?0:n}),Lt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),Lt(["h","hh"],function(t,e,i){e[zt]=It(t),v(i).bigHour=!0}),Lt("hmm",function(t,e,i){var n=t.length-2;e[zt]=It(t.substr(0,n)),e[Gt]=It(t.substr(n)),v(i).bigHour=!0}),Lt("hmmss",function(t,e,i){var n=t.length-4,o=t.length-2;e[zt]=It(t.substr(0,n)),e[Gt]=It(t.substr(n,2)),e[Wt]=It(t.substr(o)),v(i).bigHour=!0}),Lt("Hmm",function(t,e,i){var n=t.length-2;e[zt]=It(t.substr(0,n)),e[Gt]=It(t.substr(n))}),Lt("Hmmss",function(t,e,i){var n=t.length-4,o=t.length-2;e[zt]=It(t.substr(0,n)),e[Gt]=It(t.substr(n,2)),e[Wt]=It(t.substr(o))});var ni=/[ap]\.?m?\.?/i,oi=$t("Hours",!0);function ri(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}var si,ai={calendar:L,longDateFormat:U,invalidDate:q,ordinal:Z,dayOfMonthOrdinalParse:$,relativeTime:Q,months:oe,monthsShort:re,week:Ce,weekdays:Le,weekdaysMin:Fe,weekdaysShort:Ae,meridiemParse:ni},li={},hi={};function ci(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function ui(t){return t?t.toLowerCase().replace("_","-"):t}function di(t){for(var e,i,n,o,r=0;r<t.length;){for(e=(o=ui(t[r]).split("-")).length,i=(i=ui(t[r+1]))?i.split("-"):null;e>0;){if(n=mi(o.slice(0,e).join("-")))return n;if(i&&i.length>=e&&ci(o,i)>=e-1)break;e--}r++}return si}function pi(t){return!(!t||!t.match("^[^/\\\\]*$"))}function mi(e){var i=null;if(void 0===li[e]&&t&&t.exports&&pi(e))try{i=si._abbr,n("./locale/"+e),fi(i)}catch(t){li[e]=null}return li[e]}function fi(t,e){var i;return t&&((i=c(e)?yi(t):gi(t,e))?si=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),si._abbr}function gi(t,e){if(null!==e){var i,n=ai;if(e.abbr=t,null!=li[t])O("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=li[t]._config;else if(null!=e.parentLocale)if(null!=li[e.parentLocale])n=li[e.parentLocale]._config;else{if(null==(i=mi(e.parentLocale)))return hi[e.parentLocale]||(hi[e.parentLocale]=[]),hi[e.parentLocale].push({name:t,config:e}),null;n=i._config}return li[t]=new N(I(n,e)),hi[t]&&hi[t].forEach(function(t){gi(t.name,t.config)}),fi(t),li[t]}return delete li[t],null}function vi(t,e){if(null!=e){var i,n,o=ai;null!=li[t]&&null!=li[t].parentLocale?li[t].set(I(li[t]._config,e)):(null!=(n=mi(t))&&(o=n._config),e=I(o,e),null==n&&(e.abbr=t),(i=new N(e)).parentLocale=li[t],li[t]=i),fi(t)}else null!=li[t]&&(null!=li[t].parentLocale?(li[t]=li[t].parentLocale,t===fi()&&fi(t)):null!=li[t]&&delete li[t]);return li[t]}function yi(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return si;if(!s(t)){if(e=mi(t))return e;t=[t]}return di(t)}function bi(){return T(li)}function _i(t){var e,i=t._a;return i&&-2===v(t).overflow&&(e=i[jt]<0||i[jt]>11?jt:i[Ht]<1||i[Ht]>ne(i[Yt],i[jt])?Ht:i[zt]<0||i[zt]>24||24===i[zt]&&(0!==i[Gt]||0!==i[Wt]||0!==i[Bt])?zt:i[Gt]<0||i[Gt]>59?Gt:i[Wt]<0||i[Wt]>59?Wt:i[Bt]<0||i[Bt]>999?Bt:-1,v(t)._overflowDayOfYear&&(e<Yt||e>Ht)&&(e=Ht),v(t)._overflowWeeks&&-1===e&&(e=Vt),v(t)._overflowWeekday&&-1===e&&(e=Ut),v(t).overflow=e),t}var wi=/^\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)?)?$/,xi=/^\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)?)?$/,Di=/Z|[+-]\d\d(?::?\d\d)?/,ki=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Si=[["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/]],Ci=/^\/?Date\((-?\d+)/i,Ti=/^(?:(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}))$/,Mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Oi(t){var e,i,n,o,r,s,a=t._i,l=wi.exec(a)||xi.exec(a),h=ki.length,c=Si.length;if(l){for(v(t).iso=!0,e=0,i=h;e<i;e++)if(ki[e][1].exec(l[1])){o=ki[e][0],n=!1!==ki[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,i=c;e<i;e++)if(Si[e][1].exec(l[3])){r=(l[2]||" ")+Si[e][0];break}if(null==r)return void(t._isValid=!1)}if(!n&&null!=r)return void(t._isValid=!1);if(l[4]){if(!Di.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=o+(r||"")+(s||""),zi(t)}else t._isValid=!1}function Ei(t,e,i,n,o,r){var s=[Pi(t),re.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function Pi(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ii(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ni(t,e,i){return!t||Ae.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Li(t,e,i){if(t)return Mi[t];if(e)return 0;var n=parseInt(i,10),o=n%100;return(n-o)/100*60+o}function Ai(t){var e,i=Ti.exec(Ii(t._i));if(i){if(e=Ei(i[4],i[3],i[2],i[5],i[6],i[7]),!Ni(i[1],e,t))return;t._a=e,t._tzm=Li(i[8],i[9],i[10]),t._d=_e.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function Fi(t){var e=Ci.exec(t._i);null===e?(Oi(t),!1===t._isValid&&(delete t._isValid,Ai(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:o.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Ri(t,e,i){return null!=t?t:null!=e?e:i}function Yi(t){var e=new Date(o.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function ji(t){var e,i,n,o,r,s=[];if(!t._d){for(n=Yi(t),t._w&&null==t._a[Ht]&&null==t._a[jt]&&Hi(t),null!=t._dayOfYear&&(r=Ri(t._a[Yt],n[Yt]),(t._dayOfYear>Xt(r)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),i=_e(r,0,t._dayOfYear),t._a[jt]=i.getUTCMonth(),t._a[Ht]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[zt]&&0===t._a[Gt]&&0===t._a[Wt]&&0===t._a[Bt]&&(t._nextDay=!0,t._a[zt]=0),t._d=(t._useUTC?_e:be).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[zt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(v(t).weekdayMismatch=!0)}}function Hi(t){var e,i,n,o,r,s,a,l,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(r=1,s=4,i=Ri(e.GG,t._a[Yt],De(Ki(),1,4).year),n=Ri(e.W,1),((o=Ri(e.E,1))<1||o>7)&&(l=!0)):(r=t._locale._week.dow,s=t._locale._week.doy,h=De(Ki(),r,s),i=Ri(e.gg,t._a[Yt],h.year),n=Ri(e.w,h.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r),n<1||n>ke(i,r,s)?v(t)._overflowWeeks=!0:null!=l?v(t)._overflowWeekday=!0:(a=xe(i,n,o,r,s),t._a[Yt]=a.year,t._dayOfYear=a.dayOfYear)}function zi(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],v(t).empty=!0;var e,i,n,r,s,a,l,h=""+t._i,c=h.length,u=0;for(l=(n=V(t._f,t._locale).match(R)||[]).length,e=0;e<l;e++)r=n[e],(i=(h.match(Mt(r,t))||[])[0])&&((s=h.substr(0,h.indexOf(i))).length>0&&v(t).unusedInput.push(s),h=h.slice(h.indexOf(i)+i.length),u+=i.length),H[r]?(i?v(t).empty=!1:v(t).unusedTokens.push(r),Ft(r,i,t)):t._strict&&!i&&v(t).unusedTokens.push(r);v(t).charsLeftOver=c-u,h.length>0&&v(t).unusedInput.push(h),t._a[zt]<=12&&!0===v(t).bigHour&&t._a[zt]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[zt]=Gi(t._locale,t._a[zt],t._meridiem),null!==(a=v(t).era)&&(t._a[Yt]=t._locale.erasConvertYear(a,t._a[Yt])),ji(t),_i(t)}else Ai(t);else Oi(t)}function Gi(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}function Wi(t){var e,i,n,o,r,s,a=!1,l=t._f.length;if(0===l)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<l;o++)r=0,s=!1,e=x({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],zi(e),y(e)&&(s=!0),r+=v(e).charsLeftOver,r+=10*v(e).unusedTokens.length,v(e).score=r,a?r<n&&(n=r,i=e):(null==n||r<n||s)&&(n=r,i=e,s&&(a=!0));m(t,i||e)}function Bi(t){if(!t._d){var e=ot(t._i),i=void 0===e.day?e.date:e.day;t._a=p([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ji(t)}}function Vi(t){var e=new D(_i(Ui(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ui(t){var e=t._i,i=t._f;return t._locale=t._locale||yi(t._l),null===e||void 0===i&&""===e?b({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new D(_i(e)):(d(e)?t._d=e:s(i)?Wi(t):i?zi(t):Xi(t),y(t)||(t._d=null),t))}function Xi(t){var e=t._i;c(e)?t._d=new Date(o.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Fi(t):s(e)?(t._a=p(e.slice(0),function(t){return parseInt(t,10)}),ji(t)):a(e)?Bi(t):u(e)?t._d=new Date(e):o.createFromInputFallback(t)}function qi(t,e,i,n,o){var r={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(a(t)&&h(t)||s(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=i,r._i=t,r._f=e,r._strict=n,Vi(r)}function Ki(t,e,i,n){return qi(t,e,i,n,!1)}o.createFromInputFallback=C("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var Zi=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ki.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()}),$i=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ki.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()});function Ji(t,e){var i,n;if(1===e.length&&s(e[0])&&(e=e[0]),!e.length)return Ki();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}function Qi(){return Ji("isBefore",[].slice.call(arguments,0))}function tn(){return Ji("isAfter",[].slice.call(arguments,0))}var en=function(){return Date.now?Date.now():+new Date},nn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function on(t){var e,i,n=!1,o=nn.length;for(e in t)if(l(t,e)&&(-1===qt.call(nn,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<o;++i)if(t[nn[i]]){if(n)return!1;parseFloat(t[nn[i]])!==It(t[nn[i]])&&(n=!0)}return!0}function rn(){return this._isValid}function sn(){return On(NaN)}function an(t){var e=ot(t),i=e.year||0,n=e.quarter||0,o=e.month||0,r=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,h=e.second||0,c=e.millisecond||0;this._isValid=on(e),this._milliseconds=+c+1e3*h+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*n+12*i,this._data={},this._locale=yi(),this._bubble()}function ln(t){return t instanceof an}function hn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cn(t,e,i){var n,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(n=0;n<o;n++)It(t[n])!==It(e[n])&&s++;return s+r}function un(t,e){z(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)})}un("Z",":"),un("ZZ",""),Tt("Z",xt),Tt("ZZ",xt),Lt(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=pn(xt,t)});var dn=/([\+\-]|\d\d)/gi;function pn(t,e){var i,n,o=(e||"").match(t);return null===o?null:0===(n=60*(i=((o[o.length-1]||[])+"").match(dn)||["-",0,0])[1]+It(i[2]))?0:"+"===i[0]?n:-n}function mn(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(k(t)||d(t)?t.valueOf():Ki(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),o.updateOffset(i,!1),i):Ki(t).local()}function fn(t){return-Math.round(t._d.getTimezoneOffset())}function gn(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=pn(xt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=fn(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?Ln(this,On(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:fn(this)}function vn(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function yn(t){return this.utcOffset(0,t)}function bn(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(fn(this),"m")),this}function _n(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=pn(wt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wn(t){return!!this.isValid()&&(t=t?Ki(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function xn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Dn(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return x(e,this),(e=Ui(e))._a?(t=e._isUTC?f(e._a):Ki(e._a),this._isDSTShifted=this.isValid()&&cn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kn(){return!!this.isValid()&&!this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC}function Cn(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Tn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function On(t,e){var i,n,o,r=t,s=null;return ln(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:u(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(s=Tn.exec(t))?(i="-"===s[1]?-1:1,r={y:0,d:It(s[Ht])*i,h:It(s[zt])*i,m:It(s[Gt])*i,s:It(s[Wt])*i,ms:It(hn(1e3*s[Bt]))*i}):(s=Mn.exec(t))?(i="-"===s[1]?-1:1,r={y:En(s[2],i),M:En(s[3],i),w:En(s[4],i),d:En(s[5],i),h:En(s[6],i),m:En(s[7],i),s:En(s[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=In(Ki(r.from),Ki(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),n=new an(r),ln(t)&&l(t,"_locale")&&(n._locale=t._locale),ln(t)&&l(t,"_isValid")&&(n._isValid=t._isValid),n}function En(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Pn(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 In(t,e){var i;return t.isValid()&&e.isValid()?(e=mn(e,t),t.isBefore(e)?i=Pn(t,e):((i=Pn(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Nn(t,e){return function(i,n){var o;return null===n||isNaN(+n)||(O(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."),o=i,i=n,n=o),Ln(this,On(i,n),t),this}}function Ln(t,e,i,n){var r=e._milliseconds,s=hn(e._days),a=hn(e._months);t.isValid()&&(n=null==n||n,a&&pe(t,Jt(t,"Month")+a*i),s&&Qt(t,"Date",Jt(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&o.updateOffset(t,s||a))}On.fn=an.prototype,On.invalid=sn;var An=Nn(1,"add"),Fn=Nn(-1,"subtract");function Rn(t){return"string"==typeof t||t instanceof String}function Yn(t){return k(t)||d(t)||Rn(t)||u(t)||Hn(t)||jn(t)||null==t}function jn(t){var e,i,n=a(t)&&!h(t),o=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(e=0;e<s;e+=1)i=r[e],o=o||l(t,i);return n&&o}function Hn(t){var e=s(t),i=!1;return e&&(i=0===t.filter(function(e){return!u(e)&&Rn(t)}).length),e&&i}function zn(t){var e,i,n=a(t)&&!h(t),o=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=r[e],o=o||l(t,i);return n&&o}function Gn(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"}function Wn(t,e){1===arguments.length&&(arguments[0]?Yn(arguments[0])?(t=arguments[0],e=void 0):zn(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||Ki(),n=mn(i,this).startOf("day"),r=o.calendarFormat(this,n)||"sameElse",s=e&&(E(e[r])?e[r].call(this,i):e[r]);return this.format(s||this.localeData().calendar(r,this,Ki(i)))}function Bn(){return new D(this)}function Vn(t,e){var i=k(t)?t:Ki(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=nt(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function Un(t,e){var i=k(t)?t:Ki(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=nt(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function Xn(t,e,i,n){var o=k(t)?t:Ki(t),r=k(e)?e:Ki(e);return!!(this.isValid()&&o.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(o,i):!this.isBefore(o,i))&&(")"===n[1]?this.isBefore(r,i):!this.isAfter(r,i))}function qn(t,e){var i,n=k(t)?t:Ki(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=nt(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function Kn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Zn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function $n(t,e,i){var n,o,r;if(!this.isValid())return NaN;if(!(n=mn(t,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),e=nt(e)){case"year":r=Jn(this,n)/12;break;case"month":r=Jn(this,n);break;case"quarter":r=Jn(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-o)/864e5;break;case"week":r=(this-n-o)/6048e5;break;default:r=this-n}return i?r:Pt(r)}function Jn(t,e){if(t.date()<e.date())return-Jn(e,t);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 Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function to(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?B(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(i,"Z")):B(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n,o="moment",r="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+o+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(t+e+i+n)}function io(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var e=B(this,t);return this.localeData().postformat(e)}function no(t,e){return this.isValid()&&(k(t)&&t.isValid()||Ki(t).isValid())?On({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oo(t){return this.from(Ki(),t)}function ro(t,e){return this.isValid()&&(k(t)&&t.isValid()||Ki(t).isValid())?On({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function so(t){return this.to(Ki(),t)}function ao(t){var e;return void 0===t?this._locale._abbr:(null!=(e=yi(t))&&(this._locale=e),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lo=C("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 ho(){return this._locale}var co=1e3,uo=60*co,po=60*uo,mo=3506328*po;function fo(t,e){return(t%e+e)%e}function go(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-mo:new Date(t,e,i).valueOf()}function vo(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-mo:Date.UTC(t,e,i)}function yo(t){var e,i;if(void 0===(t=nt(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?vo:go,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-=fo(e+(this._isUTC?0:this.utcOffset()*uo),po);break;case"minute":e=this._d.valueOf(),e-=fo(e,uo);break;case"second":e=this._d.valueOf(),e-=fo(e,co)}return this._d.setTime(e),o.updateOffset(this,!0),this}function bo(t){var e,i;if(void 0===(t=nt(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?vo:go,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+=po-fo(e+(this._isUTC?0:this.utcOffset()*uo),po)-1;break;case"minute":e=this._d.valueOf(),e+=uo-fo(e,uo)-1;break;case"second":e=this._d.valueOf(),e+=co-fo(e,co)-1}return this._d.setTime(e),o.updateOffset(this,!0),this}function _o(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function Do(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function ko(){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()}}function So(){return this.isValid()?this.toISOString():null}function Co(){return y(this)}function To(){return m({},v(this))}function Mo(){return v(this).overflow}function Oo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Eo(t,e){var i,n,r,s=this._eras||yi("en")._eras;for(i=0,n=s.length;i<n;++i)switch("string"==typeof s[i].since&&(r=o(s[i].since).startOf("day"),s[i].since=r.valueOf()),typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":r=o(s[i].until).startOf("day").valueOf(),s[i].until=r.valueOf()}return s}function Po(t,e,i){var n,o,r,s,a,l=this.eras();for(t=t.toUpperCase(),n=0,o=l.length;n<o;++n)if(r=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[n];break;case"NNNN":if(r===t)return l[n];break;case"NNNNN":if(a===t)return l[n]}else if([r,s,a].indexOf(t)>=0)return l[n]}function Io(t,e){var i=t.since<=t.until?1:-1;return void 0===e?o(t.since).year():o(t.since).year()+(e-t.offset)*i}function No(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""}function Lo(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""}function Ao(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""}function Fo(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-o(r[t].since).year())*i+r[t].offset;return this.year()}function Ro(t){return l(this,"_erasNameRegex")||Bo.call(this),t?this._erasNameRegex:this._erasRegex}function Yo(t){return l(this,"_erasAbbrRegex")||Bo.call(this),t?this._erasAbbrRegex:this._erasRegex}function jo(t){return l(this,"_erasNarrowRegex")||Bo.call(this),t?this._erasNarrowRegex:this._erasRegex}function Ho(t,e){return e.erasAbbrRegex(t)}function zo(t,e){return e.erasNameRegex(t)}function Go(t,e){return e.erasNarrowRegex(t)}function Wo(t,e){return e._eraYearOrdinalRegex||bt}function Bo(){var t,e,i,n,o,r=[],s=[],a=[],l=[],h=this.eras();for(t=0,e=h.length;t<e;++t)i=Et(h[t].name),n=Et(h[t].abbr),o=Et(h[t].narrow),s.push(i),r.push(n),a.push(o),l.push(i),l.push(n),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Vo(t,e){z(0,[t,t.length],0,e)}function Uo(t){return Jo.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Xo(t){return Jo.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function qo(){return ke(this.year(),1,4)}function Ko(){return ke(this.isoWeekYear(),1,4)}function Zo(){var t=this.localeData()._week;return ke(this.year(),t.dow,t.doy)}function $o(){var t=this.localeData()._week;return ke(this.weekYear(),t.dow,t.doy)}function Jo(t,e,i,n,o){var r;return null==t?De(this,n,o).year:(e>(r=ke(t,n,o))&&(e=r),Qo.call(this,t,e,i,n,o))}function Qo(t,e,i,n,o){var r=xe(t,e,i,n,o),s=_e(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function tr(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Tt("N",Ho),Tt("NN",Ho),Tt("NNN",Ho),Tt("NNNN",zo),Tt("NNNNN",Go),Lt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,n){var o=i._locale.erasParse(t,n,i._strict);o?v(i).era=o:v(i).invalidEra=t}),Tt("y",bt),Tt("yy",bt),Tt("yyy",bt),Tt("yyyy",bt),Tt("yo",Wo),Lt(["y","yy","yyy","yyyy"],Yt),Lt(["yo"],function(t,e,i,n){var o;i._locale._eraYearOrdinalRegex&&(o=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[Yt]=i._locale.eraYearOrdinalParse(t,o):e[Yt]=parseInt(t,10)}),z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Vo("gggg","weekYear"),Vo("ggggg","weekYear"),Vo("GGGG","isoWeekYear"),Vo("GGGGG","isoWeekYear"),Tt("G",_t),Tt("g",_t),Tt("GG",pt,ht),Tt("gg",pt,ht),Tt("GGGG",vt,ut),Tt("gggg",vt,ut),Tt("GGGGG",yt,dt),Tt("ggggg",yt,dt),At(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=It(t)}),At(["gg","GG"],function(t,e,i,n){e[n]=o.parseTwoDigitYear(t)}),z("Q",0,"Qo","quarter"),Tt("Q",lt),Lt("Q",function(t,e){e[jt]=3*(It(t)-1)}),z("D",["DD",2],"Do","date"),Tt("D",pt,St),Tt("DD",pt,ht),Tt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Lt(["D","DD"],Ht),Lt("Do",function(t,e){e[Ht]=It(t.match(pt)[0])});var er=$t("Date",!0);function ir(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),Tt("DDD",gt),Tt("DDDD",ct),Lt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=It(t)}),z("m",["mm",2],0,"minute"),Tt("m",pt,Ct),Tt("mm",pt,ht),Lt(["m","mm"],Gt);var nr=$t("Minutes",!1);z("s",["ss",2],0,"second"),Tt("s",pt,Ct),Tt("ss",pt,ht),Lt(["s","ss"],Wt);var or,rr,sr=$t("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Tt("S",gt,lt),Tt("SS",gt,ht),Tt("SSS",gt,ct),or="SSSS";or.length<=9;or+="S")Tt(or,bt);function ar(t,e){e[Bt]=It(1e3*("0."+t))}for(or="S";or.length<=9;or+="S")Lt(or,ar);function lr(){return this._isUTC?"UTC":""}function hr(){return this._isUTC?"Coordinated Universal Time":""}rr=$t("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var cr=D.prototype;function ur(t){return Ki(1e3*t)}function dr(){return Ki.apply(null,arguments).parseZone()}function pr(t){return t}cr.add=An,cr.calendar=Wn,cr.clone=Bn,cr.diff=$n,cr.endOf=bo,cr.format=io,cr.from=no,cr.fromNow=oo,cr.to=ro,cr.toNow=so,cr.get=te,cr.invalidAt=Mo,cr.isAfter=Vn,cr.isBefore=Un,cr.isBetween=Xn,cr.isSame=qn,cr.isSameOrAfter=Kn,cr.isSameOrBefore=Zn,cr.isValid=Co,cr.lang=lo,cr.locale=ao,cr.localeData=ho,cr.max=$i,cr.min=Zi,cr.parsingFlags=To,cr.set=ee,cr.startOf=yo,cr.subtract=Fn,cr.toArray=Do,cr.toObject=ko,cr.toDate=xo,cr.toISOString=to,cr.inspect=eo,"undefined"!=typeof Symbol&&null!=Symbol.for&&(cr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),cr.toJSON=So,cr.toString=Qn,cr.unix=wo,cr.valueOf=_o,cr.creationData=Oo,cr.eraName=No,cr.eraNarrow=Lo,cr.eraAbbr=Ao,cr.eraYear=Fo,cr.year=Kt,cr.isLeapYear=Zt,cr.weekYear=Uo,cr.isoWeekYear=Xo,cr.quarter=cr.quarters=tr,cr.month=me,cr.daysInMonth=fe,cr.week=cr.weeks=Oe,cr.isoWeek=cr.isoWeeks=Ee,cr.weeksInYear=Zo,cr.weeksInWeekYear=$o,cr.isoWeeksInYear=qo,cr.isoWeeksInISOWeekYear=Ko,cr.date=er,cr.day=cr.days=Ve,cr.weekday=Ue,cr.isoWeekday=Xe,cr.dayOfYear=ir,cr.hour=cr.hours=oi,cr.minute=cr.minutes=nr,cr.second=cr.seconds=sr,cr.millisecond=cr.milliseconds=rr,cr.utcOffset=gn,cr.utc=yn,cr.local=bn,cr.parseZone=_n,cr.hasAlignedHourOffset=wn,cr.isDST=xn,cr.isLocal=kn,cr.isUtcOffset=Sn,cr.isUtc=Cn,cr.isUTC=Cn,cr.zoneAbbr=lr,cr.zoneName=hr,cr.dates=C("dates accessor is deprecated. Use date instead.",er),cr.months=C("months accessor is deprecated. Use month instead",me),cr.years=C("years accessor is deprecated. Use year instead",Kt),cr.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vn),cr.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Dn);var mr=N.prototype;function fr(t,e,i,n){var o=yi(),r=f().set(n,e);return o[i](r,t)}function gr(t,e,i){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return fr(t,e,i,"month");var n,o=[];for(n=0;n<12;n++)o[n]=fr(t,n,i,"month");return o}function vr(t,e,i,n){"boolean"==typeof t?(u(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,u(e)&&(i=e,e=void 0),e=e||"");var o,r=yi(),s=t?r._week.dow:0,a=[];if(null!=i)return fr(e,(i+s)%7,n,"day");for(o=0;o<7;o++)a[o]=fr(e,(o+s)%7,n,"day");return a}function yr(t,e){return gr(t,e,"months")}function br(t,e){return gr(t,e,"monthsShort")}function _r(t,e,i){return vr(t,e,i,"weekdays")}function wr(t,e,i){return vr(t,e,i,"weekdaysShort")}function xr(t,e,i){return vr(t,e,i,"weekdaysMin")}mr.calendar=A,mr.longDateFormat=X,mr.invalidDate=K,mr.ordinal=J,mr.preparse=pr,mr.postformat=pr,mr.relativeTime=tt,mr.pastFuture=et,mr.set=P,mr.eras=Eo,mr.erasParse=Po,mr.erasConvertYear=Io,mr.erasAbbrRegex=Yo,mr.erasNameRegex=Ro,mr.erasNarrowRegex=jo,mr.months=he,mr.monthsShort=ce,mr.monthsParse=de,mr.monthsRegex=ve,mr.monthsShortRegex=ge,mr.week=Se,mr.firstDayOfYear=Me,mr.firstDayOfWeek=Te,mr.weekdays=He,mr.weekdaysMin=Ge,mr.weekdaysShort=ze,mr.weekdaysParse=Be,mr.weekdaysRegex=qe,mr.weekdaysShortRegex=Ke,mr.weekdaysMinRegex=Ze,mr.isPM=ii,mr.meridiem=ri,fi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===It(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),o.lang=C("moment.lang is deprecated. Use moment.locale instead.",fi),o.langData=C("moment.langData is deprecated. Use moment.localeData instead.",yi);var Dr=Math.abs;function kr(){var t=this._data;return this._milliseconds=Dr(this._milliseconds),this._days=Dr(this._days),this._months=Dr(this._months),t.milliseconds=Dr(t.milliseconds),t.seconds=Dr(t.seconds),t.minutes=Dr(t.minutes),t.hours=Dr(t.hours),t.months=Dr(t.months),t.years=Dr(t.years),this}function Sr(t,e,i,n){var o=On(e,i);return t._milliseconds+=n*o._milliseconds,t._days+=n*o._days,t._months+=n*o._months,t._bubble()}function Cr(t,e){return Sr(this,t,e,1)}function Tr(t,e){return Sr(this,t,e,-1)}function Mr(t){return t<0?Math.floor(t):Math.ceil(t)}function Or(){var t,e,i,n,o,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*Mr(Pr(a)+s),s=0,a=0),l.milliseconds=r%1e3,t=Pt(r/1e3),l.seconds=t%60,e=Pt(t/60),l.minutes=e%60,i=Pt(e/60),l.hours=i%24,s+=Pt(i/24),a+=o=Pt(Er(s)),s-=Mr(Pr(o)),n=Pt(a/12),a%=12,l.days=s,l.months=a,l.years=n,this}function Er(t){return 4800*t/146097}function Pr(t){return 146097*t/4800}function Ir(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=nt(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+Er(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Pr(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)}}function Nr(t){return function(){return this.as(t)}}var Lr=Nr("ms"),Ar=Nr("s"),Fr=Nr("m"),Rr=Nr("h"),Yr=Nr("d"),jr=Nr("w"),Hr=Nr("M"),zr=Nr("Q"),Gr=Nr("y"),Wr=Lr;function Br(){return On(this)}function Vr(t){return t=nt(t),this.isValid()?this[t+"s"]():NaN}function Ur(t){return function(){return this.isValid()?this._data[t]:NaN}}var Xr=Ur("milliseconds"),qr=Ur("seconds"),Kr=Ur("minutes"),Zr=Ur("hours"),$r=Ur("days"),Jr=Ur("months"),Qr=Ur("years");function ts(){return Pt(this.days()/7)}var es=Math.round,is={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ns(t,e,i,n,o){return o.relativeTime(e||1,!!i,t,n)}function os(t,e,i,n){var o=On(t).abs(),r=es(o.as("s")),s=es(o.as("m")),a=es(o.as("h")),l=es(o.as("d")),h=es(o.as("M")),c=es(o.as("w")),u=es(o.as("y")),d=r<=i.ss&&["s",r]||r<i.s&&["ss",r]||s<=1&&["m"]||s<i.m&&["mm",s]||a<=1&&["h"]||a<i.h&&["hh",a]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(d=d||c<=1&&["w"]||c<i.w&&["ww",c]),(d=d||h<=1&&["M"]||h<i.M&&["MM",h]||u<=1&&["y"]||["yy",u])[2]=e,d[3]=+t>0,d[4]=n,ns.apply(null,d)}function rs(t){return void 0===t?es:"function"==typeof t&&(es=t,!0)}function ss(t,e){return void 0!==is[t]&&(void 0===e?is[t]:(is[t]=e,"s"===t&&(is.ss=e-1),!0))}function as(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,o=!1,r=is;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(o=t),"object"==typeof e&&(r=Object.assign({},is,e),null!=e.s&&null==e.ss&&(r.ss=e.s-1)),n=os(this,!o,r,i=this.localeData()),o&&(n=i.pastFuture(+this,n)),i.postformat(n)}var ls=Math.abs;function hs(t){return(t>0)-(t<0)||+t}function cs(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,o,r,s,a,l=ls(this._milliseconds)/1e3,h=ls(this._days),c=ls(this._months),u=this.asSeconds();return u?(t=Pt(l/60),e=Pt(t/60),l%=60,t%=60,i=Pt(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=u<0?"-":"",r=hs(this._months)!==hs(u)?"-":"",s=hs(this._days)!==hs(u)?"-":"",a=hs(this._milliseconds)!==hs(u)?"-":"",o+"P"+(i?r+i+"Y":"")+(c?r+c+"M":"")+(h?s+h+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+n+"S":"")):"P0D"}var us=an.prototype;return us.isValid=rn,us.abs=kr,us.add=Cr,us.subtract=Tr,us.as=Ir,us.asMilliseconds=Lr,us.asSeconds=Ar,us.asMinutes=Fr,us.asHours=Rr,us.asDays=Yr,us.asWeeks=jr,us.asMonths=Hr,us.asQuarters=zr,us.asYears=Gr,us.valueOf=Wr,us._bubble=Or,us.clone=Br,us.get=Vr,us.milliseconds=Xr,us.seconds=qr,us.minutes=Kr,us.hours=Zr,us.days=$r,us.weeks=ts,us.months=Jr,us.years=Qr,us.humanize=as,us.toISOString=cs,us.toString=cs,us.toJSON=cs,us.locale=ao,us.localeData=ho,us.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),us.lang=lo,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Tt("x",_t),Tt("X",Dt),Lt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t))}),Lt("x",function(t,e,i){i._d=new Date(It(t))}),
//! moment.js
o.version="2.30.1",r(Ki),o.fn=cr,o.min=Qi,o.max=tn,o.now=en,o.utc=f,o.unix=ur,o.months=yr,o.isDate=d,o.locale=fi,o.invalid=b,o.duration=On,o.isMoment=k,o.weekdays=_r,o.parseZone=dr,o.localeData=yi,o.isDuration=ln,o.monthsShort=br,o.weekdaysMin=xr,o.defineLocale=gi,o.updateLocale=vi,o.locales=bi,o.weekdaysShort=wr,o.normalizeUnits=nt,o.relativeTimeRounding=rs,o.relativeTimeThreshold=ss,o.calendarFormat=Gn,o.prototype=cr,o.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"},o}()}(r)),r.exports}var a,l;a||(a=1,l=function(t){
//! moment.js locale configuration
function e(t,e,i,n){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[i][0]:o[i][1]}return 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,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},l(s()));var h;h||(h=1,function(t,e){e(s())}(0,function(t){
//! moment.js locale configuration
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],o=/^(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;return 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:o,monthsShortRegex:o,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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inválida"})}));var c;c||(c=1,function(t,e){e(s())}(0,function(t){
//! moment.js locale configuration
var e=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],n=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("_"),monthsRegex:e,monthsShortRegex:e,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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",w:"une semaine",ww:"%d semaines",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}});return n}));var u;u||(u=1,function(t,e){e(s())}(0,function(t){return 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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}));var d;d||(d=1,function(t,e){e(s())}(0,function(t){
//! moment.js locale configuration
var e=t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".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"y":return 1===t?"元年":t+"年";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年"}});return e}));var p;p||(p=1,function(t,e){e(s())}(0,function(t){
//! moment.js locale configuration
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],o=/^(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,r=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:o,monthsShortRegex:o,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",w:"één week",ww:"%d weken",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}});return r}));var m;m||(m=1,function(t,e){e(s())}(0,function(t){
//! moment.js locale configuration
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("_"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,e,i){var n=t+" ";switch(i){case"ss":return n+(o(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return n+(o(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return n+(o(t)?"godziny":"godzin");case"ww":return n+(o(t)?"tygodnie":"tygodni");case"MM":return n+(o(t)?"miesiące":"miesięcy");case"yy":return n+(o(t)?"lata":"lat")}}return t.defineLocale("pl",{months:function(t,n){return t?/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("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,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",w:"tydzień",ww:r,M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}));var f;f||(f=1,function(t,e){e(s())}(0,function(t){function e(t,e,i){var n,o;return"m"===i?e?"минута":"минуту":t+" "+(n=+t,o={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?o[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?o[1]:o[2])}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],n=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,w:"неделя",ww: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}});return n}));var g;g||(g=1,function(t,e){e(s())}(0,function(t){
//! moment.js locale configuration
var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},i=t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(t,e,i){return t<12?i?"öö":"ÖÖ":i?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(t){return"ös"===t||"ÖS"===t},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:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}});return i}));var v;function y(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,o={},r={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){h(t,"keydown")},l=function(t){h(t,"keyup")},h=function(t,e){if(void 0!==r[e][t.keyCode]){for(var n=r[e][t.keyCode],o=0;o<n.length;o++)(void 0===n[o].shift||1==n[o].shift&&1==t.shiftKey||0==n[o].shift&&0==t.shiftKey)&&n[o].fn(t);1==i&&t.preventDefault()}};return o.bind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===r[i][s[t].code]&&(r[i][s[t].code]=[]),r[i][s[t].code].push({fn:e,shift:s[t].shift})},o.bindAll=function(t,e){for(var i in void 0===e&&(e="keydown"),s)s.hasOwnProperty(i)&&o.bind(i,t,e)},o.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"},o.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=[],o=r[i][s[t].code];if(void 0!==o)for(var a=0;a<o.length;a++)o[a].fn==e&&o[a].shift==s[t].shift||n.push(r[i][s[t].code][a]);r[i][s[t].code]=n}else r[i][s[t].code]=[]},o.reset=function(){r={keydown:{},keyup:{}}},o.destroy=function(){r={keydown:{},keyup:{}},n.removeEventListener("keydown",a,!0),n.removeEventListener("keyup",l,!0)},n.addEventListener("keydown",a,!0),n.addEventListener("keyup",l,!0),o}v||(v=1,function(t,e){e(s())}(0,function(t){function e(t,e,i){var n,o;return"m"===i?e?"хвилина":"хвилину":"h"===i?e?"година":"годину":t+" "+(n=+t,o={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?o[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?o[1]:o[2])}function i(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}var n=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}});return n}));var b,_,w,x,D,k,S,C,T,M,O,E,P,I,N,L,A={},F={};function R(){if(_)return b;_=1;var t=function(t){return t&&t.Math===Math&&t};return b=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof b&&b)||function(){return this}()||Function("return this")()}function Y(){return x?w:(x=1,w=function(t){try{return!!t()}catch(t){return!0}})}function j(){return k?D:(k=1,D=!Y()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function H(){if(C)return S;C=1;var t=j(),e=Function.prototype,i=e.apply,n=e.call;return S="object"==typeof Reflect&&Reflect.apply||(t?n.bind(i):function(){return n.apply(i,arguments)}),S}function z(){if(M)return T;M=1;var t=j(),e=Function.prototype,i=e.call,n=t&&e.bind.bind(i,i);return T=t?n:function(t){return function(){return i.apply(t,arguments)}},T}function G(){if(E)return O;E=1;var t=z(),e=t({}.toString),i=t("".slice);return O=function(t){return i(e(t),8,-1)},O}function W(){if(I)return P;I=1;var t=G(),e=z();return P=function(i){if("Function"===t(i))return e(i)}}function B(){if(L)return N;L=1;var t="object"==typeof document&&document.all;return N=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var V,U,X,q,K={};function Z(){return U?V:(U=1,V=!Y()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function $(){if(q)return X;q=1;var t=j(),e=Function.prototype.call;return X=t?e.bind(e):function(){return e.apply(e,arguments)},X}var J,Q,tt,et,it,nt,ot,rt,st,at,lt,ht,ct,ut,dt,pt,mt,ft,gt,vt,yt,bt,_t,wt,xt,Dt,kt,St,Ct,Tt,Mt,Ot,Et,Pt,It,Nt,Lt,At={};function Ft(){if(J)return At;J=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,i=e&&!t.call({1:2},1);return At.f=i?function(t){var i=e(this,t);return!!i&&i.enumerable}:t,At}function Rt(){return tt?Q:(tt=1,Q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Yt(){if(it)return et;it=1;var t=z(),e=Y(),i=G(),n=Object,o=t("".split);return et=e(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?o(t,""):n(t)}:n,et}function jt(){return ot||(ot=1,nt=function(t){return null==t}),nt}function Ht(){if(st)return rt;st=1;var t=jt(),e=TypeError;return rt=function(i){if(t(i))throw new e("Can't call method on "+i);return i},rt}function zt(){if(lt)return at;lt=1;var t=Yt(),e=Ht();return at=function(i){return t(e(i))},at}function Gt(){if(ct)return ht;ct=1;var t=B();return ht=function(e){return"object"==typeof e?null!==e:t(e)},ht}function Wt(){return dt?ut:(dt=1,ut={})}function Bt(){if(mt)return pt;mt=1;var t=Wt(),e=R(),i=B(),n=function(t){return i(t)?t:void 0};return pt=function(i,o){return arguments.length<2?n(t[i])||n(e[i]):t[i]&&t[i][o]||e[i]&&e[i][o]},pt}function Vt(){return gt?ft:(gt=1,ft=z()({}.isPrototypeOf))}function Ut(){if(yt)return vt;yt=1;var t=R().navigator,e=t&&t.userAgent;return vt=e?String(e):""}function Xt(){if(_t)return bt;_t=1;var t,e,i=R(),n=Ut(),o=i.process,r=i.Deno,s=o&&o.versions||r&&r.version,a=s&&s.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(e=+t[1]),bt=e}function qt(){if(xt)return wt;xt=1;var t=Xt(),e=Y(),i=R().String;return wt=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),wt}function Kt(){return kt?Dt:(kt=1,Dt=qt()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Zt(){if(Ct)return St;Ct=1;var t=Bt(),e=B(),i=Vt(),n=Object;return St=Kt()?function(t){return"symbol"==typeof t}:function(o){var r=t("Symbol");return e(r)&&i(r.prototype,n(o))},St}function $t(){if(Mt)return Tt;Mt=1;var t=String;return Tt=function(e){try{return t(e)}catch(t){return"Object"}}}function Jt(){if(Et)return Ot;Et=1;var t=B(),e=$t(),i=TypeError;return Ot=function(n){if(t(n))return n;throw new i(e(n)+" is not a function")}}function Qt(){if(It)return Pt;It=1;var t=Jt(),e=jt();return Pt=function(i,n){var o=i[n];return e(o)?void 0:t(o)}}function te(){if(Lt)return Nt;Lt=1;var t=$(),e=B(),i=Gt(),n=TypeError;return Nt=function(o,r){var s,a;if("string"===r&&e(s=o.toString)&&!i(a=t(s,o)))return a;if(e(s=o.valueOf)&&!i(a=t(s,o)))return a;if("string"!==r&&e(s=o.toString)&&!i(a=t(s,o)))return a;throw new n("Can't convert object to primitive value")}}var ee,ie,ne,oe,re,se,ae,le,he,ce,ue,de,pe,me,fe,ge,ve,ye,be,_e,we,xe,De,ke,Se,Ce,Te,Me,Oe={exports:{}};function Ee(){return ie?ee:(ie=1,ee=!0)}function Pe(){if(oe)return ne;oe=1;var t=R(),e=Object.defineProperty;return ne=function(i,n){try{e(t,i,{value:n,configurable:!0,writable:!0})}catch(e){t[i]=n}return n}}function Ie(){if(re)return Oe.exports;re=1;var t=Ee(),e=R(),i=Pe(),n="__core-js_shared__",o=Oe.exports=e[n]||i(n,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Oe.exports}function Ne(){if(ae)return se;ae=1;var t=Ie();return se=function(e,i){return t[e]||(t[e]=i||{})}}function Le(){if(he)return le;he=1;var t=Ht(),e=Object;return le=function(i){return e(t(i))}}function Ae(){if(ue)return ce;ue=1;var t=z(),e=Le(),i=t({}.hasOwnProperty);return ce=Object.hasOwn||function(t,n){return i(e(t),n)},ce}function Fe(){if(pe)return de;pe=1;var t=z(),e=0,i=Math.random(),n=t(1.1.toString);return de=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++e+i,36)}}function Re(){if(fe)return me;fe=1;var t=R(),e=Ne(),i=Ae(),n=Fe(),o=qt(),r=Kt(),s=t.Symbol,a=e("wks"),l=r?s.for||s:s&&s.withoutSetter||n;return me=function(t){return i(a,t)||(a[t]=o&&i(s,t)?s[t]:l("Symbol."+t)),a[t]}}function Ye(){if(ve)return ge;ve=1;var t=$(),e=Gt(),i=Zt(),n=Qt(),o=te(),r=TypeError,s=Re()("toPrimitive");return ge=function(a,l){if(!e(a)||i(a))return a;var h,c=n(a,s);if(c){if(void 0===l&&(l="default"),h=t(c,a,l),!e(h)||i(h))return h;throw new r("Can't convert object to primitive value")}return void 0===l&&(l="number"),o(a,l)}}function je(){if(be)return ye;be=1;var t=Ye(),e=Zt();return ye=function(i){var n=t(i,"string");return e(n)?n:n+""}}function He(){if(we)return _e;we=1;var t=R(),e=Gt(),i=t.document,n=e(i)&&e(i.createElement);return _e=function(t){return n?i.createElement(t):{}},_e}function ze(){if(De)return xe;De=1;var t=Z(),e=Y(),i=He();return xe=!t&&!e(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})}function Ge(){if(ke)return K;ke=1;var t=Z(),e=$(),i=Ft(),n=Rt(),o=zt(),r=je(),s=Ae(),a=ze(),l=Object.getOwnPropertyDescriptor;return K.f=t?l:function(t,h){if(t=o(t),h=r(h),a)try{return l(t,h)}catch(t){}if(s(t,h))return n(!e(i.f,t,h),t[h])},K}function We(){if(Ce)return Se;Ce=1;var t=Y(),e=B(),i=/#|\.prototype\./,n=function(i,n){var l=r[o(i)];return l===a||l!==s&&(e(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(i,".").toLowerCase()},r=n.data={},s=n.NATIVE="N",a=n.POLYFILL="P";return Se=n}function Be(){if(Me)return Te;Me=1;var t=W(),e=Jt(),i=j(),n=t(t.bind);return Te=function(t,o){return e(t),void 0===o?t:i?n(t,o):function(){return t.apply(o,arguments)}},Te}var Ve,Ue,Xe,qe,Ke,Ze,$e,Je,Qe,ti,ei,ii,ni,oi,ri,si={};function ai(){return Ue?Ve:(Ue=1,Ve=Z()&&Y()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function li(){if(qe)return Xe;qe=1;var t=Gt(),e=String,i=TypeError;return Xe=function(n){if(t(n))return n;throw new i(e(n)+" is not an object")}}function hi(){if(Ke)return si;Ke=1;var t=Z(),e=ze(),i=ai(),n=li(),o=je(),r=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l="enumerable",h="configurable",c="writable";return si.f=t?i?function(t,e,i){if(n(t),e=o(e),n(i),"function"==typeof t&&"prototype"===e&&"value"in i&&c in i&&!i[c]){var r=a(t,e);r&&r[c]&&(t[e]=i.value,i={configurable:h in i?i[h]:r[h],enumerable:l in i?i[l]:r[l],writable:!1})}return s(t,e,i)}:s:function(t,i,a){if(n(t),i=o(i),n(a),e)try{return s(t,i,a)}catch(t){}if("get"in a||"set"in a)throw new r("Accessors not supported");return"value"in a&&(t[i]=a.value),t},si}function ci(){if($e)return Ze;$e=1;var t=Z(),e=hi(),i=Rt();return Ze=t?function(t,n,o){return e.f(t,n,i(1,o))}:function(t,e,i){return t[e]=i,t},Ze}function ui(){if(Qe)return Je;Qe=1;var t=R(),e=H(),i=W(),n=B(),o=Ge().f,r=We(),s=Wt(),a=Be(),l=ci(),h=Ae(),c=function(t){var i=function(n,o,r){if(this instanceof i){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,o)}return new t(n,o,r)}return e(t,this,arguments)};return i.prototype=t.prototype,i};return Je=function(e,u){var d,p,m,f,g,v,y,b,_,w=e.target,x=e.global,D=e.stat,k=e.proto,S=x?t:D?t[w]:t[w]&&t[w].prototype,C=x?s:s[w]||l(s,w,{})[w],T=C.prototype;for(f in u)p=!(d=r(x?f:w+(D?".":"#")+f,e.forced))&&S&&h(S,f),v=C[f],p&&(y=e.dontCallGetSet?(_=o(S,f))&&_.value:S[f]),g=p&&y?y:u[f],(d||k||typeof v!=typeof g)&&(b=e.bind&&p?a(g,t):e.wrap&&p?c(g):k&&n(g)?i(g):g,(e.sham||g&&g.sham||v&&v.sham)&&l(b,"sham",!0),l(C,f,b),k&&(h(s,m=w+"Prototype")||l(s,m,{}),l(s[m],f,g),e.real&&T&&(d||!T[f])&&l(T,f,g)))}}function di(){if(ei)return ti;ei=1;var t={};return t[Re()("toStringTag")]="z",ti="[object z]"===String(t)}function pi(){if(ni)return ii;ni=1;var t=di(),e=B(),i=G(),n=Re()("toStringTag"),o=Object,r="Arguments"===i(function(){return arguments}());return ii=t?i:function(t){var s,a,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(s=o(t),n))?a:r?i(s):"Object"===(l=i(s))&&e(s.callee)?"Arguments":l},ii}function mi(){if(ri)return oi;ri=1;var t=pi(),e=String;return oi=function(i){if("Symbol"===t(i))throw new TypeError("Cannot convert a Symbol value to a string");return e(i)}}var fi,gi,vi,yi,bi,_i,wi,xi,Di,ki,Si,Ci,Ti,Mi,Oi,Ei,Pi,Ii,Ni,Li,Ai,Fi,Ri,Yi,ji,Hi,zi,Gi={};function Wi(){if(gi)return fi;gi=1;var t=Math.ceil,e=Math.floor;return fi=Math.trunc||function(i){var n=+i;return(n>0?e:t)(n)}}function Bi(){if(yi)return vi;yi=1;var t=Wi();return vi=function(e){var i=+e;return i!=i||0===i?0:t(i)},vi}function Vi(){if(_i)return bi;_i=1;var t=Bi(),e=Math.max,i=Math.min;return bi=function(n,o){var r=t(n);return r<0?e(r+o,0):i(r,o)}}function Ui(){if(xi)return wi;xi=1;var t=Bi(),e=Math.min;return wi=function(i){var n=t(i);return n>0?e(n,9007199254740991):0}}function Xi(){if(ki)return Di;ki=1;var t=Ui();return Di=function(e){return t(e.length)}}function qi(){if(Ci)return Si;Ci=1;var t=zt(),e=Vi(),i=Xi(),n=function(n){return function(o,r,s){var a=t(o),l=i(a);if(0===l)return!n&&-1;var h,c=e(s,l);if(n&&r!=r){for(;l>c;)if((h=a[c++])!=h)return!0}else for(;l>c;c++)if((n||c in a)&&a[c]===r)return n||c||0;return!n&&-1}};return Si={includes:n(!0),indexOf:n(!1)}}function Ki(){return Mi?Ti:(Mi=1,Ti={})}function Zi(){if(Ei)return Oi;Ei=1;var t=z(),e=Ae(),i=zt(),n=qi().indexOf,o=Ki(),r=t([].push);return Oi=function(t,s){var a,l=i(t),h=0,c=[];for(a in l)!e(o,a)&&e(l,a)&&r(c,a);for(;s.length>h;)e(l,a=s[h++])&&(~n(c,a)||r(c,a));return c},Oi}function $i(){return Ii?Pi:(Ii=1,Pi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Ji(){if(Li)return Ni;Li=1;var t=Zi(),e=$i();return Ni=Object.keys||function(i){return t(i,e)}}function Qi(){if(Ai)return Gi;Ai=1;var t=Z(),e=ai(),i=hi(),n=li(),o=zt(),r=Ji();return Gi.f=t&&!e?Object.defineProperties:function(t,e){n(t);for(var s,a=o(e),l=r(e),h=l.length,c=0;h>c;)i.f(t,s=l[c++],a[s]);return t},Gi}function tn(){return Ri?Fi:(Ri=1,Fi=Bt()("document","documentElement"))}function en(){if(ji)return Yi;ji=1;var t=Ne(),e=Fe(),i=t("keys");return Yi=function(t){return i[t]||(i[t]=e(t))}}function nn(){if(zi)return Hi;zi=1;var t,e=li(),i=Qi(),n=$i(),o=Ki(),r=tn(),s=He(),a="prototype",l="script",h=en()("IE_PROTO"),c=function(){},u=function(t){return"<"+l+">"+t+"</"+l+">"},d=function(t){t.write(u("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,i,o;p="undefined"!=typeof document?document.domain&&t?d(t):(i=s("iframe"),o="java"+l+":",i.style.display="none",r.appendChild(i),i.src=String(o),(e=i.contentWindow.document).open(),e.write(u("document.F=Object")),e.close(),e.F):d(t);for(var h=n.length;h--;)delete p[a][n[h]];return p()};return o[h]=!0,Hi=Object.create||function(t,n){var o;return null!==t?(c[a]=e(t),o=new c,c[a]=null,o[h]=t):o=p(),void 0===n?o:i.f(o,n)}}var on,rn={};function sn(){if(on)return rn;on=1;var t=Zi(),e=$i().concat("length","prototype");return rn.f=Object.getOwnPropertyNames||function(i){return t(i,e)},rn}var an,ln,hn,cn={};function un(){return ln?an:(ln=1,an=z()([].slice))}function dn(){if(hn)return cn;hn=1;var t=G(),e=zt(),i=sn().f,n=un(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return cn.f=function(r){return o&&"Window"===t(r)?function(t){try{return i(t)}catch(t){return n(o)}}(r):i(e(r))},cn}var pn,mn,fn,gn,vn,yn={};function bn(){return pn||(pn=1,yn.f=Object.getOwnPropertySymbols),yn}function _n(){if(fn)return mn;fn=1;var t=ci();return mn=function(e,i,n,o){return o&&o.enumerable?e[i]=n:t(e,i,n),e}}function wn(){if(vn)return gn;vn=1;var t=hi();return gn=function(e,i,n){return t.f(e,i,n)}}var xn,Dn,kn,Sn,Cn,Tn,Mn,On,En,Pn,In,Nn,Ln,An,Fn,Rn,Yn,jn,Hn,zn,Gn,Wn,Bn,Vn,Un,Xn,qn,Kn,Zn={};function $n(){if(xn)return Zn;xn=1;var t=Re();return Zn.f=t,Zn}function Jn(){if(kn)return Dn;kn=1;var t=Wt(),e=Ae(),i=$n(),n=hi().f;return Dn=function(o){var r=t.Symbol||(t.Symbol={});e(r,o)||n(r,o,{value:i.f(o)})}}function Qn(){if(Cn)return Sn;Cn=1;var t=$(),e=Bt(),i=Re(),n=_n();return Sn=function(){var o=e("Symbol"),r=o&&o.prototype,s=r&&r.valueOf,a=i("toPrimitive");r&&!r[a]&&n(r,a,function(e){return t(s,this)},{arity:1})}}function to(){if(Mn)return Tn;Mn=1;var t=di(),e=pi();return Tn=t?{}.toString:function(){return"[object "+e(this)+"]"}}function eo(){if(En)return On;En=1;var t=di(),e=hi().f,i=ci(),n=Ae(),o=to(),r=Re()("toStringTag");return On=function(s,a,l,h){var c=l?s:s&&s.prototype;c&&(n(c,r)||e(c,r,{configurable:!0,value:a}),h&&!t&&i(c,"toString",o))},On}function io(){if(In)return Pn;In=1;var t=R(),e=B(),i=t.WeakMap;return Pn=e(i)&&/native code/.test(String(i))}function no(){if(Ln)return Nn;Ln=1;var t,e,i,n=io(),o=R(),r=Gt(),s=ci(),a=Ae(),l=Ie(),h=en(),c=Ki(),u="Object already initialized",d=o.TypeError,p=o.WeakMap;if(n||l.state){var m=l.state||(l.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,t=function(t,e){if(m.has(t))throw new d(u);return e.facade=t,m.set(t,e),e},e=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var f=h("state");c[f]=!0,t=function(t,e){if(a(t,f))throw new d(u);return e.facade=t,s(t,f,e),e},e=function(t){return a(t,f)?t[f]:{}},i=function(t){return a(t,f)}}return Nn={set:t,get:e,has:i,enforce:function(n){return i(n)?e(n):t(n,{})},getterFor:function(t){return function(i){var n;if(!r(i)||(n=e(i)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}},Nn}function oo(){if(Fn)return An;Fn=1;var t=G();return An=Array.isArray||function(e){return"Array"===t(e)}}function ro(){if(Yn)return Rn;Yn=1;var t=z(),e=B(),i=Ie(),n=t(Function.toString);return e(i.inspectSource)||(i.inspectSource=function(t){return n(t)}),Rn=i.inspectSource}function so(){if(Hn)return jn;Hn=1;var t=z(),e=Y(),i=B(),n=pi(),o=Bt(),r=ro(),s=function(){},a=o("Reflect","construct"),l=/^\s*(?:class|function)\b/,h=t(l.exec),c=!l.test(s),u=function(t){if(!i(t))return!1;try{return a(s,[],t),!0}catch(t){return!1}},d=function(t){if(!i(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!h(l,r(t))}catch(t){return!0}};return d.sham=!0,jn=!a||e(function(){var t;return u(u.call)||!u(Object)||!u(function(){t=!0})||t})?d:u}function ao(){if(Gn)return zn;Gn=1;var t=oo(),e=so(),i=Gt(),n=Re()("species"),o=Array;return zn=function(r){var s;return t(r)&&(s=r.constructor,(e(s)&&(s===o||t(s.prototype))||i(s)&&null===(s=s[n]))&&(s=void 0)),void 0===s?o:s}}function lo(){if(Bn)return Wn;Bn=1;var t=ao();return Wn=function(e,i){return new(t(e))(0===i?0:i)}}function ho(){if(Un)return Vn;Un=1;var t=Z(),e=hi(),i=Rt();return Vn=function(n,o,r){t?e.f(n,o,i(0,r)):n[o]=r},Vn}function co(){if(qn)return Xn;qn=1;var t=Be(),e=Yt(),i=Le(),n=Xi(),o=lo(),r=ho(),s=function(s){var a=1===s,l=2===s,h=3===s,c=4===s,u=6===s,d=7===s,p=5===s||u;return function(m,f,g){for(var v,y,b=i(m),_=e(b),w=n(_),x=t(f,g),D=0,k=0,S=a?o(m,w):l||d?o(m,0):void 0;w>D;D++)if((p||D in _)&&(y=x(v=_[D],D,b),s))if(a)r(S,D,y);else if(y)switch(s){case 3:return!0;case 5:return v;case 6:return D;case 2:r(S,k++,v)}else switch(s){case 4:return!1;case 7:r(S,k++,v)}return u?-1:h||c?c:S}};return Xn={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var uo,po,mo,fo={};function go(){return po?uo:(po=1,uo=qt()&&!!Symbol.for&&!!Symbol.keyFor)}var vo,yo={};var bo,_o,wo,xo,Do,ko,So,Co={};function To(){if(_o)return bo;_o=1;var t=Gt(),e=no().get;return bo=function(i){if(!t(i))return!1;var n=e(i);return!!n&&"RawJSON"===n.type}}function Mo(){if(xo)return wo;xo=1;var t=z(),e=Ae(),i=SyntaxError,n=parseInt,o=String.fromCharCode,r=t("".charAt),s=t("".slice),a=t(/./.exec),l={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},h=/^[\da-f]{4}$/i,c=/^[\u0000-\u001F]$/;return wo=function(t,u){for(var d=!0,p="";u<t.length;){var m=r(t,u);if("\\"===m){var f=s(t,u,u+2);if(e(l,f))p+=l[f],u+=2;else{if("\\u"!==f)throw new i('Unknown escape sequence: "'+f+'"');var g=s(t,u+=2,u+4);if(!a(h,g))throw new i("Bad Unicode escape at: "+u);p+=o(n(g,16)),u+=4}}else{if('"'===m){d=!1,u++;break}if(a(c,m))throw new i("Bad control character in string literal at: "+u);p+=m,u++}}if(d)throw new i("Unterminated string at: "+u);return{value:p,end:u}}}function Oo(){return ko?Do:(ko=1,Do=!Y()(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t}))}function Eo(){if(So)return Co;So=1;var t=ui(),e=Bt(),i=H(),n=$(),o=z(),r=Y(),s=oo(),a=B(),l=To(),h=Zt(),c=G(),u=mi(),d=un(),p=Mo(),m=Fe(),f=qt(),g=Oo(),v=String,y=e("JSON","stringify"),b=o(/./.exec),_=o("".charAt),w=o("".charCodeAt),x=o("".replace),D=o("".slice),k=o([].push),S=o(1.1.toString),C=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,M=/^[\uDC00-\uDFFF]$/,O=m(),E=O.length,P=!f||r(function(){var t=e("Symbol")("stringify detection");return"[null]"!==y([t])||"{}"!==y({a:t})||"{}"!==y(Object(t))}),I=r(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")}),N=P?function(t,e){var o=d(arguments),r=A(e);if(a(r)||void 0!==t&&!h(t))return o[1]=function(t,e){if(a(r)&&(e=n(r,this,v(t),e)),!h(e))return e},i(y,null,o)}:y,L=function(t,e,i){var n=_(i,e-1),o=_(i,e+1);return b(T,t)&&!b(M,o)||b(M,t)&&!b(T,n)?"\\u"+S(w(t,0),16):t},A=function(t){if(a(t))return t;if(s(t)){for(var e=t.length,i=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?k(i,o):"number"!=typeof o&&"Number"!==c(o)&&"String"!==c(o)||k(i,u(o))}var r=i.length,l=!0;return function(t,e){if(l)return l=!1,e;if(s(this))return e;for(var n=0;n<r;n++)if(i[n]===t)return e}}};return y&&t({target:"JSON",stat:!0,arity:3,forced:P||I||!g},{stringify:function(t,e,i){var o=A(e),r=[],s=N(t,function(t,e){var i=a(o)?n(o,this,v(t),e):e;return!g&&l(i)?O+(k(r,i.rawJSON)-1):i},i);if("string"!=typeof s)return s;if(I&&(s=x(s,C,L)),g)return s;for(var h="",c=s.length,u=0;u<c;u++){var d=_(s,u);if('"'===d){var m=p(s,++u).end-1,f=D(s,u,m);h+=D(f,0,E)===O?r[D(f,E)]:'"'+f+'"',u=m}else h+=d}return h}}),Co}var Po,Io,No,Lo,Ao,Fo,Ro,Yo,jo={};function Ho(){return Io||(Io=1,function(){if(Kn)return F;Kn=1;var t=ui(),e=R(),i=$(),n=z(),o=Ee(),r=Z(),s=qt(),a=Y(),l=Ae(),h=Vt(),c=li(),u=zt(),d=je(),p=mi(),m=Rt(),f=nn(),g=Ji(),v=sn(),y=dn(),b=bn(),_=Ge(),w=hi(),x=Qi(),D=Ft(),k=_n(),S=wn(),C=Ne(),T=en(),M=Ki(),O=Fe(),E=Re(),P=$n(),I=Jn(),N=Qn(),L=eo(),A=no(),j=co().forEach,H=T("hidden"),G="Symbol",W="prototype",B=A.set,V=A.getterFor(G),U=Object[W],X=e.Symbol,q=X&&X[W],K=e.RangeError,J=e.TypeError,Q=e.QObject,tt=_.f,et=w.f,it=y.f,nt=D.f,ot=n([].push),rt=C("symbols"),st=C("op-symbols"),at=C("wks"),lt=!Q||!Q[W]||!Q[W].findChild,ht=function(t,e,i){var n=tt(U,e);return n&&delete U[e],et(t,e,i),n&&t!==U&&et(U,e,n),t},ct=r&&a(function(){return 7!==f(et({},"a",{get:function(){return et(this,"a",{value:7}).a}})).a})?ht:et,ut=function(t,e){var i=rt[t]=f(q);return B(i,{type:G,tag:t,description:e}),r||(i.description=e),i},dt=function(t,e,i){t===U&&dt(st,e,i),c(t);var n=d(e);return c(i),l(rt,n)?(("enumerable"in i?!i.enumerable:!l(t,n)||l(t,H)&&t[H][n])?(l(t,H)||et(t,H,m(1,f(null))),t[H][n]=!0):(l(t,H)&&t[H][n]&&(t[H][n]=!1),i=f(i,{enumerable:m(0,!1)})),ct(t,n,i)):et(t,n,i)},pt=function(t,e){c(t);var n=u(e),o=g(n).concat(vt(n));return j(o,function(e){r&&!i(mt,n,e)||dt(t,e,n[e])}),t},mt=function(t){var e=d(t),n=i(nt,this,e);return!(this===U&&l(rt,e)&&!l(st,e))&&(!(n||!l(this,e)||!l(rt,e)||l(this,H)&&this[H][e])||n)},ft=function(t,e){var i=u(t),n=d(e);if(i!==U||!l(rt,n)||l(st,n)){var o=tt(i,n);return!o||!l(rt,n)||l(i,H)&&i[H][n]||(o.enumerable=!0),o}},gt=function(t){var e=it(u(t)),i=[];return j(e,function(t){l(rt,t)||l(M,t)||ot(i,t)}),i},vt=function(t){var e=t===U,i=it(e?st:u(t)),n=[];return j(i,function(t){!l(rt,t)||e&&!l(U,t)||ot(n,rt[t])}),n};s||(X=function(){if(h(q,this))throw new J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,n=O(t),o=function(t){var r=void 0===this?e:this;r===U&&i(o,st,t),l(r,H)&&l(r[H],n)&&(r[H][n]=!1);var s=m(1,t);try{ct(r,n,s)}catch(t){if(!(t instanceof K))throw t;ht(r,n,s)}};return r&&lt&&ct(U,n,{configurable:!0,set:o}),ut(n,t)},k(q=X[W],"toString",function(){return V(this).tag}),k(X,"withoutSetter",function(t){return ut(O(t),t)}),D.f=mt,w.f=dt,x.f=pt,_.f=ft,v.f=y.f=gt,b.f=vt,P.f=function(t){return ut(E(t),t)},r&&(S(q,"description",{configurable:!0,get:function(){return V(this).description}}),o||k(U,"propertyIsEnumerable",mt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:X}),j(g(at),function(t){I(t)}),t({target:G,stat:!0,forced:!s},{useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),t({target:"Object",stat:!0,forced:!s,sham:!r},{create:function(t,e){return void 0===e?f(t):pt(f(t),e)},defineProperty:dt,defineProperties:pt,getOwnPropertyDescriptor:ft}),t({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:gt}),N(),L(X,G),M[H]=!0}(),function(){if(mo)return fo;mo=1;var t=ui(),e=Bt(),i=Ae(),n=mi(),o=Ne(),r=go(),s=o("string-to-symbol-registry"),a=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!r},{for:function(t){var o=n(t);if(i(s,o))return s[o];var r=e("Symbol")(o);return s[o]=r,a[r]=o,r}})}(),function(){if(vo)return yo;vo=1;var t=ui(),e=Ae(),i=Zt(),n=$t(),o=Ne(),r=go(),s=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!r},{keyFor:function(t){if(!i(t))throw new TypeError(n(t)+" is not a symbol");if(e(s,t))return s[t]}})}(),Eo(),function(){if(Po)return jo;Po=1;var t=ui(),e=qt(),i=Y(),n=bn(),o=Le();t({target:"Object",stat:!0,forced:!e||i(function(){n.f(1)})},{getOwnPropertySymbols:function(t){var e=n.f;return e?e(o(t)):[]}})}()),A}function zo(){return Lo?No:(Lo=1,Ho(),No=Wt().Object.getOwnPropertySymbols)}function Go(){return Fo?Ao:(Fo=1,Ao=zo())}var Wo,Bo,Vo,Uo,Xo,qo,Ko=i(Yo?Ro:(Yo=1,Ro=Go())),Zo={exports:{}},$o={};function Jo(){if(Bo)return Zo.exports;Bo=1,function(){if(Wo)return $o;Wo=1;var t=ui(),e=Y(),i=zt(),n=Ge().f,o=Z();t({target:"Object",stat:!0,forced:!o||e(function(){n(1)}),sham:!o},{getOwnPropertyDescriptor:function(t,e){return n(i(t),e)}})}();var t=Wt().Object,e=Zo.exports=function(e,i){return t.getOwnPropertyDescriptor(e,i)};return t.getOwnPropertyDescriptor.sham&&(e.sham=!0),Zo.exports}function Qo(){return Uo?Vo:(Uo=1,Vo=Jo())}var tr,er,ir,nr,or,rr,sr,ar,lr,hr=i(qo?Xo:(qo=1,Xo=Qo())),cr={};function ur(){if(er)return tr;er=1;var t=Bt(),e=z(),i=sn(),n=bn(),o=li(),r=e([].concat);return tr=t("Reflect","ownKeys")||function(t){var e=i.f(o(t)),s=n.f;return s?r(e,s(t)):e},tr}function dr(){return or?nr:(or=1,function(){if(ir)return cr;ir=1;var t=ui(),e=Z(),i=ur(),n=zt(),o=Ge(),r=ho();t({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(t){for(var e,s,a=n(t),l=o.f,h=i(a),c={},u=0;h.length>u;)void 0!==(s=l(a,e=h[u++]))&&r(c,e,s);return c}})}(),nr=Wt().Object.getOwnPropertyDescriptors)}function pr(){return sr?rr:(sr=1,rr=dr())}var mr,fr,gr,vr,yr,br,_r=i(lr?ar:(lr=1,ar=pr())),wr={exports:{}},xr={};function Dr(){if(mr)return xr;mr=1;var t=ui(),e=Z(),i=Qi().f;return t({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!e},{defineProperties:i}),xr}function kr(){if(fr)return wr.exports;fr=1,Dr();var t=Wt().Object,e=wr.exports=function(e,i){return t.defineProperties(e,i)};return t.defineProperties.sham&&(e.sham=!0),wr.exports}function Sr(){return vr?gr:(vr=1,gr=kr())}var Cr,Tr,Mr,Or,Er,Pr,Ir,Nr,Lr,Ar,Fr,Rr=i(br?yr:(br=1,yr=Sr()));function Yr(){return Mr?Tr:(Mr=1,Cr||(Cr=1,ui()({target:"Array",stat:!0},{isArray:oo()})),Tr=Wt().Array.isArray)}function jr(){return Er?Or:(Er=1,Or=Yr())}function Hr(){return Ir?Pr:(Ir=1,Pr=jr())}function zr(){return Lr?Nr:(Lr=1,Nr=Hr())}function Gr(){return Fr?Ar:(Fr=1,Ar=zr())}var Wr=i(Gr());var Br,Vr,Ur,Xr,qr,Kr,Zr,$r={};function Jr(){if(Vr)return Br;Vr=1;var t=TypeError;return Br=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e},Br}function Qr(){if(Xr)return Ur;Xr=1;var t=Z(),e=oo(),i=TypeError,n=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return Ur=o?function(t,o){if(e(t)&&!n(t,"length").writable)throw new i("Cannot set read only .length");return t.length=o}:function(t,e){return t.length=e}}function ts(){if(Kr)return qr;Kr=1;var t=Y(),e=Re(),i=Xt(),n=e("species");return qr=function(e){return i>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[e](Boolean).foo})},qr}function es(){if(Zr)return $r;Zr=1;var t=ui(),e=Y(),i=oo(),n=Gt(),o=Le(),r=Xi(),s=Jr(),a=ho(),l=Qr(),h=lo(),c=ts(),u=Re(),d=Xt(),p=u("isConcatSpreadable"),m=d>=51||!e(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),f=function(t){if(!n(t))return!1;var e=t[p];return void 0!==e?!!e:i(t)};return t({target:"Array",proto:!0,arity:1,forced:!m||!c("concat")},{concat:function(t){var e,i,n,c,u,d=o(this),p=h(d,0),m=0;for(e=-1,n=arguments.length;e<n;e++)if(f(u=-1===e?d:arguments[e]))for(c=r(u),s(m+c),i=0;i<c;i++,m++)i in u&&a(p,m,u[i]);else s(m+1),a(p,m++,u);return l(p,m),p}}),$r}var is,ns={};function os(){return is||(is=1,Jn()("asyncDispose")),ns}var rs;var ss,as={};function ls(){return ss||(ss=1,Jn()("dispose")),as}var hs;var cs;var us,ds={};function ps(){return us||(us=1,Jn()("iterator")),ds}var ms;var fs;var gs;var vs;var ys;var bs;var _s,ws={};function xs(){if(_s)return ws;_s=1;var t=Jn(),e=Qn();return t("toPrimitive"),e(),ws}var Ds,ks={};var Ss;var Cs,Ts,Ms,Os={};function Es(){return Ms?Ts:(Ms=1,es(),Ho(),os(),rs||(rs=1,Jn()("asyncIterator")),ls(),hs||(hs=1,Jn()("hasInstance")),cs||(cs=1,Jn()("isConcatSpreadable")),ps(),ms||(ms=1,Jn()("match")),fs||(fs=1,Jn()("matchAll")),gs||(gs=1,Jn()("replace")),vs||(vs=1,Jn()("search")),ys||(ys=1,Jn()("species")),bs||(bs=1,Jn()("split")),xs(),function(){if(Ds)return ks;Ds=1;var t=Bt(),e=Jn(),i=eo();e("toStringTag"),i(t("Symbol"),"Symbol")}(),Ss||(Ss=1,Jn()("unscopables")),function(){if(Cs)return Os;Cs=1;var t=R();eo()(t.JSON,"JSON",!0)}(),Ts=Wt().Symbol)}var Ps,Is,Ns,Ls,As,Fs,Rs,Ys,js,Hs,zs,Gs,Ws,Bs,Vs,Us,Xs,qs,Ks,Zs,$s,Js,Qs,ta,ea,ia,na,oa,ra,sa,aa,la,ha,ca={};function ua(){return Is?Ps:(Is=1,Ps=function(){})}function da(){return Ls?Ns:(Ls=1,Ns={})}function pa(){if(Fs)return As;Fs=1;var t=Z(),e=Ae(),i=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(i,"name"),r=o&&"something"===function(){}.name,s=o&&(!t||t&&n(i,"name").configurable);return As={EXISTS:o,PROPER:r,CONFIGURABLE:s}}function ma(){return Ys?Rs:(Ys=1,Rs=!Y()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function fa(){if(Hs)return js;Hs=1;var t=Ae(),e=B(),i=Le(),n=en(),o=ma(),r=n("IE_PROTO"),s=Object,a=s.prototype;return js=o?s.getPrototypeOf:function(n){var o=i(n);if(t(o,r))return o[r];var l=o.constructor;return e(l)&&o instanceof l?l.prototype:o instanceof s?a:null},js}function ga(){if(Gs)return zs;Gs=1;var t,e,i,n=Y(),o=B(),r=Gt(),s=nn(),a=fa(),l=_n(),h=Re(),c=Ee(),u=h("iterator"),d=!1;return[].keys&&("next"in(i=[].keys())?(e=a(a(i)))!==Object.prototype&&(t=e):d=!0),!r(t)||n(function(){var e={};return t[u].call(e)!==e})?t={}:c&&(t=s(t)),o(t[u])||l(t,u,function(){return this}),zs={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function va(){if(Bs)return Ws;Bs=1;var t=ga().IteratorPrototype,e=nn(),i=Rt(),n=eo(),o=da(),r=function(){return this};return Ws=function(s,a,l,h){var c=a+" Iterator";return s.prototype=e(t,{next:i(+!h,l)}),n(s,c,!1,!0),o[c]=r,s}}function ya(){if(Us)return Vs;Us=1;var t=z(),e=Jt();return Vs=function(i,n,o){try{return t(e(Object.getOwnPropertyDescriptor(i,n)[o]))}catch(t){}},Vs}function ba(){if(qs)return Xs;qs=1;var t=Gt();return Xs=function(e){return t(e)||null===e}}function _a(){if(Zs)return Ks;Zs=1;var t=ba(),e=String,i=TypeError;return Ks=function(n){if(t(n))return n;throw new i("Can't set "+e(n)+" as a prototype")}}function wa(){if(Js)return $s;Js=1;var t=ya(),e=Gt(),i=Ht(),n=_a();return $s=Object.setPrototypeOf||("__proto__"in{}?function(){var o,r=!1,s={};try{(o=t(Object.prototype,"__proto__","set"))(s,[]),r=s instanceof Array}catch(t){}return function(t,s){return i(t),n(s),e(t)?(r?o(t,s):t.__proto__=s,t):t}}():void 0)}function xa(){if(ta)return Qs;ta=1;var t=ui(),e=$(),i=Ee(),n=pa(),o=B(),r=va(),s=fa(),a=wa(),l=eo(),h=ci(),c=_n(),u=Re(),d=da(),p=ga(),m=n.PROPER,f=n.CONFIGURABLE,g=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,y=u("iterator"),b="keys",_="values",w="entries",x=function(){return this};return Qs=function(n,u,p,D,k,S,C){r(p,u,D);var T,M,O,E=function(t){if(t===k&&A)return A;if(!v&&t&&t in N)return N[t];switch(t){case b:case _:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},P=u+" Iterator",I=!1,N=n.prototype,L=N[y]||N["@@iterator"]||k&&N[k],A=!v&&L||E(k),F="Array"===u&&N.entries||L;if(F&&(T=s(F.call(new n)))!==Object.prototype&&T.next&&(i||s(T)===g||(a?a(T,g):o(T[y])||c(T,y,x)),l(T,P,!0,!0),i&&(d[P]=x)),m&&k===_&&L&&L.name!==_&&(!i&&f?h(N,"name",_):(I=!0,A=function(){return e(L,this)})),k)if(M={values:E(_),keys:S?A:E(b),entries:E(w)},C)for(O in M)(v||I||!(O in N))&&c(N,O,M[O]);else t({target:u,proto:!0,forced:v||I},M);return i&&!C||N[y]===A||c(N,y,A,{name:k}),d[u]=A,M}}function Da(){return ia?ea:(ia=1,ea=function(t,e){return{value:t,done:e}})}function ka(){if(oa)return na;oa=1;var t=zt(),e=ua(),i=da(),n=no(),o=hi().f,r=xa(),s=Da(),a=Ee(),l=Z(),h="Array Iterator",c=n.set,u=n.getterFor(h);na=r(Array,"Array",function(e,i){c(this,{type:h,target:t(e),index:0,kind:i})},function(){var t=u(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(i,!1);case"values":return s(e[i],!1)}return s([i,e[i]],!1)},"values");var d=i.Arguments=i.Array;if(e("keys"),e("values"),e("entries"),!a&&l&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return na}function Sa(){return sa?ra:(sa=1,ra={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})}function Ca(){if(aa)return ca;aa=1,ka();var t=Sa(),e=R(),i=eo(),n=da();for(var o in t)i(e[o],o),n[o]=n.Array;return ca}function Ta(){if(ha)return la;ha=1;var t=Es();return Ca(),la=t}var Ma,Oa={};var Ea;var Pa;var Ia,Na,La;function Aa(){if(La)return Na;La=1;var t=Ta();return function(){if(Ma)return Oa;Ma=1;var t=Re(),e=hi().f,i=t("metadata"),n=Function.prototype;void 0===n[i]&&e(n,i,{value:null})}(),Ea||(Ea=1,os()),Pa||(Pa=1,ls()),Ia||(Ia=1,Jn()("metadata")),Na=t}var Fa,Ra,Ya;function ja(){if(Ra)return Fa;Ra=1;var t=Bt(),e=z(),i=t("Symbol"),n=i.keyFor,o=e(i.prototype.valueOf);return Fa=i.isRegisteredSymbol||function(t){try{return void 0!==n(o(t))}catch(t){return!1}}}var Ha,za,Ga;function Wa(){if(za)return Ha;za=1;for(var t=Ne(),e=Bt(),i=z(),n=Zt(),o=Re(),r=e("Symbol"),s=r.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),l=i(r.prototype.valueOf),h=t("wks"),c=0,u=a(r),d=u.length;c<d;c++)try{var p=u[c];n(r[p])&&o(p)}catch(t){}return Ha=function(t){if(s&&s(t))return!0;try{for(var e=l(t),i=0,n=a(h),o=n.length;i<o;i++)if(h[n[i]]==e)return!0}catch(t){}return!1},Ha}var Ba;var Va;var Ua;var Xa;var qa;var Ka;var Za;var $a,Ja,Qa,tl,el;function il(){if(Qa)return Ja;Qa=1;var t=Aa();return Ya||(Ya=1,ui()({target:"Symbol",stat:!0},{isRegisteredSymbol:ja()})),Ga||(Ga=1,ui()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Wa()})),Ba||(Ba=1,Jn()("customMatcher")),Va||(Va=1,Jn()("observable")),Ua||(Ua=1,ui()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:ja()})),Xa||(Xa=1,ui()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Wa()})),qa||(qa=1,Jn()("matcher")),Ka||(Ka=1,Jn()("metadataKey")),Za||(Za=1,Jn()("patternMatch")),$a||($a=1,Jn()("replaceAll")),Ja=t}function nl(){return el?tl:(el=1,tl=il())}var ol,rl,sl,al,ll,hl,cl,ul,dl,pl,ml,fl,gl,vl,yl,bl=i(nl()),_l={};function wl(){if(rl)return ol;rl=1;var t=z(),e=Bi(),i=mi(),n=Ht(),o=t("".charAt),r=t("".charCodeAt),s=t("".slice),a=function(t){return function(a,l){var h,c,u=i(n(a)),d=e(l),p=u.length;return d<0||d>=p?t?"":void 0:(h=r(u,d))<55296||h>56319||d+1===p||(c=r(u,d+1))<56320||c>57343?t?o(u,d):h:t?s(u,d,d+2):c-56320+(h-55296<<10)+65536}};return ol={codeAt:a(!1),charAt:a(!0)}}function xl(){if(sl)return _l;sl=1;var t=wl().charAt,e=mi(),i=no(),n=xa(),o=Da(),r="String Iterator",s=i.set,a=i.getterFor(r);return n(String,"String",function(t){s(this,{type:r,string:e(t),index:0})},function(){var e,i=a(this),n=i.string,r=i.index;return r>=n.length?o(void 0,!0):(e=t(n,r),i.index+=e.length,o(e,!1))}),_l}function Dl(){if(ll)return al;ll=1;var t=pi(),e=Qt(),i=jt(),n=da(),o=Re()("iterator");return al=function(r){if(!i(r))return e(r,o)||e(r,"@@iterator")||n[t(r)]},al}function kl(){return cl?hl:(cl=1,ka(),xl(),hl=Dl())}function Sl(){if(dl)return ul;dl=1;var t=kl();return Ca(),ul=t}function Cl(){return ml?pl:(ml=1,pl=Sl())}function Tl(){return gl?fl:(gl=1,fl=Cl())}function Ml(){return yl?vl:(yl=1,vl=Tl())}var Ol,El,Pl,Il,Nl,Ll,Al,Fl,Rl,Yl,jl,Hl,zl,Gl,Wl,Bl=i(Ml()),Vl={};function Ul(){if(Pl)return El;Pl=1;var t=R(),e=Wt();return El=function(i,n){var o=e[i+"Prototype"],r=o&&o[n];if(r)return r;var s=t[i],a=s&&s.prototype;return a&&a[n]}}function Xl(){return Nl?Il:(Nl=1,function(){if(Ol)return Vl;Ol=1;var t=ui(),e=Le(),i=Xi(),n=Qr(),o=Jr();t({target:"Array",proto:!0,arity:1,forced:Y()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=e(this),s=i(r),a=arguments.length;o(s+a);for(var l=0;l<a;l++)r[s]=arguments[l],s++;return n(r,s),s}})}(),Il=Ul()("Array","push"))}function ql(){if(Al)return Ll;Al=1;var t=Vt(),e=Xl(),i=Array.prototype;return Ll=function(n){var o=n.push;return n===i||t(i,n)&&o===i.push?e:o},Ll}function Kl(){return Rl?Fl:(Rl=1,Fl=ql())}function Zl(){return jl?Yl:(jl=1,Yl=Kl())}function $l(){return zl?Hl:(zl=1,Hl=Zl())}function Jl(){return Wl?Gl:(Wl=1,Gl=$l())}var Ql=i(Jl());var th,eh,ih,nh,oh,rh,sh,ah,lh,hh,ch,uh,dh,ph={};function mh(){return ih?eh:(ih=1,function(){if(th)return ph;th=1;var t=ui(),e=oo(),i=so(),n=Gt(),o=Vi(),r=Xi(),s=zt(),a=ho(),l=Qr(),h=Re(),c=ts(),u=un(),d=c("slice"),p=h("species"),m=Array,f=Math.max;t({target:"Array",proto:!0,forced:!d},{slice:function(t,h){var c,d,g,v=s(this),y=r(v),b=o(t,y),_=o(void 0===h?y:h,y);if(e(v)&&(c=v.constructor,(i(c)&&(c===m||e(c.prototype))||n(c)&&null===(c=c[p]))&&(c=void 0),c===m||void 0===c))return u(v,b,_);for(d=new(void 0===c?m:c)(f(_-b,0)),g=0;b<_;b++,g++)b in v&&a(d,g,v[b]);return l(d,g),d}})}(),eh=Ul()("Array","slice"))}function fh(){if(oh)return nh;oh=1;var t=Vt(),e=mh(),i=Array.prototype;return nh=function(n){var o=n.slice;return n===i||t(i,n)&&o===i.slice?e:o},nh}function gh(){return sh?rh:(sh=1,rh=fh())}function vh(){return lh?ah:(lh=1,ah=gh())}function yh(){return ch?hh:(ch=1,hh=vh())}function bh(){return dh?uh:(dh=1,uh=yh())}var _h,wh,xh,Dh,kh,Sh,Ch,Th,Mh,Oh,Eh,Ph,Ih,Nh,Lh,Ah,Fh,Rh,Yh,jh,Hh,zh,Gh,Wh=i(bh()),Bh={};function Vh(){if(wh)return _h;wh=1;var t=$(),e=li(),i=Qt();return _h=function(n,o,r){var s,a;e(n);try{if(!(s=i(n,"return"))){if("throw"===o)throw r;return r}s=t(s,n)}catch(t){a=!0,s=t}if("throw"===o)throw r;if(a)throw s;return e(s),r},_h}function Uh(){if(Dh)return xh;Dh=1;var t=li(),e=Vh();return xh=function(i,n,o,r){try{return r?n(t(o)[0],o[1]):n(o)}catch(t){e(i,"throw",t)}},xh}function Xh(){if(Sh)return kh;Sh=1;var t=Re(),e=da(),i=t("iterator"),n=Array.prototype;return kh=function(t){return void 0!==t&&(e.Array===t||n[i]===t)},kh}function qh(){if(Th)return Ch;Th=1;var t=$(),e=Jt(),i=li(),n=$t(),o=Dl(),r=TypeError;return Ch=function(s,a){var l=arguments.length<2?o(s):a;if(e(l))return i(t(l,s));throw new r(n(s)+" is not iterable")},Ch}function Kh(){if(Oh)return Mh;Oh=1;var t=Be(),e=$(),i=Le(),n=Uh(),o=Xh(),r=so(),s=Xi(),a=ho(),l=Qr(),h=qh(),c=Dl(),u=Vh(),d=Array;return Mh=function(p){var m=r(this),f=arguments.length,g=f>1?arguments[1]:void 0,v=void 0!==g;v&&(g=t(g,f>2?arguments[2]:void 0));var y,b,_,w,x,D,k=i(p),S=c(k),C=0;if(!S||this===d&&o(S))for(y=s(k),b=m?new this(y):d(y);y>C;C++)D=v?g(k[C],C):k[C],a(b,C,D);else for(b=m?new this:[],x=(w=h(k,S)).next;!(_=e(x,w)).done;C++){D=v?n(w,g,[_.value,C],!0):_.value;try{a(b,C,D)}catch(t){u(w,"throw",t)}}return l(b,C),b},Mh}function Zh(){if(Ph)return Eh;Ph=1;var t=Re()("iterator"),e=!1;try{var i=0,n={next:function(){return{done:!!i++}},return:function(){e=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return Eh=function(i,n){try{if(!n&&!e)return!1}catch(t){return!1}var o=!1;try{var r={};r[t]=function(){return{next:function(){return{done:o=!0}}}},i(r)}catch(t){}return o},Eh}function $h(){return Lh?Nh:(Lh=1,xl(),function(){if(Ih)return Bh;Ih=1;var t=ui(),e=Kh();t({target:"Array",stat:!0,forced:!Zh()(function(t){Array.from(t)})},{from:e})}(),Nh=Wt().Array.from)}function Jh(){return Fh?Ah:(Fh=1,Ah=$h())}function Qh(){return Yh?Rh:(Yh=1,Rh=Jh())}function tc(){return Hh?jh:(Hh=1,jh=Qh())}function ec(){return Gh?zh:(Gh=1,zh=tc())}var ic=i(ec());function nc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function oc(t,e){return function(t){if(Wr(t))return t}(t)||function(t,e){var i=null==t?null:void 0!==bl&&Bl(t)||t["@@iterator"];if(null!=i){var n,o,r,s,a=[],l=!0,h=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(Ql(a).call(a,n.value),a.length!==e);l=!0);}catch(t){h=!0,o=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw o}}return a}}(t,e)||function(t,e){if(t){var i;if("string"==typeof t)return nc(t,e);var n=Wh(i={}.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?ic(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nc(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var rc,sc,ac,lc,hc,cc,uc,dc,pc,mc,fc={exports:{}},gc={};function vc(){if(rc)return gc;rc=1;var t=ui(),e=Z(),i=hi().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!e},{defineProperty:i}),gc}function yc(){if(sc)return fc.exports;sc=1,vc();var t=Wt().Object,e=fc.exports=function(e,i,n){return t.defineProperty(e,i,n)};return t.defineProperty.sham&&(e.sham=!0),fc.exports}function bc(){return lc?ac:(lc=1,ac=yc())}function _c(){return cc?hc:(cc=1,hc=bc())}function wc(){return dc?uc:(dc=1,uc=_c())}function xc(){return mc?pc:(mc=1,pc=wc())}var Dc,kc,Sc,Cc,Tc,Mc,Oc,Ec,Pc,Ic,Nc=i(xc());function Lc(){return kc?Dc:(kc=1,ka(),xl(),ps(),Dc=$n().f("iterator"))}function Ac(){if(Cc)return Sc;Cc=1;var t=Lc();return Ca(),Sc=t}function Fc(){return Mc?Tc:(Mc=1,Tc=Ac())}function Rc(){return Ec?Oc:(Ec=1,Oc=Fc())}function Yc(){return Ic?Pc:(Ic=1,Pc=Rc())}var jc,Hc,zc,Gc,Wc,Bc,Vc,Uc,Xc,qc,Kc=i(Yc());function Zc(t){return Zc="function"==typeof bl&&"symbol"==typeof Kc?function(t){return typeof t}:function(t){return t&&"function"==typeof bl&&t.constructor===bl&&t!==bl.prototype?"symbol":typeof t},Zc(t)}function $c(){return Hc?jc:(Hc=1,xs(),jc=$n().f("toPrimitive"))}function Jc(){return Gc?zc:(Gc=1,zc=$c())}function Qc(){return Bc?Wc:(Bc=1,Wc=Jc())}function tu(){return Uc?Vc:(Uc=1,Vc=Qc())}function eu(){return qc?Xc:(qc=1,Xc=tu())}var iu=i(eu());function nu(t){var e=function(t,e){if("object"!=Zc(t)||!t)return t;var i=t[iu];if(void 0!==i){var n=i.call(t,e);if("object"!=Zc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zc(e)?e:e+""}function ou(t,e,i){return(e=nu(e))in t?Nc(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var ru,su,au,lu,hu,cu,uu,du,pu,mu,fu,gu={};function vu(){if(su)return ru;su=1;var t=z(),e=Jt(),i=Gt(),n=Ae(),o=un(),r=j(),s=Function,a=t([].concat),l=t([].join),h={};return ru=r?s.bind:function(t){var r=e(this),c=r.prototype,u=o(arguments,1),d=function(){var e=a(u,o(arguments));return this instanceof d?function(t,e,i){if(!n(h,e)){for(var o=[],r=0;r<e;r++)o[r]="a["+r+"]";h[e]=s("C,a","return new C("+l(o,",")+")")}return h[e](t,i)}(r,e.length,e):r.apply(t,e)};return i(c)&&(d.prototype=c),d},ru}function yu(){return hu?lu:(hu=1,function(){if(au)return gu;au=1;var t=ui(),e=vu();t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e})}(),lu=Ul()("Function","bind"))}function bu(){if(uu)return cu;uu=1;var t=Vt(),e=yu(),i=Function.prototype;return cu=function(n){var o=n.bind;return n===i||t(i,n)&&o===i.bind?e:o},cu}function _u(){return pu?du:(pu=1,du=bu())}var wu,xu,Du,ku,Su,Cu,Tu,Mu,Ou,Eu,Pu,Iu,Nu,Lu,Au,Fu,Ru,Yu=i(fu?mu:(fu=1,mu=_u())),ju={};function Hu(){if(xu)return wu;xu=1;var t=Jt(),e=Le(),i=Yt(),n=Xi(),o=TypeError,r="Reduce of empty array with no initial value",s=function(s){return function(a,l,h,c){var u=e(a),d=i(u),p=n(u);if(t(l),0===p&&h<2)throw new o(r);var m=s?p-1:0,f=s?-1:1;if(h<2)for(;;){if(m in d){c=d[m],m+=f;break}if(m+=f,s?m<0:p<=m)throw new o(r)}for(;s?m>=0:p>m;m+=f)m in d&&(c=l(c,d[m],m,u));return c}};return wu={left:s(!1),right:s(!0)}}function zu(){if(ku)return Du;ku=1;var t=Y();return Du=function(e,i){var n=[][e];return!!n&&t(function(){n.call(null,i||function(){return 1},1)})}}function Gu(){if(Cu)return Su;Cu=1;var t=R(),e=Ut(),i=G(),n=function(t){return e.slice(0,t.length)===t};return Su=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Wu(){return Mu?Tu:(Mu=1,Tu="NODE"===Gu())}function Bu(){return Pu?Eu:(Pu=1,function(){if(Ou)return ju;Ou=1;var t=ui(),e=Hu().left,i=zu(),n=Xt();t({target:"Array",proto:!0,forced:!Wu()&&n>79&&n<83||!i("reduce")},{reduce:function(t){var i=arguments.length;return e(this,t,i,i>1?arguments[1]:void 0)}})}(),Eu=Ul()("Array","reduce"))}function Vu(){if(Nu)return Iu;Nu=1;var t=Vt(),e=Bu(),i=Array.prototype;return Iu=function(n){var o=n.reduce;return n===i||t(i,n)&&o===i.reduce?e:o},Iu}function Uu(){return Au?Lu:(Au=1,Lu=Vu())}var Xu,qu,Ku,Zu,$u,Ju,Qu,td,ed,id=i(Ru?Fu:(Ru=1,Fu=Uu())),nd={};function od(){return Ku?qu:(Ku=1,function(){if(Xu)return nd;Xu=1;var t=ui(),e=co().filter;t({target:"Array",proto:!0,forced:!ts()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),qu=Ul()("Array","filter"))}function rd(){if($u)return Zu;$u=1;var t=Vt(),e=od(),i=Array.prototype;return Zu=function(n){var o=n.filter;return n===i||t(i,n)&&o===i.filter?e:o},Zu}function sd(){return Qu?Ju:(Qu=1,Ju=rd())}var ad,ld,hd,cd,ud,dd,pd,md,fd,gd=i(ed?td:(ed=1,td=sd())),vd={};function yd(){return hd?ld:(hd=1,function(){if(ad)return vd;ad=1;var t=ui(),e=co().map;t({target:"Array",proto:!0,forced:!ts()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),ld=Ul()("Array","map"))}function bd(){if(ud)return cd;ud=1;var t=Vt(),e=yd(),i=Array.prototype;return cd=function(n){var o=n.map;return n===i||t(i,n)&&o===i.map?e:o},cd}function _d(){return pd?dd:(pd=1,dd=bd())}var wd,xd,Dd,kd=i(fd?md:(fd=1,md=_d())),Sd={};function Cd(){if(xd)return wd;xd=1;var t=oo(),e=Xi(),i=Jr(),n=Be(),o=ho(),r=function(s,a,l,h,c,u,d,p){for(var m,f,g=c,v=0,y=!!d&&n(d,p);v<h;)v in l&&(m=y?y(l[v],v,a):l[v],u>0&&t(m)?(f=e(m),g=r(s,a,m,f,g,u-1)-1):(i(g+1),o(s,g,m)),g++),v++;return g};return wd=r}var Td,Md,Od,Ed,Pd,Id,Nd,Ld,Ad;function Fd(){return Od?Md:(Od=1,function(){if(Dd)return Sd;Dd=1;var t=ui(),e=Cd(),i=Jt(),n=Le(),o=Xi(),r=lo();t({target:"Array",proto:!0},{flatMap:function(t){var s,a=n(this),l=o(a);return i(t),s=r(a,0),e(s,a,a,l,0,1,t,arguments.length>1?arguments[1]:void 0),s}})}(),Td||(Td=1,ua()("flatMap")),Md=Ul()("Array","flatMap"))}function Rd(){if(Pd)return Ed;Pd=1;var t=Vt(),e=Fd(),i=Array.prototype;return Ed=function(n){var o=n.flatMap;return n===i||t(i,n)&&o===i.flatMap?e:o},Ed}function Yd(){return Nd?Id:(Nd=1,Id=Rd())}var jd,Hd,zd,Gd,Wd,Bd,Vd,Ud,Xd,qd,Kd,Zd=i(Ad?Ld:(Ad=1,Ld=Yd())),$d={};function Jd(){if(Hd)return jd;Hd=1;var t=co().forEach,e=zu()("forEach");return jd=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},jd}function Qd(){return Wd?Gd:(Wd=1,function(){if(zd)return $d;zd=1;var t=ui(),e=Jd();t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e})}(),Gd=Ul()("Array","forEach"))}function tp(){return Vd?Bd:(Vd=1,Bd=Qd())}function ep(){if(Xd)return Ud;Xd=1;var t=pi(),e=Ae(),i=Vt(),n=tp(),o=Array.prototype,r={DOMTokenList:!0,NodeList:!0};return Ud=function(s){var a=s.forEach;return s===o||i(o,s)&&a===o.forEach||e(r,t(s))?n:a},Ud}var ip,np,op=i(Kd?qd:(Kd=1,qd=ep()));var rp,sp,ap,lp,hp,cp,up,dp=i(np?ip:(np=1,ip=Ac()));function pp(){if(ap)return sp;ap=1,rp||(rp=1,ui()({target:"Object",stat:!0,sham:!Z()},{create:nn()}));var t=Wt().Object;return sp=function(e,i){return t.create(e,i)}}function mp(){return hp?lp:(hp=1,lp=pp())}var fp,gp,vp,yp,bp,_p,wp,xp,Dp,kp,Sp,Cp,Tp,Mp,Op,Ep,Pp,Ip,Np,Lp,Ap,Fp=i(up?cp:(up=1,cp=mp())),Rp={},Yp={exports:{}};function jp(){return gp?fp:(gp=1,fp=Y()(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))}function Hp(){if(yp)return vp;yp=1;var t=Y(),e=Gt(),i=G(),n=jp(),o=Object.isExtensible,r=t(function(){});return vp=r||n?function(t){return!!e(t)&&((!n||"ArrayBuffer"!==i(t))&&(!o||o(t)))}:o,vp}function zp(){return _p?bp:(_p=1,bp=!Y()(function(){return Object.isExtensible(Object.preventExtensions({}))}))}function Gp(){if(wp)return Yp.exports;wp=1;var t=ui(),e=z(),i=Ki(),n=Gt(),o=Ae(),r=hi().f,s=sn(),a=dn(),l=Hp(),h=Fe(),c=zp(),u=!1,d=h("meta"),p=0,m=function(t){r(t,d,{value:{objectID:"O"+p++,weakData:{}}})},f=Yp.exports={enable:function(){f.enable=function(){},u=!0;var i=s.f,n=e([].splice),o={};o[d]=1,i(o).length&&(s.f=function(t){for(var e=i(t),o=0,r=e.length;o<r;o++)if(e[o]===d){n(e,o,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!l(t))return"F";if(!e)return"E";m(t)}return t[d].objectID},getWeakData:function(t,e){if(!o(t,d)){if(!l(t))return!0;if(!e)return!1;m(t)}return t[d].weakData},onFreeze:function(t){return c&&u&&l(t)&&!o(t,d)&&m(t),t}};return i[d]=!0,Yp.exports}function Wp(){if(Dp)return xp;Dp=1;var t=Be(),e=$(),i=li(),n=$t(),o=Xh(),r=Xi(),s=Vt(),a=qh(),l=Dl(),h=Vh(),c=TypeError,u=function(t,e){this.stopped=t,this.result=e},d=u.prototype;return xp=function(p,m,f){var g,v,y,b,_,w,x,D=f&&f.that,k=!(!f||!f.AS_ENTRIES),S=!(!f||!f.IS_RECORD),C=!(!f||!f.IS_ITERATOR),T=!(!f||!f.INTERRUPTED),M=t(m,D),O=function(t){var e=g;return g=void 0,e&&h(e,"normal"),new u(!0,t)},E=function(t){return k?(i(t),T?M(t[0],t[1],O):M(t[0],t[1])):T?M(t,O):M(t)};if(S)g=p.iterator;else if(C)g=p;else{if(!(v=l(p)))throw new c(n(p)+" is not iterable");if(o(v)){for(y=0,b=r(p);b>y;y++)if((_=E(p[y]))&&s(d,_))return _;return new u(!1)}g=a(p,v)}for(w=S?p.next:g.next;!(x=e(w,g)).done;){var P=x.value;try{_=E(P)}catch(t){if(!g)throw t;h(g,"throw",t)}if("object"==typeof _&&_&&s(d,_))return _}return new u(!1)},xp}function Bp(){if(Sp)return kp;Sp=1;var t=Vt(),e=TypeError;return kp=function(i,n){if(t(n,i))return i;throw new e("Incorrect invocation")},kp}function Vp(){if(Tp)return Cp;Tp=1;var t=ui(),e=R(),i=Gp(),n=$(),o=Y(),r=ci(),s=Wp(),a=Bp(),l=B(),h=Gt(),c=jt(),u=eo(),d=hi().f,p=co().forEach,m=Z(),f=no(),g=f.set,v=f.getterFor;return Cp=function(f,y,b){var _,w=-1!==f.indexOf("Map"),x=-1!==f.indexOf("Weak"),D=w?"set":"add",k=e[f],S=k&&k.prototype,C={};if(m&&l(k)&&(x||S.forEach&&!o(function(){(new k).entries().next()}))){var T=(_=y(function(t,e){g(a(t,T),{type:f,collection:new k}),c(e)||s(e,t[D],{that:t,AS_ENTRIES:w})})).prototype,M=v(f);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"===t||"set"===t;!(t in S)||x&&"clear"===t||r(T,t,function(i,o){var r=this,s=M(r).collection;if(!e&&x&&!h(i))return"get"===t&&void 0;var a=s[t]("forEach"===t?function(t,e){n(i,o,t,e,r)}:0===i?0:i,o);return e?r:a})}),x||d(T,"size",{configurable:!0,get:function(){return M(this).collection.size}})}else _=b.getConstructor(y,f,w,D),i.enable();return u(_,f,!1,!0),C[f]=_,t({global:!0,forced:!0},C),x||b.setStrong(_,f,w),_}}function Up(){if(Op)return Mp;Op=1;var t=_n();return Mp=function(e,i,n){for(var o in i)n&&n.unsafe&&e[o]?e[o]=i[o]:t(e,o,i[o],n);return e}}function Xp(){if(Pp)return Ep;Pp=1;var t=Bt(),e=wn(),i=Re(),n=Z(),o=i("species");return Ep=function(i){var r=t(i);n&&r&&!r[o]&&e(r,o,{configurable:!0,get:function(){return this}})}}function qp(){if(Np)return Ip;Np=1;var t=nn(),e=wn(),i=Up(),n=Be(),o=Bp(),r=jt(),s=Wp(),a=xa(),l=Da(),h=Xp(),c=Z(),u=Gp().fastKey,d=no(),p=d.set,m=d.getterFor;return Ip={getConstructor:function(a,l,h,d){var f=a(function(e,i){o(e,g),p(e,{type:l,index:t(null),first:null,last:null,size:0}),c||(e.size=0),r(i)||s(i,e[d],{that:e,AS_ENTRIES:h})}),g=f.prototype,v=m(l),y=function(t,e,i){var n,o,r=v(t),s=b(t,e);return s?s.value=i:(r.last=s={index:o=u(e,!0),key:e,value:i,previous:n=r.last,next:null,removed:!1},r.first||(r.first=s),n&&(n.next=s),c?r.size++:t.size++,"F"!==o&&(r.index[o]=s)),t},b=function(t,e){var i,n=v(t),o=u(e);if("F"!==o)return n.index[o];for(i=n.first;i;i=i.next)if(i.key===e)return i};return i(g,{clear:function(){for(var e=v(this),i=e.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=null),i=i.next;e.first=e.last=null,e.index=t(null),c?e.size=0:this.size=0},delete:function(t){var e=this,i=v(e),n=b(e,t);if(n){var o=n.next,r=n.previous;delete i.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),i.first===n&&(i.first=o),i.last===n&&(i.last=r),c?i.size--:e.size--}return!!n},forEach:function(t){for(var e,i=v(this),o=n(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(g,h?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),c&&e(g,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,i){var n=e+" Iterator",o=m(e),r=m(n);a(t,e,function(t,e){p(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=r(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)?l("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=null,l(void 0,!0))},i?"entries":"values",!i,!0),h(e)}},Ip}function Kp(){return Ap||(Ap=1,Lp||(Lp=1,Vp()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qp()))),Rp}var Zp,$p,Jp,Qp,tm,em={};function im(){return $p||($p=1,Zp=function(t,e){return 1===e?function(e,i){return e[t](i)}:function(e,i,n){return e[t](i,n)}}),Zp}function nm(){if(Qp)return Jp;Qp=1;var t=Bt(),e=im(),i=t("Map");return Jp={Map:i,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:i.prototype}}var om,rm={};var sm,am,lm,hm,cm,um,dm,pm={};function mm(){return lm?am:(lm=1,ka(),Kp(),function(){if(tm)return em;tm=1;var t=ui(),e=z(),i=Jt(),n=Ht(),o=Wp(),r=nm(),s=Ee(),a=Y(),l=r.Map,h=r.has,c=r.get,u=r.set,d=e([].push),p=s||a(function(){return 1!==l.groupBy("ab",function(t){return t}).get("a").length});t({target:"Map",stat:!0,forced:s||p},{groupBy:function(t,e){n(t),i(e);var r=new l,s=0;return o(t,function(t){var i=e(t,s++);h(r,i)?d(c(r,i),t):u(r,i,[t])}),r}})}(),function(){if(om)return rm;om=1;var t=ui(),e=nm(),i=Ee(),n=e.get,o=e.has,r=e.set;t({target:"Map",proto:!0,real:!0,forced:i},{getOrInsert:function(t,e){return o(this,t)?n(this,t):(r(this,t,e),e)}})}(),function(){if(sm)return pm;sm=1;var t=ui(),e=Jt(),i=nm(),n=Ee(),o=i.get,r=i.has,s=i.set;t({target:"Map",proto:!0,real:!0,forced:n},{getOrInsertComputed:function(t,i){var n=r(this,t);if(e(i),n)return o(this,t);0===t&&1/t==-1/0&&(t=0);var a=i(t);return s(this,t,a),a}})}(),xl(),am=Wt().Map)}function fm(){if(cm)return hm;cm=1;var t=mm();return Ca(),hm=t}var gm,vm,ym=i(dm?um:(dm=1,um=fm())),bm={};function _m(){return vm||(vm=1,gm||(gm=1,Vp()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qp()))),bm}var wm,xm,Dm,km,Sm,Cm,Tm,Mm,Om,Em,Pm,Im,Nm,Lm,Am,Fm,Rm,Ym,jm,Hm,zm,Gm={};function Wm(){if(xm)return wm;xm=1;var t=$t(),e=TypeError;return wm=function(i){if("object"==typeof i&&"size"in i&&"has"in i&&"add"in i&&"delete"in i&&"keys"in i)return i;throw new e(t(i)+" is not a set")},wm}function Bm(){if(km)return Dm;km=1;var t=Bt(),e=im(),i=t("Set"),n=i.prototype;return Dm={Set:i,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:n}}function Vm(){if(Cm)return Sm;Cm=1;var t=$();return Sm=function(e,i,n){for(var o,r,s=n?e:e.iterator,a=e.next;!(o=t(a,s)).done;)if(void 0!==(r=i(o.value)))return r},Sm}function Um(){if(Mm)return Tm;Mm=1;var t=Vm();return Tm=function(e,i,n){return n?t(e.keys(),i,!0):e.forEach(i)},Tm}function Xm(){if(Em)return Om;Em=1;var t=Bm(),e=Um(),i=t.Set,n=t.add;return Om=function(t){var o=new i;return e(t,function(t){n(o,t)}),o},Om}function qm(){return Im||(Im=1,Pm=function(t){return t.size}),Pm}function Km(){return Lm?Nm:(Lm=1,Nm=function(t){return{iterator:t,next:t.next,done:!1}})}function Zm(){if(Fm)return Am;Fm=1;var t=Jt(),e=li(),i=$(),n=Bi(),o=Km(),r="Invalid size",s=RangeError,a=TypeError,l=Math.max,h=function(e,i){this.set=e,this.size=l(i,0),this.has=t(e.has),this.keys=t(e.keys)};return h.prototype={getIterator:function(){return o(e(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},Am=function(t){e(t);var i=+t.size;if(i!=i)throw new a(r);var o=n(i);if(o<0)throw new s(r);return new h(t,o)}}function $m(){if(Ym)return Rm;Ym=1;var t=Wm(),e=Bm(),i=Xm(),n=qm(),o=Zm(),r=Um(),s=Vm(),a=e.has,l=e.remove;return Rm=function(e){var h=t(this),c=o(e),u=i(h);return n(u)<=c.size?r(u,function(t){c.includes(t)&&l(u,t)}):s(c.getIterator(),function(t){a(u,t)&&l(u,t)}),u}}function Jm(){return Hm?jm:(Hm=1,jm=function(){return!1})}var Qm,tf,ef,nf={};function of(){if(tf)return Qm;tf=1;var t=Wm(),e=Bm(),i=qm(),n=Zm(),o=Um(),r=Vm(),s=e.Set,a=e.add,l=e.has;return Qm=function(e){var h=t(this),c=n(e),u=new s;return i(h)>c.size?r(c.getIterator(),function(t){l(h,t)&&a(u,t)}):o(h,function(t){c.includes(t)&&a(u,t)}),u}}var rf,sf,af,lf={};function hf(){if(sf)return rf;sf=1;var t=Wm(),e=Bm().has,i=qm(),n=Zm(),o=Um(),r=Vm(),s=Vh();return rf=function(a){var l=t(this),h=n(a);if(i(l)<=h.size)return!1!==o(l,function(t){if(h.includes(t))return!1},!0);var c=h.getIterator();return!1!==r(c,function(t){if(e(l,t))return s(c.iterator,"normal",!1)})},rf}var cf,uf,df,pf={};function mf(){if(uf)return cf;uf=1;var t=Wm(),e=qm(),i=Um(),n=Zm();return cf=function(o){var r=t(this),s=n(o);return!(e(r)>s.size)&&!1!==i(r,function(t){if(!s.includes(t))return!1},!0)}}var ff,gf,vf,yf={};function bf(){if(gf)return ff;gf=1;var t=Wm(),e=Bm().has,i=qm(),n=Zm(),o=Vm(),r=Vh();return ff=function(s){var a=t(this),l=n(s);if(i(a)<l.size)return!1;var h=l.getIterator();return!1!==o(h,function(t){if(!e(a,t))return r(h.iterator,"normal",!1)})},ff}var _f,wf,xf,Df,kf,Sf={};function Cf(){if(wf)return _f;wf=1;var t=Wm(),e=Bm(),i=Xm(),n=Zm(),o=Vm(),r=e.add,s=e.has,a=e.remove;return _f=function(e){var l=t(this),h=n(e).getIterator(),c=i(l);return o(h,function(t){s(l,t)?a(c,t):r(c,t)}),c}}function Tf(){return Df?xf:(Df=1,xf=function(t){try{var e=new Set,i={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},n=e[t](i);return 1===n.size&&4===n.values().next().value}catch(t){return!1}})}var Mf,Of,Ef,Pf,If,Nf,Lf,Af,Ff,Rf={};function Yf(){if(Of)return Mf;Of=1;var t=Wm(),e=Bm().add,i=Xm(),n=Zm(),o=Vm();return Mf=function(r){var s=t(this),a=n(r).getIterator(),l=i(s);return o(a,function(t){e(l,t)}),l},Mf}function jf(){return If?Pf:(If=1,ka(),_m(),function(){if(zm)return Gm;zm=1;var t=ui(),e=$m(),i=Y();t({target:"Set",proto:!0,real:!0,forced:!Jm()("difference",function(t){return 0===t.size})||i(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var i=t++>1;return e.has(1)&&e.clear(),{done:i,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size})},{difference:e})}(),function(){if(ef)return nf;ef=1;var t=ui(),e=Y(),i=of();t({target:"Set",proto:!0,real:!0,forced:!Jm()("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||e(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:i})}(),function(){if(af)return lf;af=1;var t=ui(),e=hf();t({target:"Set",proto:!0,real:!0,forced:!Jm()("isDisjointFrom",function(t){return!t})},{isDisjointFrom:e})}(),function(){if(df)return pf;df=1;var t=ui(),e=mf();t({target:"Set",proto:!0,real:!0,forced:!Jm()("isSubsetOf",function(t){return t})},{isSubsetOf:e})}(),function(){if(vf)return yf;vf=1;var t=ui(),e=bf();t({target:"Set",proto:!0,real:!0,forced:!Jm()("isSupersetOf",function(t){return!t})},{isSupersetOf:e})}(),function(){if(kf)return Sf;kf=1;var t=ui(),e=Cf(),i=Tf();t({target:"Set",proto:!0,real:!0,forced:!Jm()("symmetricDifference")||!i("symmetricDifference")},{symmetricDifference:e})}(),function(){if(Ef)return Rf;Ef=1;var t=ui(),e=Yf(),i=Tf();t({target:"Set",proto:!0,real:!0,forced:!Jm()("union")||!i("union")},{union:e})}(),xl(),Pf=Wt().Set)}function Hf(){if(Lf)return Nf;Lf=1;var t=jf();return Ca(),Nf=t}var zf,Gf,Wf,Bf,Vf,Uf,Xf,qf,Kf,Zf,$f,Jf,Qf=i(Ff?Af:(Ff=1,Af=Hf()));function tg(){return Gf?zf:(Gf=1,ka(),xl(),zf=qh())}function eg(){if(Bf)return Wf;Bf=1;var t=tg();return Ca(),Wf=t}function ig(){return Uf?Vf:(Uf=1,Vf=eg())}function ng(){return qf?Xf:(qf=1,Xf=ig())}function og(){return Zf?Kf:(Zf=1,Kf=ng())}var rg,sg,ag,lg,hg,cg=i(Jf?$f:(Jf=1,$f=og())),ug={},dg={};function pg(){if(sg)return rg;sg=1;var t=TypeError;return rg=function(e,i){if(e<i)throw new t("Not enough arguments");return e}}function mg(){if(lg)return ag;lg=1;var t,e=R(),i=H(),n=B(),o=Gu(),r=Ut(),s=un(),a=pg(),l=e.Function,h=/MSIE .\./.test(r)||"BUN"===o&&((t=e.Bun.version.split(".")).length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2]));return ag=function(t,e){var o=e?2:1;return h?function(r,h){var c=a(arguments.length,1)>o,u=n(r)?r:l(r),d=c?s(arguments,o):[],p=c?function(){i(u,this,d)}:u;return e?t(p,h):t(p)}:t},ag}var fg,gg,vg,yg,bg,_g,wg={};function xg(){return gg||(gg=1,function(){if(hg)return dg;hg=1;var t=ui(),e=R(),i=mg()(e.setInterval,!0);t({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i})}(),function(){if(fg)return wg;fg=1;var t=ui(),e=R(),i=mg()(e.setTimeout,!0);t({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i})}()),ug}function Dg(){return yg?vg:(yg=1,xg(),vg=Wt().setTimeout)}var kg,Sg,Cg,Tg,Mg,Og,Eg,Pg,Ig,Ng,Lg,Ag=i(_g?bg:(_g=1,bg=Dg())),Fg={};function Rg(){if(Sg)return kg;Sg=1;var t=$t(),e=TypeError;return kg=function(i,n){if(!delete i[n])throw new e("Cannot delete property "+t(n)+" of "+t(i))}}function Yg(){return Mg?Tg:(Mg=1,function(){if(Cg)return Fg;Cg=1;var t=ui(),e=Le(),i=Vi(),n=Bi(),o=Xi(),r=Qr(),s=Jr(),a=lo(),l=ho(),h=Rg(),c=ts()("splice"),u=Math.max,d=Math.min;t({target:"Array",proto:!0,forced:!c},{splice:function(t,c){var p,m,f,g,v,y,b=e(this),_=o(b),w=i(t,_),x=arguments.length;for(0===x?p=m=0:1===x?(p=0,m=_-w):(p=x-2,m=d(u(n(c),0),_-w)),s(_+p-m),f=a(b,m),g=0;g<m;g++)(v=w+g)in b&&l(f,g,b[v]);if(r(f,m),p<m){for(g=w;g<_-m;g++)y=g+p,(v=g+m)in b?b[y]=b[v]:h(b,y);for(g=_;g>_-m+p;g--)h(b,g-1)}else if(p>m)for(g=_-m;g>w;g--)y=g+p-1,(v=g+m-1)in b?b[y]=b[v]:h(b,y);for(g=0;g<p;g++)b[g+w]=arguments[g+2];return r(b,_-m+p),f}})}(),Tg=Ul()("Array","splice"))}function jg(){if(Eg)return Og;Eg=1;var t=Vt(),e=Yg(),i=Array.prototype;return Og=function(n){var o=n.splice;return n===i||t(i,n)&&o===i.splice?e:o},Og}function Hg(){return Ig?Pg:(Ig=1,Pg=jg())}var zg,Gg,Wg=i(Lg?Ng:(Lg=1,Ng=Hg()));var Bg,Vg,Ug,Xg,qg,Kg,Zg,$g,Jg,Qg=i(Gg?zg:(Gg=1,zg=jr())),tv={};function ev(){return Ug?Vg:(Ug=1,function(){if(Bg)return tv;Bg=1;var t=ui(),e=co().some;t({target:"Array",proto:!0,forced:!zu()("some")},{some:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),Vg=Ul()("Array","some"))}function iv(){if(qg)return Xg;qg=1;var t=Vt(),e=ev(),i=Array.prototype;return Xg=function(n){var o=n.some;return n===i||t(i,n)&&o===i.some?e:o},Xg}function nv(){return Zg?Kg:(Zg=1,Kg=iv())}var ov,rv,sv,av,lv,hv,cv,uv,dv,pv=i(Jg?$g:(Jg=1,$g=nv())),mv={};function fv(){if(rv)return ov;rv=1;var t=Z(),e=z(),i=$(),n=Y(),o=Ji(),r=bn(),s=Ft(),a=Le(),l=Yt(),h=Object.assign,c=Object.defineProperty,u=e([].concat);return ov=!h||n(function(){if(t&&1!==h({b:1},h(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},i={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(t){i[t]=t}),7!==h({},e)[n]||o(h({},i)).join("")!==r})?function(e,n){for(var h=a(e),c=arguments.length,d=1,p=r.f,m=s.f;c>d;)for(var f,g=l(arguments[d++]),v=p?u(o(g),p(g)):o(g),y=v.length,b=0;y>b;)f=v[b++],t&&!i(m,g,f)||(h[f]=g[f]);return h}:h,ov}function gv(){return lv?av:(lv=1,function(){if(sv)return mv;sv=1;var t=ui(),e=fv();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}(),av=Wt().Object.assign)}function vv(){return cv?hv:(cv=1,hv=gv())}var yv,bv,_v,wv,xv,Dv,kv,Sv,Cv=i(dv?uv:(dv=1,uv=vv()));function Tv(){return bv?yv:(bv=1,es(),yv=Ul()("Array","concat"))}function Mv(){if(wv)return _v;wv=1;var t=Vt(),e=Tv(),i=Array.prototype;return _v=function(n){var o=n.concat;return n===i||t(i,n)&&o===i.concat?e:o},_v}function Ov(){return Dv?xv:(Dv=1,xv=Mv())}var Ev,Pv,Iv,Nv,Lv,Av,Fv,Rv,Yv=i(Sv?kv:(Sv=1,kv=Ov()));function jv(){return Pv?Ev:(Pv=1,ka(),Ev=Ul()("Array","keys"))}function Hv(){return Nv?Iv:(Nv=1,Iv=jv())}function zv(){if(Av)return Lv;Av=1,Ca();var t=pi(),e=Ae(),i=Vt(),n=Hv(),o=Array.prototype,r={DOMTokenList:!0,NodeList:!0};return Lv=function(s){var a=s.keys;return s===o||i(o,s)&&a===o.keys||e(r,t(s))?n:a},Lv}var Gv,Wv,Bv,Vv,Uv,Xv,qv,Kv=i(Rv?Fv:(Rv=1,Fv=zv())),Zv={};function $v(){return Bv?Wv:(Bv=1,function(){if(Gv)return Zv;Gv=1;var t=ui(),e=Le(),i=Ji();t({target:"Object",stat:!0,forced:Y()(function(){i(1)})},{keys:function(t){return i(e(t))}})}(),Wv=Wt().Object.keys)}function Jv(){return Uv?Vv:(Uv=1,Vv=$v())}var Qv,ty,ey,iy,ny,oy,ry,sy,ay,ly,hy,cy,uy,dy,py,my,fy,gy=i(qv?Xv:(qv=1,Xv=Jv())),vy={};function yy(){if(ty)return Qv;ty=1;var t=un(),e=Math.floor,i=function(n,o){var r=n.length;if(r<8)for(var s,a,l=1;l<r;){for(a=l,s=n[l];a&&o(n[a-1],s)>0;)n[a]=n[--a];a!==l++&&(n[a]=s)}else for(var h=e(r/2),c=i(t(n,0,h),o),u=i(t(n,h),o),d=c.length,p=u.length,m=0,f=0;m<d||f<p;)n[m+f]=m<d&&f<p?o(c[m],u[f])<=0?c[m++]:u[f++]:m<d?c[m++]:u[f++];return n};return Qv=i}function by(){if(iy)return ey;iy=1;var t=Ut().match(/firefox\/(\d+)/i);return ey=!!t&&+t[1]}function _y(){return oy?ny:(oy=1,ny=/MSIE|Trident/.test(Ut()))}function wy(){if(sy)return ry;sy=1;var t=Ut().match(/AppleWebKit\/(\d+)\./);return ry=!!t&&+t[1]}function xy(){if(ay)return vy;ay=1;var t=ui(),e=z(),i=Jt(),n=Le(),o=Xi(),r=Rg(),s=mi(),a=Y(),l=yy(),h=zu(),c=by(),u=_y(),d=Xt(),p=wy(),m=[],f=e(m.sort),g=e(m.push),v=a(function(){m.sort(void 0)}),y=a(function(){m.sort(null)}),b=h("sort"),_=!a(function(){if(d)return d<70;if(!(c&&c>3)){if(u)return!0;if(p)return p<603;var t,e,i,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)m.push({k:e+n,v:i})}for(m.sort(function(t,e){return e.v-t.v}),n=0;n<m.length;n++)e=m[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});return t({target:"Array",proto:!0,forced:v||!y||!b||!_},{sort:function(t){void 0!==t&&i(t);var e=n(this);if(_)return void 0===t?f(e):f(e,t);var a,h,c=[],u=o(e);for(h=0;h<u;h++)h in e&&g(c,e[h]);for(l(c,function(t){return function(e,i){if(void 0===i)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,i)||0;var n=s(e),o=s(i);return n===o?0:n>o?1:-1}}(t)),a=o(c),h=0;h<a;)e[h]=c[h++];for(;h<u;)r(e,h++);return e}}),vy}function Dy(){return hy?ly:(hy=1,xy(),ly=Ul()("Array","sort"))}function ky(){if(uy)return cy;uy=1;var t=Vt(),e=Dy(),i=Array.prototype;return cy=function(n){var o=n.sort;return n===i||t(i,n)&&o===i.sort?e:o},cy}function Sy(){return py?dy:(py=1,dy=ky())}var Cy,Ty,My,Oy,Ey,Py,Iy,Ny,Ly=i(fy?my:(fy=1,my=Sy()));function Ay(){return Ty?Cy:(Ty=1,ka(),Cy=Ul()("Array","values"))}function Fy(){return Oy?My:(Oy=1,My=Ay())}function Ry(){if(Py)return Ey;Py=1,Ca();var t=pi(),e=Ae(),i=Vt(),n=Fy(),o=Array.prototype,r={DOMTokenList:!0,NodeList:!0};return Ey=function(s){var a=s.values;return s===o||i(o,s)&&a===o.values||e(r,t(s))?n:a},Ey}var Yy,jy,Hy,zy,Gy,Wy,By,Vy,Uy,Xy,qy,Ky,Zy,$y=i(Ny?Iy:(Ny=1,Iy=Ry())),Jy={};function Qy(){if(jy)return Yy;jy=1;var t=Bi(),e=mi(),i=Ht(),n=RangeError,o=Math.floor;return Yy=function(r){var s=e(i(this)),a="",l=t(r);if(l<0||l===1/0)throw new n("Wrong number of repetitions");for(;l>0;(l=o(l/2))&&(s+=s))l%2&&(a+=s);return a}}function tb(){if(zy)return Hy;zy=1;var t=z(),e=Ui(),i=mi(),n=Qy(),o=Ht(),r=t(n),s=t("".slice),a=Math.ceil,l=function(t){return function(n,l,h){var c=i(o(n)),u=e(l),d=c.length;if(u<=d)return c;var p,m,f=void 0===h?" ":i(h);return""===f?c:((m=r(f,a((p=u-d)/f.length))).length>p&&(m=s(m,0,p)),t?c+m:m+c)}};return Hy={start:l(!1),end:l(!0)}}function eb(){if(Wy)return Gy;Wy=1;var t=z(),e=Y(),i=tb().start,n=RangeError,o=isFinite,r=Math.abs,s=Date.prototype,a=s.toISOString,l=t(s.getTime),h=t(s.getUTCDate),c=t(s.getUTCFullYear),u=t(s.getUTCHours),d=t(s.getUTCMilliseconds),p=t(s.getUTCMinutes),m=t(s.getUTCMonth),f=t(s.getUTCSeconds);return Gy=e(function(){return"0385-07-25T07:06:39.999Z"!==a.call(new Date(-50000000000001))})||!e(function(){a.call(new Date(NaN))})?function(){if(!o(l(this)))throw new n("Invalid time value");var t=this,e=c(t),s=d(t),a=e<0?"-":e>9999?"+":"";return a+i(r(e),a?6:4,0)+"-"+i(m(t)+1,2,0)+"-"+i(h(t),2,0)+"T"+i(u(t),2,0)+":"+i(p(t),2,0)+":"+i(f(t),2,0)+"."+i(s,3,0)+"Z"}:a,Gy}function ib(){if(Uy)return Vy;Uy=1,function(){if(By)return Jy;By=1;var t=ui(),e=$(),i=Le(),n=Ye(),o=eb(),r=G();t({target:"Date",proto:!0,forced:Y()(function(){return null!==new Date(NaN).toJSON()||1!==e(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(t){var s=i(this),a=n(s,"number");return"number"!=typeof a||isFinite(a)?"toISOString"in s||"Date"!==r(s)?s.toISOString():e(o,s):null}})}(),Eo();var t=Wt(),e=H();return t.JSON||(t.JSON={stringify:JSON.stringify}),Vy=function(i,n,o){return e(t.JSON.stringify,null,arguments)},Vy}function nb(){return qy?Xy:(qy=1,Xy=ib())}var ob,rb,sb,ab,lb,hb,cb,ub,db=i(Zy?Ky:(Zy=1,Ky=nb()));function pb(){return rb?ob:(rb=1,ka(),ob=Ul()("Array","entries"))}function mb(){return ab?sb:(ab=1,sb=pb())}function fb(){if(hb)return lb;hb=1,Ca();var t=pi(),e=Ae(),i=Vt(),n=mb(),o=Array.prototype,r={DOMTokenList:!0,NodeList:!0};return lb=function(s){var a=s.entries;return s===o||i(o,s)&&a===o.entries||e(r,t(s))?n:a},lb}var gb,vb,yb,bb,_b,wb,xb,Db=i(ub?cb:(ub=1,cb=fb()));function kb(){return yb?vb:(yb=1,gb||(gb=1,ui()({target:"Reflect",stat:!0},{ownKeys:ur()})),vb=Wt().Reflect.ownKeys)}function Sb(){return _b?bb:(_b=1,bb=kb())}var Cb,Tb,Mb=i(xb?wb:(xb=1,wb=Sb()));var Ob,Eb,Pb=i(Tb?Cb:(Tb=1,Cb=bc()));var Ib,Nb,Lb=i(Eb?Ob:(Eb=1,Ob=Ta()));var Ab,Fb,Rb,Yb,jb,Hb,zb,Gb=i(Nb?Ib:(Nb=1,Ib=gh())),Wb={};function Bb(){return Rb?Fb:(Rb=1,function(){if(Ab)return Wb;Ab=1;var t=ui(),e=Date,i=z()(e.prototype.getTime);t({target:"Date",stat:!0},{now:function(){return i(new e)}})}(),Fb=Wt().Date.now)}function Vb(){return jb?Yb:(jb=1,Yb=Bb())}var Ub,Xb,qb,Kb=i(zb?Hb:(zb=1,Hb=Vb())),Zb={};function $b(){return qb?Xb:(qb=1,function(){if(Ub)return Zb;Ub=1;var t=ui(),e=qi().includes,i=Y(),n=ua(),o=i(function(){return!Array(1).includes()}),r=i(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:o||r},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}(),Xb=Ul()("Array","includes"))}var Jb,Qb,t_,e_,i_,n_,o_,r_,s_,a_,l_,h_,c_,u_,d_,p_={};function m_(){if(Qb)return Jb;Qb=1;var t=Gt(),e=G(),i=Re()("match");return Jb=function(n){var o;return t(n)&&(void 0!==(o=n[i])?!!o:"RegExp"===e(n))},Jb}function f_(){if(e_)return t_;e_=1;var t=m_(),e=TypeError;return t_=function(i){if(t(i))throw new e("The method doesn't accept regular expressions");return i},t_}function g_(){if(n_)return i_;n_=1;var t=Re()("match");return i_=function(e){var i=/./;try{"/./"[e](i)}catch(n){try{return i[t]=!1,"/./"[e](i)}catch(t){}}return!1}}function v_(){return s_?r_:(s_=1,function(){if(o_)return p_;o_=1;var t=ui(),e=z(),i=f_(),n=Ht(),o=mi(),r=g_(),s=e("".indexOf);t({target:"String",proto:!0,forced:!r("includes")},{includes:function(t){return!!~s(o(n(this)),o(i(t)),arguments.length>1?arguments[1]:void 0)}})}(),r_=Ul()("String","includes"))}function y_(){if(l_)return a_;l_=1;var t=Vt(),e=$b(),i=v_(),n=Array.prototype,o=String.prototype;return a_=function(r){var s=r.includes;return r===n||t(n,r)&&s===n.includes?e:"string"==typeof r||r===o||t(o,r)&&s===o.includes?i:s},a_}function b_(){return c_?h_:(c_=1,h_=y_())}var __,w_,x_,D_,k_,S_,C_,T_=i(d_?u_:(d_=1,u_=b_())),M_={};function O_(){return x_?w_:(x_=1,function(){if(__)return M_;__=1;var t=ui(),e=Y(),i=Le(),n=fa(),o=ma();t({target:"Object",stat:!0,forced:e(function(){n(1)}),sham:!o},{getPrototypeOf:function(t){return n(i(t))}})}(),w_=Wt().Object.getPrototypeOf)}function E_(){return k_?D_:(k_=1,D_=O_())}var P_,I_,N_,L_,A_,F_,R_,Y_,j_,H_=i(C_?S_:(C_=1,S_=E_())),z_={};function G_(){if(I_)return P_;I_=1;var t=Z(),e=Y(),i=z(),n=fa(),o=Ji(),r=zt(),s=i(Ft().f),a=i([].push),l=t&&e(function(){var t=Object.create(null);return t[2]=2,!s(t,2)}),h=function(e){return function(i){for(var h,c=r(i),u=o(c),d=l&&null===n(c),p=u.length,m=0,f=[];p>m;)h=u[m++],t&&!(d?h in c:s(c,h))||a(f,e?[h,c[h]]:c[h]);return f}};return P_={entries:h(!0),values:h(!1)}}function W_(){return A_?L_:(A_=1,function(){if(N_)return z_;N_=1;var t=ui(),e=G_().values;t({target:"Object",stat:!0},{values:function(t){return e(t)}})}(),L_=Wt().Object.values)}function B_(){return R_?F_:(R_=1,F_=W_())}var V_,U_,X_,q_,K_,Z_,$_,J_,Q_,tw,ew,iw,nw,ow=i(j_?Y_:(j_=1,Y_=B_())),rw={};function sw(){return U_?V_:(U_=1,V_="\t\n\v\f\r                 \u2028\u2029\ufeff")}function aw(){if(q_)return X_;q_=1;var t=z(),e=Ht(),i=mi(),n=sw(),o=t("".replace),r=RegExp("^["+n+"]+"),s=RegExp("(^|[^"+n+"])["+n+"]+$"),a=function(t){return function(n){var a=i(e(n));return 1&t&&(a=o(a,r,"")),2&t&&(a=o(a,s,"$1")),a}};return X_={start:a(1),end:a(2),trim:a(3)}}function lw(){if(Z_)return K_;Z_=1;var t=R(),e=Y(),i=z(),n=mi(),o=aw().trim,r=sw(),s=t.parseInt,a=t.Symbol,l=a&&a.iterator,h=/^[+-]?0x/i,c=i(h.exec),u=8!==s(r+"08")||22!==s(r+"0x16")||l&&!e(function(){s(Object(l))});return K_=u?function(t,e){var i=o(n(t));return s(i,e>>>0||(c(h,i)?16:10))}:s,K_}function hw(){return Q_?J_:(Q_=1,function(){if($_)return rw;$_=1;var t=ui(),e=lw();t({global:!0,forced:parseInt!==e},{parseInt:e})}(),J_=Wt().parseInt)}function cw(){return ew?tw:(ew=1,tw=hw())}var uw,dw,pw,mw,fw,gw,vw,yw,bw,_w=i(nw?iw:(nw=1,iw=cw())),ww={};function xw(){return pw?dw:(pw=1,function(){if(uw)return ww;uw=1;var t=ui(),e=W(),i=qi().indexOf,n=zu(),o=e([].indexOf),r=!!o&&1/o([1],1,-0)<0;t({target:"Array",proto:!0,forced:r||!n("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return r?o(this,t,e)||0:i(this,t,e)}})}(),dw=Ul()("Array","indexOf"))}function Dw(){if(fw)return mw;fw=1;var t=Vt(),e=xw(),i=Array.prototype;return mw=function(n){var o=n.indexOf;return n===i||t(i,n)&&o===i.indexOf?e:o},mw}function kw(){return vw?gw:(vw=1,gw=Dw())}var Sw,Cw,Tw,Mw,Ow,Ew,Pw,Iw=i(bw?yw:(bw=1,yw=kw())),Nw={};function Lw(){return Tw?Cw:(Tw=1,function(){if(Sw)return Nw;Sw=1;var t=ui(),e=G_().entries;t({target:"Object",stat:!0},{entries:function(t){return e(t)}})}(),Cw=Wt().Object.entries)}function Aw(){return Ow?Mw:(Ow=1,Mw=Lw())}var Fw,Rw,Yw,jw,Hw,zw,Gw,Ww,Bw,Vw,Uw,Xw=i(Pw?Ew:(Pw=1,Ew=Aw())),qw={};function Kw(){if(Rw)return Fw;Rw=1;var t=Le(),e=Vi(),i=Xi();return Fw=function(n){for(var o=t(this),r=i(o),s=arguments.length,a=e(s>1?arguments[1]:void 0,r),l=s>2?arguments[2]:void 0,h=void 0===l?r:e(l,r);h>a;)o[a++]=n;return o},Fw}function Zw(){return Hw?jw:(Hw=1,function(){if(Yw)return qw;Yw=1;var t=ui(),e=Kw(),i=ua();t({target:"Array",proto:!0},{fill:e}),i("fill")}(),jw=Ul()("Array","fill"))}function $w(){if(Gw)return zw;Gw=1;var t=Vt(),e=Zw(),i=Array.prototype;return zw=function(n){var o=n.fill;return n===i||t(i,n)&&o===i.fill?e:o},zw}function Jw(){return Bw?Ww:(Bw=1,Ww=$w())}var Qw,tx=i(Uw?Vw:(Uw=1,Vw=Jw())),ex={exports:{}};var ix,nx=(Qw||(Qw=1,function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.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 o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}(ex)),ex.exports),ox=i(nx);
/*! 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 rx(){return rx=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},rx.apply(this,arguments)}function sx(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ax(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}ix="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 o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign;var lx,hx=ix,cx=["","webkit","Moz","MS","ms","o"],ux="undefined"==typeof document?{style:{}}:document.createElement("div"),dx=Math.round,px=Math.abs,mx=Date.now;function fx(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r<cx.length;){if((n=(i=cx[r])?i+o:e)in t)return n;r++}}lx="undefined"==typeof window?{}:window;var gx=fx(ux.style,"touchAction"),vx=void 0!==gx;var yx="compute",bx="auto",_x="manipulation",wx="none",xx="pan-x",Dx="pan-y",kx=function(){if(!vx)return!1;var t={},e=lx.CSS&&lx.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){return t[i]=!e||lx.CSS.supports("touch-action",i)}),t}(),Sx="ontouchstart"in lx,Cx=void 0!==fx(lx,"PointerEvent"),Tx=Sx&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Mx="touch",Ox="mouse",Ex=16,Px=24,Ix=["x","y"],Nx=["clientX","clientY"];function Lx(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 Ax(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Fx(t,e){return t.indexOf(e)>-1}var Rx=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===yx&&(t=this.compute()),vx&&this.manager.element.style&&kx[t]&&(this.manager.element.style[gx]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Lx(this.manager.recognizers,function(e){Ax(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(Fx(t,wx))return wx;var e=Fx(t,xx),i=Fx(t,Dx);return e&&i?wx:e||i?e?xx:Dx:Fx(t,_x)?_x:bx}(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,o=Fx(n,wx)&&!kx[wx],r=Fx(n,Dx)&&!kx[Dx],s=Fx(n,xx)&&!kx[xx];if(o){var a=1===t.pointers.length,l=t.distance<2,h=t.deltaTime<250;if(a&&l&&h)return}if(!s||!r)return o||r&&6&i||s&&i&Px?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Yx(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function jx(t){var e=t.length;if(1===e)return{x:dx(t[0].clientX),y:dx(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:dx(i/e),y:dx(n/e)}}function Hx(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:dx(t.pointers[i].clientX),clientY:dx(t.pointers[i].clientY)},i++;return{timeStamp:mx(),pointers:e,center:jx(e),deltaX:t.deltaX,deltaY:t.deltaY}}function zx(t,e,i){i||(i=Ix);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function Gx(t,e,i){i||(i=Ix);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function Wx(t,e){return t===e?1:px(t)>=px(e)?t<0?2:4:e<0?8:Ex}function Bx(t,e,i){return{x:e/t||0,y:i/t||0}}function Vx(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Hx(e)),o>1&&!i.firstMultiple?i.firstMultiple=Hx(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,l=e.center=jx(n);e.timeStamp=mx(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=Gx(a,l),e.distance=zx(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=Wx(e.deltaX,e.deltaY);var h,c,u=Bx(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=px(u.x)>px(u.y)?u.x:u.y,e.scale=s?(h=s.pointers,zx((c=n)[0],c[1],Nx)/zx(h[0],h[1],Nx)):1,e.rotation=s?function(t,e){return Gx(e[1],e[0],Nx)+Gx(t[1],t[0],Nx)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var l=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,c=Bx(a,l,h);n=c.x,o=c.y,i=px(c.x)>px(c.y)?c.x:c.y,r=Wx(l,h),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var d,p=t.element,m=e.srcEvent;Yx(d=m.composedPath?m.composedPath()[0]:m.path?m.path[0]:m.target,p)&&(p=d),e.target=p}function Ux(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=1&e&&n-o===0,s=12&e&&n-o===0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,Vx(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function Xx(t){return t.trim().split(/\s+/g)}function qx(t,e,i){Lx(Xx(e),function(e){t.addEventListener(e,i,!1)})}function Kx(t,e,i){Lx(Xx(e),function(e){t.removeEventListener(e,i,!1)})}function Zx(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var $x=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){Ax(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&qx(this.element,this.evEl,this.domHandler),this.evTarget&&qx(this.target,this.evTarget,this.domHandler),this.evWin&&qx(Zx(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Kx(this.element,this.evEl,this.domHandler),this.evTarget&&Kx(this.target,this.evTarget,this.domHandler),this.evWin&&Kx(Zx(this.element),this.evWin,this.domHandler)},t}();function Jx(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 Qx={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},tD={2:Mx,3:"pen",4:Ox,5:"kinect"},eD="pointerdown",iD="pointermove pointerup pointercancel";lx.MSPointerEvent&&!lx.PointerEvent&&(eD="MSPointerDown",iD="MSPointerMove MSPointerUp MSPointerCancel");var nD=function(t){function e(){var i,n=e.prototype;return n.evEl=eD,n.evWin=iD,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return sx(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=Qx[n],r=tD[t.pointerType]||t.pointerType,s=r===Mx,a=Jx(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))},e}($x);function oD(t){return Array.prototype.slice.call(t,0)}function rD(t,e,i){for(var n=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];Jx(o,s)<0&&n.push(t[r]),o[r]=s,r++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}var sD={touchstart:1,touchmove:2,touchend:4,touchcancel:8},aD=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return sx(e,t),e.prototype.handler=function(t){var e=sD[t.type],i=lD.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Mx,srcEvent:t})},e}($x);function lD(t,e){var i,n,o=oD(t.touches),r=this.targetIds;if(3&e&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=oD(t.changedTouches),a=[],l=this.target;if(n=o.filter(function(t){return Yx(t.target,l)}),1===e)for(i=0;i<n.length;)r[n[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&e&&delete r[s[i].identifier],i++;return a.length?[rD(n.concat(a),"identifier",!0),a]:void 0}var hD={mousedown:1,mousemove:2,mouseup:4},cD=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 sx(e,t),e.prototype.handler=function(t){var e=hD[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:Ox,srcEvent:t}))},e}($x);function uD(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 dD(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,uD.call(this,e)):12&t&&uD.call(this,e)}function pD(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),s=Math.abs(i-o.y);if(r<=25&&s<=25)return!0}return!1}var mD=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var o=i.pointerType===Mx,r=i.pointerType===Ox;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(o)dD.call(ax(ax(n)),e,i);else if(r&&pD.call(ax(ax(n)),i))return;n.callback(t,e,i)}},n.touch=new aD(n.manager,n.handler),n.mouse=new cD(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return sx(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}($x)}();function fD(t,e,i){return!!Array.isArray(t)&&(Lx(t,i[e],i),!0)}var gD=32,vD=1;function yD(t,e){var i=e.manager;return i?i.get(t):t}function bD(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var _D=function(){function t(t){void 0===t&&(t={}),this.options=rx({enable:!0},t),this.id=vD++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return hx(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(fD(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=yD(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return fD(t,"dropRecognizeWith",this)||(t=yD(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(fD(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Jx(e,t=yD(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(fD(t,"dropRequireFailure",this))return this;t=yD(t,this);var e=Jx(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+bD(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+bD(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=gD},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=hx({},t);if(!Ax(this.options.enable,[this,e]))return this.reset(),void(this.state=gD);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}(),wD=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,rx({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}sx(e,t);var i=e.prototype;return i.getTouchAction=function(){return[_x]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(o&&r&&n){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||zx(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 gD},i.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=gD},this.options.interval),gD},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}(_D),xD=function(t){function e(e){return void 0===e&&(e={}),t.call(this,rx({pointers:1},e))||this}sx(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,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:gD},e}(_D);function DD(t){return t===Ex?"down":8===t?"up":2===t?"left":4===t?"right":""}var kD=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,rx({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}sx(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(Dx),t&Px&&e.push(xx),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!==this.pX,n=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:Ex,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},i.attrTest=function(t){return xD.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=DD(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(xD),SD=function(t){function e(e){return void 0===e&&(e={}),t.call(this,rx({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}sx(e,t);var i=e.prototype;return i.getTouchAction=function(){return kD.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:n&Px&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&px(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=DD(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(xD),CD=function(t){function e(e){return void 0===e&&(e={}),t.call(this,rx({event:"pinch",threshold:0,pointers:2},e))||this}sx(e,t);var i=e.prototype;return i.getTouchAction=function(){return[wx]},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}(xD),TD=function(t){function e(e){return void 0===e&&(e={}),t.call(this,rx({event:"rotate",threshold:0,pointers:2},e))||this}sx(e,t);var i=e.prototype;return i.getTouchAction=function(){return[wx]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(xD),MD=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,rx({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}sx(e,t);var i=e.prototype;return i.getTouchAction=function(){return[bx]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime>i.time;if(this._input=t,!o||!n||12&t.eventType&&!r)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 gD},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=mx(),this.manager.emit(this.options.event,this._input)))},e}(_D),OD={domEvents:!1,touchAction:yx,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ED=[[TD,{enable:!1}],[CD,{enable:!1},["rotate"]],[SD,{direction:6}],[kD,{direction:6},["swipe"]],[wD],[wD,{event:"doubletap",taps:2},["tap"]],[MD]];function PD(t,e){var i,n=t.element;n.style&&(Lx(t.options.cssProps,function(o,r){i=fx(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={}))}var ID=function(){function t(t,e){var i,n=this;this.options=hx({},OD,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||(Cx?nD:Tx?aD:Sx?mD:cD))(i,Ux),this.touchAction=new Rx(this,this.options.touchAction),PD(this,!0),Lx(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 hx(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,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!==o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(e.curRecognizer=i,o=i),r++}},e.get=function(t){if(t instanceof _D)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(fD(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(fD(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=Jx(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 Lx(Xx(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 Lx(Xx(t),function(t){e?i[t]&&i[t].splice(Jx(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&&PD(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),ND={touchstart:1,touchmove:2,touchend:4,touchcancel:8},LD=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 sx(e,t),e.prototype.handler=function(t){var e=ND[t.type];if(1===e&&(this.started=!0),this.started){var i=AD.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:Mx,srcEvent:t})}},e}($x);function AD(t,e){var i=oD(t.touches),n=oD(t.changedTouches);return 12&e&&(i=rD(i.concat(n),"identifier",!0)),[i,n]}function FD(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",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,i),t.apply(this,arguments)}}var RD=FD(function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&void 0===t[n[o]])&&(t[n[o]]=e[n[o]]),o++;return t},"extend","Use `assign`."),YD=FD(function(t,e){return RD(t,e,!0)},"merge","Use `assign`.");function jD(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&hx(n,i)}function HD(t,e){return function(){return t.apply(e,arguments)}}var zD=function(){var t=function(t,e){return void 0===e&&(e={}),new ID(t,rx({recognizers:ED.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=Ex,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=Px,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=Ex,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=gD,t.Manager=ID,t.Input=$x,t.TouchAction=Rx,t.TouchInput=aD,t.MouseInput=cD,t.PointerEventInput=nD,t.TouchMouseInput=mD,t.SingleTouchInput=LD,t.Recognizer=_D,t.AttrRecognizer=xD,t.Tap=wD,t.Pan=kD,t.Swipe=SD,t.Pinch=CD,t.Rotate=TD,t.Press=MD,t.on=qx,t.off=Kx,t.each=Lx,t.merge=YD,t.extend=RD,t.bindFn=HD,t.assign=hx,t.inherit=jD,t.bindFn=HD,t.prefixed=fx,t.toArray=oD,t.inArray=Jx,t.uniqueArray=rD,t.splitStr=Xx,t.boolOrFn=Ax,t.hasParent=Yx,t.addEventListeners=qx,t.removeEventListeners=Kx,t.defaults=hx({},OD,{preset:ED}),t}();zD.defaults;const GD=Lb("DELETE");function WD(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return BD({},t,...i)}function BD(){const t=VD(...arguments);return XD(t),t}function VD(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<2)return e[0];if(e.length>2)return VD(BD(e[0],e[1]),...Gb(e).call(e,2));const n=e[0],o=e[1];if(n instanceof Date&&o instanceof Date)return n.setTime(o.getTime()),n;for(const t of Mb(o))Object.prototype.propertyIsEnumerable.call(o,t)&&(o[t]===GD?delete n[t]:null===n[t]||null===o[t]||"object"!=typeof n[t]||"object"!=typeof o[t]||Qg(n[t])||Qg(o[t])?n[t]=UD(o[t]):n[t]=VD(n[t],o[t]));return n}function UD(t){return Qg(t)?kd(t).call(t,t=>UD(t)):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):VD({},t):t}function XD(t){for(const e of gy(t))t[e]===GD?delete t[e]:"object"==typeof t[e]&&null!==t[e]&&XD(t[e])}const qD="undefined"!=typeof window?window.Hammer||zD:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function KD(t){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const i=qD(this._dom.overlay);i.on("tap",Yu(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{i.destroy()});const n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];op(n).call(n,t=>{i.on(t,t=>{t.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=e=>{(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=t=>{("key"in t?"Escape"===t.key:27===t.keyCode)&&this.deactivate()}}ox(KD.prototype),KD.current=null,KD.prototype.destroy=function(){this.deactivate();for(const e of Wg(t=this._cleanupQueue).call(t,0).toReversed()){var t;e()}},KD.prototype.activate=function(){KD.current&&KD.current.deactivate(),KD.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},KD.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},KD.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};const ZD=/^\/?Date\((-?\d+)/i,$D=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,JD=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,QD=/^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,tk=/^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 ek(t){return t instanceof Number||"number"==typeof t}function ik(t){return t instanceof String||"string"==typeof t}function nk(t){return"object"==typeof t&&null!==t}function ok(t,e,i,n){let o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}const rk=Cv;function sk(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===i)if("object"==typeof e[r]&&null!==e[r]&&H_(e[r])===Object.prototype)void 0===t[r]?t[r]=sk({},e[r],i):"object"==typeof t[r]&&null!==t[r]&&H_(t[r])===Object.prototype?sk(t[r],e[r],i):ok(t,e,r,n);else if(Qg(e[r])){var o;t[r]=Gb(o=e[r]).call(o)}else ok(t,e,r,n);return t}function ak(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Qg(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function lk(t,e){return[...t,e]}function hk(t){return Gb(t).call(t)}const ck=ow;const uk={asBoolean:(t,e)=>("function"==typeof t&&(t=t()),null!=t?0!=t:e||null),asNumber:(t,e)=>("function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null),asString:(t,e)=>("function"==typeof t&&(t=t()),null!=t?String(t):e||null),asSize:(t,e)=>("function"==typeof t&&(t=t()),ik(t)?t:ek(t)?t+"px":e||null),asElement:(t,e)=>("function"==typeof t&&(t=t()),t||e||null)};function dk(t){let e;switch(t.length){case 3:case 4:return e=JD.exec(t),e?{r:_w(e[1]+e[1],16),g:_w(e[2]+e[2],16),b:_w(e[3]+e[3],16)}:null;case 6:case 7:return e=$D.exec(t),e?{r:_w(e[1],16),g:_w(e[2],16),b:_w(e[3],16)}:null;default:return null}}function pk(t,e,i){var n;return"#"+Gb(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function mk(t,e,i){t/=255,e/=255,i/=255;const n=Math.min(t,Math.min(e,i)),o=Math.max(t,Math.max(e,i));if(n===o)return{h:0,s:0,v:n};return{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(o-n))/360,s:(o-n)/o,v:o}}function fk(t){const e=document.createElement("div"),i={};e.style.cssText=t;for(let t=0;t<e.style.length;++t)i[e.style[t]]=e.style.getPropertyValue(e.style[t]);return i}function gk(t,e,i){let n,o,r;const s=Math.floor(6*t),a=6*t-s,l=i*(1-e),h=i*(1-a*e),c=i*(1-(1-a)*e);switch(s%6){case 0:n=i,o=c,r=l;break;case 1:n=h,o=i,r=l;break;case 2:n=l,o=i,r=c;break;case 3:n=l,o=h,r=i;break;case 4:n=c,o=l,r=i;break;case 5:n=i,o=l,r=h}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*r)}}function vk(t,e,i){const n=gk(t,e,i);return pk(n.r,n.g,n.b)}function yk(t){const e=dk(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return mk(e.r,e.g,e.b)}function bk(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function _k(t){return QD.test(t)}function wk(t){return tk.test(t)}function xk(t){if(null===t||"object"!=typeof t)return null;if(t instanceof Element)return t;const e=Fp(t);for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==typeof t[i]&&(e[i]=xk(t[i]));return e}const Dk={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};const kk={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"};let Sk=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.pixelRatio=t,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=()=>{},this.closeCallback=()=>{},this._create()}insertTo(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}setCloseCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}_isColorString(t){if("string"==typeof t)return kk[t]}setColor(t){let e,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"===t)return;const n=this._isColorString(t);if(void 0!==n&&(t=n),!0===ik(t)){if(!0===_k(t)){const i=t.substr(4).substr(0,t.length-5).split(",");e={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===wk(t)){const i=t.substr(5).substr(0,t.length-6).split(",");e={r:i[0],g:i[1],b:i[2],a:i[3]}}else if(!0===bk(t)){const i=dk(t);e={r:i.r,g:i.g,b:i.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){const i=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:i}}if(void 0===e)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: "+db(t));this._setColor(e,i)}show(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Cv({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ag(()=>{void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Cv({},t)),this.color=t;const e=mk(t.r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),r=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}_setOpacity(t){this.color.a=t/100,this._updatePicker(this.color)}_setBrightness(t){const e=mk(this.color.r,this.color.g,this.color.b);e.v=t/100;const i=gk(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color;const e=mk(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);const n=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),tx(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+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){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){const t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}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);const o=this;this.opacityRange.onchange=function(){o._setOpacity(this.value)},this.opacityRange.oninput=function(){o._setOpacity(this.value)},this.brightnessRange.onchange=function(){o._setBrightness(this.value)},this.brightnessRange.oninput=function(){o._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Yu(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Yu(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Yu(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Yu(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)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new qD(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",t=>{t.isFirst&&this._moveSelector(t)}),this.hammer.on("tap",t=>{this._moveSelector(t)}),this.hammer.on("panstart",t=>{this._moveSelector(t)}),this.hammer.on("panmove",t=>{this._moveSelector(t)}),this.hammer.on("panend",t=>{this._moveSelector(t)})}_generateHueCircle(){if(!1===this.generated){const 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);const e=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;let n,o,r,s;t.clearRect(0,0,e,i),this.centerCoordinates={x:.5*e,y:.5*i},this.r=.49*e;const a=2*Math.PI/360,l=1/360,h=1/this.r;let c;for(r=0;r<360;r++)for(s=0;s<this.r;s++)n=this.centerCoordinates.x+s*Math.sin(a*r),o=this.centerCoordinates.y+s*Math.cos(a*r),c=gk(r*l,s*h,1),t.fillStyle="rgb("+c.r+","+c.g+","+c.b+")",t.fillRect(n-.5,o-.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,e,i)}this.generated=!0}_moveSelector(t){const e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,o=.5*this.colorPickerDiv.clientHeight,r=.5*this.colorPickerDiv.clientWidth,s=i-r,a=n-o,l=Math.atan2(s,a),h=.98*Math.min(Math.sqrt(s*s+a*a),r),c=Math.cos(l)*h+o,u=Math.sin(l)*h+r;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=u-.5*this.colorPickerSelector.clientWidth+"px";let d=l/(2*Math.PI);d=d<0?d+1:d;const p=h/this.r,m=mk(this.color.r,this.color.g,this.color.b);m.h=d,m.s=p;const f=gk(m.h,m.s,m.v);f.a=this.color.a,this.color=f,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+")"}};function Ck(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);{const t=document.createElement(e[0]);return t.appendChild(Ck(...Gb(e).call(e,1))),t}}let Tk,Mk=!1;const Ok="background: #FFeeee; color: #dd0000";const Ek=KD,Pk=Sk,Ik=class{constructor(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!1;this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Cv(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Sk(n),this.wrapper=void 0}setOptions(t){if(void 0!==t){this.popupHistory={},this._removePopup();let e=!0;if("string"==typeof t)this.options.filter=t;else if(Qg(t))this.options.filter=t.join();else if("object"==typeof t){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==gd(t)&&(this.options.filter=gd(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===gd(this.options)&&(e=!1),this.options.enabled=e}this._clean()}setModuleOptions(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const t=gd(this.options);let e=0,i=!1;for(const n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?(i=t(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):!0!==t&&-1===Iw(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()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}_clean(){for(let 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()}_getValue(t){let e=this.moduleOptions;for(let i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}_makeItem(t){if(!0===this.allowCreation){const o=document.createElement("div");o.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return op(i).call(i,t=>{o.appendChild(t)}),this.domElements.push(o),this.domElements.length}return 0}_makeHeader(t){const e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}_makeLabel(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===i){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(Ck("i","b",t))}else n.innerText=t+":";return n}_makeDropdown(t,e,i){const n=document.createElement("select");n.className="vis-configuration vis-config-select";let o=0;void 0!==e&&-1!==Iw(t).call(t,e)&&(o=Iw(t).call(t,e));for(let e=0;e<t.length;e++){const i=document.createElement("option");i.value=t[e],e===o&&(i.selected="selected"),i.innerText=t[e],n.appendChild(i)}const r=this;n.onchange=function(){r._update(this.value,i)};const s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,n)}_makeRange(t,e,i){const n=t[0],o=t[1],r=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=o,a.max=r}catch(t){}a.step=s;let l="",h=0;if(void 0!==e){const t=1.2;e<0&&e*t<o?(a.min=Math.ceil(e*t),h=a.min,l="range increased"):e/t<o&&(a.min=Math.ceil(e/t),h=a.min,l="range increased"),e*t>r&&1!==r&&(a.max=Math.ceil(e*t),h=a.max,l="range increased"),a.value=e}else a.value=n;const c=document.createElement("input");c.className="vis-configuration vis-config-rangeinput",c.value=a.value;const u=this;a.onchange=function(){c.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){c.value=this.value};const d=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,d,a,c);""!==l&&this.popupHistory[p]!==h&&(this.popupHistory[p]=h,this._setupPopup(l,p))}_makeButton(){if(!0===this.options.showButton){const t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=()=>{this._printOptions()},t.onmouseover=()=>{t.className="vis-configuration vis-config-button hover"},t.onmouseout=()=>{t.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(t)}}_setupPopup(t,e){if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){const i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerText=t,i.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:e}}}_removePopup(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(void 0!==this.popupDiv.html){const t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Ag(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Ag(()=>{this._removePopup()},1800)}}_makeCheckbox(t,e,i){const 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"==typeof t?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));const o=this;n.onchange=function(){o._update(this.checked,i)};const r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}_makeTextInput(t,e,i){const 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});const o=this;n.onchange=function(){o._update(this.value,i)};const r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}_makeColorField(t,e,i){const n=t[1],o=document.createElement("div");"none"!==(e=void 0===e?n:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?n:e,o.onclick=()=>{this._showColorPicker(e,o,i)};const r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,o)}_showColorPicker(t,e,i){e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(t=>{const n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=n,this._update(n,i)}),this.colorPicker.setCloseCallback(()=>{e.onclick=()=>{this._showColorPicker(t,e,i)}})}_handleObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1;const o=gd(this.options);let r=!1;for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){n=!0;const a=t[s],l=lk(e,s);if("function"==typeof o&&(n=o(s,e),!1===n&&!Qg(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i)),!1!==n){r=!0;const t=this._getValue(l);if(Qg(a))this._handleArray(a,t,l);else if("string"==typeof a)this._makeTextInput(a,t,l);else if("boolean"==typeof a)this._makeCheckbox(a,t,l);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){const t=lk(l,"enabled"),e=this._getValue(t);if(!0===e){const t=this._makeLabel(s,l,!0);this._makeItem(l,t),r=this._handleObject(a,l)||r}else this._makeCheckbox(a,e,l)}else{const t=this._makeLabel(s,l,!0);this._makeItem(l,t),r=this._handleObject(a,l)||r}}else console.error("dont know how to handle",a,s,l)}}return r}_handleArray(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)}))}_update(t,e){const 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)}_constructOptions(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(let i=0;i<e.length;i++)"global"!==e[i]&&(void 0===n[e[i]]&&(n[e[i]]={}),i!==e.length-1?n=n[e[i]]:n[e[i]]=t);return i}_printOptions(){const t=this.getOptions();for(;this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Ck("pre","const options = "+db(t,null,2)))}getOptions(){const t={};for(let e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}},Nk=qD,Lk=class{constructor(t,e){this.container=t,this.overflowMethod=e||"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)}setPosition(t,e){this.x=_w(t),this.y=_w(e)}setText(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}show(t){if(void 0===t&&(t=!0),!0===t){const t=this.frame.clientHeight,e=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,n=this.frame.parentNode.clientWidth;let o=0,r=0;if("flip"==this.overflowMethod){let i=!1,s=!0;this.y-t<this.padding&&(s=!1),this.x+e>n-this.padding&&(i=!0),o=i?this.x-e:this.x,r=s?this.y-t:this.y}else r=this.y-t,r+t+this.padding>i&&(r=i-t-this.padding),r<this.padding&&(r=this.padding),o=this.x,o+e+this.padding>n&&(o=n-e-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=r+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}},Ak=Ok,Fk=class t{static validate(e,i,n){Mk=!1,Tk=i;let o=i;return void 0!==n&&(o=i[n]),t.parse(e,o,[]),Mk}static parse(e,i,n){for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.check(o,e,i,n)}static check(e,i,n,o){if(void 0===n[e]&&void 0===n.__any__)return void t.getSuggestion(e,n,o);let r=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(r="__any__",s="object"===t.getType(i[e]));let a=n[r];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,r,a,o)}static checkFields(e,i,n,o,r,s){const a=function(i){console.error("%c"+i+t.printLocation(s,e),Ok)},l=t.getType(i[e]),h=r[l];void 0!==h?"array"===t.getType(h)&&-1===Iw(h).call(h,i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(h)+' not "'+i[e]+'". '),Mk=!0):"object"===l&&"__any__"!==o&&(s=lk(s,e),t.parse(i[e],n[o],s)):void 0===r.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(gy(r))+". Received ["+l+'] "'+i[e]+'"'),Mk=!0)}static getType(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Qg(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}static getSuggestion(e,i,n){const o=t.findInOptions(e,i,n,!1),r=t.findInOptions(e,Tk,[],!0);let s;s=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':r.distance<=4&&o.distance>r.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(r.path,r.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(gy(i))+t.printLocation(n,e),console.error('%cUnknown option detected: "'+e+'"'+s,Ok),Mk=!0}static findInOptions(e,i,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=1e9,s="",a=[];const l=e.toLowerCase();let h;for(const u in i){let d;if(void 0!==i[u].__type__&&!0===o){const o=t.findInOptions(e,i[u],lk(n,u));r>o.distance&&(s=o.closestMatch,a=o.path,r=o.distance,h=o.indexMatch)}else{var c;-1!==Iw(c=u.toLowerCase()).call(c,l)&&(h=u),d=t.levenshteinDistance(e,u),r>d&&(s=u,a=hk(n),r=d)}}return{closestMatch:s,path:a,distance:r,indexMatch:h}}static printLocation(t,e){let i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n";for(let e=0;e<t.length;e++){for(let t=0;t<e+1;t++)i+="  ";i+=t[e]+": {\n"}for(let e=0;e<t.length+1;e++)i+="  ";i+=e+"\n";for(let e=0;e<t.length+1;e++){for(let n=0;n<t.length-e;n++)i+="  ";i+="}\n"}return i+"\n\n"}static print(t){return db(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const i=[];let n,o;for(n=0;n<=e.length;n++)i[n]=[n];for(o=0;o<=t.length;o++)i[0][o]=o;for(n=1;n<=e.length;n++)for(o=1;o<=t.length;o++)e.charAt(n-1)==t.charAt(o-1)?i[n][o]=i[n-1][o-1]:i[n][o]=Math.min(i[n-1][o-1]+1,Math.min(i[n][o-1]+1,i[n-1][o]+1));return i[e.length][t.length]}};var Rk=Object.freeze({__proto__:null,Activator:Ek,Alea:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){let e=function(){const t=function(){let t=4022871197;return function(e){const i=e.toString();for(let e=0;e<i.length;e++){t+=i.charCodeAt(e);let n=.02519603282416938*t;t=n>>>0,n-=t,n*=t,t=n>>>0,n-=t,t+=4294967296*n}return 2.3283064365386963e-10*(t>>>0)}}();let e=t(" "),i=t(" "),n=t(" ");for(let o=0;o<arguments.length;o++)e-=t(o<0||arguments.length<=o?void 0:arguments[o]),e<0&&(e+=1),i-=t(o<0||arguments.length<=o?void 0:arguments[o]),i<0&&(i+=1),n-=t(o<0||arguments.length<=o?void 0:arguments[o]),n<0&&(n+=1);return[e,i,n]}(t),i=oc(e,3),n=i[0],o=i[1],r=i[2],s=1;const a=()=>{const t=2091639*n+2.3283064365386963e-10*s;return n=o,o=r,r=t-(s=0|t)};return a.uint32=()=>4294967296*a(),a.fract53=()=>a()+11102230246251565e-32*(2097152*a()|0),a.algorithm="Alea",a.seed=t,a.version="0.9",a}(e.length?e:[Kb()])},ColorPicker:Pk,Configurator:Ik,DELETE:GD,HSVToHex:vk,HSVToRGB:gk,Hammer:Nk,Popup:Lk,RGBToHSV:mk,RGBToHex:pk,VALIDATOR_PRINT_STYLE:Ak,Validator:Fk,addClassName:function(t,e){let i=t.className.split(" ");const n=e.split(" ");i=Yv(i).call(i,gd(n).call(n,function(t){return!T_(i).call(i,t)})),t.className=i.join(" ")},addCssText:function(t,e){const i=fk(e);for(const e of Xw(i)){var n=oc(e,2);const i=n[0],o=n[1];t.style.setProperty(i,o)}},binarySearchCustom:function(t,e,i,n){let o=0,r=0,s=t.length-1;for(;r<=s&&o<1e4;){const a=Math.floor((r+s)/2),l=t[a],h=e(void 0===n?l[i]:l[i][n]);if(0==h)return a;-1==h?r=a+1:s=a-1,o++}return-1},binarySearchValue:function(t,e,i,n,o){let r,s,a,l,h=0,c=0,u=t.length-1;for(o=null!=o?o:function(t,e){return t==e?0:t<e?-1:1};c<=u&&h<1e4;){if(l=Math.floor(.5*(u+c)),r=t[Math.max(0,l-1)][i],s=t[l][i],a=t[Math.min(t.length-1,l+1)][i],0==o(s,e))return l;if(o(r,e)<0&&o(s,e)>0)return"before"==n?Math.max(0,l-1):l;if(o(s,e)<0&&o(a,e)>0)return"before"==n?l:Math.min(t.length-1,l+1);o(s,e)<0?c=l+1:u=l-1,h++}return-1},bridgeObject:xk,copyAndExtendArray:lk,copyArray:hk,deepExtend:sk,deepObjectAssign:BD,easingFunctions:Dk,equalArray:function(t,e){if(t.length!==e.length)return!1;for(let i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},extend:rk,fillIfDefined:function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(const o in e)if(void 0!==i[o])if(null===i[o]||"object"!=typeof i[o])ok(e,i,o,n);else{const r=e[o],s=i[o];nk(r)&&nk(s)&&t(r,s,n)}},forEach:function(t,e){if(Qg(t)){const i=t.length;for(let n=0;n<i;n++)e(t[n],n,t)}else for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)},getAbsoluteLeft:function(t){return t.getBoundingClientRect().left},getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:function(t){return t.getBoundingClientRect().top},getScrollBarWidth:function(){const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const 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);const i=t.offsetWidth;e.style.overflow="scroll";let n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},getTarget:function(){let 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,e instanceof Element))?e:null},getType:ak,hasParent:function(t,e){let i=t;for(;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},hexToHSV:yk,hexToRGB:dk,insertSort:function(t,e){for(let i=0;i<t.length;i++){const n=t[i];let o;for(o=i;o>0&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[o]=n}return t},isDate:function(t){if(t instanceof Date)return!0;if(ik(t)){if(ZD.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:ek,isObject:nk,isString:ik,isValidHex:bk,isValidRGB:_k,isValidRGBA:wk,mergeOptions:function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=function(t){return null!=t},r=function(t){return null!==t&&"object"==typeof t};if(!r(t))throw new Error("Parameter mergeTarget must be an object");if(!r(e))throw new Error("Parameter options must be an object");if(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");const s=e[i],a=r(n)&&!function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(n)?n[i]:void 0,l=a?a.enabled:void 0;if(void 0===s)return;if("boolean"==typeof s)return r(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!r(t[i])){if(!o(a))return;t[i]=Fp(a)}if(!r(s))return;let h=!0;void 0!==s.enabled?h=s.enabled:void 0!==l&&(h=a.enabled),function(t,e,i){r(t[i])||(t[i]={});const n=e[i],o=t[i];for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}(t,e,i),t[i].enabled=h},option:uk,overrideOpacity:function(t,e){if(T_(t).call(t,"rgba"))return t;if(T_(t).call(t,"rgb")){const i=t.substr(Iw(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}{const i=dk(t);return null==i?t:"rgba("+i.r+","+i.g+","+i.b+","+e+")"}},parseColor:function(t,e){if(ik(t)){let e=t;if(_k(e)){var i;const t=kd(i=e.substr(4).substr(0,e.length-5).split(",")).call(i,function(t){return _w(t)});e=pk(t[0],t[1],t[2])}if(!0===bk(e)){const t=yk(e),i={h:t.h,s:.8*t.s,v:Math.min(1,1.02*t.v)},n={h:t.h,s:Math.min(1,1.25*t.s),v:.8*t.v},o=vk(n.h,n.s,n.v),r=vk(i.h,i.s,i.v);return{background:e,border:o,highlight:{background:r,border:o},hover:{background:r,border:o}}}return{background:e,border:e,highlight:{background:e,border:e},hover:{background:e,border:e}}}if(e){return{background:t.background||e.background,border:t.border||e.border,highlight:ik(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:ik(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}}}return{background:t.background||void 0,border:t.border||void 0,highlight:ik(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:ik(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:WD,recursiveDOMDelete:function t(e){if(e)for(;!0===e.hasChildNodes();){const i=e.firstChild;i&&(t(i),e.removeChild(i))}},removeClassName:function(t,e){let i=t.className.split(" ");const n=e.split(" ");i=gd(i).call(i,function(t){return!T_(n).call(n,t)}),t.className=i.join(" ")},removeCssText:function(t,e){const i=fk(e);for(const e of gy(i))t.style.removeProperty(e)},selectiveBridgeObject:function(t,e){if(null!==e&&"object"==typeof e){const i=Fp(e);for(let n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==typeof e[t[n]]&&(i[t[n]]=xk(e[t[n]]));return i}return null},selectiveDeepExtend:function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Qg(i))throw new TypeError("Arrays are not supported by deepExtend");for(let o=0;o<t.length;o++){const r=t[o];if(Object.prototype.hasOwnProperty.call(i,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?sk(e[r],i[r],!1,n):ok(e,i,r,n);else{if(Qg(i[r]))throw new TypeError("Arrays are not supported by deepExtend");ok(e,i,r,n)}}return e},selectiveExtend:function(t,e){if(!Qg(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),o=2;o<i;o++)n[o-2]=arguments[o];for(const i of n)for(let n=0;n<t.length;n++){const o=t[n];i&&Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},selectiveNotDeepExtend:function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Qg(i))throw new TypeError("Arrays are not supported by deepExtend");for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&!T_(t).call(t,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?sk(e[o],i[o]):ok(e,i,o,n);else if(Qg(i[o])){e[o]=[];for(let t=0;t<i[o].length;t++)e[o].push(i[o][t])}else ok(e,i,o,n);return e},throttle:function(t){let e=!1;return()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1,t()}))}},toArray:ck,topMost:function(t,e){let i;Qg(e)||(e=[e]);for(const n of t)if(n){i=n[e[0]];for(let t=1;t<e.length;t++)i&&(i=i[e[t]]);if(void 0!==i)break}return i},updateProperty:function(t,e,i){return t[e]!==i&&(t[e]=i,!0)}});const Yk=[];for(let t=0;t<256;++t)Yk.push((t+256).toString(16).slice(1));const jk=new Uint8Array(16);function Hk(t,e,i){return crypto.randomUUID?crypto.randomUUID():function(t){t=t||{};const e=t.random??t.rng?.()??crypto.getRandomValues(jk);if(e.length<16)throw new Error("Random bytes length must be >= 16");return e[6]=15&e[6]|64,e[8]=63&e[8]|128,function(t,e=0){return(Yk[t[e+0]]+Yk[t[e+1]]+Yk[t[e+2]]+Yk[t[e+3]]+"-"+Yk[t[e+4]]+Yk[t[e+5]]+"-"+Yk[t[e+6]]+Yk[t[e+7]]+"-"+Yk[t[e+8]]+Yk[t[e+9]]+"-"+Yk[t[e+10]]+Yk[t[e+11]]+Yk[t[e+12]]+Yk[t[e+13]]+Yk[t[e+14]]+Yk[t[e+15]]).toLowerCase()}(e)}(t)}function zk(t,e){var i=gy(t);if(Ko){var n=Ko(t);e&&(n=gd(n).call(n,function(e){return hr(t,e).enumerable})),i.push.apply(i,n)}return i}function Gk(t){for(var e=1;e<arguments.length;e++){var i,n,o=null!=arguments[e]?arguments[e]:{};e%2?op(i=zk(Object(o),!0)).call(i,function(e){ou(t,e,o[e])}):_r?Rr(t,_r(o)):op(n=zk(Object(o))).call(n,function(e){Pb(t,e,hr(o,e))})}return t}class Wk{constructor(t,e,i){var n,o,r;ou(this,"_source",void 0),ou(this,"_transformers",void 0),ou(this,"_target",void 0),ou(this,"_listeners",{add:Yu(n=this._add).call(n,this),remove:Yu(o=this._remove).call(o,this),update:Yu(r=this._update).call(r,this)}),this._source=t,this._transformers=e,this._target=i}all(){return this._target.update(this._transformItems(this._source.get())),this}start(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}stop(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}_transformItems(t){var e;return id(e=this._transformers).call(e,(t,e)=>e(t),t)}_add(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}_update(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}_remove(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}class Bk{constructor(t){ou(this,"_source",void 0),ou(this,"_transformers",[]),this._source=t}filter(t){return this._transformers.push(e=>gd(e).call(e,t)),this}map(t){return this._transformers.push(e=>kd(e).call(e,t)),this}flatMap(t){return this._transformers.push(e=>Zd(e).call(e,t)),this}to(t){return new Wk(this._source,this._transformers,t)}}function Vk(t){return"string"==typeof t||"number"==typeof t}class Uk{constructor(){ou(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),ou(this,"subscribe",Uk.prototype.on),ou(this,"unsubscribe",Uk.prototype.off)}_trigger(t,e,i){var n;if("*"===t)throw new Error("Cannot trigger event *");op(n=[...this._subscribers[t],...this._subscribers["*"]]).call(n,n=>{n(t,e,null!=i?i:null)})}on(t,e){"function"==typeof e&&this._subscribers[t].push(e)}off(t,e){var i;this._subscribers[t]=gd(i=this._subscribers[t]).call(i,t=>t!==e)}}class Xk{constructor(t){ou(this,"_pairs",void 0),this._pairs=t}*[dp](){for(const e of this._pairs){var t=oc(e,2);const i=t[0],n=t[1];yield[i,n]}}*entries(){for(const e of this._pairs){var t=oc(e,2);const i=t[0],n=t[1];yield[i,n]}}*keys(){for(const t of this._pairs){const e=oc(t,1)[0];yield e}}*values(){for(const t of this._pairs){const e=oc(t,2)[1];yield e}}toIdArray(){var t;return kd(t=[...this._pairs]).call(t,t=>t[0])}toItemArray(){var t;return kd(t=[...this._pairs]).call(t,t=>t[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const t=Fp(null);for(const i of this._pairs){var e=oc(i,2);const n=e[0],o=e[1];t[n]=o}return t}toMap(){return new ym(this._pairs)}toIdSet(){return new Qf(this.toIdArray())}toItemSet(){return new Qf(this.toItemArray())}cache(){return new Xk([...this._pairs])}distinct(t){const e=new Qf;for(const n of this._pairs){var i=oc(n,2);const o=i[0],r=i[1];e.add(t(r,o))}return e}filter(t){const e=this._pairs;return new Xk({*[dp](){for(const n of e){var i=oc(n,2);const e=i[0],o=i[1];t(o,e)&&(yield[e,o])}}})}forEach(t){for(const i of this._pairs){var e=oc(i,2);const n=e[0];t(e[1],n)}}map(t){const e=this._pairs;return new Xk({*[dp](){for(const n of e){var i=oc(n,2);const e=i[0],o=i[1];yield[e,t(o,e)]}}})}max(t){const e=cg(this._pairs);let i=e.next();if(i.done)return null;let n=i.value[1],o=t(i.value[1],i.value[0]);for(;!(i=e.next()).done;){const e=oc(i.value,2),r=e[0],s=e[1],a=t(s,r);a>o&&(o=a,n=s)}return n}min(t){const e=cg(this._pairs);let i=e.next();if(i.done)return null;let n=i.value[1],o=t(i.value[1],i.value[0]);for(;!(i=e.next()).done;){const e=oc(i.value,2),r=e[0],s=e[1],a=t(s,r);a<o&&(o=a,n=s)}return n}reduce(t,e){for(const n of this._pairs){var i=oc(n,2);const o=i[0];e=t(e,i[1],o)}return e}sort(t){return new Xk({[dp]:()=>cg([...this._pairs].toSorted((e,i)=>{let n=oc(e,2),o=n[0],r=n[1],s=oc(i,2),a=s[0],l=s[1];return t(r,l,o,a)}))})}}class qk{constructor(t){ou(this,"delay",void 0),ou(this,"max",void 0),ou(this,"_queue",[]),ou(this,"_timeout",null),ou(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}setOptions(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}static extend(t,e){const i=new qk(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=()=>{i.flush()};const n=[{name:"flush",original:void 0}];if(e&&e.replace)for(let o=0;o<e.replace.length;o++){const r=e.replace[o];n.push({name:r,original:t[r]}),i.replace(t,r)}return i._extended={object:t,methods:n},i}destroy(){if(this.flush(),this._extended){const t=this._extended.object,e=this._extended.methods;for(let i=0;i<e.length;i++){const n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}replace(t,e){const 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),o=0;o<t;o++)e[o]=arguments[o];i.queue({args:e,fn:n,context:this})}}queue(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}_flushIfNeeded(){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=Ag(()=>{this.flush()},this.delay))}flush(){var t,e;op(t=Wg(e=this._queue).call(e,0)).call(t,t=>{t.fn.apply(t.context||t.fn,t.args||[])})}}class Kk extends Uk{get idProp(){return this._idProp}constructor(t,e){super(),ou(this,"flush",void 0),ou(this,"length",void 0),ou(this,"_options",void 0),ou(this,"_data",void 0),ou(this,"_idProp",void 0),ou(this,"_queue",null),t&&!Qg(t)&&(e=t,t=[]),this._options=e||{},this._data=new ym,this.length=0,this._idProp=this._options.fieldId||"id",t&&t.length&&this.add(t),this.setOptions(e)}setOptions(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=qk.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"==typeof t.queue&&this._queue.setOptions(t.queue)))}add(t,e){const i=[];let n;if(Qg(t)){const e=kd(t).call(t,t=>t[this._idProp]);if(pv(e).call(e,t=>this._data.has(t)))throw new Error("A duplicate id was found in the parameter array.");for(let e=0,o=t.length;e<o;e++)n=this._addItem(t[e]),i.push(n)}else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");n=this._addItem(t),i.push(n)}return i.length&&this._trigger("add",{items:i},e),i}update(t,e){const i=[],n=[],o=[],r=[],s=this._idProp,a=t=>{const e=t[s];if(null!=e&&this._data.has(e)){const i=t,s=Cv({},this._data.get(e)),a=this._updateItem(i);n.push(a),r.push(i),o.push(s)}else{const e=this._addItem(t);i.push(e)}};if(Qg(t))for(let e=0,i=t.length;e<i;e++)t[e]&&"object"==typeof t[e]?a(t[e]):console.warn("Ignoring input item, which is not an object at index "+e);else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");a(t)}if(i.length&&this._trigger("add",{items:i},e),n.length){const t={items:n,oldData:o,data:r};this._trigger("update",t,e)}return Yv(i).call(i,n)}updateOnly(t,e){var i;Qg(t)||(t=[t]);const n=kd(i=kd(t).call(t,t=>{const e=this._data.get(t[this._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}})).call(i,t=>{let e=t.oldData,i=t.update;const n=e[this._idProp],o=WD(e,i);return this._data.set(n,o),{id:n,oldData:e,updatedData:o}});if(n.length){const t={items:kd(n).call(n,t=>t.id),oldData:kd(n).call(n,t=>t.oldData),data:kd(n).call(n,t=>t.updatedData)};return this._trigger("update",t,e),t.items}return[]}get(t,e){let i,n,o;Vk(t)?(i=t,o=e):Qg(t)?(n=t,o=e):o=t;const r=o&&"Object"===o.returnType?"Object":"Array",s=o&&gd(o),a=[];let l,h,c;if(null!=i)l=this._data.get(i),l&&s&&!s(l)&&(l=void 0);else if(null!=n)for(let t=0,e=n.length;t<e;t++)l=this._data.get(n[t]),null==l||s&&!s(l)||a.push(l);else{var u;h=[...Kv(u=this._data).call(u)];for(let t=0,e=h.length;t<e;t++)c=h[t],l=this._data.get(c),null==l||s&&!s(l)||a.push(l)}if(o&&o.order&&null==i&&this._sort(a,o.order),o&&o.fields){const t=o.fields;if(null!=i&&null!=l)l=this._filterFields(l,t);else for(let e=0,i=a.length;e<i;e++)a[e]=this._filterFields(a[e],t)}if("Object"==r){const t={};for(let e=0,i=a.length;e<i;e++){const i=a[e];t[i[this._idProp]]=i}return t}return null!=i?null!=l?l:null:a}getIds(t){const e=this._data,i=t&&gd(t),n=t&&t.order,o=[...Kv(e).call(e)],r=[];if(i)if(n){const t=[];for(let e=0,n=o.length;e<n;e++){const n=o[e],r=this._data.get(n);null!=r&&i(r)&&t.push(r)}this._sort(t,n);for(let e=0,i=t.length;e<i;e++)r.push(t[e][this._idProp])}else for(let t=0,e=o.length;t<e;t++){const e=o[t],n=this._data.get(e);null!=n&&i(n)&&r.push(n[this._idProp])}else if(n){const t=[];for(let i=0,n=o.length;i<n;i++){const n=o[i];t.push(e.get(n))}this._sort(t,n);for(let e=0,i=t.length;e<i;e++)r.push(t[e][this._idProp])}else for(let t=0,i=o.length;t<i;t++){const i=o[t],n=e.get(i);null!=n&&r.push(n[this._idProp])}return r}getDataSet(){return this}forEach(t,e){const i=e&&gd(e),n=this._data,o=[...Kv(n).call(n)];if(e&&e.order){const i=this.get(e);for(let e=0,n=i.length;e<n;e++){const n=i[e];t(n,n[this._idProp])}}else for(let e=0,n=o.length;e<n;e++){const n=o[e],r=this._data.get(n);null==r||i&&!i(r)||t(r,n)}}map(t,e){const i=e&&gd(e),n=[],o=this._data,r=[...Kv(o).call(o)];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._data.get(o);null==s||i&&!i(s)||n.push(t(s,o))}return e&&e.order&&this._sort(n,e.order),n}_filterFields(t,e){var i;return t?id(i=Qg(e)?e:gy(e)).call(i,(e,i)=>(e[i]=t[i],e),{}):t}_sort(t,e){if("string"==typeof e){const i=e;Ly(t).call(t,(t,e)=>{const n=t[i],o=e[i];return n>o?1:n<o?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");Ly(t).call(t,e)}}remove(t,e){const i=[],n=[],o=Qg(t)?t:[t];for(let t=0,e=o.length;t<e;t++){const e=this._remove(o[t]);if(e){const t=e[this._idProp];null!=t&&(i.push(t),n.push(e))}}return i.length&&this._trigger("remove",{items:i,oldData:n},e),i}_remove(t){let e;if(Vk(t)?e=t:t&&"object"==typeof t&&(e=t[this._idProp]),null!=e&&this._data.has(e)){const t=this._data.get(e)||null;return this._data.delete(e),--this.length,t}return null}clear(t){var e;const i=[...Kv(e=this._data).call(e)],n=[];for(let t=0,e=i.length;t<e;t++)n.push(this._data.get(i[t]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},t),i}max(t){let e=null,i=null;for(const o of $y(n=this._data).call(n)){var n;const r=o[t];"number"==typeof r&&(null==i||r>i)&&(e=o,i=r)}return e||null}min(t){let e=null,i=null;for(const o of $y(n=this._data).call(n)){var n;const r=o[t];"number"==typeof r&&(null==i||r<i)&&(e=o,i=r)}return e||null}distinct(t){const e=this._data,i=[...Kv(e).call(e)],n=[];let o=0;for(let r=0,s=i.length;r<s;r++){const s=i[r],a=e.get(s)[t];let l=!1;for(let t=0;t<o;t++)if(n[t]==a){l=!0;break}l||void 0===a||(n[o]=a,o++)}return n}_addItem(t){const e=function(t,e){return null==t[e]&&(t[e]=Hk()),t}(t,this._idProp),i=e[this._idProp];if(this._data.has(i))throw new Error("Cannot add item: item with id "+i+" already exists");return this._data.set(i,e),++this.length,i}_updateItem(t){const e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+db(t)+")");const i=this._data.get(e);if(!i)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,Gk(Gk({},i),t)),e}stream(t){if(t){const e=this._data;return new Xk({*[dp](){for(const i of t){const t=e.get(i);null!=t&&(yield[i,t])}}})}var e;return new Xk({[dp]:Yu(e=Db(this._data)).call(e,this._data)})}}class Zk extends Uk{get idProp(){return this.getDataSet().idProp}constructor(t,e){var i;super(),ou(this,"length",0),ou(this,"_listener",void 0),ou(this,"_data",void 0),ou(this,"_ids",new Qf),ou(this,"_options",void 0),this._options=e||{},this._listener=Yu(i=this._onEvent).call(i,this),this.setData(t)}setData(t){if(this._data){this._data.off&&this._data.off("*",this._listener);const t=this._data.getIds({filter:gd(this._options)}),e=this._data.get(t);this._ids.clear(),this.length=0,this._trigger("remove",{items:t,oldData:e})}if(null!=t){this._data=t;const e=this._data.getIds({filter:gd(this._options)});for(let t=0,i=e.length;t<i;t++){const i=e[t];this._ids.add(i)}this.length=e.length,this._trigger("add",{items:e})}else this._data=new Kk;this._data.on&&this._data.on("*",this._listener)}refresh(){const t=this._data.getIds({filter:gd(this._options)}),e=[...this._ids],i={},n=[],o=[],r=[];for(let e=0,o=t.length;e<o;e++){const o=t[e];i[o]=!0,this._ids.has(o)||(n.push(o),this._ids.add(o))}for(let t=0,n=e.length;t<n;t++){const n=e[t],s=this._data.get(n);null==s?console.error("If you see this, report it please."):i[n]||(o.push(n),r.push(s),this._ids.delete(n))}this.length+=n.length-o.length,n.length&&this._trigger("add",{items:n}),o.length&&this._trigger("remove",{items:o,oldData:r})}get(t,e){if(null==this._data)return null;let i,n=null;Vk(t)||Qg(t)?(n=t,i=e):i=t;const o=Cv({},this._options,i),r=gd(this._options),s=i&&gd(i);return r&&s&&(o.filter=t=>r(t)&&s(t)),null==n?this._data.get(o):this._data.get(n,o)}getIds(t){if(this._data.length){const e=gd(this._options),i=null!=t?gd(t):null;let n;return n=i?e?t=>e(t)&&i(t):i:e,this._data.getIds({filter:n,order:t&&t.order})}return[]}forEach(t,e){if(this._data){var i;const n=gd(this._options),o=e&&gd(e);let r;r=o?n?function(t){return n(t)&&o(t)}:o:n,op(i=this._data).call(i,t,{filter:r,order:e&&e.order})}}map(t,e){if(this._data){var i;const n=gd(this._options),o=e&&gd(e);let r;return r=o?n?t=>n(t)&&o(t):o:n,kd(i=this._data).call(i,t,{filter:r,order:e&&e.order})}return[]}getDataSet(){return this._data.getDataSet()}stream(t){var e;return this._data.stream(t||{[dp]:Yu(e=Kv(this._ids)).call(e,this._ids)})}dispose(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);const e="This data view has already been disposed of.",i={get:()=>{throw new Error(e)},set:()=>{throw new Error(e)},configurable:!1};for(const t of Mb(Zk.prototype))Pb(this,t,i)}_onEvent(t,e,i){if(!e||!e.items||!this._data)return;const n=e.items,o=[],r=[],s=[],a=[],l=[],h=[];switch(t){case"add":for(let t=0,e=n.length;t<e;t++){const e=n[t];this.get(e)&&(this._ids.add(e),o.push(e))}break;case"update":for(let t=0,i=n.length;t<i;t++){const i=n[t];this.get(i)?this._ids.has(i)?(r.push(i),l.push(e.data[t]),a.push(e.oldData[t])):(this._ids.add(i),o.push(i)):this._ids.has(i)&&(this._ids.delete(i),s.push(i),h.push(e.oldData[t]))}break;case"remove":for(let t=0,i=n.length;t<i;t++){const i=n[t];this._ids.has(i)&&(this._ids.delete(i),s.push(i),h.push(e.oldData[t]))}}this.length+=o.length-s.length,o.length&&this._trigger("add",{items:o},i),r.length&&this._trigger("update",{items:r,oldData:a,data:l},i),s.length&&this._trigger("remove",{items:s,oldData:h},i)}}function $k(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof op(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof kd(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&function(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof op(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof kd(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}(t,e.getDataSet())}function Jk(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].redundant=t[e].used,t[e].used=[])}function Qk(t){for(var e in t){if(!Object.prototype.hasOwnProperty.call(t,e))continue;const n=t[e];for(var i=0;i<n.redundant.length;i++)n.redundant[i].parentNode.removeChild(n.redundant[i]);n.redundant=[]}}function tS(t){Jk(t),Qk(t),Jk(t)}function eS(t,e,i){var n;return Object.prototype.hasOwnProperty.call(e,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 iS(t,e,i,n){var o;return Object.prototype.hasOwnProperty.call(e,t)?e[t].redundant.length>0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElement(t),void 0!==n?i.insertBefore(o,n):i.appendChild(o)):(o=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(o,n):i.appendChild(o)),e[t].used.push(o),o}function nS(t,e,i,n,o,r){var s;if("circle"==i.style?((s=eS("circle",n,o)).setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*i.size)):((s=eS("rect",n,o)).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"),r){var a=eS("text",n,o);r.xOffset&&(t+=r.xOffset),r.yOffset&&(e+=r.yOffset),r.content&&(a.textContent=r.content),r.className&&a.setAttributeNS(null,"class",r.className+" vis-label"),a.setAttributeNS(null,"x",t),a.setAttributeNS(null,"y",e)}return s}function oS(t,e,i,n,o,r,s,a){if(0!=n){n<0&&(e-=n*=-1);var l=eS("rect",r,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",o),a&&l.setAttributeNS(null,"style",a)}}function rS(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(t){return"en"}}var sS=Object.freeze({__proto__:null,cleanupElements:Qk,drawBar:oS,drawPoint:nS,getDOMElement:iS,getNavigatorLanguage:rS,getSVGElement:eS,prepareElements:Jk,resetElements:tS}),aS=null;function lS(t,e){var i=e||{preventDefault:!1};if(t.Manager){var n=t,o=function(t,e){var o=Object.create(i);return e&&n.assign(o,e),lS(new n(t,o),o)};return n.assign(o,n),o.Manager=function(t,e){var o=Object.create(i);return e&&n.assign(o,e),lS(new n.Manager(t,o),o)},o}var r=Object.create(t),s=t.element;function a(t){return t.match(/[^ ]+/g)}function l(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 i=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()}),t.firstTarget=aS;for(var n=aS.isConnected?aS:t.target;n&&!e;){var o=n.hammer;if(o)for(var r,s=0;s<o.length;s++)if(r=o[s]._handlers[t.type])for(var a=0;a<r.length&&!e;a++)r[a](t);n=n.parentNode}}return s.hammer||(s.hammer=[]),s.hammer.push(r),t.on("hammer.input",function(t){!0!==i.preventDefault&&i.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(aS=t.target)}),r._handlers={},r.on=function(e,i){return a(e).forEach(function(e){var n=r._handlers[e];n||(r._handlers[e]=n=[],t.on(e,l)),n.push(i)}),r},r.off=function(e,i){return a(e).forEach(function(e){var n=r._handlers[e];n&&((n=i?n.filter(function(t){return t!==i}):[]).length>0?r._handlers[e]=n:(t.off(e,l),delete r._handlers[e]))}),r},r.emit=function(e,i){aS=i.target,t.emit(e,i)},r.destroy=function(){var e=t.element.hammer,i=e.indexOf(r);-1!==i&&e.splice(i,1),e.length||delete t.element.hammer,r._handlers={},t.destroy()},r}const hS=function(){if("undefined"!=typeof window){return lS(window.Hammer||zD,{preventDefault:"mouse"})}return function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()}}();var cS=i(s());const uS="undefined"!=typeof window&&window.moment||cS;var dS,pS,mS,fS,gS,vS,yS,bS,_S,wS,xS,DS={exports:{}},kS={},SS={exports:{}},CS={};function TS(){if(dS)return CS;function t(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}dS=1;var e=/javascript\s*\:/gim;return CS.whiteList=t(),CS.getDefaultWhiteList=t,CS.onAttr=function(t,e,i){},CS.onIgnoreAttr=function(t,e,i){},CS.safeAttrValue=function(t,i){return e.test(i)?"":i},CS}function MS(){return mS?pS:(mS=1,pS={indexOf:function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var n,o;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}})}function OS(){if(yS)return vS;yS=1;var t=TS(),e=function(){if(gS)return fS;gS=1;var t=MS();return fS=function(e,i){";"!==(e=t.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,r=0,s=0,a="";function l(){if(!o){var n=t.trim(e.slice(r,s)),l=n.indexOf(":");if(-1!==l){var h=t.trim(n.slice(0,l)),c=t.trim(n.slice(l+1));if(h){var u=i(r,a.length,h,c,n);u&&(a+=u+"; ")}}}r=s+1}for(;s<n;s++){var h=e[s];if("/"===h&&"*"===e[s+1]){var c=e.indexOf("*/",s+2);if(-1===c)break;r=(s=c+1)+1,o=!1}else"("===h?o=!0:")"===h?o=!1:";"===h?o||l():"\n"===h&&l()}return t.trim(a)},fS}();function i(t){return null==t}function n(e){(e=function(t){var e={};for(var i in t)e[i]=t[i];return e}(e||{})).whiteList=e.whiteList||t.whiteList,e.onAttr=e.onAttr||t.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||t.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||t.safeAttrValue,this.options=e}return MS(),n.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var n=this.options,o=n.whiteList,r=n.onAttr,s=n.onIgnoreAttr,a=n.safeAttrValue;return e(t,function(t,e,n,l,h){var c=o[n],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(l):c instanceof RegExp&&(u=c.test(l)),!0!==u&&(u=!1),l=a(n,l)){var d,p={position:e,sourcePosition:t,source:h,isWhite:u};return u?i(d=r(n,l,p))?n+":"+l:d:i(d=s(n,l,p))?void 0:d}})},vS=n}function ES(){return bS||(bS=1,function(t,e){var i=TS(),n=OS();for(var o in e=t.exports=function(t,e){return new n(e).process(t)},e.FilterCSS=n,i)e[o]=i[o];"undefined"!=typeof window&&(window.filterCSS=t.exports)}(SS,SS.exports)),SS.exports}function PS(){return wS?_S:(wS=1,_S={indexOf:function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var n,o;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}})}function IS(){if(xS)return kS;xS=1;var t=ES().FilterCSS,e=ES().getDefaultWhiteList,i=PS();function n(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new t;function r(t){return t.replace(s,"&lt;").replace(a,"&gt;")}var s=/</g,a=/>/g,l=/"/g,h=/&quot;/g,c=/&#([a-zA-Z0-9]*);?/gim,u=/&colon;?/gim,d=/&newline;?/gim,p=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,f=/u\s*r\s*l\s*\(.*/gi;function g(t){return t.replace(l,"&quot;")}function v(t){return t.replace(h,'"')}function y(t){return t.replace(c,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})}function b(t){return t.replace(u,":").replace(d," ")}function _(t){for(var e="",n=0,o=t.length;n<o;n++)e+=t.charCodeAt(n)<32?" ":t.charAt(n);return i.trim(e)}function w(t){return t=_(t=b(t=y(t=v(t))))}function x(t){return t=r(t=g(t))}return kS.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},kS.getDefaultWhiteList=n,kS.onTag=function(t,e,i){},kS.onIgnoreTag=function(t,e,i){},kS.onTagAttr=function(t,e,i){},kS.onIgnoreTagAttr=function(t,e,i){},kS.safeAttrValue=function(t,e,n,r){if(n=w(n),"href"===e||"src"===e){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(p.lastIndex=0,p.test(n))return""}else if("style"===e){if(m.lastIndex=0,m.test(n))return"";if(f.lastIndex=0,f.test(n)&&(p.lastIndex=0,p.test(n)))return"";!1!==r&&(n=(r=r||o).process(n))}return n=x(n)},kS.escapeHtml=r,kS.escapeQuote=g,kS.unescapeQuote=v,kS.escapeHtmlEntities=y,kS.escapeDangerHtml5Entities=b,kS.clearNonPrintableCharacter=_,kS.friendlyAttrValue=w,kS.escapeAttrValue=x,kS.onIgnoreTagStripAll=function(){return""},kS.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var n=!Array.isArray(t),o=[],r=!1;return{onIgnoreTag:function(s,a,l){if(function(e){return!!n||-1!==i.indexOf(t,e)}(s)){if(l.isClosing){var h="[/removed]",c=l.position+10;return o.push([!1!==r?r:l.position,c]),r=!1,h}return r||(r=l.position),"[removed]"}return e(s,a,l)},remove:function(t){var e="",n=0;return i.forEach(o,function(i){e+=t.slice(n,i[0]),n=i[1]}),e+=t.slice(n)}}},kS.stripCommentTag=function(t){for(var e="",i=0;i<t.length;){var n=t.indexOf("\x3c!--",i);if(-1===n){e+=t.slice(i);break}e+=t.slice(i,n);var o=t.indexOf("--\x3e",n);if(-1===o)break;i=o+3}return e},kS.stripBlankChar=function(t){var e=t.split("");return(e=e.filter(function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))})).join("")},kS.attributeWrapSign='"',kS.cssFilter=o,kS.getDefaultCSSWhiteList=e,kS}var NS,LS,AS,FS,RS={};function YS(){if(NS)return RS;NS=1;var t=PS();function e(e){var i,n=t.spaceIndex(e);return i=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(i=t.trim(i).toLowerCase()).slice(0,1)&&(i=i.slice(1)),"/"===i.slice(-1)&&(i=i.slice(0,-1)),i}function i(t){return"</"===t.slice(0,2)}var n=/[^a-zA-Z0-9\\_:.-]/gim;function o(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"="===i?e:-1}}function r(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"'"===i||'"'===i?e:-1}}function s(t,e){for(;e>0;e--){var i=t[e];if(" "!==i)return"="===i?e:-1}}function a(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}return RS.parseTag=function(t,n,o){var r="",s=0,a=!1,l=!1,h=0,c=t.length,u="",d="";t:for(h=0;h<c;h++){var p=t.charAt(h);if(!1===a){if("<"===p){a=h;continue}}else if(!1===l){if("<"===p){r+=o(t.slice(s,h)),a=h,s=h;continue}if(">"===p||h===c-1){r+=o(t.slice(s,a)),u=e(d=t.slice(a,h+1)),r+=n(a,r.length,u,d,i(d)),s=h+1,a=!1;continue}if('"'===p||"'"===p)for(var m=1,f=t.charAt(h-m);""===f.trim()||"="===f;){if("="===f){l=p;continue t}f=t.charAt(h-++m)}}else if(p===l){l=!1;continue}}return s<c&&(r+=o(t.substr(s))),r},RS.parseAttr=function(e,i){var l=0,h=0,c=[],u=!1,d=e.length;function p(e,o){if(!((e=(e=t.trim(e)).replace(n,"").toLowerCase()).length<1)){var r=i(e,o||"");r&&c.push(r)}}for(var m=0;m<d;m++){var f,g=e.charAt(m);if(!1!==u||"="!==g)if(!1===u||m!==h)if(/\s|\n|\t/.test(g)){if(e=e.replace(/\s|\n|\t/g," "),!1===u){if(-1===(f=o(e,m))){p(t.trim(e.slice(l,m))),u=!1,l=m+1;continue}m=f-1;continue}if(-1===(f=s(e,m-1))){p(u,a(t.trim(e.slice(l,m)))),u=!1,l=m+1;continue}}else;else{if(-1===(f=e.indexOf(g,m+1)))break;p(u,t.trim(e.slice(h+1,f))),u=!1,l=(m=f)+1}else u=e.slice(l,m),l=m+1,h='"'===e.charAt(l)||"'"===e.charAt(l)?l:r(e,m+1)}return l<e.length&&(!1===u?p(e.slice(l)):p(u,a(t.trim(e.slice(l))))),t.trim(c.join(" "))},RS}function jS(){if(AS)return LS;AS=1;var t=ES().FilterCSS,e=IS(),i=YS(),n=i.parseTag,o=i.parseAttr,r=PS();function s(t){return null==t}function a(i){(i=function(t){var e={};for(var i in t)e[i]=t[i];return e}(i||{})).stripIgnoreTag&&(i.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),i.onIgnoreTag=e.onIgnoreTagStripAll),i.whiteList||i.allowList?i.whiteList=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i.toLowerCase()]=t[i].map(function(t){return t.toLowerCase()}):e[i.toLowerCase()]=t[i];return e}(i.whiteList||i.allowList):i.whiteList=e.whiteList,this.attributeWrapSign=!0===i.singleQuotedAttributeValue?"'":e.attributeWrapSign,i.onTag=i.onTag||e.onTag,i.onTagAttr=i.onTagAttr||e.onTagAttr,i.onIgnoreTag=i.onIgnoreTag||e.onIgnoreTag,i.onIgnoreTagAttr=i.onIgnoreTagAttr||e.onIgnoreTagAttr,i.safeAttrValue=i.safeAttrValue||e.safeAttrValue,i.escapeHtml=i.escapeHtml||e.escapeHtml,this.options=i,!1===i.css?this.cssFilter=!1:(i.css=i.css||{},this.cssFilter=new t(i.css))}return a.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var i=this,a=i.options,l=a.whiteList,h=a.onTag,c=a.onIgnoreTag,u=a.onTagAttr,d=a.onIgnoreTagAttr,p=a.safeAttrValue,m=a.escapeHtml,f=i.attributeWrapSign,g=i.cssFilter;a.stripBlankChar&&(t=e.stripBlankChar(t)),a.allowCommentTag||(t=e.stripCommentTag(t));var v=!1;a.stripIgnoreTagBody&&(v=e.StripTagBody(a.stripIgnoreTagBody,c),c=v.onIgnoreTag);var y=n(t,function(t,e,i,n,a){var v={sourcePosition:t,position:e,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(l,i)},y=h(i,n,v);if(!s(y))return y;if(v.isWhite){if(v.isClosing)return"</"+i+">";var b=function(t){var e=r.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var i="/"===(t=r.trim(t.slice(e+1,-1)))[t.length-1];return i&&(t=r.trim(t.slice(0,-1))),{html:t,closing:i}}(n),_=l[i],w=o(b.html,function(t,e){var n=-1!==r.indexOf(_,t),o=u(i,t,e,n);return s(o)?n?(e=p(i,t,e,g))?t+"="+f+e+f:t:s(o=d(i,t,e,n))?void 0:o:o});return n="<"+i,w&&(n+=" "+w),b.closing&&(n+=" /"),n+=">"}return s(y=c(i,n,v))?m(n):y},m);return v&&(y=v.remove(y)),y},LS=a}var HS=(FS||(FS=1,function(t,e){var i=IS(),n=YS(),o=jS();function r(t,e){return new o(e).process(t)}(e=t.exports=r).filterXSS=r,e.FilterXSS=o,function(){for(var t in i)e[t]=i[t];for(var o in n)e[o]=n[o]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)}(DS,DS.exports)),DS.exports),zS=i(HS);function GS(t,e){var i=gy(t);if(Ko){var n=Ko(t);e&&(n=gd(n).call(n,function(e){return hr(t,e).enumerable})),i.push.apply(i,n)}return i}function WS(t){for(var e=1;e<arguments.length;e++){var i,n,o=null!=arguments[e]?arguments[e]:{};e%2?op(i=GS(Object(o),!0)).call(i,function(e){ou(t,e,o[e])}):_r?Rr(t,_r(o)):op(n=GS(Object(o))).call(n,function(e){Pb(t,e,hr(o,e))})}return t}function BS(t){var e;if(!t)return!1;let i=null!==(e=t.idProp)&&void 0!==e?e:t._idProp;return!!i&&$k(i,t)}const VS=/^\/?Date\((-?\d+)/i,US=/^\d+$/;function XS(t,e){let 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 ik(t)&&!isNaN(Date.parse(t))?cS(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":try{return XS(t,"Moment").toDate()}catch(i){throw i instanceof TypeError?new TypeError("Cannot convert object of type "+ak(t)+" to type "+e,{cause:i}):i}case"Moment":if(ek(t))return cS(t);if(t instanceof Date)return cS(t.valueOf());if(cS.isMoment(t))return cS(t);if(ik(t))return i=VS.exec(t),i?cS(Number(i[1])):(i=US.exec(t),cS(i?Number(t):t));throw new TypeError("Cannot convert object of type "+ak(t)+" to type "+e);case"ISODate":if(ek(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(cS.isMoment(t))return t.toDate().toISOString();if(ik(t))return i=VS.exec(t),i?new Date(Number(i[1])).toISOString():cS(t).format();throw new Error("Cannot convert object of type "+ak(t)+" to type ISODate");case"ASPDate":if(ek(t))return"/Date("+t+")/";if(t instanceof Date||cS.isMoment(t))return"/Date("+t.valueOf()+")/";if(ik(t)){let e;return i=VS.exec(t),e=i?new Date(Number(i[1])).valueOf():new Date(t).valueOf(),"/Date("+e+")/"}throw new Error("Cannot convert object of type "+ak(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function qS(t){var e,i,n,o,r,s;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"};const l=t._idProp,h=new Kk({fieldId:l}),c=kd(e=function(t){return new Bk(t)}(t)).call(e,t=>{var e;return id(e=gy(t)).call(e,(e,i)=>(e[i]=XS(t[i],a[i]),e),{})}).to(h);return c.all().start(),{add:function(){return t.getDataSet().add(...arguments)},remove:function(){return t.getDataSet().remove(...arguments)},update:function(){return t.getDataSet().update(...arguments)},updateOnly:function(){return t.getDataSet().updateOnly(...arguments)},clear:function(){return t.getDataSet().clear(...arguments)},forEach:Yu(i=op(h)).call(i,h),get:Yu(n=h.get).call(n,h),getIds:Yu(o=h.getIds).call(o,h),off:Yu(r=h.off).call(r,h),on:Yu(s=h.on).call(s,h),get length(){return h.length},idProp:l,type:a,rawDS:t,coercedDS:h,dispose:()=>c.stop()}}const KS=t=>{const e=new zS.FilterXSS(t);return t=>"string"==typeof t?e.process(t):t},ZS=t=>t;let $S=KS();const JS=WS(WS({},Rk),{},{convert:XS,setupXSSProtection:t=>{t&&(!0===t.disabled?($S=ZS,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&($S=KS(t.filterOptions)))}});Pb(JS,"xss",{get:function(){return $S}});const QS=.001;function tC(t){Ly(t).call(t,(t,e)=>t.data.start-e.data.start)}function eC(t){Ly(t).call(t,(t,e)=>("end"in t.data?t.data.end:t.data.start)-("end"in e.data?e.data.end:e.data.start))}function iC(t,e,i,n){return null===aC(t,e.item,!1,t=>t.stack&&(i||null===t.top),t=>t.stack,()=>e.axis,n)}function nC(t,e,i){const n=aC(t,e.item,!1,t=>t.stack,()=>!0,t=>t.baseTop);i.height=n-i.top+.5*e.item.vertical}function oC(t,e,i,n){for(let o=0;o<t.length;o++){if(null==t[o].data.subgroup){t[o].top=e.item.vertical;continue}if(void 0===t[o].data.subgroup||!n)continue;let r=0;for(const e in i)!Object.prototype.hasOwnProperty.call(i,e)||!0!==i[e].visible||i[e].index>=i[t[o].data.subgroup].index||(r+=i[e].height,i[t[o].data.subgroup].top=r);t[o].top=r+.5*e.item.vertical}n||rC(t,e,i)}function rC(t,e,i){aC(ow(i).toSorted((t,e)=>t.index>e.index?1:t.index<e.index?-1:0),{vertical:0},!0,()=>!0,()=>!0,()=>0);for(let n=0;n<t.length;n++)void 0!==t[n].data.subgroup&&(t[n].top=i[t[n].data.subgroup].top+.5*e.item.vertical)}function sC(t,e,i){let n=!1;const o=[];for(let t in i)Object.prototype.hasOwnProperty.call(i[t],"index")?o[i[t].index]=t:o.push(t);for(let r=0;r<o.length;r++){let s=o[r];if(!Object.prototype.hasOwnProperty.call(i,s))continue;n=n||i[s].stack,i[s].top=0;for(const t in i)i[t].visible&&i[s].index>i[t].index&&(i[s].top+=i[t].height);const a=t[s];for(let t=0;t<a.length;t++)void 0!==a[t].data.subgroup&&(a[t].top=i[a[t].data.subgroup].top+.5*e.item.vertical,i[s].stack&&(a[t].baseTop=a[t].top));n&&i[s].stack&&nC(t[s],e,i[s])}}function aC(t,e,i,n,o,r,s){let a=t=>t.start,l=t=>t.end;if(!i){const i=!(!t[0]||!t[0].options.rtl);a=i?t=>t.right:t=>t.left,l=t=>a(t)+t.width+e.horizontal}const h=[],c=[];let u=null,d=0;for(const e of t)if(n(e))h.push(e);else if(o(e)){const t=a(e);null!==u&&t<u-QS&&(d=0),u=t,d=hC(c,e=>a(e)-QS>t,d),Wg(c).call(c,d,0,e),d++}u=null;let p=null;d=0;let m=0,f=0,g=0;for(;h.length>0;){const t=h.shift();t.top=r(t);const i=a(t),n=l(t);null!==u&&i<u-QS&&(m=0,f=0,d=0,p=null),(null===u||i>u+QS)&&(m=hC(c,t=>i<l(t)-QS,m)),u=i,(null===p||p<n-QS)&&(f=hC(c,t=>n<a(t)-QS,Math.max(m,f))),null!==p&&p-QS>n&&(f=cC(c,t=>n+QS>=a(t),m,f)+1),p=n;const v=uC(c,t=>i<l(t)-QS,m,f).toSorted((t,e)=>t.top-e.top);for(let i=0;i<v.length;i++){const n=v[i];lC(t,n,e)&&(t.top=n.top+n.height+e.vertical)}o(t)&&(d=hC(c,t=>a(t)-QS>i,d),Wg(c).call(c,d,0,t),d<m&&m++,d<=f&&f++,d++);const y=t.top+t.height;if(y>g&&(g=y),s&&s())return null}return g}function lC(t,e,i){return t.top-i.vertical+QS<e.top+e.height&&t.top+t.height+i.vertical-QS>e.top}function hC(t,e,i){i||(i=0);for(let n=i;n<t.length;n++)if(e(t[n]))return n;return t.length}function cC(t,e,i,n){i||(i=0),n||(n=t.length);for(let o=n-1;o>=i;o--)if(e(t[o]))return o;return i-1}function uC(t,e,i,n){i||(i=0),n=n?Math.min(n,t.length):t.length;const o=[];for(let r=i;r<n;r++)e(t[r])&&o.push(t[r]);return o}var dC=Object.freeze({__proto__:null,nostack:oC,orderByEnd:eC,orderByStart:tC,stack:iC,stackSubgroups:rC,stackSubgroupsWithInnerStack:sC,substack:nC});const pC="__background__";class mC{constructor(t,e,i){if(this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=e&&e.subgroupOrder,this.itemSet=i,this.isVisible=null,this.height=0,this.stackDirty=!0,this._disposeCallbacks=[],e&&e.nestedGroups&&(this.nestedGroups=e.nestedGroups,0==e.showNested?this.showNested=!1:this.showNested=!0),e&&e.subgroupStack)if("boolean"==typeof e.subgroupStack)this.doInnerStack=e.subgroupStack,this.subgroupStackAll=e.subgroupStack;else for(const t in e.subgroupStack)Object.prototype.hasOwnProperty.call(e.subgroupStack,t)&&(this.subgroupStack[t]=e.subgroupStack[t],this.doInnerStack=this.doInnerStack||e.subgroupStack[t]);e&&e.heightMode?this.heightMode=e.heightMode:this.heightMode=i.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;const n=()=>{this.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",n),this._disposeCallbacks.push(()=>{this.itemSet.body.emitter.off("checkRangedItems",n)}),this._create(),this.setData(e)}_create(){const t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;const e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;const 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)}setData(t){if(this.itemSet.groupTouchParams.isDragging)return;let e,i;if(t&&t.subgroupVisibility)for(const e in t.subgroupVisibility)Object.prototype.hasOwnProperty.call(t.subgroupVisibility,e)&&(this.subgroupVisibility[e]=t.subgroupVisibility[e]);var n;this.itemSet.options&&this.itemSet.options.groupTemplate?(i=Yu(n=this.itemSet.options.groupTemplate).call(n,this),e=i(t,this.dom.inner)):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?JS.xss(e):JS.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?JS.removeClassName(this.dom.inner,"vis-hidden"):JS.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),JS.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(JS.removeClassName(this.dom.label,"collapsed"),JS.addClassName(this.dom.label,"expanded")):(JS.removeClassName(this.dom.label,"expanded"),JS.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,JS.removeClassName(this.dom.label,"collapsed"),JS.removeClassName(this.dom.label,"expanded"),JS.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(JS.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?JS.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):JS.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):JS.addClassName(this.dom.label,"vis-group-level-0");const o=t&&t.className||null;o!=this.className&&(this.className&&(JS.removeClassName(this.dom.label,this.className),JS.removeClassName(this.dom.foreground,this.className),JS.removeClassName(this.dom.background,this.className),JS.removeClassName(this.dom.axis,this.className)),JS.addClassName(this.dom.label,o),JS.addClassName(this.dom.foreground,o),JS.addClassName(this.dom.background,o),JS.addClassName(this.dom.axis,o),this.className=o),this.style&&(JS.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(JS.addCssText(this.dom.label,t.style),this.style=t.style)}getLabelWidth(){return this.props.label.width}_didMarkerHeightChange(){const t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;const e={};let i=0;op(JS).call(JS,this.items,(t,n)=>{if(t.dirty=!0,t.displayed){const o=!0;e[n]=t.redraw(o),i=e[n].length}});if(i>0)for(let t=0;t<i;t++)op(JS).call(JS,e,e=>{e[t]()});return!0}return!1}_calculateGroupSizeAndPosition(){const t=this.dom.foreground,e=t.offsetTop,i=t.offsetLeft,n=t.offsetWidth;this.top=e,this.right=i,this.width=n}_shouldBailItemsRedraw(){const t=this,e=this.itemSet.options.onTimeout,i={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:e&&e.timeoutMs,userBailFunction:e&&e.callback,shouldBailStackItems:this.shouldBailStackItems};let n=null;if(!this.itemSet.initialDrawDone){if(i.shouldBailStackItems)return!0;Math.abs(Kb()-new Date(i.relativeBailingTime))>i.bailTimeMs&&(i.userBailFunction&&null==this.itemSet.userContinueNotBail?i.userBailFunction(e=>{t.itemSet.userContinueNotBail=e,n=!e}):n=0==t.itemSet.userContinueNotBail)}return n}_redrawItems(t,e,i,n){if(t||this.stackDirty||this.isVisible&&!e){var o,r,s,a,l,h;const t={byEnd:gd(o=this.orderedItems.byEnd).call(o,t=>!t.isCluster),byStart:gd(r=this.orderedItems.byStart).call(r,t=>!t.isCluster)},e={byEnd:[...new Qf(gd(s=kd(a=this.orderedItems.byEnd).call(a,t=>t.cluster)).call(s,t=>!!t))],byStart:[...new Qf(gd(l=kd(h=this.orderedItems.byStart).call(h,t=>t.cluster)).call(l,t=>!!t))]},m=()=>{var i,o;return[...this._updateItemsInRange(t,gd(i=this.visibleItems).call(i,t=>!t.isCluster),n),...this._updateClustersInRange(e,gd(o=this.visibleItems).call(o,t=>t.isCluster),n)]},f=t=>{let e={};for(const n in this.subgroups){var i;if(!Object.prototype.hasOwnProperty.call(this.subgroups,n))continue;const o=gd(i=this.visibleItems).call(i,t=>t.data.subgroup===n);e[n]=t?o.toSorted((e,i)=>t(e.data,i.data)):o}return e};if("function"==typeof this.itemSet.options.order){const t=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){sC(f(this.itemSet.options.order),i,this.subgroups),this.visibleItems=m(),this._updateSubGroupHeights(i)}else{var c,u,d;this.visibleItems=m(),this._updateSubGroupHeights(i);const e=gd(c=Gb(u=this.visibleItems).call(u)).call(c,t=>t.isCluster||!t.isCluster&&!t.cluster).toSorted((e,i)=>t.itemSet.options.order(e.data,i.data));this.shouldBailStackItems=iC(e,i,!0,Yu(d=this._shouldBailItemsRedraw).call(d,this))}}else if(this.visibleItems=m(),this._updateSubGroupHeights(i),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){sC(f(),i,this.subgroups)}else{var p;this.shouldBailStackItems=iC(this.visibleItems,i,!0,Yu(p=this._shouldBailItemsRedraw).call(p,this))}else oC(this.visibleItems,i,this.subgroups,this.itemSet.options.stackSubgroups);for(let t=0;t<this.visibleItems.length;t++)this.visibleItems[t].repositionX(),void 0!==this.subgroupVisibility[this.visibleItems[t].data.subgroup]&&(this.subgroupVisibility[this.visibleItems[t].data.subgroup]||this.visibleItems[t].hide());this.itemSet.options.cluster&&op(JS).call(JS,this.items,t=>{t.cluster&&t.displayed&&t.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}_didResize(t,e){t=JS.updateProperty(this,"height",e)||t;const i=this.dom.inner.clientWidth,n=this.dom.inner.clientHeight;return t=JS.updateProperty(this.props.label,"width",i)||t,t=JS.updateProperty(this.props.label,"height",n)||t}_applyGroupHeight(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")}_updateItemsVerticalPosition(t){for(let e=0,i=this.visibleItems.length;e<i;e++){const i=this.visibleItems[e];i.repositionY(t),this.isVisible||this.groupId==pC||i.displayed&&i.hide()}}redraw(t,e,i,n){var o,r,s,a;let l=!1;const h=this.isVisible;let c;const u=[()=>{i=this._didMarkerHeightChange.call(this)||i},Yu(o=this._updateSubGroupHeights).call(o,this,e),Yu(r=this._calculateGroupSizeAndPosition).call(r,this),()=>{var i;this.isVisible=Yu(i=this._isGroupVisible).call(i,this)(t,e)},()=>{var n;Yu(n=this._redrawItems).call(n,this)(i,h,e,t)},Yu(s=this._updateSubgroupsSizes).call(s,this),()=>{var t;c=this.height=Yu(t=this._calculateHeight).call(t,this)(e)},Yu(a=this._calculateGroupSizeAndPosition).call(a,this),()=>{var t;l=Yu(t=this._didResize).call(t,this)(l,c)},()=>{var t;Yu(t=this._applyGroupHeight).call(t,this)(c)},()=>{var t;Yu(t=this._updateItemsVerticalPosition).call(t,this)(e)},()=>(!this.isVisible&&this.height&&(l=!1),l)];if(n)return u;{let t;return op(u).call(u,e=>{t=e()}),t}}_updateSubGroupHeights(t){if(gy(this.subgroups).length>0){const e=this;this._resetSubgroups(),op(JS).call(JS,this.visibleItems,i=>{void 0!==i.data.subgroup&&(e.subgroups[i.data.subgroup].height=Math.max(e.subgroups[i.data.subgroup].height,i.height+t.item.vertical),e.subgroups[i.data.subgroup].visible=void 0===this.subgroupVisibility[i.data.subgroup]||Boolean(this.subgroupVisibility[i.data.subgroup]))})}}_isGroupVisible(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}_calculateHeight(t){let e,i;if(i="fixed"===this.heightMode?JS.toArray(this.items):this.visibleItems,!this.isVisible&&this.height)e=Math.max(this.height,this.props.label.height);else if(i.length>0){let n=i[0].top,o=i[0].top+i[0].height;if(op(JS).call(JS,i,t=>{n=Math.min(n,t.top),o=Math.max(o,t.top+t.height)}),n>t.axis){const e=n-t.axis;o-=e,op(JS).call(JS,i,t=>{t.top-=e})}e=Math.ceil(o+t.item.vertical/2),"fitItems"!==this.heightMode&&(e=Math.max(e,this.props.label.height))}else e=this.props.label.height;return e}show(){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)}hide(){const t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);const e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);const i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);const n=this.dom.axis;n.parentNode&&n.parentNode.removeChild(n)}add(t){var e;this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups());if(!(this.itemSet.options.cluster&&!t.isCluster)&&!T_(e=this.visibleItems).call(e,t)){const e=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,e)}}_addToSubgroup(t){let 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);const 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)}_updateSubgroupsSizes(){const t=this;if(t.subgroups)for(const i in t.subgroups){var e;if(!Object.prototype.hasOwnProperty.call(t.subgroups,i))continue;const n=t.subgroups[i].items[0].data.end||t.subgroups[i].items[0].data.start;let o=t.subgroups[i].items[0].data.start,r=n-1;op(e=t.subgroups[i].items).call(e,t=>{new Date(t.data.start)<new Date(o)&&(o=t.data.start);const e=t.data.end||t.data.start;new Date(e)>new Date(r)&&(r=e)}),t.subgroups[i].start=o,t.subgroups[i].end=new Date(r-1)}}orderSubgroups(){if(void 0!==this.subgroupOrderer){const t=[];if("string"==typeof this.subgroupOrderer){for(const e in this.subgroups)Object.prototype.hasOwnProperty.call(this.subgroups,e)&&t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});Ly(t).call(t,(t,e)=>t.sortField-e.sortField)}else if("function"==typeof this.subgroupOrderer){for(const e in this.subgroups)Object.prototype.hasOwnProperty.call(this.subgroups,e)&&t.push(this.subgroups[e].items[0].data);Ly(t).call(t,this.subgroupOrderer)}if(t.length>0)for(let e=0;e<t.length;e++)this.subgroups[t[e].subgroup].index=e}}_resetSubgroups(){for(const t in this.subgroups)Object.prototype.hasOwnProperty.call(this.subgroups,t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}remove(t){var e,i;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;const n=Iw(e=this.visibleItems).call(e,t);-1!=n&&Wg(i=this.visibleItems).call(i,n,1),void 0!==t.data.subgroup&&(this._removeFromSubgroup(t),this.orderSubgroups())}_removeFromSubgroup(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(null!=e){const o=this.subgroups[e];if(o){var i;const r=Iw(i=o.items).call(i,t);var n;if(r>=0)Wg(n=o.items).call(n,r,1),o.items.length?this._updateSubgroupsSizes():delete this.subgroups[e]}}}removeFromDataSet(t){this.itemSet.removeItem(t.id)}order(){const t=JS.toArray(this.items),e=[],i=[];for(let 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},tC(this.orderedItems.byStart),eC(this.orderedItems.byEnd)}_updateItemsInRange(t,e,i){const n=[],o={};if(!this.isVisible&&void 0!==this.height&&this.groupId!=pC){for(let t=0;t<e.length;t++){var r=e[t];r.displayed&&r.hide()}return n}const s=(i.end-i.start)/4,a=i.start-s,l=i.end+s;if(e.length>0)for(let t=0;t<e.length;t++)this._checkIfVisibleWithReference(e[t],n,o,i);const h=JS.binarySearchCustom(t.byStart,t=>t<a?-1:t<=l?0:1,"data","start");this._traceVisible(h,t.byStart,n,o,t=>t.data.start<a||t.data.start>l);for(let e=0;e<t.byEnd.length;e++)this._checkIfVisibleWithReference(t.byEnd[e],n,o,i);this._sortVisibleItems(t.byStart,n,o);const c={};let u=0;for(let t=0;t<n.length;t++){const e=n[t];if(!e.displayed){const i=!0;c[t]=e.redraw(i),u=c[t].length}}if(u>0)for(let t=0;t<u;t++)op(JS).call(JS,c,e=>{e[t]()});for(let t=0;t<n.length;t++)n[t].repositionX();return n}_traceVisible(t,e,i,n,o){if(-1!=t){for(let r=t;r>=0;r--){let t=e[r];if(o(t))break;t.isCluster&&!t.hasItems()||t.cluster||void 0===n[t.id]&&(n[t.id]=!0,i.unshift(t))}for(let r=t+1;r<e.length;r++){let t=e[r];if(o(t))break;t.isCluster&&!t.hasItems()||t.cluster||void 0===n[t.id]&&(n[t.id]=!0,i.push(t))}}}_sortVisibleItems(t,e,i){e.length=0;for(let n=0;n<t.length;n++){let o=t[n];i[o.id]&&e.push(o)}}_checkIfVisible(t,e,i){t.isVisible(i)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}_checkIfVisibleWithReference(t,e,i,n){t.isVisible(n)?void 0===i[t.id]&&(i[t.id]=!0,e.push(t)):t.displayed&&t.hide()}_updateClustersInRange(t,e,i){const n=[],o={};if(e.length>0)for(let t=0;t<e.length;t++)this._checkIfVisibleWithReference(e[t],n,o,i);for(let e=0;e<t.byStart.length;e++)this._checkIfVisibleWithReference(t.byStart[e],n,o,i);for(let e=0;e<t.byEnd.length;e++)this._checkIfVisibleWithReference(t.byEnd[e],n,o,i);const r={};let s=0;for(let t=0;t<n.length;t++){const e=n[t];if(!e.displayed){const i=!0;r[t]=e.redraw(i),s=r[t].length}}if(s>0)for(var a=0;a<s;a++)op(JS).call(JS,r,function(t){t[a]()});for(let t=0;t<n.length;t++)n[t].repositionX();return n}changeSubgroup(t,e,i){this._removeFromSubgroup(t,e),this._addToSubgroup(t,i),this.orderSubgroups()}dispose(){let t;for(this.hide();t=this._disposeCallbacks.pop();)t()}}class fC extends mC{constructor(t,e,i){super(t,e,i),this.width=0,this.height=0,this.top=0,this.left=0}redraw(t,e){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(let t=0,i=this.visibleItems.length;t<i;t++){this.visibleItems[t].repositionY(e)}return!1}show(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}class gC{constructor(){this.options=null,this.props=null}setOptions(t){t&&JS.extend(this.options,t)}redraw(){return!1}destroy(){}_isResized(){const 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}}const vC={current:"current",time:"time",deleteSelected:"Delete selected"},yC={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},bC={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},_C={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},wC={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},xC={current:"actual",time:"hora",deleteSelected:"Eliminar selección"},DC={current:"поточний",time:"час",deleteSelected:"Видалити обране"},kC={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},SC={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},CC={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},TC={current:"güncel",time:"zaman",deleteSelected:"Seçileni sil"},MC={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},OC={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},EC={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},PC={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},IC={en:vC,en_EN:vC,en_US:vC,it:yC,it_IT:yC,it_CH:yC,nl:bC,nl_NL:bC,nl_BE:bC,de:_C,de_DE:_C,de_CH:_C,fr:wC,fr_FR:wC,fr_CA:wC,fr_BE:wC,fr_CH:wC,es:xC,es_ES:xC,uk:DC,uk_UA:DC,ru:kC,ru_RU:kC,pl:SC,pl_PL:SC,pt:CC,pt_BR:CC,pt_PT:CC,tr:TC,tr_TR:TC,ja:MC,ja_JP:MC,lt:PC,lt_LT:PC,sv:OC,sv_SE:OC,nb:EC,nn:EC,nb_NO:EC,nn_NO:EC};class NC extends gC{constructor(t,e){var i;super(),this.body=t,this.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:uS,locales:IC,locale:"en"},this.options=JS.extend({},this.defaultOptions),this.setOptions(e),this.options.locales=JS.extend({},IC,this.options.locales);const n=this.defaultOptions.locales[this.defaultOptions.locale];op(i=gy(this.options.locales)).call(i,t=>{this.options.locales[t]=JS.extend({},n,this.options.locales[t])}),this.offset=0,this._create()}_create(){const t=document.createElement("div");t.className="vis-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t}destroy(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}setOptions(t){t&&JS.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,t)}redraw(){if(this.options.showCurrentTime){var t,e;const i=this.body.dom.backgroundVertical;this.bar.parentNode!=i&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),i.appendChild(this.bar),this.start());let n=this.options.moment(Kb()+this.offset);this.options.alignCurrentTime&&(n=n.startOf(this.options.alignCurrentTime));const o=this.body.util.toScreen(n);let 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);let s=Yv(t=Yv(e="".concat(r.current," ")).call(e,r.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*o,"px)"):this.bar.style.transform="translateX(".concat(o,"px)"),this.bar.title=s}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}start(){const t=this;!function e(){t.stop();let 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=Ag(e,i)}()}stop(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}setCurrentTime(t){const e=JS.convert(t,"Date").valueOf(),i=Kb();this.offset=e-i,this.redraw()}getCurrentTime(){return new Date(Kb()+this.offset)}}class LC extends gC{constructor(t,e){var i;super(),this.body=t,this.defaultOptions={moment:uS,locales:IC,locale:"en",id:void 0,title:void 0},this.options=JS.extend({},this.defaultOptions),this.setOptions(e),this.options.locales=JS.extend({},IC,this.options.locales);const n=this.defaultOptions.locales[this.defaultOptions.locale];op(i=gy(this.options.locales)).call(i,t=>{this.options.locales[t]=JS.extend({},n,this.options.locales[t])}),e&&null!=e.time?this.customTime=e.time:this.customTime=new Date,this.eventParams={},this._create()}setOptions(t){t&&JS.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,t)}_create(){var t,e,i;const 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;const o=document.createElement("div");function r(t){this.body.range._onMouseWheel(t)}o.style.position="relative",o.style.top="0px",this.options.rtl?o.style.right="-10px":o.style.left="-10px",o.style.height="100%",o.style.width="20px",o.addEventListener?(o.addEventListener("mousewheel",Yu(r).call(r,this),!1),o.addEventListener("DOMMouseScroll",Yu(r).call(r,this),!1)):o.attachEvent("onmousewheel",Yu(r).call(r,this)),n.appendChild(o),this.hammer=new hS(o),this.hammer.on("panstart",Yu(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",Yu(e=this._onDrag).call(e,this)),this.hammer.on("panend",Yu(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:hS.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}destroy(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}redraw(){const t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar));const e=this.body.util.toScreen(this.customTime);let 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);let n=this.options.title;var o;void 0===n?(n=Yv(o="".concat(i.time,": ")).call(o,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),n=n.charAt(0).toUpperCase()+n.substring(1)):"function"==typeof n&&(n=n.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(e,"px"):this.bar.style.left="".concat(e,"px"),this.bar.title=n,!1}hide(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}setCustomTime(t){this.customTime=JS.convert(t,"Date"),this.redraw()}getCustomTime(){return new Date(this.customTime.valueOf())}setCustomMarker(t,e){var i;(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=JS.xss(t),this.marker.style.position="absolute",e)&&(this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",()=>{this.marker.focus()}),this.marker.addEventListener("input",Yu(i=this._onMarkerChange).call(i,this)),this.marker.title=t,this.marker.addEventListener("blur",t=>{this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}));this.bar.appendChild(this.marker)}setCustomTitle(t){this.options.title=t}_onDragStart(t){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,t.stopPropagation()}_onDrag(t){if(!this.eventParams.dragging)return;let e=this.options.rtl?-1*t.deltaX:t.deltaX;const i=this.body.util.toScreen(this.eventParams.customTime)+e,n=this.body.util.toTime(i),o=this.body.util.getScale(),r=this.body.util.getStep(),s=this.options.snap,a=s?s(n,o,r):n;this.setCustomTime(a),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation()}_onDragEnd(t){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}_onMarkerChange(t){this.body.emitter.emit("markerchange",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}_onMarkerChanged(t){this.body.emitter.emit("markerchanged",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}static customTimeFromTarget(t){let e=t.target;for(;e;){if(Object.prototype.hasOwnProperty.call(e,"custom-time"))return e["custom-time"];e=e.parentNode}return null}}var AC,FC,RC,YC,jC,HC,zC,GC,WC,BC={};function VC(){if(FC)return AC;FC=1;var t=R(),e=Y(),i=z(),n=mi(),o=aw().trim,r=sw(),s=i("".charAt),a=t.parseFloat,l=t.Symbol,h=l&&l.iterator,c=1/a(r+"-0")!=-1/0||h&&!e(function(){a(Object(h))});return AC=c?function(t){var e=o(n(t)),i=a(e);return 0===i&&"-"===s(e,0)?-0:i}:a,AC}function UC(){return jC?YC:(jC=1,function(){if(RC)return BC;RC=1;var t=ui(),e=VC();t({global:!0,forced:parseFloat!==e},{parseFloat:e})}(),YC=Wt().parseFloat)}function XC(){return zC?HC:(zC=1,HC=UC())}var qC=i(WC?GC:(WC=1,GC=XC()));class KC{constructor(t,e,i,n,o,r){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=r,this._start=t,this._end=e,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=s,this.autoScaleStart=i,this.autoScaleEnd=n,this.formattingFunction=a,i||n){const t=this,e=e=>{const i=e-e%(t.magnitudefactor*t.minorSteps[t.minorStepIdx]);return e%(t.magnitudefactor*t.minorSteps[t.minorStepIdx])>t.magnitudefactor*t.minorSteps[t.minorStepIdx]*.5?i+t.magnitudefactor*t.minorSteps[t.minorStepIdx]:i};i&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=e(this._start)),n&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=e(this._end)),this.determineScale()}}setCharHeight(t){this.majorCharHeight=t}setHeight(t){this.containerHeight=t}determineScale(){const t=this._end-this._start;this.scale=this.containerHeight/t;const 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);let n=0;i<0&&(n=i);let o=!1;for(let t=n;Math.abs(t)<=Math.abs(i);t++){this.magnitudefactor=Math.pow(10,t);for(let t=0;t<this.minorSteps.length;t++){if(this.magnitudefactor*this.minorSteps[t]>=e){o=!0,this.minorStepIdx=t;break}}if(!0===o)break}}is_major(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}getStep(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}getFirstMajor(){const t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}formatValue(t){let 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)}getLines(){const t=[],e=this.getStep(),i=(e-this._start%e)%e;for(let 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}followScale(t){const e=this.minorStepIdx,i=this._start,n=this._end,o=this,r=()=>{o.magnitudefactor*=2},s=()=>{o.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==e||r(),r()):(this.minorStepIdx=2,1==e||s(),s()));const a=t.convertValue(0),l=t.getStep()*t.scale;let h=!1,c=0;for(;!h&&c++<5;){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);const e=this.containerHeight/this.scale;this._start=i,this._end=this._start+e;const o=this._end*this.scale,c=this.magnitudefactor*this.majorSteps[this.minorStepIdx],u=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){const t=a-o;this._end+=t/this.scale,this._start=this._end-e}else this.autoScaleStart?(this._start-=u/this.scale,this._end=this._start+e):(this._start+=c-u/this.scale,this._end=this._start+e);if(!this.autoScaleEnd&&this._end>n+1e-5)s(),h=!1;else{if(!this.autoScaleStart&&this._start<i-1e-5){if(!(this.zeroAlign&&i>=0)){s(),h=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&e<n-i?(r(),h=!1):h=!0}}}convertValue(t){return this.containerHeight-(t-this._start)*this.scale}screenToValue(t){return(this.containerHeight-t)/this.scale+this._start}}class ZC extends gC{constructor(t,e,i,n){super(),this.id=Hk(),this.body=t,this.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:t=>"".concat(qC(t.toPrecision(3))),title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:t=>"".concat(qC(t.toPrecision(3))),title:{text:void 0,style:void 0}}},this.linegraphOptions=n,this.linegraphSVG=i,this.props={},this.DOMelements={lines:{},labels:{},title:{}},this.dom={},this.scale=void 0,this.range={start:0,end:0},this.options=JS.extend({},this.defaultOptions),this.conversionFactor=1,this.setOptions(e),this.width=Number("".concat(this.options.width).replace("px","")),this.minWidth=this.width,this.height=this.linegraphSVG.getBoundingClientRect().height,this.hidden=!1,this.stepPixels=25,this.zeroCrossing=-1,this.amountOfSteps=-1,this.lineOffset=0,this.master=!0,this.masterAxis=null,this.svgElements={},this.iconsRemoved=!1,this.groups={},this.amountOfGroups=0,this._create(),null==this.scale&&this._redrawLabels(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups};const o=this;this.body.emitter.on("verticalDrag",()=>{o.dom.lineContainer.style.top="".concat(o.body.domProps.scrollTop,"px")})}addGroup(t,e){Object.prototype.hasOwnProperty.call(this.groups,t)||(this.groups[t]=e),this.amountOfGroups+=1}updateGroup(t,e){Object.prototype.hasOwnProperty.call(this.groups,t)||(this.amountOfGroups+=1),this.groups[t]=e}removeGroup(t){Object.prototype.hasOwnProperty.call(this.groups,t)&&(delete this.groups[t],this.amountOfGroups-=1)}setOptions(t){if(t){let e=!1;this.options.orientation!=t.orientation&&void 0!==t.orientation&&(e=!0);const i=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];JS.selectiveDeepExtend(i,this.options,t),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===e&&this.dom.frame&&(this.hide(),this.show())}}_create(){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)}_redrawGroupIcons(){let t;Jk(this.svgElements);const e=this.options.iconWidth;let i=11.5;t="left"===this.options.orientation?4:this.width-e-4;const n=gy(this.groups);Ly(n).call(n,(t,e)=>t<e?-1:1);for(const o of n)!0!==this.groups[o].visible||void 0!==this.linegraphOptions.visibility[o]&&!0!==this.linegraphOptions.visibility[o]||(this.groups[o].getLegend(e,15,this.framework,t,i),i+=19);Qk(this.svgElements),this.iconsRemoved=!1}_cleanupIcons(){!1===this.iconsRemoved&&(Jk(this.svgElements),Qk(this.svgElements),this.iconsRemoved=!0)}show(){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"}hide(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}setRange(t,e){this.range.start=t,this.range.end=e}redraw(){let t=!1,e=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(const t in this.groups)Object.prototype.hasOwnProperty.call(this.groups,t)&&(!0!==this.groups[t].visible||void 0!==this.linegraphOptions.visibility[t]&&!0!==this.linegraphOptions.visibility[t]||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;const e=this.props,i=this.dom.frame;i.className="vis-data-axis",this._calculateCharSize();const n=this.options.orientation,o=this.options.showMinorLabels,r=this.options.showMajorLabels,s=this.body.dom.backgroundHorizontal.offsetWidth;e.minorLabelHeight=o?e.minorCharHeight:0,e.majorLabelHeight=r?e.majorCharHeight:0,e.minorLineWidth=s-this.lineOffset-this.width+2*this.options.minorLinesOffset,e.minorLineHeight=1,e.majorLineWidth=s-this.lineOffset-this.width+2*this.options.majorLinesOffset,e.majorLineHeight=1,"left"===n?(i.style.top="0",i.style.left="0",i.style.bottom="",i.style.width="".concat(this.width,"px"),i.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(i.style.top="",i.style.bottom="0",i.style.left="0",i.style.width="".concat(this.width,"px"),i.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(n)}return t}_redrawLabels(){let t=!1;Jk(this.DOMelements.lines),Jk(this.DOMelements.labels);const e=this.options.orientation,i=null!=this.options[e].range?this.options[e].range:{};let n=!0;null!=i.max&&(this.range.end=i.max,n=!1);let o=!0;null!=i.min&&(this.range.start=i.min,o=!1),this.scale=new KC(this.range.start,this.range.end,o,n,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[e].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;const r=this.scale.getLines();op(r).call(r,t=>{const i=t.y,n=t.major;this.options.showMinorLabels&&!1===n&&this._redrawLabel(i-2,t.val,e,"vis-y-axis vis-minor",this.props.minorCharHeight),n&&i>=0&&this._redrawLabel(i-2,t.val,e,"vis-y-axis vis-major",this.props.majorCharHeight),!0===this.master&&(n?this._redrawLine(i,e,"vis-grid vis-horizontal vis-major",this.options.majorLinesOffset,this.props.majorLineWidth):this._redrawLine(i,e,"vis-grid vis-horizontal vis-minor",this.options.minorLinesOffset,this.props.minorLineWidth))});let s=0;void 0!==this.options[e].title&&void 0!==this.options[e].title.text&&(s=this.props.titleCharHeight);const a=!0===this.options.icons?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-a&&!0===this.options.visible?(this.width=this.maxLabelSize+a,this.options.width="".concat(this.width,"px"),Qk(this.DOMelements.lines),Qk(this.DOMelements.labels),this.redraw(),t=!0):this.maxLabelSize<this.width-a&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+a),this.options.width="".concat(this.width,"px"),Qk(this.DOMelements.lines),Qk(this.DOMelements.labels),this.redraw(),t=!0):(Qk(this.DOMelements.lines),Qk(this.DOMelements.labels),t=!1),t}convertValue(t){return this.scale.convertValue(t)}screenToValue(t){return this.scale.screenToValue(t)}_redrawLabel(t,e,i,n,o){const r=iS("div",this.DOMelements.labels,this.dom.frame);r.className=n,r.innerHTML=JS.xss(e),"left"===i?(r.style.left="-".concat(this.options.labelOffsetX,"px"),r.style.textAlign="right"):(r.style.right="-".concat(this.options.labelOffsetX,"px"),r.style.textAlign="left"),r.style.top="".concat(t-.5*o+this.options.labelOffsetY,"px"),e+="";const s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<e.length*s&&(this.maxLabelSize=e.length*s)}_redrawLine(t,e,i,n,o){if(!0===this.master){const r=iS("div",this.DOMelements.lines,this.dom.lineContainer);r.className=i,r.innerHTML="","left"===e?r.style.left="".concat(this.width-n,"px"):r.style.right="".concat(this.width-n,"px"),r.style.width="".concat(o,"px"),r.style.top="".concat(t,"px")}}_redrawTitle(t){if(Jk(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){const e=iS("div",this.DOMelements.title,this.dom.frame);e.className="vis-y-axis vis-title vis-".concat(t),e.innerHTML=JS.xss(this.options[t].title.text),void 0!==this.options[t].title.style&&JS.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")}Qk(this.DOMelements.title)}_calculateCharSize(){if(!("minorCharHeight"in this.props)){const 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)){const t=document.createTextNode("0"),e=document.createElement("div");e.className="vis-y-axis vis-major vis-measure",e.appendChild(t),this.dom.frame.appendChild(e),this.props.majorCharHeight=e.clientHeight,this.props.majorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)}if(!("titleCharHeight"in this.props)){const t=document.createTextNode("0"),e=document.createElement("div");e.className="vis-y-axis vis-title vis-measure",e.appendChild(t),this.dom.frame.appendChild(e),this.props.titleCharHeight=e.clientHeight,this.props.titleCharWidth=e.clientWidth,this.dom.frame.removeChild(e)}}}function $C(){}function JC(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 QC(){}function tT(){}function eT(t,e,i,n){this.id=e;this.options=JS.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}$C.draw=function(t,e,i,n){n=n||0;for(var o=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),r=0;r<t.length;r++)if(o){var s=o(t[r],e);!0!==s&&"object"!=typeof s||nS(t[r].screen_x+n,t[r].screen_y,JC(e,s),i.svgElements,i.svg,t[r].label)}else nS(t[r].screen_x+n,t[r].screen_y,JC(e),i.svgElements,i.svg,t[r].label)},$C.drawIcon=function(t,e,i,n,o,r){var s=.5*o,a=eS("rect",r.svgElements,r.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"),nS(e+.5*n,i,JC(t),r.svgElements,r.svg)},QC.drawIcon=function(t,e,i,n,o,r){var s=.5*o,a=eS("rect",r.svgElements,r.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),h=t.options.barChart.width/l,c=Math.round(.4*o),u=Math.round(.75*o),d=Math.round((n-2*l)/3);if(oS(e+.5*l+d,i+s-c-1,l,c,t.className+" vis-bar",r.svgElements,r.svg,t.style),oS(e+1.5*l+d+2,i+s-u-1,l,u,t.className+" vis-bar",r.svgElements,r.svg,t.style),1==t.options.drawPoints.enabled){var p={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/h,className:t.className};nS(e+.5*l+d,i+s-c-1,p,r.svgElements,r.svg),nS(e+1.5*l+d+2,i+s-u-1,p,r.svgElements,r.svg)}},QC.draw=function(t,e,i){var n,o,r,s,a,l,h=[],c={},u=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++)h.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}),u+=1;if(0!==u)for(Ly(h).call(h,function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x}),QC._getDataIntersections(c,h),a=0;a<h.length;a++){var d=null!=(s=i.groups[h[a].groupId]).options.barChart.minWidth?s.options.barChart.minWidth:.1*s.options.barChart.width,p=0;if(void 0===c[o=h[a].screen_x])a+1<h.length&&(n=Math.abs(h[a+1].screen_x-o)),r=QC._getSafeDrawData(n,s,d);else{var m=a+(c[o].amount-c[o].resolved);m<h.length&&(n=Math.abs(h[m].screen_x-o)),r=QC._getSafeDrawData(n,s,d),c[o].resolved+=1,!0===s.options.stack&&!0!==s.options.excludeFromStacking?h[a].screen_y<s.zeroPosition?(p=c[o].accumulatedNegative,c[o].accumulatedNegative+=s.zeroPosition-h[a].screen_y):(p=c[o].accumulatedPositive,c[o].accumulatedPositive+=s.zeroPosition-h[a].screen_y):!0===s.options.barChart.sideBySide&&(r.width=r.width/c[o].amount,r.offset+=c[o].resolved*r.width-.5*r.width*(c[o].amount+1))}let t=r.width,e=h[a].screen_x;if(null!=h[a].screen_end?(t=h[a].screen_end-h[a].screen_x,e+=.5*t):e+=r.offset,oS(e,h[a].screen_y-p,t,s.zeroPosition-h[a].screen_y,s.className+" vis-bar",i.svgElements,i.svg,s.style),!0===s.options.drawPoints.enabled){let t={screen_x:h[a].screen_x,screen_y:h[a].screen_y-p,x:h[a].x,y:h[a].y,groupId:h[a].groupId,label:h[a].label};$C.draw([t],s,i,r.offset)}}},QC._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)},QC._getSafeDrawData=function(t,e,i){var n,o;return t<e.options.barChart.width&&t>0?(n=t<i?i:t,o=0,"left"===e.options.barChart.align?o-=.5*t:"right"===e.options.barChart.align&&(o+=.5*t)):(n=e.options.barChart.width,o=0,"left"===e.options.barChart.align?o-=.5*e.options.barChart.width:"right"===e.options.barChart.align&&(o+=.5*e.options.barChart.width)),{width:n,offset:o}},QC.getStackedYRange=function(t,e,i,n,o){if(t.length>0){Ly(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 r={};QC._getDataIntersections(r,t),e[n]=QC._getStackedYRange(r,t),e[n].yAxisOrientation=o,i.push(n)}},QC._getStackedYRange=function(t,e){for(var i,n=e[0].screen_y,o=e[0].screen_y,r=0;r<e.length;r++)void 0===t[i=e[r].screen_x]?(n=n>e[r].screen_y?e[r].screen_y:n,o=o<e[r].screen_y?e[r].screen_y:o):e[r].screen_y<0?t[i].accumulatedNegative+=e[r].screen_y:t[i].accumulatedPositive+=e[r].screen_y;for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n=(n=n>t[s].accumulatedNegative?t[s].accumulatedNegative:n)>t[s].accumulatedPositive?t[s].accumulatedPositive:n,o=(o=o<t[s].accumulatedNegative?t[s].accumulatedNegative:o)<t[s].accumulatedPositive?t[s].accumulatedPositive:o);return{min:n,max:o}},tT.calcPath=function(t,e){if(null!=t&&t.length>0){return 1==e.options.interpolation.enabled?tT._catmullRom(t,e):tT._linear(t)}},tT.drawIcon=function(t,e,i,n,o,r){var s,a,l=.5*o,h=eS("rect",r.svgElements,r.svg);(h.setAttributeNS(null,"x",e),h.setAttributeNS(null,"y",i-l),h.setAttributeNS(null,"width",n),h.setAttributeNS(null,"height",2*l),h.setAttributeNS(null,"class","vis-outline"),(s=eS("path",r.svgElements,r.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=eS("path",r.svgElements,r.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)&&nS(e+.5*n,i,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},r.svgElements,r.svg)},tT.drawShading=function(t,e,i,n){if(1==e.options.shaded.enabled){var o,r=Number(n.svg.style.height.replace("px","")),s=eS("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?r:Math.min(Math.max(0,e.zeroPosition),r),o="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",o)}},tT.draw=function(t,e,i){if(null!=t&&null!=t){var n=eS("path",i.svgElements,i.svg);n.setAttributeNS(null,"class",e.className),void 0!==e.style&&n.setAttributeNS(null,"style",e.style);var o="L";1==e.options.interpolation.enabled&&(o="C"),n.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,o,!1))}},tT.serializePath=function(t,e,i){if(t.length<2)return"";var n,o=e;if(i)for(n=t.length-2;n>0;n--)o+=t[n][0]+","+t[n][1]+" ";else for(n=1;n<t.length;n++)o+=t[n][0]+","+t[n][1]+" ";return o},tT._catmullRomUniform=function(t){var e,i,n,o,r,s,a=[];a.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var l=1/6,h=t.length,c=0;c<h-1;c++)e=0==c?t[0]:t[c-1],i=t[c],n=t[c+1],o=c+2<h?t[c+2]:n,r={screen_x:(-e.screen_x+6*i.screen_x+n.screen_x)*l,screen_y:(-e.screen_y+6*i.screen_y+n.screen_y)*l},s={screen_x:(i.screen_x+6*n.screen_x-o.screen_x)*l,screen_y:(i.screen_y+6*n.screen_y-o.screen_y)*l},a.push([r.screen_x,r.screen_y]),a.push([s.screen_x,s.screen_y]),a.push([n.screen_x,n.screen_y]);return a},tT._catmullRom=function(t,e){var i=e.options.interpolation.alpha;if(0==i||void 0===i)return this._catmullRomUniform(t);var n,o,r,s,a,l,h,c,u,d,p,m,f,g,v,y,b,_,w,x=[];x.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var D=t.length,k=0;k<D-1;k++)n=0==k?t[0]:t[k-1],o=t[k],r=t[k+1],s=k+2<D?t[k+2]:r,h=Math.sqrt(Math.pow(n.screen_x-o.screen_x,2)+Math.pow(n.screen_y-o.screen_y,2)),c=Math.sqrt(Math.pow(o.screen_x-r.screen_x,2)+Math.pow(o.screen_y-r.screen_y,2)),u=Math.sqrt(Math.pow(r.screen_x-s.screen_x,2)+Math.pow(r.screen_y-s.screen_y,2)),g=Math.pow(u,i),y=Math.pow(u,2*i),v=Math.pow(c,i),b=Math.pow(c,2*i),w=Math.pow(h,i),d=2*(_=Math.pow(h,2*i))+3*w*v+b,p=2*y+3*g*v+b,(m=3*w*(w+v))>0&&(m=1/m),(f=3*g*(g+v))>0&&(f=1/f),a={screen_x:(-b*n.screen_x+d*o.screen_x+_*r.screen_x)*m,screen_y:(-b*n.screen_y+d*o.screen_y+_*r.screen_y)*m},l={screen_x:(y*o.screen_x+p*r.screen_x-b*s.screen_x)*f,screen_y:(y*o.screen_y+p*r.screen_y-b*s.screen_y)*f},0==a.screen_x&&0==a.screen_y&&(a=o),0==l.screen_x&&0==l.screen_y&&(l=r),x.push([a.screen_x,a.screen_y]),x.push([l.screen_x,l.screen_y]),x.push([r.screen_x,r.screen_y]);return x},tT._linear=function(t){for(var e=[],i=0;i<t.length;i++)e.push([t[i].screen_x,t[i].screen_y]);return e},eT.prototype.setItems=function(t){null!=t?(this.itemsData=t,1==Ly(this.options)&&JS.insertSort(this.itemsData,function(t,e){return t.x>e.x?1:-1})):this.itemsData=[]},eT.prototype.getItems=function(){return this.itemsData},eT.prototype.setZeroPosition=function(t){this.zeroPosition=t},eT.prototype.setOptions=function(t){if(void 0!==t){JS.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),JS.mergeOptions(this.options,t,"interpolation"),JS.mergeOptions(this.options,t,"drawPoints"),JS.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==typeof 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))}},eT.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)},eT.prototype.getLegend=function(t,e,i,n,o){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!=o&&null!=o||(o=.5*e),this.options.style){case"line":tT.drawIcon(this,n,o,t,e,i);break;case"points":case"point":$C.drawIcon(this,n,o,t,e,i);break;case"bar":QC.drawIcon(this,n,o,t,e,i)}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},eT.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}};class iT{constructor(t,e,i){var n;this.id=null,this.parent=null,this.data=t,this.dom=null,this.conversion=e||{},this.defaultOptions={locales:IC,locale:"en"},this.options=JS.extend({},this.defaultOptions,i),this.options.locales=JS.extend({},IC,this.options.locales);const o=this.defaultOptions.locales[this.defaultOptions.locale];op(n=gy(this.options.locales)).call(n,t=>{this.options.locales[t]=JS.extend({},o,this.options.locales[t])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=i&&i.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(t),this.editable=null,this._updateEditStatus()}select(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}unselect(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}setData(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()}setSelectability(t){t&&(this.selectable=void 0===t.selectable||Boolean(t.selectable))}setParent(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}isVisible(){return!1}show(){return!1}hide(){return!1}redraw(){}repositionX(){}repositionY(){}_repaintDragCenter(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var t,e;const i=this,n=document.createElement("div");n.className="vis-drag-center",n.dragCenterItem=this,this.hammerDragCenter=new hS(n),this.hammerDragCenter.on("tap",t=>{i.parent.itemSet.body.emitter.emit("click",{event:t,item:i.id})}),this.hammerDragCenter.on("doubletap",t=>{t.stopPropagation(),i.parent.itemSet._onUpdateItem(i),i.parent.itemSet.body.emitter.emit("doubleClick",{event:t,item:i.id})}),this.hammerDragCenter.on("panstart",t=>{t.stopPropagation(),i.parent.itemSet._onDragStart(t)}),this.hammerDragCenter.on("panmove",Yu(t=i.parent.itemSet._onDrag).call(t,i.parent.itemSet)),this.hammerDragCenter.on("panend",Yu(e=i.parent.itemSet._onDragEnd).call(e,i.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),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))}_repaintDeleteButton(t){const 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){const e=this,i=document.createElement("div");this.options.rtl?i.className="vis-delete-rtl":i.className="vis-delete";let n=this.options.locales[this.options.locale];n||(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),n=this.options.locales.en),i.title=n.deleteSelected,this.hammerDeleteButton=new hS(i).on("tap",t=>{t.stopPropagation(),e.parent.removeFromDataSet(e)}),t.appendChild(i),this.dom.deleteButton=i}else this.selected&&e||!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))}_repaintOnItemUpdateTimeTooltip(t){if(!this.options.tooltipOnItemUpdateTime)return;const e=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&e&&!this.dom.onItemUpdateTimeTooltip){const e=document.createElement("div");e.className="vis-onUpdateTime-tooltip",t.appendChild(e),this.dom.onItemUpdateTimeTooltip=e}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%";const t=50,e=this.parent.itemSet.body.domProps.scrollTop;let n;n="top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height;let o,r;var i;if(n+this.parent.top-t<-e?(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)r=Yu(i=this.options.tooltipOnItemUpdateTime.template).call(i,this),o=r(this.data);else o="start: ".concat(uS(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(o+="<br> end: ".concat(uS(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=JS.xss(o)}}_getItemData(){return this.parent.itemSet.itemsData.get(this.id)}_updateContents(t){let e,i,n,o,r;const s=this._getItemData(),a=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];var l,h;this.options.visibleFrameTemplate?(r=Yu(l=this.options.visibleFrameTemplate).call(l,this),o=JS.xss(r(s,a))):o="";if(a)if(o instanceof Object&&!(o instanceof Element))r(s,a);else if(i=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(o),i){if(o instanceof Element)a.innerHTML="",a.appendChild(o);else if(null!=o)a.innerHTML=JS.xss(o);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=o}this.options.template?(n=Yu(h=this.options.template).call(h,this),e=n(s,t,this.data)):e=this.data.content;if(e instanceof Object&&!(e instanceof Element))n(s,t);else if(i=this._contentToString(this.content)!==this._contentToString(e),i){if(e instanceof Element)t.innerHTML="",t.appendChild(e);else if(null!=e)t.innerHTML=JS.xss(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}}_updateDataAttributes(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){let e=[];if(Qg(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=gy(this.data)}for(const i of e){const e=this.data[i];null!=e?t.setAttribute("data-".concat(i),e):t.removeAttribute("data-".concat(i))}}}_updateStyle(t){this.style&&(JS.removeCssText(t,this.style),this.style=null),this.data.style&&(JS.addCssText(t,this.data.style),this.style=this.data.style)}_contentToString(t){return"string"==typeof t?t:t&&"outerHTML"in t?t.outerHTML:t}_updateEditStatus(){this.options&&("boolean"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"==typeof this.options.editable&&(this.editable={},JS.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"==typeof this.data.editable&&(this.editable={},JS.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}getWidthLeft(){return 0}getWidthRight(){return 0}getTitle(){if(this.options.tooltip&&this.options.tooltip.template){var t;return Yu(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data)}return this.data.title}}iT.prototype.stack=!0;class nT extends iT{constructor(t,e,i){if(super(t,e,i),this.props={content:{width:0}},this.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))}}isVisible(t){return!this.cluster&&(this.data.start<t.end&&this.data.end>t.start)}_createDomElement(){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)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const 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}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);const 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"}}_getDomComponentsSizes(){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}}}_updateDomComponentsSizes(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}redraw(t){var e,i,n,o;let r;const s=[Yu(e=this._createDomElement).call(e,this),Yu(i=this._appendDomElement).call(i,this),Yu(n=this._updateDirtyDomComponents).call(n,this),()=>{var t;this.dirty&&(r=Yu(t=this._getDomComponentsSizes).call(t,this)())},()=>{var t;this.dirty&&Yu(t=this._updateDomComponentsSizes).call(t,this)(r)},Yu(o=this._repaintDomAdditionals).call(o,this)];if(t)return s;{let t;return op(s).call(s,e=>{t=e()}),t}}show(t){if(!this.displayed)return this.redraw(t)}hide(){if(this.displayed){const t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}}repositionX(t){const e=this.parent.width;let i=this.conversion.toScreen(this.data.start),n=this.conversion.toScreen(this.data.end);const o=void 0===this.data.align?this.options.align:this.data.align;let r,s;!1===this.data.limitSize||void 0!==t&&!0!==t||(i<-e&&(i=-e),n>2*e&&(n=2*e));const a=Math.max(Math.round(1e3*(n-i))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=i:this.left=i,this.width=a+this.props.content.width,s=this.props.content.width):(this.options.rtl?this.right=i:this.left=i,this.width=a,s=Math.min(n-i,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),o){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){const t=-1*Math.max(a-s,0);this.dom.content.style.transform="translateX(".concat(t,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(a-s,0),"px)");break;case"center":if(this.options.rtl){const t=-1*Math.max((a-s)/2,0);this.dom.content.style.transform="translateX(".concat(t,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((a-s)/2,0),"px)");break;default:if(r=this.overflow?n>0?Math.max(-i,0):-s:i<0?-i:0,this.options.rtl){const t=-1*r;this.dom.content.style.transform="translateX(".concat(t,"px)")}else this.dom.content.style.transform="translateX(".concat(r,"px)")}}repositionY(){const 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")}_repaintDragLeft(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){const 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)}_repaintDragRight(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){const 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)}}nT.prototype.baseClassName="vis-item vis-range";class oT extends iT{constructor(t,e,i){if(super(t,e,i),this.props={content:{width:0}},this.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))}}isVisible(t){return this.data.start<t.end&&this.data.end>t.start}_createDomElement(){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)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const 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}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);const t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+t}}_getDomComponentsSizes(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}_updateDomComponentsSizes(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}_repaintDomAdditionals(){}redraw(t){var e,i,n,o;let r;const s=[Yu(e=this._createDomElement).call(e,this),Yu(i=this._appendDomElement).call(i,this),Yu(n=this._updateDirtyDomComponents).call(n,this),()=>{var t;this.dirty&&(r=Yu(t=this._getDomComponentsSizes).call(t,this)())},()=>{var t;this.dirty&&Yu(t=this._updateDomComponentsSizes).call(t,this)(r)},Yu(o=this._repaintDomAdditionals).call(o,this)];if(t)return s;{let t;return op(s).call(s,e=>{t=e()}),t}}repositionY(){let t;const e=this.options.orientation.item;if(void 0!==this.data.subgroup){const t=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[t].height,"px"),this.dom.box.style.top="".concat("top"==e?this.parent.top+this.parent.subgroups[t].top:this.parent.top+this.parent.height-this.parent.subgroups[t].top-this.parent.subgroups[t].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof fC?(t=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"==e?"0":"",this.dom.box.style.top="top"==e?"0":""):(t=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(t,"px")}}oT.prototype.baseClassName="vis-item vis-background",oT.prototype.stack=!1,oT.prototype.show=nT.prototype.show,oT.prototype.hide=nT.prototype.hide,oT.prototype.repositionX=nT.prototype.repositionX;class rT extends iT{constructor(t,e,i){if(super(t,e,i),this.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))}isVisible(t){if(this.cluster)return!1;let e;const 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}_createDomElement(){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)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const 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 t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){const e=this.parent.dom.axis;if(!t)throw new Error("Cannot redraw item: parent has no axis container element");e.appendChild(this.dom.dot)}this.displayed=!0}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);const 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)}}_getDomComponentsSizes(){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}}}_updateDomComponentsSizes(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}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}redraw(t){var e,i,n,o;let r;const s=[Yu(e=this._createDomElement).call(e,this),Yu(i=this._appendDomElement).call(i,this),Yu(n=this._updateDirtyDomComponents).call(n,this),()=>{this.dirty&&(r=this._getDomComponentsSizes())},()=>{var t;this.dirty&&Yu(t=this._updateDomComponentsSizes).call(t,this)(r)},Yu(o=this._repaintDomAdditionals).call(o,this)];if(t)return s;{let t;return op(s).call(s,e=>{t=e()}),t}}show(t){if(!this.displayed)return this.redraw(t)}hide(){if(this.displayed){const 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}}repositionXY(){const t=this.options.rtl,e=function(t,e,i){var n;if(void 0===e&&void 0===i)return;const o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?-1*e:e;t.style.transform=void 0!==i?void 0!==e?Yv(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)}repositionX(){const 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()}repositionY(){const t=this.options.orientation.item,e=this.dom.line.style;if("top"==t){const t=this.parent.top+this.top+1;this.boxY=this.top||0,e.height="".concat(t,"px"),e.bottom="",e.top="0"}else{const t=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(t,"px"),e.top="",e.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}getWidthLeft(){return this.width/2}getWidthRight(){return this.width/2}}class sT extends iT{constructor(t,e,i){if(super(t,e,Cv({},{fitOnDoubleClick:!0},i,{editable:!1})),this.props={content:{width:0,height:0}},!t||null==t.uiItems)throw new Error('Property "uiItems" missing in item '+t.id);this.id=Hk(),this.group=t.group,this._setupRange(),this.emitter=this.data.eventEmitter,this.range=this.data.range,this.attached=!1,this.isCluster=!0,this.data.isCluster=!0}hasItems(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}setUiItems(t){this.detach(),this.data.uiItems=t,this._setupRange(),this.attach()}isVisible(t){const e=this.data.end?this.data.end-this.data.start:0,i=this.width*t.getMillisecondsPerPixel(),n=Math.max(this.data.start.getTime()+e,this.data.start.getTime()+i);return this.data.start<t.end&&n>t.start&&this.hasItems()}getData(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}redraw(t){var e,i,n,o,r,s,a,l,h=[Yu(e=this._createDomElement).call(e,this),Yu(i=this._appendDomElement).call(i,this),Yu(n=this._updateDirtyDomComponents).call(n,this),Yu(o=function(){this.dirty&&(a=this._getDomComponentsSizes())}).call(o,this),Yu(r=function(){var t;this.dirty&&Yu(t=this._updateDomComponentsSizes).call(t,this)(a)}).call(r,this),Yu(s=this._repaintDomAdditionals).call(s,this)];return t?h:(op(h).call(h,function(t){l=t()}),l)}show(){this.displayed||this.redraw()}hide(){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}}repositionX(){let 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{let e=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,e)}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))}repositionStype(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block";const i=this.dom.line.offsetWidth,n=this.dom.dot.offsetWidth;if(e){const o=i+t+(e-t)/2,r=o-n/2,s=this.options.rtl?-1*o:o,a=this.options.rtl?-1*r:r;this.dom.line.style.transform="translateX(".concat(s,"px)"),this.dom.dot.style.transform="translateX(".concat(a,"px)")}else{const e=this.options.rtl?-1*t:t,i=this.options.rtl?-1*(t-n/2):t-n/2;this.dom.line.style.transform="translateX(".concat(e,"px)"),this.dom.dot.style.transform="translateX(".concat(i,"px)")}}repositionXWithoutRanges(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")}repositionXWithRanges(t,e){let 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"}repositionY(){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"}}getWidthLeft(){return this.width/2}getWidthRight(){return this.width/2}move(){this.repositionX(),this.repositionY()}attach(){var t;for(let t of this.data.uiItems)t.cluster=this;this.data.items=kd(t=this.data.uiItems).call(t,t=>t.data),this.attached=!0,this.dirty=!0}detach(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){for(let t of this.data.uiItems)delete t.cluster;this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}_onDoubleClick(){this._fit()}_setupRange(){var t,e,i;const n=kd(t=this.data.uiItems).call(t,t=>({start:t.data.start.valueOf(),end:t.data.end?t.data.end.valueOf():t.data.start.valueOf()}));this.data.min=Math.min(...kd(n).call(n,t=>Math.min(t.start,t.end||t.start))),this.data.max=Math.max(...kd(n).call(n,t=>Math.max(t.start,t.end||t.start)));const o=kd(e=this.data.uiItems).call(e,t=>t.center),r=id(o).call(o,(t,e)=>t+e,0)/this.data.uiItems.length;pv(i=this.data.uiItems).call(i,t=>t.data.end)?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(r),this.data.end=null)}_getUiItems(){var t;return this.data.uiItems&&this.data.uiItems.length?gd(t=this.data.uiItems).call(t,t=>t.cluster===this):[]}_createDomElement(){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=Yu(t=sT.prototype._onDoubleClick).call(t,this);this.dom.box["vis-item"]=this,this.dirty=!0}}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}const t=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var e=this.parent.dom.axis;if(!t)throw new Error("Cannot redraw item: parent has no axis container element");e.appendChild(this.dom.dot)}}this.displayed=!0}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);const 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")}}_getDomComponentsSizes(){const t={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(t.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},t.line={width:this.dom.line.offsetWidth}),t}_updateDomComponentsSizes(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}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}_isStipeVisible(){return this.minWidth>=this.width||!this.data.end}_getFitRange(){const t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}_fit(){if(this.emitter){const 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)}}_getItemData(){return this.data}}sT.prototype.baseClassName="vis-item vis-range vis-cluster";class aT extends iT{constructor(t,e,i){if(super(t,e,i),this.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))}isVisible(t){if(this.cluster)return!1;const e=this.width*t.getMillisecondsPerPixel();return this.data.start.getTime()+e>t.start&&this.data.start<t.end}_createDomElement(){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)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){const 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}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);const 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)}}_getDomComponentsSizes(){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}}}_updateDomComponentsSizes(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(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"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");const e=this.props.dot.width,i=this.options.rtl?e/2:e/2*-1;this.dom.dot.style.transform="translateX(".concat(i,"px"),this.dirty=!1}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}redraw(t){var e,i,n,o;let r;const s=[Yu(e=this._createDomElement).call(e,this),Yu(i=this._appendDomElement).call(i,this),Yu(n=this._updateDirtyDomComponents).call(n,this),()=>{this.dirty&&(r=this._getDomComponentsSizes())},()=>{var t;this.dirty&&Yu(t=this._updateDomComponentsSizes).call(t,this)(r)},Yu(o=this._repaintDomAdditionals).call(o,this)];if(t)return s;{let t;return op(s).call(s,e=>{t=e()}),t}}repositionXY(){const t=this.options.rtl;!function(t,e,i){var n;if(void 0===e&&void 0===i)return;const o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?-1*e:e;t.style.transform=void 0!==i?void 0!==e?Yv(n="translate(".concat(o,"px, ")).call(n,i,"px)"):"translateY(".concat(i,"px)"):"translateX(".concat(o,"px)")}(this.dom.point,this.pointX,this.pointY,t)}show(t){if(!this.displayed)return this.redraw(t)}hide(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}repositionX(){const 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()}repositionY(){const t=this.options.orientation.item;this.pointY="top"==t?this.top:this.parent.height-this.top-this.height,this.repositionXY()}getWidthLeft(){return this.props.dot.width}getWidthRight(){return this.props.dot.width}}var lT,hT,cT,uT,dT,pT,mT,fT,gT,vT={};function yT(){return cT?hT:(cT=1,function(){if(lT)return vT;lT=1;var t=ui(),e=co().find,i=ua(),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),i(n)}(),hT=Ul()("Array","find"))}function bT(){if(dT)return uT;dT=1;var t=Vt(),e=yT(),i=Array.prototype;return uT=function(n){var o=n.find;return n===i||t(i,n)&&o===i.find?e:o},uT}function _T(){return mT?pT:(mT=1,pT=bT())}var wT=i(gT?fT:(gT=1,fT=_T()));class xT{constructor(t,e){this.container=t,this.overflowMethod=e||"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)}setPosition(t,e){this.x=_w(t),this.y=_w(e)}setText(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=JS.xss(t)}show(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,r=0,s=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){let t=!1,n=!0;"flip"==this.overflowMethod&&(this.y-e<this.padding&&(n=!1),this.x+i>o-this.padding&&(t=!0)),r=t?this.x-i:this.x,s=n?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),(r=this.x)+i+this.padding>o&&(r=o-i-this.padding),r<this.padding&&(r=this.padding);this.frame.style.left=r+"px",this.frame.style.top=s+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}}var DT,kT,ST,CT,TT,MT,OT,ET,PT;function IT(){return ST?kT:(ST=1,DT||(DT=1,ui()({target:"String",proto:!0},{repeat:Qy()})),kT=Ul()("String","repeat"))}function NT(){if(TT)return CT;TT=1;var t=Vt(),e=IT(),i=String.prototype;return CT=function(n){var o=n.repeat;return"string"==typeof n||n===i||t(i,n)&&o===i.repeat?e:o},CT}function LT(){return OT?MT:(OT=1,MT=NT())}var AT=i(PT?ET:(PT=1,ET=LT()));function FT(t,e,i){if(i&&!Qg(i))return FT(t,e,[i]);if(e.hiddenDates=[],i&&1==Qg(i)){var n;for(let n=0;n<i.length;n++)if(void 0===AT(i[n])){const o={};o.start=t(i[n].start).toDate().valueOf(),o.end=t(i[n].end).toDate().valueOf(),e.hiddenDates.push(o)}Ly(n=e.hiddenDates).call(n,(t,e)=>t.start-e.start)}}function RT(t,e,i){if(i&&!Qg(i))return RT(t,e,[i]);if(i&&void 0!==e.domProps.centerContainer.width){FT(t,e,i);const n=t(e.range.start),o=t(e.range.end),r=(e.range.end-e.range.start)/e.domProps.centerContainer.width;for(let s=0;s<i.length;s++)if(void 0!==AT(i[s])){let 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*r){let t=0,r=o.clone();switch(AT(i[s])){case"daily":a.day()!=l.day()&&(t=1),a=a.dayOfYear(n.dayOfYear()).year(n.year()).subtract(7,"days"),l=l.dayOfYear(n.dayOfYear()).year(n.year()).subtract(7-t,"days"),r.add(1,"weeks");break;case"weekly":{const t=l.diff(a,"days"),e=a.day();a=a.date(n.date()).month(n.month()).year(n.year()),l=a.clone(),a=a.day(e).subtract(1,"weeks"),l=l.day(e).add(t,"days").subtract(1,"weeks"),r.add(1,"weeks");break}case"monthly":a.month()!=l.month()&&(t=1),a=a.month(n.month()).year(n.year()).subtract(1,"months"),l=l.month(n.month()).year(n.year()).subtract(1,"months").add(t,"months"),r.add(1,"months");break;case"yearly":a.year()!=l.year()&&(t=1),a=a.year(n.year()).subtract(1,"years"),l=l.year(n.year()).subtract(1,"years").add(t,"years"),r.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",AT(i[s]))}for(;a<r;)switch(e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()}),AT(i[s])){case"daily":a=a.add(1,"days"),l=l.add(1,"days");break;case"weekly":a=a.add(1,"weeks"),l=l.add(1,"weeks");break;case"monthly":a=a.add(1,"months"),l=l.add(1,"months");break;case"yearly":a=a.add(1,"y"),l=l.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",AT(i[s]))}e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()})}}YT(e);const s=qT(e.range.start,e.hiddenDates),a=qT(e.range.end,e.hiddenDates);let l=e.range.start,h=e.range.end;1==s.hidden&&(l=1==e.range.startToFront?s.startDate-1:s.endDate+1),1==a.hidden&&(h=1==e.range.endToFront?a.startDate-1:a.endDate+1),1!=s.hidden&&1!=a.hidden||e.range._applyRange(l,h)}}function YT(t){var e;const i=t.hiddenDates,n=[];for(var o=0;o<i.length;o++)for(let t=0;t<i.length;t++)o!=t&&1!=i[t].remove&&1!=i[o].remove&&(i[t].start>=i[o].start&&i[t].end<=i[o].end?i[t].remove=!0:i[t].start>=i[o].start&&i[t].start<=i[o].end?(i[o].end=i[t].end,i[t].remove=!0):i[t].end>=i[o].start&&i[t].end<=i[o].end&&(i[o].start=i[t].start,i[t].remove=!0));for(o=0;o<i.length;o++)!0!==i[o].remove&&n.push(i[o]);t.hiddenDates=n,Ly(e=t.hiddenDates).call(e,(t,e)=>t.start-e.start)}function jT(t,e,i){let n=!1;const o=e.current.valueOf();for(let t=0;t<e.hiddenDates.length;t++){const i=e.hiddenDates[t].start;var r=e.hiddenDates[t].end;if(o>=i&&o<r){n=!0;break}}if(1==n&&o<e._end.valueOf()&&o!=i){const n=t(i),o=t(r);n.year()!=o.year()?e.switchedYear=!0:n.month()!=o.month()?e.switchedMonth=!0:n.dayOfYear()!=o.dayOfYear()&&(e.switchedDay=!0),e.current=o}}function HT(t,e,i){let n;if(0==t.body.hiddenDates.length)return n=t.range.conversion(i),(e.valueOf()-n.offset)*n.scale;{const o=qT(e,t.body.hiddenDates);1==o.hidden&&(e=o.startDate);const r=GT(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){n=t.range.conversion(i,r);const o=WT(t.body.hiddenDates,e,n.offset);return e=t.options.moment(e).toDate().valueOf(),e+=o,-(n.offset-e.valueOf())*n.scale}if(e>t.range.end){const o={start:t.range.start,end:e};return e=BT(t.options.moment,t.body.hiddenDates,o,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale}return e=BT(t.options.moment,t.body.hiddenDates,t.range,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale}}function zT(t,e,i){if(0==t.body.hiddenDates.length){const n=t.range.conversion(i);return new Date(e/n.scale+n.offset)}{const n=GT(t.body.hiddenDates,t.range.start,t.range.end),o=(t.range.end-t.range.start-n)*e/i,r=UT(t.body.hiddenDates,t.range,o);return new Date(r+o+t.range.start)}}function GT(t,e,i){let n=0;for(let o=0;o<t.length;o++){const r=t[o].start,s=t[o].end;r>=e&&s<i&&(n+=s-r)}return n}function WT(t,e,i){let n=0;for(let o=0;o<t.length;o++){const r=t[o].start,s=t[o].end;r>=e&&s<=i&&(n+=s-r)}return n}function BT(t,e,i,n){return n=t(n).toDate().valueOf(),n-=VT(t,e,i,n)}function VT(t,e,i,n){let o=0;n=t(n).toDate().valueOf();for(let t=0;t<e.length;t++){const r=e[t].start,s=e[t].end;r>=i.start&&s<i.end&&n>=s&&(o+=s-r)}return o}function UT(t,e,i){let n=0,o=0,r=e.start;for(let s=0;s<t.length;s++){const a=t[s].start,l=t[s].end;if(a>=e.start&&l<e.end){if(o+=a-r,r=l,o>=i)break;n+=l-a}}return n}function XT(t,e,i,n){const o=qT(e,t);return 1==o.hidden?i<0?1==n?o.startDate-(o.endDate-e)-1:o.startDate-1:1==n?o.endDate+(e-o.startDate)+1:o.endDate+1:e}function qT(t,e){for(let o=0;o<e.length;o++){var i=e[o].start,n=e[o].end;if(t>=i&&t<n)return{hidden:!0,startDate:i,endDate:n}}return{hidden:!1,startDate:i,endDate:n}}var KT=Object.freeze({__proto__:null,convertHiddenOptions:FT,correctTimeForHidden:BT,getAccumulatedHiddenDuration:UT,getHiddenDurationBefore:VT,getHiddenDurationBeforeStart:WT,getHiddenDurationBetween:GT,getIsHidden:qT,printDates:function(t){for(let 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)},removeDuplicates:YT,snapAwayFromHidden:XT,stepOverHiddenDates:jT,toScreen:HT,toTime:zT,updateHiddenDates:RT});class ZT{constructor(t,e,i,n,o){this.moment=o&&o.moment||uS,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(t,e,i),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Qg(n)?this.hiddenDates=n:this.hiddenDates=null!=n?[n]:[],this.format=ZT.FORMAT}setMoment(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())}setFormat(t){const e=JS.deepExtend({},ZT.FORMAT);this.format=JS.deepExtend(e,t)}setRange(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()):Kb(),this._end=null!=e?this.moment(e.valueOf()):Kb(),this.autoScale&&this.setMinimumStep(i)}start(){this.current=this._start.clone(),this.roundToMinor()}roundToMinor(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current=this.current.year(this.step*Math.floor(this.current.year()/this.step)).month(0);case"month":this.current=this.current.date(1);case"week":case"day":case"weekday":this.current=this.current.hours(0);case"hour":this.current=this.current.minutes(0);case"minute":this.current=this.current.seconds(0);case"second":this.current=this.current.milliseconds(0)}if(1!=this.step){let t=this.current.clone();switch(this.scale){case"millisecond":this.current=this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current=this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current=this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current=this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current=this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current=this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current=this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current=this.current.subtract(this.current.year()%this.step,"year")}t.isSame(this.current)||(this.current=this.moment(XT(this.hiddenDates,this.current.valueOf(),-1,!0)))}}hasNext(){return this.current.valueOf()<=this._end.valueOf()}next(){const t=this.current.valueOf();switch(this.scale){case"millisecond":this.current=this.current.add(this.step,"millisecond");break;case"second":this.current=this.current.add(this.step,"second");break;case"minute":this.current=this.current.add(this.step,"minute");break;case"hour":this.current=this.current.add(this.step,"hour"),this.current.month()<6?this.current=this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!==0&&(this.current=this.current.add(this.step-this.current.hours()%this.step,"hour"));break;case"weekday":case"day":this.current=this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current=this.current.weekday(0).add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current=this.current.add(this.step,"week");else{const t=this.current.clone();t.add(1,"week"),t.isSame(this.current,"month")?this.current=this.current.add(this.step,"week"):this.current=this.current.add(this.step,"week").date(1)}break;case"month":this.current=this.current.add(this.step,"month");break;case"year":this.current=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=this.current.milliseconds(0));break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&(this.current=this.current.seconds(0));break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&(this.current=this.current.minutes(0));break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&(this.current=this.current.hours(0));break;case"weekday":case"day":this.current.date()<this.step+1&&(this.current=this.current.date(1));break;case"week":this.current.week()<this.step&&(this.current=this.current.week(1));break;case"month":this.current.month()<this.step&&(this.current=this.current.month(0))}this.current.valueOf()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,jT(this.moment,this,t)}getCurrent(){return this.current.clone()}setScale(t){t&&"string"==typeof t.scale&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}setAutoScale(t){this.autoScale=t}setMinimumStep(t){if(null==t)return;const e=31104e6,i=2592e6,n=864e5,o=36e5,r=6e4,s=1e3;1e3*e>t&&(this.scale="year",this.step=1e3),500*e>t&&(this.scale="year",this.step=500),100*e>t&&(this.scale="year",this.step=100),50*e>t&&(this.scale="year",this.step=50),10*e>t&&(this.scale="year",this.step=10),5*e>t&&(this.scale="year",this.step=5),e>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),i>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),n>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),o>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),r>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),s>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)}static snap(t,e,i){let n=uS(t);if("year"==e){const t=n.year()+Math.round(n.month()/12);n=n.year(Math.round(t/i)*i).month(0).date(0).hours(0).minutes(0).seconds(0).milliseconds(0)}else if("month"==e)n=n.date()>15?n.date(1).add(1,"month"):n.date(1),n=n.hours(0).minutes(0).seconds(0).milliseconds(0);else if("week"==e)n=n.weekday()>2?n.weekday(0).add(1,"week"):n.weekday(0),n=n.hours(0).minutes(0).seconds(0).milliseconds(0);else if("day"==e){switch(i){case 5:case 2:n=n.hours(24*Math.round(n.hours()/24));break;default:n=n.hours(12*Math.round(n.hours()/12))}n=n.minutes(0).seconds(0).milliseconds(0)}else if("weekday"==e){switch(i){case 5:case 2:n=n.hours(12*Math.round(n.hours()/12));break;default:n=n.hours(6*Math.round(n.hours()/6))}n=n.minutes(0).seconds(0).milliseconds(0)}else if("hour"==e){if(4===i)n=n.minutes(60*Math.round(n.minutes()/60));else n=n.minutes(30*Math.round(n.minutes()/30));n=n.seconds(0).milliseconds(0)}else if("minute"==e){switch(i){case 15:case 10:n=n.minutes(5*Math.round(n.minutes()/5)).seconds(0);break;case 5:n=n.seconds(60*Math.round(n.seconds()/60));break;default:n=n.seconds(30*Math.round(n.seconds()/30))}n=n.milliseconds(0)}else if("second"==e)switch(i){case 15:case 10:n=n.seconds(5*Math.round(n.seconds()/5)).milliseconds(0);break;case 5:n=n.milliseconds(1e3*Math.round(n.milliseconds()/1e3));break;default:n=n.milliseconds(500*Math.round(n.milliseconds()/500))}else if("millisecond"==e){const t=i>5?i/2:1;n=n.milliseconds(Math.round(n.milliseconds()/t)*t)}return n}isMajor(){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}const 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":return this.options.showWeekScale?1==t.isoWeekday():1==t.date();case"week":return 1==t.date();case"month":return 0==t.month();default:return!1}}getLabelMinor(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);const e=this.format.minorLabels[this.scale];return"week"===this.scale&&1===t.date()&&0!==t.weekday()?"":e&&e.length>0?this.moment(t).format(e):""}getLabelMajor(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);const e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""}getClassName(){var t;const e=this.moment,i=this.moment(this.current),n=i.locale?i.locale("en"):i.lang("en"),o=this.step,r=[];function s(t){return t/o%2==0?" vis-even":" vis-odd"}function a(t){return t.isSame(Kb(),"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(Kb(),"week")?" vis-current-week":""}function h(t){return t.isSame(Kb(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":r.push(a(n)),r.push(s(n.milliseconds()));break;case"second":r.push(a(n)),r.push(s(n.seconds()));break;case"minute":r.push(a(n)),r.push(s(n.minutes()));break;case"hour":r.push(Yv(t="vis-h".concat(n.hours())).call(t,4==this.step?"-h"+(n.hours()+4):"")),r.push(a(n)),r.push(s(n.hours()));break;case"weekday":r.push("vis-".concat(n.format("dddd").toLowerCase())),r.push(a(n)),r.push(l(n)),r.push(s(n.date()));break;case"day":r.push("vis-day".concat(n.date())),r.push("vis-".concat(n.format("MMMM").toLowerCase())),r.push(a(n)),r.push(h(n)),r.push(this.step<=2?a(n):""),r.push(1===this.step?"vis-".concat(n.format("dddd").toLowerCase()):""),r.push(s(n.date()-1));break;case"week":r.push("vis-week".concat(n.format("w"))),r.push(l(n)),r.push(s(n.week()));break;case"month":r.push("vis-".concat(n.format("MMMM").toLowerCase())),r.push(h(n)),r.push(s(n.month()));break;case"year":r.push("vis-year".concat(n.year())),r.push(function(t){return t.isSame(Kb(),"year")?" vis-current-year":""}(n)),r.push(s(n.year()))}return gd(r).call(r,String).join(" ")}}ZT.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 $T,JT,QT,tM,eM,iM,nM,oM,rM,sM={};function aM(){return QT?JT:(QT=1,function(){if($T)return sM;$T=1;var t=ui(),e=co().every;t({target:"Array",proto:!0,forced:!zu()("every")},{every:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),JT=Ul()("Array","every"))}function lM(){if(eM)return tM;eM=1;var t=Vt(),e=aM(),i=Array.prototype;return tM=function(n){var o=n.every;return n===i||t(i,n)&&o===i.every?e:o},tM}function hM(){return nM?iM:(nM=1,iM=lM())}var cM=i(rM?oM:(rM=1,oM=hM()));const uM="__ungrouped__";class dM{constructor(t){this.itemSet=t,this.groups={},this.cache={},this.cache[-1]=[]}createClusterItem(t,e,i){return new sT(t,e,i)}setItems(t,e){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,e&&e.applyOnChangedLevel&&(this.applyOnChangedLevel=e.applyOnChangedLevel)}updateData(){this.dataChanged=!0,this.applyOnChangedLevel=!1}getClusters(t,e,i){let n="boolean"==typeof i?{}:i,o=n.maxItems,r=n.clusterCriteria;r||(r=()=>!0),o=o||1;let 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){const t=s!=this.cacheLevel;(!this.applyOnChangedLevel||t)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=s;let l=this.cache[s];if(!l){l=[];for(let e in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,e))continue;const n=this.groups[e],s=n.length;let h=0;for(;h<s;){let e=n[h],s=1,c=h-1;for(;c>=0&&e.center-n[c].center<a/2;)!n[c].cluster&&r(e.data,n[c].data)&&s++,c--;let u=h+1;for(;u<n.length&&n[u].center-e.center<a/2;)r(e.data,n[u].data)&&s++,u++;let d=l.length-1;for(;d>=0&&e.center-l[d].center<a;)e.group==l[d].group&&r(e.data,l[d].data)&&s++,d--;if(s>o){const a=s-o+1,c=[];let u=h;for(;c.length<a&&u<n.length;)r(n[h].data,n[u].data)&&c.push(n[u]),u++;const d=this.itemSet.getGroupId(e.data),p=this.itemSet.groups[d]||this.itemSet.groups[uM];let m=this._getClusterForItems(c,p,t,i);l.push(m),h+=a}else delete e.cluster,h+=1}}this.cache[s]=l}return l}_filterData(){const t={};this.groups=t;for(const e of ow(this.items)){const i=e.parent?e.parent.groupId:"";let n=t[i];n||(n=[],t[i]=n),n.push(e),e.data.start&&(e.data.end?e.center=(e.data.start.valueOf()+e.data.end.valueOf())/2:e.center=e.data.start.valueOf())}for(let i in t){var e;Object.prototype.hasOwnProperty.call(t,i)&&Ly(e=t[i]).call(e,(t,e)=>t.center-e.center)}this.dataChanged=!1}_getClusterForItems(t,e,i,n){var o;const r=kd(o=i||[]).call(o,t=>{var e;return{cluster:t,itemsIds:new Qf(kd(e=t.data.uiItems).call(e,t=>t.id))}});let s;if(r.length)for(let e of r)if(e.itemsIds.size===t.length&&cM(t).call(t,t=>e.itemsIds.has(t.id))){s=e.cluster;break}if(s)return s.setUiItems(t),s.group!==e&&(s.group&&s.group.remove(s),e&&(e.add(s),s.group=e)),s;let a=n.titleTemplate||"";const l={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},h=a.replace(/{count}/,t.length),c='<div title="'+h+'">'+t.length+"</div>",u=Cv({},n,this.itemSet.options),d={content:c,title:h,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return s=this.createClusterItem(d,l,u),e&&(e.add(s),s.group=e),s.attach(),s}_dropLevelsCache(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}const pM="__ungrouped__",mM="__background__";class fM extends gC{constructor(t,e){super(),this.body=t,this.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap(t,e){const i=e.order;e.order=t.order,t.order=i},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:ZT.snap,onDropObjectOnItem(t,e,i){i(e)},onAdd(t,e){e(t)},onUpdate(t,e){e(t)},onMove(t,e){e(t)},onRemove(t,e){e(t)},onMoving(t,e){e(t)},onAddGroup(t,e){e(t)},onMoveGroup(t,e){e(t)},onRemoveGroup(t,e){e(t)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},this.options=JS.extend({},this.defaultOptions),this.options.rtl=e.rtl,this.options.onTimeout=e.onTimeout,this.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},this.dom={},this.props={},this.hammer=null;const i=this;this.itemsData=null,this.groupsData=null,this.itemsSettingTime=null,this.initialItemSetDrawn=!1,this.userContinueNotBail=null,this.sequentialSelection=!1,this.itemListeners={add(t,e){i._onAdd(e.items),i.options.cluster&&i.clusterGenerator.setItems(i.items,{applyOnChangedLevel:!1}),i.redraw()},update(t,e){i._onUpdate(e.items),i.options.cluster&&i.clusterGenerator.setItems(i.items,{applyOnChangedLevel:!1}),i.redraw()},remove(t,e){i._onRemove(e.items),i.options.cluster&&i.clusterGenerator.setItems(i.items,{applyOnChangedLevel:!1}),i.redraw()}},this.groupListeners={add(t,e,n){if(i._onAddGroups(e.items),i.groupsData&&i.groupsData.length>0){var o;const t=i.groupsData.getDataSet();op(o=t.get()).call(o,e=>{if(e.nestedGroups){var i;0!=e.showNested&&(e.showNested=!0);let o=[];op(i=e.nestedGroups).call(i,i=>{const n=t.get(i);n&&(n.nestedInGroup=e.id,0==e.showNested&&(n.visible=!1),o=Yv(o).call(o,n))}),t.update(o,n)}})}},update(t,e){i._onUpdateGroups(e.items)},remove(t,e){i._onRemoveGroups(e.items)}},this.items={},this.groups={},this.groupIds=[],this.selection=[],this.popup=null,this.popupTimer=null,this.touchParams={},this.groupTouchParams={group:null,isDragging:!1},this._create(),this.setOptions(e),this.clusters=[]}_create(){var t,e,i,n,o,r,s,a,l,h,c,u,d,p,m;const f=document.createElement("div");f.className="vis-itemset",f["vis-itemset"]=this,this.dom.frame=f;const g=document.createElement("div");g.className="vis-background",f.appendChild(g),this.dom.background=g;const v=document.createElement("div");v.className="vis-foreground",f.appendChild(v),this.dom.foreground=v;const y=document.createElement("div");y.className="vis-axis",this.dom.axis=y;const b=document.createElement("div");b.className="vis-labelset",this.dom.labelSet=b,this._updateUngrouped();const _=new fC(mM,null,this);_.show(),this.groups[mM]=_,this.hammer=new hS(this.body.dom.centerContainer),this.hammer.on("hammer.input",t=>{t.isFirst&&this._onTouch(t)}),this.hammer.on("panstart",Yu(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",Yu(e=this._onDrag).call(e,this)),this.hammer.on("panend",Yu(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:hS.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",Yu(n=this._onSelectItem).call(n,this)),this.hammer.on("press",Yu(o=this._onMultiSelectItem).call(o,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",Yu(r=this._onAddItem).call(r,this)),this.options.rtl?this.groupHammer=new hS(this.body.dom.rightContainer):this.groupHammer=new hS(this.body.dom.leftContainer),this.groupHammer.on("tap",Yu(s=this._onGroupClick).call(s,this)),this.groupHammer.on("panstart",Yu(a=this._onGroupDragStart).call(a,this)),this.groupHammer.on("panmove",Yu(l=this._onGroupDrag).call(l,this)),this.groupHammer.on("panend",Yu(h=this._onGroupDragEnd).call(h,this)),this.groupHammer.get("pan").set({threshold:5,direction:hS.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",Yu(c=this._onMouseOver).call(c,this)),this.body.dom.centerContainer.addEventListener("mouseout",Yu(u=this._onMouseOut).call(u,this)),this.body.dom.centerContainer.addEventListener("mousemove",Yu(d=this._onMouseMove).call(d,this)),this.body.dom.centerContainer.addEventListener("contextmenu",Yu(p=this._onDragEnd).call(p,this)),this.body.dom.centerContainer.addEventListener("mousewheel",Yu(m=this._onMouseWheel).call(m,this)),this.show()}setOptions(t){if(t){var e,i;const n=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"];JS.selectiveExtend(n,this.options,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"==typeof t.itemsAlwaysDraggable&&(JS.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"==typeof 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"==typeof t.margin&&(JS.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"==typeof t.margin.item&&JS.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),op(e=["locale","locales"]).call(e,e=>{e in t&&(this.options[e]=t[e])}),"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"==typeof t.editable&&JS.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"==typeof t.groupEditable&&JS.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable));const o=e=>{const i=t[e];if(i){var n;if("function"!=typeof i)throw new Error(Yv(n="option ".concat(e," must be a function ")).call(n,e,"(item, callback)"));this.options[e]=i}};op(i=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(i,o),t.cluster?(Cv(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new dM(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()}}markDirty(t){this.groupIds=[],t&&(t.refreshItems&&op(JS).call(JS,this.items,t=>{t.dirty=!0,t.displayed&&t.redraw()}),t.restackGroups&&op(JS).call(JS,this.groups,(t,e)=>{e!==mM&&(t.stackDirty=!0)}))}destroy(){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}hide(){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)}show(){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))}setPopupTimer(t){if(this.clearPopupTimer(),t){const e=this.options.tooltip.delay||"number"==typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=Ag(function(){t.show()},e)}}clearPopupTimer(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}setSelection(t){var e;null==t&&(t=[]),Qg(t)||(t=[t]);const i=gd(e=this.selection).call(e,e=>-1===Iw(t).call(t,e));for(let t of i){const e=this.getItemById(t);e&&e.unselect()}this.selection=[...t];for(let e of t){const t=this.getItemById(e);t&&t.select()}}getSelection(){var t;return Yv(t=this.selection).call(t,[])}getVisibleItems(){const t=this.body.range.getRange();let e,i;this.options.rtl?(e=this.body.util.toScreen(t.start),i=this.body.util.toScreen(t.end)):(i=this.body.util.toScreen(t.start),e=this.body.util.toScreen(t.end));const n=[];for(const t in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,t))continue;const o=this.groups[t],r=o.isVisible?o.visibleItems:[];for(const t of r)this.options.rtl?t.right<i&&t.right+t.width>e&&n.push(t.id):t.left<e&&t.left+t.width>i&&n.push(t.id)}return n}getItemsAtCurrentTime(t){let e,i;this.options.rtl?(e=this.body.util.toScreen(t),i=this.body.util.toScreen(t)):(i=this.body.util.toScreen(t),e=this.body.util.toScreen(t));const n=[];for(const t in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,t))continue;const o=this.groups[t],r=o.isVisible?o.visibleItems:[];for(const t of r)this.options.rtl?t.right<i&&t.right+t.width>e&&n.push(t.id):t.left<e&&t.left+t.width>i&&n.push(t.id)}return n}getVisibleGroups(){const t=[];for(const e in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,e))continue;this.groups[e].isVisible&&t.push(e)}return t}getItemById(t){var e;return this.items[t]||wT(e=this.clusters).call(e,e=>e.id===t)}_deselect(t){const e=this.selection;for(let i=0,n=e.length;i<n;i++)if(e[i]==t){Wg(e).call(e,i,1);break}}redraw(){const t=this.options.margin,e=this.body.range,i=JS.option.asSize,n=this.options,o=n.orientation.item;let r=!1;const s=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,s.className="vis-itemset",this.options.cluster&&this._clusterItems(),r=this._orderGroups()||r;const a=e.end-e.start,l=a!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,h=e.start!=this.lastRangeStart,c=n.stack!=this.lastStack,u=n.stackSubgroups!=this.lastStackSubgroups,d=l||h||c||u;this.lastVisibleInterval=a,this.lastRangeStart=e.start,this.lastStack=n.stack,this.lastStackSubgroups=n.stackSubgroups,this.props.lastWidth=this.props.width;const p=this._firstGroup(),m={item:t.item,axis:t.axis},f={item:t.item,axis:t.item.vertical/2};let g=0;const v=t.axis+t.item.vertical;this.groups[mM].redraw(e,f,d);const y={};let b=0;op(JS).call(JS,this.groups,(t,i)=>{if(i===mM)return;const n=t==p?m:f;y[i]=t.redraw(e,n,d,!0),b=y[i].length});if(b>0){const t={};for(let e=0;e<b;e++)op(JS).call(JS,y,(i,n)=>{t[n]=i[e]()});op(JS).call(JS,this.groups,(e,i)=>{if(i===mM)return;const n=t[i];r=n||r,g+=e.height}),g=Math.max(g,v)}return g=Math.max(g,v),s.style.height=i(g),this.props.width=s.offsetWidth,this.props.height=g,this.dom.axis.style.top=i("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,r=this._isResized()||r,r}_firstGroup(){const t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t];return this.groups[e]||this.groups[pM]||null}_updateUngrouped(){let t,e,i=this.groups[pM];if(this.groupsData){if(i)for(e in i.dispose(),delete this.groups[pM],this.items){if(!Object.prototype.hasOwnProperty.call(this.items,e))continue;t=this.items[e],t.parent&&t.parent.remove(t);const i=this.getGroupId(t.data),n=this.groups[i];n&&n.add(t)||t.hide()}}else if(!i){const n=null,o=null;for(e in i=new mC(n,o,this),this.groups[pM]=i,this.items)Object.prototype.hasOwnProperty.call(this.items,e)&&(t=this.items[e],i.add(t));i.show()}}getLabelSet(){return this.dom.labelSet}setItems(t){this.itemsSettingTime=new Date;const e=this;let i;const n=this.itemsData;if(t){if(!BS(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=qS(t)}else this.itemsData=null;if(n&&(op(JS).call(JS,this.itemListeners,(t,e)=>{n.off(e,t)}),n.dispose(),i=n.getIds(),this._onRemove(i)),this.itemsData){const t=this.id;op(JS).call(JS,this.itemListeners,(i,n)=>{e.itemsData.on(n,i,t)}),i=this.itemsData.getIds(),this._onAdd(i),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}getItems(){return null!=this.itemsData?this.itemsData.rawDS:null}setGroups(t){const e=this;let i;if(this.groupsData&&(op(JS).call(JS,this.groupListeners,(t,i)=>{e.groupsData.off(i,t)}),i=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(i)),t){if(!BS(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var n;const t=this.groupsData.getDataSet();op(n=t.get()).call(n,e=>{var i;e.nestedGroups&&op(i=e.nestedGroups).call(i,i=>{const n=t.get(i);n.nestedInGroup=e.id,0==e.showNested&&(n.visible=!1),t.update(n)})});const o=this.id;op(JS).call(JS,this.groupListeners,(t,i)=>{e.groupsData.on(i,t,o)}),i=this.groupsData.getIds(),this._onAddGroups(i)}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})}getGroups(){return this.groupsData}removeItem(t){const e=this.itemsData.get(t);e&&this.options.onRemove(e,e=>{e&&this.itemsData.remove(t)})}_getType(t){return t.type||this.options.type||(t.end?"range":"box")}getGroupId(t){return"background"==this._getType(t)&&null==t.group?mM:this.groupsData?t.group:pM}_onUpdate(t){const e=this;op(t).call(t,t=>{const i=e.itemsData.get(t);let n=e.items[t];const o=i?e._getType(i):null,r=fM.types[o];let s;if(n&&(r&&n instanceof r?e._updateItem(n,i):(s=n.selected,e._removeItem(n),n=null)),!n&&i){if(!r)throw new TypeError('Unknown item type "'.concat(o,'"'));n=new r(i,e.conversion,e.options),n.id=t,e._addItem(n),s&&(this.selection.push(t),n.select())}}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}_onRemove(t){let e=0;const i=this;op(t).call(t,t=>{const n=i.items[t];n&&(e++,i._removeItem(n))}),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}_order(){op(JS).call(JS,this.groups,t=>{t.order()})}_onUpdateGroups(t){this._onAddGroups(t)}_onAddGroups(t){const e=this;op(t).call(t,t=>{const i=e.groupsData.get(t);let n=e.groups[t];if(n)n.setData(i);else{if(t==pM||t==mM)throw new Error("Illegal group id. ".concat(t," is a reserved id."));const o=Fp(e.options);JS.extend(o,{height:null}),n=new mC(t,i,e),e.groups[t]=n;for(const i in e.items){if(!Object.prototype.hasOwnProperty.call(e.items,i))continue;const o=e.items[i];o.data.group==t&&n.add(o)}n.order(),n.show()}}),this.body.emitter.emit("_change",{queue:!0})}_onRemoveGroups(t){op(t).call(t,t=>{const e=this.groups[t];e&&(e.dispose(),delete this.groups[t])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}_orderGroups(){if(this.groupsData){let t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);const e=!JS.equalArray(t,this.groupIds);if(e){const e=this.groups;op(t).call(t,t=>{e[t].hide()}),op(t).call(t,t=>{e[t].show()}),this.groupIds=t}return e}return!1}_orderNestedGroups(t){return function t(e,i){let n=[];return op(i).call(i,i=>{n.push(i);if(e.groupsData.get(i).nestedGroups){var o;const r=kd(o=e.groupsData.get({filter:t=>t.nestedInGroup==i,order:e.options.groupOrder})).call(o,t=>t.id);n=Yv(n).call(n,t(e,r))}}),n}(this,gd(t).call(t,t=>!this.groupsData.get(t).nestedInGroup))}_addItem(t){this.items[t.id]=t;const 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)}_updateItem(t,e){t.setData(e);const i=this.getGroupId(t.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}_removeItem(t){var e,i;t.hide(),delete this.items[t.id];const n=Iw(e=this.selection).call(e,t.id);-1!=n&&Wg(i=this.selection).call(i,n,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}_constructByEndArray(t){const e=[];for(let i=0;i<t.length;i++)t[i]instanceof nT&&e.push(t[i]);return e}_onTouch(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}_getGroupIndex(t){for(let e=0;e<this.groupIds.length;e++)if(t==this.groupIds[e])return e}_onDragStart(t){if(this.touchParams.itemIsDragging)return;const e=this.touchParams.item||null,i=this;let n;if(e&&(e.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=e.editable&&!e.editable.updateTime&&!e.editable.updateGroup&&!this.options.editable.overrideItems)return;const o=this.touchParams.dragLeftItem,r=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=e,o)n={item:o,initialX:t.center.x,dragLeft:!0,data:this._cloneItemData(e.data)},this.touchParams.itemProps=[n];else if(r)n={item:r,initialX:t.center.x,dragRight:!0,data:this._cloneItemData(e.data)},this.touchParams.itemProps=[n];else if(this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey))this._onDragStartAddItem(t);else{this.groupIds.length<1&&this.redraw();const n=this._getGroupIndex(e.data.group),o=this.options.itemsAlwaysDraggable.item&&!e.selected?[e.id]:this.getSelection();this.touchParams.itemProps=kd(o).call(o,e=>{const o=i.items[e],r=i._getGroupIndex(o.data.group);return{item:o,initialX:t.center.x,groupOffset:n-r,data:this._cloneItemData(o.data)}})}t.stopPropagation()}else this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey)&&this._onDragStartAddItem(t)}_onDragStartAddItem(t){const 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,o=this.body.util.toTime(n),r=this.body.util.getScale(),s=this.body.util.getStep(),a=e?e(o,r,s):o,l={type:"range",start:a,end:a,content:"new item"},h=Hk();l[this.itemsData.idProp]=h;const c=this.groupFromTarget(t);c&&(l.group=c.groupId);const u=new nT(l,this.conversion,this.options);u.id=h,u.data=this._cloneItemData(l),this._addItem(u),this.touchParams.selectedItem=u;const d={item:u,initialX:t.center.x,data:u.data};this.options.rtl?d.dragLeft=!0:d.dragRight=!0,this.touchParams.itemProps=[d],t.stopPropagation()}_onDrag(t){if(null!=this.popup&&this.options.showTooltips&&!this.popup.hidden){const e=this.body.dom.centerContainer,i=e.getBoundingClientRect();this.popup.setPosition(t.center.x-i.left+e.offsetLeft,t.center.y-i.top+e.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var e;t.stopPropagation();const i=this,n=this.options.snap||null,o=this.body.dom.root.offsetLeft,r=this.options.rtl?o+this.body.domProps.right.width:o+this.body.domProps.left.width,s=this.body.util.getScale(),a=this.body.util.getStep(),l=this.touchParams.selectedItem,h=(this.options.editable.overrideItems||null==l.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=l.editable&&l.editable.updateGroup;let c=null;if(h&&l&&null!=l.data.group){const e=i.groupFromTarget(t);e&&(c=this._getGroupIndex(e.groupId))}op(e=this.touchParams.itemProps).call(e,e=>{const o=i.body.util.toTime(t.center.x-r),u=i.body.util.toTime(e.initialX-r);let d,p,m,f,g;d=this.options.rtl?-(o-u):o-u;let v=this._cloneItemData(e.item.data);if(null!=e.item.editable&&!e.item.editable.updateTime&&!e.item.editable.updateGroup&&!i.options.editable.overrideItems)return;if((this.options.editable.overrideItems||null==l.editable)&&this.options.editable.updateTime||!this.options.editable.overrideItems&&null!=l.editable&&l.editable.updateTime)if(e.dragLeft)this.options.rtl?null!=v.end&&(m=JS.convert(e.data.end,"Date"),g=new Date(m.valueOf()+d),v.end=n?n(g,s,a):g):null!=v.start&&(p=JS.convert(e.data.start,"Date"),f=new Date(p.valueOf()+d),v.start=n?n(f,s,a):f);else if(e.dragRight)this.options.rtl?null!=v.start&&(p=JS.convert(e.data.start,"Date"),f=new Date(p.valueOf()+d),v.start=n?n(f,s,a):f):null!=v.end&&(m=JS.convert(e.data.end,"Date"),g=new Date(m.valueOf()+d),v.end=n?n(g,s,a):g);else if(null!=v.start)if(p=JS.convert(e.data.start,"Date").valueOf(),f=new Date(p+d),null!=v.end){m=JS.convert(e.data.end,"Date");const t=m.valueOf()-p.valueOf();v.start=n?n(f,s,a):f,v.end=new Date(v.start.valueOf()+t)}else v.start=n?n(f,s,a):f;if(h&&!e.dragLeft&&!e.dragRight&&null!=c&&null!=v.group){let t=c-e.groupOffset;t=Math.max(0,t),t=Math.min(i.groupIds.length-1,t),v.group=i.groupIds[t]}v=this._cloneItemData(v),i.options.onMoving(v,t=>{t&&e.item.setData(this._cloneItemData(t,"Date"))})}),this.body.emitter.emit("_change")}}_moveToGroup(t,e){const i=this.groups[e];if(i&&i.groupId!=t.data.group){const e=t.parent;e.remove(t),e.order(),t.data.group=i.groupId,i.add(t),i.order()}}_onDragEnd(t){if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){t.stopPropagation();const e=this,i=this.touchParams.itemProps;this.touchParams.itemProps=null,op(i).call(i,t=>{const i=t.item.id;if(null!=e.itemsData.get(i)){const n=this._cloneItemData(t.item.data);e.options.onMove(n,n=>{n?(n[this.itemsData.idProp]=i,this.itemsData.update(n)):(t.item.setData(t.data),e.body.emitter.emit("_change"))})}else e.options.onAdd(t.item.data,i=>{e._removeItem(t.item),i&&e.itemsData.add(i),e.body.emitter.emit("_change")})})}}_onGroupClick(t){const e=this.groupFromTarget(t);Ag(()=>{this.toggleGroupShowNested(e)},1)}toggleGroupShowNested(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t||!t.nestedGroups)return;const i=this.groupsData.getDataSet();t.showNested=null!=e?!!e:!t.showNested;let n=i.get(t.groupId);n.showNested=t.showNested;let o=t.nestedGroups,r=o;for(;r.length>0;){let t=r;r=[];for(let e=0;e<t.length;e++){let n=i.get(t[e]);n.nestedGroups&&(r=Yv(r).call(r,n.nestedGroups))}r.length>0&&(o=Yv(o).call(o,r))}var s;if(n.showNested){var a=i.get(n.nestedGroups);for(let t=0;t<a.length;t++){let e=a[t];e.nestedGroups&&e.nestedGroups.length>0&&(null==e.showNested||1==e.showNested)&&a.push(...i.get(e.nestedGroups))}s=kd(a).call(a,function(t){return null==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t})}else{var l;s=kd(l=i.get(o)).call(l,function(t){return null==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t})}i.update(Yv(s).call(s,n)),n.showNested?(JS.removeClassName(t.dom.label,"collapsed"),JS.addClassName(t.dom.label,"expanded")):(JS.removeClassName(t.dom.label,"expanded"),JS.addClassName(t.dom.label,"collapsed"))}toggleGroupDragClassName(t){t.dom.label.classList.toggle("vis-group-is-dragging"),t.dom.foreground.classList.toggle("vis-group-is-dragging")}_onGroupDragStart(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})))}_onGroupDrag(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();const e=this.groupsData.getDataSet(),i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){const e=i.top<this.groupTouchParams.group.top,n=t.center?t.center.y:t.clientY,o=i.dom.foreground.getBoundingClientRect(),r=this.groupTouchParams.group.height;if(e){if(o.top+r<n)return}else{const t=i.height;if(o.top+t-r>n)return}}if(i&&i!=this.groupTouchParams.group){const t=e.get(i.groupId),n=e.get(this.groupTouchParams.group.groupId);n&&t&&(this.options.groupOrderSwap(n,t,e),e.update(n),e.update(t));const o=e.getIds({order:this.options.groupOrder});if(!JS.equalArray(o,this.groupTouchParams.originalOrder)){const t=this.groupTouchParams.originalOrder,i=this.groupTouchParams.group.groupId,n=Math.min(t.length,o.length);let r=0,s=0,a=0;for(;r<n;){for(;r+s<n&&r+a<n&&o[r+s]==t[r+a];)r++;if(r+s>=n)break;if(o[r+s]==i)s=1;else if(t[r+a]==i)a=1;else{const i=Iw(o).call(o,t[r+a]),n=e.get(o[r+s]),l=e.get(t[r+a]);this.options.groupOrderSwap(n,l,e),e.update(n),e.update(l);const h=o[r+s];o[r+s]=t[r+a],o[i]=h,r++}}}}}}_onGroupDragEnd(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();const e=this,i=e.groupTouchParams.group.groupId,n=e.groupsData.getDataSet(),o=JS.extend({},n.get(i));e.options.onMoveGroup(o,t=>{if(t)t[n._idProp]=i,n.update(t);else{const t=n.getIds({order:e.options.groupOrder});if(!JS.equalArray(t,e.groupTouchParams.originalOrder)){const i=e.groupTouchParams.originalOrder,o=Math.min(i.length,t.length);let r=0;for(;r<o;){for(;r<o&&t[r]==i[r];)r++;if(r>=o)break;const s=Iw(t).call(t,i[r]),a=n.get(t[r]),l=n.get(i[r]);e.options.groupOrderSwap(a,l,n),n.update(a),n.update(l);const h=t[r];t[r]=i[r],t[s]=h,r++}}}}),e.body.emitter.emit("groupDragged",{groupId:i}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}_onSelectItem(t){if(!this.options.selectable)return;const e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),i=t.srcEvent&&t.srcEvent.shiftKey;if(e||i)return void this._onMultiSelectItem(t);const n=this.getSelection(),o=this.itemFromTarget(t),r=o&&o.selectable?[o.id]:[];this.setSelection(r);const s=this.getSelection();(s.length>0||n.length>0)&&this.body.emitter.emit("select",{items:s,event:t})}_onMouseOver(t){const e=this.itemFromTarget(t);if(!e)return;if(e===this.itemFromRelatedTarget(t))return;const i=e.getTitle();if(this.options.showTooltips&&i){null==this.popup&&(this.popup=new xT(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);const e=this.body.dom.centerContainer,n=e.getBoundingClientRect();this.popup.setPosition(t.clientX-n.left+e.offsetLeft,t.clientY-n.top+e.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}_onMouseOut(t){const e=this.itemFromTarget(t);if(!e)return;e!==this.itemFromRelatedTarget(t)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))}_onMouseMove(t){if(this.itemFromTarget(t)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){const 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()}}_onMouseWheel(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}_onUpdateItem(t){if(!this.options.selectable)return;if(!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;const e=this;if(t){const i=e.itemsData.get(t.id);this.options.onUpdate(i,t=>{t&&e.itemsData.update(t)})}}_onDropObjectOnItem(t){const e=this.itemFromTarget(t),i=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,e)}_onAddItem(t){if(!this.options.selectable)return;if(!this.options.editable.add)return;const e=this,i=this.options.snap||null,n=this.dom.frame.getBoundingClientRect(),o=this.options.rtl?n.right-t.center.x:t.center.x-n.left,r=this.body.util.toTime(o),s=this.body.util.getScale(),a=this.body.util.getStep();let l,h;"drop"==t.type?(h=JSON.parse(t.dataTransfer.getData("text")),h.content=h.content?h.content:"new item",h.start=h.start?h.start:i?i(r,s,a):r,h.type=h.type||"box",h[this.itemsData.idProp]=h.id||Hk(),"range"!=h.type||h.end||(l=this.body.util.toTime(o+this.props.width/5),h.end=i?i(l,s,a):l)):(h={start:i?i(r,s,a):r,content:"new item"},h[this.itemsData.idProp]=Hk(),"range"===this.options.type&&(l=this.body.util.toTime(o+this.props.width/5),h.end=i?i(l,s,a):l));const c=this.groupFromTarget(t);c&&(h.group=c.groupId),h=this._cloneItemData(h),this.options.onAdd(h,i=>{i&&(e.itemsData.add(i),"drop"==t.type&&e.setSelection([i.id]))})}_onMultiSelectItem(t){if(!this.options.selectable)return;const e=this.itemFromTarget(t);if(e){let i=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||!1||this.options.sequentialSelection)&&this.options.multiselect){const t=this.itemsData.get(e.id).group;let n;this.options.multiselectPerGroup&&i.length>0&&(n=this.itemsData.get(i[0]).group),this.options.multiselectPerGroup&&null!=n&&n!=t||i.push(e.id);const o=fM._getItemRange(this.itemsData.get(i));if(!this.options.multiselectPerGroup||n==t){i=[];for(const t in this.items){if(!Object.prototype.hasOwnProperty.call(this.items,t))continue;const e=this.items[t],r=e.data.start,s=void 0!==e.data.end?e.data.end:r;!(r>=o.min&&s<=o.max)||this.options.multiselectPerGroup&&n!=this.itemsData.get(e.id).group||e instanceof oT||i.push(e.id)}}}else{const t=Iw(i).call(i,e.id);-1==t?i.push(e.id):Wg(i).call(i,t,1)}const n=gd(i).call(i,t=>this.getItemById(t).selectable);this.setSelection(n),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}static _getItemRange(t){let e=null,i=null;return op(t).call(t,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}}itemFromElement(t){let e=t;for(;e;){if(Object.prototype.hasOwnProperty.call(e,"vis-item"))return e["vis-item"];e=e.parentNode}return null}itemFromTarget(t){return this.itemFromElement(t.target)}itemFromRelatedTarget(t){return this.itemFromElement(t.relatedTarget)}groupFromTarget(t){const e=t.center?t.center.y:t.clientY;let i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(let t=0;t<i.length;t++){const n=i[t],o=this.groups[n],r=o.dom.foreground,s=r.getBoundingClientRect();if(e>=s.top&&e<s.top+r.offsetHeight)return o;if("top"===this.options.orientation.item){if(t===this.groupIds.length-1&&e>s.top)return o}else if(0===t&&e<s.top+r.offset)return o}return null}static itemSetFromTarget(t){let e=t.target;for(;e;){if(Object.prototype.hasOwnProperty.call(e,"vis-itemset"))return e["vis-itemset"];e=e.parentNode}return null}_cloneItemData(t,e){const i=JS.extend({},t);return e||(e=this.itemsData.type),null!=i.start&&(i.start=JS.convert(i.start,e&&e.start||"Date")),null!=i.end&&(i.end=JS.convert(i.end,e&&e.end||"Date")),i}_clusterItems(){if(!this.options.cluster)return;const 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){for(let t of e)t.attach();this.clusters=e}this._updateClusters(e)}}_detachAllClusters(){if(this.options.cluster&&this.clusters&&this.clusters.length)for(let t of this.clusters)t.detach()}_updateClusters(t){if(this.clusters&&this.clusters.length){var e;const o=new Qf(kd(t).call(t,t=>t.id)),r=gd(e=this.clusters).call(e,t=>!o.has(t.id));let s=!1;for(let t of r){var i;const e=Iw(i=this.selection).call(i,t.id);var n;if(-1!==e)t.unselect(),Wg(n=this.selection).call(n,e,1),s=!0}if(s){const t=this.getSelection();this.body.emitter.emit("select",{items:t,event:event})}}this.clusters=t||[]}}function gM(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=JS.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)}fM.types={background:oT,box:rT,range:nT,point:aT},fM.prototype._onAdd=fM.prototype._onUpdate,gM.prototype=new gC,gM.prototype.clear=function(){this.groups={},this.amountOfGroups=0},gM.prototype.addGroup=function(t,e){1!=e.options.excludeFromLegend&&(Object.prototype.hasOwnProperty.call(this.groups,t)||(this.groups[t]=e),this.amountOfGroups+=1)},gM.prototype.updateGroup=function(t,e){this.groups[t]=e},gM.prototype.removeGroup=function(t){Object.prototype.hasOwnProperty.call(this.groups,t)&&(delete this.groups[t],this.amountOfGroups-=1)},gM.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)},gM.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},gM.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},gM.prototype.setOptions=function(t){JS.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,t)},gM.prototype.redraw=function(){var t=0,e=gy(this.groups);Ly(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 o=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+o+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 r="";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]||(r+=this.groups[n].content+"<br />");this.dom.textArea.innerHTML=JS.xss(r),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},gM.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=gy(this.groups);Ly(t).call(t,function(t,e){return t<e?-1:1}),tS(this.svgElements);var e=window.getComputedStyle(this.dom.frame).paddingTop,i=Number(e.replace("px","")),n=i,o=this.options.iconSize,r=.75*this.options.iconSize,s=i+.5*r+3;this.svg.style.width=o+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(o,r,this.framework,n,s),s+=r+this.options.iconSpacing)}}};var vM="__ungrouped__";function yM(t,e){this.id=Hk(),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=JS.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){i._onAdd(e.items)},update:function(t,e){i._onUpdate(e.items)},remove:function(t,e){i._onRemove(e.items)}},this.groupListeners={add:function(t,e){i._onAddGroups(e.items)},update:function(t,e){i._onUpdateGroups(e.items)},remove:function(t,e){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.svg.style.left=JS.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}}yM.prototype=new gC,yM.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 ZC(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new ZC(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new gM(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new gM(this.body,this.options.legend,"right",this.options.groups),this.show()},yM.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&&_w((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),JS.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,t),JS.mergeOptions(this.options,t,"interpolation"),JS.mergeOptions(this.options,t,"drawPoints"),JS.mergeOptions(this.options,t,"shaded"),JS.mergeOptions(this.options,t,"legend"),t.interpolation&&"object"==typeof 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)),Object.prototype.hasOwnProperty.call(this.groups,vM)&&this.groups[vM].setOptions(t)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},yM.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},yM.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},yM.prototype.setItems=function(t){var e,i=this,n=this.itemsData;if(t){if(!BS(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=qS(t)}else this.itemsData=null;if(n&&(op(JS).call(JS,this.itemListeners,function(t,e){n.off(e,t)}),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var o=this.id;op(JS).call(JS,this.itemListeners,function(t,e){i.itemsData.on(e,t,o)}),e=this.itemsData.getIds(),this._onAdd(e)}},yM.prototype.setGroups=function(t){var e,i=this;if(this.groupsData){op(JS).call(JS,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(!BS(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var o=this.id;op(JS).call(JS,this.groupListeners,function(t,e){i.groupsData.on(e,t,o)}),e=this.groupsData.getIds(),this._onAddGroups(e)}},yM.prototype._onUpdate=function(t){this._updateAllGroupData(t)},yM.prototype._onAdd=function(t){this._onUpdate(t)},yM.prototype._onRemove=function(t){this._onUpdate(t)},yM.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},yM.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},yM.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})},yM.prototype._removeGroup=function(t){Object.prototype.hasOwnProperty.call(this.groups,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])},yM.prototype._updateGroup=function(t,e){Object.prototype.hasOwnProperty.call(this.groups,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 eT(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()},yM.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var i={},n=this.itemsData.get(),o=this.itemsData.idProp,r={};t&&kd(t).call(t,function(t){r[t]=t});for(var s={},a=0;a<n.length;a++){var l=n[a],h=l.group;null==h&&(h=vM),Object.prototype.hasOwnProperty.call(s,h)?s[h]++:s[h]=1}var c={};if(!e&&t)for(h in this.groups)if(Object.prototype.hasOwnProperty.call(this.groups,h)){var u=(f=this.groups[h]).getItems();i[h]=gd(u).call(u,function(t){return c[t[o]]=t[o],t[o]!==r[t[o]]});var d=s[h];s[h]-=i[h].length,i[h].length<d&&(i[h][d-1]={})}for(a=0;a<n.length;a++)if(null==(h=(l=n[a]).group)&&(h=vM),e||!t||l[o]===r[l[o]]||!Object.prototype.hasOwnProperty.call(c,l[o])){Object.prototype.hasOwnProperty.call(i,h)||(i[h]=new Array(s[h]));var p=JS.bridgeObject(l);p.x=JS.convert(l.x,"Date"),p.end=JS.convert(l.end,"Date"),p.orginalY=l.y,p.y=Number(l.y),p[o]=l[o];var m=i[h].length-s[h]--;i[h][m]=p}for(h in this.groups)Object.prototype.hasOwnProperty.call(this.groups,h)&&!Object.prototype.hasOwnProperty.call(i,h)&&(i[h]=new Array(0));for(h in i)if(Object.prototype.hasOwnProperty.call(i,h))if(0==i[h].length)Object.prototype.hasOwnProperty.call(this.groups,h)&&this._removeGroup(h);else{var f=void 0;null!=this.groupsData&&(f=this.groupsData.get(h)),null==f&&(f={id:h,content:this.options.defaultGroup+h}),this._updateGroup(f,h),this.groups[h].setItems(i[h])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},yM.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=JS.option.asSize(3*this.props.width),this.svg.style.left=JS.option.asSize(-this.props.width),-1==Iw(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,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(0!=this.lastStart){var o=this.body.range.start-this.lastStart,r=this.body.range.end-this.body.range.start;if(0!=this.props.width){var s=o*(this.props.width/r);this.svg.style.left=-this.props.width-s+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),t},yM.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(Object.prototype.hasOwnProperty.call(this.groups,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})}JS.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),o=0;o<t.length;o++)n[o]=t[o].id;return n},yM.prototype._updateGraph=function(){if(Jk(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e,i={},n=this.body.util.toGlobalTime(-this.body.domProps.root.width),o=this.body.util.toGlobalTime(2*this.body.domProps.root.width),r=this._getSortedGroupIds();if(r.length>0){var s={};for(this._getRelevantData(r,s,n,o),this._applySampling(r,s),e=0;e<r.length;e++)this._convertXcoordinates(s[r[e]]);if(this._getYRanges(r,s,i),1==this._updateYAxis(r,i))return Qk(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var a=void 0;for(e=0;e<r.length;e++)t=this.groups[r[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[r[e]],t);var l={};for(e=0;e<r.length;e++)if("line"===(t=this.groups[r[e]]).options.style&&1==t.options.shaded.enabled){var h=s[r[e]];if(null==h||0==h.length)continue;if(Object.prototype.hasOwnProperty.call(l,r[e])||(l[r[e]]=tT.calcPath(h,t)),"group"===t.options.shaded.orientation){var c=t.options.shaded.groupId;if(-1===Iw(r).call(r,c)){console.log(t.id+": Unknown shading group target given:"+c);continue}Object.prototype.hasOwnProperty.call(l,c)||(l[c]=tT.calcPath(s[c],this.groups[c])),tT.drawShading(l[r[e]],t,l[c],this.framework)}else tT.drawShading(l[r[e]],t,void 0,this.framework)}for(QC.draw(r,s,this.framework),e=0;e<r.length;e++)if(t=this.groups[r[e]],s[r[e]].length>0)switch(t.options.style){case"line":Object.prototype.hasOwnProperty.call(l,r[e])||(l[r[e]]=tT.calcPath(s[r[e]],t)),tT.draw(l[r[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||$C.draw(s[r[e]],t,this.framework)}}}return Qk(this.svgElements),!1},yM.prototype._stack=function(t,e){var i,n,o,r,s;i=0;for(var a=0;a<t.length;a++){r=void 0,s=void 0;for(var l=i;l<e.length;l++){if(e[l].x===t[a].x){r=e[l],s=e[l],i=l;break}if(e[l].x>t[a].x){s=e[l],r=0==l?s:e[l-1],i=l;break}}void 0===s&&(r=e[e.length-1],s=e[e.length-1]),n=s.x-r.x,o=s.y-r.y,t[a].y=0==n?t[a].orginalY+s.y:t[a].orginalY+o/n*(t[a].x-r.x)+r.y}},yM.prototype._getRelevantData=function(t,e,i,n){var o,r,s,a;if(t.length>0)for(r=0;r<t.length;r++){var l=(o=this.groups[t[r]]).getItems();if(1==Ly(o.options)){var h=function(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},c=Math.max(0,JS.binarySearchValue(l,i,"x","before",h)),u=Math.min(l.length,JS.binarySearchValue(l,n,"x","after",h)+1);u<=0&&(u=l.length);var d=new Array(u-c);for(s=c;s<u;s++)a=o.itemsData[s],d[s-c]=a;e[t[r]]=d}else e[t[r]]=o.itemsData}},yM.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 o,r=n.length,s=r/(this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x));o=Math.min(Math.ceil(.2*r),Math.max(1,Math.round(s)));for(var a=new Array(r),l=0;l<r;l+=o){a[Math.round(l/o)]=n[l]}e[t[i]]=Wg(a).call(a,0,Math.round(r/o))}}},yM.prototype._getYRanges=function(t,e,i){var n,o,r,s,a=[],l=[];if(t.length>0){for(r=0;r<t.length;r++)n=e[t[r]],s=this.groups[t[r]].options,n.length>0&&(o=this.groups[t[r]],!0===s.stack&&"bar"===s.style?"left"===s.yAxisOrientation?a=Yv(a).call(a,n):l=Yv(l).call(l,n):i[t[r]]=o.getYRange(n,t[r]));QC.getStackedYRange(a,i,t,"__barStackLeft","left"),QC.getStackedYRange(l,i,t,"__barStackRight","right")}},yM.prototype._updateYAxis=function(t,e){var i,n,o=!1,r=!1,s=!1,a=1e9,l=1e9,h=-1e9,c=-1e9;if(t.length>0){for(let e=0;e<t.length;e++){var u=this.groups[t[e]];u&&"right"!=u.options.yAxisOrientation?(r=!0,a=1e9,h=-1e9):u&&u.options.yAxisOrientation&&(s=!0,l=1e9,c=-1e9)}for(let o=0;o<t.length;o++)Object.prototype.hasOwnProperty.call(e,t[o])&&!0!==e[t[o]].ignore&&(i=e[t[o]].min,n=e[t[o]].max,"right"!=e[t[o]].yAxisOrientation?(r=!0,a=a>i?i:a,h=h<n?n:h):(s=!0,l=l>i?i:l,c=c<n?n:c));1==r&&this.yAxisLeft.setRange(a,h),1==s&&this.yAxisRight.setRange(l,c)}o=this._toggleAxisVisiblity(r,this.yAxisLeft)||o,o=this._toggleAxisVisiblity(s,this.yAxisRight)||o,1==s&&1==r?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!r,this.yAxisRight.masterAxis=this.yAxisLeft,0==this.yAxisRight.master?(this.yAxisLeft.lineOffset=1==s?this.yAxisRight.width:0,o=this.yAxisLeft.redraw()||o,o=this.yAxisRight.redraw()||o):o=this.yAxisRight.redraw()||o;var d=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(let e=0;e<d.length;e++)-1!=Iw(t).call(t,d[e])&&Wg(t).call(t,Iw(t).call(t,d[e]),1);return o},yM.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},yM.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},yM.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 o=0;o<t.length;o++)t[o].screen_y=Math.round(i.convertValue(t[o].y));e.setZeroPosition(Math.min(n,i.convertValue(0)))};class bM extends gC{constructor(t,e){super(),this.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},this.props={range:{start:0,end:0,minimumStep:0},lineTop:0},this.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:JS.extend({},ZT.FORMAT),moment:uS,timeAxis:null},this.options=JS.extend({},this.defaultOptions),this.body=t,this._create(),this.setOptions(e)}setOptions(t){t&&(JS.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),JS.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.axis=t.orientation:"object"==typeof t.orientation&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"==typeof uS.locale?uS.locale(t.locale):uS.lang(t.locale)))}_create(){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"}destroy(){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}redraw(){const 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,o=e.parentNode!==n;this._calculateCharSize();const r=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,s=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;t.minorLabelHeight=r?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;const 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()||o}_repaintLabels(){const t=this.options.orientation.axis,e=JS.convert(this.body.range.start,"Number"),i=JS.convert(this.body.range.end,"Number"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf();let o=n-VT(this.options.moment,this.body.hiddenDates,this.body.range,n);o-=this.body.util.toTime(0).valueOf();const r=new ZT(new Date(e),new Date(i),o,this.body.hiddenDates,this.options);r.setMoment(this.options.moment),this.options.format&&r.setFormat(this.options.format),this.options.timeAxis&&r.setScale(this.options.timeAxis),this.step=r;const s=this.dom;let a,l,h,c,u,d;s.redundant.lines=s.lines,s.redundant.majorTexts=s.majorTexts,s.redundant.minorTexts=s.minorTexts,s.lines=[],s.majorTexts=[],s.minorTexts=[];let p,m,f,g=0,v=0;const y=1e3;let b;for(r.start(),l=r.getCurrent(),c=this.body.util.toScreen(l);r.hasNext()&&v<y;){if(v++,u=r.isMajor(),b=r.getClassName(),a=l,h=c,r.next(),l=r.getCurrent(),c=this.body.util.toScreen(l),p=g,g=c-h,"week"===r.scale)d=!0;else d=g>=.4*p;if(this.options.showMinorLabels&&d){var _=this._repaintMinorText(h,r.getLabelMinor(a),t,b);_.style.width="".concat(g,"px")}u&&this.options.showMajorLabels?(h>0&&(null==f&&(f=h),_=this._repaintMajorText(h,r.getLabelMajor(a),t,b)),m=this._repaintMajorLine(h,g,t,b)):d?m=this._repaintMinorLine(h,g,t,b):m&&(m.style.width="".concat(_w(m.style.width)+g,"px"))}if(v!==y||kM||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(y," lines.")),kM=!0),this.options.showMajorLabels){const e=this.body.util.toTime(0),i=r.getLabelMajor(e),n=i.length*(this.props.majorCharWidth||10)+10;(null==f||n<f)&&this._repaintMajorText(0,i,t,b)}op(JS).call(JS,this.dom.redundant,t=>{for(;t.length;){const e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}})}_repaintMinorText(t,e,i,n){let o=this.dom.redundant.minorTexts.shift();if(!o){const t=document.createTextNode("");o=document.createElement("div"),o.appendChild(t),this.dom.foreground.appendChild(o)}this.dom.minorTexts.push(o),o.innerHTML=JS.xss(e);let r="top"==i?this.props.majorLabelHeight:0;return this._setXY(o,t,r),o.className="vis-text vis-minor ".concat(n),o}_repaintMajorText(t,e,i,n){let o=this.dom.redundant.majorTexts.shift();if(!o){const t=document.createElement("div");o=document.createElement("div"),o.appendChild(t),this.dom.foreground.appendChild(o)}o.childNodes[0].innerHTML=JS.xss(e),o.className="vis-text vis-major ".concat(n);let r="top"==i?0:this.props.minorLabelHeight;return this._setXY(o,t,r),this.dom.majorTexts.push(o),o}_setXY(t,e,i){var n;const o=this.options.rtl?-1*e:e;t.style.transform=Yv(n="translate(".concat(o,"px, ")).call(n,i,"px)")}_repaintMinorLine(t,e,i,n){var o;let r=this.dom.redundant.lines.shift();r||(r=document.createElement("div"),this.dom.background.appendChild(r)),this.dom.lines.push(r);const s=this.props;r.style.width="".concat(e,"px"),r.style.height="".concat(s.minorLineHeight,"px");let a="top"==i?s.majorLabelHeight:this.body.domProps.top.height,l=t-s.minorLineWidth/2;return this._setXY(r,l,a),r.className=Yv(o="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(o,n),r}_repaintMajorLine(t,e,i,n){var o;let r=this.dom.redundant.lines.shift();r||(r=document.createElement("div"),this.dom.background.appendChild(r)),this.dom.lines.push(r);const s=this.props;r.style.width="".concat(e,"px"),r.style.height="".concat(s.majorLineHeight,"px");let a="top"==i?0:this.body.domProps.top.height,l=t-s.majorLineWidth/2;return this._setXY(r,l,a),r.className=Yv(o="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(o,n),r}_calculateCharSize(){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}}var _M,wM,xM,DM,kM=!1;function SM(){return wM?_M:(wM=1,xg(),_M=Wt().setInterval)}var CM=i(DM?xM:(DM=1,xM=SM()));function TM(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}function MM(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=hS(this.dom.overlay),this.hammer.on("tap",Yu(e=this._onTapOverlay).call(e,this));var n=this,o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];op(o).call(o,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=y(),this.escListener=Yu(i=this.deactivate).call(i,this)}ox(MM.prototype),MM.current=null,MM.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},MM.prototype.activate=function(){var t;MM.current&&MM.current.deactivate(),MM.current=this,this.active=!0,this.dom.overlay.style.display="none",JS.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),Yu(t=this.keycharm).call(t,"esc",this.escListener)},MM.prototype.deactivate=function(){MM.current===this&&(MM.current=null),this.active=!1,this.dom.overlay.style.display="",JS.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},MM.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};class OM{_create(t){var e,i,n;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",()=>{!0===this.initialDrawDone&&this._redraw()}),this.on("rangechanged",()=>{this.initialRangeChangeDone||(this.initialRangeChangeDone=!0)}),this.on("touch",Yu(e=this._onTouch).call(e,this)),this.on("panmove",Yu(i=this._onDrag).call(i,this));const o=this;this._origRedraw=Yu(n=this._redraw).call(n,this),this._redraw=JS.throttle(this._origRedraw),this.on("_change",t=>{o.itemSet&&o.itemSet.initialItemSetDrawn&&t&&1==t.queue?o._redraw():o._origRedraw()}),this.hammer=new hS(this.dom.root);const r=this.hammer.get("pinch").set({enable:!0});r&&function(t){t.getTouchAction=function(){return["pan-y"]}}(r),this.hammer.get("pan").set({threshold:5,direction:hS.DIRECTION_ALL}),this.timelineListeners={};const s=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];var a,l;function h(t){if(!this.isActive())return;if(this.emit("mousewheel",t),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)return;let e=0,i=0;"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));const n=this.options.verticalScroll,o=Math.abs(i)>=Math.abs(e),r=this.options.horizontalScroll&&this.options.horizontalScrollKey&&t[this.options.horizontalScrollKey];if(n&&o&&!r){const e=this.props.scrollTop,n=e+i;return void(this._setScrollTop(n)!==e&&(this._redraw(),this.emit("scroll",t),t.preventDefault()))}if(this.options.horizontalScroll){this.range.stopRolling();let n=(o?i:e)/120*(this.range.end-this.range.start)/20;this.options.horizontalScrollInvert&&o&&(n=-n);const r=this.range.start+n,s=this.range.end+n,a={animation:!1,byUser:!0,event:t};this.range.setRange(r,s,a),t.preventDefault()}}op(s).call(s,t=>{const e=e=>{o.isActive()&&o.emit(t,e)};o.hammer.on(t,e),o.timelineListeners[t]=e}),TM(this.hammer,t=>{o.emit("touch",t)}),a=this.hammer,(l=t=>{o.emit("release",t)}).inputHandler=function(t){t.isFinal&&l(t)},a.on("hammer.input",l.inputHandler);const c="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function u(t){if(o.options.verticalScroll&&(t.preventDefault(),o.isActive())){const 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,Yu(h).call(h,this),!1),this.dom.top.addEventListener(c,Yu(h).call(h,this),!1),this.dom.bottom.addEventListener(c,Yu(h).call(h,this),!1),this.dom.left.parentNode.addEventListener("scroll",Yu(u).call(u,this)),this.dom.right.parentNode.addEventListener("scroll",Yu(u).call(u,this));let d=!1;function p(t){var e;if(t.preventDefault&&(o.emit("dragover",o.getEventProperties(t)),t.preventDefault()),Iw(e=t.target.className).call(e,"timeline")>-1&&!d)return t.dataTransfer.dropEffect="move",d=!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 d=!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",Yu(p).call(p,this),!1),this.dom.center.addEventListener("drop",Yu(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)}setOptions(t){var e;if(t){const e=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","horizontalScrollKey","horizontalScrollInvert","verticalScroll","longSelectPressTime","snap"];if(JS.selectiveExtend(e,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"!=typeof 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"==typeof 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){const t=this.timeAxis2=new bM(this.body,this.options);t.setOptions=e=>{const i=e?JS.extend({},e):{};i.orientation="top",bM.prototype.setOptions.call(t,i)},this.components.push(t)}}else if(this.timeAxis2){var i;const t=Iw(i=this.components).call(i,this.timeAxis2);var n;if(-1!==t)Wg(n=this.components).call(n,t,1);this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&FT(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new MM(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(op(e=this.components).call(e,e=>e.setOptions(t)),"configure"in t){var o;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);const e=JS.deepExtend({},this.options);op(o=this.components).call(o,t=>{JS.deepExtend(e,t.options)}),this.configurator.setModuleOptions({global:e})}this._redraw()}isActive(){return!this.activator||this.activator.active}destroy(){var t;this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(const t in this.timelineListeners)Object.prototype.hasOwnProperty.call(this.timelineListeners,t)&&delete this.timelineListeners[t];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,op(t=this.components).call(t,t=>t.destroy()),this.body=null}setCustomTime(t,e){var i;const n=gd(i=this.customTimes).call(i,t=>e===t.options.id);if(0===n.length)throw new Error("No custom time bar found with id ".concat(db(e)));n.length>0&&n[0].setCustomTime(t)}getCustomTime(t){var e;const i=gd(e=this.customTimes).call(e,e=>e.options.id===t);if(0===i.length)throw new Error("No custom time bar found with id ".concat(db(t)));return i[0].getCustomTime()}setCustomTimeMarker(t,e,i){var n;const o=gd(n=this.customTimes).call(n,t=>t.options.id===e);if(0===o.length)throw new Error("No custom time bar found with id ".concat(db(e)));o.length>0&&o[0].setCustomMarker(t,i)}setCustomTimeTitle(t,e){var i;const n=gd(i=this.customTimes).call(i,t=>t.options.id===e);if(0===n.length)throw new Error("No custom time bar found with id ".concat(db(e)));if(n.length>0)return n[0].setCustomTitle(t)}getEventProperties(t){return{event:t}}addCustomTime(t,e){var i;const n=void 0!==t?JS.convert(t,"Date"):new Date,o=pv(i=this.customTimes).call(i,t=>t.options.id===e);if(o)throw new Error("A custom time with id ".concat(db(e)," already exists"));const r=new LC(this.body,JS.extend({},this.options,{time:n,id:e,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(r),this.components.push(r),this._redraw(),e}removeCustomTime(t){var e;const i=gd(e=this.customTimes).call(e,e=>e.options.id===t);if(0===i.length)throw new Error("No custom time bar found with id ".concat(db(t)));op(i).call(i,t=>{var e,i,n,o;Wg(e=this.customTimes).call(e,Iw(i=this.customTimes).call(i,t),1),Wg(n=this.components).call(n,Iw(o=this.components).call(o,t),1),t.destroy()})}getVisibleItems(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}getItemsAtCurrentTime(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}getVisibleGroups(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}fit(t,e){const i=this.getDataRange();if(null===i.min&&null===i.max)return;const n=i.max-i.min,o=new Date(i.min.valueOf()-.01*n),r=new Date(i.max.valueOf()+.01*n),s=!t||void 0===t.animation||t.animation;this.range.setRange(o,r,{animation:s},e)}getDataRange(){throw new Error("Cannot invoke abstract method getDataRange")}setWindow(t,e,i,n){let o,r;"function"==typeof arguments[2]&&(n=arguments[2],i={}),1==arguments.length?(r=arguments[0],o=void 0===r.animation||r.animation,this.range.setRange(r.start,r.end,{animation:o})):2==arguments.length&&"function"==typeof arguments[1]?(r=arguments[0],n=arguments[1],o=void 0===r.animation||r.animation,this.range.setRange(r.start,r.end,{animation:o},n)):(o=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:o},n))}moveTo(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});const n=this.range.end-this.range.start,o=JS.convert(t,"Date").valueOf(),r=o-n/2,s=o+n/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(r,s,{animation:a},i)}getWindow(){const t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}zoomIn(t,e,i){if(!t||t<0||t>1)return;"function"==typeof arguments[1]&&(i=arguments[1],e={});const n=this.getWindow(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=(s-s/(1+t))/2,l=o+a,h=r-a;this.setWindow(l,h,e,i)}zoomOut(t,e,i){if(!t||t<0||t>1)return;"function"==typeof arguments[1]&&(i=arguments[1],e={});const n=this.getWindow(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=o-s*t/2,l=r+s*t/2;this.setWindow(a,l,e,i)}redraw(){this._redraw()}_redraw(){var t;this.redrawCount++;const e=this.dom;if(!e||!e.container||0==e.root.offsetWidth)return;let i=!1;const n=this.options,o=this.props;RT(this.options.moment,this.body,this.options.hiddenDates),"top"==n.orientation?(JS.addClassName(e.root,"vis-top"),JS.removeClassName(e.root,"vis-bottom")):(JS.removeClassName(e.root,"vis-top"),JS.addClassName(e.root,"vis-bottom")),n.rtl?(JS.addClassName(e.root,"vis-rtl"),JS.removeClassName(e.root,"vis-ltr")):(JS.addClassName(e.root,"vis-ltr"),JS.removeClassName(e.root,"vis-rtl")),e.root.style.maxHeight=JS.option.asSize(n.maxHeight,""),e.root.style.minHeight=JS.option.asSize(n.minHeight,""),e.root.style.width=JS.option.asSize(n.width,"");const r=e.root.offsetWidth;o.border.left=1,o.border.right=1,o.border.top=1,o.border.bottom=1,o.center.height=e.center.offsetHeight,o.left.height=e.left.offsetHeight,o.right.height=e.right.offsetHeight,o.top.height=e.top.clientHeight||-o.border.top,o.bottom.height=Math.round(e.bottom.getBoundingClientRect().height)||e.bottom.clientHeight||-o.border.bottom;const s=Math.max(o.left.height,o.center.height,o.right.height),a=o.top.height+s+o.bottom.height+o.border.top+o.border.bottom;e.root.style.height=JS.option.asSize(n.height,"".concat(a,"px")),o.root.height=e.root.offsetHeight,o.background.height=o.root.height;const l=o.root.height-o.top.height-o.bottom.height;o.centerContainer.height=l,o.leftContainer.height=l,o.rightContainer.height=o.leftContainer.height,o.root.width=r,o.background.width=o.root.width,this.initialDrawDone||(o.scrollbarWidth=JS.getScrollBarWidth());const h=e.leftContainer.clientWidth,c=e.rightContainer.clientWidth;n.verticalScroll?n.rtl?(o.left.width=h||-o.border.left,o.right.width=c+o.scrollbarWidth||-o.border.right):(o.left.width=h+o.scrollbarWidth||-o.border.left,o.right.width=c||-o.border.right):(o.left.width=h||-o.border.left,o.right.width=c||-o.border.right),this._setDOM();let u=this._updateScrollTop();"top"!=n.orientation.item&&(u+=Math.max(o.centerContainer.height-o.center.height-o.border.top-o.border.bottom,0)),e.center.style.transform="translateY(".concat(u,"px)");const d=0==o.scrollTop?"hidden":"",p=o.scrollTop==o.scrollTopMin?"hidden":"";e.shadowTop.style.visibility=d,e.shadowBottom.style.visibility=p,e.shadowTopLeft.style.visibility=d,e.shadowBottomLeft.style.visibility=p,e.shadowTopRight.style.visibility=d,e.shadowBottomRight.style.visibility=p,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||o.center.height<o.centerContainer.height)&&(e.left.style.top="".concat(u,"px"),e.right.style.top="".concat(u,"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|$)")," "),o.left.width=h||-o.border.left,o.right.width=c||-o.border.right,this._setDOM());const m=o.center.height>o.centerContainer.height;this.hammer.get("pan").set({direction:m?hS.DIRECTION_ALL:hS.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),op(t=this.components).call(t,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")}_setDOM(){const t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;const 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"}setCurrentTime(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}getCurrentTime(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}_toTime(t){return zT(this,t,this.props.center.width)}_toGlobalTime(t){return zT(this,t,this.props.root.width)}_toScreen(t){return HT(this,t,this.props.center.width)}_toGlobalScreen(t){return HT(this,t,this.props.root.width)}_initAutoResize(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}_startAutoResize(){const t=this;this._stopAutoResize(),this._onResize=()=>{if(1==t.options.autoResize){if(t.dom.root){const 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=JS.getScrollBarWidth(),t.body.emitter.emit("_change"))}}else t._stopAutoResize()},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=CM(this._onResize,1e3)}_stopAutoResize(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}_onTouch(){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}_onPinch(){this.touch.allowDragging=!1}_onDrag(t){if(!t)return;if(!this.touch.allowDragging)return;const 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")}_setScrollTop(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}_updateScrollTop(){const t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-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.props.scrollTop}_getScrollTop(){return this.props.scrollTop}_createConfigurator(){throw new Error("Cannot invoke abstract method _createConfigurator")}}ox(OM.prototype);var EM={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"};class PM{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.pixelRatio=t,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=()=>{},this.closeCallback=()=>{},this._create()}insertTo(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}setCloseCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}_isColorString(t){if("string"==typeof t)return EM[t]}setColor(t){let e,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n=this._isColorString(t);if(void 0!==n&&(t=n),!0===JS.isString(t)){if(!0===JS.isValidRGB(t)){let i=t.substr(4).substr(0,t.length-5).split(",");e={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===JS.isValidRGBA(t)){let i=t.substr(5).substr(0,t.length-6).split(",");e={r:i[0],g:i[1],b:i[2],a:i[3]}}else if(!0===JS.isValidHex(t)){let i=JS.hexToRGB(t);e={r:i.r,g:i.g,b:i.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){let i=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:i}}if(void 0===e)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: "+db(t));this._setColor(e,i)}}show(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=JS.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ag(()=>{void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=JS.extend({},t)),this.color=t;let e=JS.RGBToHSV(t.r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),r=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}_setOpacity(t){this.color.a=t/100,this._updatePicker(this.color)}_setBrightness(t){let e=JS.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;let i=JS.HSVToRGB(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=JS.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);let n=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),tx(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+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){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){let t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{let t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}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 o=this;this.opacityRange.onchange=function(){o._setOpacity(this.value)},this.opacityRange.oninput=function(){o._setOpacity(this.value)},this.brightnessRange.onchange=function(){o._setBrightness(this.value)},this.brightnessRange.oninput=function(){o._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=Yu(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=Yu(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=Yu(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=Yu(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)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new hS(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),TM(this.hammer,t=>{this._moveSelector(t)}),this.hammer.on("tap",t=>{this._moveSelector(t)}),this.hammer.on("panstart",t=>{this._moveSelector(t)}),this.hammer.on("panmove",t=>{this._moveSelector(t)}),this.hammer.on("panend",t=>{this._moveSelector(t)})}_generateHueCircle(){if(!1===this.generated){let 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);let e,i,n,o,r=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,r,s),this.centerCoordinates={x:.5*r,y:.5*s},this.r=.49*r;let a,l=2*Math.PI/360,h=1/360,c=1/this.r;for(n=0;n<360;n++)for(o=0;o<this.r;o++)e=this.centerCoordinates.x+o*Math.sin(l*n),i=this.centerCoordinates.y+o*Math.cos(l*n),a=JS.HSVToRGB(n*h,o*c,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,r,s)}this.generated=!0}_moveSelector(t){let e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,o=.5*this.colorPickerDiv.clientHeight,r=.5*this.colorPickerDiv.clientWidth,s=i-r,a=n-o,l=Math.atan2(s,a),h=.98*Math.min(Math.sqrt(s*s+a*a),r),c=Math.cos(l)*h+o,u=Math.sin(l)*h+r;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=u-.5*this.colorPickerSelector.clientWidth+"px";let d=l/(2*Math.PI);d=d<0?d+1:d;let p=h/this.r,m=JS.RGBToHSV(this.color.r,this.color.g,this.color.b);m.h=d,m.s=p;let f=JS.HSVToRGB(m.h,m.s,m.v);f.a=this.color.a,this.color=f,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+")"}}class IM{constructor(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},JS.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new PM(n),this.wrapper=void 0}setOptions(t){if(void 0!==t){this.popupHistory={},this._removePopup();let e=!0;if("string"==typeof t)this.options.filter=t;else if(Qg(t))this.options.filter=t.join();else if("object"==typeof t){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==gd(t)&&(this.options.filter=gd(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===gd(this.options)&&(e=!1),this.options.enabled=e}this._clean()}setModuleOptions(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];let t=gd(this.options),e=0,i=!1;for(let n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?(i=t(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):!0!==t&&-1===Iw(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()}_push(){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()}_clean(){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()}_getValue(t){let e=this.moduleOptions;for(let i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}_makeItem(t){if(!0===this.allowCreation){let o=document.createElement("div");o.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return op(i).call(i,t=>{o.appendChild(t)}),this.domElements.push(o),this.domElements.length}return 0}_makeHeader(t){let e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerHTML=JS.xss(t),this._makeItem([],e)}_makeLabel(t,e){let 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?JS.xss("<i><b>"+t+":</b></i>"):JS.xss(t+":"),n}_makeDropdown(t,e,i){let n=document.createElement("select");n.className="vis-configuration vis-config-select";let o=0;void 0!==e&&-1!==Iw(t).call(t,e)&&(o=Iw(t).call(t,e));for(let e=0;e<t.length;e++){let i=document.createElement("option");i.value=t[e],e===o&&(i.selected="selected"),i.innerHTML=t[e],n.appendChild(i)}let r=this;n.onchange=function(){r._update(this.value,i)};let s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,n)}_makeRange(t,e,i){let n=t[0],o=t[1],r=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=o,a.max=r}catch(t){}a.step=s;let l="",h=0;if(void 0!==e){let t=1.2;e<0&&e*t<o?(a.min=Math.ceil(e*t),h=a.min,l="range increased"):e/t<o&&(a.min=Math.ceil(e/t),h=a.min,l="range increased"),e*t>r&&1!==r&&(a.max=Math.ceil(e*t),h=a.max,l="range increased"),a.value=e}else a.value=n;let c=document.createElement("input");c.className="vis-configuration vis-config-rangeinput",c.value=Number(a.value);var u=this;a.onchange=function(){c.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){c.value=this.value};let d=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,d,a,c);""!==l&&this.popupHistory[p]!==h&&(this.popupHistory[p]=h,this._setupPopup(l,p))}_makeButton(){if(!0===this.options.showButton){let t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerHTML="generate options",t.onclick=()=>{this._printOptions()},t.onmouseover=()=>{t.className="vis-configuration vis-config-button hover"},t.onmouseout=()=>{t.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(t)}}_setupPopup(t,e){if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){let i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerHTML=JS.xss(t),i.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:e}}}_removePopup(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(void 0!==this.popupDiv.html){let t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Ag(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Ag(()=>{this._removePopup()},1800)}}_makeCheckbox(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"==typeof t?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));let o=this;n.onchange=function(){o._update(this.checked,i)};let r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}_makeTextInput(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});let o=this;n.onchange=function(){o._update(this.value,i)};let r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}_makeColorField(t,e,i){let n=t[1],o=document.createElement("div");"none"!==(e=void 0===e?n:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?n:e,o.onclick=()=>{this._showColorPicker(e,o,i)};let r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,o)}_showColorPicker(t,e,i){e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(t=>{let n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=n,this._update(n,i)}),this.colorPicker.setCloseCallback(()=>{e.onclick=()=>{this._showColorPicker(t,e,i)}})}_handleObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,o=gd(this.options),r=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;n=!0;let a=t[s],l=JS.copyAndExtendArray(e,s);if("function"==typeof o&&(n=o(s,e),!1===n&&!Qg(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i)),!1!==n){r=!0;let t=this._getValue(l);if(Qg(a))this._handleArray(a,t,l);else if("string"==typeof a)this._makeTextInput(a,t,l);else if("boolean"==typeof a)this._makeCheckbox(a,t,l);else if(a instanceof Object){let t=!0;if(-1!==Iw(e).call(e,"physics")&&this.moduleOptions.physics.solver!==s&&(t=!1),!0===t)if(void 0!==a.enabled){let t=JS.copyAndExtendArray(l,"enabled"),e=this._getValue(t);if(!0===e){let t=this._makeLabel(s,l,!0);this._makeItem(l,t),r=this._handleObject(a,l)||r}else this._makeCheckbox(a,e,l)}else{let t=this._makeLabel(s,l,!0);this._makeItem(l,t),r=this._handleObject(a,l)||r}}else console.error("dont know how to handle",a,s,l)}}return r}_handleArray(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)}))}_update(t,e){let 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)}_constructOptions(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(let i=0;i<e.length;i++)"global"!==e[i]&&(void 0===n[e[i]]&&(n[e[i]]={}),i!==e.length-1?n=n[e[i]]:n[e[i]]=t);return i}_printOptions(){let t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+db(t,null,2)+"</pre>"}getOptions(){let t={};for(var e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}let NM,LM=!1;const AM="background: #FFeeee; color: #dd0000";class FM{static validate(t,e,i){LM=!1,NM=e;let n=e;return void 0!==i&&(n=e[i]),FM.parse(t,n,[]),LM}static parse(t,e,i){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&FM.check(n,t,e,i)}static check(t,e,i,n){if(void 0===i[t]&&void 0===i.__any__)return void FM.getSuggestion(t,i,n);let o=t,r=!0;void 0===i[t]&&void 0!==i.__any__&&(o="__any__",r="object"===FM.getType(e[t]));let s=i[o];r&&void 0!==s.__type__&&(s=s.__type__),FM.checkFields(t,e,i,o,s,n)}static checkFields(t,e,i,n,o,r){let s=function(e){console.log("%c"+e+FM.printLocation(r,t),AM)},a=FM.getType(e[t]),l=o[a];void 0!==l?"array"===FM.getType(l)&&-1===Iw(l).call(l,e[t])?(s('Invalid option detected in "'+t+'". Allowed values are:'+FM.print(l)+' not "'+e[t]+'". '),LM=!0):"object"===a&&"__any__"!==n&&(r=JS.copyAndExtendArray(r,t),FM.parse(e[t],i[n],r)):void 0===o.any&&(s('Invalid type received for "'+t+'". Expected: '+FM.print(gy(o))+". Received ["+a+'] "'+e[t]+'"'),LM=!0)}static getType(t){var e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Qg(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}static getSuggestion(t,e,i){let n,o=FM.findInOptions(t,e,i,!1),r=FM.findInOptions(t,NM,[],!0);n=void 0!==o.indexMatch?" in "+FM.printLocation(o.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':r.distance<=4&&o.distance>r.distance?" in "+FM.printLocation(o.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+FM.printLocation(r.path,r.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+FM.printLocation(o.path,t):". Did you mean one of these: "+FM.print(gy(e))+FM.printLocation(i,t),console.log('%cUnknown option detected: "'+t+'"'+n,AM),LM=!0}static findInOptions(t,e,i){let n,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=1e9,s="",a=[],l=t.toLowerCase();for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let u;if(void 0!==e[c].__type__&&!0===o){let o=FM.findInOptions(t,e[c],JS.copyAndExtendArray(i,c));r>o.distance&&(s=o.closestMatch,a=o.path,r=o.distance,n=o.indexMatch)}else{var h;-1!==Iw(h=c.toLowerCase()).call(h,l)&&(n=c),u=FM.levenshteinDistance(t,c),r>u&&(s=c,a=JS.copyArray(i),r=u)}}return{closestMatch:s,path:a,distance:r,indexMatch:n}}static printLocation(t,e){let i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n";for(let e=0;e<t.length;e++){for(let t=0;t<e+1;t++)i+="  ";i+=t[e]+": {\n"}for(let e=0;e<t.length+1;e++)i+="  ";i+=e+"\n";for(let e=0;e<t.length+1;e++){for(let n=0;n<t.length-e;n++)i+="  ";i+="}\n"}return i+"\n\n"}static print(t){return db(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var i,n,o=[];for(i=0;i<=e.length;i++)o[i]=[i];for(n=0;n<=t.length;n++)o[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)?o[i][n]=o[i-1][n-1]:o[i][n]=Math.min(o[i-1][n-1]+1,Math.min(o[i][n-1]+1,o[i-1][n]+1));return o[e.length][t.length]}}const RM="string",YM="boolean",jM="number",HM="date",zM="object",GM="moment",WM={configure:{enabled:{boolean:YM},filter:{boolean:YM,function:"function"},container:{dom:"dom"},__type__:{object:zM,boolean:YM,function:"function"}},alignCurrentTime:{string:RM,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:RM},sort:{boolean:YM},sampling:{boolean:YM},stack:{boolean:YM},graphHeight:{string:RM,number:jM},shaded:{enabled:{boolean:YM},orientation:{string:["bottom","top","zero","group"]},groupId:{object:zM},__type__:{boolean:YM,object:zM}},style:{string:["line","bar","points"]},barChart:{width:{number:jM},minWidth:{number:jM},sideBySide:{boolean:YM},align:{string:["left","center","right"]},__type__:{object:zM}},interpolation:{enabled:{boolean:YM},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:jM},__type__:{object:zM,boolean:YM}},drawPoints:{enabled:{boolean:YM},onRender:{function:"function"},size:{number:jM},style:{string:["square","circle"]},__type__:{object:zM,boolean:YM,function:"function"}},dataAxis:{showMinorLabels:{boolean:YM},showMajorLabels:{boolean:YM},showWeekScale:{boolean:YM},icons:{boolean:YM},width:{string:RM,number:jM},visible:{boolean:YM},alignZeros:{boolean:YM},left:{range:{min:{number:jM,undefined:"undefined"},max:{number:jM,undefined:"undefined"},__type__:{object:zM}},format:{function:"function"},title:{text:{string:RM,number:jM,undefined:"undefined"},style:{string:RM,undefined:"undefined"},__type__:{object:zM}},__type__:{object:zM}},right:{range:{min:{number:jM,undefined:"undefined"},max:{number:jM,undefined:"undefined"},__type__:{object:zM}},format:{function:"function"},title:{text:{string:RM,number:jM,undefined:"undefined"},style:{string:RM,undefined:"undefined"},__type__:{object:zM}},__type__:{object:zM}},__type__:{object:zM}},legend:{enabled:{boolean:YM},icons:{boolean:YM},left:{visible:{boolean:YM},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:zM}},right:{visible:{boolean:YM},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:zM}},__type__:{object:zM,boolean:YM}},groups:{visibility:{any:"any"},__type__:{object:zM}},autoResize:{boolean:YM},throttleRedraw:{number:jM},clickToUse:{boolean:YM},end:{number:jM,date:HM,string:RM,moment:GM},format:{minorLabels:{millisecond:{string:RM,undefined:"undefined"},second:{string:RM,undefined:"undefined"},minute:{string:RM,undefined:"undefined"},hour:{string:RM,undefined:"undefined"},weekday:{string:RM,undefined:"undefined"},day:{string:RM,undefined:"undefined"},week:{string:RM,undefined:"undefined"},month:{string:RM,undefined:"undefined"},quarter:{string:RM,undefined:"undefined"},year:{string:RM,undefined:"undefined"},__type__:{object:zM}},majorLabels:{millisecond:{string:RM,undefined:"undefined"},second:{string:RM,undefined:"undefined"},minute:{string:RM,undefined:"undefined"},hour:{string:RM,undefined:"undefined"},weekday:{string:RM,undefined:"undefined"},day:{string:RM,undefined:"undefined"},week:{string:RM,undefined:"undefined"},month:{string:RM,undefined:"undefined"},quarter:{string:RM,undefined:"undefined"},year:{string:RM,undefined:"undefined"},__type__:{object:zM}},__type__:{object:zM}},moment:{function:"function"},height:{string:RM,number:jM},hiddenDates:{start:{date:HM,number:jM,string:RM,moment:GM},end:{date:HM,number:jM,string:RM,moment:GM},repeat:{string:RM},__type__:{object:zM,array:"array"}},locale:{string:RM},locales:{__any__:{any:"any"},__type__:{object:zM}},max:{date:HM,number:jM,string:RM,moment:GM},maxHeight:{number:jM,string:RM},maxMinorChars:{number:jM},min:{date:HM,number:jM,string:RM,moment:GM},minHeight:{number:jM,string:RM},moveable:{boolean:YM},multiselect:{boolean:YM},orientation:{string:RM},showCurrentTime:{boolean:YM},showMajorLabels:{boolean:YM},showMinorLabels:{boolean:YM},showWeekScale:{boolean:YM},snap:{function:"function",null:"null"},start:{date:HM,number:jM,string:RM,moment:GM},timeAxis:{scale:{string:RM,undefined:"undefined"},step:{number:jM,undefined:"undefined"},__type__:{object:zM}},width:{string:RM,number:jM},zoomable:{boolean:YM},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:jM},zoomMin:{number:jM},zIndex:{number:jM},__type__:{object:zM}},BM={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}};class VM extends gC{constructor(t,e){var i,n,o,r,s,a,l;super();const h=uS().hours(0).minutes(0).seconds(0).milliseconds(0),c=h.clone().add(-3,"days").valueOf(),u=h.clone().add(3,"days").valueOf();this.millisecondsPerPixelCache=void 0,void 0===e?(this.start=c,this.end=u):(this.start=e.start||c,this.end=e.end||u),this.rolling=!1,this.body=t,this.deltaDifference=0,this.scaleOffset=0,this.startToFront=!1,this.endToFront=!0,this.defaultOptions={rtl:!1,start:null,end:null,moment:uS,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},this.options=JS.extend({},this.defaultOptions),this.props={touch:{}},this.animationTimer=null,this.body.emitter.on("panstart",Yu(i=this._onDragStart).call(i,this)),this.body.emitter.on("panmove",Yu(n=this._onDrag).call(n,this)),this.body.emitter.on("panend",Yu(o=this._onDragEnd).call(o,this)),this.body.emitter.on("mousewheel",Yu(r=this._onMouseWheel).call(r,this)),this.body.emitter.on("touch",Yu(s=this._onTouch).call(s,this)),this.body.emitter.on("pinch",Yu(a=this._onPinch).call(a,this)),this.body.dom.rollingModeBtn.addEventListener("click",Yu(l=this.startRolling).call(l,this)),this.setOptions(e)}setOptions(t){if(t){const e=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll","horizontalScrollKey","horizontalScrollInvert","verticalScroll"];JS.selectiveExtend(e,this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end)}}startRolling(){const t=this;!function e(){t.stopRolling(),t.rolling=!0;let i=t.end-t.start;const n=JS.convert(new Date,"Date").valueOf(),o=t.options.rollingMode&&t.options.rollingMode.offset||.5,r=n-i*o,s=n+i*(1-o);t.setRange(r,s,{animation:!1}),i=1/t.conversion(t.body.domProps.center.width).scale/10,i<30&&(i=30),i>1e3&&(i=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=Ag(e,i)}()}stopRolling(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}setRange(t,e,i,n,o){i||(i={}),!0!==i.byUser&&(i.byUser=!1);const r=this,s=null!=t?JS.convert(t,"Date").valueOf():null,a=null!=e?JS.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){const t=this.start,e=this.end,c="object"==typeof i.animation&&"duration"in i.animation?i.animation.duration:500,u="object"==typeof i.animation&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",d=JS.easingFunctions[u];var l;if(!d)throw new Error(Yv(l="Unknown easing function ".concat(db(u),". Choose from: ")).call(l,gy(JS.easingFunctions).join(", ")));const p=Kb();let m=!1;const f=()=>{if(!r.props.touch.dragging){const l=Kb()-p,u=d(l/c),g=l>c,v=g||null===s?s:t+(s-t)*u,y=g||null===a?a:e+(a-e)*u;h=r._applyRange(v,y),RT(r.options.moment,r.body,r.options.hiddenDates),m=m||h;const b={start:new Date(r.start),end:new Date(r.end),byUser:i.byUser,event:i.event};if(o&&o(u,h,g),h&&r.body.emitter.emit("rangechange",b),g){if(m&&(r.body.emitter.emit("rangechanged",b),n))return n()}else r.animationTimer=Ag(f,20)}};return f()}var h=this._applyRange(s,a);if(RT(this.options.moment,this.body,this.options.hiddenDates),h){const t={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",t),clearTimeout(r.timeoutID),r.timeoutID=Ag(()=>{r.body.emitter.emit("rangechanged",t)},200),n)return n()}}getMillisecondsPerPixel(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}_cancelAnimation(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}_applyRange(t,e){let i=null!=t?JS.convert(t,"Date").valueOf():this.start,n=null!=e?JS.convert(e,"Date").valueOf():this.end;const o=null!=this.options.max?JS.convert(this.options.max,"Date").valueOf():null,r=null!=this.options.min?JS.convert(this.options.min,"Date").valueOf():null;let s;if(isNaN(i)||null===i)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(n)||null===n)throw new Error('Invalid end "'.concat(e,'"'));if(n<i&&(n=i),null!==r&&i<r&&(s=r-i,i+=s,n+=s,null!=o&&n>o&&(n=o)),null!==o&&n>o&&(s=n-o,i-=s,n-=s,null!=r&&i<r&&(i=r)),null!==this.options.zoomMin){let t=qC(this.options.zoomMin);if(t<0&&(t=0),n-i<t){const e=.5;this.end-this.start===t&&i>=this.start-e&&n<=this.end?(i=this.start,n=this.end):(s=t-(n-i),i-=s/2,n+=s/2)}}if(null!==this.options.zoomMax){let t=qC(this.options.zoomMax);t<0&&(t=0),n-i>t&&(this.end-this.start===t&&i<this.start&&n>this.end?(i=this.start,n=this.end):(s=n-i-t,i+=s/2,n-=s/2))}const a=this.start!=i||this.end!=n;return i>=this.start&&i<=this.end||n>=this.start&&n<=this.end||this.start>=i&&this.start<=n||this.end>=i&&this.end<=n||this.body.emitter.emit("checkRangedItems"),this.start=i,this.end=n,a}getRange(){return{start:this.start,end:this.end}}conversion(t,e){return VM.conversion(this.start,this.end,t,e)}static conversion(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}}_onDragStart(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"))}_onDrag(t){if(!t)return;if(!this.props.touch.dragging)return;if(!this.options.moveable)return;if(!this.props.touch.allowDragging)return;const e=this.options.direction;UM(e);let i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;let n=this.props.touch.end-this.props.touch.start;n-=GT(this.body.hiddenDates,this.start,this.end);const o="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;let r;r=this.options.rtl?i/o*n:-i/o*n;const s=this.props.touch.start+r,a=this.props.touch.end+r,l=XT(this.body.hiddenDates,s,this.previousDelta-i,!0),h=XT(this.body.hiddenDates,a,this.previousDelta-i,!0);if(l!=s||h!=a)return this.deltaDifference+=i,this.props.touch.start=l,this.props.touch.end=h,void this._onDrag(t);this.previousDelta=i,this._applyRange(s,a);const c=new Date(this.start),u=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:u,byUser:!0,event:t}),this.body.emitter.emit("panmove")}_onDragEnd(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}))}_onMouseWheel(t){let 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){const i=this.options.zoomFriction||5;let n,o;if(n=e<0?1-e/i:1/(1+e/i),this.rolling){const t=this.options.rollingMode&&this.options.rollingMode.offset||.5;o=this.start+(this.end-this.start)*t}else{const e=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);o=this._pointerToDate(e)}this.zoom(n,o,e,t),t.preventDefault()}}_onTouch(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,JS.preventDefault(t)}_onPinch(t){if(!this.options.zoomable||!this.options.moveable)return;JS.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();const e=1/(t.scale+this.scaleOffset),i=this.props.touch.centerDate,n=GT(this.body.hiddenDates,this.start,this.end),o=VT(this.options.moment,this.body.hiddenDates,this,i),r=n-o;let s=i-o+(this.props.touch.start-(i-o))*e,a=i+r+(this.props.touch.end-(i+r))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;const l=XT(this.body.hiddenDates,s,1-e,!0),h=XT(this.body.hiddenDates,a,e-1,!0);l==s&&h==a||(this.props.touch.start=l,this.props.touch.end=h,this.scaleOffset=1-t.scale,s=l,a=h);const c={animation:!1,byUser:!0,event:t};this.setRange(s,a,c),this.startToFront=!1,this.endToFront=!0}_isInsideRange(t){const e=t.center?t.center.x:t.clientX,i=this.body.dom.centerContainer.getBoundingClientRect(),n=this.options.rtl?e-i.left:i.right-e,o=this.body.util.toTime(n);return o>=this.start&&o<=this.end}_pointerToDate(t){let e;const i=this.options.direction;if(UM(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();{const i=this.body.domProps.center.height;return e=this.conversion(i),t.y/e.scale+e.offset}}getPointer(t,e){const 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}}zoom(t,e,i,n){null==e&&(e=(this.start+this.end)/2);const o=GT(this.body.hiddenDates,this.start,this.end),r=VT(this.options.moment,this.body.hiddenDates,this,e),s=o-r;let a=e-r+(this.start-(e-r))*t,l=e+s+(this.end-(e+s))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0);const h=XT(this.body.hiddenDates,a,i,!0),c=XT(this.body.hiddenDates,l,-i,!0);h==a&&c==l||(a=h,l=c);const u={animation:!1,byUser:!0,event:n};this.setRange(a,l,u),this.startToFront=!1,this.endToFront=!0}move(t){const e=this.end-this.start,i=this.start+e*t,n=this.end+e*t;this.start=i,this.end=n}moveTo(t){const 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})}destroy(){this.stopRolling()}}function UM(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}function XM(t,e,i,n){var o,r,s,a,l,h,c;if(!Qg(i)&&!BS(i)&&i instanceof Object){var u=n;n=i,i=u}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:uS,width:null,height:null,maxHeight:null,minHeight:null},this.options=JS.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:Yu(o=this.on).call(o,this),off:Yu(r=this.off).call(r,this),emit:Yu(s=this.emit).call(s,this)},hiddenDates:[],util:{getScale:()=>d.timeAxis.step.scale,getStep:()=>d.timeAxis.step.step,toScreen:Yu(a=d._toScreen).call(a,d),toGlobalScreen:Yu(l=d._toGlobalScreen).call(l,d),toTime:Yu(h=d._toTime).call(h,d),toGlobalTime:Yu(c=d._toGlobalTime).call(c,d)}},this.range=new VM(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new bM(this.body),this.components.push(this.timeAxis),this.currentTime=new NC(this.body),this.components.push(this.currentTime),this.linegraph=new yM(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&&Ag(()=>d.options.onInitialDrawComplete(),0))}}),n&&this.setOptions(n),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}XM.prototype=new OM,XM.prototype.setOptions=function(t){!0===FM.validate(t,WM)&&console.log("%cErrors have been found in the supplied options object.",AM),OM.prototype.setOptions.call(this,t)},XM.prototype.setItems=function(t){var e,i=null==this.itemsData;if(e=t?BS(t)?qS(t):qS(new Kk(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,o=null!=this.options.end?this.options.end:null;this.setWindow(n,o,{animation:!1})}else this.fit({animation:!1})},XM.prototype.setGroups=function(t){var e;e=t?BS(t)?t:new Kk(t):null,this.groupsData=e,this.linegraph.setGroups(e)},XM.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+"'"},XM.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]))},XM.prototype.getDataRange=function(){var t=null,e=null;for(var i in this.linegraph.groups)if(Object.prototype.hasOwnProperty.call(this.linegraph.groups,i)&&!0===this.linegraph.groups[i].visible)for(var n=0;n<this.linegraph.groups[i].itemsData.length;n++){var o=this.linegraph.groups[i].itemsData[n],r=JS.convert(o.x,"Date").valueOf();t=null==t||t>r?r:t,e=null==e||e<r?r:e}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},XM.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=e-JS.getAbsoluteLeft(this.dom.centerContainer),o=i-JS.getAbsoluteTop(this.dom.centerContainer),r=this._toTime(n),s=LC.customTimeFromTarget(t),a=JS.getTarget(t),l=null;JS.hasParent(a,this.timeAxis.dom.foreground)||this.timeAxis2&&JS.hasParent(a,this.timeAxis2.dom.foreground)?l="axis":JS.hasParent(a,this.linegraph.yAxisLeft.dom.frame)||JS.hasParent(a,this.linegraph.yAxisRight.dom.frame)?l="data-axis":JS.hasParent(a,this.linegraph.legendLeft.dom.frame)||JS.hasParent(a,this.linegraph.legendRight.dom.frame)?l="legend":null!=s?l="custom-time":JS.hasParent(a,this.currentTime.bar)?l="current-time":JS.hasParent(a,this.dom.center)&&(l="background");var h=[],c=this.linegraph.yAxisLeft,u=this.linegraph.yAxisRight;return!c.hidden&&this.itemsData.length>0&&h.push(c.screenToValue(o)),!u.hidden&&this.itemsData.length>0&&h.push(u.screenToValue(o)),{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:o,time:r,value:h}},XM.prototype._createConfigurator=function(){return new IM(this,this.dom.container,BM)};const qM="string",KM="boolean",ZM="number",$M="array",JM="date",QM="object",tO="moment",eO={configure:{enabled:{boolean:KM},filter:{boolean:KM,function:"function"},container:{dom:"dom"},__type__:{object:QM,boolean:KM,function:"function"}},align:{string:qM},alignCurrentTime:{string:qM,undefined:"undefined"},rtl:{boolean:KM,undefined:"undefined"},rollingMode:{follow:{boolean:KM},offset:{number:ZM,undefined:"undefined"},__type__:{object:QM}},onTimeout:{timeoutMs:{number:ZM},callback:{function:"function"},__type__:{object:QM}},verticalScroll:{boolean:KM,undefined:"undefined"},horizontalScroll:{boolean:KM,undefined:"undefined"},horizontalScrollKey:{string:qM,undefined:"undefined"},horizontalScrollInvert:{boolean:KM,undefined:"undefined"},autoResize:{boolean:KM},throttleRedraw:{number:ZM},clickToUse:{boolean:KM},dataAttributes:{string:qM,array:$M},editable:{add:{boolean:KM,undefined:"undefined"},remove:{boolean:KM,undefined:"undefined"},updateGroup:{boolean:KM,undefined:"undefined"},updateTime:{boolean:KM,undefined:"undefined"},overrideItems:{boolean:KM,undefined:"undefined"},__type__:{boolean:KM,object:QM}},end:{number:ZM,date:JM,string:qM,moment:tO},format:{minorLabels:{millisecond:{string:qM,undefined:"undefined"},second:{string:qM,undefined:"undefined"},minute:{string:qM,undefined:"undefined"},hour:{string:qM,undefined:"undefined"},weekday:{string:qM,undefined:"undefined"},day:{string:qM,undefined:"undefined"},week:{string:qM,undefined:"undefined"},month:{string:qM,undefined:"undefined"},year:{string:qM,undefined:"undefined"},__type__:{object:QM,function:"function"}},majorLabels:{millisecond:{string:qM,undefined:"undefined"},second:{string:qM,undefined:"undefined"},minute:{string:qM,undefined:"undefined"},hour:{string:qM,undefined:"undefined"},weekday:{string:qM,undefined:"undefined"},day:{string:qM,undefined:"undefined"},week:{string:qM,undefined:"undefined"},month:{string:qM,undefined:"undefined"},year:{string:qM,undefined:"undefined"},__type__:{object:QM,function:"function"}},__type__:{object:QM}},moment:{function:"function"},groupHeightMode:{string:qM},groupOrder:{string:qM,function:"function"},groupEditable:{add:{boolean:KM,undefined:"undefined"},remove:{boolean:KM,undefined:"undefined"},order:{boolean:KM,undefined:"undefined"},__type__:{boolean:KM,object:QM}},groupOrderSwap:{function:"function"},height:{string:qM,number:ZM},hiddenDates:{start:{date:JM,number:ZM,string:qM,moment:tO},end:{date:JM,number:ZM,string:qM,moment:tO},repeat:{string:qM},__type__:{object:QM,array:$M}},itemsAlwaysDraggable:{item:{boolean:KM,undefined:"undefined"},range:{boolean:KM,undefined:"undefined"},__type__:{boolean:KM,object:QM}},limitSize:{boolean:KM},locale:{string:qM},locales:{__any__:{any:"any"},__type__:{object:QM}},longSelectPressTime:{number:ZM},margin:{axis:{number:ZM},item:{horizontal:{number:ZM,undefined:"undefined"},vertical:{number:ZM,undefined:"undefined"},__type__:{object:QM,number:ZM}},__type__:{object:QM,number:ZM}},max:{date:JM,number:ZM,string:qM,moment:tO},maxHeight:{number:ZM,string:qM},maxMinorChars:{number:ZM},min:{date:JM,number:ZM,string:qM,moment:tO},minHeight:{number:ZM,string:qM},moveable:{boolean:KM},multiselect:{boolean:KM},multiselectPerGroup:{boolean:KM},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:qM,undefined:"undefined"},item:{string:qM,undefined:"undefined"},__type__:{string:qM,object:QM}},selectable:{boolean:KM},sequentialSelection:{boolean:KM},showCurrentTime:{boolean:KM},showMajorLabels:{boolean:KM},showMinorLabels:{boolean:KM},showWeekScale:{boolean:KM},stack:{boolean:KM},stackSubgroups:{boolean:KM},cluster:{maxItems:{number:ZM,undefined:"undefined"},titleTemplate:{string:qM,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:KM,undefined:"undefined"},fitOnDoubleClick:{boolean:KM,undefined:"undefined"},__type__:{boolean:KM,object:QM}},snap:{function:"function",null:"null"},start:{date:JM,number:ZM,string:qM,moment:tO},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:qM,function:"function"},showTooltips:{boolean:KM},tooltip:{followMouse:{boolean:KM},overflowMethod:{string:["cap","flip","none"]},delay:{number:ZM},template:{function:"function"},__type__:{object:QM}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:KM,object:QM}},timeAxis:{scale:{string:qM,undefined:"undefined"},step:{number:ZM,undefined:"undefined"},__type__:{object:QM}},type:{string:qM},width:{string:qM,number:ZM},preferZoom:{boolean:KM},zoomable:{boolean:KM},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:ZM},zoomMax:{number:ZM},zoomMin:{number:ZM},xss:{disabled:{boolean:KM},filterOptions:{__any__:{any:"any"},__type__:{object:QM}},__type__:{object:QM}},__type__:{object:QM}},iO={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],xss:{disabled:!1}}};class nO extends OM{constructor(t,e,i,n){var o,r,s,a,l,h,c;if(super(),this.initTime=new Date,this.itemsDone=!1,!(this instanceof nO))throw new SyntaxError("Constructor must be called with the new operator");if(!Qg(i)&&!BS(i)&&i instanceof Object){const t=n;n=i,i=t}n&&n.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');const u=this;if(this.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:uS},this.options=JS.deepExtend({},this.defaultOptions),n&&JS.setupXSSProtection(n.xss),this._create(t),!n||n&&void 0===n.rtl){let t;this.dom.root.style.visibility="hidden";let e=this.dom.root;for(;!t&&e;)t=window.getComputedStyle(e,null).direction,e=e.parentElement;this.options.rtl=t&&"rtl"==t.toLowerCase()}else this.options.rtl=n.rtl;n&&(n.rollingMode&&(this.options.rollingMode=n.rollingMode),n.onInitialDrawComplete&&(this.options.onInitialDrawComplete=n.onInitialDrawComplete),n.onTimeout&&(this.options.onTimeout=n.onTimeout),n.loadingScreenTemplate&&(this.options.loadingScreenTemplate=n.loadingScreenTemplate));const d=document.createElement("div");if(this.options.loadingScreenTemplate){var p;const t=Yu(p=this.options.loadingScreenTemplate).call(p,this),e=t(this.dom.loadingScreen);e instanceof Object&&!(e instanceof Element)?t(d):e instanceof Element?(d.innerHTML="",d.appendChild(e)):null!=e&&(d.innerHTML=JS.xss(e))}function m(t,e){u.hasListeners(t)&&u.emit(t,u.getEventProperties(e))}this.dom.loadingScreen.appendChild(d),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:Yu(o=this.on).call(o,this),off:Yu(r=this.off).call(r,this),emit:Yu(s=this.emit).call(s,this)},hiddenDates:[],util:{getScale:()=>u.timeAxis.step.scale,getStep:()=>u.timeAxis.step.step,toScreen:Yu(a=u._toScreen).call(a,u),toGlobalScreen:Yu(l=u._toGlobalScreen).call(l,u),toTime:Yu(h=u._toTime).call(h,u),toGlobalTime:Yu(c=u._toGlobalTime).call(c,u)}},this.range=new VM(this.body,this.options),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new bM(this.body,this.options),this.timeAxis2=null,this.components.push(this.timeAxis),this.currentTime=new NC(this.body,this.options),this.components.push(this.currentTime),this.itemSet=new fM(this.body,this.options),this.components.push(this.itemSet),this.itemsData=null,this.groupsData=null,this.dom.root.onclick=t=>m("click",t),this.dom.root.ondblclick=t=>m("doubleClick",t),this.dom.root.oncontextmenu=t=>m("contextmenu",t),this.dom.root.onmouseover=t=>m("mouseOver",t),window.PointerEvent?(this.dom.root.onpointerdown=t=>m("mouseDown",t),this.dom.root.onpointermove=t=>m("mouseMove",t),this.dom.root.onpointerup=t=>m("mouseUp",t)):(this.dom.root.onmousemove=t=>m("mouseMove",t),this.dom.root.onmousedown=t=>m("mouseDown",t),this.dom.root.onmouseup=t=>m("mouseUp",t)),this.initialFitDone=!1,this.on("changed",()=>{if(null!=u.itemsData){if(!u.initialFitDone&&!u.options.rollingMode)if(u.initialFitDone=!0,null!=u.options.start||null!=u.options.end){if(null==u.options.start||null==u.options.end)var t=u.getItemRange();const e=null!=u.options.start?u.options.start:t.min,i=null!=u.options.end?u.options.end:t.max;u.setWindow(e,i,{animation:!1})}else u.fit({animation:!1});u.initialDrawDone||!u.initialRangeChangeDone&&(u.options.start||u.options.end)&&!u.options.rollingMode||(u.initialDrawDone=!0,u.itemSet.initialDrawDone=!0,u.dom.root.style.visibility="visible",u.dom.loadingScreen.parentNode.removeChild(u.dom.loadingScreen),u.options.onInitialDrawComplete&&Ag(()=>u.options.onInitialDrawComplete(),0))}}),this.on("destroyTimeline",()=>{u.destroy()}),n&&this.setOptions(n),this.body.emitter.on("fit",t=>{this._onFit(t),this.redraw()}),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}_createConfigurator(){return new IM(this,this.dom.container,iO)}redraw(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}setOptions(t){if(!0===FM.validate(t,eO)&&console.log("%cErrors have been found in the supplied options object.",AM),OM.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;const e=this.itemsData;if(e){const t=this.getSelection();this.setItems(null),this.setItems(e.rawDS),this.setSelection(t)}}}setItems(t){let e;this.itemsDone=!1,e=t?BS(t)?qS(t):qS(new Kk(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.itemSet&&this.itemSet.setItems(null!=e?e.rawDS:null)}setGroups(t){let e;const i=t=>!1!==t.visible;t?(Qg(t)&&(t=new Kk(t)),e=new Zk(t,{filter:i})):e=null,null!=this.groupsData&&"function"==typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=e,this.itemSet.setGroups(e)}setData(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}setSelection(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}getSelection(){return this.itemSet&&this.itemSet.getSelection()||[]}focus(t,e){if(!this.itemsData||null==t)return;const i=Qg(t)?t:[t],n=this.itemsData.get(i);let o=null,r=null;if(op(n).call(n,t=>{const e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===o||e<o)&&(o=e),(null===r||i>r)&&(r=i)}),null!==o&&null!==r){const t=this,n=this.itemSet.items[i[0]];let s=-1*this._getScrollTop(),a=null;const l=(e,i,o)=>{const r=sO(t,n);if(!1===r)return;if(a||(a=r),a.itemTop==r.itemTop&&!a.shouldScroll)return;a.itemTop!=r.itemTop&&r.shouldScroll&&(a=r,s=-1*t._getScrollTop());const l=s,h=a.scrollOffset,c=o?h:l+(h-l)*e;t._setScrollTop(-c),i||t._redraw()},h=()=>{const e=sO(t,n);e.shouldScroll&&e.itemTop!=a.itemTop&&(t._setScrollTop(-e.scrollOffset),t._redraw())},c=()=>{h(),Ag(h,100)},u=!e||void 0===e.zoom||e.zoom,d=(o+r)/2,p=u?1.1*(r-o):Math.max(this.range.end-this.range.start,1.1*(r-o)),m=!e||void 0===e.animation||e.animation;m||(a={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.stopRolling(),this.range.setRange(d-p/2,d+p/2,{animation:m},c,l)}}fit(t,e){const i=!t||void 0===t.animation||t.animation;let n;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(n=this.getDataRange(),this.moveTo(n.min.valueOf(),{animation:i},e)):(n=this.getItemRange(),this.range.setRange(n.min,n.max,{animation:i},e))}getItemRange(){const t=this.getDataRange();let e=null!==t.min?t.min.valueOf():null,i=null!==t.max?t.max.valueOf():null,n=null,o=null;if(null!=e&&null!=i){let t=i-e;t<=0&&(t=10);const r=t/this.props.center.width,s={};let a=0;op(JS).call(JS,this.itemSet.items,(t,e)=>{if(t.groupShowing){const i=!0;s[e]=t.redraw(i),a=s[e].length}});if(a>0)for(let t=0;t<a;t++)op(JS).call(JS,s,e=>{e[t]()});if(op(JS).call(JS,this.itemSet.items,t=>{const s=oO(t),a=rO(t);let l,h;this.options.rtl?(l=s-(t.getWidthRight()+10)*r,h=a+(t.getWidthLeft()+10)*r):(l=s-(t.getWidthLeft()+10)*r,h=a+(t.getWidthRight()+10)*r),l<e&&(e=l,n=t),h>i&&(i=h,o=t)}),n&&o){const r=n.getWidthLeft()+10,s=o.getWidthRight()+10,a=this.props.center.width-r-s;a>0&&(this.options.rtl?(e=oO(n)-s*t/a,i=rO(o)+r*t/a):(e=oO(n)-r*t/a,i=rO(o)+s*t/a))}}return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}}getDataRange(){let t=null,e=null;var i;this.itemsData&&op(i=this.itemsData).call(i,i=>{const n=JS.convert(i.start,"Date").valueOf(),o=JS.convert(null!=i.end?i.end:i.start,"Date").valueOf();(null===t||n<t)&&(t=n),(null===e||o>e)&&(e=o)});return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}}getEventProperties(t){const e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=this.dom.centerContainer.getBoundingClientRect(),o=this.options.rtl?n.right-e:e-n.left,r=i-n.top,s=this.itemSet.itemFromTarget(t),a=this.itemSet.groupFromTarget(t),l=LC.customTimeFromTarget(t),h=this.itemSet.options.snap||null,c=this.body.util.getScale(),u=this.body.util.getStep(),d=this._toTime(o),p=h?h(d,c,u):d,m=JS.getTarget(t);let f=null;return null!=s?f="item":null!=l?f="custom-time":JS.hasParent(m,this.timeAxis.dom.foreground)||this.timeAxis2&&JS.hasParent(m,this.timeAxis2.dom.foreground)?f="axis":JS.hasParent(m,this.itemSet.dom.labelSet)?f="group-label":JS.hasParent(m,this.currentTime.bar)?f="current-time":JS.hasParent(m,this.dom.center)&&(f="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:f,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:o,y:r,time:d,snappedTime:p}}toggleRollingMode(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}_redraw(){OM.prototype._redraw.call(this)}_onFit(t){const e=t.start,i=t.end,n=t.animation;i?this.range.setRange(e,i,{animation:n}):this.moveTo(e.valueOf(),{animation:n})}}function oO(t){return JS.convert(t.data.start,"Date").valueOf()}function rO(t){const e=null!=t.data.end?t.data.end:t.data.start;return JS.convert(e,"Date").valueOf()}function sO(t,e){if(!e.parent)return!1;const i=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,n=t.props.center.height,o=e.parent;let r=o.top,s=!0;const a=t.timeAxis.options.orientation.axis,l=()=>"bottom"==a?o.height-e.top-e.height:e.top,h=-1*t._getScrollTop(),c=r+l(),u=e.height;return c<h?r+i<=r+l()+u&&(r+=l()-t.itemSet.options.margin.item.vertical):c+u>h+i?r+=l()+u-i+t.itemSet.options.margin.item.vertical:s=!1,r=Math.min(r,n-i),{shouldScroll:s,scrollOffset:r,itemTop:c}}console.warn(["This build has been deprecated.","","In case you are importing this through a URL it will result in a 404 eventually.","In case you are importing this through Node it will be replaced by the peer build eventually.","","Please use the peer or standalone build instead.","Peer: https://visjs.github.io/vis-timeline/examples/timeline/peer-build.html","Standalone: https://visjs.github.io/vis-timeline/examples/timeline/standalone-build.html"].join("\n"));const aO=rS();uS.locale(aO);const lO={Core:OM,DateUtil:KT,Range:VM,stack:dC,TimeStep:ZT,components:{items:{Item:iT,BackgroundItem:oT,BoxItem:rT,ClusterItem:sT,PointItem:aT,RangeItem:nT},BackgroundGroup:fC,Component:gC,CurrentTime:NC,CustomTime:LC,DataAxis:ZC,DataScale:KC,GraphGroup:eT,Group:mC,ItemSet:fM,Legend:gM,LineGraph:yM,TimeAxis:bM}};var hO={util:Rk,DOMutil:sS,DataSet:Kk,DataView:Zk,Queue:qk,Timeline:nO,Graph2d:XM,timeline:lO,moment:uS,Hammer:hS,keycharm:y};t.DOMutil=sS,t.DataSet=Kk,t.DataView=Zk,t.Graph2d=XM,t.Hammer=hS,t.Queue=qk,t.Timeline=nO,t.default=hO,t.keycharm=y,t.moment=uS,t.timeline=lO,t.util=Rk,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vis-timeline-graph2d.min.cjs.map