Soleris_Roman/.obsidian/plugins/chronos/main.js

2478 lines
No EOL
1.1 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var XM=Object.defineProperty;var RV=Object.getOwnPropertyDescriptor;var NV=Object.getOwnPropertyNames;var LV=Object.prototype.hasOwnProperty;var BF=(e,a)=>{for(var t in a)XM(e,t,{get:a[t],enumerable:!0})},FV=(e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let h of NV(a))!LV.call(e,h)&&h!==t&&XM(e,h,{get:()=>a[h],enumerable:!(n=RV(a,h))||n.enumerable});return e};var jV=e=>FV(XM({},"__esModule",{value:!0}),e);var uwe={};BF(uwe,{default:()=>gE});module.exports=jV(uwe);var rr=require("obsidian");var HF=require("obsidian"),YT=class extends HF.Modal{constructor(t,n){super(t);this.text=n}onOpen(){this.setText(this.text)}onClose(){let{contentEl:t}=this;t.empty()}setText(t){let{contentEl:n}=this;this.text=t,n.setText(t)}};var YV=["ar","fa","he","ks","ku","ur","yi"];var BV=["af","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","eo","es","et","eu","fi","fr","ga","gl","gu","hi","hr","hu","hy","id","is","it","ja","jv","ka","kk","km","kn","ko","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","nb","ne","nl","nn","pl","pt","ro","ru","si","sk","sl","so","sq","sr","su","sv","sw","ta","te","th","tr","uk","vi","xh","zh-cn","zh-tw","zu"],WF=[...BV,...YV].sort();var ZM="en",GF="gpt-4o-mini",BT="drpepper";var OL={};BF(OL,{ChronosTimeline:()=>kp,attachChronosStyles:()=>vW,default:()=>DL,parseChronos:()=>fW,parser:()=>lW,renderChronos:()=>owe,ui:()=>uW,utils:()=>dW});var HV=Object.create,vN=Object.defineProperty,WV=Object.getOwnPropertyDescriptor,T6=Object.getOwnPropertyNames,GV=Object.getPrototypeOf,zV=Object.prototype.hasOwnProperty,UV=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(a,t)=>(typeof require!="undefined"?require:a)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),pN=(e,a)=>function(){return a||(0,e[T6(e)[0]])((a={exports:{}}).exports,a),a.exports},mN=(e,a)=>{for(var t in a)vN(e,t,{get:a[t],enumerable:!0})},VV=(e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let h of T6(a))!zV.call(e,h)&&h!==t&&vN(e,h,{get:()=>a[h],enumerable:!(n=WV(a,h))||n.enumerable});return e},qV=(e,a,t)=>(t=e!=null?HV(GV(e)):{},VV(!e||!e.__esModule?vN(t,"default",{value:e,enumerable:!0}):t,e)),KV=pN({"node_modules/moment/moment.js"(e,a){(function(t,n){typeof e=="object"&&typeof a!="undefined"?a.exports=n():typeof define=="function"&&define.amd?define(n):t.moment=n()})(e,function(){var t;function n(){return t.apply(null,arguments)}function h(l){t=l}function d(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function p(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function y(l,v){return Object.prototype.hasOwnProperty.call(l,v)}function b(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var v;for(v in l)if(y(l,v))return!1;return!0}function w(l){return l===void 0}function $(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function A(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function R(l,v){var _=[],T,P=l.length;for(T=0;T<P;++T)_.push(v(l[T],T));return _}function Y(l,v){for(var _ in v)y(v,_)&&(l[_]=v[_]);return y(v,"toString")&&(l.toString=v.toString),y(v,"valueOf")&&(l.valueOf=v.valueOf),l}function V(l,v,_,T){return mu(l,v,_,T,!0).utc()}function oe(){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 G(l){return l._pf==null&&(l._pf=oe()),l._pf}var ae;Array.prototype.some?ae=Array.prototype.some:ae=function(l){var v=Object(this),_=v.length>>>0,T;for(T=0;T<_;T++)if(T in v&&l.call(this,v[T],T,v))return!0;return!1};function ve(l){var v=null,_=!1,T=l._d&&!isNaN(l._d.getTime());if(T&&(v=G(l),_=ae.call(v.parsedDateParts,function(P){return P!=null}),T=v.overflow<0&&!v.empty&&!v.invalidEra&&!v.invalidMonth&&!v.invalidWeekday&&!v.weekdayMismatch&&!v.nullInput&&!v.invalidFormat&&!v.userInvalidated&&(!v.meridiem||v.meridiem&&_),l._strict&&(T=T&&v.charsLeftOver===0&&v.unusedTokens.length===0&&v.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(l))l._isValid=T;else return T;return l._isValid}function ye(l){var v=V(NaN);return l!=null?Y(G(v),l):G(v).userInvalidated=!0,v}var pe=n.momentProperties=[],Se=!1;function ze(l,v){var _,T,P,j=pe.length;if(w(v._isAMomentObject)||(l._isAMomentObject=v._isAMomentObject),w(v._i)||(l._i=v._i),w(v._f)||(l._f=v._f),w(v._l)||(l._l=v._l),w(v._strict)||(l._strict=v._strict),w(v._tzm)||(l._tzm=v._tzm),w(v._isUTC)||(l._isUTC=v._isUTC),w(v._offset)||(l._offset=v._offset),w(v._pf)||(l._pf=G(v)),w(v._locale)||(l._locale=v._locale),j>0)for(_=0;_<j;_++)T=pe[_],P=v[T],w(P)||(l[T]=P);return l}function tt(l){ze(this,l),this._d=new Date(l._d!=null?l._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Se===!1&&(Se=!0,n.updateOffset(this),Se=!1)}function _e(l){return l instanceof tt||l!=null&&l._isAMomentObject!=null}function it(l){n.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+l)}function Ne(l,v){var _=!0;return Y(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,l),_){var T=[],P,j,q,le=arguments.length;for(j=0;j<le;j++){if(P="",typeof arguments[j]=="object"){P+=`
[`+j+"] ";for(q in arguments[0])y(arguments[0],q)&&(P+=q+": "+arguments[0][q]+", ");P=P.slice(0,-2)}else P=arguments[j];T.push(P)}it(l+`
Arguments: `+Array.prototype.slice.call(T).join("")+`
`+new Error().stack),_=!1}return v.apply(this,arguments)},v)}var qe={};function Fe(l,v){n.deprecationHandler!=null&&n.deprecationHandler(l,v),qe[l]||(it(v),qe[l]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function Ye(l){return typeof Function!="undefined"&&l instanceof Function||Object.prototype.toString.call(l)==="[object Function]"}function ir(l){var v,_;for(_ in l)y(l,_)&&(v=l[_],Ye(v)?this[_]=v:this["_"+_]=v);this._config=l,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function gt(l,v){var _=Y({},l),T;for(T in v)y(v,T)&&(p(l[T])&&p(v[T])?(_[T]={},Y(_[T],l[T]),Y(_[T],v[T])):v[T]!=null?_[T]=v[T]:delete _[T]);for(T in l)y(l,T)&&!y(v,T)&&p(l[T])&&(_[T]=Y({},_[T]));return _}function Kt(l){l!=null&&this.set(l)}var lt;Object.keys?lt=Object.keys:lt=function(l){var v,_=[];for(v in l)y(l,v)&&_.push(v);return _};var kt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $r(l,v,_){var T=this._calendar[l]||this._calendar.sameElse;return Ye(T)?T.call(v,_):T}function ht(l,v,_){var T=""+Math.abs(l),P=v-T.length,j=l>=0;return(j?_?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+T}var Ct=/(\[[^\[]*\])|(\\)?([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,ui=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,sn={},$t={};function ce(l,v,_,T){var P=T;typeof T=="string"&&(P=function(){return this[T]()}),l&&($t[l]=P),v&&($t[v[0]]=function(){return ht(P.apply(this,arguments),v[1],v[2])}),_&&($t[_]=function(){return this.localeData().ordinal(P.apply(this,arguments),l)})}function Gn(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function En(l){var v=l.match(Ct),_,T;for(_=0,T=v.length;_<T;_++)$t[v[_]]?v[_]=$t[v[_]]:v[_]=Gn(v[_]);return function(P){var j="",q;for(q=0;q<T;q++)j+=Ye(v[q])?v[q].call(P,l):v[q];return j}}function ln(l,v){return l.isValid()?(v=ke(v,l.localeData()),sn[v]=sn[v]||En(v),sn[v](l)):l.localeData().invalidDate()}function ke(l,v){var _=5;function T(P){return v.longDateFormat(P)||P}for(ui.lastIndex=0;_>=0&&ui.test(l);)l=l.replace(ui,T),ui.lastIndex=0,_-=1;return l}var ge={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 be(l){var v=this._longDateFormat[l],_=this._longDateFormat[l.toUpperCase()];return v||!_?v:(this._longDateFormat[l]=_.match(Ct).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[l])}var je="Invalid date";function Qe(){return this._invalidDate}var rt="%d",Ut=/\d{1,2}/;function Bt(l){return this._ordinal.replace("%d",l)}var ii={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 zn(l,v,_,T){var P=this._relativeTime[_];return Ye(P)?P(l,v,_,T):P.replace(/%d/i,l)}function sr(l,v){var _=this._relativeTime[l>0?"future":"past"];return Ye(_)?_(v):_.replace(/%s/i,v)}var Zi={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 nr(l){return typeof l=="string"?Zi[l]||Zi[l.toLowerCase()]:void 0}function Ft(l){var v={},_,T;for(T in l)y(l,T)&&(_=nr(T),_&&(v[_]=l[T]));return v}var Lt={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 el(l){var v=[],_;for(_ in l)y(l,_)&&v.push({unit:_,priority:Lt[_]});return v.sort(function(T,P){return T.priority-P.priority}),v}var ts=/\d/,ct=/\d\d/,Ht=/\d{3}/,Pr=/\d{4}/,Pt=/[+-]?\d{6}/,Ve=/\d\d?/,rs=/\d\d\d\d?/,Er=/\d\d\d\d\d\d?/,da=/\d{1,3}/,Vt=/\d{1,4}/,hi=/[+-]?\d{1,6}/,Li=/\d+/,yi=/[+-]?\d+/,nu=/Z|[+-]\d\d:?\d\d/gi,fa=/Z|[+-]\d\d(?::?\d\d)?/gi,Yh=/[+-]?\d+(\.\d{1,3})?/,ci=/[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,lr=/^[1-9]\d?/,va=/^([1-9]\d|\d)/,Ji;Ji={};function ue(l,v,_){Ji[l]=Ye(v)?v:function(T,P){return T&&_?_:v}}function Sd(l,v){return y(Ji,l)?Ji[l](v._strict,v._locale):new RegExp(is(l))}function is(l){return Hr(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(v,_,T,P,j){return _||T||P||j}))}function Hr(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Et(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Oe(l){var v=+l,_=0;return v!==0&&isFinite(v)&&(_=Et(v)),_}var Co={};function Ue(l,v){var _,T=v,P;for(typeof l=="string"&&(l=[l]),$(v)&&(T=function(j,q){q[v]=Oe(j)}),P=l.length,_=0;_<P;_++)Co[l[_]]=T}function di(l,v){Ue(l,function(_,T,P,j){P._w=P._w||{},v(_,P._w,P,j)})}function xd(l,v,_){v!=null&&y(Co,l)&&Co[l](v,_._a,_,l)}function Va(l){return l%4===0&&l%100!==0||l%400===0}var Dt=0,ur=1,wr=2,ut=3,pr=4,Ir=5,bi=6,_i=7,Td=8;ce("Y",0,0,function(){var l=this.year();return l<=9999?ht(l,4):"+"+l}),ce(0,["YY",2],0,function(){return this.year()%100}),ce(0,["YYYY",4],0,"year"),ce(0,["YYYYY",5],0,"year"),ce(0,["YYYYYY",6,!0],0,"year"),ue("Y",yi),ue("YY",Ve,ct),ue("YYYY",Vt,Pr),ue("YYYYY",hi,Pt),ue("YYYYYY",hi,Pt),Ue(["YYYYY","YYYYYY"],Dt),Ue("YYYY",function(l,v){v[Dt]=l.length===2?n.parseTwoDigitYear(l):Oe(l)}),Ue("YY",function(l,v){v[Dt]=n.parseTwoDigitYear(l)}),Ue("Y",function(l,v){v[Dt]=parseInt(l,10)});function Dn(l){return Va(l)?366:365}n.parseTwoDigitYear=function(l){return Oe(l)+(Oe(l)>68?1900:2e3)};var qa=Mr("FullYear",!0);function tl(){return Va(this.year())}function Mr(l,v){return function(_){return _!=null?(au(this,l,_),n.updateOffset(this,v),this):un(this,l)}}function un(l,v){if(!l.isValid())return NaN;var _=l._d,T=l._isUTC;switch(v){case"Milliseconds":return T?_.getUTCMilliseconds():_.getMilliseconds();case"Seconds":return T?_.getUTCSeconds():_.getSeconds();case"Minutes":return T?_.getUTCMinutes():_.getMinutes();case"Hours":return T?_.getUTCHours():_.getHours();case"Date":return T?_.getUTCDate():_.getDate();case"Day":return T?_.getUTCDay():_.getDay();case"Month":return T?_.getUTCMonth():_.getMonth();case"FullYear":return T?_.getUTCFullYear():_.getFullYear();default:return NaN}}function au(l,v,_){var T,P,j,q,le;if(!(!l.isValid()||isNaN(_))){switch(T=l._d,P=l._isUTC,v){case"Milliseconds":return void(P?T.setUTCMilliseconds(_):T.setMilliseconds(_));case"Seconds":return void(P?T.setUTCSeconds(_):T.setSeconds(_));case"Minutes":return void(P?T.setUTCMinutes(_):T.setMinutes(_));case"Hours":return void(P?T.setUTCHours(_):T.setHours(_));case"Date":return void(P?T.setUTCDate(_):T.setDate(_));case"FullYear":break;default:return}j=_,q=l.month(),le=l.date(),le=le===29&&q===1&&!Va(j)?28:le,P?T.setUTCFullYear(j,q,le):T.setFullYear(j,q,le)}}function wi(l){return l=nr(l),Ye(this[l])?this[l]():this}function Bh(l,v){if(typeof l=="object"){l=Ft(l);var _=el(l),T,P=_.length;for(T=0;T<P;T++)this[_[T].unit](l[_[T].unit])}else if(l=nr(l),Ye(this[l]))return this[l](v);return this}function Cd(l,v){return(l%v+v)%v}var Ge;Array.prototype.indexOf?Ge=Array.prototype.indexOf:Ge=function(l){var v;for(v=0;v<this.length;++v)if(this[v]===l)return v;return-1};function ns(l,v){if(isNaN(l)||isNaN(v))return NaN;var _=Cd(v,12);return l+=(v-_)/12,_===1?Va(l)?29:28:31-_%7%2}ce("M",["MM",2],"Mo",function(){return this.month()+1}),ce("MMM",0,0,function(l){return this.localeData().monthsShort(this,l)}),ce("MMMM",0,0,function(l){return this.localeData().months(this,l)}),ue("M",Ve,lr),ue("MM",Ve,ct),ue("MMM",function(l,v){return v.monthsShortRegex(l)}),ue("MMMM",function(l,v){return v.monthsRegex(l)}),Ue(["M","MM"],function(l,v){v[ur]=Oe(l)-1}),Ue(["MMM","MMMM"],function(l,v,_,T){var P=_._locale.monthsParse(l,T,_._strict);P!=null?v[ur]=P:G(_).invalidMonth=l});var Ed="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ou="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),su=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,as=ci,Dd=ci;function rl(l,v){return l?d(this._months)?this._months[l.month()]:this._months[(this._months.isFormat||su).test(v)?"format":"standalone"][l.month()]:d(this._months)?this._months:this._months.standalone}function Hh(l,v){return l?d(this._monthsShort)?this._monthsShort[l.month()]:this._monthsShort[su.test(v)?"format":"standalone"][l.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Eo(l,v,_){var T,P,j,q=l.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],T=0;T<12;++T)j=V([2e3,T]),this._shortMonthsParse[T]=this.monthsShort(j,"").toLocaleLowerCase(),this._longMonthsParse[T]=this.months(j,"").toLocaleLowerCase();return _?v==="MMM"?(P=Ge.call(this._shortMonthsParse,q),P!==-1?P:null):(P=Ge.call(this._longMonthsParse,q),P!==-1?P:null):v==="MMM"?(P=Ge.call(this._shortMonthsParse,q),P!==-1?P:(P=Ge.call(this._longMonthsParse,q),P!==-1?P:null)):(P=Ge.call(this._longMonthsParse,q),P!==-1?P:(P=Ge.call(this._shortMonthsParse,q),P!==-1?P:null))}function Od(l,v,_){var T,P,j;if(this._monthsParseExact)return Eo.call(this,l,v,_);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),T=0;T<12;T++){if(P=V([2e3,T]),_&&!this._longMonthsParse[T]&&(this._longMonthsParse[T]=new RegExp("^"+this.months(P,"").replace(".","")+"$","i"),this._shortMonthsParse[T]=new RegExp("^"+this.monthsShort(P,"").replace(".","")+"$","i")),!_&&!this._monthsParse[T]&&(j="^"+this.months(P,"")+"|^"+this.monthsShort(P,""),this._monthsParse[T]=new RegExp(j.replace(".",""),"i")),_&&v==="MMMM"&&this._longMonthsParse[T].test(l))return T;if(_&&v==="MMM"&&this._shortMonthsParse[T].test(l))return T;if(!_&&this._monthsParse[T].test(l))return T}}function pa(l,v){if(!l.isValid())return l;if(typeof v=="string"){if(/^\d+$/.test(v))v=Oe(v);else if(v=l.localeData().monthsParse(v),!$(v))return l}var _=v,T=l.date();return T=T<29?T:Math.min(T,ns(l.year(),_)),l._isUTC?l._d.setUTCMonth(_,T):l._d.setMonth(_,T),l}function Ar(l){return l!=null?(pa(this,l),n.updateOffset(this,!0),this):un(this,"Month")}function $d(){return ns(this.year(),this.month())}function hr(l){return this._monthsParseExact?(y(this,"_monthsRegex")||ar.call(this),l?this._monthsShortStrictRegex:this._monthsShortRegex):(y(this,"_monthsShortRegex")||(this._monthsShortRegex=as),this._monthsShortStrictRegex&&l?this._monthsShortStrictRegex:this._monthsShortRegex)}function Pd(l){return this._monthsParseExact?(y(this,"_monthsRegex")||ar.call(this),l?this._monthsStrictRegex:this._monthsRegex):(y(this,"_monthsRegex")||(this._monthsRegex=Dd),this._monthsStrictRegex&&l?this._monthsStrictRegex:this._monthsRegex)}function ar(){function l(me,Pe){return Pe.length-me.length}var v=[],_=[],T=[],P,j,q,le;for(P=0;P<12;P++)j=V([2e3,P]),q=Hr(this.monthsShort(j,"")),le=Hr(this.months(j,"")),v.push(q),_.push(le),T.push(le),T.push(q);v.sort(l),_.sort(l),T.sort(l),this._monthsRegex=new RegExp("^("+T.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+v.join("|")+")","i")}function Wh(l,v,_,T,P,j,q){var le;return l<100&&l>=0?(le=new Date(l+400,v,_,T,P,j,q),isFinite(le.getFullYear())&&le.setFullYear(l)):le=new Date(l,v,_,T,P,j,q),le}function Un(l){var v,_;return l<100&&l>=0?(_=Array.prototype.slice.call(arguments),_[0]=l+400,v=new Date(Date.UTC.apply(null,_)),isFinite(v.getUTCFullYear())&&v.setUTCFullYear(l)):v=new Date(Date.UTC.apply(null,arguments)),v}function Ka(l,v,_){var T=7+v-_,P=(7+Un(l,0,T).getUTCDay()-v)%7;return-P+T-1}function lu(l,v,_,T,P){var j=(7+_-T)%7,q=Ka(l,T,P),le=1+7*(v-1)+j+q,me,Pe;return le<=0?(me=l-1,Pe=Dn(me)+le):le>Dn(l)?(me=l+1,Pe=le-Dn(l)):(me=l,Pe=le),{year:me,dayOfYear:Pe}}function Qi(l,v,_){var T=Ka(l.year(),v,_),P=Math.floor((l.dayOfYear()-T-1)/7)+1,j,q;return P<1?(q=l.year()-1,j=P+Wr(q,v,_)):P>Wr(l.year(),v,_)?(j=P-Wr(l.year(),v,_),q=l.year()+1):(q=l.year(),j=P),{week:j,year:q}}function Wr(l,v,_){var T=Ka(l,v,_),P=Ka(l+1,v,_);return(Dn(l)-T+P)/7}ce("w",["ww",2],"wo","week"),ce("W",["WW",2],"Wo","isoWeek"),ue("w",Ve,lr),ue("ww",Ve,ct),ue("W",Ve,lr),ue("WW",Ve,ct),di(["w","ww","W","WW"],function(l,v,_,T){v[T.substr(0,1)]=Oe(l)});function Id(l){return Qi(l,this._week.dow,this._week.doy).week}var os={dow:0,doy:6};function Gh(){return this._week.dow}function uu(){return this._week.doy}function Md(l){var v=this.localeData().week(this);return l==null?v:this.add((l-v)*7,"d")}function Xa(l){var v=Qi(this,1,4).week;return l==null?v:this.add((l-v)*7,"d")}ce("d",0,"do","day"),ce("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),ce("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),ce("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),ce("e",0,0,"weekday"),ce("E",0,0,"isoWeekday"),ue("d",Ve),ue("e",Ve),ue("E",Ve),ue("dd",function(l,v){return v.weekdaysMinRegex(l)}),ue("ddd",function(l,v){return v.weekdaysShortRegex(l)}),ue("dddd",function(l,v){return v.weekdaysRegex(l)}),di(["dd","ddd","dddd"],function(l,v,_,T){var P=_._locale.weekdaysParse(l,T,_._strict);P!=null?v.d=P:G(_).invalidWeekday=l}),di(["d","e","E"],function(l,v,_,T){v[T]=Oe(l)});function hu(l,v){return typeof l!="string"?l:isNaN(l)?(l=v.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function zh(l,v){return typeof l=="string"?v.weekdaysParse(l)%7||7:isNaN(l)?null:l}function Wt(l,v){return l.slice(v,7).concat(l.slice(0,v))}var Ad="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),il="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Uh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rd=ci,Nd=ci,Ld=ci;function Fd(l,v){var _=d(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(v)?"format":"standalone"];return l===!0?Wt(_,this._week.dow):l?_[l.day()]:_}function Vh(l){return l===!0?Wt(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function jd(l){return l===!0?Wt(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function Yd(l,v,_){var T,P,j,q=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)j=V([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin(j,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort(j,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays(j,"").toLocaleLowerCase();return _?v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1?P:null):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null):(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null):v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1||(P=Ge.call(this._shortWeekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):(P=Ge.call(this._minWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null))}function Bd(l,v,_){var T,P,j;if(this._weekdaysParseExact)return Yd.call(this,l,v,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(P=V([2e3,1]).day(T),_&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(P,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(P,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(P,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||(j="^"+this.weekdays(P,"")+"|^"+this.weekdaysShort(P,"")+"|^"+this.weekdaysMin(P,""),this._weekdaysParse[T]=new RegExp(j.replace(".",""),"i")),_&&v==="dddd"&&this._fullWeekdaysParse[T].test(l))return T;if(_&&v==="ddd"&&this._shortWeekdaysParse[T].test(l))return T;if(_&&v==="dd"&&this._minWeekdaysParse[T].test(l))return T;if(!_&&this._weekdaysParse[T].test(l))return T}}function ma(l){if(!this.isValid())return l!=null?this:NaN;var v=un(this,"Day");return l!=null?(l=hu(l,this.localeData()),this.add(l-v,"d")):v}function Hd(l){if(!this.isValid())return l!=null?this:NaN;var v=(this.day()+7-this.localeData()._week.dow)%7;return l==null?v:this.add(l-v,"d")}function qh(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var v=zh(l,this.localeData());return this.day(this.day()%7?v:v-7)}else return this.day()||7}function cu(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,"_weekdaysRegex")||(this._weekdaysRegex=Rd),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wd(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nd),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function du(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ld),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ss(){function l(It,Vr){return Vr.length-It.length}var v=[],_=[],T=[],P=[],j,q,le,me,Pe;for(j=0;j<7;j++)q=V([2e3,1]).day(j),le=Hr(this.weekdaysMin(q,"")),me=Hr(this.weekdaysShort(q,"")),Pe=Hr(this.weekdays(q,"")),v.push(le),_.push(me),T.push(Pe),P.push(le),P.push(me),P.push(Pe);v.sort(l),_.sort(l),T.sort(l),P.sort(l),this._weekdaysRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+v.join("|")+")","i")}function ls(){return this.hours()%12||12}function Gd(){return this.hours()||24}ce("H",["HH",2],0,"hour"),ce("h",["hh",2],0,ls),ce("k",["kk",2],0,Gd),ce("hmm",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)}),ce("hmmss",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)+ht(this.seconds(),2)}),ce("Hmm",0,0,function(){return""+this.hours()+ht(this.minutes(),2)}),ce("Hmmss",0,0,function(){return""+this.hours()+ht(this.minutes(),2)+ht(this.seconds(),2)});function ga(l,v){ce(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),v)})}ga("a",!0),ga("A",!1);function fi(l,v){return v._meridiemParse}ue("a",fi),ue("A",fi),ue("H",Ve,va),ue("h",Ve,lr),ue("k",Ve,lr),ue("HH",Ve,ct),ue("hh",Ve,ct),ue("kk",Ve,ct),ue("hmm",rs),ue("hmmss",Er),ue("Hmm",rs),ue("Hmmss",Er),Ue(["H","HH"],ut),Ue(["k","kk"],function(l,v,_){var T=Oe(l);v[ut]=T===24?0:T}),Ue(["a","A"],function(l,v,_){_._isPm=_._locale.isPM(l),_._meridiem=l}),Ue(["h","hh"],function(l,v,_){v[ut]=Oe(l),G(_).bigHour=!0}),Ue("hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T)),G(_).bigHour=!0}),Ue("hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P)),G(_).bigHour=!0}),Ue("Hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T))}),Ue("Hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P))});function Kh(l){return(l+"").toLowerCase().charAt(0)==="p"}var zd=/[ap]\.?m?\.?/i,Ud=Mr("Hours",!0);function Vd(l,v,_){return l>11?_?"pm":"PM":_?"am":"AM"}var Fi={calendar:kt,longDateFormat:ge,invalidDate:je,ordinal:rt,dayOfMonthOrdinalParse:Ut,relativeTime:ii,months:Ed,monthsShort:ou,week:os,weekdays:Ad,weekdaysMin:Uh,weekdaysShort:il,meridiemParse:zd},nt={},Vn={},On;function nl(l,v){var _,T=Math.min(l.length,v.length);for(_=0;_<T;_+=1)if(l[_]!==v[_])return _;return T}function al(l){return l&&l.toLowerCase().replace("_","-")}function qd(l){for(var v=0,_,T,P,j;v<l.length;){for(j=al(l[v]).split("-"),_=j.length,T=al(l[v+1]),T=T?T.split("-"):null;_>0;){if(P=Ja(j.slice(0,_).join("-")),P)return P;if(T&&T.length>=_&&nl(j,T)>=_-1)break;_--}v++}return On}function Za(l){return!!(l&&l.match("^[^/\\\\]*$"))}function Ja(l){var v=null,_;if(nt[l]===void 0&&typeof a!="undefined"&&a&&a.exports&&Za(l))try{v=On._abbr,_=UV,_("./locale/"+l),Gr(v)}catch(T){nt[l]=null}return nt[l]}function Gr(l,v){var _;return l&&(w(v)?_=Rr(l):_=Qa(l,v),_?On=_:typeof console!="undefined"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),On._abbr}function Qa(l,v){if(v!==null){var _,T=Fi;if(v.abbr=l,nt[l]!=null)Fe("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."),T=nt[l]._config;else if(v.parentLocale!=null)if(nt[v.parentLocale]!=null)T=nt[v.parentLocale]._config;else if(_=Ja(v.parentLocale),_!=null)T=_._config;else return Vn[v.parentLocale]||(Vn[v.parentLocale]=[]),Vn[v.parentLocale].push({name:l,config:v}),null;return nt[l]=new Kt(gt(T,v)),Vn[l]&&Vn[l].forEach(function(P){Qa(P.name,P.config)}),Gr(l),nt[l]}else return delete nt[l],null}function fu(l,v){if(v!=null){var _,T,P=Fi;nt[l]!=null&&nt[l].parentLocale!=null?nt[l].set(gt(nt[l]._config,v)):(T=Ja(l),T!=null&&(P=T._config),v=gt(P,v),T==null&&(v.abbr=l),_=new Kt(v),_.parentLocale=nt[l],nt[l]=_),Gr(l)}else nt[l]!=null&&(nt[l].parentLocale!=null?(nt[l]=nt[l].parentLocale,l===Gr()&&Gr(l)):nt[l]!=null&&delete nt[l]);return nt[l]}function Rr(l){var v;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return On;if(!d(l)){if(v=Ja(l),v)return v;l=[l]}return qd(l)}function Xh(){return lt(nt)}function $n(l){var v,_=l._a;return _&&G(l).overflow===-2&&(v=_[ur]<0||_[ur]>11?ur:_[wr]<1||_[wr]>ns(_[Dt],_[ur])?wr:_[ut]<0||_[ut]>24||_[ut]===24&&(_[pr]!==0||_[Ir]!==0||_[bi]!==0)?ut:_[pr]<0||_[pr]>59?pr:_[Ir]<0||_[Ir]>59?Ir:_[bi]<0||_[bi]>999?bi:-1,G(l)._overflowDayOfYear&&(v<Dt||v>wr)&&(v=wr),G(l)._overflowWeeks&&v===-1&&(v=_i),G(l)._overflowWeekday&&v===-1&&(v=Td),G(l).overflow=v),l}var ol=/^\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)?)?$/,Kd=/^\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)?)?$/,ya=/Z|[+-]\d\d(?::?\d\d)?/,kr=[["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]],us=[["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/]],Xd=/^\/?Date\((-?\d+)/i,eo=/^(?:(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}))$/,Zd={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ba(l){var v,_,T=l._i,P=ol.exec(T)||Kd.exec(T),j,q,le,me,Pe=kr.length,It=us.length;if(P){for(G(l).iso=!0,v=0,_=Pe;v<_;v++)if(kr[v][1].exec(P[1])){q=kr[v][0],j=kr[v][2]!==!1;break}if(q==null){l._isValid=!1;return}if(P[3]){for(v=0,_=It;v<_;v++)if(us[v][1].exec(P[3])){le=(P[2]||" ")+us[v][0];break}if(le==null){l._isValid=!1;return}}if(!j&&le!=null){l._isValid=!1;return}if(P[4])if(ya.exec(P[4]))me="Z";else{l._isValid=!1;return}l._f=q+(le||"")+(me||""),to(l)}else l._isValid=!1}function Zh(l,v,_,T,P,j){var q=[ji(l),ou.indexOf(v),parseInt(_,10),parseInt(T,10),parseInt(P,10)];return j&&q.push(parseInt(j,10)),q}function ji(l){var v=parseInt(l,10);return v<=49?2e3+v:v<=999?1900+v:v}function Ke(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sl(l,v,_){if(l){var T=il.indexOf(l),P=new Date(v[0],v[1],v[2]).getDay();if(T!==P)return G(_).weekdayMismatch=!0,_._isValid=!1,!1}return!0}function Jh(l,v,_){if(l)return Zd[l];if(v)return 0;var T=parseInt(_,10),P=T%100,j=(T-P)/100;return j*60+P}function Do(l){var v=eo.exec(Ke(l._i)),_;if(v){if(_=Zh(v[4],v[3],v[2],v[5],v[6],v[7]),!sl(v[1],_,l))return;l._a=_,l._tzm=Jh(v[8],v[9],v[10]),l._d=Un.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),G(l).rfc2822=!0}else l._isValid=!1}function Qh(l){var v=Xd.exec(l._i);if(v!==null){l._d=new Date(+v[1]);return}if(ba(l),l._isValid===!1)delete l._isValid;else return;if(Do(l),l._isValid===!1)delete l._isValid;else return;l._strict?l._isValid=!1:n.createFromInputFallback(l)}n.createFromInputFallback=Ne("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(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))});function hn(l,v,_){return l!=null?l:v!=null?v:_}function ll(l){var v=new Date(n.now());return l._useUTC?[v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()]:[v.getFullYear(),v.getMonth(),v.getDate()]}function hs(l){var v,_,T=[],P,j,q;if(!l._d){for(P=ll(l),l._w&&l._a[wr]==null&&l._a[ur]==null&&ul(l),l._dayOfYear!=null&&(q=hn(l._a[Dt],P[Dt]),(l._dayOfYear>Dn(q)||l._dayOfYear===0)&&(G(l)._overflowDayOfYear=!0),_=Un(q,0,l._dayOfYear),l._a[ur]=_.getUTCMonth(),l._a[wr]=_.getUTCDate()),v=0;v<3&&l._a[v]==null;++v)l._a[v]=T[v]=P[v];for(;v<7;v++)l._a[v]=T[v]=l._a[v]==null?v===2?1:0:l._a[v];l._a[ut]===24&&l._a[pr]===0&&l._a[Ir]===0&&l._a[bi]===0&&(l._nextDay=!0,l._a[ut]=0),l._d=(l._useUTC?Un:Wh).apply(null,T),j=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[ut]=24),l._w&&typeof l._w.d!="undefined"&&l._w.d!==j&&(G(l).weekdayMismatch=!0)}}function ul(l){var v,_,T,P,j,q,le,me,Pe;v=l._w,v.GG!=null||v.W!=null||v.E!=null?(j=1,q=4,_=hn(v.GG,l._a[Dt],Qi(Xe(),1,4).year),T=hn(v.W,1),P=hn(v.E,1),(P<1||P>7)&&(me=!0)):(j=l._locale._week.dow,q=l._locale._week.doy,Pe=Qi(Xe(),j,q),_=hn(v.gg,l._a[Dt],Pe.year),T=hn(v.w,Pe.week),v.d!=null?(P=v.d,(P<0||P>6)&&(me=!0)):v.e!=null?(P=v.e+j,(v.e<0||v.e>6)&&(me=!0)):P=j),T<1||T>Wr(_,j,q)?G(l)._overflowWeeks=!0:me!=null?G(l)._overflowWeekday=!0:(le=lu(_,T,P,j,q),l._a[Dt]=le.year,l._dayOfYear=le.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function to(l){if(l._f===n.ISO_8601){ba(l);return}if(l._f===n.RFC_2822){Do(l);return}l._a=[],G(l).empty=!0;var v=""+l._i,_,T,P,j,q,le=v.length,me=0,Pe,It;for(P=ke(l._f,l._locale).match(Ct)||[],It=P.length,_=0;_<It;_++)j=P[_],T=(v.match(Sd(j,l))||[])[0],T&&(q=v.substr(0,v.indexOf(T)),q.length>0&&G(l).unusedInput.push(q),v=v.slice(v.indexOf(T)+T.length),me+=T.length),$t[j]?(T?G(l).empty=!1:G(l).unusedTokens.push(j),xd(j,T,l)):l._strict&&!T&&G(l).unusedTokens.push(j);G(l).charsLeftOver=le-me,v.length>0&&G(l).unusedInput.push(v),l._a[ut]<=12&&G(l).bigHour===!0&&l._a[ut]>0&&(G(l).bigHour=void 0),G(l).parsedDateParts=l._a.slice(0),G(l).meridiem=l._meridiem,l._a[ut]=vu(l._locale,l._a[ut],l._meridiem),Pe=G(l).era,Pe!==null&&(l._a[Dt]=l._locale.erasConvertYear(Pe,l._a[Dt])),hs(l),$n(l)}function vu(l,v,_){var T;return _==null?v:l.meridiemHour!=null?l.meridiemHour(v,_):(l.isPM!=null&&(T=l.isPM(_),T&&v<12&&(v+=12),!T&&v===12&&(v=0)),v)}function pu(l){var v,_,T,P,j,q,le=!1,me=l._f.length;if(me===0){G(l).invalidFormat=!0,l._d=new Date(NaN);return}for(P=0;P<me;P++)j=0,q=!1,v=ze({},l),l._useUTC!=null&&(v._useUTC=l._useUTC),v._f=l._f[P],to(v),ve(v)&&(q=!0),j+=G(v).charsLeftOver,j+=G(v).unusedTokens.length*10,G(v).score=j,le?j<T&&(T=j,_=v):(T==null||j<T||q)&&(T=j,_=v,q&&(le=!0));Y(l,_||v)}function ec(l){if(!l._d){var v=Ft(l._i),_=v.day===void 0?v.date:v.day;l._a=R([v.year,v.month,_,v.hour,v.minute,v.second,v.millisecond],function(T){return T&&parseInt(T,10)}),hs(l)}}function tc(l){var v=new tt($n(Yi(l)));return v._nextDay&&(v.add(1,"d"),v._nextDay=void 0),v}function Yi(l){var v=l._i,_=l._f;return l._locale=l._locale||Rr(l._l),v===null||_===void 0&&v===""?ye({nullInput:!0}):(typeof v=="string"&&(l._i=v=l._locale.preparse(v)),_e(v)?new tt($n(v)):(A(v)?l._d=v:d(_)?pu(l):_?to(l):hl(l),ve(l)||(l._d=null),l))}function hl(l){var v=l._i;w(v)?l._d=new Date(n.now()):A(v)?l._d=new Date(v.valueOf()):typeof v=="string"?Qh(l):d(v)?(l._a=R(v.slice(0),function(_){return parseInt(_,10)}),hs(l)):p(v)?ec(l):$(v)?l._d=new Date(v):n.createFromInputFallback(l)}function mu(l,v,_,T,P){var j={};return(v===!0||v===!1)&&(T=v,v=void 0),(_===!0||_===!1)&&(T=_,_=void 0),(p(l)&&b(l)||d(l)&&l.length===0)&&(l=void 0),j._isAMomentObject=!0,j._useUTC=j._isUTC=P,j._l=_,j._i=l,j._f=v,j._strict=T,tc(j)}function Xe(l,v,_,T){return mu(l,v,_,T,!1)}var Jd=Ne("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=Xe.apply(null,arguments);return this.isValid()&&l.isValid()?l<this?this:l:ye()}),Qd=Ne("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=Xe.apply(null,arguments);return this.isValid()&&l.isValid()?l>this?this:l:ye()});function gu(l,v){var _,T;if(v.length===1&&d(v[0])&&(v=v[0]),!v.length)return Xe();for(_=v[0],T=1;T<v.length;++T)(!v[T].isValid()||v[T][l](_))&&(_=v[T]);return _}function cn(){var l=[].slice.call(arguments,0);return gu("isBefore",l)}function ef(){var l=[].slice.call(arguments,0);return gu("isAfter",l)}var _a=function(){return Date.now?Date.now():+new Date},Pn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tf(l){var v,_=!1,T,P=Pn.length;for(v in l)if(y(l,v)&&!(Ge.call(Pn,v)!==-1&&(l[v]==null||!isNaN(l[v]))))return!1;for(T=0;T<P;++T)if(l[Pn[T]]){if(_)return!1;parseFloat(l[Pn[T]])!==Oe(l[Pn[T]])&&(_=!0)}return!0}function Ze(){return this._isValid}function rf(){return mr(NaN)}function wa(l){var v=Ft(l),_=v.year||0,T=v.quarter||0,P=v.month||0,j=v.week||v.isoWeek||0,q=v.day||0,le=v.hour||0,me=v.minute||0,Pe=v.second||0,It=v.millisecond||0;this._isValid=tf(v),this._milliseconds=+It+Pe*1e3+me*6e4+le*1e3*60*60,this._days=+q+j*7,this._months=+P+T*3+_*12,this._data={},this._locale=Rr(),this._bubble()}function ka(l){return l instanceof wa}function cs(l){return l<0?Math.round(-1*l)*-1:Math.round(l)}function yu(l,v,_){var T=Math.min(l.length,v.length),P=Math.abs(l.length-v.length),j=0,q;for(q=0;q<T;q++)Oe(l[q])!==Oe(v[q])&&j++;return j+P}function bu(l,v){ce(l,0,0,function(){var _=this.utcOffset(),T="+";return _<0&&(_=-_,T="-"),T+ht(~~(_/60),2)+v+ht(~~_%60,2)})}bu("Z",":"),bu("ZZ",""),ue("Z",fa),ue("ZZ",fa),Ue(["Z","ZZ"],function(l,v,_){_._useUTC=!0,_._tzm=ro(fa,l)});var rc=/([\+\-]|\d\d)/gi;function ro(l,v){var _=(v||"").match(l),T,P,j;return _===null?null:(T=_[_.length-1]||[],P=(T+"").match(rc)||["-",0,0],j=+(P[1]*60)+Oe(P[2]),j===0?0:P[0]==="+"?j:-j)}function Oo(l,v){var _,T;return v._isUTC?(_=v.clone(),T=(_e(l)||A(l)?l.valueOf():Xe(l).valueOf())-_.valueOf(),_._d.setTime(_._d.valueOf()+T),n.updateOffset(_,!1),_):Xe(l).local()}function ds(l){return-Math.round(l._d.getTimezoneOffset())}n.updateOffset=function(){};function fs(l,v,_){var T=this._offset||0,P;if(!this.isValid())return l!=null?this:NaN;if(l!=null){if(typeof l=="string"){if(l=ro(fa,l),l===null)return this}else Math.abs(l)<16&&!_&&(l=l*60);return!this._isUTC&&v&&(P=ds(this)),this._offset=l,this._isUTC=!0,P!=null&&this.add(P,"m"),T!==l&&(!v||this._changeInProgress?ki(this,mr(l-T,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?T:ds(this)}function ic(l,v){return l!=null?(typeof l!="string"&&(l=-l),this.utcOffset(l,v),this):-this.utcOffset()}function cl(l){return this.utcOffset(0,l)}function nc(l){return this._isUTC&&(this.utcOffset(0,l),this._isUTC=!1,l&&this.subtract(ds(this),"m")),this}function dl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var l=ro(nu,this._i);l!=null?this.utcOffset(l):this.utcOffset(0,!0)}return this}function nf(l){return this.isValid()?(l=l?Xe(l).utcOffset():0,(this.utcOffset()-l)%60===0):!1}function dn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function af(){if(!w(this._isDSTShifted))return this._isDSTShifted;var l={},v;return ze(l,this),l=Yi(l),l._a?(v=l._isUTC?V(l._a):Xe(l._a),this._isDSTShifted=this.isValid()&&yu(l._a,v.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function of(){return this.isValid()?!this._isUTC:!1}function sf(){return this.isValid()?this._isUTC:!1}function io(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lf=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mr(l,v){var _=l,T=null,P,j,q;return ka(l)?_={ms:l._milliseconds,d:l._days,M:l._months}:$(l)||!isNaN(+l)?(_={},v?_[v]=+l:_.milliseconds=+l):(T=fl.exec(l))?(P=T[1]==="-"?-1:1,_={y:0,d:Oe(T[wr])*P,h:Oe(T[ut])*P,m:Oe(T[pr])*P,s:Oe(T[Ir])*P,ms:Oe(cs(T[bi]*1e3))*P}):(T=lf.exec(l))?(P=T[1]==="-"?-1:1,_={y:zr(T[2],P),M:zr(T[3],P),w:zr(T[4],P),d:zr(T[5],P),h:zr(T[6],P),m:zr(T[7],P),s:zr(T[8],P)}):_==null?_={}:typeof _=="object"&&("from"in _||"to"in _)&&(q=Bi(Xe(_.from),Xe(_.to)),_={},_.ms=q.milliseconds,_.M=q.months),j=new wa(_),ka(l)&&y(l,"_locale")&&(j._locale=l._locale),ka(l)&&y(l,"_isValid")&&(j._isValid=l._isValid),j}mr.fn=wa.prototype,mr.invalid=rf;function zr(l,v){var _=l&&parseFloat(l.replace(",","."));return(isNaN(_)?0:_)*v}function _u(l,v){var _={};return _.months=v.month()-l.month()+(v.year()-l.year())*12,l.clone().add(_.months,"M").isAfter(v)&&--_.months,_.milliseconds=+v-+l.clone().add(_.months,"M"),_}function Bi(l,v){var _;return l.isValid()&&v.isValid()?(v=Oo(v,l),l.isBefore(v)?_=_u(l,v):(_=_u(v,l),_.milliseconds=-_.milliseconds,_.months=-_.months),_):{milliseconds:0,months:0}}function wu(l,v){return function(_,T){var P,j;return T!==null&&!isNaN(+T)&&(Fe(v,"moment()."+v+"(period, number) is deprecated. Please use moment()."+v+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),j=_,_=T,T=j),P=mr(_,T),ki(this,P,l),this}}function ki(l,v,_,T){var P=v._milliseconds,j=cs(v._days),q=cs(v._months);l.isValid()&&(T=T==null?!0:T,q&&pa(l,un(l,"Month")+q*_),j&&au(l,"Date",un(l,"Date")+j*_),P&&l._d.setTime(l._d.valueOf()+P*_),T&&n.updateOffset(l,j||q))}var vl=wu(1,"add"),uf=wu(-1,"subtract");function ku(l){return typeof l=="string"||l instanceof String}function ac(l){return _e(l)||A(l)||ku(l)||$(l)||vs(l)||Sa(l)||l===null||l===void 0}function Sa(l){var v=p(l)&&!b(l),_=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],P,j,q=T.length;for(P=0;P<q;P+=1)j=T[P],_=_||y(l,j);return v&&_}function vs(l){var v=d(l),_=!1;return v&&(_=l.filter(function(T){return!$(T)&&ku(l)}).length===0),v&&_}function Su(l){var v=p(l)&&!b(l),_=!1,T=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],P,j;for(P=0;P<T.length;P+=1)j=T[P],_=_||y(l,j);return v&&_}function oc(l,v){var _=l.diff(v,"days",!0);return _<-6?"sameElse":_<-1?"lastWeek":_<0?"lastDay":_<1?"sameDay":_<2?"nextDay":_<7?"nextWeek":"sameElse"}function xu(l,v){arguments.length===1&&(arguments[0]?ac(arguments[0])?(l=arguments[0],v=void 0):Su(arguments[0])&&(v=arguments[0],l=void 0):(l=void 0,v=void 0));var _=l||Xe(),T=Oo(_,this).startOf("day"),P=n.calendarFormat(this,T)||"sameElse",j=v&&(Ye(v[P])?v[P].call(this,_):v[P]);return this.format(j||this.localeData().calendar(P,this,Xe(_)))}function hf(){return new tt(this)}function sc(l,v){var _=_e(l)?l:Xe(l);return this.isValid()&&_.isValid()?(v=nr(v)||"millisecond",v==="millisecond"?this.valueOf()>_.valueOf():_.valueOf()<this.clone().startOf(v).valueOf()):!1}function ps(l,v){var _=_e(l)?l:Xe(l);return this.isValid()&&_.isValid()?(v=nr(v)||"millisecond",v==="millisecond"?this.valueOf()<_.valueOf():this.clone().endOf(v).valueOf()<_.valueOf()):!1}function Tu(l,v,_,T){var P=_e(l)?l:Xe(l),j=_e(v)?v:Xe(v);return this.isValid()&&P.isValid()&&j.isValid()?(T=T||"()",(T[0]==="("?this.isAfter(P,_):!this.isBefore(P,_))&&(T[1]===")"?this.isBefore(j,_):!this.isAfter(j,_))):!1}function cf(l,v){var _=_e(l)?l:Xe(l),T;return this.isValid()&&_.isValid()?(v=nr(v)||"millisecond",v==="millisecond"?this.valueOf()===_.valueOf():(T=_.valueOf(),this.clone().startOf(v).valueOf()<=T&&T<=this.clone().endOf(v).valueOf())):!1}function df(l,v){return this.isSame(l,v)||this.isAfter(l,v)}function ms(l,v){return this.isSame(l,v)||this.isBefore(l,v)}function ff(l,v,_){var T,P,j;if(!this.isValid())return NaN;if(T=Oo(l,this),!T.isValid())return NaN;switch(P=(T.utcOffset()-this.utcOffset())*6e4,v=nr(v),v){case"year":j=vi(this,T)/12;break;case"month":j=vi(this,T);break;case"quarter":j=vi(this,T)/3;break;case"second":j=(this-T)/1e3;break;case"minute":j=(this-T)/6e4;break;case"hour":j=(this-T)/36e5;break;case"day":j=(this-T-P)/864e5;break;case"week":j=(this-T-P)/6048e5;break;default:j=this-T}return _?j:Et(j)}function vi(l,v){if(l.date()<v.date())return-vi(v,l);var _=(v.year()-l.year())*12+(v.month()-l.month()),T=l.clone().add(_,"months"),P,j;return v-T<0?(P=l.clone().add(_-1,"months"),j=(v-T)/(T-P)):(P=l.clone().add(_+1,"months"),j=(v-T)/(P-T)),-(_+j)||0}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function vf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pf(l){if(!this.isValid())return null;var v=l!==!0,_=v?this.clone().utc():this;return _.year()<0||_.year()>9999?ln(_,v?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ye(Date.prototype.toISOString)?v?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(_,"Z")):ln(_,v?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Cu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",v="",_,T,P,j;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",v="Z"),_="["+l+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",P="-MM-DD[T]HH:mm:ss.SSS",j=v+'[")]',this.format(_+T+P+j)}function mf(l){l||(l=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var v=ln(this,l);return this.localeData().postformat(v)}function gs(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({to:this,from:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function gf(l){return this.from(Xe(),l)}function yf(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({from:this,to:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Eu(l){return this.to(Xe(),l)}function $o(l){var v;return l===void 0?this._locale._abbr:(v=Rr(l),v!=null&&(this._locale=v),this)}var Du=Ne("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function Ou(){return this._locale}var qn=1e3,fn=60*qn,xa=60*fn,ys=(365*400+97)*24*xa;function Hi(l,v){return(l%v+v)%v}function bs(l,v,_){return l<100&&l>=0?new Date(l+400,v,_)-ys:new Date(l,v,_).valueOf()}function Ta(l,v,_){return l<100&&l>=0?Date.UTC(l+400,v,_)-ys:Date.UTC(l,v,_)}function pl(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year(),0,1);break;case"quarter":v=_(this.year(),this.month()-this.month()%3,1);break;case"month":v=_(this.year(),this.month(),1);break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":v=_(this.year(),this.month(),this.date());break;case"hour":v=this._d.valueOf(),v-=Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa);break;case"minute":v=this._d.valueOf(),v-=Hi(v,fn);break;case"second":v=this._d.valueOf(),v-=Hi(v,qn);break}return this._d.setTime(v),n.updateOffset(this,!0),this}function _s(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year()+1,0,1)-1;break;case"quarter":v=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":v=_(this.year(),this.month()+1,1)-1;break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":v=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":v=this._d.valueOf(),v+=xa-Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa)-1;break;case"minute":v=this._d.valueOf(),v+=fn-Hi(v,fn)-1;break;case"second":v=this._d.valueOf(),v+=qn-Hi(v,qn)-1;break}return this._d.setTime(v),n.updateOffset(this,!0),this}function $u(){return this._d.valueOf()-(this._offset||0)*6e4}function ml(){return Math.floor(this.valueOf()/1e3)}function Po(){return new Date(this.valueOf())}function bf(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function Pu(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function lc(){return this.isValid()?this.toISOString():null}function uc(){return ve(this)}function _f(){return Y({},G(this))}function ws(){return G(this).overflow}function wf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ce("N",0,0,"eraAbbr"),ce("NN",0,0,"eraAbbr"),ce("NNN",0,0,"eraAbbr"),ce("NNNN",0,0,"eraName"),ce("NNNNN",0,0,"eraNarrow"),ce("y",["y",1],"yo","eraYear"),ce("y",["yy",2],0,"eraYear"),ce("y",["yyy",3],0,"eraYear"),ce("y",["yyyy",4],0,"eraYear"),ue("N",Io),ue("NN",Io),ue("NNN",Io),ue("NNNN",pc),ue("NNNNN",mc),Ue(["N","NN","NNN","NNNN","NNNNN"],function(l,v,_,T){var P=_._locale.erasParse(l,T,_._strict);P?G(_).era=P:G(_).invalidEra=l}),ue("y",Li),ue("yy",Li),ue("yyy",Li),ue("yyyy",Li),ue("yo",gc),Ue(["y","yy","yyy","yyyy"],Dt),Ue(["yo"],function(l,v,_,T){var P;_._locale._eraYearOrdinalRegex&&(P=l.match(_._locale._eraYearOrdinalRegex)),_._locale.eraYearOrdinalParse?v[Dt]=_._locale.eraYearOrdinalParse(l,P):v[Dt]=parseInt(l,10)});function hc(l,v){var _,T,P,j=this._eras||Rr("en")._eras;for(_=0,T=j.length;_<T;++_){switch(typeof j[_].since){case"string":P=n(j[_].since).startOf("day"),j[_].since=P.valueOf();break}switch(typeof j[_].until){case"undefined":j[_].until=1/0;break;case"string":P=n(j[_].until).startOf("day").valueOf(),j[_].until=P.valueOf();break}}return j}function Iu(l,v,_){var T,P,j=this.eras(),q,le,me;for(l=l.toUpperCase(),T=0,P=j.length;T<P;++T)if(q=j[T].name.toUpperCase(),le=j[T].abbr.toUpperCase(),me=j[T].narrow.toUpperCase(),_)switch(v){case"N":case"NN":case"NNN":if(le===l)return j[T];break;case"NNNN":if(q===l)return j[T];break;case"NNNNN":if(me===l)return j[T];break}else if([q,le,me].indexOf(l)>=0)return j[T]}function kf(l,v){var _=l.since<=l.until?1:-1;return v===void 0?n(l.since).year():n(l.since).year()+(v-l.offset)*_}function ks(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;l<v;++l)if(_=this.clone().startOf("day").valueOf(),T[l].since<=_&&_<=T[l].until||T[l].until<=_&&_<=T[l].since)return T[l].name;return""}function cc(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;l<v;++l)if(_=this.clone().startOf("day").valueOf(),T[l].since<=_&&_<=T[l].until||T[l].until<=_&&_<=T[l].since)return T[l].narrow;return""}function dc(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;l<v;++l)if(_=this.clone().startOf("day").valueOf(),T[l].since<=_&&_<=T[l].until||T[l].until<=_&&_<=T[l].since)return T[l].abbr;return""}function fc(){var l,v,_,T,P=this.localeData().eras();for(l=0,v=P.length;l<v;++l)if(_=P[l].since<=P[l].until?1:-1,T=this.clone().startOf("day").valueOf(),P[l].since<=T&&T<=P[l].until||P[l].until<=T&&T<=P[l].since)return(this.year()-n(P[l].since).year())*_+P[l].offset;return this.year()}function Je(l){return y(this,"_erasNameRegex")||Ss.call(this),l?this._erasNameRegex:this._erasRegex}function jt(l){return y(this,"_erasAbbrRegex")||Ss.call(this),l?this._erasAbbrRegex:this._erasRegex}function vc(l){return y(this,"_erasNarrowRegex")||Ss.call(this),l?this._erasNarrowRegex:this._erasRegex}function Io(l,v){return v.erasAbbrRegex(l)}function pc(l,v){return v.erasNameRegex(l)}function mc(l,v){return v.erasNarrowRegex(l)}function gc(l,v){return v._eraYearOrdinalRegex||Li}function Ss(){var l=[],v=[],_=[],T=[],P,j,q,le,me,Pe=this.eras();for(P=0,j=Pe.length;P<j;++P)q=Hr(Pe[P].name),le=Hr(Pe[P].abbr),me=Hr(Pe[P].narrow),v.push(q),l.push(le),_.push(me),T.push(q),T.push(le),T.push(me);this._erasRegex=new RegExp("^("+T.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+v.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+_.join("|")+")","i")}ce(0,["gg",2],0,function(){return this.weekYear()%100}),ce(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ca(l,v){ce(0,[l,l.length],0,v)}Ca("gggg","weekYear"),Ca("ggggg","weekYear"),Ca("GGGG","isoWeekYear"),Ca("GGGGG","isoWeekYear"),ue("G",yi),ue("g",yi),ue("GG",Ve,ct),ue("gg",Ve,ct),ue("GGGG",Vt,Pr),ue("gggg",Vt,Pr),ue("GGGGG",hi,Pt),ue("ggggg",hi,Pt),di(["gggg","ggggg","GGGG","GGGGG"],function(l,v,_,T){v[T.substr(0,2)]=Oe(l)}),di(["gg","GG"],function(l,v,_,T){v[T]=n.parseTwoDigitYear(l)});function xs(l){return Kn.call(this,l,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Sf(l){return Kn.call(this,l,this.isoWeek(),this.isoWeekday(),1,4)}function no(){return Wr(this.year(),1,4)}function xf(){return Wr(this.isoWeekYear(),1,4)}function Mu(){var l=this.localeData()._week;return Wr(this.year(),l.dow,l.doy)}function Tf(){var l=this.localeData()._week;return Wr(this.weekYear(),l.dow,l.doy)}function Kn(l,v,_,T,P){var j;return l==null?Qi(this,T,P).year:(j=Wr(l,T,P),v>j&&(v=j),gl.call(this,l,v,_,T,P))}function gl(l,v,_,T,P){var j=lu(l,v,_,T,P),q=Un(j.year,0,j.dayOfYear);return this.year(q.getUTCFullYear()),this.month(q.getUTCMonth()),this.date(q.getUTCDate()),this}ce("Q",0,"Qo","quarter"),ue("Q",ts),Ue("Q",function(l,v){v[ur]=(Oe(l)-1)*3});function Mo(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}ce("D",["DD",2],"Do","date"),ue("D",Ve,lr),ue("DD",Ve,ct),ue("Do",function(l,v){return l?v._dayOfMonthOrdinalParse||v._ordinalParse:v._dayOfMonthOrdinalParseLenient}),Ue(["D","DD"],wr),Ue("Do",function(l,v){v[wr]=Oe(l.match(Ve)[0])});var yl=Mr("Date",!0);ce("DDD",["DDDD",3],"DDDo","dayOfYear"),ue("DDD",da),ue("DDDD",Ht),Ue(["DDD","DDDD"],function(l,v,_){_._dayOfYear=Oe(l)});function Cf(l){var v=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?v:this.add(l-v,"d")}ce("m",["mm",2],0,"minute"),ue("m",Ve,va),ue("mm",Ve,ct),Ue(["m","mm"],pr);var bl=Mr("Minutes",!1);ce("s",["ss",2],0,"second"),ue("s",Ve,va),ue("ss",Ve,ct),Ue(["s","ss"],Ir);var Ef=Mr("Seconds",!1);ce("S",0,0,function(){return~~(this.millisecond()/100)}),ce(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ce(0,["SSS",3],0,"millisecond"),ce(0,["SSSS",4],0,function(){return this.millisecond()*10}),ce(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ce(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ce(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ce(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ce(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ue("S",da,ts),ue("SS",da,ct),ue("SSS",da,Ht);var ni,Au;for(ni="SSSS";ni.length<=9;ni+="S")ue(ni,Li);function Ru(l,v){v[bi]=Oe(("0."+l)*1e3)}for(ni="S";ni.length<=9;ni+="S")Ue(ni,Ru);Au=Mr("Milliseconds",!1),ce("z",0,0,"zoneAbbr"),ce("zz",0,0,"zoneName");function Df(){return this._isUTC?"UTC":""}function Ts(){return this._isUTC?"Coordinated Universal Time":""}var te=tt.prototype;te.add=vl,te.calendar=xu,te.clone=hf,te.diff=ff,te.endOf=_s,te.format=mf,te.from=gs,te.fromNow=gf,te.to=yf,te.toNow=Eu,te.get=wi,te.invalidAt=ws,te.isAfter=sc,te.isBefore=ps,te.isBetween=Tu,te.isSame=cf,te.isSameOrAfter=df,te.isSameOrBefore=ms,te.isValid=uc,te.lang=Du,te.locale=$o,te.localeData=Ou,te.max=Qd,te.min=Jd,te.parsingFlags=_f,te.set=Bh,te.startOf=pl,te.subtract=uf,te.toArray=bf,te.toObject=Pu,te.toDate=Po,te.toISOString=pf,te.inspect=Cu,typeof Symbol!="undefined"&&Symbol.for!=null&&(te[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),te.toJSON=lc,te.toString=vf,te.unix=ml,te.valueOf=$u,te.creationData=wf,te.eraName=ks,te.eraNarrow=cc,te.eraAbbr=dc,te.eraYear=fc,te.year=qa,te.isLeapYear=tl,te.weekYear=xs,te.isoWeekYear=Sf,te.quarter=te.quarters=Mo,te.month=Ar,te.daysInMonth=$d,te.week=te.weeks=Md,te.isoWeek=te.isoWeeks=Xa,te.weeksInYear=Mu,te.weeksInWeekYear=Tf,te.isoWeeksInYear=no,te.isoWeeksInISOWeekYear=xf,te.date=yl,te.day=te.days=ma,te.weekday=Hd,te.isoWeekday=qh,te.dayOfYear=Cf,te.hour=te.hours=Ud,te.minute=te.minutes=bl,te.second=te.seconds=Ef,te.millisecond=te.milliseconds=Au,te.utcOffset=fs,te.utc=cl,te.local=nc,te.parseZone=dl,te.hasAlignedHourOffset=nf,te.isDST=dn,te.isLocal=of,te.isUtcOffset=sf,te.isUtc=io,te.isUTC=io,te.zoneAbbr=Df,te.zoneName=Ts,te.dates=Ne("dates accessor is deprecated. Use date instead.",yl),te.months=Ne("months accessor is deprecated. Use month instead",Ar),te.years=Ne("years accessor is deprecated. Use year instead",qa),te.zone=Ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ic),te.isDSTShifted=Ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",af);function ao(l){return Xe(l*1e3)}function Of(){return Xe.apply(null,arguments).parseZone()}function Nu(l){return l}var Le=Kt.prototype;Le.calendar=$r,Le.longDateFormat=be,Le.invalidDate=Qe,Le.ordinal=Bt,Le.preparse=Nu,Le.postformat=Nu,Le.relativeTime=zn,Le.pastFuture=sr,Le.set=ir,Le.eras=hc,Le.erasParse=Iu,Le.erasConvertYear=kf,Le.erasAbbrRegex=jt,Le.erasNameRegex=Je,Le.erasNarrowRegex=vc,Le.months=rl,Le.monthsShort=Hh,Le.monthsParse=Od,Le.monthsRegex=Pd,Le.monthsShortRegex=hr,Le.week=Id,Le.firstDayOfYear=uu,Le.firstDayOfWeek=Gh,Le.weekdays=Fd,Le.weekdaysMin=jd,Le.weekdaysShort=Vh,Le.weekdaysParse=Bd,Le.weekdaysRegex=cu,Le.weekdaysShortRegex=Wd,Le.weekdaysMinRegex=du,Le.isPM=Kh,Le.meridiem=Vd;function Ea(l,v,_,T){var P=Rr(),j=V().set(T,v);return P[_](j,l)}function _l(l,v,_){if($(l)&&(v=l,l=void 0),l=l||"",v!=null)return Ea(l,v,_,"month");var T,P=[];for(T=0;T<12;T++)P[T]=Ea(l,T,_,"month");return P}function oo(l,v,_,T){typeof l=="boolean"?($(v)&&(_=v,v=void 0),v=v||""):(v=l,_=v,l=!1,$(v)&&(_=v,v=void 0),v=v||"");var P=Rr(),j=l?P._week.dow:0,q,le=[];if(_!=null)return Ea(v,(_+j)%7,T,"day");for(q=0;q<7;q++)le[q]=Ea(v,(q+j)%7,T,"day");return le}function yc(l,v){return _l(l,v,"months")}function bc(l,v){return _l(l,v,"monthsShort")}function wl(l,v,_){return oo(l,v,_,"weekdays")}function $f(l,v,_){return oo(l,v,_,"weekdaysShort")}function Pf(l,v,_){return oo(l,v,_,"weekdaysMin")}Gr("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(l){var v=l%10,_=Oe(l%100/10)===1?"th":v===1?"st":v===2?"nd":v===3?"rd":"th";return l+_}}),n.lang=Ne("moment.lang is deprecated. Use moment.locale instead.",Gr),n.langData=Ne("moment.langData is deprecated. Use moment.localeData instead.",Rr);var Nr=Math.abs;function If(){var l=this._data;return this._milliseconds=Nr(this._milliseconds),this._days=Nr(this._days),this._months=Nr(this._months),l.milliseconds=Nr(l.milliseconds),l.seconds=Nr(l.seconds),l.minutes=Nr(l.minutes),l.hours=Nr(l.hours),l.months=Nr(l.months),l.years=Nr(l.years),this}function Lu(l,v,_,T){var P=mr(v,_);return l._milliseconds+=T*P._milliseconds,l._days+=T*P._days,l._months+=T*P._months,l._bubble()}function Mf(l,v){return Lu(this,l,v,1)}function Af(l,v){return Lu(this,l,v,-1)}function Si(l){return l<0?Math.floor(l):Math.ceil(l)}function Cs(){var l=this._milliseconds,v=this._days,_=this._months,T=this._data,P,j,q,le,me;return l>=0&&v>=0&&_>=0||l<=0&&v<=0&&_<=0||(l+=Si(Ao(_)+v)*864e5,v=0,_=0),T.milliseconds=l%1e3,P=Et(l/1e3),T.seconds=P%60,j=Et(P/60),T.minutes=j%60,q=Et(j/60),T.hours=q%24,v+=Et(q/24),me=Et(Fu(v)),_+=me,v-=Si(Ao(me)),le=Et(_/12),_%=12,T.days=v,T.months=_,T.years=le,this}function Fu(l){return l*4800/146097}function Ao(l){return l*146097/4800}function Ro(l){if(!this.isValid())return NaN;var v,_,T=this._milliseconds;if(l=nr(l),l==="month"||l==="quarter"||l==="year")switch(v=this._days+T/864e5,_=this._months+Fu(v),l){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(v=this._days+Math.round(Ao(this._months)),l){case"week":return v/7+T/6048e5;case"day":return v+T/864e5;case"hour":return v*24+T/36e5;case"minute":return v*1440+T/6e4;case"second":return v*86400+T/1e3;case"millisecond":return Math.floor(v*864e5)+T;default:throw new Error("Unknown unit "+l)}}function Lr(l){return function(){return this.as(l)}}var ju=Lr("ms"),_c=Lr("s"),Rf=Lr("m"),Nf=Lr("h"),wc=Lr("d"),Lf=Lr("w"),kc=Lr("M"),Yu=Lr("Q"),Bu=Lr("y"),kl=ju;function No(){return mr(this)}function Hu(l){return l=nr(l),this.isValid()?this[l+"s"]():NaN}function Fr(l){return function(){return this.isValid()?this._data[l]:NaN}}var Sc=Fr("milliseconds"),Wu=Fr("seconds"),Da=Fr("minutes"),Sl=Fr("hours"),In=Fr("days"),Xn=Fr("months"),xl=Fr("years");function xc(){return Et(this.days()/7)}var Ur=Math.round,Wi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tc(l,v,_,T,P){return P.relativeTime(v||1,!!_,l,T)}function cr(l,v,_,T){var P=mr(l).abs(),j=Ur(P.as("s")),q=Ur(P.as("m")),le=Ur(P.as("h")),me=Ur(P.as("d")),Pe=Ur(P.as("M")),It=Ur(P.as("w")),Vr=Ur(P.as("y")),pi=j<=_.ss&&["s",j]||j<_.s&&["ss",j]||q<=1&&["m"]||q<_.m&&["mm",q]||le<=1&&["h"]||le<_.h&&["hh",le]||me<=1&&["d"]||me<_.d&&["dd",me];return _.w!=null&&(pi=pi||It<=1&&["w"]||It<_.w&&["ww",It]),pi=pi||Pe<=1&&["M"]||Pe<_.M&&["MM",Pe]||Vr<=1&&["y"]||["yy",Vr],pi[2]=v,pi[3]=+l>0,pi[4]=T,Tc.apply(null,pi)}function Ff(l){return l===void 0?Ur:typeof l=="function"?(Ur=l,!0):!1}function jf(l,v){return Wi[l]===void 0?!1:v===void 0?Wi[l]:(Wi[l]=v,l==="s"&&(Wi.ss=v-1),!0)}function Yf(l,v){if(!this.isValid())return this.localeData().invalidDate();var _=!1,T=Wi,P,j;return typeof l=="object"&&(v=l,l=!1),typeof l=="boolean"&&(_=l),typeof v=="object"&&(T=Object.assign({},Wi,v),v.s!=null&&v.ss==null&&(T.ss=v.s-1)),P=this.localeData(),j=cr(this,!_,T,P),_&&(j=P.pastFuture(+this,j)),P.postformat(j)}var Lo=Math.abs;function en(l){return(l>0)-(l<0)||+l}function so(){if(!this.isValid())return this.localeData().invalidDate();var l=Lo(this._milliseconds)/1e3,v=Lo(this._days),_=Lo(this._months),T,P,j,q,le=this.asSeconds(),me,Pe,It,Vr;return le?(T=Et(l/60),P=Et(T/60),l%=60,T%=60,j=Et(_/12),_%=12,q=l?l.toFixed(3).replace(/\.?0+$/,""):"",me=le<0?"-":"",Pe=en(this._months)!==en(le)?"-":"",It=en(this._days)!==en(le)?"-":"",Vr=en(this._milliseconds)!==en(le)?"-":"",me+"P"+(j?Pe+j+"Y":"")+(_?Pe+_+"M":"")+(v?It+v+"D":"")+(P||T||l?"T":"")+(P?Vr+P+"H":"")+(T?Vr+T+"M":"")+(l?Vr+q+"S":"")):"P0D"}var Ie=wa.prototype;return Ie.isValid=Ze,Ie.abs=If,Ie.add=Mf,Ie.subtract=Af,Ie.as=Ro,Ie.asMilliseconds=ju,Ie.asSeconds=_c,Ie.asMinutes=Rf,Ie.asHours=Nf,Ie.asDays=wc,Ie.asWeeks=Lf,Ie.asMonths=kc,Ie.asQuarters=Yu,Ie.asYears=Bu,Ie.valueOf=kl,Ie._bubble=Cs,Ie.clone=No,Ie.get=Hu,Ie.milliseconds=Sc,Ie.seconds=Wu,Ie.minutes=Da,Ie.hours=Sl,Ie.days=In,Ie.weeks=xc,Ie.months=Xn,Ie.years=xl,Ie.humanize=Yf,Ie.toISOString=so,Ie.toString=so,Ie.toJSON=so,Ie.locale=$o,Ie.localeData=Ou,Ie.toIsoString=Ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",so),Ie.lang=Du,ce("X",0,0,"unix"),ce("x",0,0,"valueOf"),ue("x",yi),ue("X",Yh),Ue("X",function(l,v,_){_._d=new Date(parseFloat(l)*1e3)}),Ue("x",function(l,v,_){_._d=new Date(Oe(l))}),n.version="2.30.1",h(Xe),n.fn=te,n.min=cn,n.max=ef,n.now=_a,n.utc=V,n.unix=ao,n.months=yc,n.isDate=A,n.locale=Gr,n.invalid=ye,n.duration=mr,n.isMoment=_e,n.weekdays=wl,n.parseZone=Of,n.localeData=Rr,n.isDuration=ka,n.monthsShort=bc,n.weekdaysMin=Pf,n.defineLocale=Qa,n.updateLocale=fu,n.locales=Xh,n.weekdaysShort=$f,n.normalizeUnits=nr,n.relativeTimeRounding=Ff,n.relativeTimeThreshold=jf,n.calendarFormat=oc,n.prototype=te,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})}}),XV=pN({"node_modules/vis-data/peer/umd/vis-data.js"(e,a){(function(t,n){typeof e=="object"&&typeof a!="undefined"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,n(t.vis=t.vis||{}))})(e,function(t){function n(g,k){if(!(g instanceof k))throw new TypeError("Cannot call a class as a function")}var h=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function d(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var p={exports:{}},y=function(g){return g&&g.Math===Math&&g},b=y(typeof globalThis=="object"&&globalThis)||y(typeof window=="object"&&window)||y(typeof self=="object"&&self)||y(typeof h=="object"&&h)||function(){return this}()||h||Function("return this")(),w=function(g){try{return!!g()}catch(k){return!0}},$=w,A=!$(function(){var g=function(){}.bind();return typeof g!="function"||g.hasOwnProperty("prototype")}),R=A,Y=Function.prototype,V=Y.apply,oe=Y.call,G=typeof Reflect=="object"&&Reflect.apply||(R?oe.bind(V):function(){return oe.apply(V,arguments)}),ae=A,ve=Function.prototype,ye=ve.call,pe=ae&&ve.bind.bind(ye,ye),Se=ae?pe:function(g){return function(){return ye.apply(g,arguments)}},ze=Se,tt=ze({}.toString),_e=ze("".slice),it=function(g){return _e(tt(g),8,-1)},Ne=it,qe=Se,Fe=function(g){if(Ne(g)==="Function")return qe(g)},Ye=typeof document=="object"&&document.all,ir=typeof Ye=="undefined"&&Ye!==void 0,gt={all:Ye,IS_HTMLDDA:ir},Kt=gt,lt=Kt.all,kt=Kt.IS_HTMLDDA?function(g){return typeof g=="function"||g===lt}:function(g){return typeof g=="function"},$r={},ht=w,Ct=!ht(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ui=A,sn=Function.prototype.call,$t=ui?sn.bind(sn):function(){return sn.apply(sn,arguments)},ce={},Gn={}.propertyIsEnumerable,En=Object.getOwnPropertyDescriptor,ln=En&&!Gn.call({1:2},1);ce.f=ln?function(k){var C=En(this,k);return!!C&&C.enumerable}:Gn;var ke=function(g,k){return{enumerable:!(g&1),configurable:!(g&2),writable:!(g&4),value:k}},ge=Se,be=w,je=it,Qe=Object,rt=ge("".split),Ut=be(function(){return!Qe("z").propertyIsEnumerable(0)})?function(g){return je(g)==="String"?rt(g,""):Qe(g)}:Qe,Bt=function(g){return g==null},ii=Bt,zn=TypeError,sr=function(g){if(ii(g))throw new zn("Can't call method on "+g);return g},Zi=Ut,nr=sr,Ft=function(g){return Zi(nr(g))},Lt=kt,el=gt,ts=el.all,ct=el.IS_HTMLDDA?function(g){return typeof g=="object"?g!==null:Lt(g)||g===ts}:function(g){return typeof g=="object"?g!==null:Lt(g)},Ht={},Pr=Ht,Pt=b,Ve=kt,rs=function(g){return Ve(g)?g:void 0},Er=function(g,k){return arguments.length<2?rs(Pr[g])||rs(Pt[g]):Pr[g]&&Pr[g][k]||Pt[g]&&Pt[g][k]},da=Se,Vt=da({}.isPrototypeOf),hi=typeof navigator!="undefined"&&String(navigator.userAgent)||"",Li=b,yi=hi,nu=Li.process,fa=Li.Deno,Yh=nu&&nu.versions||fa&&fa.version,ci=Yh&&Yh.v8,lr,va;ci&&(lr=ci.split("."),va=lr[0]>0&&lr[0]<4?1:+(lr[0]+lr[1])),!va&&yi&&(lr=yi.match(/Edge\/(\d+)/),(!lr||lr[1]>=74)&&(lr=yi.match(/Chrome\/(\d+)/),lr&&(va=+lr[1])));var Ji=va,ue=Ji,Sd=w,is=b,Hr=is.String,Et=!!Object.getOwnPropertySymbols&&!Sd(function(){var g=Symbol("symbol detection");return!Hr(g)||!(Object(g)instanceof Symbol)||!Symbol.sham&&ue&&ue<41}),Oe=Et,Co=Oe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ue=Er,di=kt,xd=Vt,Va=Co,Dt=Object,ur=Va?function(g){return typeof g=="symbol"}:function(g){var k=Ue("Symbol");return di(k)&&xd(k.prototype,Dt(g))},wr=String,ut=function(g){try{return wr(g)}catch(k){return"Object"}},pr=kt,Ir=ut,bi=TypeError,_i=function(g){if(pr(g))return g;throw new bi(Ir(g)+" is not a function")},Td=_i,Dn=Bt,qa=function(g,k){var C=g[k];return Dn(C)?void 0:Td(C)},tl=$t,Mr=kt,un=ct,au=TypeError,wi=function(g,k){var C,E;if(k==="string"&&Mr(C=g.toString)&&!un(E=tl(C,g))||Mr(C=g.valueOf)&&!un(E=tl(C,g))||k!=="string"&&Mr(C=g.toString)&&!un(E=tl(C,g)))return E;throw new au("Can't convert object to primitive value")},Bh={exports:{}},Cd=!0,Ge=b,ns=Object.defineProperty,Ed=function(g,k){try{ns(Ge,g,{value:k,configurable:!0,writable:!0})}catch(C){Ge[g]=k}return k},ou=b,su=Ed,as="__core-js_shared__",Dd=ou[as]||su(as,{}),rl=Dd,Hh=rl;(Bh.exports=function(g,k){return Hh[g]||(Hh[g]=k!==void 0?k:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Eo=Bh.exports,Od=sr,pa=Object,Ar=function(g){return pa(Od(g))},$d=Se,hr=Ar,Pd=$d({}.hasOwnProperty),ar=Object.hasOwn||function(k,C){return Pd(hr(k),C)},Wh=Se,Un=0,Ka=Math.random(),lu=Wh(1 .toString),Qi=function(g){return"Symbol("+(g===void 0?"":g)+")_"+lu(++Un+Ka,36)},Wr=b,Id=Eo,os=ar,Gh=Qi,uu=Et,Md=Co,Xa=Wr.Symbol,hu=Id("wks"),zh=Md?Xa.for||Xa:Xa&&Xa.withoutSetter||Gh,Wt=function(g){return os(hu,g)||(hu[g]=uu&&os(Xa,g)?Xa[g]:zh("Symbol."+g)),hu[g]},Ad=$t,il=ct,Uh=ur,Rd=qa,Nd=wi,Ld=Wt,Fd=TypeError,Vh=Ld("toPrimitive"),jd=function(g,k){if(!il(g)||Uh(g))return g;var C=Rd(g,Vh),E;if(C){if(k===void 0&&(k="default"),E=Ad(C,g,k),!il(E)||Uh(E))return E;throw new Fd("Can't convert object to primitive value")}return k===void 0&&(k="number"),Nd(g,k)},Yd=jd,Bd=ur,ma=function(g){var k=Yd(g,"string");return Bd(k)?k:k+""},Hd=b,qh=ct,cu=Hd.document,Wd=qh(cu)&&qh(cu.createElement),du=function(g){return Wd?cu.createElement(g):{}},ss=Ct,ls=w,Gd=du,ga=!ss&&!ls(function(){return Object.defineProperty(Gd("div"),"a",{get:function(){return 7}}).a!==7}),fi=Ct,Kh=$t,zd=ce,Ud=ke,Vd=Ft,Fi=ma,nt=ar,Vn=ga,On=Object.getOwnPropertyDescriptor;$r.f=fi?On:function(k,C){if(k=Vd(k),C=Fi(C),Vn)try{return On(k,C)}catch(E){}if(nt(k,C))return Ud(!Kh(zd.f,k,C),k[C])};var nl=w,al=kt,qd=/#|\.prototype\./,Za=function(g,k){var C=Gr[Ja(g)];return C===fu?!0:C===Qa?!1:al(k)?nl(k):!!k},Ja=Za.normalize=function(g){return String(g).replace(qd,".").toLowerCase()},Gr=Za.data={},Qa=Za.NATIVE="N",fu=Za.POLYFILL="P",Rr=Za,Xh=Fe,$n=_i,ol=A,Kd=Xh(Xh.bind),ya=function(g,k){return $n(g),k===void 0?g:ol?Kd(g,k):function(){return g.apply(k,arguments)}},kr={},us=Ct,Xd=w,eo=us&&Xd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Zd=ct,ba=String,Zh=TypeError,ji=function(g){if(Zd(g))return g;throw new Zh(ba(g)+" is not an object")},Ke=Ct,sl=ga,Jh=eo,Do=ji,Qh=ma,hn=TypeError,ll=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,ul="enumerable",to="configurable",vu="writable";kr.f=Ke?Jh?function(k,C,E){if(Do(k),C=Qh(C),Do(E),typeof k=="function"&&C==="prototype"&&"value"in E&&vu in E&&!E[vu]){var D=hs(k,C);D&&D[vu]&&(k[C]=E.value,E={configurable:to in E?E[to]:D[to],enumerable:ul in E?E[ul]:D[ul],writable:!1})}return ll(k,C,E)}:ll:function(k,C,E){if(Do(k),C=Qh(C),Do(E),sl)try{return ll(k,C,E)}catch(D){}if("get"in E||"set"in E)throw new hn("Accessors not supported");return"value"in E&&(k[C]=E.value),k};var pu=Ct,ec=kr,tc=ke,Yi=pu?function(g,k,C){return ec.f(g,k,tc(1,C))}:function(g,k,C){return g[k]=C,g},hl=b,mu=G,Xe=Fe,Jd=kt,Qd=$r.f,gu=Rr,cn=Ht,ef=ya,_a=Yi,Pn=ar,tf=function(g){var k=function(C,E,D){if(this instanceof k){switch(arguments.length){case 0:return new g;case 1:return new g(C);case 2:return new g(C,E)}return new g(C,E,D)}return mu(g,this,arguments)};return k.prototype=g.prototype,k},Ze=function(g,k){var C=g.target,E=g.global,D=g.stat,M=g.proto,F=E?hl:D?hl[C]:(hl[C]||{}).prototype,H=E?cn:cn[C]||_a(cn,C,{})[C],B=H.prototype,U,J,ie,re,se,$e,ot,st,yt;for(re in k)U=gu(E?re:C+(D?".":"#")+re,g.forced),J=!U&&F&&Pn(F,re),$e=H[re],J&&(g.dontCallGetSet?(yt=Qd(F,re),ot=yt&&yt.value):ot=F[re]),se=J&&ot?ot:k[re],!(J&&typeof $e==typeof se)&&(g.bind&&J?st=ef(se,hl):g.wrap&&J?st=tf(se):M&&Jd(se)?st=Xe(se):st=se,(g.sham||se&&se.sham||$e&&$e.sham)&&_a(st,"sham",!0),_a(H,re,st),M&&(ie=C+"Prototype",Pn(cn,ie)||_a(cn,ie,{}),_a(cn[ie],re,se),g.real&&B&&(U||!B[re])&&_a(B,re,se)))},rf=Ze,wa=Ct,ka=kr.f;rf({target:"Object",stat:!0,forced:Object.defineProperty!==ka,sham:!wa},{defineProperty:ka});var cs=Ht,yu=cs.Object,bu=p.exports=function(k,C,E){return yu.defineProperty(k,C,E)};yu.defineProperty.sham&&(bu.sham=!0);var rc=p.exports,ro=rc,Oo=ro,ds=Oo,fs=ds,ic=fs,cl=ic,nc=cl,dl=d(nc),nf=it,dn=Array.isArray||function(k){return nf(k)==="Array"},af=Math.ceil,of=Math.floor,sf=Math.trunc||function(k){var C=+k;return(C>0?of:af)(C)},io=sf,fl=function(g){var k=+g;return k!==k||k===0?0:io(k)},lf=fl,mr=Math.min,zr=function(g){return g>0?mr(lf(g),9007199254740991):0},_u=zr,Bi=function(g){return _u(g.length)},wu=TypeError,ki=9007199254740991,vl=function(g){if(g>ki)throw wu("Maximum allowed index exceeded");return g},uf=ma,ku=kr,ac=ke,Sa=function(g,k,C){var E=uf(k);E in g?ku.f(g,E,ac(0,C)):g[E]=C},vs=Wt,Su=vs("toStringTag"),oc={};oc[Su]="z";var xu=String(oc)==="[object z]",hf=xu,sc=kt,ps=it,Tu=Wt,cf=Tu("toStringTag"),df=Object,ms=ps(function(){return arguments}())==="Arguments",ff=function(g,k){try{return g[k]}catch(C){}},vi=hf?ps:function(g){var k,C,E;return g===void 0?"Undefined":g===null?"Null":typeof(C=ff(k=df(g),cf))=="string"?C:ms?ps(k):(E=ps(k))==="Object"&&sc(k.callee)?"Arguments":E},vf=Se,pf=kt,Cu=rl,mf=vf(Function.toString);pf(Cu.inspectSource)||(Cu.inspectSource=function(g){return mf(g)});var gs=Cu.inspectSource,gf=Se,yf=w,Eu=kt,$o=vi,Du=Er,Ou=gs,qn=function(){},fn=[],xa=Du("Reflect","construct"),ys=/^\s*(?:class|function)\b/,Hi=gf(ys.exec),bs=!ys.test(qn),Ta=function(k){if(!Eu(k))return!1;try{return xa(qn,fn,k),!0}catch(C){return!1}},pl=function(k){if(!Eu(k))return!1;switch($o(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bs||!!Hi(ys,Ou(k))}catch(C){return!0}};pl.sham=!0;var _s=!xa||yf(function(){var g;return Ta(Ta.call)||!Ta(Object)||!Ta(function(){g=!0})||g})?pl:Ta,$u=dn,ml=_s,Po=ct,bf=Wt,Pu=bf("species"),lc=Array,uc=function(g){var k;return $u(g)&&(k=g.constructor,ml(k)&&(k===lc||$u(k.prototype))?k=void 0:Po(k)&&(k=k[Pu],k===null&&(k=void 0))),k===void 0?lc:k},_f=uc,ws=function(g,k){return new(_f(g))(k===0?0:k)},wf=w,hc=Wt,Iu=Ji,kf=hc("species"),ks=function(g){return Iu>=51||!wf(function(){var k=[],C=k.constructor={};return C[kf]=function(){return{foo:1}},k[g](Boolean).foo!==1})},cc=Ze,dc=w,fc=dn,Je=ct,jt=Ar,vc=Bi,Io=vl,pc=Sa,mc=ws,gc=ks,Ss=Wt,Ca=Ji,xs=Ss("isConcatSpreadable"),Sf=Ca>=51||!dc(function(){var g=[];return g[xs]=!1,g.concat()[0]!==g}),no=function(g){if(!Je(g))return!1;var k=g[xs];return k!==void 0?!!k:fc(g)},xf=!Sf||!gc("concat");cc({target:"Array",proto:!0,forced:xf},{concat:function(k){var C=jt(this),E=mc(C,0),D=0,M,F,H,B,U;for(M=-1,H=arguments.length;M<H;M++)if(U=M===-1?C:arguments[M],no(U))for(B=vc(U),Io(D+B),F=0;F<B;F++,D++)F in U&&pc(E,D,U[F]);else Io(D+1),pc(E,D++,U);return E.length=D,E}});var Mu=vi,Tf=String,Kn=function(g){if(Mu(g)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Tf(g)},gl={},Mo=fl,yl=Math.max,Cf=Math.min,bl=function(g,k){var C=Mo(g);return C<0?yl(C+k,0):Cf(C,k)},Ef=Ft,ni=bl,Au=Bi,Ru=function(g){return function(k,C,E){var D=Ef(k),M=Au(D),F=ni(E,M),H;if(g&&C!==C){for(;M>F;)if(H=D[F++],H!==H)return!0}else for(;M>F;F++)if((g||F in D)&&D[F]===C)return g||F||0;return!g&&-1}},Df={indexOf:Ru(!1)},Ts={},te=Se,ao=ar,Of=Ft,Nu=Df.indexOf,Le=Ts,Ea=te([].push),_l=function(g,k){var C=Of(g),E=0,D=[],M;for(M in C)!ao(Le,M)&&ao(C,M)&&Ea(D,M);for(;k.length>E;)ao(C,M=k[E++])&&(~Nu(D,M)||Ea(D,M));return D},oo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yc=_l,bc=oo,wl=Object.keys||function(k){return yc(k,bc)},$f=Ct,Pf=eo,Nr=kr,If=ji,Lu=Ft,Mf=wl;gl.f=$f&&!Pf?Object.defineProperties:function(k,C){If(k);for(var E=Lu(C),D=Mf(C),M=D.length,F=0,H;M>F;)Nr.f(k,H=D[F++],E[H]);return k};var Af=Er,Si=Af("document","documentElement"),Cs=Eo,Fu=Qi,Ao=Cs("keys"),Ro=function(g){return Ao[g]||(Ao[g]=Fu(g))},Lr=ji,ju=gl,_c=oo,Rf=Ts,Nf=Si,wc=du,Lf=Ro,kc=">",Yu="<",Bu="prototype",kl="script",No=Lf("IE_PROTO"),Hu=function(){},Fr=function(g){return Yu+kl+kc+g+Yu+"/"+kl+kc},Sc=function(g){g.write(Fr("")),g.close();var k=g.parentWindow.Object;return g=null,k},Wu=function(){var g=wc("iframe"),k="java"+kl+":",C;return g.style.display="none",Nf.appendChild(g),g.src=String(k),C=g.contentWindow.document,C.open(),C.write(Fr("document.F=Object")),C.close(),C.F},Da,Sl=function(){try{Da=new ActiveXObject("htmlfile")}catch(k){}Sl=typeof document!="undefined"?document.domain&&Da?Sc(Da):Wu():Sc(Da);for(var g=_c.length;g--;)delete Sl[Bu][_c[g]];return Sl()};Rf[No]=!0;var In=Object.create||function(k,C){var E;return k!==null?(Hu[Bu]=Lr(k),E=new Hu,Hu[Bu]=null,E[No]=k):E=Sl(),C===void 0?E:ju.f(E,C)},Xn={},xl=_l,xc=oo,Ur=xc.concat("length","prototype");Xn.f=Object.getOwnPropertyNames||function(k){return xl(k,Ur)};var Wi={},Tc=bl,cr=Bi,Ff=Sa,jf=Array,Yf=Math.max,Lo=function(g,k,C){for(var E=cr(g),D=Tc(k,E),M=Tc(C===void 0?E:C,E),F=jf(Yf(M-D,0)),H=0;D<M;D++,H++)Ff(F,H,g[D]);return F.length=H,F},en=it,so=Ft,Ie=Xn.f,l=Lo,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_=function(g){try{return Ie(g)}catch(k){return l(v)}};Wi.f=function(k){return v&&en(k)==="Window"?_(k):Ie(so(k))};var T={};T.f=Object.getOwnPropertySymbols;var P=Yi,j=function(g,k,C,E){return E&&E.enumerable?g[k]=C:P(g,k,C),g},q=kr,le=function(g,k,C){return q.f(g,k,C)},me={},Pe=Wt;me.f=Pe;var It=Ht,Vr=ar,pi=me,ay=kr.f,Sr=function(g){var k=It.Symbol||(It.Symbol={});Vr(k,g)||ay(k,g,{value:pi.f(g)})},yE=$t,bE=Er,Q_=Wt,oy=j,ew=function(){var g=bE("Symbol"),k=g&&g.prototype,C=k&&k.valueOf,E=Q_("toPrimitive");k&&!k[E]&&oy(k,E,function(D){return yE(C,this)},{})},Fo=xu,Cc=vi,Gu=Fo?{}.toString:function(){return"[object "+Cc(this)+"]"},_E=xu,wE=kr.f,kE=Yi,SE=ar,xE=Gu,tw=Wt,Tl=tw("toStringTag"),vn=function(g,k,C,E){if(g){var D=C?g:g.prototype;SE(D,Tl)||wE(D,Tl,{configurable:!0,value:k}),E&&!_E&&kE(D,"toString",xE)}},Sp=b,xp=kt,Tp=Sp.WeakMap,TE=xp(Tp)&&/native code/.test(String(Tp)),Ec=TE,zu=b,CE=ct,xi=Yi,sy=ar,Bf=rl,Cp=Ro,ly=Ts,rw="Object already initialized",Hf=zu.TypeError,Wf=zu.WeakMap,Gf,zf,Uf,EE=function(g){return Uf(g)?zf(g):Gf(g,{})},iw=function(g){return function(k){var C;if(!CE(k)||(C=zf(k)).type!==g)throw new Hf("Incompatible receiver, "+g+" required");return C}};if(Ec||Bf.state){var lo=Bf.state||(Bf.state=new Wf);lo.get=lo.get,lo.has=lo.has,lo.set=lo.set,Gf=function(g,k){if(lo.has(g))throw new Hf(rw);return k.facade=g,lo.set(g,k),k},zf=function(g){return lo.get(g)||{}},Uf=function(g){return lo.has(g)}}else{var Dc=Cp("state");ly[Dc]=!0,Gf=function(g,k){if(sy(g,Dc))throw new Hf(rw);return k.facade=g,xi(g,Dc,k),k},zf=function(g){return sy(g,Dc)?g[Dc]:{}},Uf=function(g){return sy(g,Dc)}}var Uu={set:Gf,get:zf,has:Uf,enforce:EE,getterFor:iw},nw=ya,DE=Se,uy=Ut,aw=Ar,ow=Bi,OE=ws,sw=DE([].push),Ep=function(g){var k=g===1,C=g===2,E=g===3,D=g===4,M=g===6,F=g===7,H=g===5||M;return function(B,U,J,ie){for(var re=aw(B),se=uy(re),$e=nw(U,J),ot=ow(se),st=0,yt=ie||OE,St=k?yt(B,ot):C||F?yt(B,0):void 0,qi,ti;ot>st;st++)if((H||st in se)&&(qi=se[st],ti=$e(qi,st,re),g))if(k)St[st]=ti;else if(ti)switch(g){case 3:return!0;case 5:return qi;case 6:return st;case 2:sw(St,qi)}else switch(g){case 4:return!1;case 7:sw(St,qi)}return M?-1:E||D?D:St}},Oc={forEach:Ep(0),map:Ep(1),filter:Ep(2),some:Ep(3)},Dp=Ze,$c=b,Pc=$t,Mn=Se,Es=Ct,jo=Et,$E=w,mi=ar,uo=Vt,Ds=ji,Vu=Ft,hy=ma,PE=Kn,Vf=ke,Ic=In,Cl=wl,lw=Xn,uw=Wi,hw=T,Yo=$r,Mc=kr,IE=gl,Op=ce,cy=j,dy=le,qf=Eo,$p=Ro,Pp=Ts,fy=Qi,cw=Wt,dw=me,fw=Sr,vw=ew,ME=vn,pw=Uu,Ip=Oc.forEach,An=$p("hidden"),Kf="Symbol",Xf="prototype",vy=pw.set,mw=pw.getterFor(Kf),ho=Object[Xf],qu=$c.Symbol,Zf=qu&&qu[Xf],AE=$c.RangeError,RE=$c.TypeError,Mp=$c.QObject,py=Yo.f,Ku=Mc.f,my=uw.f,NE=Op.f,gy=Mn([].push),Os=qf("symbols"),Ac=qf("op-symbols"),gw=qf("wks"),yy=!Mp||!Mp[Xf]||!Mp[Xf].findChild,Rc=function(g,k,C){var E=py(ho,k);E&&delete ho[k],Ku(g,k,C),E&&g!==ho&&Ku(ho,k,E)},Ap=Es&&$E(function(){return Ic(Ku({},"a",{get:function(){return Ku(this,"a",{value:7}).a}})).a!==7})?Rc:Ku,Rp=function(g,k){var C=Os[g]=Ic(Zf);return vy(C,{type:Kf,tag:g,description:k}),Es||(C.description=k),C},Jf=function(k,C,E){k===ho&&Jf(Ac,C,E),Ds(k);var D=hy(C);return Ds(E),mi(Os,D)?(E.enumerable?(mi(k,An)&&k[An][D]&&(k[An][D]=!1),E=Ic(E,{enumerable:Vf(0,!1)})):(mi(k,An)||Ku(k,An,Vf(1,{})),k[An][D]=!0),Ap(k,D,E)):Ku(k,D,E)},Np=function(k,C){Ds(k);var E=Vu(C),D=Cl(E).concat(Qf(E));return Ip(D,function(M){(!Es||Pc(yw,E,M))&&Jf(k,M,E[M])}),k},LE=function(k,C){return C===void 0?Ic(k):Np(Ic(k),C)},yw=function(k){var C=hy(k),E=Pc(NE,this,C);return this===ho&&mi(Os,C)&&!mi(Ac,C)?!1:E||!mi(this,C)||!mi(Os,C)||mi(this,An)&&this[An][C]?E:!0},bw=function(k,C){var E=Vu(k),D=hy(C);if(!(E===ho&&mi(Os,D)&&!mi(Ac,D))){var M=py(E,D);return M&&mi(Os,D)&&!(mi(E,An)&&E[An][D])&&(M.enumerable=!0),M}},$s=function(k){var C=my(Vu(k)),E=[];return Ip(C,function(D){!mi(Os,D)&&!mi(Pp,D)&&gy(E,D)}),E},Qf=function(g){var k=g===ho,C=my(k?Ac:Vu(g)),E=[];return Ip(C,function(D){mi(Os,D)&&(!k||mi(ho,D))&&gy(E,Os[D])}),E};jo||(qu=function(){if(uo(Zf,this))throw new RE("Symbol is not a constructor");var k=!arguments.length||arguments[0]===void 0?void 0:PE(arguments[0]),C=fy(k),E=function(D){var M=this===void 0?$c:this;M===ho&&Pc(E,Ac,D),mi(M,An)&&mi(M[An],C)&&(M[An][C]=!1);var F=Vf(1,D);try{Ap(M,C,F)}catch(H){if(!(H instanceof AE))throw H;Rc(M,C,F)}};return Es&&yy&&Ap(ho,C,{configurable:!0,set:E}),Rp(C,k)},Zf=qu[Xf],cy(Zf,"toString",function(){return mw(this).tag}),cy(qu,"withoutSetter",function(g){return Rp(fy(g),g)}),Op.f=yw,Mc.f=Jf,IE.f=Np,Yo.f=bw,lw.f=uw.f=$s,hw.f=Qf,dw.f=function(g){return Rp(cw(g),g)},Es&&dy(Zf,"description",{configurable:!0,get:function(){return mw(this).description}})),Dp({global:!0,wrap:!0,forced:!jo,sham:!jo},{Symbol:qu}),Ip(Cl(gw),function(g){fw(g)}),Dp({target:Kf,stat:!0,forced:!jo},{useSetter:function(){yy=!0},useSimple:function(){yy=!1}}),Dp({target:"Object",stat:!0,forced:!jo,sham:!Es},{create:LE,defineProperty:Jf,defineProperties:Np,getOwnPropertyDescriptor:bw}),Dp({target:"Object",stat:!0,forced:!jo},{getOwnPropertyNames:$s}),vw(),ME(qu,Kf),Pp[An]=!0;var _w=Et,ww=_w&&!!Symbol.for&&!!Symbol.keyFor,FE=Ze,jE=Er,YE=ar,kw=Kn,by=Eo,Sw=ww,Lp=by("string-to-symbol-registry"),BE=by("symbol-to-string-registry");FE({target:"Symbol",stat:!0,forced:!Sw},{for:function(g){var k=kw(g);if(YE(Lp,k))return Lp[k];var C=jE("Symbol")(k);return Lp[k]=C,BE[C]=k,C}});var HE=Ze,xw=ar,WE=ur,GE=ut,zE=Eo,UE=ww,El=zE("symbol-to-string-registry");HE({target:"Symbol",stat:!0,forced:!UE},{keyFor:function(k){if(!WE(k))throw new TypeError(GE(k)+" is not a symbol");if(xw(El,k))return El[k]}});var Tw=Se,Nc=Tw([].slice),VE=Se,Xu=dn,_y=kt,Cw=it,Ew=Kn,Dw=VE([].push),Ow=function(g){if(_y(g))return g;if(Xu(g)){for(var k=g.length,C=[],E=0;E<k;E++){var D=g[E];typeof D=="string"?Dw(C,D):(typeof D=="number"||Cw(D)==="Number"||Cw(D)==="String")&&Dw(C,Ew(D))}var M=C.length,F=!0;return function(H,B){if(F)return F=!1,B;if(Xu(this))return B;for(var U=0;U<M;U++)if(C[U]===H)return B}}},qE=Ze,wy=Er,$w=G,KE=$t,ev=Se,Pw=w,ky=kt,Fp=ur,Iw=Nc,jp=Ow,XE=Et,ZE=String,Dl=wy("JSON","stringify"),Yp=ev(/./.exec),Sy=ev("".charAt),JE=ev("".charCodeAt),xy=ev("".replace),Mw=ev(1 .toString),QE=/[\uD800-\uDFFF]/g,Ty=/^[\uD800-\uDBFF]$/,Aw=/^[\uDC00-\uDFFF]$/,Rw=!XE||Pw(function(){var g=wy("Symbol")("stringify detection");return Dl([g])!=="[null]"||Dl({a:g})!=="{}"||Dl(Object(g))!=="{}"}),Nw=Pw(function(){return Dl("\uDF06\uD834")!=='"\\udf06\\ud834"'||Dl("\uDEAD")!=='"\\udead"'}),eD=function(g,k){var C=Iw(arguments),E=jp(k);if(!(!ky(E)&&(g===void 0||Fp(g))))return C[1]=function(D,M){if(ky(E)&&(M=KE(E,this,ZE(D),M)),!Fp(M))return M},$w(Dl,null,C)},tD=function(g,k,C){var E=Sy(C,k-1),D=Sy(C,k+1);return Yp(Ty,g)&&!Yp(Aw,D)||Yp(Aw,g)&&!Yp(Ty,E)?"\\u"+Mw(JE(g,0),16):g};Dl&&qE({target:"JSON",stat:!0,forced:Rw||Nw},{stringify:function(k,C,E){var D=Iw(arguments),M=$w(Rw?eD:Dl,null,D);return Nw&&typeof M=="string"?xy(M,QE,tD):M}});var rD=Ze,iD=Et,nD=w,Lw=T,aD=Ar,oD=!iD||nD(function(){Lw.f(1)});rD({target:"Object",stat:!0,forced:oD},{getOwnPropertySymbols:function(k){var C=Lw.f;return C?C(aD(k)):[]}});var sD=Sr;sD("asyncIterator");var lD=Sr;lD("hasInstance");var uD=Sr;uD("isConcatSpreadable");var hD=Sr;hD("iterator");var cD=Sr;cD("match");var dD=Sr;dD("matchAll");var fD=Sr;fD("replace");var vD=Sr;vD("search");var pD=Sr;pD("species");var mD=Sr;mD("split");var Fw=Sr,jw=ew;Fw("toPrimitive"),jw();var gD=Er,yD=Sr,Bp=vn;yD("toStringTag"),Bp(gD("Symbol"),"Symbol");var Cy=Sr;Cy("unscopables");var Yw=b,Hp=vn;Hp(Yw.JSON,"JSON",!0);var Bw=Ht,bD=Bw.Symbol,Ol={},tv=Ct,_D=ar,Ey=Function.prototype,Hw=tv&&Object.getOwnPropertyDescriptor,Ww=_D(Ey,"name"),Wp=Ww&&function(){}.name==="something";Ww&&(!tv||tv&&Hw(Ey,"name").configurable);var Gw={PROPER:Wp},wD=w,zw=!wD(function(){function g(){}return g.prototype.constructor=null,Object.getPrototypeOf(new g)!==g.prototype}),kD=ar,SD=kt,xD=Ar,TD=Ro,Uw=zw,Dy=TD("IE_PROTO"),rv=Object,Vw=rv.prototype,Lc=Uw?rv.getPrototypeOf:function(g){var k=xD(g);if(kD(k,Dy))return k[Dy];var C=k.constructor;return SD(C)&&k instanceof C?C.prototype:k instanceof rv?Vw:null},qw=w,CD=kt,ED=ct,Kw=In,Oy=Lc,DD=j,OD=Wt,iv=OD("iterator"),Xw=!1,Ps,Gp,$y;[].keys&&($y=[].keys(),"next"in $y?(Gp=Oy(Oy($y)),Gp!==Object.prototype&&(Ps=Gp)):Xw=!0);var Zw=!ED(Ps)||qw(function(){var g={};return Ps[iv].call(g)!==g});Zw?Ps={}:Ps=Kw(Ps),CD(Ps[iv])||DD(Ps,iv,function(){return this});var Jw={IteratorPrototype:Ps,BUGGY_SAFARI_ITERATORS:Xw},$D=Jw.IteratorPrototype,PD=In,zp=ke,Qw=vn,ek=Ol,ID=function(){return this},tk=function(g,k,C,E){var D=k+" Iterator";return g.prototype=PD($D,{next:zp(+!E,C)}),Qw(g,D,!1,!0),ek[D]=ID,g},Py=Se,rk=_i,MD=function(g,k,C){try{return Py(rk(Object.getOwnPropertyDescriptor(g,k)[C]))}catch(E){}},ik=kt,nk=String,Fc=TypeError,Iy=function(g){if(typeof g=="object"||ik(g))return g;throw new Fc("Can't set "+nk(g)+" as a prototype")},AD=MD,RD=ji,ND=Iy,ak=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,k={},C;try{C=AD(Object.prototype,"__proto__","set"),C(k,[]),g=k instanceof Array}catch(E){}return function(D,M){return RD(D),ND(M),g?C(D,M):D.__proto__=M,D}}():void 0),ok=Ze,LD=$t,FD=Gw,jD=tk,YD=Lc,sk=vn,lk=j,uk=Wt,My=Ol,BD=Jw,HD=FD.PROPER,Up=BD.BUGGY_SAFARI_ITERATORS,ft=uk("iterator"),hk="keys",nv="values",Ay="entries",Jt=function(){return this},Ti=function(g,k,C,E,D,M,F){jD(C,k,E);var H=function(yt){if(yt===D&&re)return re;if(!Up&&yt&&yt in J)return J[yt];switch(yt){case hk:return function(){return new C(this,yt)};case nv:return function(){return new C(this,yt)};case Ay:return function(){return new C(this,yt)}}return function(){return new C(this)}},B=k+" Iterator",U=!1,J=g.prototype,ie=J[ft]||J["@@iterator"]||D&&J[D],re=!Up&&ie||H(D),se=k==="Array"&&J.entries||ie,$e,ot,st;if(se&&($e=YD(se.call(new g)),$e!==Object.prototype&&$e.next&&(sk($e,B,!0,!0),My[B]=Jt)),HD&&D===nv&&ie&&ie.name!==nv&&(U=!0,re=function(){return LD(ie,this)}),D)if(ot={values:H(nv),keys:M?re:H(hk),entries:H(Ay)},F)for(st in ot)(Up||U||!(st in J))&&lk(J,st,ot[st]);else ok({target:k,proto:!0,forced:Up||U},ot);return F&&J[ft]!==re&&lk(J,ft,re,{}),My[k]=re,ot},Ry=function(g,k){return{value:g,done:k}},ck=Ft,dk=Ol,Vp=Uu;kr.f;var fk=Ti,qp=Ry,qr="Array Iterator",WD=Vp.set,GD=Vp.getterFor(qr);fk(Array,"Array",function(g,k){WD(this,{type:qr,target:ck(g),index:0,kind:k})},function(){var g=GD(this),k=g.target,C=g.index++;if(!k||C>=k.length)return g.target=void 0,qp(void 0,!0);switch(g.kind){case"keys":return qp(C,!1);case"values":return qp(k[C],!1)}return qp([C,k[C]],!1)},"values"),dk.Arguments=dk.Array;var zD={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},Ny=zD,UD=b,vk=vi,pk=Yi,Kp=Ol,Zn=Wt,Rn=Zn("toStringTag");for(var Ly in Ny){var Fy=UD[Ly],jy=Fy&&Fy.prototype;jy&&vk(jy)!==Rn&&pk(jy,Rn,Ly),Kp[Ly]=Kp.Array}var mk=bD,Yy=mk,Qt=Wt,gk=kr.f,xt=Qt("metadata"),de=Function.prototype;de[xt]===void 0&&gk(de,xt,{value:null});var VD=Sr;VD("asyncDispose");var qD=Sr;qD("dispose");var yk=Sr;yk("metadata");var KD=Yy,XD=KD,ZD=Er,JD=Se,By=ZD("Symbol"),QD=By.keyFor,eO=JD(By.prototype.valueOf),bk=By.isRegisteredSymbol||function(k){try{return QD(eO(k))!==void 0}catch(C){return!1}},_k=Ze,tO=bk;_k({target:"Symbol",stat:!0},{isRegisteredSymbol:tO});for(var wk=Eo,Hy=Er,rO=Se,kk=ur,Sk=Wt,Ci=Hy("Symbol"),xk=Ci.isWellKnownSymbol,Zu=Hy("Object","getOwnPropertyNames"),iO=rO(Ci.prototype.valueOf),Wy=wk("wks"),Gy=0,Tk=Zu(Ci),nO=Tk.length;Gy<nO;Gy++)try{var Ck=Tk[Gy];kk(Ci[Ck])&&Sk(Ck)}catch(g){}var Ek=function(k){if(xk&&xk(k))return!0;try{for(var C=iO(k),E=0,D=Zu(Wy),M=D.length;E<M;E++)if(Wy[D[E]]==C)return!0}catch(F){}return!1},zy=Ze,aO=Ek;zy({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:aO});var oO=Sr;oO("matcher");var Ae=Sr;Ae("observable");var Nn=Ze,Dk=bk;Nn({target:"Symbol",stat:!0},{isRegistered:Dk});var sO=Ze,lO=Ek;sO({target:"Symbol",stat:!0,forced:!0},{isWellKnown:lO});var uO=Sr;uO("metadataKey");var hO=Sr;hO("patternMatch");var Uy=Sr;Uy("replaceAll");var cO=XD,Mt=cO,Xp=Mt,jc=d(Xp),Vy=Se,dO=fl,Ok=Kn,$k=sr,Pk=Vy("".charAt),Ik=Vy("".charCodeAt),Mk=Vy("".slice),fO=function(g){return function(k,C){var E=Ok($k(k)),D=dO(C),M=E.length,F,H;return D<0||D>=M?g?"":void 0:(F=Ik(E,D),F<55296||F>56319||D+1===M||(H=Ik(E,D+1))<56320||H>57343?g?Pk(E,D):F:g?Mk(E,D,D+2):(F-55296<<10)+(H-56320)+65536)}},vO={charAt:fO(!0)},pO=vO.charAt,mO=Kn,Ak=Uu,Rk=Ti,Nk=Ry,Lk="String Iterator",gO=Ak.set,yO=Ak.getterFor(Lk);Rk(String,"String",function(g){gO(this,{type:Lk,string:mO(g),index:0})},function(){var k=yO(this),C=k.string,E=k.index,D;return E>=C.length?Nk(void 0,!0):(D=pO(C,E),k.index+=D.length,Nk(D,!1))});var Fk=me,jk=Fk.f("iterator"),bO=jk,Yk=bO,Bk=Yk,Hk=Bk,_O=Hk,wO=_O,Wk=wO,kO=d(Wk);function Yc(g){return Yc=typeof jc=="function"&&typeof kO=="symbol"?function(k){return typeof k}:function(k){return k&&typeof jc=="function"&&k.constructor===jc&&k!==jc.prototype?"symbol":typeof k},Yc(g)}var SO=me,qy=SO.f("toPrimitive"),xO=qy,Ei=xO,TO=Ei,CO=TO,EO=CO,DO=EO,OO=DO,$O=d(OO);function PO(g,k){if(Yc(g)!=="object"||g===null)return g;var C=g[$O];if(C!==void 0){var E=C.call(g,k);if(Yc(E)!=="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(g)}function Gk(g){var k=PO(g,"string");return Yc(k)==="symbol"?k:String(k)}function zk(g,k){for(var C=0;C<k.length;C++){var E=k[C];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),dl(g,Gk(E.key),E)}}function Ju(g,k,C){return k&&zk(g.prototype,k),C&&zk(g,C),dl(g,"prototype",{writable:!1}),g}function Oa(g,k,C){return k=Gk(k),k in g?dl(g,k,{value:C,enumerable:!0,configurable:!0,writable:!0}):g[k]=C,g}var Uk=Se,Ky=_i,IO=ct,Vk=ar,qk=Nc,Kk=A,Di=Function,Xk=Uk([].concat),MO=Uk([].join),Zp={},AO=function(g,k,C){if(!Vk(Zp,k)){for(var E=[],D=0;D<k;D++)E[D]="a["+D+"]";Zp[k]=Di("C,a","return new C("+MO(E,",")+")")}return Zp[k](g,C)},Xy=Kk?Di.bind:function(k){var C=Ky(this),E=C.prototype,D=qk(arguments,1),M=function(){var H=Xk(D,qk(arguments));return this instanceof M?AO(C,H.length,H):C.apply(k,H)};return IO(E)&&(M.prototype=E),M},RO=Ze,Zk=Xy;RO({target:"Function",proto:!0,forced:Function.bind!==Zk},{bind:Zk});var NO=b,LO=Ht,tn=function(g,k){var C=LO[g+"Prototype"],E=C&&C[k];if(E)return E;var D=NO[g],M=D&&D.prototype;return M&&M[k]},Jk=tn,FO=Jk("Function","bind"),Qk=Vt,jO=FO,Zy=Function.prototype,YO=function(g){var k=g.bind;return g===Zy||Qk(Zy,g)&&k===Zy.bind?jO:k},Jp=YO,e1=Jp,BO=e1,Qu=d(BO),HO=_i,WO=Ar,GO=Ut,t1=Bi,zO=TypeError,UO=function(g){return function(k,C,E,D){HO(C);var M=WO(k),F=GO(M),H=t1(M),B=g?H-1:0,U=g?-1:1;if(E<2)for(;;){if(B in F){D=F[B],B+=U;break}if(B+=U,g?B<0:H<=B)throw new zO("Reduce of empty array with no initial value")}for(;g?B>=0:H>B;B+=U)B in F&&(D=C(D,F[B],B,M));return D}},VO={left:UO(!1)},qO=w,Qp=function(g,k){var C=[][g];return!!C&&qO(function(){C.call(null,k||function(){return 1},1)})},KO=b,XO=it,Bc=XO(KO.process)==="process",ZO=Ze,JO=VO.left,r1=Qp,Jy=Ji,i1=Bc,QO=!i1&&Jy>79&&Jy<83,n1=QO||!r1("reduce");ZO({target:"Array",proto:!0,forced:n1},{reduce:function(k){var C=arguments.length;return JO(this,k,C,C>1?arguments[1]:void 0)}});var e$=tn,t$=e$("Array","reduce"),a1=Vt,eh=t$,em=Array.prototype,o1=function(g){var k=g.reduce;return g===em||a1(em,g)&&k===em.reduce?eh:k},th=o1,s1=th,r$=s1,l1=d(r$),i$=Ze,n$=Oc.filter,u1=ks,a$=u1("filter");i$({target:"Array",proto:!0,forced:!a$},{filter:function(k){return n$(this,k,arguments.length>1?arguments[1]:void 0)}});var o$=tn,s$=o$("Array","filter"),l$=Vt,u$=s$,Qy=Array.prototype,h$=function(g){var k=g.filter;return g===Qy||l$(Qy,g)&&k===Qy.filter?u$:k},e0=h$,c$=e0,d$=c$,Oi=d(d$),h1=Ze,f$=Oc.map,v$=ks,c1=v$("map");h1({target:"Array",proto:!0,forced:!c1},{map:function(k){return f$(this,k,arguments.length>1?arguments[1]:void 0)}});var p$=tn,m$=p$("Array","map"),g$=Vt,y$=m$,t0=Array.prototype,b$=function(g){var k=g.map;return g===t0||g$(t0,g)&&k===t0.map?y$:k},_$=b$,r0=_$,w$=r0,Jn=d(w$),k$=dn,S$=Bi,i0=vl,x$=ya,n0=function(g,k,C,E,D,M,F,H){for(var B=D,U=0,J=F?x$(F,H):!1,ie,re;U<E;)U in C&&(ie=J?J(C[U],U,k):C[U],M>0&&k$(ie)?(re=S$(ie),B=n0(g,k,ie,re,B,M-1)-1):(i0(B+1),g[B]=ie),B++),U++;return B},T$=n0,d1=Ze,a0=T$,f1=_i,v1=Ar,co=Bi,$l=ws;d1({target:"Array",proto:!0},{flatMap:function(k){var C=v1(this),E=co(C),D;return f1(k),D=$l(C,0),D.length=a0(D,C,C,E,0,1,k,arguments.length>1?arguments[1]:void 0),D}});var C$=tn,E$=C$("Array","flatMap"),D$=Vt,o0=E$,s0=Array.prototype,xr=function(g){var k=g.flatMap;return g===s0||D$(s0,g)&&k===s0.flatMap?o0:k},pn=xr,O$=pn,$$=O$,p1=d($$);function P$(g){return new I$(g)}var Qn=function(){function g(k,C,E){var D,M,F;n(this,g),Oa(this,"_listeners",{add:Qu(D=this._add).call(D,this),remove:Qu(M=this._remove).call(M,this),update:Qu(F=this._update).call(F,this)}),this._source=k,this._transformers=C,this._target=E}return Ju(g,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(C){var E;return l1(E=this._transformers).call(E,function(D,M){return M(D)},C)}},{key:"_add",value:function(C,E){E!=null&&this._target.add(this._transformItems(this._source.get(E.items)))}},{key:"_update",value:function(C,E){E!=null&&this._target.update(this._transformItems(this._source.get(E.items)))}},{key:"_remove",value:function(C,E){E!=null&&this._target.remove(this._transformItems(E.oldData))}}]),g}(),I$=function(){function g(k){n(this,g),Oa(this,"_transformers",[]),this._source=k}return Ju(g,[{key:"filter",value:function(C){return this._transformers.push(function(E){return Oi(E).call(E,C)}),this}},{key:"map",value:function(C){return this._transformers.push(function(E){return Jn(E).call(E,C)}),this}},{key:"flatMap",value:function(C){return this._transformers.push(function(E){return p1(E).call(E,C)}),this}},{key:"to",value:function(C){return new Qn(this._source,this._transformers,C)}}]),g}(),M$=$t,m1=ji,g1=qa,y1=function(g,k,C){var E,D;m1(g);try{if(E=g1(g,"return"),!E){if(k==="throw")throw C;return C}E=M$(E,g)}catch(M){D=!0,E=M}if(k==="throw")throw C;if(D)throw E;return m1(E),C},A$=ji,R$=y1,l0=function(g,k,C,E){try{return E?k(A$(C)[0],C[1]):k(C)}catch(D){R$(g,"throw",D)}},N$=Wt,L$=Ol,b1=N$("iterator"),F$=Array.prototype,u0=function(g){return g!==void 0&&(L$.Array===g||F$[b1]===g)},j$=vi,_1=qa,Y$=Bt,B$=Ol,H$=Wt,W$=H$("iterator"),tm=function(g){if(!Y$(g))return _1(g,W$)||_1(g,"@@iterator")||B$[j$(g)]},G$=$t,z$=_i,h0=ji,U$=ut,V$=tm,q$=TypeError,c0=function(g,k){var C=arguments.length<2?V$(g):k;if(z$(C))return h0(G$(C,g));throw new q$(U$(g)+" is not iterable")},K$=ya,X$=$t,d0=Ar,Z$=l0,Ln=u0,w1=_s,J$=Bi,k1=Sa,Q$=c0,f0=tm,S1=Array,eP=function(k){var C=d0(k),E=w1(this),D=arguments.length,M=D>1?arguments[1]:void 0,F=M!==void 0;F&&(M=K$(M,D>2?arguments[2]:void 0));var H=f0(C),B=0,U,J,ie,re,se,$e;if(H&&!(this===S1&&Ln(H)))for(re=Q$(C,H),se=re.next,J=E?new this:[];!(ie=X$(se,re)).done;B++)$e=F?Z$(re,M,[ie.value,B],!0):ie.value,k1(J,B,$e);else for(U=J$(C),J=E?new this(U):S1(U);U>B;B++)$e=F?M(C[B],B):C[B],k1(J,B,$e);return J.length=B,J},tP=Wt,x1=tP("iterator"),rh=!1;try{var T1=0,C1={next:function(){return{done:!!T1++}},return:function(){rh=!0}};C1[x1]=function(){return this},Array.from(C1,function(){throw 2})}catch(g){}var E1=function(g,k){try{if(!k&&!rh)return!1}catch(D){return!1}var C=!1;try{var E={};E[x1]=function(){return{next:function(){return{done:C=!0}}}},g(E)}catch(D){}return C},D1=Ze,ih=eP,rP=E1,iP=!rP(function(g){Array.from(g)});D1({target:"Array",stat:!0,forced:iP},{from:ih});var nP=Ht,aP=nP.Array.from,oP=aP,O1=oP,sP=O1,rm=d(sP),lP=tm,uP=lP,hP=uP,$1=hP,cP=$1,dP=cP,fP=dP,P1=fP,I1=P1,M1=d(I1),v0=I1,Hc=d(v0),vP=Ze,Wc=dn;vP({target:"Array",stat:!0},{isArray:Wc});var A1=Ht,R1=A1.Array.isArray,pP=R1,p0=pP,mP=p0,gP=mP,yP=gP,N1=yP,bP=N1,L1=d(bP);function F1(g){if(L1(g))return g}var j1=Ct,_P=dn,m0=TypeError,g0=Object.getOwnPropertyDescriptor,wP=j1&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(g){return g instanceof TypeError}}(),Y1=wP?function(g,k){if(_P(g)&&!g0(g,"length").writable)throw new m0("Cannot set read only .length");return g.length=k}:function(g,k){return g.length=k},y0=Ze,B1=Ar,kP=Bi,SP=Y1,xP=vl,H1=w,W1=H1(function(){return[].push.call({length:4294967296},1)!==4294967297}),TP=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(g){return g instanceof TypeError}},CP=W1||!TP();y0({target:"Array",proto:!0,forced:CP},{push:function(k){var C=B1(this),E=kP(C),D=arguments.length;xP(E+D);for(var M=0;M<D;M++)C[E]=arguments[M],E++;return SP(C,E),E}});var EP=tn,DP=EP("Array","push"),G1=Vt,av=DP,im=Array.prototype,z1=function(g){var k=g.push;return g===im||G1(im,g)&&k===im.push?av:k},U1=z1,OP=U1,V1=OP,ea=V1,$P=ea,PP=$P,q1=PP,b0=d(q1);function K1(g,k){var C=g==null?null:typeof jc!="undefined"&&M1(g)||g["@@iterator"];if(C!=null){var E,D,M,F,H=[],B=!0,U=!1;try{if(M=(C=C.call(g)).next,k===0){if(Object(C)!==C)return;B=!1}else for(;!(B=(E=M.call(C)).done)&&(b0(H).call(H,E.value),H.length!==k);B=!0);}catch(J){U=!0,D=J}finally{try{if(!B&&C.return!=null&&(F=C.return(),Object(F)!==F))return}finally{if(U)throw D}}return H}}var IP=Ze,X1=dn,MP=_s,_0=ct,Z1=bl,er=Bi,AP=Ft,RP=Sa,nm=Wt,w0=ks,NP=Nc,LP=w0("slice"),ta=nm("species"),k0=Array,J1=Math.max;IP({target:"Array",proto:!0,forced:!LP},{slice:function(k,C){var E=AP(this),D=er(E),M=Z1(k,D),F=Z1(C===void 0?D:C,D),H,B,U;if(X1(E)&&(H=E.constructor,MP(H)&&(H===k0||X1(H.prototype))?H=void 0:_0(H)&&(H=H[ta],H===null&&(H=void 0)),H===k0||H===void 0))return NP(E,M,F);for(B=new(H===void 0?k0:H)(J1(F-M,0)),U=0;M<F;M++,U++)M in E&&RP(B,U,E[M]);return B.length=U,B}});var FP=tn,jP=FP("Array","slice"),YP=Vt,BP=jP,S0=Array.prototype,x0=function(g){var k=g.slice;return g===S0||YP(S0,g)&&k===S0.slice?BP:k},HP=x0,T0=HP,Q1=T0,eS=Q1,C0=eS,fo=C0,ra=fo,am=d(ra),Pl=O1,nh=Pl,tS=nh,WP=tS,Gc=WP,Il=d(Gc);function ov(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);C<k;C++)E[C]=g[C];return E}function sv(g,k){var C;if(g){if(typeof g=="string")return ov(g,k);var E=am(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return Il(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return ov(g,k)}}function rS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mn(g,k){return F1(g)||K1(g,k)||sv(g,k)||rS()}function iS(g){if(L1(g))return ov(g)}function nS(g){if(typeof jc!="undefined"&&M1(g)!=null||g["@@iterator"]!=null)return Il(g)}function E0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kr(g){return iS(g)||nS(g)||sv(g)||E0()}var lv=Yy,Is=d(lv),om=tn,aS=om("Array","concat"),GP=Vt,zP=aS,ah=Array.prototype,D0=function(g){var k=g.concat;return g===ah||GP(ah,g)&&k===ah.concat?zP:k},UP=D0,gn=UP,ai=gn,Gi=d(ai),sm=T0,Ms=d(sm),uv=Er,hv=Se,zc=Xn,Bo=T,oh=ji,oS=hv([].concat),lm=uv("Reflect","ownKeys")||function(k){var C=zc.f(oh(k)),E=Bo.f;return E?oS(C,E(k)):C},um=Ze,As=lm;um({target:"Reflect",stat:!0},{ownKeys:As});var hm=Ht,sh=hm.Reflect.ownKeys,sS=sh,O0=sS,lS=O0,$0=d(lS),cm=p0,zi=d(cm),uS=Ze,hS=Ar,cS=wl,VP=w,cv=VP(function(){cS(1)});uS({target:"Object",stat:!0,forced:cv},{keys:function(k){return cS(hS(k))}});var dv=Ht,fv=dv.Object.keys,dS=fv,Uc=dS,lh=Uc,P0=d(lh),qP=Oc.forEach,fS=Qp,vS=fS("forEach"),pS=vS?[].forEach:function(k){return qP(this,k,arguments.length>1?arguments[1]:void 0)},vv=Ze,dm=pS;vv({target:"Array",proto:!0,forced:[].forEach!==dm},{forEach:dm});var KP=tn,I0=KP("Array","forEach"),XP=I0,ZP=XP,M0=vi,JP=ar,mS=Vt,QP=ZP,A0=Array.prototype,gS={DOMTokenList:!0,NodeList:!0},uh=function(g){var k=g.forEach;return g===A0||mS(A0,g)&&k===A0.forEach||JP(gS,M0(g))?QP:k},Ml=uh,Al=d(Ml),fm=Ze,yS=Se,pv=dn,R0=yS([].reverse),hh=[1,2];fm({target:"Array",proto:!0,forced:String(hh)===String(hh.reverse())},{reverse:function(){return pv(this)&&(this.length=this.length),R0(this)}});var bS=tn,N0=bS("Array","reverse"),_S=Vt,wS=N0,vm=Array.prototype,kS=function(g){var k=g.reverse;return g===vm||_S(vm,g)&&k===vm.reverse?wS:k},SS=kS,L0=SS,xS=L0,TS=d(xS),CS=ut,e4=TypeError,ES=function(g,k){if(!delete g[k])throw new e4("Cannot delete property "+CS(k)+" of "+CS(g))},DS=Ze,OS=Ar,t4=bl,r4=fl,$S=Bi,PS=Y1,IS=vl,F0=ws,MS=Sa,mv=ES,j0=ks,pm=j0("splice"),AS=Math.max,RS=Math.min;DS({target:"Array",proto:!0,forced:!pm},{splice:function(k,C){var E=OS(this),D=$S(E),M=t4(k,D),F=arguments.length,H,B,U,J,ie,re;for(F===0?H=B=0:F===1?(H=0,B=D-M):(H=F-2,B=RS(AS(r4(C),0),D-M)),IS(D+H-B),U=F0(E,B),J=0;J<B;J++)ie=M+J,ie in E&&MS(U,J,E[ie]);if(U.length=B,H<B){for(J=M;J<D-B;J++)ie=J+B,re=J+H,ie in E?E[re]=E[ie]:mv(E,re);for(J=D;J>D-B+H;J--)mv(E,J-1)}else if(H>B)for(J=D-B;J>M;J--)ie=J+B-1,re=J+H-1,ie in E?E[re]=E[ie]:mv(E,re);for(J=0;J<H;J++)E[J+M]=arguments[J+2];return PS(E,D-B+H),U}});var Y0=tn,Ho=Y0("Array","splice"),i4=Vt,n4=Ho,B0=Array.prototype,a4=function(g){var k=g.splice;return g===B0||i4(B0,g)&&k===B0.splice?n4:k},o4=a4,gv=o4,ia=gv,mm=d(ia),Rl=Ct,s4=Se,yv=$t,bv=w,ch=wl,NS=T,l4=ce,u4=Ar,gm=Ut,Nl=Object.assign,dh=Object.defineProperty,LS=s4([].concat),_v=!Nl||bv(function(){if(Rl&&Nl({b:1},Nl(dh({},"a",{enumerable:!0,get:function(){dh(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},k={},C=Symbol("assign detection"),E="abcdefghijklmnopqrst";return g[C]=7,E.split("").forEach(function(D){k[D]=D}),Nl({},g)[C]!==7||ch(Nl({},k)).join("")!==E})?function(k,C){for(var E=u4(k),D=arguments.length,M=1,F=NS.f,H=l4.f;D>M;)for(var B=gm(arguments[M++]),U=F?LS(ch(B),F(B)):ch(B),J=U.length,ie=0,re;J>ie;)re=U[ie++],(!Rl||yv(H,B,re))&&(E[re]=B[re]);return E}:Nl,H0=Ze,W0=_v;H0({target:"Object",stat:!0,forced:Object.assign!==W0},{assign:W0});var G0=Ht,z0=G0.Object.assign,FS=z0,U0=FS,h4=U0,V0=d(h4),q0=Ze,jS=w,c4=Ar,YS=Lc,wv=zw,K0=jS(function(){YS(1)});q0({target:"Object",stat:!0,forced:K0,sham:!wv},{getPrototypeOf:function(k){return YS(c4(k))}});var d4=Ht,f4=d4.Object.getPrototypeOf,v4=f4,p4=v4,m4=Ze,g4=Ct,y4=In;m4({target:"Object",stat:!0,sham:!g4},{create:y4});var b4=Ht,_4=b4.Object,X0=function(k,C){return _4.create(k,C)},Tr=X0,ym=Tr,fh=ym,BS=d(fh),Z0=Ht,kv=G;Z0.JSON||(Z0.JSON={stringify:JSON.stringify});var w4=function(k,C,E){return kv(Z0.JSON.stringify,null,arguments)},bm=w4,k4=bm,HS=k4,WS=d(HS),S4=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",J0=TypeError,_m=function(g,k){if(g<k)throw new J0("Not enough arguments");return g},GS=b,x4=G,wm=kt,T4=S4,zS=hi,US=Nc,C4=_m,E4=GS.Function,D4=/MSIE .\./.test(zS)||T4&&function(){var g=GS.Bun.version.split(".");return g.length<3||g[0]==="0"&&(g[1]<3||g[1]==="3"&&g[2]==="0")}(),VS=function(g,k){var C=k?2:1;return D4?function(E,D){var M=C4(arguments.length,1)>C,F=wm(E)?E:E4(E),H=M?US(arguments,C):[],B=M?function(){x4(F,this,H)}:F;return k?g(B,D):g(B)}:g},O4=Ze,qS=b,$4=VS,Sv=$4(qS.setInterval,!0);O4({global:!0,bind:!0,forced:qS.setInterval!==Sv},{setInterval:Sv});var KS=Ze,Q0=b,XS=VS,eb=XS(Q0.setTimeout,!0);KS({global:!0,bind:!0,forced:Q0.setTimeout!==eb},{setTimeout:eb});var ZS=Ht,JS=ZS.setTimeout,QS=JS,ex=d(QS),tb={exports:{}};(function(g){function k(E){if(E)return C(E);this._callbacks=new Map}function C(E){return Object.assign(E,k.prototype),E._callbacks=new Map,E}k.prototype.on=function(E,D){var F;let M=(F=this._callbacks.get(E))!=null?F:[];return M.push(D),this._callbacks.set(E,M),this},k.prototype.once=function(E,D){let M=(...F)=>{this.off(E,M),D.apply(this,F)};return M.fn=D,this.on(E,M),this},k.prototype.off=function(E,D){if(E===void 0&&D===void 0)return this._callbacks.clear(),this;if(D===void 0)return this._callbacks.delete(E),this;let M=this._callbacks.get(E);if(M){for(let[F,H]of M.entries())if(H===D||H.fn===D){M.splice(F,1);break}M.length===0?this._callbacks.delete(E):this._callbacks.set(E,M)}return this},k.prototype.emit=function(E,...D){let M=this._callbacks.get(E);if(M){let F=[...M];for(let H of F)H.apply(this,D)}return this},k.prototype.listeners=function(E){var D;return(D=this._callbacks.get(E))!=null?D:[]},k.prototype.listenerCount=function(E){if(E)return this.listeners(E).length;let D=0;for(let M of this._callbacks.values())D+=M.length;return D},k.prototype.hasListeners=function(E){return this.listenerCount(E)>0},k.prototype.addEventListener=k.prototype.on,k.prototype.removeListener=k.prototype.off,k.prototype.removeEventListener=k.prototype.off,k.prototype.removeAllListeners=k.prototype.off,g.exports=k})(tb);var km=tb.exports,Ll=d(km);function vo(){return vo=Object.assign||function(g){for(var k=1;k<arguments.length;k++){var C=arguments[k];for(var E in C)Object.prototype.hasOwnProperty.call(C,E)&&(g[E]=C[E])}return g},vo.apply(this,arguments)}function $a(g,k){g.prototype=Object.create(k.prototype),g.prototype.constructor=g,g.__proto__=k}function Sm(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}var rb;typeof Object.assign!="function"?rb=function(k){if(k==null)throw new TypeError("Cannot convert undefined or null to object");for(var C=Object(k),E=1;E<arguments.length;E++){var D=arguments[E];if(D!=null)for(var M in D)D.hasOwnProperty(M)&&(C[M]=D[M])}return C}:rb=Object.assign;var vh=rb,tx=["","webkit","Moz","MS","ms","o"],rx=typeof document=="undefined"?{style:{}}:document.createElement("div"),P4="function",Ui=Math.round,Fl=Math.abs,ib=Date.now;function xm(g,k){for(var C,E,D=k[0].toUpperCase()+k.slice(1),M=0;M<tx.length;){if(C=tx[M],E=C?C+D:k,E in g)return E;M++}}var Pa;typeof window=="undefined"?Pa={}:Pa=window;var xv=xm(rx.style,"touchAction"),nb=xv!==void 0;function I4(){if(!nb)return!1;var g={},k=Pa.CSS&&Pa.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(C){return g[C]=k?Pa.CSS.supports("touch-action",C):!0}),g}var ix="compute",Tv="auto",ab="manipulation",ph="none",Xr="pan-x",Vc="pan-y",Rs=I4(),nx=/mobile|tablet|ip(ad|hone|od)|android/i,ob="ontouchstart"in Pa,Ns=xm(Pa,"PointerEvent")!==void 0,sb=ob&&nx.test(navigator.userAgent),Cv="touch",lb="pen",jl="mouse",ax="kinect",M4=25,Vi=1,K=2,Zr=4,Fn=8,Tm=1,Ev=2,Dv=4,Ov=8,Ls=16,po=Ev|Dv,Yl=Ov|Ls,ub=po|Yl,$v=["x","y"],Ia=["clientX","clientY"];function Fs(g,k,C){var E;if(g)if(g.forEach)g.forEach(k,C);else if(g.length!==void 0)for(E=0;E<g.length;)k.call(C,g[E],E,g),E++;else for(E in g)g.hasOwnProperty(E)&&k.call(C,g[E],E,g)}function Cm(g,k){return typeof g===P4?g.apply(k&&k[0]||void 0,k):g}function mh(g,k){return g.indexOf(k)>-1}function A4(g){if(mh(g,ph))return ph;var k=mh(g,Xr),C=mh(g,Vc);return k&&C?ph:k||C?k?Xr:Vc:mh(g,ab)?ab:Tv}var ox=function(){function g(C,E){this.manager=C,this.set(E)}var k=g.prototype;return k.set=function(E){E===ix&&(E=this.compute()),nb&&this.manager.element.style&&Rs[E]&&(this.manager.element.style[xv]=E),this.actions=E.toLowerCase().trim()},k.update=function(){this.set(this.manager.options.touchAction)},k.compute=function(){var E=[];return Fs(this.manager.recognizers,function(D){Cm(D.options.enable,[D])&&(E=E.concat(D.getTouchAction()))}),A4(E.join(" "))},k.preventDefaults=function(E){var D=E.srcEvent,M=E.offsetDirection;if(this.manager.session.prevented){D.preventDefault();return}var F=this.actions,H=mh(F,ph)&&!Rs[ph],B=mh(F,Vc)&&!Rs[Vc],U=mh(F,Xr)&&!Rs[Xr];if(H){var J=E.pointers.length===1,ie=E.distance<2,re=E.deltaTime<250;if(J&&ie&&re)return}if(!(U&&B)&&(H||B&&M&po||U&&M&Yl))return this.preventSrc(D)},k.preventSrc=function(E){this.manager.session.prevented=!0,E.preventDefault()},g}();function hb(g,k){for(;g;){if(g===k)return!0;g=g.parentNode}return!1}function sx(g){var k=g.length;if(k===1)return{x:Ui(g[0].clientX),y:Ui(g[0].clientY)};for(var C=0,E=0,D=0;D<k;)C+=g[D].clientX,E+=g[D].clientY,D++;return{x:Ui(C/k),y:Ui(E/k)}}function Em(g){for(var k=[],C=0;C<g.pointers.length;)k[C]={clientX:Ui(g.pointers[C].clientX),clientY:Ui(g.pointers[C].clientY)},C++;return{timeStamp:ib(),pointers:k,center:sx(k),deltaX:g.deltaX,deltaY:g.deltaY}}function Dm(g,k,C){C||(C=$v);var E=k[C[0]]-g[C[0]],D=k[C[1]]-g[C[1]];return Math.sqrt(E*E+D*D)}function Bl(g,k,C){C||(C=$v);var E=k[C[0]]-g[C[0]],D=k[C[1]]-g[C[1]];return Math.atan2(D,E)*180/Math.PI}function cb(g,k){return g===k?Tm:Fl(g)>=Fl(k)?g<0?Ev:Dv:k<0?Ov:Ls}function R4(g,k){var C=k.center,E=g.offsetDelta||{},D=g.prevDelta||{},M=g.prevInput||{};(k.eventType===Vi||M.eventType===Zr)&&(D=g.prevDelta={x:M.deltaX||0,y:M.deltaY||0},E=g.offsetDelta={x:C.x,y:C.y}),k.deltaX=D.x+(C.x-E.x),k.deltaY=D.y+(C.y-E.y)}function Om(g,k,C){return{x:k/g||0,y:C/g||0}}function N4(g,k){return Dm(k[0],k[1],Ia)/Dm(g[0],g[1],Ia)}function L4(g,k){return Bl(k[1],k[0],Ia)+Bl(g[1],g[0],Ia)}function F4(g,k){var C=g.lastInterval||k,E=k.timeStamp-C.timeStamp,D,M,F,H;if(k.eventType!==Fn&&(E>M4||C.velocity===void 0)){var B=k.deltaX-C.deltaX,U=k.deltaY-C.deltaY,J=Om(E,B,U);M=J.x,F=J.y,D=Fl(J.x)>Fl(J.y)?J.x:J.y,H=cb(B,U),g.lastInterval=k}else D=C.velocity,M=C.velocityX,F=C.velocityY,H=C.direction;k.velocity=D,k.velocityX=M,k.velocityY=F,k.direction=H}function lx(g,k){var C=g.session,E=k.pointers,D=E.length;C.firstInput||(C.firstInput=Em(k)),D>1&&!C.firstMultiple?C.firstMultiple=Em(k):D===1&&(C.firstMultiple=!1);var M=C.firstInput,F=C.firstMultiple,H=F?F.center:M.center,B=k.center=sx(E);k.timeStamp=ib(),k.deltaTime=k.timeStamp-M.timeStamp,k.angle=Bl(H,B),k.distance=Dm(H,B),R4(C,k),k.offsetDirection=cb(k.deltaX,k.deltaY);var U=Om(k.deltaTime,k.deltaX,k.deltaY);k.overallVelocityX=U.x,k.overallVelocityY=U.y,k.overallVelocity=Fl(U.x)>Fl(U.y)?U.x:U.y,k.scale=F?N4(F.pointers,E):1,k.rotation=F?L4(F.pointers,E):0,k.maxPointers=C.prevInput?k.pointers.length>C.prevInput.maxPointers?k.pointers.length:C.prevInput.maxPointers:k.pointers.length,F4(C,k);var J=g.element,ie=k.srcEvent,re;ie.composedPath?re=ie.composedPath()[0]:ie.path?re=ie.path[0]:re=ie.target,hb(re,J)&&(J=re),k.target=J}function j4(g,k,C){var E=C.pointers.length,D=C.changedPointers.length,M=k&Vi&&E-D===0,F=k&(Zr|Fn)&&E-D===0;C.isFirst=!!M,C.isFinal=!!F,M&&(g.session={}),C.eventType=k,lx(g,C),g.emit("hammer.input",C),g.recognize(C),g.session.prevInput=C}function Pv(g){return g.trim().split(/\s+/g)}function qc(g,k,C){Fs(Pv(k),function(E){g.addEventListener(E,C,!1)})}function Iv(g,k,C){Fs(Pv(k),function(E){g.removeEventListener(E,C,!1)})}function ux(g){var k=g.ownerDocument||g;return k.defaultView||k.parentWindow||window}var gh=function(){function g(C,E){var D=this;this.manager=C,this.callback=E,this.element=C.element,this.target=C.options.inputTarget,this.domHandler=function(M){Cm(C.options.enable,[C])&&D.handler(M)},this.init()}var k=g.prototype;return k.handler=function(){},k.init=function(){this.evEl&&qc(this.element,this.evEl,this.domHandler),this.evTarget&&qc(this.target,this.evTarget,this.domHandler),this.evWin&&qc(ux(this.element),this.evWin,this.domHandler)},k.destroy=function(){this.evEl&&Iv(this.element,this.evEl,this.domHandler),this.evTarget&&Iv(this.target,this.evTarget,this.domHandler),this.evWin&&Iv(ux(this.element),this.evWin,this.domHandler)},g}();function yh(g,k,C){if(g.indexOf&&!C)return g.indexOf(k);for(var E=0;E<g.length;){if(C&&g[E][C]==k||!C&&g[E]===k)return E;E++}return-1}var Y4={pointerdown:Vi,pointermove:K,pointerup:Zr,pointercancel:Fn,pointerout:Fn},hx={2:Cv,3:lb,4:jl,5:ax},cx="pointerdown",db="pointermove pointerup pointercancel";Pa.MSPointerEvent&&!Pa.PointerEvent&&(cx="MSPointerDown",db="MSPointerMove MSPointerUp MSPointerCancel");var $m=function(g){$a(k,g);function k(){var E,D=k.prototype;return D.evEl=cx,D.evWin=db,E=g.apply(this,arguments)||this,E.store=E.manager.session.pointerEvents=[],E}var C=k.prototype;return C.handler=function(D){var M=this.store,F=!1,H=D.type.toLowerCase().replace("ms",""),B=Y4[H],U=hx[D.pointerType]||D.pointerType,J=U===Cv,ie=yh(M,D.pointerId,"pointerId");B&Vi&&(D.button===0||J)?ie<0&&(M.push(D),ie=M.length-1):B&(Zr|Fn)&&(F=!0),!(ie<0)&&(M[ie]=D,this.callback(this.manager,B,{pointers:M,changedPointers:[D],pointerType:U,srcEvent:D}),F&&M.splice(ie,1))},k}(gh);function Mv(g){return Array.prototype.slice.call(g,0)}function fb(g,k,C){for(var E=[],D=[],M=0;M<g.length;){var F=k?g[M][k]:g[M];yh(D,F)<0&&E.push(g[M]),D[M]=F,M++}return C&&(k?E=E.sort(function(H,B){return H[k]>B[k]}):E=E.sort()),E}var dx={touchstart:Vi,touchmove:K,touchend:Zr,touchcancel:Fn},B4="touchstart touchmove touchend touchcancel",Pm=function(g){$a(k,g);function k(){var E;return k.prototype.evTarget=B4,E=g.apply(this,arguments)||this,E.targetIds={},E}var C=k.prototype;return C.handler=function(D){var M=dx[D.type],F=fx.call(this,D,M);F&&this.callback(this.manager,M,{pointers:F[0],changedPointers:F[1],pointerType:Cv,srcEvent:D})},k}(gh);function fx(g,k){var C=Mv(g.touches),E=this.targetIds;if(k&(Vi|K)&&C.length===1)return E[C[0].identifier]=!0,[C,C];var D,M,F=Mv(g.changedTouches),H=[],B=this.target;if(M=C.filter(function(U){return hb(U.target,B)}),k===Vi)for(D=0;D<M.length;)E[M[D].identifier]=!0,D++;for(D=0;D<F.length;)E[F[D].identifier]&&H.push(F[D]),k&(Zr|Fn)&&delete E[F[D].identifier],D++;if(H.length)return[fb(M.concat(H),"identifier",!0),H]}var Hl={mousedown:Vi,mousemove:K,mouseup:Zr},vx="mousedown",H4="mousemove mouseup",vb=function(g){$a(k,g);function k(){var E,D=k.prototype;return D.evEl=vx,D.evWin=H4,E=g.apply(this,arguments)||this,E.pressed=!1,E}var C=k.prototype;return C.handler=function(D){var M=Hl[D.type];M&Vi&&D.button===0&&(this.pressed=!0),M&K&&D.which!==1&&(M=Zr),this.pressed&&(M&Zr&&(this.pressed=!1),this.callback(this.manager,M,{pointers:[D],changedPointers:[D],pointerType:jl,srcEvent:D}))},k}(gh),W4=2500,px=25;function pb(g){var k=g.changedPointers,C=k[0];if(C.identifier===this.primaryTouch){var E={x:C.clientX,y:C.clientY},D=this.lastTouches;this.lastTouches.push(E);var M=function(){var H=D.indexOf(E);H>-1&&D.splice(H,1)};setTimeout(M,W4)}}function G4(g,k){g&Vi?(this.primaryTouch=k.changedPointers[0].identifier,pb.call(this,k)):g&(Zr|Fn)&&pb.call(this,k)}function z4(g){for(var k=g.srcEvent.clientX,C=g.srcEvent.clientY,E=0;E<this.lastTouches.length;E++){var D=this.lastTouches[E],M=Math.abs(k-D.x),F=Math.abs(C-D.y);if(M<=px&&F<=px)return!0}return!1}var mx=function(){var g=function(k){$a(C,k);function C(D,M){var F;return F=k.call(this,D,M)||this,F.handler=function(H,B,U){var J=U.pointerType===Cv,ie=U.pointerType===jl;if(!(ie&&U.sourceCapabilities&&U.sourceCapabilities.firesTouchEvents)){if(J)G4.call(Sm(Sm(F)),B,U);else if(ie&&z4.call(Sm(Sm(F)),U))return;F.callback(H,B,U)}},F.touch=new Pm(F.manager,F.handler),F.mouse=new vb(F.manager,F.handler),F.primaryTouch=null,F.lastTouches=[],F}var E=C.prototype;return E.destroy=function(){this.touch.destroy(),this.mouse.destroy()},C}(gh);return g}();function mb(g){var k,C=g.options.inputClass;return C?k=C:Ns?k=$m:sb?k=Pm:ob?k=mx:k=vb,new k(g,j4)}function Kc(g,k,C){return Array.isArray(g)?(Fs(g,C[k],C),!0):!1}var Jr=1,yn=2,Wo=4,js=8,Go=js,bh=16,Ma=32,Xc=1;function gx(){return Xc++}function Zc(g,k){var C=k.manager;return C?C.get(g):g}function Jc(g){return g&bh?"cancel":g&js?"end":g&Wo?"move":g&yn?"start":""}var Qc=function(){function g(C){C===void 0&&(C={}),this.options=vo({enable:!0},C),this.id=gx(),this.manager=null,this.state=Jr,this.simultaneous={},this.requireFail=[]}var k=g.prototype;return k.set=function(E){return vh(this.options,E),this.manager&&this.manager.touchAction.update(),this},k.recognizeWith=function(E){if(Kc(E,"recognizeWith",this))return this;var D=this.simultaneous;return E=Zc(E,this),D[E.id]||(D[E.id]=E,E.recognizeWith(this)),this},k.dropRecognizeWith=function(E){return Kc(E,"dropRecognizeWith",this)?this:(E=Zc(E,this),delete this.simultaneous[E.id],this)},k.requireFailure=function(E){if(Kc(E,"requireFailure",this))return this;var D=this.requireFail;return E=Zc(E,this),yh(D,E)===-1&&(D.push(E),E.requireFailure(this)),this},k.dropRequireFailure=function(E){if(Kc(E,"dropRequireFailure",this))return this;E=Zc(E,this);var D=yh(this.requireFail,E);return D>-1&&this.requireFail.splice(D,1),this},k.hasRequireFailures=function(){return this.requireFail.length>0},k.canRecognizeWith=function(E){return!!this.simultaneous[E.id]},k.emit=function(E){var D=this,M=this.state;function F(H){D.manager.emit(H,E)}M<js&&F(D.options.event+Jc(M)),F(D.options.event),E.additionalEvent&&F(E.additionalEvent),M>=js&&F(D.options.event+Jc(M))},k.tryEmit=function(E){if(this.canEmit())return this.emit(E);this.state=Ma},k.canEmit=function(){for(var E=0;E<this.requireFail.length;){if(!(this.requireFail[E].state&(Ma|Jr)))return!1;E++}return!0},k.recognize=function(E){var D=vh({},E);if(!Cm(this.options.enable,[this,D])){this.reset(),this.state=Ma;return}this.state&(Go|bh|Ma)&&(this.state=Jr),this.state=this.process(D),this.state&(yn|Wo|js|bh)&&this.tryEmit(D)},k.process=function(E){},k.getTouchAction=function(){},k.reset=function(){},g}(),zo=function(g){$a(k,g);function k(E){var D;return E===void 0&&(E={}),D=g.call(this,vo({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},E))||this,D.pTime=!1,D.pCenter=!1,D._timer=null,D._input=null,D.count=0,D}var C=k.prototype;return C.getTouchAction=function(){return[ab]},C.process=function(D){var M=this,F=this.options,H=D.pointers.length===F.pointers,B=D.distance<F.threshold,U=D.deltaTime<F.time;if(this.reset(),D.eventType&Vi&&this.count===0)return this.failTimeout();if(B&&U&&H){if(D.eventType!==Zr)return this.failTimeout();var J=this.pTime?D.timeStamp-this.pTime<F.interval:!0,ie=!this.pCenter||Dm(this.pCenter,D.center)<F.posThreshold;this.pTime=D.timeStamp,this.pCenter=D.center,!ie||!J?this.count=1:this.count+=1,this._input=D;var re=this.count%F.taps;if(re===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){M.state=Go,M.tryEmit()},F.interval),yn):Go}return Ma},C.failTimeout=function(){var D=this;return this._timer=setTimeout(function(){D.state=Ma},this.options.interval),Ma},C.reset=function(){clearTimeout(this._timer)},C.emit=function(){this.state===Go&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},k}(Qc),Uo=function(g){$a(k,g);function k(E){return E===void 0&&(E={}),g.call(this,vo({pointers:1},E))||this}var C=k.prototype;return C.attrTest=function(D){var M=this.options.pointers;return M===0||D.pointers.length===M},C.process=function(D){var M=this.state,F=D.eventType,H=M&(yn|Wo),B=this.attrTest(D);return H&&(F&Fn||!B)?M|bh:H||B?F&Zr?M|js:M&yn?M|Wo:yn:Ma},k}(Qc);function yx(g){return g===Ls?"down":g===Ov?"up":g===Ev?"left":g===Dv?"right":""}var gb=function(g){$a(k,g);function k(E){var D;return E===void 0&&(E={}),D=g.call(this,vo({event:"pan",threshold:10,pointers:1,direction:ub},E))||this,D.pX=null,D.pY=null,D}var C=k.prototype;return C.getTouchAction=function(){var D=this.options.direction,M=[];return D&po&&M.push(Vc),D&Yl&&M.push(Xr),M},C.directionTest=function(D){var M=this.options,F=!0,H=D.distance,B=D.direction,U=D.deltaX,J=D.deltaY;return B&M.direction||(M.direction&po?(B=U===0?Tm:U<0?Ev:Dv,F=U!==this.pX,H=Math.abs(D.deltaX)):(B=J===0?Tm:J<0?Ov:Ls,F=J!==this.pY,H=Math.abs(D.deltaY))),D.direction=B,F&&H>M.threshold&&B&M.direction},C.attrTest=function(D){return Uo.prototype.attrTest.call(this,D)&&(this.state&yn||!(this.state&yn)&&this.directionTest(D))},C.emit=function(D){this.pX=D.deltaX,this.pY=D.deltaY;var M=yx(D.direction);M&&(D.additionalEvent=this.options.event+M),g.prototype.emit.call(this,D)},k}(Uo),Im=function(g){$a(k,g);function k(E){return E===void 0&&(E={}),g.call(this,vo({event:"swipe",threshold:10,velocity:.3,direction:po|Yl,pointers:1},E))||this}var C=k.prototype;return C.getTouchAction=function(){return gb.prototype.getTouchAction.call(this)},C.attrTest=function(D){var M=this.options.direction,F;return M&(po|Yl)?F=D.overallVelocity:M&po?F=D.overallVelocityX:M&Yl&&(F=D.overallVelocityY),g.prototype.attrTest.call(this,D)&&M&D.offsetDirection&&D.distance>this.options.threshold&&D.maxPointers===this.options.pointers&&Fl(F)>this.options.velocity&&D.eventType&Zr},C.emit=function(D){var M=yx(D.offsetDirection);M&&this.manager.emit(this.options.event+M,D),this.manager.emit(this.options.event,D)},k}(Uo),yb=function(g){$a(k,g);function k(E){return E===void 0&&(E={}),g.call(this,vo({event:"pinch",threshold:0,pointers:2},E))||this}var C=k.prototype;return C.getTouchAction=function(){return[ph]},C.attrTest=function(D){return g.prototype.attrTest.call(this,D)&&(Math.abs(D.scale-1)>this.options.threshold||this.state&yn)},C.emit=function(D){if(D.scale!==1){var M=D.scale<1?"in":"out";D.additionalEvent=this.options.event+M}g.prototype.emit.call(this,D)},k}(Uo),bx=function(g){$a(k,g);function k(E){return E===void 0&&(E={}),g.call(this,vo({event:"rotate",threshold:0,pointers:2},E))||this}var C=k.prototype;return C.getTouchAction=function(){return[ph]},C.attrTest=function(D){return g.prototype.attrTest.call(this,D)&&(Math.abs(D.rotation)>this.options.threshold||this.state&yn)},k}(Uo),Mm=function(g){$a(k,g);function k(E){var D;return E===void 0&&(E={}),D=g.call(this,vo({event:"press",pointers:1,time:251,threshold:9},E))||this,D._timer=null,D._input=null,D}var C=k.prototype;return C.getTouchAction=function(){return[Tv]},C.process=function(D){var M=this,F=this.options,H=D.pointers.length===F.pointers,B=D.distance<F.threshold,U=D.deltaTime>F.time;if(this._input=D,!B||!H||D.eventType&(Zr|Fn)&&!U)this.reset();else if(D.eventType&Vi)this.reset(),this._timer=setTimeout(function(){M.state=Go,M.tryEmit()},F.time);else if(D.eventType&Zr)return Go;return Ma},C.reset=function(){clearTimeout(this._timer)},C.emit=function(D){this.state===Go&&(D&&D.eventType&Zr?this.manager.emit(this.options.event+"up",D):(this._input.timeStamp=ib(),this.manager.emit(this.options.event,this._input)))},k}(Qc),_x={domEvents:!1,touchAction:ix,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},wx=[[bx,{enable:!1}],[yb,{enable:!1},["rotate"]],[Im,{direction:po}],[gb,{direction:po},["swipe"]],[zo],[zo,{event:"doubletap",taps:2},["tap"]],[Mm]],U4=1,Am=2;function kx(g,k){var C=g.element;if(C.style){var E;Fs(g.options.cssProps,function(D,M){E=xm(C.style,M),k?(g.oldCssProps[E]=C.style[E],C.style[E]=D):C.style[E]=g.oldCssProps[E]||""}),k||(g.oldCssProps={})}}function Sx(g,k){var C=document.createEvent("Event");C.initEvent(g,!0,!0),C.gesture=k,k.target.dispatchEvent(C)}var xx=function(){function g(C,E){var D=this;this.options=vh({},_x,E||{}),this.options.inputTarget=this.options.inputTarget||C,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=C,this.input=mb(this),this.touchAction=new ox(this,this.options.touchAction),kx(this,!0),Fs(this.options.recognizers,function(M){var F=D.add(new M[0](M[1]));M[2]&&F.recognizeWith(M[2]),M[3]&&F.requireFailure(M[3])},this)}var k=g.prototype;return k.set=function(E){return vh(this.options,E),E.touchAction&&this.touchAction.update(),E.inputTarget&&(this.input.destroy(),this.input.target=E.inputTarget,this.input.init()),this},k.stop=function(E){this.session.stopped=E?Am:U4},k.recognize=function(E){var D=this.session;if(!D.stopped){this.touchAction.preventDefaults(E);var M,F=this.recognizers,H=D.curRecognizer;(!H||H&&H.state&Go)&&(D.curRecognizer=null,H=null);for(var B=0;B<F.length;)M=F[B],D.stopped!==Am&&(!H||M===H||M.canRecognizeWith(H))?M.recognize(E):M.reset(),!H&&M.state&(yn|Wo|js)&&(D.curRecognizer=M,H=M),B++}},k.get=function(E){if(E instanceof Qc)return E;for(var D=this.recognizers,M=0;M<D.length;M++)if(D[M].options.event===E)return D[M];return null},k.add=function(E){if(Kc(E,"add",this))return this;var D=this.get(E.options.event);return D&&this.remove(D),this.recognizers.push(E),E.manager=this,this.touchAction.update(),E},k.remove=function(E){if(Kc(E,"remove",this))return this;var D=this.get(E);if(E){var M=this.recognizers,F=yh(M,D);F!==-1&&(M.splice(F,1),this.touchAction.update())}return this},k.on=function(E,D){if(E===void 0||D===void 0)return this;var M=this.handlers;return Fs(Pv(E),function(F){M[F]=M[F]||[],M[F].push(D)}),this},k.off=function(E,D){if(E===void 0)return this;var M=this.handlers;return Fs(Pv(E),function(F){D?M[F]&&M[F].splice(yh(M[F],D),1):delete M[F]}),this},k.emit=function(E,D){this.options.domEvents&&Sx(E,D);var M=this.handlers[E]&&this.handlers[E].slice();if(!(!M||!M.length)){D.type=E,D.preventDefault=function(){D.srcEvent.preventDefault()};for(var F=0;F<M.length;)M[F](D),F++}},k.destroy=function(){this.element&&kx(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},g}(),Rm={touchstart:Vi,touchmove:K,touchend:Zr,touchcancel:Fn},bn="touchstart",Tx="touchstart touchmove touchend touchcancel",Av=function(g){$a(k,g);function k(){var E,D=k.prototype;return D.evTarget=bn,D.evWin=Tx,E=g.apply(this,arguments)||this,E.started=!1,E}var C=k.prototype;return C.handler=function(D){var M=Rm[D.type];if(M===Vi&&(this.started=!0),!!this.started){var F=V4.call(this,D,M);M&(Zr|Fn)&&F[0].length-F[1].length===0&&(this.started=!1),this.callback(this.manager,M,{pointers:F[0],changedPointers:F[1],pointerType:Cv,srcEvent:D})}},k}(gh);function V4(g,k){var C=Mv(g.touches),E=Mv(g.changedTouches);return k&(Zr|Fn)&&(C=fb(C.concat(E),"identifier",!0)),[C,E]}function ed(g,k,C){var E="DEPRECATED METHOD: "+k+`
`+C+` AT
`;return function(){var D=new Error("get-stack-trace"),M=D&&D.stack?D.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",F=window.console&&(window.console.warn||window.console.log);return F&&F.call(window.console,E,M),g.apply(this,arguments)}}var bb=ed(function(g,k,C){for(var E=Object.keys(k),D=0;D<E.length;)(!C||C&&g[E[D]]===void 0)&&(g[E[D]]=k[E[D]]),D++;return g},"extend","Use `assign`."),Aa=ed(function(g,k){return bb(g,k,!0)},"merge","Use `assign`.");function _b(g,k,C){var E=k.prototype,D;D=g.prototype=Object.create(E),D.constructor=g,D._super=E,C&&vh(D,C)}function Nm(g,k){return function(){return g.apply(k,arguments)}}var wb=function(){var g=function(C,E){return E===void 0&&(E={}),new xx(C,vo({recognizers:wx.concat()},E))};return g.VERSION="2.0.17-rc",g.DIRECTION_ALL=ub,g.DIRECTION_DOWN=Ls,g.DIRECTION_LEFT=Ev,g.DIRECTION_RIGHT=Dv,g.DIRECTION_UP=Ov,g.DIRECTION_HORIZONTAL=po,g.DIRECTION_VERTICAL=Yl,g.DIRECTION_NONE=Tm,g.DIRECTION_DOWN=Ls,g.INPUT_START=Vi,g.INPUT_MOVE=K,g.INPUT_END=Zr,g.INPUT_CANCEL=Fn,g.STATE_POSSIBLE=Jr,g.STATE_BEGAN=yn,g.STATE_CHANGED=Wo,g.STATE_ENDED=js,g.STATE_RECOGNIZED=Go,g.STATE_CANCELLED=bh,g.STATE_FAILED=Ma,g.Manager=xx,g.Input=gh,g.TouchAction=ox,g.TouchInput=Pm,g.MouseInput=vb,g.PointerEventInput=$m,g.TouchMouseInput=mx,g.SingleTouchInput=Av,g.Recognizer=Qc,g.AttrRecognizer=Uo,g.Tap=zo,g.Pan=gb,g.Swipe=Im,g.Pinch=yb,g.Rotate=bx,g.Press=Mm,g.on=qc,g.off=Iv,g.each=Fs,g.merge=Aa,g.extend=bb,g.bindFn=Nm,g.assign=vh,g.inherit=_b,g.bindFn=Nm,g.prefixed=xm,g.toArray=Mv,g.inArray=yh,g.uniqueArray=fb,g.splitStr=Pv,g.boolOrFn=Cm,g.hasParent=hb,g.addEventListeners=qc,g.removeEventListeners=Iv,g.defaults=vh({},_x,{preset:wx}),g}(),Cx=wb;function Rv(g,k){var C=typeof Is!="undefined"&&Hc(g)||g["@@iterator"];if(!C){if(zi(g)||(C=Ex(g))||k){C&&(g=C);var E=0,D=function(){};return{s:D,n:function(){return E>=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function Ex(g,k){var C;if(g){if(typeof g=="string")return kb(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return kb(g,k)}}function kb(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);C<k;C++)E[C]=g[C];return E}var Lm=Is("DELETE");function Dx(g){for(var k,C=arguments.length,E=new Array(C>1?C-1:0),D=1;D<C;D++)E[D-1]=arguments[D];return Fm.apply(void 0,Gi(k=[{},g]).call(k,E))}function Fm(){var g=Nv.apply(void 0,arguments);return Lv(g),g}function Nv(){for(var g=arguments.length,k=new Array(g),C=0;C<g;C++)k[C]=arguments[C];if(k.length<2)return k[0];if(k.length>2){var E;return Nv.apply(void 0,Gi(E=[Fm(k[0],k[1])]).call(E,Kr(Ms(k).call(k,2))))}var D=k[0],M=k[1];if(D instanceof Date&&M instanceof Date)return D.setTime(M.getTime()),D;var F=Rv($0(M)),H;try{for(F.s();!(H=F.n()).done;){var B=H.value;Object.prototype.propertyIsEnumerable.call(M,B)&&(M[B]===Lm?delete D[B]:D[B]!==null&&M[B]!==null&&typeof D[B]=="object"&&typeof M[B]=="object"&&!zi(D[B])&&!zi(M[B])?D[B]=Nv(D[B],M[B]):D[B]=Sb(M[B]))}}catch(U){F.e(U)}finally{F.f()}return D}function Sb(g){return zi(g)?Jn(g).call(g,function(k){return Sb(k)}):typeof g=="object"&&g!==null?g instanceof Date?new Date(g.getTime()):Nv({},g):g}function Lv(g){for(var k=0,C=P0(g);k<C.length;k++){var E=C[k];g[E]===Lm?delete g[E]:typeof g[E]=="object"&&g[E]!==null&&Lv(g[E])}}function Ox(){var g=function(){};return{on:g,off:g,destroy:g,emit:g,get(){return{set:g}}}}var td=typeof window!="undefined"?window.Hammer||Cx:function(){return Ox()};function Ys(g){var k=this,C;this._cleanupQueue=[],this.active=!1,this._dom={container:g,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){k._dom.overlay.parentNode.removeChild(k._dom.overlay)});var E=td(this._dom.overlay);E.on("tap",Qu(C=this._onTapOverlay).call(C,this)),this._cleanupQueue.push(function(){E.destroy()});var D=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Al(D).call(D,function(M){E.on(M,function(F){F.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(M){jm(M.target,g)||k.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",k._onClick)})),this._escListener=function(M){("key"in M?M.key==="Escape":M.keyCode===27)&&k.deactivate()}}Ll(Ys.prototype),Ys.current=null,Ys.prototype.destroy=function(){var g,k;this.deactivate();var C=Rv(TS(g=mm(k=this._cleanupQueue).call(k,0)).call(g)),E;try{for(C.s();!(E=C.n()).done;){var D=E.value;D()}}catch(M){C.e(M)}finally{C.f()}},Ys.prototype.activate=function(){Ys.current&&Ys.current.deactivate(),Ys.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)},Ys.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")},Ys.prototype._onTapOverlay=function(g){this.activate(),g.srcEvent.stopPropagation()};function jm(g,k){for(;g;){if(g===k)return!0;g=g.parentNode}return!1}var _h=_s,q4=ut,xb=TypeError,$x=function(g){if(_h(g))return g;throw new xb(q4(g)+" is not a constructor")},K4=Ze,Px=Er,Ym=G,X4=Xy,Ix=$x,Z4=ji,Bm=ct,J4=In,Mx=w,Hm=Px("Reflect","construct"),Q4=Object.prototype,eI=[].push,Ax=Mx(function(){function g(){}return!(Hm(function(){},[],g)instanceof g)}),Rx=!Mx(function(){Hm(function(){})}),Tb=Ax||Rx;K4({target:"Reflect",stat:!0,forced:Tb,sham:Tb},{construct:function(k,C){Ix(k),Z4(C);var E=arguments.length<3?k:Ix(arguments[2]);if(Rx&&!Ax)return Hm(k,C,E);if(k===E){switch(C.length){case 0:return new k;case 1:return new k(C[0]);case 2:return new k(C[0],C[1]);case 3:return new k(C[0],C[1],C[2]);case 4:return new k(C[0],C[1],C[2],C[3])}var D=[null];return Ym(eI,D,C),new(Ym(X4,k,D))}var M=E.prototype,F=J4(Bm(M)?M:Q4),H=Ym(k,F,C);return Bm(H)?H:F}});var Wm=Ht,tI=Wm.Reflect.construct,rI=tI,iI=rI,nI=iI,Wl=d(nI),aI=Ht,Cb=aI.Object.getOwnPropertySymbols,oI=Cb,Nx=oI,sI=Nx,Gm=d(sI),Lx={exports:{}},Fx=Ze,Bs=w,lI=Ft,zm=$r.f,jx=Ct,Yx=!jx||Bs(function(){zm(1)});Fx({target:"Object",stat:!0,forced:Yx,sham:!jx},{getOwnPropertyDescriptor:function(k,C){return zm(lI(k),C)}});var uI=Ht,Bx=uI.Object,hI=Lx.exports=function(k,C){return Bx.getOwnPropertyDescriptor(k,C)};Bx.getOwnPropertyDescriptor.sham&&(hI.sham=!0);var cI=Lx.exports,dI=cI,fI=dI,Hx=fI,Wx=d(Hx),vI=Ze,Gx=Ct,pI=lm,Um=Ft,zx=$r,Ux=Sa;vI({target:"Object",stat:!0,sham:!Gx},{getOwnPropertyDescriptors:function(k){for(var C=Um(k),E=zx.f,D=pI(C),M={},F=0,H,B;D.length>F;)B=E(C,H=D[F++]),B!==void 0&&Ux(M,H,B);return M}});var mI=Ht,gI=mI.Object.getOwnPropertyDescriptors,Vx=gI,yI=Vx,bI=yI,qx=d(bI),Kx={exports:{}},_I=Ze,wI=Ct,Xx=gl.f;_I({target:"Object",stat:!0,forced:Object.defineProperties!==Xx,sham:!wI},{defineProperties:Xx});var kI=Ht,Zx=kI.Object,SI=Kx.exports=function(k,C){return Zx.defineProperties(k,C)};Zx.defineProperties.sham&&(SI.sham=!0);var xI=Kx.exports,TI=xI,CI=TI,EI=CI,DI=d(EI),OI=Oo,Jx=d(OI);function Fv(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}var $I=ym,PI=$I,Qx=PI,II=Qx,eT=II,tT=d(eT),MI=Ze,AI=ak;MI({target:"Object",stat:!0},{setPrototypeOf:AI});var RI=Ht,NI=RI.Object.setPrototypeOf,LI=NI,rT=LI,FI=rT,jv=FI,iT=jv,nT=iT,Vm=nT,Eb=d(Vm),jI=e1,qm=jI,YI=qm,BI=YI,aT=BI,Db=d(aT);function Ob(g,k){var C;return Ob=Eb?Db(C=Eb).call(C):function(D,M){return D.__proto__=M,D},Ob(g,k)}function oT(g,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=tT(k&&k.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),dl(g,"prototype",{writable:!1}),k&&Ob(g,k)}function sT(g,k){if(k&&(Yc(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fv(g)}var $b=p4,HI=$b,WI=HI,GI=WI,Pb=GI,jn=d(Pb);function wh(g){var k;return wh=Eb?Db(k=jn).call(k):function(E){return E.__proto__||jn(E)},wh(g)}var Ib={exports:{}},Km={exports:{}};(function(g){var k=Xp,C=Wk;function E(D){return g.exports=E=typeof k=="function"&&typeof C=="symbol"?function(M){return typeof M}:function(M){return M&&typeof k=="function"&&M.constructor===k&&M!==k.prototype?"symbol":typeof M},g.exports.__esModule=!0,g.exports.default=g.exports,E(D)}g.exports=E,g.exports.__esModule=!0,g.exports.default=g.exports})(Km);var lT=Km.exports,uT=uh,hT=uT,Mb=hT,Ab=Mb,Xm=Ab,cT=ar,dT=lm,Zm=$r,zI=kr,Rb=function(g,k,C){for(var E=dT(k),D=zI.f,M=Zm.f,F=0;F<E.length;F++){var H=E[F];!cT(g,H)&&!(C&&cT(C,H))&&D(g,H,M(k,H))}},UI=ct,fT=Yi,kh=function(g,k){UI(k)&&"cause"in k&&fT(g,"cause",k.cause)},VI=Se,Nb=Error,qI=VI("".replace),vT=function(g){return String(new Nb(g).stack)}("zxcasd"),pT=/\n\s*at [^:]*:[^\n]*/,Gl=pT.test(vT),KI=function(g,k){if(Gl&&typeof g=="string"&&!Nb.prepareStackTrace)for(;k--;)g=qI(g,pT,"");return g},zl=w,XI=ke,ZI=!zl(function(){var g=new Error("a");return"stack"in g?(Object.defineProperty(g,"stack",XI(1,7)),g.stack!==7):!0}),JI=Yi,QI=KI,eM=ZI,Jm=Error.captureStackTrace,tM=function(g,k,C,E){eM&&(Jm?Jm(g,k):JI(g,"stack",QI(C,E)))},rM=ya,mT=$t,gT=ji,iM=ut,Lb=u0,nM=Bi,Fb=Vt,aM=c0,oM=tm,Ul=y1,yT=TypeError,Qm=function(g,k){this.stopped=g,this.result=k},Sh=Qm.prototype,Yn=function(g,k,C){var E=C&&C.that,D=!!(C&&C.AS_ENTRIES),M=!!(C&&C.IS_RECORD),F=!!(C&&C.IS_ITERATOR),H=!!(C&&C.INTERRUPTED),B=rM(k,E),U,J,ie,re,se,$e,ot,st=function(St){return U&&Ul(U,"normal",St),new Qm(!0,St)},yt=function(St){return D?(gT(St),H?B(St[0],St[1],st):B(St[0],St[1])):H?B(St,st):B(St)};if(M)U=g.iterator;else if(F)U=g;else{if(J=oM(g),!J)throw new yT(iM(g)+" is not iterable");if(Lb(J)){for(ie=0,re=nM(g);re>ie;ie++)if(se=yt(g[ie]),se&&Fb(Sh,se))return se;return new Qm(!1)}U=aM(g,J)}for($e=M?g.next:U.next;!(ot=mT($e,U)).done;){try{se=yt(ot.value)}catch(St){Ul(U,"throw",St)}if(typeof se=="object"&&se&&Fb(Sh,se))return se}return new Qm(!1)},Yv=Kn,bT=function(g,k){return g===void 0?arguments.length<2?"":k:Yv(g)},Bv=Ze,eg=Vt,_T=Lc,dt=ak,pt=Rb,or=In,tg=Yi,Vl=ke,Qr=kh,rd=tM,sM=Yn,lM=bT,uM=Wt,hM=uM("toStringTag"),Hv=Error,cM=[].push,id=function(k,C){var E=eg(Wv,this),D;dt?D=dt(new Hv,E?_T(this):Wv):(D=E?this:or(Wv),tg(D,hM,"Error")),C!==void 0&&tg(D,"message",lM(C)),rd(D,id,D.stack,1),arguments.length>2&&Qr(D,arguments[2]);var M=[];return sM(k,cM,{that:M}),tg(D,"errors",M),D};dt?dt(id,Hv):pt(id,Hv,{name:!0});var Wv=id.prototype=or(Hv.prototype,{constructor:Vl(1,id),message:Vl(1,""),name:Vl(1,"AggregateError")});Bv({global:!0},{AggregateError:id});var jb=Er,wT=le,ql=Wt,Ra=Ct,Na=ql("species"),rg=function(g){var k=jb(g);Ra&&k&&!k[Na]&&wT(k,Na,{configurable:!0,get:function(){return this}})},nd=Vt,Yb=TypeError,ig=function(g,k){if(nd(k,g))return g;throw new Yb("Incorrect invocation")},kT=ji,ST=$x,dM=Bt,Bb=Wt,Gv=Bb("species"),ng=function(g,k){var C=kT(g).constructor,E;return C===void 0||dM(E=kT(C)[Gv])?k:ST(E)},_n=hi,$i=/(?:ipad|iphone|ipod).*applewebkit/i.test(_n),ei=b,Bn=G,ag=ya,qt=kt,mt=ar,At=w,Xt=Si,ad=Nc,gr=du,od=_m,fM=$i,vM=Bc,La=ei.setImmediate,xT=ei.clearImmediate,pM=ei.process,s=ei.Dispatch,r=ei.Function,u=ei.MessageChannel,o=ei.String,c=0,f={},m="onreadystatechange",S,x,O,I;At(function(){S=ei.location});var N=function(g){if(mt(f,g)){var k=f[g];delete f[g],k()}},L=function(g){return function(){N(g)}},z=function(g){N(g.data)},W=function(g){ei.postMessage(o(g),S.protocol+"//"+S.host)};(!La||!xT)&&(La=function(k){od(arguments.length,1);var C=qt(k)?k:r(k),E=ad(arguments,1);return f[++c]=function(){Bn(C,void 0,E)},x(c),c},xT=function(k){delete f[k]},vM?x=function(g){pM.nextTick(L(g))}:s&&s.now?x=function(g){s.now(L(g))}:u&&!fM?(O=new u,I=O.port2,O.port1.onmessage=z,x=ag(I.postMessage,I)):ei.addEventListener&&qt(ei.postMessage)&&!ei.importScripts&&S&&S.protocol!=="file:"&&!At(W)?(x=W,ei.addEventListener("message",z,!1)):m in gr("script")?x=function(g){Xt.appendChild(gr("script"))[m]=function(){Xt.removeChild(this),N(g)}}:x=function(g){setTimeout(L(g),0)});var X={set:La},Z=function(){this.head=null,this.tail=null};Z.prototype={add:function(g){var k={item:g,next:null},C=this.tail;C?C.next=k:this.head=k,this.tail=k},get:function(){var g=this.head;if(g){var k=this.head=g.next;return k===null&&(this.tail=null),g.item}}};var Q=Z,ne=hi,he=/ipad|iphone|ipod/i.test(ne)&&typeof Pebble!="undefined",Te=hi,Re=/web0s(?!.*chrome)/i.test(Te),xe=b,De=ya,fe=$r.f,We=X.set,at=Q,Gt=$i,yr=he,Hn=Re,Hs=Bc,xh=xe.MutationObserver||xe.WebKitMutationObserver,sd=xe.document,og=xe.process,zv=xe.Promise,rn=fe(xe,"queueMicrotask"),Uv=rn&&rn.value,Ws,Vv,mM,TT,IL;if(!Uv){var CT=new at,ET=function(){var g,k;for(Hs&&(g=og.domain)&&g.exit();k=CT.get();)try{k()}catch(C){throw CT.head&&Ws(),C}g&&g.enter()};!Gt&&!Hs&&!Hn&&xh&&sd?(Vv=!0,mM=sd.createTextNode(""),new xh(ET).observe(mM,{characterData:!0}),Ws=function(){mM.data=Vv=!Vv}):!yr&&zv&&zv.resolve?(TT=zv.resolve(void 0),TT.constructor=zv,IL=De(TT.then,TT),Ws=function(){IL(ET)}):Hs?Ws=function(){og.nextTick(ET)}:(We=De(We,xe),Ws=function(){We(ET)}),Uv=function(g){CT.head||Ws(),CT.add(g)}}var wW=Uv,kW=function(g,k){try{arguments.length===1?console.error(g):console.error(g,k)}catch(C){}},sg=function(g){try{return{error:!1,value:g()}}catch(k){return{error:!0,value:k}}},SW=b,lg=SW.Promise,ML=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",xW=ML,TW=Bc,CW=!xW&&!TW&&typeof window=="object"&&typeof document=="object",EW=b,Hb=lg,DW=kt,OW=Rr,$W=gs,PW=Wt,IW=CW,MW=ML,gM=Ji,AL=Hb&&Hb.prototype,AW=PW("species"),RL=!1,NL=DW(EW.PromiseRejectionEvent),RW=OW("Promise",function(){var g=$W(Hb),k=g!==String(Hb);if(!k&&gM===66||!(AL.catch&&AL.finally))return!0;if(!gM||gM<51||!/native code/.test(g)){var C=new Hb(function(M){M(1)}),E=function(M){M(function(){},function(){})},D=C.constructor={};if(D[AW]=E,RL=C.then(function(){})instanceof E,!RL)return!0}return!k&&(IW||MW)&&!NL}),Wb={CONSTRUCTOR:RW,REJECTION_EVENT:NL},Kl={},LL=_i,NW=TypeError,LW=function(g){var k,C;this.promise=new g(function(E,D){if(k!==void 0||C!==void 0)throw new NW("Bad Promise constructor");k=E,C=D}),this.resolve=LL(k),this.reject=LL(C)};Kl.f=function(g){return new LW(g)};var FW=Ze,DT=Bc,ld=b,Gb=$t,jW=j,YW=vn,BW=rg,HW=_i,yM=kt,WW=ct,GW=ig,zW=ng,FL=X.set,bM=wW,UW=kW,VW=sg,qW=Q,jL=Uu,_M=lg,YL=Wb,BL=Kl,OT="Promise",HL=YL.CONSTRUCTOR,KW=YL.REJECTION_EVENT,wM=jL.getterFor(OT),XW=jL.set,ZW=_M&&_M.prototype,ug=_M,kM=ZW,WL=ld.TypeError,SM=ld.document,xM=ld.process,TM=BL.f,JW=TM,QW=!!(SM&&SM.createEvent&&ld.dispatchEvent),GL="unhandledrejection",eG="rejectionhandled",zL=0,UL=1,tG=2,CM=1,VL=2,$T,qL,rG,KL=function(g){var k;return WW(g)&&yM(k=g.then)?k:!1},XL=function(g,k){var C=k.value,E=k.state===UL,D=E?g.ok:g.fail,M=g.resolve,F=g.reject,H=g.domain,B,U,J;try{D?(E||(k.rejection===VL&&nG(k),k.rejection=CM),D===!0?B=C:(H&&H.enter(),B=D(C),H&&(H.exit(),J=!0)),B===g.promise?F(new WL("Promise-chain cycle")):(U=KL(B))?Gb(U,B,M,F):M(B)):F(C)}catch(ie){H&&!J&&H.exit(),F(ie)}},ZL=function(g,k){g.notified||(g.notified=!0,bM(function(){for(var C=g.reactions,E;E=C.get();)XL(E,g);g.notified=!1,k&&!g.rejection&&iG(g)}))},JL=function(g,k,C){var E,D;QW?(E=SM.createEvent("Event"),E.promise=k,E.reason=C,E.initEvent(g,!1,!0),ld.dispatchEvent(E)):E={promise:k,reason:C},!KW&&(D=ld["on"+g])?D(E):g===GL&&UW("Unhandled promise rejection",C)},iG=function(g){Gb(FL,ld,function(){var k=g.facade,C=g.value,E=QL(g),D;if(E&&(D=VW(function(){DT?xM.emit("unhandledRejection",C,k):JL(GL,k,C)}),g.rejection=DT||QL(g)?VL:CM,D.error))throw D.value})},QL=function(g){return g.rejection!==CM&&!g.parent},nG=function(g){Gb(FL,ld,function(){var k=g.facade;DT?xM.emit("rejectionHandled",k):JL(eG,k,g.value)})},hg=function(g,k,C){return function(E){g(k,E,C)}},cg=function(g,k,C){g.done||(g.done=!0,C&&(g=C),g.value=k,g.state=tG,ZL(g,!0))},EM=function(g,k,C){if(!g.done){g.done=!0,C&&(g=C);try{if(g.facade===k)throw new WL("Promise can't be resolved itself");var E=KL(k);E?bM(function(){var D={done:!1};try{Gb(E,k,hg(EM,D,g),hg(cg,D,g))}catch(M){cg(D,M,g)}}):(g.value=k,g.state=UL,ZL(g,!1))}catch(D){cg({done:!1},D,g)}}};HL&&(ug=function(k){GW(this,kM),HW(k),Gb($T,this);var C=wM(this);try{k(hg(EM,C),hg(cg,C))}catch(E){cg(C,E)}},kM=ug.prototype,$T=function(k){XW(this,{type:OT,done:!1,notified:!1,parent:!1,reactions:new qW,rejection:!1,state:zL,value:void 0})},$T.prototype=jW(kM,"then",function(k,C){var E=wM(this),D=TM(zW(this,ug));return E.parent=!0,D.ok=yM(k)?k:!0,D.fail=yM(C)&&C,D.domain=DT?xM.domain:void 0,E.state===zL?E.reactions.add(D):bM(function(){XL(D,E)}),D.promise}),qL=function(){var g=new $T,k=wM(g);this.promise=g,this.resolve=hg(EM,k),this.reject=hg(cg,k)},BL.f=TM=function(g){return g===ug||g===rG?new qL(g):JW(g)}),FW({global:!0,wrap:!0,forced:HL},{Promise:ug}),YW(ug,OT,!1,!0),BW(OT);var aG=lg,oG=E1,sG=Wb.CONSTRUCTOR,PT=sG||!oG(function(g){aG.all(g).then(void 0,function(){})}),lG=Ze,uG=$t,hG=_i,cG=Kl,dG=sg,fG=Yn,vG=PT;lG({target:"Promise",stat:!0,forced:vG},{all:function(k){var C=this,E=cG.f(C),D=E.resolve,M=E.reject,F=dG(function(){var H=hG(C.resolve),B=[],U=0,J=1;fG(k,function(ie){var re=U++,se=!1;J++,uG(H,C,ie).then(function($e){se||(se=!0,B[re]=$e,--J||D(B))},M)}),--J||D(B)});return F.error&&M(F.value),E.promise}});var pG=Ze,mG=Wb.CONSTRUCTOR,eF=lg;eF&&eF.prototype,pG({target:"Promise",proto:!0,forced:mG,real:!0},{catch:function(g){return this.then(void 0,g)}});var gG=Ze,yG=$t,bG=_i,_G=Kl,wG=sg,kG=Yn,SG=PT;gG({target:"Promise",stat:!0,forced:SG},{race:function(k){var C=this,E=_G.f(C),D=E.reject,M=wG(function(){var F=bG(C.resolve);kG(k,function(H){yG(F,C,H).then(E.resolve,D)})});return M.error&&D(M.value),E.promise}});var xG=Ze,TG=$t,CG=Kl,EG=Wb.CONSTRUCTOR;xG({target:"Promise",stat:!0,forced:EG},{reject:function(k){var C=CG.f(this);return TG(C.reject,void 0,k),C.promise}});var DG=ji,OG=ct,$G=Kl,tF=function(g,k){if(DG(g),OG(k)&&k.constructor===g)return k;var C=$G.f(g),E=C.resolve;return E(k),C.promise},PG=Ze,IG=Er,MG=Cd,AG=lg,RG=Wb.CONSTRUCTOR,NG=tF,LG=IG("Promise"),FG=!RG;PG({target:"Promise",stat:!0,forced:MG},{resolve:function(k){return NG(FG&&this===LG?AG:this,k)}});var jG=Ze,YG=$t,BG=_i,HG=Kl,WG=sg,GG=Yn,zG=PT;jG({target:"Promise",stat:!0,forced:zG},{allSettled:function(k){var C=this,E=HG.f(C),D=E.resolve,M=E.reject,F=WG(function(){var H=BG(C.resolve),B=[],U=0,J=1;GG(k,function(ie){var re=U++,se=!1;J++,YG(H,C,ie).then(function($e){se||(se=!0,B[re]={status:"fulfilled",value:$e},--J||D(B))},function($e){se||(se=!0,B[re]={status:"rejected",reason:$e},--J||D(B))})}),--J||D(B)});return F.error&&M(F.value),E.promise}});var UG=Ze,VG=$t,qG=_i,KG=Er,XG=Kl,ZG=sg,JG=Yn,QG=PT,rF="No one promise resolved";UG({target:"Promise",stat:!0,forced:QG},{any:function(k){var C=this,E=KG("AggregateError"),D=XG.f(C),M=D.resolve,F=D.reject,H=ZG(function(){var B=qG(C.resolve),U=[],J=0,ie=1,re=!1;JG(k,function(se){var $e=J++,ot=!1;ie++,VG(B,C,se).then(function(st){ot||re||(re=!0,M(st))},function(st){ot||re||(ot=!0,U[$e]=st,--ie||F(new E(U,rF)))})}),--ie||F(new E(U,rF))});return H.error&&F(H.value),D.promise}});var ez=Ze,DM=lg,tz=w,rz=Er,iz=kt,nz=ng,iF=tF,az=DM&&DM.prototype,oz=!!DM&&tz(function(){az.finally.call({then:function(){}},function(){})});ez({target:"Promise",proto:!0,real:!0,forced:oz},{finally:function(g){var k=nz(this,rz("Promise")),C=iz(g);return this.then(C?function(E){return iF(k,g()).then(function(){return E})}:g,C?function(E){return iF(k,g()).then(function(){throw E})}:g)}});var sz=Ht,lz=sz.Promise,uz=lz,hz=uz,cz=Ze,dz=Kl;cz({target:"Promise",stat:!0},{withResolvers:function(){var k=dz.f(this);return{promise:k.promise,resolve:k.resolve,reject:k.reject}}});var fz=hz,vz=fz,pz=Ze,mz=Kl,gz=sg;pz({target:"Promise",stat:!0,forced:!0},{try:function(g){var k=mz.f(this),C=gz(g);return(C.error?k.reject:k.resolve)(C.value),k.promise}});var yz=vz,bz=yz,_z=bz,wz=L0,kz=wz,Sz=kz,xz=Sz,Tz=xz;(function(g){var k=lT.default,C=nc,E=Xp,D=eT,M=Pb,F=Xm,H=q1,B=Vm,U=_z,J=Tz,ie=ra;function re(){g.exports=re=function(){return $e},g.exports.__esModule=!0,g.exports.default=g.exports;var se,$e={},ot=Object.prototype,st=ot.hasOwnProperty,yt=C||function(Me,we,Ce){Me[we]=Ce.value},St=typeof E=="function"?E:{},qi=St.iterator||"@@iterator",ti=St.asyncIterator||"@@asyncIterator",kn=St.toStringTag||"@@toStringTag";function ri(Me,we,Ce){return C(Me,we,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),Me[we]}try{ri({},"")}catch(Me){ri=function(Ce,et,_t){return Ce[et]=_t}}function Ch(Me,we,Ce,et){var _t=we&&we.prototype instanceof fg?we:fg,vt=D(_t.prototype),gi=new qM(et||[]);return yt(vt,"_invoke",{value:MV(Me,Ce,gi)}),vt}function mo(Me,we,Ce){try{return{type:"normal",arg:Me.call(we,Ce)}}catch(et){return{type:"throw",arg:et}}}$e.wrap=Ch;var hd="suspendedStart",dg="suspendedYield",cd="executing",Zl="completed",Vo={};function fg(){}function LT(){}function Xv(){}var zM={};ri(zM,qi,function(){return this});var UM=M,FT=UM&&UM(UM(KM([])));FT&&FT!==ot&&st.call(FT,qi)&&(zM=FT);var vg=Xv.prototype=fg.prototype=D(zM);function jF(Me){var we;F(we=["next","throw","return"]).call(we,function(Ce){ri(Me,Ce,function(et){return this._invoke(Ce,et)})})}function jT(Me,we){function Ce(_t,vt,gi,na){var ja=mo(Me[_t],Me,vt);if(ja.type!=="throw"){var Zv=ja.arg,dd=Zv.value;return dd&&k(dd)=="object"&&st.call(dd,"__await")?we.resolve(dd.__await).then(function(Jv){Ce("next",Jv,gi,na)},function(Jv){Ce("throw",Jv,gi,na)}):we.resolve(dd).then(function(Jv){Zv.value=Jv,gi(Zv)},function(Jv){return Ce("throw",Jv,gi,na)})}na(ja.arg)}var et;yt(this,"_invoke",{value:function(vt,gi){function na(){return new we(function(ja,Zv){Ce(vt,gi,ja,Zv)})}return et=et?et.then(na,na):na()}})}function MV(Me,we,Ce){var et=hd;return function(_t,vt){if(et===cd)throw new Error("Generator is already running");if(et===Zl){if(_t==="throw")throw vt;return{value:se,done:!0}}for(Ce.method=_t,Ce.arg=vt;;){var gi=Ce.delegate;if(gi){var na=YF(gi,Ce);if(na){if(na===Vo)continue;return na}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(et===hd)throw et=Zl,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);et=cd;var ja=mo(Me,we,Ce);if(ja.type==="normal"){if(et=Ce.done?Zl:dg,ja.arg===Vo)continue;return{value:ja.arg,done:Ce.done}}ja.type==="throw"&&(et=Zl,Ce.method="throw",Ce.arg=ja.arg)}}}function YF(Me,we){var Ce=we.method,et=Me.iterator[Ce];if(et===se)return we.delegate=null,Ce==="throw"&&Me.iterator.return&&(we.method="return",we.arg=se,YF(Me,we),we.method==="throw")||Ce!=="return"&&(we.method="throw",we.arg=new TypeError("The iterator does not provide a '"+Ce+"' method")),Vo;var _t=mo(et,Me.iterator,we.arg);if(_t.type==="throw")return we.method="throw",we.arg=_t.arg,we.delegate=null,Vo;var vt=_t.arg;return vt?vt.done?(we[Me.resultName]=vt.value,we.next=Me.nextLoc,we.method!=="return"&&(we.method="next",we.arg=se),we.delegate=null,Vo):vt:(we.method="throw",we.arg=new TypeError("iterator result is not an object"),we.delegate=null,Vo)}function AV(Me){var we,Ce={tryLoc:Me[0]};1 in Me&&(Ce.catchLoc=Me[1]),2 in Me&&(Ce.finallyLoc=Me[2],Ce.afterLoc=Me[3]),H(we=this.tryEntries).call(we,Ce)}function VM(Me){var we=Me.completion||{};we.type="normal",delete we.arg,Me.completion=we}function qM(Me){this.tryEntries=[{tryLoc:"root"}],F(Me).call(Me,AV,this),this.reset(!0)}function KM(Me){if(Me||Me===""){var we=Me[qi];if(we)return we.call(Me);if(typeof Me.next=="function")return Me;if(!isNaN(Me.length)){var Ce=-1,et=function _t(){for(;++Ce<Me.length;)if(st.call(Me,Ce))return _t.value=Me[Ce],_t.done=!1,_t;return _t.value=se,_t.done=!0,_t};return et.next=et}}throw new TypeError(k(Me)+" is not iterable")}return LT.prototype=Xv,yt(vg,"constructor",{value:Xv,configurable:!0}),yt(Xv,"constructor",{value:LT,configurable:!0}),LT.displayName=ri(Xv,kn,"GeneratorFunction"),$e.isGeneratorFunction=function(Me){var we=typeof Me=="function"&&Me.constructor;return!!we&&(we===LT||(we.displayName||we.name)==="GeneratorFunction")},$e.mark=function(Me){return B?B(Me,Xv):(Me.__proto__=Xv,ri(Me,kn,"GeneratorFunction")),Me.prototype=D(vg),Me},$e.awrap=function(Me){return{__await:Me}},jF(jT.prototype),ri(jT.prototype,ti,function(){return this}),$e.AsyncIterator=jT,$e.async=function(Me,we,Ce,et,_t){_t===void 0&&(_t=U);var vt=new jT(Ch(Me,we,Ce,et),_t);return $e.isGeneratorFunction(we)?vt:vt.next().then(function(gi){return gi.done?gi.value:vt.next()})},jF(vg),ri(vg,kn,"Generator"),ri(vg,qi,function(){return this}),ri(vg,"toString",function(){return"[object Generator]"}),$e.keys=function(Me){var we=Object(Me),Ce=[];for(var et in we)H(Ce).call(Ce,et);return J(Ce).call(Ce),function _t(){for(;Ce.length;){var vt=Ce.pop();if(vt in we)return _t.value=vt,_t.done=!1,_t}return _t.done=!0,_t}},$e.values=KM,qM.prototype={constructor:qM,reset:function(we){var Ce;if(this.prev=0,this.next=0,this.sent=this._sent=se,this.done=!1,this.delegate=null,this.method="next",this.arg=se,F(Ce=this.tryEntries).call(Ce,VM),!we)for(var et in this)et.charAt(0)==="t"&&st.call(this,et)&&!isNaN(+ie(et).call(et,1))&&(this[et]=se)},stop:function(){this.done=!0;var we=this.tryEntries[0].completion;if(we.type==="throw")throw we.arg;return this.rval},dispatchException:function(we){if(this.done)throw we;var Ce=this;function et(Zv,dd){return gi.type="throw",gi.arg=we,Ce.next=Zv,dd&&(Ce.method="next",Ce.arg=se),!!dd}for(var _t=this.tryEntries.length-1;_t>=0;--_t){var vt=this.tryEntries[_t],gi=vt.completion;if(vt.tryLoc==="root")return et("end");if(vt.tryLoc<=this.prev){var na=st.call(vt,"catchLoc"),ja=st.call(vt,"finallyLoc");if(na&&ja){if(this.prev<vt.catchLoc)return et(vt.catchLoc,!0);if(this.prev<vt.finallyLoc)return et(vt.finallyLoc)}else if(na){if(this.prev<vt.catchLoc)return et(vt.catchLoc,!0)}else{if(!ja)throw new Error("try statement without catch or finally");if(this.prev<vt.finallyLoc)return et(vt.finallyLoc)}}}},abrupt:function(we,Ce){for(var et=this.tryEntries.length-1;et>=0;--et){var _t=this.tryEntries[et];if(_t.tryLoc<=this.prev&&st.call(_t,"finallyLoc")&&this.prev<_t.finallyLoc){var vt=_t;break}}vt&&(we==="break"||we==="continue")&&vt.tryLoc<=Ce&&Ce<=vt.finallyLoc&&(vt=null);var gi=vt?vt.completion:{};return gi.type=we,gi.arg=Ce,vt?(this.method="next",this.next=vt.finallyLoc,Vo):this.complete(gi)},complete:function(we,Ce){if(we.type==="throw")throw we.arg;return we.type==="break"||we.type==="continue"?this.next=we.arg:we.type==="return"?(this.rval=this.arg=we.arg,this.method="return",this.next="end"):we.type==="normal"&&Ce&&(this.next=Ce),Vo},finish:function(we){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var et=this.tryEntries[Ce];if(et.finallyLoc===we)return this.complete(et.completion,et.afterLoc),VM(et),Vo}},catch:function(we){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var et=this.tryEntries[Ce];if(et.tryLoc===we){var _t=et.completion;if(_t.type==="throw"){var vt=_t.arg;VM(et)}return vt}}throw new Error("illegal catch attempt")},delegateYield:function(we,Ce,et){return this.delegate={iterator:KM(we),resultName:Ce,nextLoc:et},this.method==="next"&&(this.arg=se),Vo}},$e}g.exports=re,g.exports.__esModule=!0,g.exports.default=g.exports})(Ib);var Cz=Ib.exports,IT=Cz(),Ez=IT;try{regeneratorRuntime=IT}catch(g){typeof globalThis=="object"?globalThis.regeneratorRuntime=IT:Function("r","regeneratorRuntime = r")(IT)}var Fa=d(Ez),nF={exports:{}},Dz=w,Oz=Dz(function(){if(typeof ArrayBuffer=="function"){var g=new ArrayBuffer(8);Object.isExtensible(g)&&Object.defineProperty(g,"a",{value:8})}}),$z=w,Pz=ct,Iz=it,aF=Oz,MT=Object.isExtensible,Mz=$z(function(){MT(1)}),Az=Mz||aF?function(k){return!Pz(k)||aF&&Iz(k)==="ArrayBuffer"?!1:MT?MT(k):!0}:MT,Rz=w,Nz=!Rz(function(){return Object.isExtensible(Object.preventExtensions({}))}),Lz=Ze,Fz=Se,jz=Ts,Yz=ct,OM=ar,Bz=kr.f,oF=Xn,Hz=Wi,$M=Az,Wz=Qi,Gz=Nz,sF=!1,Th=Wz("meta"),zz=0,PM=function(g){Bz(g,Th,{value:{objectID:"O"+zz++,weakData:{}}})},Uz=function(g,k){if(!Yz(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!OM(g,Th)){if(!$M(g))return"F";if(!k)return"E";PM(g)}return g[Th].objectID},Vz=function(g,k){if(!OM(g,Th)){if(!$M(g))return!0;if(!k)return!1;PM(g)}return g[Th].weakData},qz=function(g){return Gz&&sF&&$M(g)&&!OM(g,Th)&&PM(g),g},Kz=function(){Xz.enable=function(){},sF=!0;var g=oF.f,k=Fz([].splice),C={};C[Th]=1,g(C).length&&(oF.f=function(E){for(var D=g(E),M=0,F=D.length;M<F;M++)if(D[M]===Th){k(D,M,1);break}return D},Lz({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hz.f}))},Xz=nF.exports={enable:Kz,fastKey:Uz,getWeakData:Vz,onFreeze:qz};jz[Th]=!0;var lF=nF.exports,Zz=Ze,Jz=b,Qz=lF,eU=w,tU=Yi,rU=Yn,iU=ig,nU=kt,aU=ct,oU=Bt,sU=vn,lU=kr.f,uU=Oc.forEach,hU=Ct,uF=Uu,cU=uF.set,dU=uF.getterFor,hF=function(g,k,C){var E=g.indexOf("Map")!==-1,D=g.indexOf("Weak")!==-1,M=E?"set":"add",F=Jz[g],H=F&&F.prototype,B={},U;if(!hU||!nU(F)||!(D||H.forEach&&!eU(function(){new F().entries().next()})))U=C.getConstructor(k,g,E,M),Qz.enable();else{U=k(function(re,se){cU(iU(re,J),{type:g,collection:new F}),oU(se)||rU(se,re[M],{that:re,AS_ENTRIES:E})});var J=U.prototype,ie=dU(g);uU(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(re){var se=re==="add"||re==="set";re in H&&!(D&&re==="clear")&&tU(J,re,function($e,ot){var st=ie(this).collection;if(!se&&D&&!aU($e))return re==="get"?void 0:!1;var yt=st[re]($e===0?0:$e,ot);return se?this:yt})}),D||lU(J,"size",{configurable:!0,get:function(){return ie(this).collection.size}})}return sU(U,g,!1,!0),B[g]=U,Zz({global:!0,forced:!0},B),D||C.setStrong(U,g,E),U},fU=j,vU=function(g,k,C){for(var E in k)C&&C.unsafe&&g[E]?g[E]=k[E]:fU(g,E,k[E],C);return g},pU=In,mU=le,cF=vU,gU=ya,yU=ig,bU=Bt,_U=Yn,wU=Ti,AT=Ry,kU=rg,zb=Ct,dF=lF.fastKey,fF=Uu,vF=fF.set,IM=fF.getterFor,pF={getConstructor:function(g,k,C,E){var D=g(function(U,J){yU(U,M),vF(U,{type:k,index:pU(null),first:void 0,last:void 0,size:0}),zb||(U.size=0),bU(J)||_U(J,U[E],{that:U,AS_ENTRIES:C})}),M=D.prototype,F=IM(k),H=function(U,J,ie){var re=F(U),se=B(U,J),$e,ot;return se?se.value=ie:(re.last=se={index:ot=dF(J,!0),key:J,value:ie,previous:$e=re.last,next:void 0,removed:!1},re.first||(re.first=se),$e&&($e.next=se),zb?re.size++:U.size++,ot!=="F"&&(re.index[ot]=se)),U},B=function(U,J){var ie=F(U),re=dF(J),se;if(re!=="F")return ie.index[re];for(se=ie.first;se;se=se.next)if(se.key===J)return se};return cF(M,{clear:function(){for(var J=this,ie=F(J),re=ie.index,se=ie.first;se;)se.removed=!0,se.previous&&(se.previous=se.previous.next=void 0),delete re[se.index],se=se.next;ie.first=ie.last=void 0,zb?ie.size=0:J.size=0},delete:function(U){var J=this,ie=F(J),re=B(J,U);if(re){var se=re.next,$e=re.previous;delete ie.index[re.index],re.removed=!0,$e&&($e.next=se),se&&(se.previous=$e),ie.first===re&&(ie.first=se),ie.last===re&&(ie.last=$e),zb?ie.size--:J.size--}return!!re},forEach:function(J){for(var ie=F(this),re=gU(J,arguments.length>1?arguments[1]:void 0),se;se=se?se.next:ie.first;)for(re(se.value,se.key,this);se&&se.removed;)se=se.previous},has:function(J){return!!B(this,J)}}),cF(M,C?{get:function(J){var ie=B(this,J);return ie&&ie.value},set:function(J,ie){return H(this,J===0?0:J,ie)}}:{add:function(J){return H(this,J=J===0?0:J,J)}}),zb&&mU(M,"size",{configurable:!0,get:function(){return F(this).size}}),D},setStrong:function(g,k,C){var E=k+" Iterator",D=IM(k),M=IM(E);wU(g,k,function(F,H){vF(this,{type:E,target:F,state:D(F),kind:H,last:void 0})},function(){for(var F=M(this),H=F.kind,B=F.last;B&&B.removed;)B=B.previous;return!F.target||!(F.last=B=B?B.next:F.state.first)?(F.target=void 0,AT(void 0,!0)):AT(H==="keys"?B.key:H==="values"?B.value:[B.key,B.value],!1)},C?"entries":"values",!C,!0),kU(k)}},SU=hF,xU=pF;SU("Map",function(g){return function(){return g(this,arguments.length?arguments[0]:void 0)}},xU);var TU=Ht,CU=TU.Map,EU=CU,DU=EU,OU=DU,mF=d(OU),$U=Ze,PU=Oc.some,IU=Qp,MU=IU("some");$U({target:"Array",proto:!0,forced:!MU},{some:function(k){return PU(this,k,arguments.length>1?arguments[1]:void 0)}});var AU=tn,RU=AU("Array","some"),NU=Vt,LU=RU,MM=Array.prototype,FU=function(g){var k=g.some;return g===MM||NU(MM,g)&&k===MM.some?LU:k},jU=FU,YU=jU,BU=YU,HU=d(BU),WU=tn,GU=WU("Array","keys"),zU=GU,UU=zU,VU=vi,qU=ar,KU=Vt,XU=UU,AM=Array.prototype,ZU={DOMTokenList:!0,NodeList:!0},JU=function(g){var k=g.keys;return g===AM||KU(AM,g)&&k===AM.keys||qU(ZU,VU(g))?XU:k},QU=JU,qv=d(QU),gF=Lo,e9=Math.floor,RM=function(g,k){var C=g.length,E=e9(C/2);return C<8?t9(g,k):r9(g,RM(gF(g,0,E),k),RM(gF(g,E),k),k)},t9=function(g,k){for(var C=g.length,E=1,D,M;E<C;){for(M=E,D=g[E];M&&k(g[M-1],D)>0;)g[M]=g[--M];M!==E++&&(g[M]=D)}return g},r9=function(g,k,C,E){for(var D=k.length,M=C.length,F=0,H=0;F<D||H<M;)g[F+H]=F<D&&H<M?E(k[F],C[H])<=0?k[F++]:C[H++]:F<D?k[F++]:C[H++];return g},i9=RM,n9=hi,yF=n9.match(/firefox\/(\d+)/i),a9=!!yF&&+yF[1],o9=hi,s9=/MSIE|Trident/.test(o9),l9=hi,bF=l9.match(/AppleWebKit\/(\d+)\./),u9=!!bF&&+bF[1],h9=Ze,_F=Se,c9=_i,d9=Ar,wF=Bi,f9=ES,kF=Kn,NM=w,v9=i9,p9=Qp,SF=a9,m9=s9,xF=Ji,TF=u9,ud=[],CF=_F(ud.sort),g9=_F(ud.push),y9=NM(function(){ud.sort(void 0)}),b9=NM(function(){ud.sort(null)}),_9=p9("sort"),EF=!NM(function(){if(xF)return xF<70;if(!(SF&&SF>3)){if(m9)return!0;if(TF)return TF<603;var g="",k,C,E,D;for(k=65;k<76;k++){switch(C=String.fromCharCode(k),k){case 66:case 69:case 70:case 72:E=3;break;case 68:case 71:E=4;break;default:E=2}for(D=0;D<47;D++)ud.push({k:C+D,v:E})}for(ud.sort(function(M,F){return F.v-M.v}),D=0;D<ud.length;D++)C=ud[D].k.charAt(0),g.charAt(g.length-1)!==C&&(g+=C);return g!=="DGBEFHACIJK"}}),w9=y9||!b9||!_9||!EF,k9=function(g){return function(k,C){return C===void 0?-1:k===void 0?1:g!==void 0?+g(k,C)||0:kF(k)>kF(C)?1:-1}};h9({target:"Array",proto:!0,forced:w9},{sort:function(k){k!==void 0&&c9(k);var C=d9(this);if(EF)return k===void 0?CF(C):CF(C,k);var E=[],D=wF(C),M,F;for(F=0;F<D;F++)F in C&&g9(E,C[F]);for(v9(E,k9(k)),M=wF(E),F=0;F<M;)C[F]=E[F++];for(;F<D;)f9(C,F++);return C}});var S9=tn,x9=S9("Array","sort"),T9=Vt,C9=x9,LM=Array.prototype,E9=function(g){var k=g.sort;return g===LM||T9(LM,g)&&k===LM.sort?C9:k},D9=E9,O9=D9,$9=O9,FM=d($9),P9=tn,I9=P9("Array","values"),M9=I9,A9=M9,R9=vi,N9=ar,L9=Vt,F9=A9,jM=Array.prototype,j9={DOMTokenList:!0,NodeList:!0},Y9=function(g){var k=g.values;return g===jM||L9(jM,g)&&k===jM.values||N9(j9,R9(g))?F9:k},B9=Y9,DF=d(B9),H9=Yk,Kv=d(H9),W9=tn,G9=W9("Array","entries"),z9=G9,U9=z9,V9=vi,q9=ar,K9=Vt,X9=U9,YM=Array.prototype,Z9={DOMTokenList:!0,NodeList:!0},J9=function(g){var k=g.entries;return g===YM||K9(YM,g)&&k===YM.entries||q9(Z9,V9(g))?X9:k},Q9=J9,eV=d(Q9);let RT,tV=new Uint8Array(16);function rV(){if(!RT&&(RT=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!RT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RT(tV)}let wn=[];for(let g=0;g<256;++g)wn.push((g+256).toString(16).slice(1));function iV(g,k=0){return wn[g[k+0]]+wn[g[k+1]]+wn[g[k+2]]+wn[g[k+3]]+"-"+wn[g[k+4]]+wn[g[k+5]]+"-"+wn[g[k+6]]+wn[g[k+7]]+"-"+wn[g[k+8]]+wn[g[k+9]]+"-"+wn[g[k+10]]+wn[g[k+11]]+wn[g[k+12]]+wn[g[k+13]]+wn[g[k+14]]+wn[g[k+15]]}var OF={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nV(g,k,C){if(OF.randomUUID&&!g)return OF.randomUUID();g=g||{};let E=g.random||(g.rng||rV)();return E[6]=E[6]&15|64,E[8]=E[8]&63|128,iV(E)}function BM(g){return typeof g=="string"||typeof g=="number"}var $F=function(){function g(k){n(this,g),Oa(this,"_queue",[]),Oa(this,"_timeout",null),Oa(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(k)}return Ju(g,[{key:"setOptions",value:function(C){C&&typeof C.delay!="undefined"&&(this.delay=C.delay),C&&typeof C.max!="undefined"&&(this.max=C.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var C=this._extended.object,E=this._extended.methods,D=0;D<E.length;D++){var M=E[D];M.original?C[M.name]=M.original:delete C[M.name]}this._extended=null}}},{key:"replace",value:function(C,E){var D=this,M=C[E];if(!M)throw new Error("Method "+E+" undefined");C[E]=function(){for(var F=arguments.length,H=new Array(F),B=0;B<F;B++)H[B]=arguments[B];D.queue({args:H,fn:M,context:this})}}},{key:"queue",value:function(C){typeof C=="function"?this._queue.push({fn:C}):this._queue.push(C),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var C=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=ex(function(){C.flush()},this.delay))}},{key:"flush",value:function(){var C,E;Al(C=mm(E=this._queue).call(E,0)).call(C,function(D){D.fn.apply(D.context||D.fn,D.args||[])})}}],[{key:"extend",value:function(C,E){var D=new g(E);if(C.flush!==void 0)throw new Error("Target object already has a property flush");C.flush=function(){D.flush()};var M=[{name:"flush",original:void 0}];if(E&&E.replace)for(var F=0;F<E.replace.length;F++){var H=E.replace[F];M.push({name:H,original:C[H]}),D.replace(C,H)}return D._extended={object:C,methods:M},D}}]),g}(),PF=function(){function g(){n(this,g),Oa(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Oa(this,"subscribe",g.prototype.on),Oa(this,"unsubscribe",g.prototype.off)}return Ju(g,[{key:"_trigger",value:function(C,E,D){var M,F;if(C==="*")throw new Error("Cannot trigger event *");Al(M=Gi(F=[]).call(F,Kr(this._subscribers[C]),Kr(this._subscribers["*"]))).call(M,function(H){H(C,E,D!=null?D:null)})}},{key:"on",value:function(C,E){typeof E=="function"&&this._subscribers[C].push(E)}},{key:"off",value:function(C,E){var D;this._subscribers[C]=Oi(D=this._subscribers[C]).call(D,function(M){return M!==E})}}]),g}(),aV=hF,oV=pF;aV("Set",function(g){return function(){return g(this,arguments.length?arguments[0]:void 0)}},oV);var sV=Ht,lV=sV.Set,uV=lV,hV=uV,cV=hV,NT=d(cV),dV=c0,fV=dV,vV=fV,pV=vV,mV=pV,gV=mV,yV=gV,bV=yV,_V=bV,wV=_V,HM=d(wV);function Xl(g,k){var C=typeof Is!="undefined"&&Hc(g)||g["@@iterator"];if(!C){if(zi(g)||(C=kV(g))||k){C&&(g=C);var E=0,D=function(){};return{s:D,n:function(){return E>=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function kV(g,k){var C;if(g){if(typeof g=="string")return IF(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return IF(g,k)}}function IF(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);C<k;C++)E[C]=g[C];return E}var WM=function(g){function k(C){n(this,k),this._pairs=C}return Ju(k,[{key:g,value:Fa.mark(function C(){var E,D,M,F,H;return Fa.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:E=Xl(this._pairs),U.prev=1,E.s();case 3:if((D=E.n()).done){U.next=9;break}return M=mn(D.value,2),F=M[0],H=M[1],U.next=7,[F,H];case 7:U.next=3;break;case 9:U.next=14;break;case 11:U.prev=11,U.t0=U.catch(1),E.e(U.t0);case 14:return U.prev=14,E.f(),U.finish(14);case 17:case"end":return U.stop()}},C,this,[[1,11,14,17]])})},{key:"entries",value:Fa.mark(function C(){var E,D,M,F,H;return Fa.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:E=Xl(this._pairs),U.prev=1,E.s();case 3:if((D=E.n()).done){U.next=9;break}return M=mn(D.value,2),F=M[0],H=M[1],U.next=7,[F,H];case 7:U.next=3;break;case 9:U.next=14;break;case 11:U.prev=11,U.t0=U.catch(1),E.e(U.t0);case 14:return U.prev=14,E.f(),U.finish(14);case 17:case"end":return U.stop()}},C,this,[[1,11,14,17]])})},{key:"keys",value:Fa.mark(function C(){var E,D,M,F;return Fa.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:E=Xl(this._pairs),B.prev=1,E.s();case 3:if((D=E.n()).done){B.next=9;break}return M=mn(D.value,1),F=M[0],B.next=7,F;case 7:B.next=3;break;case 9:B.next=14;break;case 11:B.prev=11,B.t0=B.catch(1),E.e(B.t0);case 14:return B.prev=14,E.f(),B.finish(14);case 17:case"end":return B.stop()}},C,this,[[1,11,14,17]])})},{key:"values",value:Fa.mark(function C(){var E,D,M,F;return Fa.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:E=Xl(this._pairs),B.prev=1,E.s();case 3:if((D=E.n()).done){B.next=9;break}return M=mn(D.value,2),F=M[1],B.next=7,F;case 7:B.next=3;break;case 9:B.next=14;break;case 11:B.prev=11,B.t0=B.catch(1),E.e(B.t0);case 14:return B.prev=14,E.f(),B.finish(14);case 17:case"end":return B.stop()}},C,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var E;return Jn(E=Kr(this._pairs)).call(E,function(D){return D[0]})}},{key:"toItemArray",value:function(){var E;return Jn(E=Kr(this._pairs)).call(E,function(D){return D[1]})}},{key:"toEntryArray",value:function(){return Kr(this._pairs)}},{key:"toObjectMap",value:function(){var E=BS(null),D=Xl(this._pairs),M;try{for(D.s();!(M=D.n()).done;){var F=mn(M.value,2),H=F[0],B=F[1];E[H]=B}}catch(U){D.e(U)}finally{D.f()}return E}},{key:"toMap",value:function(){return new mF(this._pairs)}},{key:"toIdSet",value:function(){return new NT(this.toIdArray())}},{key:"toItemSet",value:function(){return new NT(this.toItemArray())}},{key:"cache",value:function(){return new k(Kr(this._pairs))}},{key:"distinct",value:function(E){var D=new NT,M=Xl(this._pairs),F;try{for(M.s();!(F=M.n()).done;){var H=mn(F.value,2),B=H[0],U=H[1];D.add(E(U,B))}}catch(J){M.e(J)}finally{M.f()}return D}},{key:"filter",value:function(E){var D=this._pairs;return new k({[Kv](){return Fa.mark(function M(){var F,H,B,U,J;return Fa.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:F=Xl(D),re.prev=1,F.s();case 3:if((H=F.n()).done){re.next=10;break}if(B=mn(H.value,2),U=B[0],J=B[1],!E(J,U)){re.next=8;break}return re.next=8,[U,J];case 8:re.next=3;break;case 10:re.next=15;break;case 12:re.prev=12,re.t0=re.catch(1),F.e(re.t0);case 15:return re.prev=15,F.f(),re.finish(15);case 18:case"end":return re.stop()}},M,null,[[1,12,15,18]])})()}})}},{key:"forEach",value:function(E){var D=Xl(this._pairs),M;try{for(D.s();!(M=D.n()).done;){var F=mn(M.value,2),H=F[0],B=F[1];E(B,H)}}catch(U){D.e(U)}finally{D.f()}}},{key:"map",value:function(E){var D=this._pairs;return new k({[Kv](){return Fa.mark(function M(){var F,H,B,U,J;return Fa.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:F=Xl(D),re.prev=1,F.s();case 3:if((H=F.n()).done){re.next=9;break}return B=mn(H.value,2),U=B[0],J=B[1],re.next=7,[U,E(J,U)];case 7:re.next=3;break;case 9:re.next=14;break;case 11:re.prev=11,re.t0=re.catch(1),F.e(re.t0);case 14:return re.prev=14,F.f(),re.finish(14);case 17:case"end":return re.stop()}},M,null,[[1,11,14,17]])})()}})}},{key:"max",value:function(E){var D=HM(this._pairs),M=D.next();if(M.done)return null;for(var F=M.value[1],H=E(M.value[1],M.value[0]);!(M=D.next()).done;){var B=mn(M.value,2),U=B[0],J=B[1],ie=E(J,U);ie>H&&(H=ie,F=J)}return F}},{key:"min",value:function(E){var D=HM(this._pairs),M=D.next();if(M.done)return null;for(var F=M.value[1],H=E(M.value[1],M.value[0]);!(M=D.next()).done;){var B=mn(M.value,2),U=B[0],J=B[1],ie=E(J,U);ie<H&&(H=ie,F=J)}return F}},{key:"reduce",value:function(E,D){var M=Xl(this._pairs),F;try{for(M.s();!(F=M.n()).done;){var H=mn(F.value,2),B=H[0],U=H[1];D=E(D,U,B)}}catch(J){M.e(J)}finally{M.f()}return D}},{key:"sort",value:function(E){var D=this;return new k({[Kv]:function(){var M;return HM(FM(M=Kr(D._pairs)).call(M,function(F,H){var B=mn(F,2),U=B[0],J=B[1],ie=mn(H,2),re=ie[0],se=ie[1];return E(J,se,U,re)}))}})}}]),k}(Kv);function MF(g,k){var C=P0(g);if(Gm){var E=Gm(g);k&&(E=Oi(E).call(E,function(D){return Wx(g,D).enumerable})),C.push.apply(C,E)}return C}function AF(g){for(var k=1;k<arguments.length;k++){var C,E,D=arguments[k]!=null?arguments[k]:{};k%2?Al(C=MF(Object(D),!0)).call(C,function(M){Oa(g,M,D[M])}):qx?DI(g,qx(D)):Al(E=MF(Object(D))).call(E,function(M){Jx(g,M,Wx(D,M))})}return g}function GM(g,k){var C=typeof Is!="undefined"&&Hc(g)||g["@@iterator"];if(!C){if(zi(g)||(C=SV(g))||k){C&&(g=C);var E=0,D=function(){};return{s:D,n:function(){return E>=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function SV(g,k){var C;if(g){if(typeof g=="string")return RF(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return RF(g,k)}}function RF(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);C<k;C++)E[C]=g[C];return E}function xV(g){var k=TV();return function(){var E=wh(g),D;if(k){var M=wh(this).constructor;D=Wl(E,arguments,M)}else D=E.apply(this,arguments);return sT(this,D)}}function TV(){if(typeof Reflect=="undefined"||!Wl||Wl.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Wl(Boolean,[],function(){})),!0}catch(g){return!1}}function CV(g,k){return g[k]==null&&(g[k]=nV()),g}var NF=function(g){oT(C,g);var k=xV(C);function C(E,D){var M;return n(this,C),M=k.call(this),Oa(Fv(M),"_queue",null),E&&!zi(E)&&(D=E,E=[]),M._options=D||{},M._data=new mF,M.length=0,M._idProp=M._options.fieldId||"id",E&&E.length&&M.add(E),M.setOptions(D),M}return Ju(C,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(D){D&&D.queue!==void 0&&(D.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=$F.extend(this,{replace:["add","update","remove"]})),D.queue&&typeof D.queue=="object"&&this._queue.setOptions(D.queue)))}},{key:"add",value:function(D,M){var F=this,H=[],B;if(zi(D)){var U=Jn(D).call(D,function(re){return re[F._idProp]});if(HU(U).call(U,function(re){return F._data.has(re)}))throw new Error("A duplicate id was found in the parameter array.");for(var J=0,ie=D.length;J<ie;J++)B=this._addItem(D[J]),H.push(B)}else if(D&&typeof D=="object")B=this._addItem(D),H.push(B);else throw new Error("Unknown dataType");return H.length&&this._trigger("add",{items:H},M),H}},{key:"update",value:function(D,M){var F=this,H=[],B=[],U=[],J=[],ie=this._idProp,re=function(yt){var St=yt[ie];if(St!=null&&F._data.has(St)){var qi=yt,ti=V0({},F._data.get(St)),kn=F._updateItem(qi);B.push(kn),J.push(qi),U.push(ti)}else{var ri=F._addItem(yt);H.push(ri)}};if(zi(D))for(var se=0,$e=D.length;se<$e;se++)D[se]&&typeof D[se]=="object"?re(D[se]):console.warn("Ignoring input item, which is not an object at index "+se);else if(D&&typeof D=="object")re(D);else throw new Error("Unknown dataType");if(H.length&&this._trigger("add",{items:H},M),B.length){var ot={items:B,oldData:U,data:J};this._trigger("update",ot,M)}return Gi(H).call(H,B)}},{key:"updateOnly",value:function(D,M){var F,H=this;zi(D)||(D=[D]);var B=Jn(F=Jn(D).call(D,function(J){var ie=H._data.get(J[H._idProp]);if(ie==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:ie,update:J}})).call(F,function(J){var ie=J.oldData,re=J.update,se=ie[H._idProp],$e=Dx(ie,re);return H._data.set(se,$e),{id:se,oldData:ie,updatedData:$e}});if(B.length){var U={items:Jn(B).call(B,function(J){return J.id}),oldData:Jn(B).call(B,function(J){return J.oldData}),data:Jn(B).call(B,function(J){return J.updatedData})};return this._trigger("update",U,M),U.items}else return[]}},{key:"get",value:function(D,M){var F=void 0,H=void 0,B=void 0;BM(D)?(F=D,B=M):zi(D)?(H=D,B=M):B=D;var U=B&&B.returnType==="Object"?"Object":"Array",J=B&&Oi(B),ie=[],re=void 0,se=void 0,$e=void 0;if(F!=null)re=this._data.get(F),re&&J&&!J(re)&&(re=void 0);else if(H!=null)for(var ot=0,st=H.length;ot<st;ot++)re=this._data.get(H[ot]),re!=null&&(!J||J(re))&&ie.push(re);else{var yt;se=Kr(qv(yt=this._data).call(yt));for(var St=0,qi=se.length;St<qi;St++)$e=se[St],re=this._data.get($e),re!=null&&(!J||J(re))&&ie.push(re)}if(B&&B.order&&F==null&&this._sort(ie,B.order),B&&B.fields){var ti=B.fields;if(F!=null&&re!=null)re=this._filterFields(re,ti);else for(var kn=0,ri=ie.length;kn<ri;kn++)ie[kn]=this._filterFields(ie[kn],ti)}if(U=="Object"){for(var Ch={},mo=0,hd=ie.length;mo<hd;mo++){var dg=ie[mo],cd=dg[this._idProp];Ch[cd]=dg}return Ch}else if(F!=null){var Zl;return(Zl=re)!==null&&Zl!==void 0?Zl:null}else return ie}},{key:"getIds",value:function(D){var M=this._data,F=D&&Oi(D),H=D&&D.order,B=Kr(qv(M).call(M)),U=[];if(F)if(H){for(var J=[],ie=0,re=B.length;ie<re;ie++){var se=B[ie],$e=this._data.get(se);$e!=null&&F($e)&&J.push($e)}this._sort(J,H);for(var ot=0,st=J.length;ot<st;ot++)U.push(J[ot][this._idProp])}else for(var yt=0,St=B.length;yt<St;yt++){var qi=B[yt],ti=this._data.get(qi);ti!=null&&F(ti)&&U.push(ti[this._idProp])}else if(H){for(var kn=[],ri=0,Ch=B.length;ri<Ch;ri++){var mo=B[ri];kn.push(M.get(mo))}this._sort(kn,H);for(var hd=0,dg=kn.length;hd<dg;hd++)U.push(kn[hd][this._idProp])}else for(var cd=0,Zl=B.length;cd<Zl;cd++){var Vo=B[cd],fg=M.get(Vo);fg!=null&&U.push(fg[this._idProp])}return U}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(D,M){var F=M&&Oi(M),H=this._data,B=Kr(qv(H).call(H));if(M&&M.order)for(var U=this.get(M),J=0,ie=U.length;J<ie;J++){var re=U[J],se=re[this._idProp];D(re,se)}else for(var $e=0,ot=B.length;$e<ot;$e++){var st=B[$e],yt=this._data.get(st);yt!=null&&(!F||F(yt))&&D(yt,st)}}},{key:"map",value:function(D,M){for(var F=M&&Oi(M),H=[],B=this._data,U=Kr(qv(B).call(B)),J=0,ie=U.length;J<ie;J++){var re=U[J],se=this._data.get(re);se!=null&&(!F||F(se))&&H.push(D(se,re))}return M&&M.order&&this._sort(H,M.order),H}},{key:"_filterFields",value:function(D,M){var F;return D&&l1(F=zi(M)?M:P0(M)).call(F,function(H,B){return H[B]=D[B],H},{})}},{key:"_sort",value:function(D,M){if(typeof M=="string"){var F=M;FM(D).call(D,function(H,B){var U=H[F],J=B[F];return U>J?1:U<J?-1:0})}else if(typeof M=="function")FM(D).call(D,M);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(D,M){for(var F=[],H=[],B=zi(D)?D:[D],U=0,J=B.length;U<J;U++){var ie=this._remove(B[U]);if(ie){var re=ie[this._idProp];re!=null&&(F.push(re),H.push(ie))}}return F.length&&this._trigger("remove",{items:F,oldData:H},M),F}},{key:"_remove",value:function(D){var M;if(BM(D)?M=D:D&&typeof D=="object"&&(M=D[this._idProp]),M!=null&&this._data.has(M)){var F=this._data.get(M)||null;return this._data.delete(M),--this.length,F}return null}},{key:"clear",value:function(D){for(var M,F=Kr(qv(M=this._data).call(M)),H=[],B=0,U=F.length;B<U;B++)H.push(this._data.get(F[B]));return this._data.clear(),this.length=0,this._trigger("remove",{items:F,oldData:H},D),F}},{key:"max",value:function(D){var M,F=null,H=null,B=GM(DF(M=this._data).call(M)),U;try{for(B.s();!(U=B.n()).done;){var J=U.value,ie=J[D];typeof ie=="number"&&(H==null||ie>H)&&(F=J,H=ie)}}catch(re){B.e(re)}finally{B.f()}return F||null}},{key:"min",value:function(D){var M,F=null,H=null,B=GM(DF(M=this._data).call(M)),U;try{for(B.s();!(U=B.n()).done;){var J=U.value,ie=J[D];typeof ie=="number"&&(H==null||ie<H)&&(F=J,H=ie)}}catch(re){B.e(re)}finally{B.f()}return F||null}},{key:"distinct",value:function(D){for(var M=this._data,F=Kr(qv(M).call(M)),H=[],B=0,U=0,J=F.length;U<J;U++){for(var ie=F[U],re=M.get(ie),se=re[D],$e=!1,ot=0;ot<B;ot++)if(H[ot]==se){$e=!0;break}!$e&&se!==void 0&&(H[B]=se,B++)}return H}},{key:"_addItem",value:function(D){var M=CV(D,this._idProp),F=M[this._idProp];if(this._data.has(F))throw new Error("Cannot add item: item with id "+F+" already exists");return this._data.set(F,M),++this.length,F}},{key:"_updateItem",value:function(D){var M=D[this._idProp];if(M==null)throw new Error("Cannot update item: item has no id (item: "+WS(D)+")");var F=this._data.get(M);if(!F)throw new Error("Cannot update item: no item with id "+M+" found");return this._data.set(M,AF(AF({},F),D)),M}},{key:"stream",value:function(D){if(D){var M=this._data;return new WM({[Kv](){return Fa.mark(function H(){var B,U,J,ie;return Fa.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:B=GM(D),se.prev=1,B.s();case 3:if((U=B.n()).done){se.next=11;break}if(J=U.value,ie=M.get(J),ie==null){se.next=9;break}return se.next=9,[J,ie];case 9:se.next=3;break;case 11:se.next=16;break;case 13:se.prev=13,se.t0=se.catch(1),B.e(se.t0);case 16:return se.prev=16,B.f(),se.finish(16);case 19:case"end":return se.stop()}},H,null,[[1,13,16,19]])})()}})}else{var F;return new WM({[Kv]:Qu(F=eV(this._data)).call(F,this._data)})}}}]),C}(PF);function EV(g,k){var C=typeof Is!="undefined"&&Hc(g)||g["@@iterator"];if(!C){if(zi(g)||(C=DV(g))||k){C&&(g=C);var E=0,D=function(){};return{s:D,n:function(){return E>=g.length?{done:!0}:{done:!1,value:g[E++]}},e:function(U){throw U},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,F=!1,H;return{s:function(){C=C.call(g)},n:function(){var U=C.next();return M=U.done,U},e:function(U){F=!0,H=U},f:function(){try{!M&&C.return!=null&&C.return()}finally{if(F)throw H}}}}function DV(g,k){var C;if(g){if(typeof g=="string")return LF(g,k);var E=Ms(C=Object.prototype.toString.call(g)).call(C,8,-1);if(E==="Object"&&g.constructor&&(E=g.constructor.name),E==="Map"||E==="Set")return rm(g);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return LF(g,k)}}function LF(g,k){(k==null||k>g.length)&&(k=g.length);for(var C=0,E=new Array(k);C<k;C++)E[C]=g[C];return E}function OV(g){var k=$V();return function(){var E=wh(g),D;if(k){var M=wh(this).constructor;D=Wl(E,arguments,M)}else D=E.apply(this,arguments);return sT(this,D)}}function $V(){if(typeof Reflect=="undefined"||!Wl||Wl.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Wl(Boolean,[],function(){})),!0}catch(g){return!1}}var PV=function(g){oT(C,g);var k=OV(C);function C(E,D){var M,F;return n(this,C),F=k.call(this),Oa(Fv(F),"length",0),Oa(Fv(F),"_ids",new NT),F._options=D||{},F._listener=Qu(M=F._onEvent).call(M,Fv(F)),F.setData(E),F}return Ju(C,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(D){if(this._data){this._data.off&&this._data.off("*",this._listener);var M=this._data.getIds({filter:Oi(this._options)}),F=this._data.get(M);this._ids.clear(),this.length=0,this._trigger("remove",{items:M,oldData:F})}if(D!=null){this._data=D;for(var H=this._data.getIds({filter:Oi(this._options)}),B=0,U=H.length;B<U;B++){var J=H[B];this._ids.add(J)}this.length=H.length,this._trigger("add",{items:H})}else this._data=new NF;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var D=this._data.getIds({filter:Oi(this._options)}),M=Kr(this._ids),F={},H=[],B=[],U=[],J=0,ie=D.length;J<ie;J++){var re=D[J];F[re]=!0,this._ids.has(re)||(H.push(re),this._ids.add(re))}for(var se=0,$e=M.length;se<$e;se++){var ot=M[se],st=this._data.get(ot);st==null?console.error("If you see this, report it please."):F[ot]||(B.push(ot),U.push(st),this._ids.delete(ot))}this.length+=H.length-B.length,H.length&&this._trigger("add",{items:H}),B.length&&this._trigger("remove",{items:B,oldData:U})}},{key:"get",value:function(D,M){if(this._data==null)return null;var F=null,H;BM(D)||zi(D)?(F=D,H=M):H=D;var B=V0({},this._options,H),U=Oi(this._options),J=H&&Oi(H);return U&&J&&(B.filter=function(ie){return U(ie)&&J(ie)}),F==null?this._data.get(B):this._data.get(F,B)}},{key:"getIds",value:function(D){if(this._data.length){var M=Oi(this._options),F=D!=null?Oi(D):null,H;return F?M?H=function(U){return M(U)&&F(U)}:H=F:H=M,this._data.getIds({filter:H,order:D&&D.order})}else return[]}},{key:"forEach",value:function(D,M){if(this._data){var F,H=Oi(this._options),B=M&&Oi(M),U;B?H?U=function(ie){return H(ie)&&B(ie)}:U=B:U=H,Al(F=this._data).call(F,D,{filter:U,order:M&&M.order})}}},{key:"map",value:function(D,M){if(this._data){var F,H=Oi(this._options),B=M&&Oi(M),U;return B?H?U=function(ie){return H(ie)&&B(ie)}:U=B:U=H,Jn(F=this._data).call(F,D,{filter:U,order:M&&M.order})}else return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(D){var M;return this._data.stream(D||{[Kv]:Qu(M=qv(this._ids)).call(M,this._ids)})}},{key:"dispose",value:function(){var D;(D=this._data)!==null&&D!==void 0&&D.off&&this._data.off("*",this._listener);var M="This data view has already been disposed of.",F={get:function(){throw new Error(M)},set:function(){throw new Error(M)},configurable:!1},H=EV($0(C.prototype)),B;try{for(H.s();!(B=H.n()).done;){var U=B.value;Jx(this,U,F)}}catch(J){H.e(J)}finally{H.f()}}},{key:"_onEvent",value:function(D,M,F){if(!(!M||!M.items||!this._data)){var H=M.items,B=[],U=[],J=[],ie=[],re=[],se=[];switch(D){case"add":for(var $e=0,ot=H.length;$e<ot;$e++){var st=H[$e],yt=this.get(st);yt&&(this._ids.add(st),B.push(st))}break;case"update":for(var St=0,qi=H.length;St<qi;St++){var ti=H[St],kn=this.get(ti);kn?this._ids.has(ti)?(U.push(ti),re.push(M.data[St]),ie.push(M.oldData[St])):(this._ids.add(ti),B.push(ti)):this._ids.has(ti)&&(this._ids.delete(ti),J.push(ti),se.push(M.oldData[St]))}break;case"remove":for(var ri=0,Ch=H.length;ri<Ch;ri++){var mo=H[ri];this._ids.has(mo)&&(this._ids.delete(mo),J.push(mo),se.push(M.oldData[ri]))}break}this.length+=B.length-J.length,B.length&&this._trigger("add",{items:B},F),U.length&&this._trigger("update",{items:U,oldData:ie,data:re},F),J.length&&this._trigger("remove",{items:J,oldData:se},F)}}}]),C}(PF);function FF(g,k){return typeof k=="object"&&k!==null&&g===k.idProp&&typeof k.add=="function"&&typeof k.clear=="function"&&typeof k.distinct=="function"&&typeof Al(k)=="function"&&typeof k.get=="function"&&typeof k.getDataSet=="function"&&typeof k.getIds=="function"&&typeof k.length=="number"&&typeof Jn(k)=="function"&&typeof k.max=="function"&&typeof k.min=="function"&&typeof k.off=="function"&&typeof k.on=="function"&&typeof k.remove=="function"&&typeof k.setOptions=="function"&&typeof k.stream=="function"&&typeof k.update=="function"&&typeof k.updateOnly=="function"}function IV(g,k){return typeof k=="object"&&k!==null&&g===k.idProp&&typeof Al(k)=="function"&&typeof k.get=="function"&&typeof k.getDataSet=="function"&&typeof k.getIds=="function"&&typeof k.length=="number"&&typeof Jn(k)=="function"&&typeof k.off=="function"&&typeof k.on=="function"&&typeof k.stream=="function"&&FF(g,k.getDataSet())}t.DELETE=Lm,t.DataSet=NF,t.DataStream=WM,t.DataView=PV,t.Queue=$F,t.createNewDataPipeFrom=P$,t.isDataSetLike=FF,t.isDataViewLike=IV})}}),ZV=pN({"node_modules/vis-timeline/peer/umd/vis-timeline-graph2d.min.js"(e,a){(function(t,n){typeof e=="object"&&typeof a!="undefined"?n(e,KV(),XV()):typeof define=="function"&&define.amd?define(["exports","moment","vis-data/peer/umd/vis-data.js"],n):n((t=typeof globalThis!="undefined"?globalThis:t||self).vis=t.vis||{},t.moment,t.vis)})(e,function(t,n,h){var d=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function p(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var y=function(s){return s&&s.Math===Math&&s},b=y(typeof globalThis=="object"&&globalThis)||y(typeof window=="object"&&window)||y(typeof self=="object"&&self)||y(typeof d=="object"&&d)||function(){return this}()||d||Function("return this")(),w=function(s){try{return!!s()}catch(r){return!0}},$=!w(function(){var s=function(){}.bind();return typeof s!="function"||s.hasOwnProperty("prototype")}),A=$,R=Function.prototype,Y=R.apply,V=R.call,oe=typeof Reflect=="object"&&Reflect.apply||(A?V.bind(Y):function(){return V.apply(Y,arguments)}),G=$,ae=Function.prototype,ve=ae.call,ye=G&&ae.bind.bind(ve,ve),pe=G?ye:function(s){return function(){return ve.apply(s,arguments)}},Se=pe,ze=Se({}.toString),tt=Se("".slice),_e=function(s){return tt(ze(s),8,-1)},it=_e,Ne=pe,qe=function(s){if(it(s)==="Function")return Ne(s)},Fe=typeof document=="object"&&document.all,Ye={all:Fe,IS_HTMLDDA:Fe===void 0&&Fe!==void 0},ir=Ye.all,gt=Ye.IS_HTMLDDA?function(s){return typeof s=="function"||s===ir}:function(s){return typeof s=="function"},Kt={},lt=!w(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),kt=$,$r=Function.prototype.call,ht=kt?$r.bind($r):function(){return $r.apply($r,arguments)},Ct={},ui={}.propertyIsEnumerable,sn=Object.getOwnPropertyDescriptor,$t=sn&&!ui.call({1:2},1);Ct.f=$t?function(s){var r=sn(this,s);return!!r&&r.enumerable}:ui;var ce,Gn,En=function(s,r){return{enumerable:!(1&s),configurable:!(2&s),writable:!(4&s),value:r}},ln=w,ke=_e,ge=Object,be=pe("".split),je=ln(function(){return!ge("z").propertyIsEnumerable(0)})?function(s){return ke(s)==="String"?be(s,""):ge(s)}:ge,Qe=function(s){return s==null},rt=Qe,Ut=TypeError,Bt=function(s){if(rt(s))throw new Ut("Can't call method on "+s);return s},ii=je,zn=Bt,sr=function(s){return ii(zn(s))},Zi=gt,nr=Ye.all,Ft=Ye.IS_HTMLDDA?function(s){return typeof s=="object"?s!==null:Zi(s)||s===nr}:function(s){return typeof s=="object"?s!==null:Zi(s)},Lt={},el=Lt,ts=b,ct=gt,Ht=function(s){return ct(s)?s:void 0},Pr=function(s,r){return arguments.length<2?Ht(el[s])||Ht(ts[s]):el[s]&&el[s][r]||ts[s]&&ts[s][r]},Pt=pe({}.isPrototypeOf),Ve=typeof navigator!="undefined"&&String(navigator.userAgent)||"",rs=b,Er=Ve,da=rs.process,Vt=rs.Deno,hi=da&&da.versions||Vt&&Vt.version,Li=hi&&hi.v8;Li&&(Gn=(ce=Li.split("."))[0]>0&&ce[0]<4?1:+(ce[0]+ce[1])),!Gn&&Er&&(!(ce=Er.match(/Edge\/(\d+)/))||ce[1]>=74)&&(ce=Er.match(/Chrome\/(\d+)/))&&(Gn=+ce[1]);var yi=Gn,nu=yi,fa=w,Yh=b.String,ci=!!Object.getOwnPropertySymbols&&!fa(function(){var s=Symbol("symbol detection");return!Yh(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&nu&&nu<41}),lr=ci&&!Symbol.sham&&typeof Symbol.iterator=="symbol",va=Pr,Ji=gt,ue=Pt,Sd=Object,is=lr?function(s){return typeof s=="symbol"}:function(s){var r=va("Symbol");return Ji(r)&&ue(r.prototype,Sd(s))},Hr=String,Et=function(s){try{return Hr(s)}catch(r){return"Object"}},Oe=gt,Co=Et,Ue=TypeError,di=function(s){if(Oe(s))return s;throw new Ue(Co(s)+" is not a function")},xd=di,Va=Qe,Dt=function(s,r){var u=s[r];return Va(u)?void 0:xd(u)},ur=ht,wr=gt,ut=Ft,pr=TypeError,Ir={exports:{}},bi=b,_i=Object.defineProperty,Td=function(s,r){try{_i(bi,s,{value:r,configurable:!0,writable:!0})}catch(u){bi[s]=r}return r},Dn="__core-js_shared__",qa=b[Dn]||Td(Dn,{}),tl=qa;(Ir.exports=function(s,r){return tl[s]||(tl[s]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Mr=Ir.exports,un=Bt,au=Object,wi=function(s){return au(un(s))},Bh=wi,Cd=pe({}.hasOwnProperty),Ge=Object.hasOwn||function(s,r){return Cd(Bh(s),r)},ns=pe,Ed=0,ou=Math.random(),su=ns(1 .toString),as=function(s){return"Symbol("+(s===void 0?"":s)+")_"+su(++Ed+ou,36)},Dd=Mr,rl=Ge,Hh=as,Eo=ci,Od=lr,pa=b.Symbol,Ar=Dd("wks"),$d=Od?pa.for||pa:pa&&pa.withoutSetter||Hh,hr=function(s){return rl(Ar,s)||(Ar[s]=Eo&&rl(pa,s)?pa[s]:$d("Symbol."+s)),Ar[s]},Pd=ht,ar=Ft,Wh=is,Un=Dt,Ka=function(s,r){var u,o;if(wr(u=s.toString)&&!ut(o=ur(u,s))||wr(u=s.valueOf)&&!ut(o=ur(u,s)))return o;throw new pr("Can't convert object to primitive value")},lu=TypeError,Qi=hr("toPrimitive"),Wr=function(s,r){if(!ar(s)||Wh(s))return s;var u,o=Un(s,Qi);if(o){if(u=Pd(o,s,r),!ar(u)||Wh(u))return u;throw new lu("Can't convert object to primitive value")}return Ka(s)},Id=is,os=function(s){var r=Wr(s,"string");return Id(r)?r:r+""},Gh=Ft,uu=b.document,Md=Gh(uu)&&Gh(uu.createElement),Xa=function(s){return Md?uu.createElement(s):{}},hu=Xa,zh=!lt&&!w(function(){return Object.defineProperty(hu("div"),"a",{get:function(){return 7}}).a!==7}),Wt=lt,Ad=ht,il=Ct,Uh=En,Rd=sr,Nd=os,Ld=Ge,Fd=zh,Vh=Object.getOwnPropertyDescriptor;Kt.f=Wt?Vh:function(s,r){if(s=Rd(s),r=Nd(r),Fd)try{return Vh(s,r)}catch(u){}if(Ld(s,r))return Uh(!Ad(il.f,s,r),s[r])};var jd=w,Yd=gt,Bd=/#|\.prototype\./,ma=function(s,r){var u=qh[Hd(s)];return u===Wd||u!==cu&&(Yd(r)?jd(r):!!r)},Hd=ma.normalize=function(s){return String(s).replace(Bd,".").toLowerCase()},qh=ma.data={},cu=ma.NATIVE="N",Wd=ma.POLYFILL="P",du=ma,ss=di,ls=$,Gd=qe(qe.bind),ga=function(s,r){return ss(s),r===void 0?s:ls?Gd(s,r):function(){return s.apply(r,arguments)}},fi={},Kh=lt&&w(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zd=Ft,Ud=String,Vd=TypeError,Fi=function(s){if(zd(s))return s;throw new Vd(Ud(s)+" is not an object")},nt=lt,Vn=zh,On=Kh,nl=Fi,al=os,qd=TypeError,Za=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Gr="enumerable",Qa="configurable",fu="writable";fi.f=nt?On?function(s,r,u){if(nl(s),r=al(r),nl(u),typeof s=="function"&&r==="prototype"&&"value"in u&&fu in u&&!u[fu]){var o=Ja(s,r);o&&o[fu]&&(s[r]=u.value,u={configurable:Qa in u?u[Qa]:o[Qa],enumerable:Gr in u?u[Gr]:o[Gr],writable:!1})}return Za(s,r,u)}:Za:function(s,r,u){if(nl(s),r=al(r),nl(u),Vn)try{return Za(s,r,u)}catch(o){}if("get"in u||"set"in u)throw new qd("Accessors not supported");return"value"in u&&(s[r]=u.value),s};var Rr=fi,Xh=En,$n=lt?function(s,r,u){return Rr.f(s,r,Xh(1,u))}:function(s,r,u){return s[r]=u,s},ol=b,Kd=oe,ya=qe,kr=gt,us=Kt.f,Xd=du,eo=Lt,Zd=ga,ba=$n,Zh=Ge,ji=function(s){var r=function(u,o,c){if(this instanceof r){switch(arguments.length){case 0:return new s;case 1:return new s(u);case 2:return new s(u,o)}return new s(u,o,c)}return Kd(s,this,arguments)};return r.prototype=s.prototype,r},Ke=function(s,r){var u,o,c,f,m,S,x,O,I,N=s.target,L=s.global,z=s.stat,W=s.proto,X=L?ol:z?ol[N]:(ol[N]||{}).prototype,Z=L?eo:eo[N]||ba(eo,N,{})[N],Q=Z.prototype;for(f in r)o=!(u=Xd(L?f:N+(z?".":"#")+f,s.forced))&&X&&Zh(X,f),S=Z[f],o&&(x=s.dontCallGetSet?(I=us(X,f))&&I.value:X[f]),m=o&&x?x:r[f],o&&typeof S==typeof m||(O=s.bind&&o?Zd(m,ol):s.wrap&&o?ji(m):W&&kr(m)?ya(m):m,(s.sham||m&&m.sham||S&&S.sham)&&ba(O,"sham",!0),ba(Z,f,O),W&&(Zh(eo,c=N+"Prototype")||ba(eo,c,{}),ba(eo[c],f,m),s.real&&Q&&(u||!Q[f])&&ba(Q,f,m)))},sl=pe([].slice),Jh=pe,Do=di,Qh=Ft,hn=Ge,ll=sl,hs=$,ul=Function,to=Jh([].concat),vu=Jh([].join),pu={},ec=hs?ul.bind:function(s){var r=Do(this),u=r.prototype,o=ll(arguments,1),c=function(){var f=to(o,ll(arguments));return this instanceof c?function(m,S,x){if(!hn(pu,S)){for(var O=[],I=0;I<S;I++)O[I]="a["+I+"]";pu[S]=ul("C,a","return new C("+vu(O,",")+")")}return pu[S](m,x)}(r,f.length,f):r.apply(s,f)};return Qh(u)&&(c.prototype=u),c},tc={};tc[hr("toStringTag")]="z";var Yi=String(tc)==="[object z]",hl=Yi,mu=gt,Xe=_e,Jd=hr("toStringTag"),Qd=Object,gu=Xe(function(){return arguments}())==="Arguments",cn=hl?Xe:function(s){var r,u,o;return s===void 0?"Undefined":s===null?"Null":typeof(u=function(c,f){try{return c[f]}catch(m){}}(r=Qd(s),Jd))=="string"?u:gu?Xe(r):(o=Xe(r))==="Object"&&mu(r.callee)?"Arguments":o},ef=gt,_a=qa,Pn=pe(Function.toString);ef(_a.inspectSource)||(_a.inspectSource=function(s){return Pn(s)});var tf=_a.inspectSource,Ze=pe,rf=w,wa=gt,ka=cn,cs=tf,yu=function(){},bu=[],rc=Pr("Reflect","construct"),ro=/^\s*(?:class|function)\b/,Oo=Ze(ro.exec),ds=!ro.test(yu),fs=function(s){if(!wa(s))return!1;try{return rc(yu,bu,s),!0}catch(r){return!1}},ic=function(s){if(!wa(s))return!1;switch(ka(s)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ds||!!Oo(ro,cs(s))}catch(r){return!0}};ic.sham=!0;var cl=!rc||rf(function(){var s;return fs(fs.call)||!fs(Object)||!fs(function(){s=!0})||s})?ic:fs,nc=cl,dl=Et,nf=TypeError,dn={},af=Math.ceil,of=Math.floor,sf=Math.trunc||function(s){var r=+s;return(r>0?of:af)(r)},io=function(s){var r=+s;return r!=r||r===0?0:sf(r)},fl=io,lf=Math.max,mr=Math.min,zr=function(s,r){var u=fl(s);return u<0?lf(u+r,0):mr(u,r)},_u=io,Bi=Math.min,wu=function(s){return s>0?Bi(_u(s),9007199254740991):0},ki=function(s){return wu(s.length)},vl=sr,uf=zr,ku=ki,ac=function(s){return function(r,u,o){var c,f=vl(r),m=ku(f),S=uf(o,m);if(s&&u!=u){for(;m>S;)if((c=f[S++])!=c)return!0}else for(;m>S;S++)if((s||S in f)&&f[S]===u)return s||S||0;return!s&&-1}},Sa={includes:ac(!0),indexOf:ac(!1)},vs={},Su=Ge,oc=sr,xu=Sa.indexOf,hf=vs,sc=pe([].push),ps=function(s,r){var u,o=oc(s),c=0,f=[];for(u in o)!Su(hf,u)&&Su(o,u)&&sc(f,u);for(;r.length>c;)Su(o,u=r[c++])&&(~xu(f,u)||sc(f,u));return f},Tu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cf=ps,df=Tu,ms=Object.keys||function(s){return cf(s,df)},ff=lt,vi=Kh,vf=fi,pf=Fi,Cu=sr,mf=ms;dn.f=ff&&!vi?Object.defineProperties:function(s,r){pf(s);for(var u,o=Cu(r),c=mf(r),f=c.length,m=0;f>m;)vf.f(s,u=c[m++],o[u]);return s};var gs,gf=Pr("document","documentElement"),yf=as,Eu=Mr("keys"),$o=function(s){return Eu[s]||(Eu[s]=yf(s))},Du=Fi,Ou=dn,qn=Tu,fn=vs,xa=gf,ys=Xa,Hi="prototype",bs="script",Ta=$o("IE_PROTO"),pl=function(){},_s=function(s){return"<"+bs+">"+s+"</"+bs+">"},$u=function(s){s.write(_s("")),s.close();var r=s.parentWindow.Object;return s=null,r},ml=function(){try{gs=new ActiveXObject("htmlfile")}catch(c){}var s,r,u;ml=typeof document!="undefined"?document.domain&&gs?$u(gs):(r=ys("iframe"),u="java"+bs+":",r.style.display="none",xa.appendChild(r),r.src=String(u),(s=r.contentWindow.document).open(),s.write(_s("document.F=Object")),s.close(),s.F):$u(gs);for(var o=qn.length;o--;)delete ml[Hi][qn[o]];return ml()};fn[Ta]=!0;var Po=Object.create||function(s,r){var u;return s!==null?(pl[Hi]=Du(s),u=new pl,pl[Hi]=null,u[Ta]=s):u=ml(),r===void 0?u:Ou.f(u,r)},bf=Ke,Pu=oe,lc=ec,uc=function(s){if(nc(s))return s;throw new nf(dl(s)+" is not a constructor")},_f=Fi,ws=Ft,wf=Po,hc=w,Iu=Pr("Reflect","construct"),kf=Object.prototype,ks=[].push,cc=hc(function(){function s(){}return!(Iu(function(){},[],s)instanceof s)}),dc=!hc(function(){Iu(function(){})}),fc=cc||dc;bf({target:"Reflect",stat:!0,forced:fc,sham:fc},{construct:function(s,r){uc(s),_f(r);var u=arguments.length<3?s:uc(arguments[2]);if(dc&&!cc)return Iu(s,r,u);if(s===u){switch(r.length){case 0:return new s;case 1:return new s(r[0]);case 2:return new s(r[0],r[1]);case 3:return new s(r[0],r[1],r[2]);case 4:return new s(r[0],r[1],r[2],r[3])}var o=[null];return Pu(ks,o,r),new(Pu(lc,s,o))}var c=u.prototype,f=wf(ws(c)?c:kf),m=Pu(s,f,r);return ws(m)?m:f}});var Je=p(Lt.Reflect.construct);function jt(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}var vc={exports:{}},Io=Ke,pc=lt,mc=fi.f;Io({target:"Object",stat:!0,forced:Object.defineProperty!==mc,sham:!pc},{defineProperty:mc});var gc=Lt.Object,Ss=vc.exports=function(s,r,u){return gc.defineProperty(s,r,u)};gc.defineProperty.sham&&(Ss.sham=!0);var Ca=vc.exports,xs=p(Ca),Sf=_e,no=Array.isArray||function(s){return Sf(s)==="Array"},xf=TypeError,Mu=function(s){if(s>9007199254740991)throw xf("Maximum allowed index exceeded");return s},Tf=os,Kn=fi,gl=En,Mo=function(s,r,u){var o=Tf(r);o in s?Kn.f(s,o,gl(0,u)):s[o]=u},yl=no,Cf=cl,bl=Ft,Ef=hr("species"),ni=Array,Au=function(s){var r;return yl(s)&&(r=s.constructor,(Cf(r)&&(r===ni||yl(r.prototype))||bl(r)&&(r=r[Ef])===null)&&(r=void 0)),r===void 0?ni:r},Ru=function(s,r){return new(Au(s))(r===0?0:r)},Df=w,Ts=yi,te=hr("species"),ao=function(s){return Ts>=51||!Df(function(){var r=[];return(r.constructor={})[te]=function(){return{foo:1}},r[s](Boolean).foo!==1})},Of=Ke,Nu=w,Le=no,Ea=Ft,_l=wi,oo=ki,yc=Mu,bc=Mo,wl=Ru,$f=ao,Pf=yi,Nr=hr("isConcatSpreadable"),If=Pf>=51||!Nu(function(){var s=[];return s[Nr]=!1,s.concat()[0]!==s}),Lu=function(s){if(!Ea(s))return!1;var r=s[Nr];return r!==void 0?!!r:Le(s)};Of({target:"Array",proto:!0,forced:!If||!$f("concat")},{concat:function(s){var r,u,o,c,f,m=_l(this),S=wl(m,0),x=0;for(r=-1,o=arguments.length;r<o;r++)if(Lu(f=r===-1?m:arguments[r]))for(c=oo(f),yc(x+c),u=0;u<c;u++,x++)u in f&&bc(S,x,f[u]);else yc(x+1),bc(S,x++,f);return S.length=x,S}});var Mf=cn,Af=String,Si=function(s){if(Mf(s)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Af(s)},Cs={},Fu=ps,Ao=Tu.concat("length","prototype");Cs.f=Object.getOwnPropertyNames||function(s){return Fu(s,Ao)};var Ro={},Lr=zr,ju=ki,_c=Mo,Rf=Array,Nf=Math.max,wc=function(s,r,u){for(var o=ju(s),c=Lr(r,o),f=Lr(u===void 0?o:u,o),m=Rf(Nf(f-c,0)),S=0;c<f;c++,S++)_c(m,S,s[c]);return m.length=S,m},Lf=_e,kc=sr,Yu=Cs.f,Bu=wc,kl=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ro.f=function(s){return kl&&Lf(s)==="Window"?function(r){try{return Yu(r)}catch(u){return Bu(kl)}}(s):Yu(kc(s))};var No={};No.f=Object.getOwnPropertySymbols;var Hu=$n,Fr=function(s,r,u,o){return o&&o.enumerable?s[r]=u:Hu(s,r,u),s},Sc=fi,Wu=function(s,r,u){return Sc.f(s,r,u)},Da={},Sl=hr;Da.f=Sl;var In,Xn,xl,xc=Lt,Ur=Ge,Wi=Da,Tc=fi.f,cr=function(s){var r=xc.Symbol||(xc.Symbol={});Ur(r,s)||Tc(r,s,{value:Wi.f(s)})},Ff=ht,jf=Pr,Yf=hr,Lo=Fr,en=function(){var s=jf("Symbol"),r=s&&s.prototype,u=r&&r.valueOf,o=Yf("toPrimitive");r&&!r[o]&&Lo(r,o,function(c){return Ff(u,this)},{})},so=cn,Ie=Yi?{}.toString:function(){return"[object "+so(this)+"]"},l=Yi,v=fi.f,_=$n,T=Ge,P=Ie,j=hr("toStringTag"),q=function(s,r,u,o){if(s){var c=u?s:s.prototype;T(c,j)||v(c,j,{configurable:!0,value:r}),o&&!l&&_(c,"toString",P)}},le=gt,me=b.WeakMap,Pe=le(me)&&/native code/.test(String(me)),It=b,Vr=Ft,pi=$n,ay=Ge,Sr=qa,yE=$o,bE=vs,Q_="Object already initialized",oy=It.TypeError,ew=It.WeakMap;if(Pe||Sr.state){var Fo=Sr.state||(Sr.state=new ew);Fo.get=Fo.get,Fo.has=Fo.has,Fo.set=Fo.set,In=function(s,r){if(Fo.has(s))throw new oy(Q_);return r.facade=s,Fo.set(s,r),r},Xn=function(s){return Fo.get(s)||{}},xl=function(s){return Fo.has(s)}}else{var Cc=yE("state");bE[Cc]=!0,In=function(s,r){if(ay(s,Cc))throw new oy(Q_);return r.facade=s,pi(s,Cc,r),r},Xn=function(s){return ay(s,Cc)?s[Cc]:{}},xl=function(s){return ay(s,Cc)}}var Gu={set:In,get:Xn,has:xl,enforce:function(s){return xl(s)?Xn(s):In(s,{})},getterFor:function(s){return function(r){var u;if(!Vr(r)||(u=Xn(r)).type!==s)throw new oy("Incompatible receiver, "+s+" required");return u}}},_E=ga,wE=je,kE=wi,SE=ki,xE=Ru,tw=pe([].push),Tl=function(s){var r=s===1,u=s===2,o=s===3,c=s===4,f=s===6,m=s===7,S=s===5||f;return function(x,O,I,N){for(var L,z,W=kE(x),X=wE(W),Z=_E(O,I),Q=SE(X),ne=0,he=N||xE,Te=r?he(x,Q):u||m?he(x,0):void 0;Q>ne;ne++)if((S||ne in X)&&(z=Z(L=X[ne],ne,W),s))if(r)Te[ne]=z;else if(z)switch(s){case 3:return!0;case 5:return L;case 6:return ne;case 2:tw(Te,L)}else switch(s){case 4:return!1;case 7:tw(Te,L)}return f?-1:o||c?c:Te}},vn={forEach:Tl(0),map:Tl(1),filter:Tl(2),some:Tl(3),every:Tl(4),find:Tl(5),findIndex:Tl(6)},Sp=Ke,xp=b,Tp=ht,TE=pe,Ec=lt,zu=ci,CE=w,xi=Ge,sy=Pt,Bf=Fi,Cp=sr,ly=os,rw=Si,Hf=En,Wf=Po,Gf=ms,zf=Cs,Uf=Ro,EE=No,iw=Kt,lo=fi,Dc=dn,Uu=Ct,nw=Fr,DE=Wu,uy=Mr,aw=vs,ow=as,OE=hr,sw=Da,Ep=cr,Oc=en,Dp=q,$c=Gu,Pc=vn.forEach,Mn=$o("hidden"),Es="Symbol",jo="prototype",$E=$c.set,mi=$c.getterFor(Es),uo=Object[jo],Ds=xp.Symbol,Vu=Ds&&Ds[jo],hy=xp.RangeError,PE=xp.TypeError,Vf=xp.QObject,Ic=iw.f,Cl=lo.f,lw=Uf.f,uw=Uu.f,hw=TE([].push),Yo=uy("symbols"),Mc=uy("op-symbols"),IE=uy("wks"),Op=!Vf||!Vf[jo]||!Vf[jo].findChild,cy=function(s,r,u){var o=Ic(uo,r);o&&delete uo[r],Cl(s,r,u),o&&s!==uo&&Cl(uo,r,o)},dy=Ec&&CE(function(){return Wf(Cl({},"a",{get:function(){return Cl(this,"a",{value:7}).a}})).a!==7})?cy:Cl,qf=function(s,r){var u=Yo[s]=Wf(Vu);return $E(u,{type:Es,tag:s,description:r}),Ec||(u.description=r),u},$p=function(s,r,u){s===uo&&$p(Mc,r,u),Bf(s);var o=ly(r);return Bf(u),xi(Yo,o)?(u.enumerable?(xi(s,Mn)&&s[Mn][o]&&(s[Mn][o]=!1),u=Wf(u,{enumerable:Hf(0,!1)})):(xi(s,Mn)||Cl(s,Mn,Hf(1,{})),s[Mn][o]=!0),dy(s,o,u)):Cl(s,o,u)},Pp=function(s,r){Bf(s);var u=Cp(r),o=Gf(u).concat(fw(u));return Pc(o,function(c){Ec&&!Tp(fy,u,c)||$p(s,c,u[c])}),s},fy=function(s){var r=ly(s),u=Tp(uw,this,r);return!(this===uo&&xi(Yo,r)&&!xi(Mc,r))&&(!(u||!xi(this,r)||!xi(Yo,r)||xi(this,Mn)&&this[Mn][r])||u)},cw=function(s,r){var u=Cp(s),o=ly(r);if(u!==uo||!xi(Yo,o)||xi(Mc,o)){var c=Ic(u,o);return!c||!xi(Yo,o)||xi(u,Mn)&&u[Mn][o]||(c.enumerable=!0),c}},dw=function(s){var r=lw(Cp(s)),u=[];return Pc(r,function(o){xi(Yo,o)||xi(aw,o)||hw(u,o)}),u},fw=function(s){var r=s===uo,u=lw(r?Mc:Cp(s)),o=[];return Pc(u,function(c){!xi(Yo,c)||r&&!xi(uo,c)||hw(o,Yo[c])}),o};zu||(Ds=function(){if(sy(Vu,this))throw new PE("Symbol is not a constructor");var s=arguments.length&&arguments[0]!==void 0?rw(arguments[0]):void 0,r=ow(s),u=function(o){this===uo&&Tp(u,Mc,o),xi(this,Mn)&&xi(this[Mn],r)&&(this[Mn][r]=!1);var c=Hf(1,o);try{dy(this,r,c)}catch(f){if(!(f instanceof hy))throw f;cy(this,r,c)}};return Ec&&Op&&dy(uo,r,{configurable:!0,set:u}),qf(r,s)},nw(Vu=Ds[jo],"toString",function(){return mi(this).tag}),nw(Ds,"withoutSetter",function(s){return qf(ow(s),s)}),Uu.f=fy,lo.f=$p,Dc.f=Pp,iw.f=cw,zf.f=Uf.f=dw,EE.f=fw,sw.f=function(s){return qf(OE(s),s)},Ec&&DE(Vu,"description",{configurable:!0,get:function(){return mi(this).description}})),Sp({global:!0,wrap:!0,forced:!zu,sham:!zu},{Symbol:Ds}),Pc(Gf(IE),function(s){Ep(s)}),Sp({target:Es,stat:!0,forced:!zu},{useSetter:function(){Op=!0},useSimple:function(){Op=!1}}),Sp({target:"Object",stat:!0,forced:!zu,sham:!Ec},{create:function(s,r){return r===void 0?Wf(s):Pp(Wf(s),r)},defineProperty:$p,defineProperties:Pp,getOwnPropertyDescriptor:cw}),Sp({target:"Object",stat:!0,forced:!zu},{getOwnPropertyNames:dw}),Oc(),Dp(Ds,Es),aw[Mn]=!0;var vw=ci&&!!Symbol.for&&!!Symbol.keyFor,ME=Ke,pw=Pr,Ip=Ge,An=Si,Kf=Mr,Xf=vw,vy=Kf("string-to-symbol-registry"),mw=Kf("symbol-to-string-registry");ME({target:"Symbol",stat:!0,forced:!Xf},{for:function(s){var r=An(s);if(Ip(vy,r))return vy[r];var u=pw("Symbol")(r);return vy[r]=u,mw[u]=r,u}});var ho=Ke,qu=Ge,Zf=is,AE=Et,RE=vw,Mp=Mr("symbol-to-string-registry");ho({target:"Symbol",stat:!0,forced:!RE},{keyFor:function(s){if(!Zf(s))throw new TypeError(AE(s)+" is not a symbol");if(qu(Mp,s))return Mp[s]}});var py=no,Ku=gt,my=_e,NE=Si,gy=pe([].push),Os=Ke,Ac=Pr,gw=oe,yy=ht,Rc=pe,Ap=w,Rp=gt,Jf=is,Np=sl,LE=function(s){if(Ku(s))return s;if(py(s)){for(var r=s.length,u=[],o=0;o<r;o++){var c=s[o];typeof c=="string"?gy(u,c):typeof c!="number"&&my(c)!=="Number"&&my(c)!=="String"||gy(u,NE(c))}var f=u.length,m=!0;return function(S,x){if(m)return m=!1,x;if(py(this))return x;for(var O=0;O<f;O++)if(u[O]===S)return x}}},yw=ci,bw=String,$s=Ac("JSON","stringify"),Qf=Rc(/./.exec),_w=Rc("".charAt),ww=Rc("".charCodeAt),FE=Rc("".replace),jE=Rc(1 .toString),YE=/[\uD800-\uDFFF]/g,kw=/^[\uD800-\uDBFF]$/,by=/^[\uDC00-\uDFFF]$/,Sw=!yw||Ap(function(){var s=Ac("Symbol")("stringify detection");return $s([s])!=="[null]"||$s({a:s})!=="{}"||$s(Object(s))!=="{}"}),Lp=Ap(function(){return $s("\uDF06\uD834")!=='"\\udf06\\ud834"'||$s("\uDEAD")!=='"\\udead"'}),BE=function(s,r){var u=Np(arguments),o=LE(r);if(Rp(o)||s!==void 0&&!Jf(s))return u[1]=function(c,f){if(Rp(o)&&(f=yy(o,this,bw(c),f)),!Jf(f))return f},gw($s,null,u)},HE=function(s,r,u){var o=_w(u,r-1),c=_w(u,r+1);return Qf(kw,s)&&!Qf(by,c)||Qf(by,s)&&!Qf(kw,o)?"\\u"+jE(ww(s,0),16):s};$s&&Os({target:"JSON",stat:!0,forced:Sw||Lp},{stringify:function(s,r,u){var o=Np(arguments),c=gw(Sw?BE:$s,null,o);return Lp&&typeof c=="string"?FE(c,YE,HE):c}});var xw=No,WE=wi;Ke({target:"Object",stat:!0,forced:!ci||w(function(){xw.f(1)})},{getOwnPropertySymbols:function(s){var r=xw.f;return r?r(WE(s)):[]}}),cr("asyncIterator"),cr("hasInstance"),cr("isConcatSpreadable"),cr("iterator"),cr("match"),cr("matchAll"),cr("replace"),cr("search"),cr("species"),cr("split");var GE=en;cr("toPrimitive"),GE();var zE=Pr,UE=q;cr("toStringTag"),UE(zE("Symbol"),"Symbol"),cr("unscopables"),q(b.JSON,"JSON",!0);var El,Tw,Nc,VE=Lt.Symbol,Xu={},_y=lt,Cw=Ge,Ew=Function.prototype,Dw=_y&&Object.getOwnPropertyDescriptor,Ow=Cw(Ew,"name"),qE={PROPER:Ow&&function(){}.name==="something",CONFIGURABLE:Ow&&(!_y||_y&&Dw(Ew,"name").configurable)},wy=!w(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype}),$w=Ge,KE=gt,ev=wi,Pw=wy,ky=$o("IE_PROTO"),Fp=Object,Iw=Fp.prototype,jp=Pw?Fp.getPrototypeOf:function(s){var r=ev(s);if($w(r,ky))return r[ky];var u=r.constructor;return KE(u)&&r instanceof u?u.prototype:r instanceof Fp?Iw:null},XE=w,ZE=gt,Dl=Ft,Yp=Po,Sy=jp,JE=Fr,xy=hr("iterator"),Mw=!1;[].keys&&("next"in(Nc=[].keys())?(Tw=Sy(Sy(Nc)))!==Object.prototype&&(El=Tw):Mw=!0);var QE=!Dl(El)||XE(function(){var s={};return El[xy].call(s)!==s});ZE((El=QE?{}:Yp(El))[xy])||JE(El,xy,function(){return this});var Ty={IteratorPrototype:El,BUGGY_SAFARI_ITERATORS:Mw},Aw=Ty.IteratorPrototype,Rw=Po,Nw=En,eD=q,tD=Xu,rD=function(){return this},iD=pe,nD=di,Lw=gt,aD=String,oD=TypeError,sD=function(s,r,u){try{return iD(nD(Object.getOwnPropertyDescriptor(s,r)[u]))}catch(o){}},lD=Fi,uD=function(s){if(typeof s=="object"||Lw(s))return s;throw new oD("Can't set "+aD(s)+" as a prototype")},hD=Object.setPrototypeOf||("__proto__"in{}?function(){var s,r=!1,u={};try{(s=sD(Object.prototype,"__proto__","set"))(u,[]),r=u instanceof Array}catch(o){}return function(o,c){return lD(o),uD(c),r?s(o,c):o.__proto__=c,o}}():void 0),cD=Ke,dD=ht,fD=qE,vD=function(s,r,u,o){var c=r+" Iterator";return s.prototype=Rw(Aw,{next:Nw(1,u)}),eD(s,c,!1,!0),tD[c]=rD,s},pD=jp,mD=q,Fw=Fr,jw=Xu,gD=Ty,yD=fD.PROPER,Bp=gD.BUGGY_SAFARI_ITERATORS,Cy=hr("iterator"),Yw="keys",Hp="values",Bw="entries",bD=function(){return this},Ol=function(s,r,u,o,c,f,m){vD(u,r,o);var S,x,O,I=function(Q){if(Q===c&&X)return X;if(!Bp&&Q&&Q in z)return z[Q];switch(Q){case Yw:case Hp:case Bw:return function(){return new u(this,Q)}}return function(){return new u(this)}},N=r+" Iterator",L=!1,z=s.prototype,W=z[Cy]||z["@@iterator"]||c&&z[c],X=!Bp&&W||I(c),Z=r==="Array"&&z.entries||W;if(Z&&(S=pD(Z.call(new s)))!==Object.prototype&&S.next&&(mD(S,N,!0,!0),jw[N]=bD),yD&&c===Hp&&W&&W.name!==Hp&&(L=!0,X=function(){return dD(W,this)}),c)if(x={values:I(Hp),keys:f?X:I(Yw),entries:I(Bw)},m)for(O in x)(Bp||L||!(O in z))&&Fw(z,O,x[O]);else cD({target:r,proto:!0,forced:Bp||L},x);return m&&z[Cy]!==X&&Fw(z,Cy,X,{}),jw[r]=X,x},tv=function(s,r){return{value:s,done:r}},_D=sr,Ey=Xu,Hw=Gu;fi.f;var Ww=Ol,Wp=tv,Gw="Array Iterator",wD=Hw.set,zw=Hw.getterFor(Gw);Ww(Array,"Array",function(s,r){wD(this,{type:Gw,target:_D(s),index:0,kind:r})},function(){var s=zw(this),r=s.target,u=s.kind,o=s.index++;if(!r||o>=r.length)return s.target=void 0,Wp(void 0,!0);switch(u){case"keys":return Wp(o,!1);case"values":return Wp(r[o],!1)}return Wp([o,r[o]],!1)},"values"),Ey.Arguments=Ey.Array;var kD={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},SD=b,xD=cn,TD=$n,Uw=Xu,Dy=hr("toStringTag");for(var rv in kD){var Vw=SD[rv],Lc=Vw&&Vw.prototype;Lc&&xD(Lc)!==Dy&&TD(Lc,Dy,rv),Uw[rv]=Uw.Array}var qw=VE,CD=hr,ED=fi.f,Kw=CD("metadata"),Oy=Function.prototype;Oy[Kw]===void 0&&ED(Oy,Kw,{value:null}),cr("asyncDispose"),cr("dispose"),cr("metadata");var DD=qw,OD=pe,iv=Pr("Symbol"),Xw=iv.keyFor,Ps=OD(iv.prototype.valueOf),Gp=iv.isRegisteredSymbol||function(s){try{return Xw(Ps(s))!==void 0}catch(r){return!1}};Ke({target:"Symbol",stat:!0},{isRegisteredSymbol:Gp});for(var $y=Mr,Zw=Pr,Jw=pe,$D=is,PD=hr,zp=Zw("Symbol"),Qw=zp.isWellKnownSymbol,ek=Zw("Object","getOwnPropertyNames"),ID=Jw(zp.prototype.valueOf),tk=$y("wks"),Py=0,rk=ek(zp),MD=rk.length;Py<MD;Py++)try{var ik=rk[Py];$D(zp[ik])&&PD(ik)}catch(s){}var nk=function(s){if(Qw&&Qw(s))return!0;try{for(var r=ID(s),u=0,o=ek(tk),c=o.length;u<c;u++)if(tk[o[u]]==r)return!0}catch(f){}return!1};Ke({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:nk}),cr("matcher"),cr("observable"),Ke({target:"Symbol",stat:!0},{isRegistered:Gp}),Ke({target:"Symbol",stat:!0,forced:!0},{isWellKnown:nk}),cr("metadataKey"),cr("patternMatch"),cr("replaceAll");var Fc=p(DD),Iy=pe,AD=io,RD=Si,ND=Bt,ak=Iy("".charAt),ok=Iy("".charCodeAt),LD=Iy("".slice),FD=function(s){return function(r,u){var o,c,f=RD(ND(r)),m=AD(u),S=f.length;return m<0||m>=S?s?"":void 0:(o=ok(f,m))<55296||o>56319||m+1===S||(c=ok(f,m+1))<56320||c>57343?s?ak(f,m):o:s?LD(f,m,m+2):c-56320+(o-55296<<10)+65536}},jD={charAt:FD(!0)}.charAt,YD=Si,sk=Gu,lk=Ol,uk=tv,My="String Iterator",BD=sk.set,HD=sk.getterFor(My);lk(String,"String",function(s){BD(this,{type:My,string:YD(s),index:0})},function(){var s,r=HD(this),u=r.string,o=r.index;return o>=u.length?uk(void 0,!0):(s=jD(u,o),r.index+=s.length,uk(s,!1))});var Up=p(Da.f("iterator"));function ft(s){return ft=typeof Fc=="function"&&typeof Up=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Fc=="function"&&r.constructor===Fc&&r!==Fc.prototype?"symbol":typeof r},ft(s)}var hk=p(Da.f("toPrimitive"));function nv(s){var r=function(u,o){if(ft(u)!=="object"||u===null)return u;var c=u[hk];if(c!==void 0){var f=c.call(u,o);if(ft(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(u)}(s,"string");return ft(r)==="symbol"?r:String(r)}function Ay(s,r){for(var u=0;u<r.length;u++){var o=r[u];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),xs(s,nv(o.key),o)}}function Jt(s,r,u){return r&&Ay(s.prototype,r),u&&Ay(s,u),xs(s,"prototype",{writable:!1}),s}function Ti(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}Ke({target:"Object",stat:!0,sham:!lt},{create:Po});var Ry=Lt.Object,ck=function(s,r){return Ry.create(s,r)},dk=p(ck);Ke({target:"Object",stat:!0},{setPrototypeOf:hD});var Vp=p(Lt.Object.setPrototypeOf),fk=ec;Ke({target:"Function",proto:!0,forced:Function.bind!==fk},{bind:fk});var qp=Lt,qr=function(s){return qp[s+"Prototype"]},WD=qr("Function").bind,GD=Pt,zD=WD,Ny=Function.prototype,UD=function(s){var r=s.bind;return s===Ny||GD(Ny,s)&&r===Ny.bind?zD:r},vk=UD,pk=p(vk);function Kp(s,r){var u;return Kp=Vp?pk(u=Vp).call(u):function(o,c){return o.__proto__=c,o},Kp(s,r)}function Zn(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=dk(r&&r.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),xs(s,"prototype",{writable:!1}),r&&Kp(s,r)}function Rn(s,r){if(r&&(ft(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ti(s)}var Ly=wi,Fy=jp,jy=wy;Ke({target:"Object",stat:!0,forced:w(function(){Fy(1)}),sham:!jy},{getPrototypeOf:function(s){return Fy(Ly(s))}});var mk=Lt.Object.getPrototypeOf,Yy=p(mk);function Qt(s){var r;return Qt=Vp?pk(r=Yy).call(r):function(u){return u.__proto__||Yy(u)},Qt(s)}Ke({target:"Array",stat:!0},{isArray:no});var gk=Lt.Array.isArray,xt=p(gk),de=p(vk),VD=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",qD=TypeError,yk=b,KD=oe,XD=gt,ZD=VD,JD=Ve,By=sl,QD=function(s,r){if(s<r)throw new qD("Not enough arguments");return s},eO=yk.Function,bk=/MSIE .\./.test(JD)||ZD&&function(){var s=yk.Bun.version.split(".");return s.length<3||s[0]==="0"&&(s[1]<3||s[1]==="3"&&s[2]==="0")}(),_k=function(s,r){var u=2;return bk?function(o,c){var f=QD(arguments.length,1)>u,m=XD(o)?o:eO(o),S=f?By(arguments,u):[],x=f?function(){KD(m,this,S)}:m;return s(x,c)}:s},tO=Ke,wk=b,Hy=_k(wk.setInterval);tO({global:!0,bind:!0,forced:wk.setInterval!==Hy},{setInterval:Hy});var rO=Ke,kk=b,Sk=_k(kk.setTimeout);rO({global:!0,bind:!0,forced:kk.setTimeout!==Sk},{setTimeout:Sk});var Ci=p(Lt.setTimeout),xk=w,Zu=function(s,r){var u=[][s];return!!u&&xk(function(){u.call(null,r||function(){return 1},1)})},iO=vn.forEach,Wy=Zu("forEach")?[].forEach:function(s){return iO(this,s,arguments.length>1?arguments[1]:void 0)};Ke({target:"Array",proto:!0,forced:[].forEach!==Wy},{forEach:Wy});var Gy=qr("Array").forEach,Tk=cn,nO=Ge,Ck=Pt,Ek=Gy,zy=Array.prototype,aO={DOMTokenList:!0,NodeList:!0},oO=function(s){var r=s.forEach;return s===zy||Ck(zy,s)&&r===zy.forEach||nO(aO,Tk(s))?Ek:r},Ae=p(oO),Nn=p(typeof window!="undefined"&&window.moment||n),Dk=p(Lt.Object.getOwnPropertySymbols),sO=vn.filter;Ke({target:"Array",proto:!0,forced:!ao("filter")},{filter:function(s){return sO(this,s,arguments.length>1?arguments[1]:void 0)}});var lO=qr("Array").filter,uO=Pt,hO=lO,Uy=Array.prototype,cO=function(s){var r=s.filter;return s===Uy||uO(Uy,s)&&r===Uy.filter?hO:r},Mt=p(cO),Xp={exports:{}},jc=Ke,Vy=w,dO=sr,Ok=Kt.f,$k=lt;jc({target:"Object",stat:!0,forced:!$k||Vy(function(){Ok(1)}),sham:!$k},{getOwnPropertyDescriptor:function(s,r){return Ok(dO(s),r)}});var Pk=Lt.Object,Ik=Xp.exports=function(s,r){return Pk.getOwnPropertyDescriptor(s,r)};Pk.getOwnPropertyDescriptor.sham&&(Ik.sham=!0);var Mk=p(Xp.exports),fO=Pr,vO=Cs,pO=No,mO=Fi,Ak=pe([].concat),Rk=fO("Reflect","ownKeys")||function(s){var r=vO.f(mO(s)),u=pO.f;return u?Ak(r,u(s)):r},Nk=Rk,Lk=sr,gO=Kt,yO=Mo;Ke({target:"Object",stat:!0,sham:!lt},{getOwnPropertyDescriptors:function(s){for(var r,u,o=Lk(s),c=gO.f,f=Nk(o),m={},S=0;f.length>S;)(u=c(o,r=f[S++]))!==void 0&&yO(m,r,u);return m}});var Fk=p(Lt.Object.getOwnPropertyDescriptors),jk={exports:{}},bO=Ke,Yk=lt,Bk=dn.f;bO({target:"Object",stat:!0,forced:Object.defineProperties!==Bk,sham:!Yk},{defineProperties:Bk});var Hk=Lt.Object,_O=jk.exports=function(s,r){return Hk.defineProperties(s,r)};Hk.defineProperties.sham&&(_O.sham=!0);var wO=p(jk.exports),Wk=vn.map;Ke({target:"Array",proto:!0,forced:!ao("map")},{map:function(s){return Wk(this,s,arguments.length>1?arguments[1]:void 0)}});var kO=qr("Array").map,Yc=Pt,SO=kO,qy=Array.prototype,xO=function(s){var r=s.map;return s===qy||Yc(qy,s)&&r===qy.map?SO:r},Ei=p(xO),TO=di,CO=wi,EO=je,DO=ki,OO=TypeError,$O=function(s){return function(r,u,o,c){TO(u);var f=CO(r),m=EO(f),S=DO(f),x=s?S-1:0,O=s?-1:1;if(o<2)for(;;){if(x in m){c=m[x],x+=O;break}if(x+=O,s?x<0:S<=x)throw new OO("Reduce of empty array with no initial value")}for(;s?x>=0:S>x;x+=O)x in m&&(c=u(c,m[x],x,f));return c}},PO={left:$O(!1)},Gk=_e(b.process)==="process",zk=PO.left;Ke({target:"Array",proto:!0,forced:!Gk&&yi>79&&yi<83||!Zu("reduce")},{reduce:function(s){var r=arguments.length;return zk(this,s,r,r>1?arguments[1]:void 0)}});var Ju=qr("Array").reduce,Oa=Pt,Uk=Ju,Ky=Array.prototype,IO=function(s){var r=s.reduce;return s===Ky||Oa(Ky,s)&&r===Ky.reduce?Uk:r},Vk=p(IO),qk=wi,Kk=ms;Ke({target:"Object",stat:!0,forced:w(function(){Kk(1)})},{keys:function(s){return Kk(qk(s))}});var Di=p(Lt.Object.keys),Xk=p(Ca),MO=ht,Zp=Fi,AO=Dt,Xy=function(s,r,u){var o,c;Zp(s);try{if(!(o=AO(s,"return"))){if(r==="throw")throw u;return u}o=MO(o,s)}catch(f){c=!0,o=f}if(r==="throw")throw u;if(c)throw o;return Zp(o),u},RO=Fi,Zk=Xy,NO=Xu,LO=hr("iterator"),tn=Array.prototype,Jk=function(s){return s!==void 0&&(NO.Array===s||tn[LO]===s)},FO=cn,Qk=Dt,jO=Qe,Zy=Xu,YO=hr("iterator"),Jp=function(s){if(!jO(s))return Qk(s,YO)||Qk(s,"@@iterator")||Zy[FO(s)]},e1=ht,BO=di,Qu=Fi,HO=Et,WO=Jp,GO=TypeError,t1=function(s,r){var u=arguments.length<2?WO(s):r;if(BO(u))return Qu(e1(u,s));throw new GO(HO(s)+" is not iterable")},zO=ga,UO=ht,VO=wi,qO=function(s,r,u,o){try{return o?r(RO(u)[0],u[1]):r(u)}catch(c){Zk(s,"throw",c)}},Qp=Jk,KO=cl,XO=ki,Bc=Mo,ZO=t1,JO=Jp,r1=Array,Jy=hr("iterator"),i1=!1;try{var QO=0,n1={next:function(){return{done:!!QO++}},return:function(){i1=!0}};n1[Jy]=function(){return this},Array.from(n1,function(){throw 2})}catch(s){}var e$=function(s){var r=VO(s),u=KO(this),o=arguments.length,c=o>1?arguments[1]:void 0,f=c!==void 0;f&&(c=zO(c,o>2?arguments[2]:void 0));var m,S,x,O,I,N,L=JO(r),z=0;if(!L||this===r1&&Qp(L))for(m=XO(r),S=u?new this(m):r1(m);m>z;z++)N=f?c(r[z],z):r[z],Bc(S,z,N);else for(I=(O=ZO(r,L)).next,S=u?new this:[];!(x=UO(I,O)).done;z++)N=f?qO(O,c,[x.value,z],!0):x.value,Bc(S,z,N);return S.length=z,S},t$=function(s,r){try{if(!r&&!i1)return!1}catch(c){return!1}var u=!1;try{var o={};o[Jy]=function(){return{next:function(){return{done:u=!0}}}},s(o)}catch(c){}return u};Ke({target:"Array",stat:!0,forced:!t$(function(s){Array.from(s)})},{from:e$});var a1=Lt.Array.from,eh=p(a1),em=Jp,o1=p(em),th=p(em),s1=p(gk),r$=lt,l1=no,i$=TypeError,n$=Object.getOwnPropertyDescriptor,u1=r$&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}()?function(s,r){if(l1(s)&&!n$(s,"length").writable)throw new i$("Cannot set read only .length");return s.length=r}:function(s,r){return s.length=r},a$=wi,o$=ki,s$=u1,l$=Mu;Ke({target:"Array",proto:!0,forced:w(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(s){return s instanceof TypeError}}()},{push:function(s){var r=a$(this),u=o$(r),o=arguments.length;l$(u+o);for(var c=0;c<o;c++)r[u]=arguments[c],u++;return s$(r,u),u}});var u$=qr("Array").push,Qy=Pt,h$=u$,e0=Array.prototype,c$=function(s){var r=s.push;return s===e0||Qy(e0,s)&&r===e0.push?h$:r},d$=p(c$),Oi=Ke,h1=no,f$=cl,v$=Ft,c1=zr,p$=ki,m$=sr,g$=Mo,y$=hr,t0=sl,b$=ao("slice"),_$=y$("species"),r0=Array,w$=Math.max;Oi({target:"Array",proto:!0,forced:!b$},{slice:function(s,r){var u,o,c,f=m$(this),m=p$(f),S=c1(s,m),x=c1(r===void 0?m:r,m);if(h1(f)&&(u=f.constructor,(f$(u)&&(u===r0||h1(u.prototype))||v$(u)&&(u=u[_$])===null)&&(u=void 0),u===r0||u===void 0))return t0(f,S,x);for(o=new(u===void 0?r0:u)(w$(x-S,0)),c=0;S<x;S++,c++)S in f&&g$(o,c,f[S]);return o.length=c,o}});var Jn=qr("Array").slice,k$=Pt,S$=Jn,i0=Array.prototype,x$=function(s){var r=s.slice;return s===i0||k$(i0,s)&&r===i0.slice?S$:r},n0=x$,T$=p(n0),d1=p(a1);function a0(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}function f1(s,r){var u;if(s){if(typeof s=="string")return a0(s,r);var o=T$(u=Object.prototype.toString.call(s)).call(u,8,-1);return o==="Object"&&s.constructor&&(o=s.constructor.name),o==="Map"||o==="Set"?d1(s):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a0(s,r):void 0}}function v1(s,r){return function(u){if(s1(u))return u}(s)||function(u,o){var c=u==null?null:Fc!==void 0&&o1(u)||u["@@iterator"];if(c!=null){var f,m,S,x,O=[],I=!0,N=!1;try{if(S=(c=c.call(u)).next,o===0){if(Object(c)!==c)return;I=!1}else for(;!(I=(f=S.call(c)).done)&&(d$(O).call(O,f.value),O.length!==o);I=!0);}catch(L){N=!0,m=L}finally{try{if(!I&&c.return!=null&&(x=c.return(),Object(x)!==x))return}finally{if(N)throw m}}return O}}(s,r)||f1(s,r)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function co(s){return function(r){if(s1(r))return a0(r)}(s)||function(r){if(Fc!==void 0&&o1(r)!=null||r["@@iterator"]!=null)return d1(r)}(s)||f1(s)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var $l=p(qw),C$=qr("Array").concat,E$=Pt,D$=C$,o0=Array.prototype,s0=function(s){var r=s.concat;return s===o0||E$(o0,s)&&r===o0.concat?D$:r},xr=p(s0),pn=p(n0);Ke({target:"Reflect",stat:!0},{ownKeys:Rk});var O$=p(Lt.Reflect.ownKeys),$$=Ke,p1=Date,P$=pe(p1.prototype.getTime);$$({target:"Date",stat:!0},{now:function(){return P$(new p1)}});var Qn=p(Lt.Date.now),I$=Ke,M$=no,m1=pe([].reverse),g1=[1,2];I$({target:"Array",proto:!0,forced:String(g1)===String(g1.reverse())},{reverse:function(){return M$(this)&&(this.length=this.length),m1(this)}});var y1=qr("Array").reverse,A$=Pt,R$=y1,l0=Array.prototype,N$=function(s){var r=s.reverse;return s===l0||A$(l0,s)&&r===l0.reverse?R$:r},L$=p(N$),b1=Et,F$=TypeError,u0=function(s,r){if(!delete s[r])throw new F$("Cannot delete property "+b1(r)+" of "+b1(s))},j$=Ke,_1=wi,Y$=zr,B$=io,H$=ki,W$=u1,tm=Mu,G$=Ru,z$=Mo,h0=u0,U$=ao("splice"),V$=Math.max,q$=Math.min;j$({target:"Array",proto:!0,forced:!U$},{splice:function(s,r){var u,o,c,f,m,S,x=_1(this),O=H$(x),I=Y$(s,O),N=arguments.length;for(N===0?u=o=0:N===1?(u=0,o=O-I):(u=N-2,o=q$(V$(B$(r),0),O-I)),tm(O+u-o),c=G$(x,o),f=0;f<o;f++)(m=I+f)in x&&z$(c,f,x[m]);if(c.length=o,u<o){for(f=I;f<O-o;f++)S=f+u,(m=f+o)in x?x[S]=x[m]:h0(x,S);for(f=O;f>O-o+u;f--)h0(x,f-1)}else if(u>o)for(f=O-o;f>I;f--)S=f+u-1,(m=f+o-1)in x?x[S]=x[m]:h0(x,S);for(f=0;f<u;f++)x[f+I]=arguments[f+2];return W$(x,O-o+u),c}});var c0=qr("Array").splice,K$=Pt,X$=c0,d0=Array.prototype,Z$=function(s){var r=s.splice;return s===d0||K$(d0,s)&&r===d0.splice?X$:r},Ln=p(Z$),w1=lt,J$=pe,k1=ht,Q$=w,f0=ms,S1=No,eP=Ct,tP=wi,x1=je,rh=Object.assign,T1=Object.defineProperty,C1=J$([].concat),E1=!rh||Q$(function(){if(w1&&rh({b:1},rh(T1({},"a",{enumerable:!0,get:function(){T1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var s={},r={},u=Symbol("assign detection"),o="abcdefghijklmnopqrst";return s[u]=7,o.split("").forEach(function(c){r[c]=c}),rh({},s)[u]!==7||f0(rh({},r)).join("")!==o})?function(s,r){for(var u=tP(s),o=arguments.length,c=1,f=S1.f,m=eP.f;o>c;)for(var S,x=x1(arguments[c++]),O=f?C1(f0(x),f(x)):f0(x),I=O.length,N=0;I>N;)S=O[N++],w1&&!k1(m,x,S)||(u[S]=x[S]);return u}:rh,D1=E1;Ke({target:"Object",stat:!0,forced:Object.assign!==D1},{assign:D1});var ih=p(Lt.Object.assign),rP=Sa.includes;Ke({target:"Array",proto:!0,forced:w(function(){return!Array(1).includes()})},{includes:function(s){return rP(this,s,arguments.length>1?arguments[1]:void 0)}});var iP=qr("Array").includes,nP=Ft,aP=_e,oP=hr("match"),O1=function(s){var r;return nP(s)&&((r=s[oP])!==void 0?!!r:aP(s)==="RegExp")},sP=TypeError,rm=hr("match"),lP=Ke,uP=function(s){if(O1(s))throw new sP("The method doesn't accept regular expressions");return s},hP=Bt,$1=Si,cP=function(s){var r=/./;try{"/./"[s](r)}catch(u){try{return r[rm]=!1,"/./"[s](r)}catch(o){}}return!1},dP=pe("".indexOf);lP({target:"String",proto:!0,forced:!cP("includes")},{includes:function(s){return!!~dP($1(hP(this)),$1(uP(s)),arguments.length>1?arguments[1]:void 0)}});var fP=qr("String").includes,P1=Pt,I1=iP,M1=fP,v0=Array.prototype,Hc=String.prototype,vP=function(s){var r=s.includes;return s===v0||P1(v0,s)&&r===v0.includes?I1:typeof s=="string"||s===Hc||P1(Hc,s)&&r===Hc.includes?M1:r},Wc=p(vP),A1=p(mk),R1=lt,pP=w,p0=pe,mP=jp,gP=ms,yP=sr,N1=p0(Ct.f),bP=p0([].push),L1=R1&&pP(function(){var s=Object.create(null);return s[2]=2,!N1(s,2)}),F1=function(s){return function(r){for(var u,o=yP(r),c=gP(o),f=L1&&mP(o)===null,m=c.length,S=0,x=[];m>S;)u=c[S++],R1&&!(f?u in o:N1(o,u))||bP(x,s?[u,o[u]]:o[u]);return x}},j1={entries:F1(!0),values:F1(!1)},_P=j1.values;Ke({target:"Object",stat:!0},{values:function(s){return _P(s)}});var m0=p(Lt.Object.values),g0=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,wP=Bt,Y1=Si,y0=g0,B1=pe("".replace),kP=RegExp("^["+y0+"]+"),SP=RegExp("(^|[^"+y0+"])["+y0+"]+$"),xP=function(s){return function(r){var u=Y1(wP(r));return 1&s&&(u=B1(u,kP,"")),2&s&&(u=B1(u,SP,"$1")),u}},H1={trim:xP(3)},W1=b,TP=w,CP=pe,EP=Si,DP=H1.trim,G1=g0,av=W1.parseInt,im=W1.Symbol,z1=im&&im.iterator,U1=/^[+-]?0x/i,OP=CP(U1.exec),V1=av(G1+"08")!==8||av(G1+"0x16")!==22||z1&&!TP(function(){av(Object(z1))})?function(s,r){var u=DP(EP(s));return av(u,r>>>0||(OP(U1,u)?16:10))}:av;Ke({global:!0,forced:parseInt!==V1},{parseInt:V1});var ea=p(Lt.parseInt),$P=Ke,PP=Sa.indexOf,q1=Zu,b0=qe([].indexOf),K1=!!b0&&1/b0([1],1,-0)<0;$P({target:"Array",proto:!0,forced:K1||!q1("indexOf")},{indexOf:function(s){var r=arguments.length>1?arguments[1]:void 0;return K1?b0(this,s,r)||0:PP(this,s,r)}});var IP=qr("Array").indexOf,X1=Pt,MP=IP,_0=Array.prototype,Z1=function(s){var r=s.indexOf;return s===_0||X1(_0,s)&&r===_0.indexOf?MP:r},er=p(Z1),AP=j1.entries;Ke({target:"Object",stat:!0},{entries:function(s){return AP(s)}});var RP=p(Lt.Object.entries),nm=p(ck),w0=Lt,NP=oe;w0.JSON||(w0.JSON={stringify:JSON.stringify});var LP=function(s,r,u){return NP(w0.JSON.stringify,null,arguments)},ta=p(LP),k0=wi,J1=zr,FP=ki,jP=function(s){for(var r=k0(this),u=FP(r),o=arguments.length,c=J1(o>1?arguments[1]:void 0,u),f=o>2?arguments[2]:void 0,m=f===void 0?u:J1(f,u);m>c;)r[c++]=s;return r};Ke({target:"Array",proto:!0},{fill:jP});var YP=qr("Array").fill,BP=Pt,S0=YP,x0=Array.prototype,HP=function(s){var r=s.fill;return s===x0||BP(x0,s)&&r===x0.fill?S0:r},T0=p(HP),Q1={exports:{}};(function(s){function r(u){if(u)return function(o){for(var c in r.prototype)o[c]=r.prototype[c];return o}(u)}s.exports=r,r.prototype.on=r.prototype.addEventListener=function(u,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+u]=this._callbacks["$"+u]||[]).push(o),this},r.prototype.once=function(u,o){function c(){this.off(u,c),o.apply(this,arguments)}return c.fn=o,this.on(u,c),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(u,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c,f=this._callbacks["$"+u];if(!f)return this;if(arguments.length==1)return delete this._callbacks["$"+u],this;for(var m=0;m<f.length;m++)if((c=f[m])===o||c.fn===o){f.splice(m,1);break}return f.length===0&&delete this._callbacks["$"+u],this},r.prototype.emit=function(u){this._callbacks=this._callbacks||{};for(var o=new Array(arguments.length-1),c=this._callbacks["$"+u],f=1;f<arguments.length;f++)o[f-1]=arguments[f];if(c){f=0;for(var m=(c=c.slice(0)).length;f<m;++f)c[f].apply(this,o)}return this},r.prototype.listeners=function(u){return this._callbacks=this._callbacks||{},this._callbacks["$"+u]||[]},r.prototype.hasListeners=function(u){return!!this.listeners(u).length}})(Q1);var eS,C0=p(Q1.exports);function fo(){return fo=Object.assign||function(s){for(var r=1;r<arguments.length;r++){var u=arguments[r];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(s[o]=u[o])}return s},fo.apply(this,arguments)}function ra(s,r){s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.__proto__=r}function am(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}eS=typeof Object.assign!="function"?function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(s),u=1;u<arguments.length;u++){var o=arguments[u];if(o!=null)for(var c in o)o.hasOwnProperty(c)&&(r[c]=o[c])}return r}:Object.assign;var Pl,nh=eS,tS=["","webkit","Moz","MS","ms","o"],WP=typeof document=="undefined"?{style:{}}:document.createElement("div"),Gc=Math.round,Il=Math.abs,ov=Date.now;function sv(s,r){for(var u,o,c=r[0].toUpperCase()+r.slice(1),f=0;f<tS.length;){if((o=(u=tS[f])?u+c:r)in s)return o;f++}}Pl=typeof window=="undefined"?{}:window;var rS=sv(WP.style,"touchAction"),mn=rS!==void 0,iS="compute",nS="auto",E0="manipulation",Kr="none",lv="pan-x",Is="pan-y",om=function(){if(!mn)return!1;var s={},r=Pl.CSS&&Pl.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(u){return s[u]=!r||Pl.CSS.supports("touch-action",u)}),s}(),aS="ontouchstart"in Pl,GP=sv(Pl,"PointerEvent")!==void 0,zP=aS&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ah="touch",D0="mouse",UP=25,gn=1,ai=4,Gi=8,sm=1,Ms=2,uv=4,hv=8,zc=16,Bo=Ms|uv,oh=hv|zc,oS=Bo|oh,lm=["x","y"],um=["clientX","clientY"];function As(s,r,u){var o;if(s)if(s.forEach)s.forEach(r,u);else if(s.length!==void 0)for(o=0;o<s.length;)r.call(u,s[o],o,s),o++;else for(o in s)s.hasOwnProperty(o)&&r.call(u,s[o],o,s)}function hm(s,r){return typeof s=="function"?s.apply(r&&r[0]||void 0,r):s}function sh(s,r){return s.indexOf(r)>-1}var sS=function(){function s(u,o){this.manager=u,this.set(o)}var r=s.prototype;return r.set=function(u){u===iS&&(u=this.compute()),mn&&this.manager.element.style&&om[u]&&(this.manager.element.style[rS]=u),this.actions=u.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var u=[];return As(this.manager.recognizers,function(o){hm(o.options.enable,[o])&&(u=u.concat(o.getTouchAction()))}),function(o){if(sh(o,Kr))return Kr;var c=sh(o,lv),f=sh(o,Is);return c&&f?Kr:c||f?c?lv:Is:sh(o,E0)?E0:nS}(u.join(" "))},r.preventDefaults=function(u){var o=u.srcEvent,c=u.offsetDirection;if(this.manager.session.prevented)o.preventDefault();else{var f=this.actions,m=sh(f,Kr)&&!om[Kr],S=sh(f,Is)&&!om[Is],x=sh(f,lv)&&!om[lv];if(m){var O=u.pointers.length===1,I=u.distance<2,N=u.deltaTime<250;if(O&&I&&N)return}if(!x||!S)return m||S&&c&Bo||x&&c&oh?this.preventSrc(o):void 0}},r.preventSrc=function(u){this.manager.session.prevented=!0,u.preventDefault()},s}();function O0(s,r){for(;s;){if(s===r)return!0;s=s.parentNode}return!1}function lS(s){var r=s.length;if(r===1)return{x:Gc(s[0].clientX),y:Gc(s[0].clientY)};for(var u=0,o=0,c=0;c<r;)u+=s[c].clientX,o+=s[c].clientY,c++;return{x:Gc(u/r),y:Gc(o/r)}}function $0(s){for(var r=[],u=0;u<s.pointers.length;)r[u]={clientX:Gc(s.pointers[u].clientX),clientY:Gc(s.pointers[u].clientY)},u++;return{timeStamp:ov(),pointers:r,center:lS(r),deltaX:s.deltaX,deltaY:s.deltaY}}function cm(s,r,u){u||(u=lm);var o=r[u[0]]-s[u[0]],c=r[u[1]]-s[u[1]];return Math.sqrt(o*o+c*c)}function zi(s,r,u){u||(u=lm);var o=r[u[0]]-s[u[0]],c=r[u[1]]-s[u[1]];return 180*Math.atan2(c,o)/Math.PI}function uS(s,r){return s===r?sm:Il(s)>=Il(r)?s<0?Ms:uv:r<0?hv:zc}function hS(s,r,u){return{x:r/s||0,y:u/s||0}}function cS(s,r){var u=s.session,o=r.pointers,c=o.length;u.firstInput||(u.firstInput=$0(r)),c>1&&!u.firstMultiple?u.firstMultiple=$0(r):c===1&&(u.firstMultiple=!1);var f=u.firstInput,m=u.firstMultiple,S=m?m.center:f.center,x=r.center=lS(o);r.timeStamp=ov(),r.deltaTime=r.timeStamp-f.timeStamp,r.angle=zi(S,x),r.distance=cm(S,x),function(X,Z){var Q=Z.center,ne=X.offsetDelta||{},he=X.prevDelta||{},Te=X.prevInput||{};Z.eventType!==gn&&Te.eventType!==ai||(he=X.prevDelta={x:Te.deltaX||0,y:Te.deltaY||0},ne=X.offsetDelta={x:Q.x,y:Q.y}),Z.deltaX=he.x+(Q.x-ne.x),Z.deltaY=he.y+(Q.y-ne.y)}(u,r),r.offsetDirection=uS(r.deltaX,r.deltaY);var O,I,N=hS(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=N.x,r.overallVelocityY=N.y,r.overallVelocity=Il(N.x)>Il(N.y)?N.x:N.y,r.scale=m?(O=m.pointers,cm((I=o)[0],I[1],um)/cm(O[0],O[1],um)):1,r.rotation=m?function(X,Z){return zi(Z[1],Z[0],um)+zi(X[1],X[0],um)}(m.pointers,o):0,r.maxPointers=u.prevInput?r.pointers.length>u.prevInput.maxPointers?r.pointers.length:u.prevInput.maxPointers:r.pointers.length,function(X,Z){var Q,ne,he,Te,Re=X.lastInterval||Z,xe=Z.timeStamp-Re.timeStamp;if(Z.eventType!==Gi&&(xe>UP||Re.velocity===void 0)){var De=Z.deltaX-Re.deltaX,fe=Z.deltaY-Re.deltaY,We=hS(xe,De,fe);ne=We.x,he=We.y,Q=Il(We.x)>Il(We.y)?We.x:We.y,Te=uS(De,fe),X.lastInterval=Z}else Q=Re.velocity,ne=Re.velocityX,he=Re.velocityY,Te=Re.direction;Z.velocity=Q,Z.velocityX=ne,Z.velocityY=he,Z.direction=Te}(u,r);var L,z=s.element,W=r.srcEvent;O0(L=W.composedPath?W.composedPath()[0]:W.path?W.path[0]:W.target,z)&&(z=L),r.target=z}function VP(s,r,u){var o=u.pointers.length,c=u.changedPointers.length,f=r&gn&&o-c==0,m=r&(ai|Gi)&&o-c==0;u.isFirst=!!f,u.isFinal=!!m,f&&(s.session={}),u.eventType=r,cS(s,u),s.emit("hammer.input",u),s.recognize(u),s.session.prevInput=u}function cv(s){return s.trim().split(/\s+/g)}function dv(s,r,u){As(cv(r),function(o){s.addEventListener(o,u,!1)})}function fv(s,r,u){As(cv(r),function(o){s.removeEventListener(o,u,!1)})}function dS(s){var r=s.ownerDocument||s;return r.defaultView||r.parentWindow||window}var Uc=function(){function s(u,o){var c=this;this.manager=u,this.callback=o,this.element=u.element,this.target=u.options.inputTarget,this.domHandler=function(f){hm(u.options.enable,[u])&&c.handler(f)},this.init()}var r=s.prototype;return r.handler=function(){},r.init=function(){this.evEl&&dv(this.element,this.evEl,this.domHandler),this.evTarget&&dv(this.target,this.evTarget,this.domHandler),this.evWin&&dv(dS(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&fv(this.element,this.evEl,this.domHandler),this.evTarget&&fv(this.target,this.evTarget,this.domHandler),this.evWin&&fv(dS(this.element),this.evWin,this.domHandler)},s}();function lh(s,r,u){if(s.indexOf&&!u)return s.indexOf(r);for(var o=0;o<s.length;){if(u&&s[o][u]==r||!u&&s[o]===r)return o;o++}return-1}var P0={pointerdown:gn,pointermove:2,pointerup:ai,pointercancel:Gi,pointerout:Gi},qP={2:ah,3:"pen",4:D0,5:"kinect"},fS="pointerdown",vS="pointermove pointerup pointercancel";Pl.MSPointerEvent&&!Pl.PointerEvent&&(fS="MSPointerDown",vS="MSPointerMove MSPointerUp MSPointerCancel");var pS=function(s){function r(){var u,o=r.prototype;return o.evEl=fS,o.evWin=vS,(u=s.apply(this,arguments)||this).store=u.manager.session.pointerEvents=[],u}return ra(r,s),r.prototype.handler=function(u){var o=this.store,c=!1,f=u.type.toLowerCase().replace("ms",""),m=P0[f],S=qP[u.pointerType]||u.pointerType,x=S===ah,O=lh(o,u.pointerId,"pointerId");m&gn&&(u.button===0||x)?O<0&&(o.push(u),O=o.length-1):m&(ai|Gi)&&(c=!0),O<0||(o[O]=u,this.callback(this.manager,m,{pointers:o,changedPointers:[u],pointerType:S,srcEvent:u}),c&&o.splice(O,1))},r}(Uc);function vv(s){return Array.prototype.slice.call(s,0)}function dm(s,r,u){for(var o=[],c=[],f=0;f<s.length;){var m=r?s[f][r]:s[f];lh(c,m)<0&&o.push(s[f]),c[f]=m,f++}return u&&(o=r?o.sort(function(S,x){return S[r]>x[r]}):o.sort()),o}var KP={touchstart:gn,touchmove:2,touchend:ai,touchcancel:Gi},I0=function(s){function r(){var u;return r.prototype.evTarget="touchstart touchmove touchend touchcancel",(u=s.apply(this,arguments)||this).targetIds={},u}return ra(r,s),r.prototype.handler=function(u){var o=KP[u.type],c=XP.call(this,u,o);c&&this.callback(this.manager,o,{pointers:c[0],changedPointers:c[1],pointerType:ah,srcEvent:u})},r}(Uc);function XP(s,r){var u,o,c=vv(s.touches),f=this.targetIds;if(r&(2|gn)&&c.length===1)return f[c[0].identifier]=!0,[c,c];var m=vv(s.changedTouches),S=[],x=this.target;if(o=c.filter(function(O){return O0(O.target,x)}),r===gn)for(u=0;u<o.length;)f[o[u].identifier]=!0,u++;for(u=0;u<m.length;)f[m[u].identifier]&&S.push(m[u]),r&(ai|Gi)&&delete f[m[u].identifier],u++;return S.length?[dm(o.concat(S),"identifier",!0),S]:void 0}var ZP={mousedown:gn,mousemove:2,mouseup:ai},M0=function(s){function r(){var u,o=r.prototype;return o.evEl="mousedown",o.evWin="mousemove mouseup",(u=s.apply(this,arguments)||this).pressed=!1,u}return ra(r,s),r.prototype.handler=function(u){var o=ZP[u.type];o&gn&&u.button===0&&(this.pressed=!0),2&o&&u.which!==1&&(o=ai),this.pressed&&(o&ai&&(this.pressed=!1),this.callback(this.manager,o,{pointers:[u],changedPointers:[u],pointerType:D0,srcEvent:u}))},r}(Uc),JP=2500;function mS(s){var r=s.changedPointers[0];if(r.identifier===this.primaryTouch){var u={x:r.clientX,y:r.clientY},o=this.lastTouches;this.lastTouches.push(u),setTimeout(function(){var c=o.indexOf(u);c>-1&&o.splice(c,1)},JP)}}function QP(s,r){s&gn?(this.primaryTouch=r.changedPointers[0].identifier,mS.call(this,r)):s&(ai|Gi)&&mS.call(this,r)}function A0(s){for(var r=s.srcEvent.clientX,u=s.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var c=this.lastTouches[o],f=Math.abs(r-c.x),m=Math.abs(u-c.y);if(f<=25&&m<=25)return!0}return!1}var gS=function(){return function(s){function r(u,o){var c;return(c=s.call(this,u,o)||this).handler=function(f,m,S){var x=S.pointerType===ah,O=S.pointerType===D0;if(!(O&&S.sourceCapabilities&&S.sourceCapabilities.firesTouchEvents)){if(x)QP.call(am(am(c)),m,S);else if(O&&A0.call(am(am(c)),S))return;c.callback(f,m,S)}},c.touch=new I0(c.manager,c.handler),c.mouse=new M0(c.manager,c.handler),c.primaryTouch=null,c.lastTouches=[],c}return ra(r,s),r.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},r}(Uc)}();function uh(s,r,u){return!!Array.isArray(s)&&(As(s,u[r],u),!0)}var Ml=32,Al=1;function fm(s,r){var u=r.manager;return u?u.get(s):s}function yS(s){return 16&s?"cancel":8&s?"end":4&s?"move":2&s?"start":""}var pv=function(){function s(u){u===void 0&&(u={}),this.options=fo({enable:!0},u),this.id=Al++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var r=s.prototype;return r.set=function(u){return nh(this.options,u),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(u){if(uh(u,"recognizeWith",this))return this;var o=this.simultaneous;return o[(u=fm(u,this)).id]||(o[u.id]=u,u.recognizeWith(this)),this},r.dropRecognizeWith=function(u){return uh(u,"dropRecognizeWith",this)||(u=fm(u,this),delete this.simultaneous[u.id]),this},r.requireFailure=function(u){if(uh(u,"requireFailure",this))return this;var o=this.requireFail;return lh(o,u=fm(u,this))===-1&&(o.push(u),u.requireFailure(this)),this},r.dropRequireFailure=function(u){if(uh(u,"dropRequireFailure",this))return this;u=fm(u,this);var o=lh(this.requireFail,u);return o>-1&&this.requireFail.splice(o,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(u){return!!this.simultaneous[u.id]},r.emit=function(u){var o=this,c=this.state;function f(m){o.manager.emit(m,u)}c<8&&f(o.options.event+yS(c)),f(o.options.event),u.additionalEvent&&f(u.additionalEvent),c>=8&&f(o.options.event+yS(c))},r.tryEmit=function(u){if(this.canEmit())return this.emit(u);this.state=Ml},r.canEmit=function(){for(var u=0;u<this.requireFail.length;){if(!(33&this.requireFail[u].state))return!1;u++}return!0},r.recognize=function(u){var o=nh({},u);if(!hm(this.options.enable,[this,o]))return this.reset(),void(this.state=Ml);56&this.state&&(this.state=1),this.state=this.process(o),30&this.state&&this.tryEmit(o)},r.process=function(u){},r.getTouchAction=function(){},r.reset=function(){},s}(),R0=function(s){function r(o){var c;return o===void 0&&(o={}),(c=s.call(this,fo({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},o))||this).pTime=!1,c.pCenter=!1,c._timer=null,c._input=null,c.count=0,c}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return[E0]},u.process=function(o){var c=this,f=this.options,m=o.pointers.length===f.pointers,S=o.distance<f.threshold,x=o.deltaTime<f.time;if(this.reset(),o.eventType&gn&&this.count===0)return this.failTimeout();if(S&&x&&m){if(o.eventType!==ai)return this.failTimeout();var O=!this.pTime||o.timeStamp-this.pTime<f.interval,I=!this.pCenter||cm(this.pCenter,o.center)<f.posThreshold;if(this.pTime=o.timeStamp,this.pCenter=o.center,I&&O?this.count+=1:this.count=1,this._input=o,this.count%f.taps===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){c.state=8,c.tryEmit()},f.interval),2):8}return Ml},u.failTimeout=function(){var o=this;return this._timer=setTimeout(function(){o.state=Ml},this.options.interval),Ml},u.reset=function(){clearTimeout(this._timer)},u.emit=function(){this.state===8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(pv),hh=function(s){function r(o){return o===void 0&&(o={}),s.call(this,fo({pointers:1},o))||this}ra(r,s);var u=r.prototype;return u.attrTest=function(o){var c=this.options.pointers;return c===0||o.pointers.length===c},u.process=function(o){var c=this.state,f=o.eventType,m=6&c,S=this.attrTest(o);return m&&(f&Gi||!S)?16|c:m||S?f&ai?8|c:2&c?4|c:2:Ml},r}(pv);function bS(s){return s===zc?"down":s===hv?"up":s===Ms?"left":s===uv?"right":""}var N0=function(s){function r(o){var c;return o===void 0&&(o={}),(c=s.call(this,fo({event:"pan",threshold:10,pointers:1,direction:oS},o))||this).pX=null,c.pY=null,c}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){var o=this.options.direction,c=[];return o&Bo&&c.push(Is),o&oh&&c.push(lv),c},u.directionTest=function(o){var c=this.options,f=!0,m=o.distance,S=o.direction,x=o.deltaX,O=o.deltaY;return S&c.direction||(c.direction&Bo?(S=x===0?sm:x<0?Ms:uv,f=x!==this.pX,m=Math.abs(o.deltaX)):(S=O===0?sm:O<0?hv:zc,f=O!==this.pY,m=Math.abs(o.deltaY))),o.direction=S,f&&m>c.threshold&&S&c.direction},u.attrTest=function(o){return hh.prototype.attrTest.call(this,o)&&(2&this.state||!(2&this.state)&&this.directionTest(o))},u.emit=function(o){this.pX=o.deltaX,this.pY=o.deltaY;var c=bS(o.direction);c&&(o.additionalEvent=this.options.event+c),s.prototype.emit.call(this,o)},r}(hh),_S=function(s){function r(o){return o===void 0&&(o={}),s.call(this,fo({event:"swipe",threshold:10,velocity:.3,direction:Bo|oh,pointers:1},o))||this}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return N0.prototype.getTouchAction.call(this)},u.attrTest=function(o){var c,f=this.options.direction;return f&(Bo|oh)?c=o.overallVelocity:f&Bo?c=o.overallVelocityX:f&oh&&(c=o.overallVelocityY),s.prototype.attrTest.call(this,o)&&f&o.offsetDirection&&o.distance>this.options.threshold&&o.maxPointers===this.options.pointers&&Il(c)>this.options.velocity&&o.eventType&ai},u.emit=function(o){var c=bS(o.offsetDirection);c&&this.manager.emit(this.options.event+c,o),this.manager.emit(this.options.event,o)},r}(hh),wS=function(s){function r(o){return o===void 0&&(o={}),s.call(this,fo({event:"pinch",threshold:0,pointers:2},o))||this}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return[Kr]},u.attrTest=function(o){return s.prototype.attrTest.call(this,o)&&(Math.abs(o.scale-1)>this.options.threshold||2&this.state)},u.emit=function(o){if(o.scale!==1){var c=o.scale<1?"in":"out";o.additionalEvent=this.options.event+c}s.prototype.emit.call(this,o)},r}(hh),vm=function(s){function r(o){return o===void 0&&(o={}),s.call(this,fo({event:"rotate",threshold:0,pointers:2},o))||this}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return[Kr]},u.attrTest=function(o){return s.prototype.attrTest.call(this,o)&&(Math.abs(o.rotation)>this.options.threshold||2&this.state)},r}(hh),kS=function(s){function r(o){var c;return o===void 0&&(o={}),(c=s.call(this,fo({event:"press",pointers:1,time:251,threshold:9},o))||this)._timer=null,c._input=null,c}ra(r,s);var u=r.prototype;return u.getTouchAction=function(){return[nS]},u.process=function(o){var c=this,f=this.options,m=o.pointers.length===f.pointers,S=o.distance<f.threshold,x=o.deltaTime>f.time;if(this._input=o,!S||!m||o.eventType&(ai|Gi)&&!x)this.reset();else if(o.eventType&gn)this.reset(),this._timer=setTimeout(function(){c.state=8,c.tryEmit()},f.time);else if(o.eventType&ai)return 8;return Ml},u.reset=function(){clearTimeout(this._timer)},u.emit=function(o){this.state===8&&(o&&o.eventType&ai?this.manager.emit(this.options.event+"up",o):(this._input.timeStamp=ov(),this.manager.emit(this.options.event,this._input)))},r}(pv),SS={domEvents:!1,touchAction:iS,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},L0=[[vm,{enable:!1}],[wS,{enable:!1},["rotate"]],[_S,{direction:Bo}],[N0,{direction:Bo},["swipe"]],[R0],[R0,{event:"doubletap",taps:2},["tap"]],[kS]];function xS(s,r){var u,o=s.element;o.style&&(As(s.options.cssProps,function(c,f){u=sv(o.style,f),r?(s.oldCssProps[u]=o.style[u],o.style[u]=c):o.style[u]=s.oldCssProps[u]||""}),r||(s.oldCssProps={}))}var TS=function(){function s(u,o){var c,f=this;this.options=nh({},SS,o||{}),this.options.inputTarget=this.options.inputTarget||u,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=u,this.input=new((c=this).options.inputClass||(GP?pS:zP?I0:aS?gS:M0))(c,VP),this.touchAction=new sS(this,this.options.touchAction),xS(this,!0),As(this.options.recognizers,function(m){var S=f.add(new m[0](m[1]));m[2]&&S.recognizeWith(m[2]),m[3]&&S.requireFailure(m[3])},this)}var r=s.prototype;return r.set=function(u){return nh(this.options,u),u.touchAction&&this.touchAction.update(),u.inputTarget&&(this.input.destroy(),this.input.target=u.inputTarget,this.input.init()),this},r.stop=function(u){this.session.stopped=u?2:1},r.recognize=function(u){var o=this.session;if(!o.stopped){var c;this.touchAction.preventDefaults(u);var f=this.recognizers,m=o.curRecognizer;(!m||m&&8&m.state)&&(o.curRecognizer=null,m=null);for(var S=0;S<f.length;)c=f[S],o.stopped===2||m&&c!==m&&!c.canRecognizeWith(m)?c.reset():c.recognize(u),!m&&14&c.state&&(o.curRecognizer=c,m=c),S++}},r.get=function(u){if(u instanceof pv)return u;for(var o=this.recognizers,c=0;c<o.length;c++)if(o[c].options.event===u)return o[c];return null},r.add=function(u){if(uh(u,"add",this))return this;var o=this.get(u.options.event);return o&&this.remove(o),this.recognizers.push(u),u.manager=this,this.touchAction.update(),u},r.remove=function(u){if(uh(u,"remove",this))return this;var o=this.get(u);if(u){var c=this.recognizers,f=lh(c,o);f!==-1&&(c.splice(f,1),this.touchAction.update())}return this},r.on=function(u,o){if(u===void 0||o===void 0)return this;var c=this.handlers;return As(cv(u),function(f){c[f]=c[f]||[],c[f].push(o)}),this},r.off=function(u,o){if(u===void 0)return this;var c=this.handlers;return As(cv(u),function(f){o?c[f]&&c[f].splice(lh(c[f],o),1):delete c[f]}),this},r.emit=function(u,o){this.options.domEvents&&function(m,S){var x=document.createEvent("Event");x.initEvent(m,!0,!0),x.gesture=S,S.target.dispatchEvent(x)}(u,o);var c=this.handlers[u]&&this.handlers[u].slice();if(c&&c.length){o.type=u,o.preventDefault=function(){o.srcEvent.preventDefault()};for(var f=0;f<c.length;)c[f](o),f++}},r.destroy=function(){this.element&&xS(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},s}(),CS={touchstart:gn,touchmove:2,touchend:ai,touchcancel:Gi},e4=function(s){function r(){var u,o=r.prototype;return o.evTarget="touchstart",o.evWin="touchstart touchmove touchend touchcancel",(u=s.apply(this,arguments)||this).started=!1,u}return ra(r,s),r.prototype.handler=function(u){var o=CS[u.type];if(o===gn&&(this.started=!0),this.started){var c=ES.call(this,u,o);o&(ai|Gi)&&c[0].length-c[1].length==0&&(this.started=!1),this.callback(this.manager,o,{pointers:c[0],changedPointers:c[1],pointerType:ah,srcEvent:u})}},r}(Uc);function ES(s,r){var u=vv(s.touches),o=vv(s.changedTouches);return r&(ai|Gi)&&(u=dm(u.concat(o),"identifier",!0)),[u,o]}function DS(s,r,u){var o="DEPRECATED METHOD: "+r+`
`+u+` AT
`;return function(){var c=new Error("get-stack-trace"),f=c&&c.stack?c.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",m=window.console&&(window.console.warn||window.console.log);return m&&m.call(window.console,o,f),s.apply(this,arguments)}}var OS=DS(function(s,r,u){for(var o=Object.keys(r),c=0;c<o.length;)(!u||u&&s[o[c]]===void 0)&&(s[o[c]]=r[o[c]]),c++;return s},"extend","Use `assign`."),t4=DS(function(s,r){return OS(s,r,!0)},"merge","Use `assign`.");function r4(s,r,u){var o,c=r.prototype;(o=s.prototype=Object.create(c)).constructor=s,o._super=c,u&&nh(o,u)}function $S(s,r){return function(){return s.apply(r,arguments)}}var PS=function(){var s=function(r,u){return u===void 0&&(u={}),new TS(r,fo({recognizers:L0.concat()},u))};return s.VERSION="2.0.17-rc",s.DIRECTION_ALL=oS,s.DIRECTION_DOWN=zc,s.DIRECTION_LEFT=Ms,s.DIRECTION_RIGHT=uv,s.DIRECTION_UP=hv,s.DIRECTION_HORIZONTAL=Bo,s.DIRECTION_VERTICAL=oh,s.DIRECTION_NONE=sm,s.DIRECTION_DOWN=zc,s.INPUT_START=gn,s.INPUT_MOVE=2,s.INPUT_END=ai,s.INPUT_CANCEL=Gi,s.STATE_POSSIBLE=1,s.STATE_BEGAN=2,s.STATE_CHANGED=4,s.STATE_ENDED=8,s.STATE_RECOGNIZED=8,s.STATE_CANCELLED=16,s.STATE_FAILED=Ml,s.Manager=TS,s.Input=Uc,s.TouchAction=sS,s.TouchInput=I0,s.MouseInput=M0,s.PointerEventInput=pS,s.TouchMouseInput=gS,s.SingleTouchInput=e4,s.Recognizer=pv,s.AttrRecognizer=hh,s.Tap=R0,s.Pan=N0,s.Swipe=_S,s.Pinch=wS,s.Rotate=vm,s.Press=kS,s.on=dv,s.off=fv,s.each=As,s.merge=t4,s.extend=OS,s.bindFn=$S,s.assign=nh,s.inherit=r4,s.bindFn=$S,s.prefixed=sv,s.toArray=vv,s.inArray=lh,s.uniqueArray=dm,s.splitStr=cv,s.boolOrFn=hm,s.hasParent=O0,s.addEventListeners=dv,s.removeEventListeners=fv,s.defaults=nh({},SS,{preset:L0}),s}();PS.defaults;var IS=PS;function F0(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return MS(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return MS(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function MS(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}var mv=$l("DELETE");function j0(){var s=pm.apply(void 0,arguments);return RS(s),s}function pm(){for(var s=arguments.length,r=new Array(s),u=0;u<s;u++)r[u]=arguments[u];if(r.length<2)return r[0];var o;if(r.length>2)return pm.apply(void 0,xr(o=[j0(r[0],r[1])]).call(o,co(pn(r).call(r,2))));var c=r[0],f=r[1];if(c instanceof Date&&f instanceof Date)return c.setTime(f.getTime()),c;var m,S=F0(O$(f));try{for(S.s();!(m=S.n()).done;){var x=m.value;Object.prototype.propertyIsEnumerable.call(f,x)&&(f[x]===mv?delete c[x]:c[x]===null||f[x]===null||ft(c[x])!=="object"||ft(f[x])!=="object"||xt(c[x])||xt(f[x])?c[x]=AS(f[x]):c[x]=pm(c[x],f[x]))}}catch(O){S.e(O)}finally{S.f()}return c}function AS(s){return xt(s)?Ei(s).call(s,function(r){return AS(r)}):ft(s)==="object"&&s!==null?s instanceof Date?new Date(s.getTime()):pm({},s):s}function RS(s){for(var r=0,u=Di(s);r<u.length;r++){var o=u[r];s[o]===mv?delete s[o]:ft(s[o])==="object"&&s[o]!==null&&RS(s[o])}}var Y0=typeof window!="undefined"?window.Hammer||IS:function(){return function(){var s=function(){};return{on:s,off:s,destroy:s,emit:s,get:function(){return{set:s}}}}()};function Ho(s){var r,u=this;this._cleanupQueue=[],this.active=!1,this._dom={container:s,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){u._dom.overlay.parentNode.removeChild(u._dom.overlay)});var o=Y0(this._dom.overlay);o.on("tap",de(r=this._onTapOverlay).call(r,this)),this._cleanupQueue.push(function(){o.destroy()});var c=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ae(c).call(c,function(f){o.on(f,function(m){m.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(f){(function(m,S){for(;m;){if(m===S)return!0;m=m.parentNode}return!1})(f.target,s)||u.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",u._onClick)})),this._escListener=function(f){("key"in f?f.key==="Escape":f.keyCode===27)&&u.deactivate()}}C0(Ho.prototype),Ho.current=null,Ho.prototype.destroy=function(){var s,r;this.deactivate();var u,o=F0(L$(s=Ln(r=this._cleanupQueue).call(r,0)).call(s));try{for(o.s();!(u=o.n()).done;)(0,u.value)()}catch(c){o.e(c)}finally{o.f()}},Ho.prototype.activate=function(){Ho.current&&Ho.current.deactivate(),Ho.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)},Ho.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")},Ho.prototype._onTapOverlay=function(s){this.activate(),s.srcEvent.stopPropagation()};var i4=/^\/?Date\((-?\d+)/i,n4=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,B0=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,a4=/^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,o4=/^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 gv(s){return s instanceof Number||typeof s=="number"}function ia(s){return s instanceof String||typeof s=="string"}function mm(s){return ft(s)==="object"&&s!==null}function Rl(s,r,u,o){var c=!1;o===!0&&(c=r[u]===null&&s[u]!==void 0),c?delete s[u]:s[u]=r[u]}var s4=ih;function yv(s,r){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)||u===!0)if(ft(r[c])==="object"&&r[c]!==null&&A1(r[c])===Object.prototype)s[c]===void 0?s[c]=yv({},r[c],u):ft(s[c])==="object"&&s[c]!==null&&A1(s[c])===Object.prototype?yv(s[c],r[c],u):Rl(s,r,c,o);else if(xt(r[c])){var f;s[c]=pn(f=r[c]).call(f)}else Rl(s,r,c,o);return s}function bv(s){var r=ft(s);return r==="object"?s===null?"null":s instanceof Boolean?"Boolean":s instanceof Number?"Number":s instanceof String?"String":xt(s)?"Array":s instanceof Date?"Date":"Object":r==="number"?"Number":r==="boolean"?"Boolean":r==="string"?"String":r===void 0?"undefined":r}function ch(s,r){var u;return xr(u=[]).call(u,co(s),[r])}function NS(s){return pn(s).call(s)}var l4=m0,u4={asBoolean:function(s,r){return typeof s=="function"&&(s=s()),s!=null?s!=0:r||null},asNumber:function(s,r){return typeof s=="function"&&(s=s()),s!=null?Number(s)||r||null:r||null},asString:function(s,r){return typeof s=="function"&&(s=s()),s!=null?String(s):r||null},asSize:function(s,r){return typeof s=="function"&&(s=s()),ia(s)?s:gv(s)?s+"px":r||null},asElement:function(s,r){return typeof s=="function"&&(s=s()),s||r||null}};function gm(s){var r;switch(s.length){case 3:case 4:return(r=B0.exec(s))?{r:ea(r[1]+r[1],16),g:ea(r[2]+r[2],16),b:ea(r[3]+r[3],16)}:null;case 6:case 7:return(r=n4.exec(s))?{r:ea(r[1],16),g:ea(r[2],16),b:ea(r[3],16)}:null;default:return null}}function Nl(s,r,u){var o;return"#"+pn(o=((1<<24)+(s<<16)+(r<<8)+u).toString(16)).call(o,1)}function dh(s,r,u){s/=255,r/=255,u/=255;var o=Math.min(s,Math.min(r,u)),c=Math.max(s,Math.max(r,u));return o===c?{h:0,s:0,v:o}:{h:60*((s===o?3:u===o?1:5)-(s===o?r-u:u===o?s-r:u-s)/(c-o))/360,s:(c-o)/c,v:c}}function LS(s){var r=document.createElement("div"),u={};r.style.cssText=s;for(var o=0;o<r.style.length;++o)u[r.style[o]]=r.style.getPropertyValue(r.style[o]);return u}function _v(s,r,u){var o,c,f,m=Math.floor(6*s),S=6*s-m,x=u*(1-r),O=u*(1-S*r),I=u*(1-(1-S)*r);switch(m%6){case 0:o=u,c=I,f=x;break;case 1:o=O,c=u,f=x;break;case 2:o=x,c=u,f=I;break;case 3:o=x,c=O,f=u;break;case 4:o=I,c=x,f=u;break;case 5:o=u,c=x,f=O}return{r:Math.floor(255*o),g:Math.floor(255*c),b:Math.floor(255*f)}}function H0(s,r,u){var o=_v(s,r,u);return Nl(o.r,o.g,o.b)}function W0(s){var r=gm(s);if(!r)throw new TypeError("'".concat(s,"' is not a valid color."));return dh(r.r,r.g,r.b)}function G0(s){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(s)}function z0(s){return a4.test(s)}function FS(s){return o4.test(s)}function U0(s){if(s===null||ft(s)!=="object")return null;if(s instanceof Element)return s;var r=nm(s);for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&ft(s[u])=="object"&&(r[u]=U0(s[u]));return r}var h4={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"},V0=function(){function s(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;jt(this,s),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Jt(s,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=r}},{key:"setCloseCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=r}},{key:"_isColorString",value:function(r){if(typeof r=="string")return h4[r]}},{key:"setColor",value:function(r){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(r!=="none"){var o,c=this._isColorString(r);if(c!==void 0&&(r=c),ia(r)===!0){if(z0(r)===!0){var f=r.substr(4).substr(0,r.length-5).split(",");o={r:f[0],g:f[1],b:f[2],a:1}}else if(FS(r)===!0){var m=r.substr(5).substr(0,r.length-6).split(",");o={r:m[0],g:m[1],b:m[2],a:m[3]}}else if(G0(r)===!0){var S=gm(r);o={r:S.r,g:S.g,b:S.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var x=r.a!==void 0?r.a:"1.0";o={r:r.r,g:r.g,b:r.b,a:x}}if(o===void 0)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: "+ta(r));this._setColor(o,u)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=ih({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ci(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=ih({},r)),this.color=r;var u=dh(r.r,r.g,r.b),o=2*Math.PI,c=this.r*u.s,f=this.centerCoordinates.x+c*Math.sin(o*u.h),m=this.centerCoordinates.y+c*Math.cos(o*u.h);this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var u=dh(this.color.r,this.color.g,this.color.b);u.v=r/100;var o=_v(u.h,u.s,u.v);o.a=this.color.a,this.color=o,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,u=dh(r.r,r.g,r.b),o=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1)),o.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var c=this.colorPickerCanvas.clientWidth,f=this.colorPickerCanvas.clientHeight;o.clearRect(0,0,c,f),o.putImageData(this.hueCircle,0,0),o.fillStyle="rgba(0,0,0,"+(1-u.v)+")",o.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),T0(o).call(o),this.brightnessRange.value=100*u.v,this.opacityRange.value=100*r.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var r,u,o,c;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var f=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(f.webkitBackingStorePixelRatio||f.mozBackingStorePixelRatio||f.msBackingStorePixelRatio||f.oBackingStorePixelRatio||f.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var m=document.createElement("DIV");m.style.color="red",m.style.fontWeight="bold",m.style.padding="10px",m.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(m)}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(x){}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(x){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var S=this;this.opacityRange.onchange=function(){S._setOpacity(this.value)},this.opacityRange.oninput=function(){S._setOpacity(this.value)},this.brightnessRange.onchange=function(){S._setBrightness(this.value)},this.brightnessRange.oninput=function(){S._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.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=de(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=de(u=this._apply).call(u,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=de(o=this._save).call(o,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=de(c=this._loadLast).call(c,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var r=this;this.drag={},this.pinch={},this.hammer=new Y0(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(u){u.isFirst&&r._moveSelector(u)}),this.hammer.on("tap",function(u){r._moveSelector(u)}),this.hammer.on("panstart",function(u){r._moveSelector(u)}),this.hammer.on("panmove",function(u){r._moveSelector(u)}),this.hammer.on("panend",function(u){r._moveSelector(u)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var u,o,c,f,m=this.colorPickerCanvas.clientWidth,S=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,m,S),this.centerCoordinates={x:.5*m,y:.5*S},this.r=.49*m;var x,O=2*Math.PI/360,I=1/this.r;for(c=0;c<360;c++)for(f=0;f<this.r;f++)u=this.centerCoordinates.x+f*Math.sin(O*c),o=this.centerCoordinates.y+f*Math.cos(O*c),x=_v(.002777777777777778*c,f*I,1),r.fillStyle="rgb("+x.r+","+x.g+","+x.b+")",r.fillRect(u-.5,o-.5,2,2);r.strokeStyle="rgba(0,0,0,1)",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),r.stroke(),this.hueCircle=r.getImageData(0,0,m,S)}this.generated=!0}},{key:"_moveSelector",value:function(r){var u=this.colorPickerDiv.getBoundingClientRect(),o=r.center.x-u.left,c=r.center.y-u.top,f=.5*this.colorPickerDiv.clientHeight,m=.5*this.colorPickerDiv.clientWidth,S=o-m,x=c-f,O=Math.atan2(S,x),I=.98*Math.min(Math.sqrt(S*S+x*x),m),N=Math.cos(O)*I+f,L=Math.sin(O)*I+m;this.colorPickerSelector.style.top=N-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=L-.5*this.colorPickerSelector.clientWidth+"px";var z=O/(2*Math.PI);z=z<0?z+1:z;var W=I/this.r,X=dh(this.color.r,this.color.g,this.color.b);X.h=z,X.s=W;var Z=_v(X.h,X.s,X.v);Z.a=this.color.a,this.color=Z,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+")"}}]),s}();function q0(){for(var s=arguments.length,r=new Array(s),u=0;u<s;u++)r[u]=arguments[u];if(r.length<1)throw new TypeError("Invalid arguments.");if(r.length===1)return document.createTextNode(r[0]);var o=document.createElement(r[0]);return o.appendChild(q0.apply(void 0,co(pn(r).call(r,1)))),o}var jS,c4=function(){function s(r,u,o){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};jt(this,s),this.parent=r,this.changedOptions=[],this.container=u,this.allowCreation=!1,this.hideOption=f,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},ih(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new V0(c),this.wrapper=void 0}return Jt(s,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var u=!0;if(typeof r=="string")this.options.filter=r;else if(xt(r))this.options.filter=r.join();else if(ft(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),Mt(r)!==void 0&&(this.options.filter=Mt(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(u=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,u=r):typeof r=="function"&&(this.options.filter=r,u=!0);Mt(this.options)===!1&&(u=!1),this.options.enabled=u}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=Mt(this.options),u=0,o=!1;for(var c in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,c)&&(this.allowCreation=!1,o=!1,typeof r=="function"?o=(o=r(c,[]))||this._handleObject(this.configureOptions[c],[c],!0):r!==!0&&er(r).call(r,c)===-1||(o=!0),o!==!1&&(this.allowCreation=!0,u>0&&this._makeItem([]),this._makeHeader(c),this._handleObject(this.configureOptions[c],[c])),u++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var r=0;r<this.domElements.length;r++)this.wrapper.appendChild(this.domElements[r]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var r=0;r<this.domElements.length;r++)this.wrapper.removeChild(this.domElements[r]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(r){for(var u=this.moduleOptions,o=0;o<r.length;o++){if(u[r[o]]===void 0){u=void 0;break}u=u[r[o]]}return u}},{key:"_makeItem",value:function(r){if(this.allowCreation===!0){var u=document.createElement("div");u.className="vis-configuration vis-config-item vis-config-s"+r.length;for(var o=arguments.length,c=new Array(o>1?o-1:0),f=1;f<o;f++)c[f-1]=arguments[f];return Ae(c).call(c,function(m){u.appendChild(m)}),this.domElements.push(u),this.domElements.length}return 0}},{key:"_makeHeader",value:function(r){var u=document.createElement("div");u.className="vis-configuration vis-config-header",u.innerText=r,this._makeItem([],u)}},{key:"_makeLabel",value:function(r,u){var o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],c=document.createElement("div");if(c.className="vis-configuration vis-config-label vis-config-s"+u.length,o===!0){for(;c.firstChild;)c.removeChild(c.firstChild);c.appendChild(q0("i","b",r))}else c.innerText=r+":";return c}},{key:"_makeDropdown",value:function(r,u,o){var c=document.createElement("select");c.className="vis-configuration vis-config-select";var f=0;u!==void 0&&er(r).call(r,u)!==-1&&(f=er(r).call(r,u));for(var m=0;m<r.length;m++){var S=document.createElement("option");S.value=r[m],m===f&&(S.selected="selected"),S.innerText=r[m],c.appendChild(S)}var x=this;c.onchange=function(){x._update(this.value,o)};var O=this._makeLabel(o[o.length-1],o);this._makeItem(o,O,c)}},{key:"_makeRange",value:function(r,u,o){var c=r[0],f=r[1],m=r[2],S=r[3],x=document.createElement("input");x.className="vis-configuration vis-config-range";try{x.type="range",x.min=f,x.max=m}catch(Z){}x.step=S;var O="",I=0;if(u!==void 0){var N=1.2;u<0&&u*N<f?(x.min=Math.ceil(u*N),I=x.min,O="range increased"):u/N<f&&(x.min=Math.ceil(u/N),I=x.min,O="range increased"),u*N>m&&m!==1&&(x.max=Math.ceil(u*N),I=x.max,O="range increased"),x.value=u}else x.value=c;var L=document.createElement("input");L.className="vis-configuration vis-config-rangeinput",L.value=x.value;var z=this;x.onchange=function(){L.value=this.value,z._update(Number(this.value),o)},x.oninput=function(){L.value=this.value};var W=this._makeLabel(o[o.length-1],o),X=this._makeItem(o,W,x,L);O!==""&&this.popupHistory[X]!==I&&(this.popupHistory[X]=I,this._setupPopup(O,X))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var u=document.createElement("div");u.className="vis-configuration vis-config-button",u.innerText="generate options",u.onclick=function(){r._printOptions()},u.onmouseover=function(){u.className="vis-configuration vis-config-button hover"},u.onmouseout=function(){u.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(u)}}},{key:"_setupPopup",value:function(r,u){var o=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var c=document.createElement("div");c.id="vis-configuration-popup",c.className="vis-configuration-popup",c.innerText=r,c.onclick=function(){o._removePopup()},this.popupCounter+=1,this.popupDiv={html:c,index:u}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var r=this;if(this.popupDiv.html!==void 0){var u=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=u.left+"px",this.popupDiv.html.style.top=u.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Ci(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Ci(function(){r._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(r,u,o){var c=document.createElement("input");c.type="checkbox",c.className="vis-configuration vis-config-checkbox",c.checked=r,u!==void 0&&(c.checked=u,u!==r&&(ft(r)==="object"?u!==r.enabled&&this.changedOptions.push({path:o,value:u}):this.changedOptions.push({path:o,value:u})));var f=this;c.onchange=function(){f._update(this.checked,o)};var m=this._makeLabel(o[o.length-1],o);this._makeItem(o,m,c)}},{key:"_makeTextInput",value:function(r,u,o){var c=document.createElement("input");c.type="text",c.className="vis-configuration vis-config-text",c.value=u,u!==r&&this.changedOptions.push({path:o,value:u});var f=this;c.onchange=function(){f._update(this.value,o)};var m=this._makeLabel(o[o.length-1],o);this._makeItem(o,m,c)}},{key:"_makeColorField",value:function(r,u,o){var c=this,f=r[1],m=document.createElement("div");(u=u===void 0?f:u)!=="none"?(m.className="vis-configuration vis-config-colorBlock",m.style.backgroundColor=u):m.className="vis-configuration vis-config-colorBlock none",u=u===void 0?f:u,m.onclick=function(){c._showColorPicker(u,m,o)};var S=this._makeLabel(o[o.length-1],o);this._makeItem(o,S,m)}},{key:"_showColorPicker",value:function(r,u,o){var c=this;u.onclick=function(){},this.colorPicker.insertTo(u),this.colorPicker.show(),this.colorPicker.setColor(r),this.colorPicker.setUpdateCallback(function(f){var m="rgba("+f.r+","+f.g+","+f.b+","+f.a+")";u.style.backgroundColor=m,c._update(m,o)}),this.colorPicker.setCloseCallback(function(){u.onclick=function(){c._showColorPicker(r,u,o)}})}},{key:"_handleObject",value:function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],c=!1,f=Mt(this.options),m=!1;for(var S in r)if(Object.prototype.hasOwnProperty.call(r,S)){c=!0;var x=r[S],O=ch(u,S);if(typeof f=="function"&&(c=f(S,u))===!1&&!xt(x)&&typeof x!="string"&&typeof x!="boolean"&&x instanceof Object&&(this.allowCreation=!1,c=this._handleObject(x,O,!0),this.allowCreation=o===!1),c!==!1){m=!0;var I=this._getValue(O);if(xt(x))this._handleArray(x,I,O);else if(typeof x=="string")this._makeTextInput(x,I,O);else if(typeof x=="boolean")this._makeCheckbox(x,I,O);else if(x instanceof Object){if(!this.hideOption(u,S,this.moduleOptions))if(x.enabled!==void 0){var N=ch(O,"enabled"),L=this._getValue(N);if(L===!0){var z=this._makeLabel(S,O,!0);this._makeItem(O,z),m=this._handleObject(x,O)||m}else this._makeCheckbox(x,L,O)}else{var W=this._makeLabel(S,O,!0);this._makeItem(O,W),m=this._handleObject(x,O)||m}}else console.error("dont know how to handle",x,S,O)}}return m}},{key:"_handleArray",value:function(r,u,o){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,u,o),r[1]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="string"?(this._makeDropdown(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="number"&&(this._makeRange(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:Number(u)}))}},{key:"_update",value:function(r,u){var o=this._constructOptions(r,u);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",o),this.initialized=!0,this.parent.setOptions(o)}},{key:"_constructOptions",value:function(r,u){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=o;r=(r=r==="true"||r)!=="false"&&r;for(var f=0;f<u.length;f++)u[f]!=="global"&&(c[u[f]]===void 0&&(c[u[f]]={}),f!==u.length-1?c=c[u[f]]:c[u[f]]=r);return o}},{key:"_printOptions",value:function(){for(var r=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(q0("pre","const options = "+ta(r,null,2)))}},{key:"getOptions",value:function(){for(var r={},u=0;u<this.changedOptions.length;u++)this._constructOptions(this.changedOptions[u].value,this.changedOptions[u].path,r);return r}}]),s}(),YS=function(){function s(r,u){jt(this,s),this.container=r,this.overflowMethod=u||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Jt(s,[{key:"setPosition",value:function(r,u){this.x=ea(r),this.y=ea(u)}},{key:"setText",value:function(r){if(r instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(r)}else this.frame.innerText=r}},{key:"show",value:function(r){if(r===void 0&&(r=!0),r===!0){var u=this.frame.clientHeight,o=this.frame.clientWidth,c=this.frame.parentNode.clientHeight,f=this.frame.parentNode.clientWidth,m=0,S=0;if(this.overflowMethod=="flip"){var x=!1,O=!0;this.y-u<this.padding&&(O=!1),this.x+o>f-this.padding&&(x=!0),m=x?this.x-o:this.x,S=O?this.y-u:this.y}else(S=this.y-u)+u+this.padding>c&&(S=c-u-this.padding),S<this.padding&&(S=this.padding),(m=this.x)+o+this.padding>f&&(m=f-o-this.padding),m<this.padding&&(m=this.padding);this.frame.style.left=m+"px",this.frame.style.top=S+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),s}(),wv=!1,K0="background: #FFeeee; color: #dd0000",d4=function(){function s(){jt(this,s)}return Jt(s,null,[{key:"validate",value:function(r,u,o){wv=!1,jS=u;var c=u;return o!==void 0&&(c=u[o]),s.parse(r,c,[]),wv}},{key:"parse",value:function(r,u,o){for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&s.check(c,r,u,o)}},{key:"check",value:function(r,u,o,c){if(o[r]!==void 0||o.__any__!==void 0){var f=r,m=!0;o[r]===void 0&&o.__any__!==void 0&&(f="__any__",m=s.getType(u[r])==="object");var S=o[f];m&&S.__type__!==void 0&&(S=S.__type__),s.checkFields(r,u,o,f,S,c)}else s.getSuggestion(r,o,c)}},{key:"checkFields",value:function(r,u,o,c,f,m){var S=function(I){console.error("%c"+I+s.printLocation(m,r),K0)},x=s.getType(u[r]),O=f[x];O!==void 0?s.getType(O)==="array"&&er(O).call(O,u[r])===-1?(S('Invalid option detected in "'+r+'". Allowed values are:'+s.print(O)+' not "'+u[r]+'". '),wv=!0):x==="object"&&c!=="__any__"&&(m=ch(m,r),s.parse(u[r],o[c],m)):f.any===void 0&&(S('Invalid type received for "'+r+'". Expected: '+s.print(Di(f))+". Received ["+x+'] "'+u[r]+'"'),wv=!0)}},{key:"getType",value:function(r){var u=ft(r);return u==="object"?r===null?"null":r instanceof Boolean?"boolean":r instanceof Number?"number":r instanceof String?"string":xt(r)?"array":r instanceof Date?"date":r.nodeType!==void 0?"dom":r._isAMomentObject===!0?"moment":"object":u==="number"?"number":u==="boolean"?"boolean":u==="string"?"string":u===void 0?"undefined":u}},{key:"getSuggestion",value:function(r,u,o){var c,f=s.findInOptions(r,u,o,!1),m=s.findInOptions(r,jS,[],!0);c=f.indexMatch!==void 0?" in "+s.printLocation(f.path,r,"")+'Perhaps it was incomplete? Did you mean: "'+f.indexMatch+`"?
`:m.distance<=4&&f.distance>m.distance?" in "+s.printLocation(f.path,r,"")+"Perhaps it was misplaced? Matching option found at: "+s.printLocation(m.path,m.closestMatch,""):f.distance<=8?'. Did you mean "'+f.closestMatch+'"?'+s.printLocation(f.path,r):". Did you mean one of these: "+s.print(Di(u))+s.printLocation(o,r),console.error('%cUnknown option detected: "'+r+'"'+c,K0),wv=!0}},{key:"findInOptions",value:function(r,u,o){var c=arguments.length>3&&arguments[3]!==void 0&&arguments[3],f=1e9,m="",S=[],x=r.toLowerCase(),O=void 0;for(var I in u){var N=void 0;if(u[I].__type__!==void 0&&c===!0){var L=s.findInOptions(r,u[I],ch(o,I));f>L.distance&&(m=L.closestMatch,S=L.path,f=L.distance,O=L.indexMatch)}else{var z;er(z=I.toLowerCase()).call(z,x)!==-1&&(O=I),f>(N=s.levenshteinDistance(r,I))&&(m=I,S=NS(o),f=N)}}return{closestMatch:m,path:S,distance:f,indexMatch:O}}},{key:"printLocation",value:function(r,u){for(var o=`
`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
`)+`options = {
`,c=0;c<r.length;c++){for(var f=0;f<c+1;f++)o+=" ";o+=r[c]+`: {
`}for(var m=0;m<r.length+1;m++)o+=" ";o+=u+`
`;for(var S=0;S<r.length+1;S++){for(var x=0;x<r.length-S;x++)o+=" ";o+=`}
`}return o+`
`}},{key:"print",value:function(r){return ta(r).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(r,u){if(r.length===0)return u.length;if(u.length===0)return r.length;var o,c,f=[];for(o=0;o<=u.length;o++)f[o]=[o];for(c=0;c<=r.length;c++)f[0][c]=c;for(o=1;o<=u.length;o++)for(c=1;c<=r.length;c++)u.charAt(o-1)==r.charAt(c-1)?f[o][c]=f[o-1][c-1]:f[o][c]=Math.min(f[o-1][c-1]+1,Math.min(f[o][c-1]+1,f[o-1][c]+1));return f[u.length][r.length]}}]),s}(),f4=Ho,v4=V0,p4=c4,m4=Y0,g4=YS,y4=K0,b4=d4,_4=Object.freeze({__proto__:null,Activator:f4,Alea:function(){for(var s=arguments.length,r=new Array(s),u=0;u<s;u++)r[u]=arguments[u];return function(o){var c=function(){for(var N=function(){var Z=4022871197;return function(Q){for(var ne=Q.toString(),he=0;he<ne.length;he++){var Te=.02519603282416938*(Z+=ne.charCodeAt(he));Te-=Z=Te>>>0,Z=(Te*=Z)>>>0,Z+=4294967296*(Te-=Z)}return 23283064365386963e-26*(Z>>>0)}}(),L=N(" "),z=N(" "),W=N(" "),X=0;X<arguments.length;X++)(L-=N(X<0||arguments.length<=X?void 0:arguments[X]))<0&&(L+=1),(z-=N(X<0||arguments.length<=X?void 0:arguments[X]))<0&&(z+=1),(W-=N(X<0||arguments.length<=X?void 0:arguments[X]))<0&&(W+=1);return[L,z,W]}(o),f=v1(c,3),m=f[0],S=f[1],x=f[2],O=1,I=function(){var N=2091639*m+23283064365386963e-26*O;return m=S,S=x,x=N-(O=0|N)};return I.uint32=function(){return 4294967296*I()},I.fract53=function(){return I()+11102230246251565e-32*(2097152*I()|0)},I.algorithm="Alea",I.seed=o,I.version="0.9",I}(r.length?r:[Qn()])},ColorPicker:v4,Configurator:p4,DELETE:mv,HSVToHex:H0,HSVToRGB:_v,Hammer:m4,Popup:g4,RGBToHSV:dh,RGBToHex:Nl,VALIDATOR_PRINT_STYLE:y4,Validator:b4,addClassName:function(s,r){var u=s.className.split(" "),o=r.split(" ");u=xr(u).call(u,Mt(o).call(o,function(c){return!Wc(u).call(u,c)})),s.className=u.join(" ")},addCssText:function(s,r){for(var u=LS(r),o=0,c=RP(u);o<c.length;o++){var f=v1(c[o],2),m=f[0],S=f[1];s.style.setProperty(m,S)}},binarySearchCustom:function(s,r,u,o){for(var c=0,f=0,m=s.length-1;f<=m&&c<1e4;){var S=Math.floor((f+m)/2),x=s[S],O=r(o===void 0?x[u]:x[u][o]);if(O==0)return S;O==-1?f=S+1:m=S-1,c++}return-1},binarySearchValue:function(s,r,u,o,c){var f,m,S,x,O=0,I=0,N=s.length-1;for(c=c!=null?c:function(L,z){return L==z?0:L<z?-1:1};I<=N&&O<1e4;){if(x=Math.floor(.5*(N+I)),f=s[Math.max(0,x-1)][u],m=s[x][u],S=s[Math.min(s.length-1,x+1)][u],c(m,r)==0)return x;if(c(f,r)<0&&c(m,r)>0)return o=="before"?Math.max(0,x-1):x;if(c(m,r)<0&&c(S,r)>0)return o=="before"?x:Math.min(s.length-1,x+1);c(m,r)<0?I=x+1:N=x-1,O++}return-1},bridgeObject:U0,copyAndExtendArray:ch,copyArray:NS,deepExtend:yv,deepObjectAssign:j0,easingFunctions:{linear:function(s){return s},easeInQuad:function(s){return s*s},easeOutQuad:function(s){return s*(2-s)},easeInOutQuad:function(s){return s<.5?2*s*s:(4-2*s)*s-1},easeInCubic:function(s){return s*s*s},easeOutCubic:function(s){return--s*s*s+1},easeInOutCubic:function(s){return s<.5?4*s*s*s:(s-1)*(2*s-2)*(2*s-2)+1},easeInQuart:function(s){return s*s*s*s},easeOutQuart:function(s){return 1- --s*s*s*s},easeInOutQuart:function(s){return s<.5?8*s*s*s*s:1-8*--s*s*s*s},easeInQuint:function(s){return s*s*s*s*s},easeOutQuint:function(s){return 1+--s*s*s*s*s},easeInOutQuint:function(s){return s<.5?16*s*s*s*s*s:1+16*--s*s*s*s*s}},equalArray:function(s,r){if(s.length!==r.length)return!1;for(var u=0,o=s.length;u<o;u++)if(s[u]!=r[u])return!1;return!0},extend:s4,fillIfDefined:function s(r,u){var o=arguments.length>2&&arguments[2]!==void 0&&arguments[2];for(var c in r)if(u[c]!==void 0)if(u[c]===null||ft(u[c])!=="object")Rl(r,u,c,o);else{var f=r[c],m=u[c];mm(f)&&mm(m)&&s(f,m,o)}},forEach:function(s,r){if(xt(s))for(var u=s.length,o=0;o<u;o++)r(s[o],o,s);else for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&r(s[c],c,s)},getAbsoluteLeft:function(s){return s.getBoundingClientRect().left},getAbsoluteRight:function(s){return s.getBoundingClientRect().right},getAbsoluteTop:function(s){return s.getBoundingClientRect().top},getScrollBarWidth:function(){var s=document.createElement("p");s.style.width="100%",s.style.height="200px";var r=document.createElement("div");r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.visibility="hidden",r.style.width="200px",r.style.height="150px",r.style.overflow="hidden",r.appendChild(s),document.body.appendChild(r);var u=s.offsetWidth;r.style.overflow="scroll";var o=s.offsetWidth;return u==o&&(o=r.clientWidth),document.body.removeChild(r),u-o},getTarget:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,r=null;return s&&(s.target?r=s.target:s.srcElement&&(r=s.srcElement)),r instanceof Element&&(r.nodeType==null||r.nodeType!=3||(r=r.parentNode)instanceof Element)?r:null},getType:bv,hasParent:function(s,r){for(var u=s;u;){if(u===r)return!0;if(!u.parentNode)return!1;u=u.parentNode}return!1},hexToHSV:W0,hexToRGB:gm,insertSort:function(s,r){for(var u=0;u<s.length;u++){var o=s[u],c=void 0;for(c=u;c>0&&r(o,s[c-1])<0;c--)s[c]=s[c-1];s[c]=o}return s},isDate:function(s){return!!(s instanceof Date||ia(s)&&(i4.exec(s)||!isNaN(Date.parse(s))))},isNumber:gv,isObject:mm,isString:ia,isValidHex:G0,isValidRGB:z0,isValidRGBA:FS,mergeOptions:function(s,r,u){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=function(I){return I!=null},f=function(I){return I!==null&&ft(I)==="object"};if(!f(s))throw new Error("Parameter mergeTarget must be an object");if(!f(r))throw new Error("Parameter options must be an object");if(!c(u))throw new Error("Parameter option must have a value");if(!f(o))throw new Error("Parameter globalOptions must be an object");var m=r[u],S=f(o)&&!function(I){for(var N in I)if(Object.prototype.hasOwnProperty.call(I,N))return!1;return!0}(o)?o[u]:void 0,x=S?S.enabled:void 0;if(m!==void 0){if(typeof m=="boolean")return f(s[u])||(s[u]={}),void(s[u].enabled=m);if(m===null&&!f(s[u])){if(!c(S))return;s[u]=nm(S)}if(f(m)){var O=!0;m.enabled!==void 0?O=m.enabled:x!==void 0&&(O=S.enabled),function(I,N,L){f(I[L])||(I[L]={});var z=N[L],W=I[L];for(var X in z)Object.prototype.hasOwnProperty.call(z,X)&&(W[X]=z[X])}(s,r,u),s[u].enabled=O}}},option:u4,overrideOpacity:function(s,r){if(Wc(s).call(s,"rgba"))return s;if(Wc(s).call(s,"rgb")){var u=s.substr(er(s).call(s,"(")+1).replace(")","").split(",");return"rgba("+u[0]+","+u[1]+","+u[2]+","+r+")"}var o=gm(s);return o==null?s:"rgba("+o.r+","+o.g+","+o.b+","+r+")"},parseColor:function(s,r){if(ia(s)){var u=s;if(z0(u)){var o,c=Ei(o=u.substr(4).substr(0,u.length-5).split(",")).call(o,function(I){return ea(I)});u=Nl(c[0],c[1],c[2])}if(G0(u)===!0){var f=W0(u),m={h:f.h,s:.8*f.s,v:Math.min(1,1.02*f.v)},S={h:f.h,s:Math.min(1,1.25*f.s),v:.8*f.v},x=H0(S.h,S.s,S.v),O=H0(m.h,m.s,m.v);return{background:u,border:x,highlight:{background:O,border:x},hover:{background:O,border:x}}}return{background:u,border:u,highlight:{background:u,border:u},hover:{background:u,border:u}}}return r?{background:s.background||r.background,border:s.border||r.border,highlight:ia(s.highlight)?{border:s.highlight,background:s.highlight}:{background:s.highlight&&s.highlight.background||r.highlight.background,border:s.highlight&&s.highlight.border||r.highlight.border},hover:ia(s.hover)?{border:s.hover,background:s.hover}:{border:s.hover&&s.hover.border||r.hover.border,background:s.hover&&s.hover.background||r.hover.background}}:{background:s.background||void 0,border:s.border||void 0,highlight:ia(s.highlight)?{border:s.highlight,background:s.highlight}:{background:s.highlight&&s.highlight.background||void 0,border:s.highlight&&s.highlight.border||void 0},hover:ia(s.hover)?{border:s.hover,background:s.hover}:{border:s.hover&&s.hover.border||void 0,background:s.hover&&s.hover.background||void 0}}},preventDefault:function(s){s||(s=window.event),s&&(s.preventDefault?s.preventDefault():s.returnValue=!1)},pureDeepObjectAssign:function(s){for(var r,u=arguments.length,o=new Array(u>1?u-1:0),c=1;c<u;c++)o[c-1]=arguments[c];return j0.apply(void 0,xr(r=[{},s]).call(r,o))},recursiveDOMDelete:function s(r){if(r)for(;r.hasChildNodes()===!0;){var u=r.firstChild;u&&(s(u),r.removeChild(u))}},removeClassName:function(s,r){var u=s.className.split(" "),o=r.split(" ");u=Mt(u).call(u,function(c){return!Wc(o).call(o,c)}),s.className=u.join(" ")},removeCssText:function(s,r){for(var u=LS(r),o=0,c=Di(u);o<c.length;o++){var f=c[o];s.style.removeProperty(f)}},selectiveBridgeObject:function(s,r){if(r!==null&&ft(r)==="object"){for(var u=nm(r),o=0;o<s.length;o++)Object.prototype.hasOwnProperty.call(r,s[o])&&ft(r[s[o]])=="object"&&(u[s[o]]=U0(r[s[o]]));return u}return null},selectiveDeepExtend:function(s,r,u){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(xt(u))throw new TypeError("Arrays are not supported by deepExtend");for(var c=0;c<s.length;c++){var f=s[c];if(Object.prototype.hasOwnProperty.call(u,f))if(u[f]&&u[f].constructor===Object)r[f]===void 0&&(r[f]={}),r[f].constructor===Object?yv(r[f],u[f],!1,o):Rl(r,u,f,o);else{if(xt(u[f]))throw new TypeError("Arrays are not supported by deepExtend");Rl(r,u,f,o)}}return r},selectiveExtend:function(s,r){if(!xt(s))throw new Error("Array with property names expected as first argument");for(var u=arguments.length,o=new Array(u>2?u-2:0),c=2;c<u;c++)o[c-2]=arguments[c];for(var f=0,m=o;f<m.length;f++)for(var S=m[f],x=0;x<s.length;x++){var O=s[x];S&&Object.prototype.hasOwnProperty.call(S,O)&&(r[O]=S[O])}return r},selectiveNotDeepExtend:function(s,r,u){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(xt(u))throw new TypeError("Arrays are not supported by deepExtend");for(var c in u)if(Object.prototype.hasOwnProperty.call(u,c)&&!Wc(s).call(s,c))if(u[c]&&u[c].constructor===Object)r[c]===void 0&&(r[c]={}),r[c].constructor===Object?yv(r[c],u[c]):Rl(r,u,c,o);else if(xt(u[c])){r[c]=[];for(var f=0;f<u[c].length;f++)r[c].push(u[c][f])}else Rl(r,u,c,o);return r},throttle:function(s){var r=!1;return function(){r||(r=!0,requestAnimationFrame(function(){r=!1,s()}))}},toArray:l4,topMost:function(s,r){var u;xt(r)||(r=[r]);var o,c=F0(s);try{for(c.s();!(o=c.n()).done;){var f=o.value;if(f){u=f[r[0]];for(var m=1;m<r.length;m++)u&&(u=u[r[m]]);if(u!==void 0)break}}}catch(S){c.e(S)}finally{c.f()}return u},updateProperty:function(s,r,u){return s[r]!==u&&(s[r]=u,!0)}}),X0={exports:{}},Tr={},ym={exports:{}},fh={};function BS(){var s={"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 s}var Z0=/javascript\s*\:/gim;fh.whiteList=BS(),fh.getDefaultWhiteList=BS,fh.onAttr=function(s,r,u){},fh.onIgnoreAttr=function(s,r,u){},fh.safeAttrValue=function(s,r){return Z0.test(r)?"":r};var kv={indexOf:function(s,r){var u,o;if(Array.prototype.indexOf)return s.indexOf(r);for(u=0,o=s.length;u<o;u++)if(s[u]===r)return u;return-1},forEach:function(s,r,u){var o,c;if(Array.prototype.forEach)return s.forEach(r,u);for(o=0,c=s.length;o<c;o++)r.call(u,s[o],o,s)},trim:function(s){return String.prototype.trim?s.trim():s.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(s){return String.prototype.trimRight?s.trimRight():s.replace(/(\s*$)/g,"")}},w4=function(s,r){(s=kv.trimRight(s))[s.length-1]!==";"&&(s+=";");var u=s.length,o=!1,c=0,f=0,m="";function S(){if(!o){var I=kv.trim(s.slice(c,f)),N=I.indexOf(":");if(N!==-1){var L=kv.trim(I.slice(0,N)),z=kv.trim(I.slice(N+1));if(L){var W=r(c,m.length,L,z,I);W&&(m+=W+"; ")}}}c=f+1}for(;f<u;f++){var x=s[f];if(x==="/"&&s[f+1]==="*"){var O=s.indexOf("*/",f+2);if(O===-1)break;c=(f=O+1)+1,o=!1}else x==="("?o=!0:x===")"?o=!1:x===";"?o||S():x===`
`&&S()}return kv.trim(m)},bm=fh,k4=w4;function HS(s){return s==null}function WS(s){(s=function(r){var u={};for(var o in r)u[o]=r[o];return u}(s||{})).whiteList=s.whiteList||bm.whiteList,s.onAttr=s.onAttr||bm.onAttr,s.onIgnoreAttr=s.onIgnoreAttr||bm.onIgnoreAttr,s.safeAttrValue=s.safeAttrValue||bm.safeAttrValue,this.options=s}WS.prototype.process=function(s){if(!(s=(s=s||"").toString()))return"";var r=this.options,u=r.whiteList,o=r.onAttr,c=r.onIgnoreAttr,f=r.safeAttrValue,m=k4(s,function(S,x,O,I,N){var L=u[O],z=!1;if(L===!0?z=L:typeof L=="function"?z=L(I):L instanceof RegExp&&(z=L.test(I)),z!==!0&&(z=!1),I=f(O,I)){var W,X={position:x,sourcePosition:S,source:N,isWhite:z};return z?HS(W=o(O,I,X))?O+":"+I:W:HS(W=c(O,I,X))?void 0:W}});return m};var S4=WS;(function(s,r){var u=fh,o=S4;for(var c in r=s.exports=function(f,m){return new o(m).process(f)},r.FilterCSS=o,u)r[c]=u[c];typeof window!="undefined"&&(window.filterCSS=s.exports)})(ym,ym.exports);var J0=ym.exports,_m={indexOf:function(s,r){var u,o;if(Array.prototype.indexOf)return s.indexOf(r);for(u=0,o=s.length;u<o;u++)if(s[u]===r)return u;return-1},forEach:function(s,r,u){var o,c;if(Array.prototype.forEach)return s.forEach(r,u);for(o=0,c=s.length;o<c;o++)r.call(u,s[o],o,s)},trim:function(s){return String.prototype.trim?s.trim():s.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(s){var r=/\s|\n|\t/.exec(s);return r?r.index:-1}},GS=J0.FilterCSS,x4=J0.getDefaultWhiteList,wm=_m;function T4(){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 zS=new GS;function US(s){return s.replace(C4,"&lt;").replace(E4,"&gt;")}var C4=/</g,E4=/>/g,D4=/"/g,VS=/&quot;/g,O4=/&#([a-zA-Z0-9]*);?/gim,qS=/&colon;?/gim,$4=/&newline;?/gim,Sv=/((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,KS=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Q0=/u\s*r\s*l\s*\(.*/gi;function XS(s){return s.replace(D4,"&quot;")}function eb(s){return s.replace(VS,'"')}function ZS(s){return s.replace(O4,function(r,u){return u[0]==="x"||u[0]==="X"?String.fromCharCode(parseInt(u.substr(1),16)):String.fromCharCode(parseInt(u,10))})}function JS(s){return s.replace(qS,":").replace($4," ")}function QS(s){for(var r="",u=0,o=s.length;u<o;u++)r+=s.charCodeAt(u)<32?" ":s.charAt(u);return wm.trim(r)}function ex(s){return s=QS(s=JS(s=ZS(s=eb(s))))}function tb(s){return s=US(s=XS(s))}Tr.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"]},Tr.getDefaultWhiteList=T4,Tr.onTag=function(s,r,u){},Tr.onIgnoreTag=function(s,r,u){},Tr.onTagAttr=function(s,r,u){},Tr.onIgnoreTagAttr=function(s,r,u){},Tr.safeAttrValue=function(s,r,u,o){if(u=ex(u),r==="href"||r==="src"){if((u=wm.trim(u))==="#")return"#";if(u.substr(0,7)!=="http://"&&u.substr(0,8)!=="https://"&&u.substr(0,7)!=="mailto:"&&u.substr(0,4)!=="tel:"&&u.substr(0,11)!=="data:image/"&&u.substr(0,6)!=="ftp://"&&u.substr(0,2)!=="./"&&u.substr(0,3)!=="../"&&u[0]!=="#"&&u[0]!=="/")return""}else if(r==="background"){if(Sv.lastIndex=0,Sv.test(u))return""}else if(r==="style"){if(KS.lastIndex=0,KS.test(u)||(Q0.lastIndex=0,Q0.test(u)&&(Sv.lastIndex=0,Sv.test(u))))return"";o!==!1&&(u=(o=o||zS).process(u))}return u=tb(u)},Tr.escapeHtml=US,Tr.escapeQuote=XS,Tr.unescapeQuote=eb,Tr.escapeHtmlEntities=ZS,Tr.escapeDangerHtml5Entities=JS,Tr.clearNonPrintableCharacter=QS,Tr.friendlyAttrValue=ex,Tr.escapeAttrValue=tb,Tr.onIgnoreTagStripAll=function(){return""},Tr.StripTagBody=function(s,r){typeof r!="function"&&(r=function(){});var u=!Array.isArray(s),o=[],c=!1;return{onIgnoreTag:function(f,m,S){if(function(I){return!!u||wm.indexOf(s,I)!==-1}(f)){if(S.isClosing){var x="[/removed]",O=S.position+10;return o.push([c!==!1?c:S.position,O]),c=!1,x}return c||(c=S.position),"[removed]"}return r(f,m,S)},remove:function(f){var m="",S=0;return wm.forEach(o,function(x){m+=f.slice(S,x[0]),S=x[1]}),m+=f.slice(S)}}},Tr.stripCommentTag=function(s){for(var r="",u=0;u<s.length;){var o=s.indexOf("<!--",u);if(o===-1){r+=s.slice(u);break}r+=s.slice(u,o);var c=s.indexOf("-->",o);if(c===-1)break;u=c+3}return r},Tr.stripBlankChar=function(s){var r=s.split("");return(r=r.filter(function(u){var o=u.charCodeAt(0);return o!==127&&(!(o<=31)||o===10||o===13)})).join("")},Tr.attributeWrapSign='"',Tr.cssFilter=zS,Tr.getDefaultCSSWhiteList=x4;var km={},Ll=_m;function vo(s){var r,u=Ll.spaceIndex(s);return r=u===-1?s.slice(1,-1):s.slice(1,u+1),(r=Ll.trim(r).toLowerCase()).slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function $a(s){return s.slice(0,2)==="</"}var Sm=/[^a-zA-Z0-9\\_:.-]/gim;function rb(s,r){for(;r<s.length;r++){var u=s[r];if(u!==" ")return u==="="?r:-1}}function vh(s,r){for(;r<s.length;r++){var u=s[r];if(u!==" ")return u==="'"||u==='"'?r:-1}}function tx(s,r){for(;r>0;r--){var u=s[r];if(u!==" ")return u==="="?r:-1}}function rx(s){return function(r){return r[0]==='"'&&r[r.length-1]==='"'||r[0]==="'"&&r[r.length-1]==="'"}(s)?s.substr(1,s.length-2):s}km.parseTag=function(s,r,u){var o="",c=0,f=!1,m=!1,S=0,x=s.length,O="",I="";e:for(S=0;S<x;S++){var N=s.charAt(S);if(f===!1){if(N==="<"){f=S;continue}}else if(m===!1){if(N==="<"){o+=u(s.slice(c,S)),f=S,c=S;continue}if(N===">"||S===x-1){o+=u(s.slice(c,f)),O=vo(I=s.slice(f,S+1)),o+=r(f,o.length,O,I,$a(I)),c=S+1,f=!1;continue}if(N==='"'||N==="'")for(var L=1,z=s.charAt(S-L);z.trim()===""||z==="=";){if(z==="="){m=N;continue e}z=s.charAt(S-++L)}}else if(N===m){m=!1;continue}}return c<x&&(o+=u(s.substr(c))),o},km.parseAttr=function(s,r){var u=0,o=0,c=[],f=!1,m=s.length;function S(N,L){if(!((N=(N=Ll.trim(N)).replace(Sm,"").toLowerCase()).length<1)){var z=r(N,L||"");z&&c.push(z)}}for(var x=0;x<m;x++){var O,I=s.charAt(x);if(f!==!1||I!=="=")if(f===!1||x!==o){if(/\s|\n|\t/.test(I)){if(s=s.replace(/\s|\n|\t/g," "),f===!1){if((O=rb(s,x))===-1){S(Ll.trim(s.slice(u,x))),f=!1,u=x+1;continue}x=O-1;continue}if((O=tx(s,x-1))===-1){S(f,rx(Ll.trim(s.slice(u,x)))),f=!1,u=x+1;continue}}}else{if((O=s.indexOf(I,x+1))===-1)break;S(f,Ll.trim(s.slice(o+1,O))),f=!1,u=(x=O)+1}else f=s.slice(u,x),u=x+1,o=s.charAt(u)==='"'||s.charAt(u)==="'"?u:vh(s,x+1)}return u<s.length&&(f===!1?S(s.slice(u)):S(f,rx(Ll.trim(s.slice(u))))),Ll.trim(c.join(" "))};var P4=J0.FilterCSS,Ui=Tr,Fl=km,ib=Fl.parseTag,xm=Fl.parseAttr,Pa=_m;function xv(s){return s==null}function nb(s){(s=function(r){var u={};for(var o in r)u[o]=r[o];return u}(s||{})).stripIgnoreTag&&(s.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),s.onIgnoreTag=Ui.onIgnoreTagStripAll),s.whiteList||s.allowList?s.whiteList=function(r){var u={};for(var o in r)Array.isArray(r[o])?u[o.toLowerCase()]=r[o].map(function(c){return c.toLowerCase()}):u[o.toLowerCase()]=r[o];return u}(s.whiteList||s.allowList):s.whiteList=Ui.whiteList,this.attributeWrapSign=s.singleQuotedAttributeValue===!0?"'":Ui.attributeWrapSign,s.onTag=s.onTag||Ui.onTag,s.onTagAttr=s.onTagAttr||Ui.onTagAttr,s.onIgnoreTag=s.onIgnoreTag||Ui.onIgnoreTag,s.onIgnoreTagAttr=s.onIgnoreTagAttr||Ui.onIgnoreTagAttr,s.safeAttrValue=s.safeAttrValue||Ui.safeAttrValue,s.escapeHtml=s.escapeHtml||Ui.escapeHtml,this.options=s,s.css===!1?this.cssFilter=!1:(s.css=s.css||{},this.cssFilter=new P4(s.css))}nb.prototype.process=function(s){if(!(s=(s=s||"").toString()))return"";var r=this,u=r.options,o=u.whiteList,c=u.onTag,f=u.onIgnoreTag,m=u.onTagAttr,S=u.onIgnoreTagAttr,x=u.safeAttrValue,O=u.escapeHtml,I=r.attributeWrapSign,N=r.cssFilter;u.stripBlankChar&&(s=Ui.stripBlankChar(s)),u.allowCommentTag||(s=Ui.stripCommentTag(s));var L=!1;u.stripIgnoreTagBody&&(L=Ui.StripTagBody(u.stripIgnoreTagBody,f),f=L.onIgnoreTag);var z=ib(s,function(W,X,Z,Q,ne){var he={sourcePosition:W,position:X,isClosing:ne,isWhite:Object.prototype.hasOwnProperty.call(o,Z)},Te=c(Z,Q,he);if(!xv(Te))return Te;if(he.isWhite){if(he.isClosing)return"</"+Z+">";var Re=function(fe){var We=Pa.spaceIndex(fe);if(We===-1)return{html:"",closing:fe[fe.length-2]==="/"};var at=(fe=Pa.trim(fe.slice(We+1,-1)))[fe.length-1]==="/";return at&&(fe=Pa.trim(fe.slice(0,-1))),{html:fe,closing:at}}(Q),xe=o[Z],De=xm(Re.html,function(fe,We){var at=Pa.indexOf(xe,fe)!==-1,Gt=m(Z,fe,We,at);return xv(Gt)?at?(We=x(Z,fe,We,N))?fe+"="+I+We+I:fe:xv(Gt=S(Z,fe,We,at))?void 0:Gt:Gt});return Q="<"+Z,De&&(Q+=" "+De),Re.closing&&(Q+=" /"),Q+=">"}return xv(Te=f(Z,Q,he))?O(Q):Te},O);return L&&(z=L.remove(z)),z};var I4=nb;(function(s,r){var u=Tr,o=km,c=I4;function f(m,S){return new c(S).process(m)}(r=s.exports=f).filterXSS=f,r.FilterXSS=c,function(){for(var m in u)r[m]=u[m];for(var S in o)r[S]=o[S]}(),typeof window!="undefined"&&(window.filterXSS=s.exports),typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=s.exports)})(X0,X0.exports);var ix=p(X0.exports);let Tv,ab=new Uint8Array(16);function ph(){if(!Tv&&(Tv=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Tv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Tv(ab)}let Xr=[];for(let s=0;s<256;++s)Xr.push((s+256).toString(16).slice(1));var Vc={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Rs(s,r,u){if(Vc.randomUUID&&!r&&!s)return Vc.randomUUID();let o=(s=s||{}).random||(s.rng||ph)();return o[6]=15&o[6]|64,o[8]=63&o[8]|128,function(c,f=0){return Xr[c[f+0]]+Xr[c[f+1]]+Xr[c[f+2]]+Xr[c[f+3]]+"-"+Xr[c[f+4]]+Xr[c[f+5]]+"-"+Xr[c[f+6]]+Xr[c[f+7]]+"-"+Xr[c[f+8]]+Xr[c[f+9]]+"-"+Xr[c[f+10]]+Xr[c[f+11]]+Xr[c[f+12]]+Xr[c[f+13]]+Xr[c[f+14]]+Xr[c[f+15]]}(o)}function nx(s,r){var u=Di(s);if(Dk){var o=Dk(s);r&&(o=Mt(o).call(o,function(c){return Mk(s,c).enumerable})),u.push.apply(u,o)}return u}function ob(s){for(var r=1;r<arguments.length;r++){var u,o,c=arguments[r]!=null?arguments[r]:{};r%2?Ae(u=nx(Object(c),!0)).call(u,function(f){var m,S,x;m=s,S=f,x=c[f],(S=nv(S))in m?xs(m,S,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[S]=x}):Fk?wO(s,Fk(c)):Ae(o=nx(Object(c))).call(o,function(f){Xk(s,f,Mk(c,f))})}return s}function Ns(s){var r;if(!s)return!1;var u=(r=s.idProp)!==null&&r!==void 0?r:s._idProp;return!!u&&h.isDataViewLike(u,s)}var sb=/^\/?Date\((-?\d+)/i,Cv=/^\d+$/;function lb(s,r){var u;if(s!==void 0){if(s===null)return null;if(!r)return s;if(typeof r!="string"&&!(r instanceof String))throw new Error("Type must be a string");switch(r){case"boolean":case"Boolean":return Boolean(s);case"number":case"Number":return ia(s)&&!isNaN(Date.parse(s))?n(s).valueOf():Number(s.valueOf());case"string":case"String":return String(s);case"Date":try{return lb(s,"Moment").toDate()}catch(o){throw o instanceof TypeError?new TypeError("Cannot convert object of type "+bv(s)+" to type "+r):o}case"Moment":if(gv(s))return n(s);if(s instanceof Date)return n(s.valueOf());if(n.isMoment(s))return n(s);if(ia(s))return(u=sb.exec(s))?n(Number(u[1])):(u=Cv.exec(s),n(u?Number(s):s));throw new TypeError("Cannot convert object of type "+bv(s)+" to type "+r);case"ISODate":if(gv(s))return new Date(s);if(s instanceof Date)return s.toISOString();if(n.isMoment(s))return s.toDate().toISOString();if(ia(s))return(u=sb.exec(s))?new Date(Number(u[1])).toISOString():n(s).format();throw new Error("Cannot convert object of type "+bv(s)+" to type ISODate");case"ASPDate":if(gv(s))return"/Date("+s+")/";if(s instanceof Date||n.isMoment(s))return"/Date("+s.valueOf()+")/";if(ia(s))return"/Date("+((u=sb.exec(s))?new Date(Number(u[1])).valueOf():new Date(s).valueOf())+")/";throw new Error("Cannot convert object of type "+bv(s)+" to type ASPDate");default:throw new Error("Unknown type ".concat(r))}}}function jl(s){var r,u,o,c,f,m,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},x=s._idProp,O=new h.DataSet({fieldId:x}),I=Ei(r=h.createNewDataPipeFrom(s)).call(r,function(N){var L;return Vk(L=Di(N)).call(L,function(z,W){return z[W]=lb(N[W],S[W]),z},{})}).to(O);return I.all().start(),{add:function(){var N;return(N=s.getDataSet()).add.apply(N,arguments)},remove:function(){var N;return(N=s.getDataSet()).remove.apply(N,arguments)},update:function(){var N;return(N=s.getDataSet()).update.apply(N,arguments)},updateOnly:function(){var N;return(N=s.getDataSet()).updateOnly.apply(N,arguments)},clear:function(){var N;return(N=s.getDataSet()).clear.apply(N,arguments)},forEach:de(u=Ae(O)).call(u,O),get:de(o=O.get).call(o,O),getIds:de(c=O.getIds).call(c,O),off:de(f=O.off).call(f,O),on:de(m=O.on).call(m,O),get length(){return O.length},idProp:x,type:S,rawDS:s,coercedDS:O,dispose:function(){return I.stop()}}}var ax=function(s){var r=new ix.FilterXSS(s);return function(u){return r.process(u)}},M4=function(s){return s},Vi=ax(),K=ob(ob({},_4),{},{convert:lb,setupXSSProtection:function(s){s&&(s.disabled===!0?(Vi=M4,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):s.filterOptions&&(Vi=ax(s.filterOptions)))}});Xk(K,"xss",{get:function(){return Vi}});var Zr=b,Fn=w,Tm=Si,Ev=H1.trim,Dv=g0,Ov=pe("".charAt),Ls=Zr.parseFloat,po=Zr.Symbol,Yl=po&&po.iterator,ub=1/Ls(Dv+"-0")!=-1/0||Yl&&!Fn(function(){Ls(Object(Yl))})?function(s){var r=Ev(Tm(s)),u=Ls(r);return u===0&&Ov(r,0)==="-"?-0:u}:Ls;Ke({global:!0,forced:parseFloat!==ub},{parseFloat:ub});var $v=p(Lt.parseFloat),Ia=function(){function s(r,u){jt(this,s),this.options=null,this.props=null}return Jt(s,[{key:"setOptions",value:function(r){r&&K.extend(this.options,r)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var r=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,r}}]),s}(),Fs=io,Cm=Si,mh=Bt,A4=RangeError;Ke({target:"String",proto:!0},{repeat:function(s){var r=Cm(mh(this)),u="",o=Fs(s);if(o<0||o===1/0)throw new A4("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(r+=r))1&o&&(u+=r);return u}});var ox=qr("String").repeat,hb=Pt,sx=ox,Em=String.prototype,Dm=function(s){var r=s.repeat;return typeof s=="string"||s===Em||hb(Em,s)&&r===Em.repeat?sx:r},Bl=p(Dm),cb=wc,R4=Math.floor,Om=function(s,r){var u=s.length,o=R4(u/2);return u<8?N4(s,r):L4(s,Om(cb(s,0,o),r),Om(cb(s,o),r),r)},N4=function(s,r){for(var u,o,c=s.length,f=1;f<c;){for(o=f,u=s[f];o&&r(s[o-1],u)>0;)s[o]=s[--o];o!==f++&&(s[o]=u)}return s},L4=function(s,r,u,o){for(var c=r.length,f=u.length,m=0,S=0;m<c||S<f;)s[m+S]=m<c&&S<f?o(r[m],u[S])<=0?r[m++]:u[S++]:m<c?r[m++]:u[S++];return s},F4=Om,lx=Ve.match(/firefox\/(\d+)/i),j4=!!lx&&+lx[1],Pv=/MSIE|Trident/.test(Ve),qc=Ve.match(/AppleWebKit\/(\d+)\./),Iv=!!qc&&+qc[1],ux=Ke,gh=pe,yh=di,Y4=wi,hx=ki,cx=u0,db=Si,$m=w,Mv=F4,fb=Zu,dx=j4,B4=Pv,Pm=yi,fx=Iv,Hl=[],vx=gh(Hl.sort),H4=gh(Hl.push),vb=$m(function(){Hl.sort(void 0)}),W4=$m(function(){Hl.sort(null)}),px=fb("sort"),pb=!$m(function(){if(Pm)return Pm<70;if(!(dx&&dx>3)){if(B4)return!0;if(fx)return fx<603;var s,r,u,o,c="";for(s=65;s<76;s++){switch(r=String.fromCharCode(s),s){case 66:case 69:case 70:case 72:u=3;break;case 68:case 71:u=4;break;default:u=2}for(o=0;o<47;o++)Hl.push({k:r+o,v:u})}for(Hl.sort(function(f,m){return m.v-f.v}),o=0;o<Hl.length;o++)r=Hl[o].k.charAt(0),c.charAt(c.length-1)!==r&&(c+=r);return c!=="DGBEFHACIJK"}});ux({target:"Array",proto:!0,forced:vb||!W4||!px||!pb},{sort:function(s){s!==void 0&&yh(s);var r=Y4(this);if(pb)return s===void 0?vx(r):vx(r,s);var u,o,c=[],f=hx(r);for(o=0;o<f;o++)o in r&&H4(c,r[o]);for(Mv(c,function(m){return function(S,x){return x===void 0?-1:S===void 0?1:m!==void 0?+m(S,x)||0:db(S)>db(x)?1:-1}}(s)),u=hx(c),o=0;o<u;)r[o]=c[o++];for(;o<f;)cx(r,o++);return r}});var G4=qr("Array").sort,z4=Pt,mx=G4,mb=Array.prototype,Kc=function(s){var r=s.sort;return s===mb||z4(mb,s)&&r===mb.sort?mx:r},Jr=p(Kc);function yn(s,r,u){if(u&&!xt(u))return yn(s,r,[u]);if(r.hiddenDates=[],u&&xt(u)==1){for(var o,c=0;c<u.length;c++)if(Bl(u[c])===void 0){var f={};f.start=s(u[c].start).toDate().valueOf(),f.end=s(u[c].end).toDate().valueOf(),r.hiddenDates.push(f)}Jr(o=r.hiddenDates).call(o,function(m,S){return m.start-S.start})}}function Wo(s,r,u){if(u&&!xt(u))return Wo(s,r,[u]);if(u&&r.domProps.centerContainer.width!==void 0){yn(s,r,u);for(var o=s(r.range.start),c=s(r.range.end),f=(r.range.end-r.range.start)/r.domProps.centerContainer.width,m=0;m<u.length;m++)if(Bl(u[m])!==void 0){var S=s(u[m].start),x=s(u[m].end);if(S._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(u[m].start));if(x._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(u[m].end));if(x-S>=4*f){var O=0,I=c.clone();switch(Bl(u[m])){case"daily":S.day()!=x.day()&&(O=1),S=S.dayOfYear(o.dayOfYear()).year(o.year()).subtract(7,"days"),x=x.dayOfYear(o.dayOfYear()).year(o.year()).subtract(7-O,"days"),I.add(1,"weeks");break;case"weekly":var N=x.diff(S,"days"),L=S.day();x=(S=S.date(o.date()).month(o.month()).year(o.year())).clone(),S=S.day(L).subtract(1,"weeks"),x=x.day(L).add(N,"days").subtract(1,"weeks"),I.add(1,"weeks");break;case"monthly":S.month()!=x.month()&&(O=1),S=S.month(o.month()).year(o.year()).subtract(1,"months"),x=x.month(o.month()).year(o.year()).subtract(1,"months").add(O,"months"),I.add(1,"months");break;case"yearly":S.year()!=x.year()&&(O=1),S=S.year(o.year()).subtract(1,"years"),x=x.year(o.year()).subtract(1,"years").add(O,"years"),I.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Bl(u[m]))}for(;S<I;)switch(r.hiddenDates.push({start:S.valueOf(),end:x.valueOf()}),Bl(u[m])){case"daily":S=S.add(1,"days"),x=x.add(1,"days");break;case"weekly":S=S.add(1,"weeks"),x=x.add(1,"weeks");break;case"monthly":S=S.add(1,"months"),x=x.add(1,"months");break;case"yearly":S=S.add(1,"y"),x=x.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Bl(u[m]))}r.hiddenDates.push({start:S.valueOf(),end:x.valueOf()})}}js(r);var z=Uo(r.range.start,r.hiddenDates),W=Uo(r.range.end,r.hiddenDates),X=r.range.start,Z=r.range.end;z.hidden==1&&(X=r.range.startToFront==1?z.startDate-1:z.endDate+1),W.hidden==1&&(Z=r.range.endToFront==1?W.startDate-1:W.endDate+1),z.hidden!=1&&W.hidden!=1||r.range._applyRange(X,Z)}}function js(s){for(var r,u=s.hiddenDates,o=[],c=0;c<u.length;c++)for(var f=0;f<u.length;f++)c!=f&&u[f].remove!=1&&u[c].remove!=1&&(u[f].start>=u[c].start&&u[f].end<=u[c].end?u[f].remove=!0:u[f].start>=u[c].start&&u[f].start<=u[c].end?(u[c].end=u[f].end,u[f].remove=!0):u[f].end>=u[c].start&&u[f].end<=u[c].end&&(u[c].start=u[f].start,u[f].remove=!0));for(c=0;c<u.length;c++)u[c].remove!==!0&&o.push(u[c]);s.hiddenDates=o,Jr(r=s.hiddenDates).call(r,function(m,S){return m.start-S.start})}function Go(s,r,u){for(var o=!1,c=r.current.valueOf(),f=0;f<r.hiddenDates.length;f++){var m=r.hiddenDates[f].start,S=r.hiddenDates[f].end;if(c>=m&&c<S){o=!0;break}}if(o==1&&c<r._end.valueOf()&&c!=u){var x=s(u),O=s(S);x.year()!=O.year()?r.switchedYear=!0:x.month()!=O.month()?r.switchedMonth=!0:x.dayOfYear()!=O.dayOfYear()&&(r.switchedDay=!0),r.current=O}}function bh(s,r,u){var o;if(s.body.hiddenDates.length==0)return o=s.range.conversion(u),(r.valueOf()-o.offset)*o.scale;var c=Uo(r,s.body.hiddenDates);c.hidden==1&&(r=c.startDate);var f=Xc(s.body.hiddenDates,s.range.start,s.range.end);if(r<s.range.start){o=s.range.conversion(u,f);var m=gx(s.body.hiddenDates,r,o.offset);return r=s.options.moment(r).toDate().valueOf(),r+=m,-(o.offset-r.valueOf())*o.scale}if(r>s.range.end){var S={start:s.range.start,end:r};return r=Zc(s.options.moment,s.body.hiddenDates,S,r),o=s.range.conversion(u,f),(r.valueOf()-o.offset)*o.scale}return r=Zc(s.options.moment,s.body.hiddenDates,s.range,r),o=s.range.conversion(u,f),(r.valueOf()-o.offset)*o.scale}function Ma(s,r,u){if(s.body.hiddenDates.length==0){var o=s.range.conversion(u);return new Date(r/o.scale+o.offset)}var c=Xc(s.body.hiddenDates,s.range.start,s.range.end),f=(s.range.end-s.range.start-c)*r/u,m=Qc(s.body.hiddenDates,s.range,f);return new Date(m+f+s.range.start)}function Xc(s,r,u){for(var o=0,c=0;c<s.length;c++){var f=s[c].start,m=s[c].end;f>=r&&m<u&&(o+=m-f)}return o}function gx(s,r,u){for(var o=0,c=0;c<s.length;c++){var f=s[c].start,m=s[c].end;f>=r&&m<=u&&(o+=m-f)}return o}function Zc(s,r,u,o){return o=s(o).toDate().valueOf(),o-=Jc(s,r,u,o)}function Jc(s,r,u,o){var c=0;o=s(o).toDate().valueOf();for(var f=0;f<r.length;f++){var m=r[f].start,S=r[f].end;m>=u.start&&S<u.end&&o>=S&&(c+=S-m)}return c}function Qc(s,r,u){for(var o=0,c=0,f=r.start,m=0;m<s.length;m++){var S=s[m].start,x=s[m].end;if(S>=r.start&&x<r.end){if(c+=S-f,f=x,c>=u)break;o+=x-S}}return o}function zo(s,r,u,o){var c=Uo(r,s);return c.hidden==1?u<0?o==1?c.startDate-(c.endDate-r)-1:c.startDate-1:o==1?c.endDate+(r-c.startDate)+1:c.endDate+1:r}function Uo(s,r){for(var u=0;u<r.length;u++){var o=r[u].start,c=r[u].end;if(s>=o&&s<c)return{hidden:!0,startDate:o,endDate:c}}return{hidden:!1,startDate:o,endDate:c}}var yx=Object.freeze({__proto__:null,convertHiddenOptions:yn,correctTimeForHidden:Zc,getAccumulatedHiddenDuration:Qc,getHiddenDurationBefore:Jc,getHiddenDurationBeforeStart:gx,getHiddenDurationBetween:Xc,getIsHidden:Uo,printDates:function(s){for(var r=0;r<s.length;r++)console.log(r,new Date(s[r].start),new Date(s[r].end),s[r].start,s[r].end,s[r].remove)},removeDuplicates:js,snapAwayFromHidden:zo,stepOverHiddenDates:Go,toScreen:bh,toTime:Ma,updateHiddenDates:Wo});function gb(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var Im=function(s){Zn(u,s);var r=gb(u);function u(o,c){var f,m,S,x,O,I,N,L;jt(this,u),L=r.call(this);var z=Nn().hours(0).minutes(0).seconds(0).milliseconds(0),W=z.clone().add(-3,"days").valueOf(),X=z.clone().add(3,"days").valueOf();return L.millisecondsPerPixelCache=void 0,c===void 0?(L.start=W,L.end=X):(L.start=c.start||W,L.end=c.end||X),L.rolling=!1,L.body=o,L.deltaDifference=0,L.scaleOffset=0,L.startToFront=!1,L.endToFront=!0,L.defaultOptions={rtl:!1,start:null,end:null,moment:Nn,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},L.options=K.extend({},L.defaultOptions),L.props={touch:{}},L.animationTimer=null,L.body.emitter.on("panstart",de(f=L._onDragStart).call(f,Ti(L))),L.body.emitter.on("panmove",de(m=L._onDrag).call(m,Ti(L))),L.body.emitter.on("panend",de(S=L._onDragEnd).call(S,Ti(L))),L.body.emitter.on("mousewheel",de(x=L._onMouseWheel).call(x,Ti(L))),L.body.emitter.on("touch",de(O=L._onTouch).call(O,Ti(L))),L.body.emitter.on("pinch",de(I=L._onPinch).call(I,Ti(L))),L.body.dom.rollingModeBtn.addEventListener("click",de(N=L.startRolling).call(N,Ti(L))),L.setOptions(c),L}return Jt(u,[{key:"setOptions",value:function(o){o&&(K.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,o),o.rollingMode&&o.rollingMode.follow&&this.startRolling(),("start"in o||"end"in o)&&this.setRange(o.start,o.end))}},{key:"startRolling",value:function(){var o=this;(function c(){o.stopRolling(),o.rolling=!0;var f=o.end-o.start,m=K.convert(new Date,"Date").valueOf(),S=o.options.rollingMode&&o.options.rollingMode.offset||.5,x=m-f*S,O=m+f*(1-S);o.setRange(x,O,{animation:!1}),(f=1/o.conversion(o.body.domProps.center.width).scale/10)<30&&(f=30),f>1e3&&(f=1e3),o.body.dom.rollingModeBtn.style.visibility="hidden",o.currentTimeTimer=Ci(c,f)})()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(o,c,f,m,S){f||(f={}),f.byUser!==!0&&(f.byUser=!1);var x=this,O=o!=null?K.convert(o,"Date").valueOf():null,I=c!=null?K.convert(c,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,f.animation){var N,L=this.start,z=this.end,W=ft(f.animation)==="object"&&"duration"in f.animation?f.animation.duration:500,X=ft(f.animation)==="object"&&"easingFunction"in f.animation?f.animation.easingFunction:"easeInOutQuad",Z=K.easingFunctions[X];if(!Z)throw new Error(xr(N="Unknown easing function ".concat(ta(X),". Choose from: ")).call(N,Di(K.easingFunctions).join(", ")));var Q=Qn(),ne=!1;return function Re(){if(!x.props.touch.dragging){var xe=Qn()-Q,De=Z(xe/W),fe=xe>W,We=fe||O===null?O:L+(O-L)*De,at=fe||I===null?I:z+(I-z)*De;he=x._applyRange(We,at),Wo(x.options.moment,x.body,x.options.hiddenDates),ne=ne||he;var Gt={start:new Date(x.start),end:new Date(x.end),byUser:f.byUser,event:f.event};if(S&&S(De,he,fe),he&&x.body.emitter.emit("rangechange",Gt),fe){if(ne&&(x.body.emitter.emit("rangechanged",Gt),m))return m()}else x.animationTimer=Ci(Re,20)}}()}var he=this._applyRange(O,I);if(Wo(this.options.moment,this.body,this.options.hiddenDates),he){var Te={start:new Date(this.start),end:new Date(this.end),byUser:f.byUser,event:f.event};if(this.body.emitter.emit("rangechange",Te),clearTimeout(x.timeoutID),x.timeoutID=Ci(function(){x.body.emitter.emit("rangechanged",Te)},200),m)return m()}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(o,c){var f,m=o!=null?K.convert(o,"Date").valueOf():this.start,S=c!=null?K.convert(c,"Date").valueOf():this.end,x=this.options.max!=null?K.convert(this.options.max,"Date").valueOf():null,O=this.options.min!=null?K.convert(this.options.min,"Date").valueOf():null;if(isNaN(m)||m===null)throw new Error('Invalid start "'.concat(o,'"'));if(isNaN(S)||S===null)throw new Error('Invalid end "'.concat(c,'"'));if(S<m&&(S=m),O!==null&&m<O&&(m+=f=O-m,S+=f,x!=null&&S>x&&(S=x)),x!==null&&S>x&&(m-=f=S-x,S-=f,O!=null&&m<O&&(m=O)),this.options.zoomMin!==null){var I=$v(this.options.zoomMin);I<0&&(I=0),S-m<I&&(this.end-this.start===I&&m>=this.start-.5&&S<=this.end?(m=this.start,S=this.end):(m-=(f=I-(S-m))/2,S+=f/2))}if(this.options.zoomMax!==null){var N=$v(this.options.zoomMax);N<0&&(N=0),S-m>N&&(this.end-this.start===N&&m<this.start&&S>this.end?(m=this.start,S=this.end):(m+=(f=S-m-N)/2,S-=f/2))}var L=this.start!=m||this.end!=S;return m>=this.start&&m<=this.end||S>=this.start&&S<=this.end||this.start>=m&&this.start<=S||this.end>=m&&this.end<=S||this.body.emitter.emit("checkRangedItems"),this.start=m,this.end=S,L}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(o,c){return u.conversion(this.start,this.end,o,c)}},{key:"_onDragStart",value:function(o){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(o)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(o){if(o&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var c=this.options.direction;yb(c);var f=c=="horizontal"?o.deltaX:o.deltaY;f-=this.deltaDifference;var m=this.props.touch.end-this.props.touch.start;m-=Xc(this.body.hiddenDates,this.start,this.end);var S,x=c=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height;S=this.options.rtl?f/x*m:-f/x*m;var O=this.props.touch.start+S,I=this.props.touch.end+S,N=zo(this.body.hiddenDates,O,this.previousDelta-f,!0),L=zo(this.body.hiddenDates,I,this.previousDelta-f,!0);if(N!=O||L!=I)return this.deltaDifference+=f,this.props.touch.start=N,this.props.touch.end=L,void this._onDrag(o);this.previousDelta=f,this._applyRange(O,I);var z=new Date(this.start),W=new Date(this.end);this.body.emitter.emit("rangechange",{start:z,end:W,byUser:!0,event:o}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(o){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:o}))}},{key:"_onMouseWheel",value:function(o){var c=0;if(o.wheelDelta?c=o.wheelDelta/120:o.detail?c=-o.detail/3:o.deltaY&&(c=-o.deltaY/3),!(this.options.zoomKey&&!o[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(o)&&c){var f,m,S=this.options.zoomFriction||5;if(f=c<0?1-c/S:1/(1+c/S),this.rolling){var x=this.options.rollingMode&&this.options.rollingMode.offset||.5;m=this.start+(this.end-this.start)*x}else{var O=this.getPointer({x:o.clientX,y:o.clientY},this.body.dom.center);m=this._pointerToDate(O)}this.zoom(f,m,c,o),o.preventDefault()}}},{key:"_onTouch",value:function(o){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,K.preventDefault(o)}},{key:"_onPinch",value:function(o){if(this.options.zoomable&&this.options.moveable){K.preventDefault(o),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(o.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var c=1/(o.scale+this.scaleOffset),f=this.props.touch.centerDate,m=Xc(this.body.hiddenDates,this.start,this.end),S=Jc(this.options.moment,this.body.hiddenDates,this,f),x=m-S,O=f-S+(this.props.touch.start-(f-S))*c,I=f+x+(this.props.touch.end-(f+x))*c;this.startToFront=1-c<=0,this.endToFront=c-1<=0;var N=zo(this.body.hiddenDates,O,1-c,!0),L=zo(this.body.hiddenDates,I,c-1,!0);N==O&&L==I||(this.props.touch.start=N,this.props.touch.end=L,this.scaleOffset=1-o.scale,O=N,I=L);var z={animation:!1,byUser:!0,event:o};this.setRange(O,I,z),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(o){var c=o.center?o.center.x:o.clientX,f=this.body.dom.centerContainer.getBoundingClientRect(),m=this.options.rtl?c-f.left:f.right-c,S=this.body.util.toTime(m);return S>=this.start&&S<=this.end}},{key:"_pointerToDate",value:function(o){var c,f=this.options.direction;if(yb(f),f=="horizontal")return this.body.util.toTime(o.x).valueOf();var m=this.body.domProps.center.height;return c=this.conversion(m),o.y/c.scale+c.offset}},{key:"getPointer",value:function(o,c){var f=c.getBoundingClientRect();return this.options.rtl?{x:f.right-o.x,y:o.y-f.top}:{x:o.x-f.left,y:o.y-f.top}}},{key:"zoom",value:function(o,c,f,m){c==null&&(c=(this.start+this.end)/2);var S=Xc(this.body.hiddenDates,this.start,this.end),x=Jc(this.options.moment,this.body.hiddenDates,this,c),O=S-x,I=c-x+(this.start-(c-x))*o,N=c+O+(this.end-(c+O))*o;this.startToFront=!(f>0),this.endToFront=!(-f>0);var L=zo(this.body.hiddenDates,I,f,!0),z=zo(this.body.hiddenDates,N,-f,!0);L==I&&z==N||(I=L,N=z);var W={animation:!1,byUser:!0,event:m};this.setRange(I,N,W),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(o){var c=this.end-this.start,f=this.start+c*o,m=this.end+c*o;this.start=f,this.end=m}},{key:"moveTo",value:function(o){var c=(this.start+this.end)/2-o,f=this.start-c,m=this.end-c;this.setRange(f,m,{animation:!1,byUser:!0,event:null})}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(o,c,f,m){return m===void 0&&(m=0),f!=0&&c-o!=0?{offset:o,scale:f/(c-o-m)}:{offset:0,scale:1}}}]),u}(Ia);function yb(s){if(s!="horizontal"&&s!="vertical")throw new TypeError('Unknown direction "'.concat(s,'". Choose "horizontal" or "vertical".'))}var bx=vn.some;Ke({target:"Array",proto:!0,forced:!Zu("some")},{some:function(s){return bx(this,s,arguments.length>1?arguments[1]:void 0)}});var Mm,_x=qr("Array").some,wx=Pt,U4=_x,Am=Array.prototype,kx=function(s){var r=s.some;return s===Am||wx(Am,s)&&r===Am.some?U4:r},Sx=p(kx),xx=p(Lt.setInterval),Rm=null;typeof window!="undefined"?Mm=function s(r,u){var o=u||{preventDefault:!1};if(r.Manager){var c=r,f=function(I,N){var L=Object.create(o);return N&&c.assign(L,N),s(new c(I,L),L)};return c.assign(f,c),f.Manager=function(I,N){var L=Object.create(o);return N&&c.assign(L,N),s(new c.Manager(I,L),L)},f}var m=Object.create(r),S=r.element;function x(I){return I.match(/[^ ]+/g)}function O(I){if(I.type!=="hammer.input"){if(I.srcEvent._handled||(I.srcEvent._handled={}),I.srcEvent._handled[I.type])return;I.srcEvent._handled[I.type]=!0}var N=!1;I.stopPropagation=function(){N=!0};var L=I.srcEvent.stopPropagation.bind(I.srcEvent);typeof L=="function"&&(I.srcEvent.stopPropagation=function(){L(),I.stopPropagation()}),I.firstTarget=Rm;for(var z=Rm;z&&!N;){var W=z.hammer;if(W){for(var X,Z=0;Z<W.length;Z++)if(X=W[Z]._handlers[I.type])for(var Q=0;Q<X.length&&!N;Q++)X[Q](I)}z=z.parentNode}}return S.hammer||(S.hammer=[]),S.hammer.push(m),r.on("hammer.input",function(I){o.preventDefault!==!0&&o.preventDefault!==I.pointerType||I.preventDefault(),I.isFirst&&(Rm=I.target)}),m._handlers={},m.on=function(I,N){return x(I).forEach(function(L){var z=m._handlers[L];z||(m._handlers[L]=z=[],r.on(L,O)),z.push(N)}),m},m.off=function(I,N){return x(I).forEach(function(L){var z=m._handlers[L];z&&((z=N?z.filter(function(W){return W!==N}):[]).length>0?m._handlers[L]=z:(r.off(L,O),delete m._handlers[L]))}),m},m.emit=function(I,N){Rm=N.target,r.emit(I,N)},m.destroy=function(){var I=r.element.hammer,N=I.indexOf(m);N!==-1&&I.splice(N,1),I.length||delete r.element.hammer,m._handlers={},r.destroy()},m}(window.Hammer||IS,{preventDefault:"mouse"}):Mm=function(){return function(){var s=function(){};return{on:s,off:s,destroy:s,emit:s,get:function(r){return{set:s}}}}()};var bn=Mm;function Tx(s,r){r.inputHandler=function(u){u.isFirst&&r(u)},s.on("hammer.input",r.inputHandler)}var Av=function(){function s(r,u,o,c,f){jt(this,s),this.moment=f&&f.moment||Nn,this.options=f||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(r,u,o),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,xt(c)?this.hiddenDates=c:this.hiddenDates=c!=null?[c]:[],this.format=s.FORMAT}return Jt(s,[{key:"setMoment",value:function(r){this.moment=r,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(r){var u=K.deepExtend({},s.FORMAT);this.format=K.deepExtend(u,r)}},{key:"setRange",value:function(r,u,o){if(!(r instanceof Date&&u instanceof Date))throw"No legal start or end date in method setRange";this._start=r!=null?this.moment(r.valueOf()):Qn(),this._end=u!=null?this.moment(u.valueOf()):Qn(),this.autoScale&&this.setMinimumStep(o)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&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(this.step!=1){var r=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")}r.isSame(this.current)||(this.current=this.moment(zo(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var r=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(this.current.weekday()!==0)this.current=this.current.weekday(0).add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current=this.current.add(this.step,"week");else{var u=this.current.clone();u.add(1,"week"),u.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(this.step!=1)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()==r&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Go(this.moment,this,r)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(r){r&&typeof r.scale=="string"&&(this.scale=r.scale,this.step=r.step>0?r.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(r){this.autoScale=r}},{key:"setMinimumStep",value:function(r){if(r!=null){var u=31104e6,o=2592e6,c=864e5,f=36e5,m=6e4,S=1e3;1e3*u>r&&(this.scale="year",this.step=1e3),500*u>r&&(this.scale="year",this.step=500),100*u>r&&(this.scale="year",this.step=100),50*u>r&&(this.scale="year",this.step=50),10*u>r&&(this.scale="year",this.step=10),5*u>r&&(this.scale="year",this.step=5),u>r&&(this.scale="year",this.step=1),7776e6>r&&(this.scale="month",this.step=3),o>r&&(this.scale="month",this.step=1),6048e5>r&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>r&&(this.scale="day",this.step=2),c>r&&(this.scale="day",this.step=1),432e5>r&&(this.scale="weekday",this.step=1),144e5>r&&(this.scale="hour",this.step=4),f>r&&(this.scale="hour",this.step=1),9e5>r&&(this.scale="minute",this.step=15),6e5>r&&(this.scale="minute",this.step=10),3e5>r&&(this.scale="minute",this.step=5),m>r&&(this.scale="minute",this.step=1),15e3>r&&(this.scale="second",this.step=15),1e4>r&&(this.scale="second",this.step=10),5e3>r&&(this.scale="second",this.step=5),S>r&&(this.scale="second",this.step=1),200>r&&(this.scale="millisecond",this.step=200),100>r&&(this.scale="millisecond",this.step=100),50>r&&(this.scale="millisecond",this.step=50),10>r&&(this.scale="millisecond",this.step=10),5>r&&(this.scale="millisecond",this.step=5),1>r&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==1)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(this.switchedMonth==1)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==1)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var r=this.moment(this.current);switch(this.scale){case"millisecond":return r.milliseconds()==0;case"second":return r.seconds()==0;case"minute":return r.hours()==0&&r.minutes()==0;case"hour":return r.hours()==0;case"weekday":case"day":return this.options.showWeekScale?r.isoWeekday()==1:r.date()==1;case"week":return r.date()==1;case"month":return r.month()==0;default:return!1}}},{key:"getLabelMinor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.minorLabels=="function")return this.format.minorLabels(r,this.scale,this.step);var u=this.format.minorLabels[this.scale];return this.scale==="week"&&r.date()===1&&r.weekday()!==0?"":u&&u.length>0?this.moment(r).format(u):""}},{key:"getLabelMajor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.majorLabels=="function")return this.format.majorLabels(r,this.scale,this.step);var u=this.format.majorLabels[this.scale];return u&&u.length>0?this.moment(r).format(u):""}},{key:"getClassName",value:function(){var r,u=this.moment,o=this.moment(this.current),c=o.locale?o.locale("en"):o.lang("en"),f=this.step,m=[];function S(N){return N/f%2==0?" vis-even":" vis-odd"}function x(N){return N.isSame(Qn(),"day")?" vis-today":N.isSame(u().add(1,"day"),"day")?" vis-tomorrow":N.isSame(u().add(-1,"day"),"day")?" vis-yesterday":""}function O(N){return N.isSame(Qn(),"week")?" vis-current-week":""}function I(N){return N.isSame(Qn(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":m.push(x(c)),m.push(S(c.milliseconds()));break;case"second":m.push(x(c)),m.push(S(c.seconds()));break;case"minute":m.push(x(c)),m.push(S(c.minutes()));break;case"hour":m.push(xr(r="vis-h".concat(c.hours())).call(r,this.step==4?"-h"+(c.hours()+4):"")),m.push(x(c)),m.push(S(c.hours()));break;case"weekday":m.push("vis-".concat(c.format("dddd").toLowerCase())),m.push(x(c)),m.push(O(c)),m.push(S(c.date()));break;case"day":m.push("vis-day".concat(c.date())),m.push("vis-".concat(c.format("MMMM").toLowerCase())),m.push(x(c)),m.push(I(c)),m.push(this.step<=2?x(c):""),m.push(this.step<=2?"vis-".concat(c.format("dddd").toLowerCase()):""),m.push(S(c.date()-1));break;case"week":m.push("vis-week".concat(c.format("w"))),m.push(O(c)),m.push(S(c.week()));break;case"month":m.push("vis-".concat(c.format("MMMM").toLowerCase())),m.push(I(c)),m.push(S(c.month()));break;case"year":m.push("vis-year".concat(c.year())),m.push(function(N){return N.isSame(Qn(),"year")?" vis-current-year":""}(c)),m.push(S(c.year()))}return Mt(m).call(m,String).join(" ")}}],[{key:"snap",value:function(r,u,o){var c=Nn(r);if(u=="year"){var f=c.year()+Math.round(c.month()/12);c=c.year(Math.round(f/o)*o).month(0).date(0).hours(0).minutes(0).seconds(0).milliseconds(0)}else if(u=="month")c=(c=c.date()>15?c.date(1).add(1,"month"):c.date(1)).hours(0).minutes(0).seconds(0).milliseconds(0);else if(u=="week")c=(c=c.weekday()>2?c.weekday(0).add(1,"week"):c.weekday(0)).hours(0).minutes(0).seconds(0).milliseconds(0);else if(u=="day"){switch(o){case 5:case 2:c=c.hours(24*Math.round(c.hours()/24));break;default:c=c.hours(12*Math.round(c.hours()/12))}c=c.minutes(0).seconds(0).milliseconds(0)}else if(u=="weekday"){switch(o){case 5:case 2:c=c.hours(12*Math.round(c.hours()/12));break;default:c=c.hours(6*Math.round(c.hours()/6))}c=c.minutes(0).seconds(0).milliseconds(0)}else if(u=="hour")o===4?c=c.minutes(60*Math.round(c.minutes()/60)):c=c.minutes(30*Math.round(c.minutes()/30)),c=c.seconds(0).milliseconds(0);else if(u=="minute"){switch(o){case 15:case 10:c=c.minutes(5*Math.round(c.minutes()/5)).seconds(0);break;case 5:c=c.seconds(60*Math.round(c.seconds()/60));break;default:c=c.seconds(30*Math.round(c.seconds()/30))}c=c.milliseconds(0)}else if(u=="second")switch(o){case 15:case 10:c=c.seconds(5*Math.round(c.seconds()/5)).milliseconds(0);break;case 5:c=c.milliseconds(1e3*Math.round(c.milliseconds()/1e3));break;default:c=c.milliseconds(500*Math.round(c.milliseconds()/500))}else if(u=="millisecond"){var m=o>5?o/2:1;c=c.milliseconds(Math.round(c.milliseconds()/m)*m)}return c}}]),s}();function V4(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}Av.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 ed=function(s){Zn(u,s);var r=V4(u);function u(o,c){var f;return jt(this,u),(f=r.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},f.props={range:{start:0,end:0,minimumStep:0},lineTop:0},f.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:K.extend({},Av.FORMAT),moment:Nn,timeAxis:null},f.options=K.extend({},f.defaultOptions),f.body=o,f._create(),f.setOptions(c),f}return Jt(u,[{key:"setOptions",value:function(o){o&&(K.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,o),K.selectiveDeepExtend(["format"],this.options,o),"orientation"in o&&(typeof o.orientation=="string"?this.options.orientation.axis=o.orientation:ft(o.orientation)==="object"&&"axis"in o.orientation&&(this.options.orientation.axis=o.orientation.axis)),"locale"in o&&(typeof Nn.locale=="function"?Nn.locale(o.locale):Nn.lang(o.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var o=this.props,c=this.dom.foreground,f=this.dom.background,m=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,S=c.parentNode!==m;this._calculateCharSize();var x=this.options.showMinorLabels&&this.options.orientation.axis!=="none",O=this.options.showMajorLabels&&this.options.orientation.axis!=="none";o.minorLabelHeight=x?o.minorCharHeight:0,o.majorLabelHeight=O?o.majorCharHeight:0,o.height=o.minorLabelHeight+o.majorLabelHeight,o.width=c.offsetWidth,o.minorLineHeight=this.body.domProps.root.height-o.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),o.minorLineWidth=1,o.majorLineHeight=o.minorLineHeight+o.majorLabelHeight,o.majorLineWidth=1;var I=c.nextSibling,N=f.nextSibling;return c.parentNode&&c.parentNode.removeChild(c),f.parentNode&&f.parentNode.removeChild(f),c.style.height="".concat(this.props.height,"px"),this._repaintLabels(),I?m.insertBefore(c,I):m.appendChild(c),N?this.body.dom.backgroundVertical.insertBefore(f,N):this.body.dom.backgroundVertical.appendChild(f),this._isResized()||S}},{key:"_repaintLabels",value:function(){var o=this.options.orientation.axis,c=K.convert(this.body.range.start,"Number"),f=K.convert(this.body.range.end,"Number"),m=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),S=m-Jc(this.options.moment,this.body.hiddenDates,this.body.range,m);S-=this.body.util.toTime(0).valueOf();var x=new Av(new Date(c),new Date(f),S,this.body.hiddenDates,this.options);x.setMoment(this.options.moment),this.options.format&&x.setFormat(this.options.format),this.options.timeAxis&&x.setScale(this.options.timeAxis),this.step=x;var O,I,N,L,z,W,X=this.dom;X.redundant.lines=X.lines,X.redundant.majorTexts=X.majorTexts,X.redundant.minorTexts=X.minorTexts,X.lines=[],X.majorTexts=[],X.minorTexts=[];var Z,Q,ne,he=0,Te=void 0,Re=0,xe=1e3;for(x.start(),I=x.getCurrent(),L=this.body.util.toScreen(I);x.hasNext()&&Re<xe;){if(Re++,z=x.isMajor(),ne=x.getClassName(),O=I,N=L,x.next(),I=x.getCurrent(),Z=he,he=(L=this.body.util.toScreen(I))-N,x.scale==="week"?W=!0:W=he>=.4*Z,this.options.showMinorLabels&&W){var De=this._repaintMinorText(N,x.getLabelMinor(O),o,ne);De.style.width="".concat(he,"px")}z&&this.options.showMajorLabels?(N>0&&(Te==null&&(Te=N),De=this._repaintMajorText(N,x.getLabelMajor(O),o,ne)),Q=this._repaintMajorLine(N,he,o,ne)):W?Q=this._repaintMinorLine(N,he,o,ne):Q&&(Q.style.width="".concat(ea(Q.style.width)+he,"px"))}if(Re!==xe||bb||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(xe," lines.")),bb=!0),this.options.showMajorLabels){var fe=this.body.util.toTime(0),We=x.getLabelMajor(fe),at=We.length*(this.props.majorCharWidth||10)+10;(Te==null||at<Te)&&this._repaintMajorText(0,We,o,ne)}Ae(K).call(K,this.dom.redundant,function(Gt){for(;Gt.length;){var yr=Gt.pop();yr&&yr.parentNode&&yr.parentNode.removeChild(yr)}})}},{key:"_repaintMinorText",value:function(o,c,f,m){var S=this.dom.redundant.minorTexts.shift();if(!S){var x=document.createTextNode("");(S=document.createElement("div")).appendChild(x),this.dom.foreground.appendChild(S)}this.dom.minorTexts.push(S),S.innerHTML=K.xss(c);var O=f=="top"?this.props.majorLabelHeight:0;return this._setXY(S,o,O),S.className="vis-text vis-minor ".concat(m),S}},{key:"_repaintMajorText",value:function(o,c,f,m){var S=this.dom.redundant.majorTexts.shift();if(!S){var x=document.createElement("div");(S=document.createElement("div")).appendChild(x),this.dom.foreground.appendChild(S)}S.childNodes[0].innerHTML=K.xss(c),S.className="vis-text vis-major ".concat(m);var O=f=="top"?0:this.props.minorLabelHeight;return this._setXY(S,o,O),this.dom.majorTexts.push(S),S}},{key:"_setXY",value:function(o,c,f){var m,S=this.options.rtl?-1*c:c;o.style.transform=xr(m="translate(".concat(S,"px, ")).call(m,f,"px)")}},{key:"_repaintMinorLine",value:function(o,c,f,m){var S,x=this.dom.redundant.lines.shift();x||(x=document.createElement("div"),this.dom.background.appendChild(x)),this.dom.lines.push(x);var O=this.props;x.style.width="".concat(c,"px"),x.style.height="".concat(O.minorLineHeight,"px");var I=f=="top"?O.majorLabelHeight:this.body.domProps.top.height,N=o-O.minorLineWidth/2;return this._setXY(x,N,I),x.className=xr(S="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(S,m),x}},{key:"_repaintMajorLine",value:function(o,c,f,m){var S,x=this.dom.redundant.lines.shift();x||(x=document.createElement("div"),this.dom.background.appendChild(x)),this.dom.lines.push(x);var O=this.props;x.style.width="".concat(c,"px"),x.style.height="".concat(O.majorLineHeight,"px");var I=f=="top"?0:this.body.domProps.top.height,N=o-O.majorLineWidth/2;return this._setXY(x,N,I),x.className=xr(S="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(S,m),x}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),u}(Ia),bb=!1;function Aa(s){var r,u;this.active=!1,this.dom={container:s},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=bn(this.dom.overlay),this.hammer.on("tap",de(r=this._onTapOverlay).call(r,this));var o=this,c=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ae(c).call(c,function(f){o.hammer.on(f,function(m){m.stopPropagation()})}),document&&document.body&&(this.onClick=function(f){(function(m,S){for(;m;){if(m===S)return!0;m=m.parentNode}return!1})(f.target,s)||o.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=function(f){var m,S=window,x={},O={keydown:{},keyup:{}},I={};for(m=97;m<=122;m++)I[String.fromCharCode(m)]={code:m-97+65,shift:!1};for(m=65;m<=90;m++)I[String.fromCharCode(m)]={code:m,shift:!0};for(m=0;m<=9;m++)I[""+m]={code:48+m,shift:!1};for(m=1;m<=12;m++)I["F"+m]={code:111+m,shift:!1};for(m=0;m<=9;m++)I["num"+m]={code:96+m,shift:!1};I["num*"]={code:106,shift:!1},I["num+"]={code:107,shift:!1},I["num-"]={code:109,shift:!1},I["num/"]={code:111,shift:!1},I["num."]={code:110,shift:!1},I.left={code:37,shift:!1},I.up={code:38,shift:!1},I.right={code:39,shift:!1},I.down={code:40,shift:!1},I.space={code:32,shift:!1},I.enter={code:13,shift:!1},I.shift={code:16,shift:void 0},I.esc={code:27,shift:!1},I.backspace={code:8,shift:!1},I.tab={code:9,shift:!1},I.ctrl={code:17,shift:!1},I.alt={code:18,shift:!1},I.delete={code:46,shift:!1},I.pageup={code:33,shift:!1},I.pagedown={code:34,shift:!1},I["="]={code:187,shift:!1},I["-"]={code:189,shift:!1},I["]"]={code:221,shift:!1},I["["]={code:219,shift:!1};var N=function(W){z(W,"keydown")},L=function(W){z(W,"keyup")},z=function(W,X){if(O[X][W.keyCode]!==void 0)for(var Z=O[X][W.keyCode],Q=0;Q<Z.length;Q++)(Z[Q].shift===void 0||Z[Q].shift==1&&W.shiftKey==1||Z[Q].shift==0&&W.shiftKey==0)&&Z[Q].fn(W)};return x.bind=function(W,X,Z){if(Z===void 0&&(Z="keydown"),I[W]===void 0)throw new Error("unsupported key: "+W);O[Z][I[W].code]===void 0&&(O[Z][I[W].code]=[]),O[Z][I[W].code].push({fn:X,shift:I[W].shift})},x.bindAll=function(W,X){for(var Z in X===void 0&&(X="keydown"),I)I.hasOwnProperty(Z)&&x.bind(Z,W,X)},x.getKey=function(W){for(var X in I)if(I.hasOwnProperty(X)&&(W.shiftKey==1&&I[X].shift==1&&W.keyCode==I[X].code||W.shiftKey==0&&I[X].shift==0&&W.keyCode==I[X].code||W.keyCode==I[X].code&&X=="shift"))return X;return"unknown key, currently not supported"},x.unbind=function(W,X,Z){if(Z===void 0&&(Z="keydown"),I[W]===void 0)throw new Error("unsupported key: "+W);if(X!==void 0){var Q=[],ne=O[Z][I[W].code];if(ne!==void 0)for(var he=0;he<ne.length;he++)ne[he].fn==X&&ne[he].shift==I[W].shift||Q.push(O[Z][I[W].code][he]);O[Z][I[W].code]=Q}else O[Z][I[W].code]=[]},x.reset=function(){O={keydown:{},keyup:{}}},x.destroy=function(){O={keydown:{},keyup:{}},S.removeEventListener("keydown",N,!0),S.removeEventListener("keyup",L,!0)},S.addEventListener("keydown",N,!0),S.addEventListener("keyup",L,!0),x}(),this.escListener=de(u=this.deactivate).call(u,this)}C0(Aa.prototype),Aa.current=null,Aa.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},Aa.prototype.activate=function(){var s;Aa.current&&Aa.current.deactivate(),Aa.current=this,this.active=!0,this.dom.overlay.style.display="none",K.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),de(s=this.keycharm).call(s,"esc",this.escListener)},Aa.prototype.deactivate=function(){Aa.current===this&&(Aa.current=null),this.active=!1,this.dom.overlay.style.display="",K.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},Aa.prototype._onTapOverlay=function(s){this.activate(),s.stopPropagation()};var _b={current:"current",time:"time",deleteSelected:"Delete selected"},Nm={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},wb={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},Cx={current:"Aktuelle",time:"Zeit",deleteSelected:"L\xF6sche Auswahl"},Rv={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},Ex={current:"corriente",time:"hora",deleteSelected:"Eliminar selecci\xF3n"},kb={current:"\u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0439",time:"\u0447\u0430\u0441",deleteSelected:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043E\u0431\u0440\u0430\u043D\u0435"},Lm={current:"\u0442\u0435\u043A\u0443\u0449\u0435\u0435",time:"\u0432\u0440\u0435\u043C\u044F",deleteSelected:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435"},Dx={current:"aktualny",time:"czas",deleteSelected:"Usu\u0144 wybrane"},Fm={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},Nv={current:"\u73FE\u5728",time:"\u6642\u523B",deleteSelected:"\u9078\u629E\u3055\u308C\u305F\u3082\u306E\u3092\u524A\u9664"},Sb={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},Lv={current:"n\xE5v\xE6rende",time:"tid",deleteSelected:"Slett valgte"},Ox={current:"einamas",time:"laikas",deleteSelected:"Pa\u0161alinti pasirinkt\u0105"},td={en:_b,en_EN:_b,en_US:_b,it:Nm,it_IT:Nm,it_CH:Nm,nl:wb,nl_NL:wb,nl_BE:wb,de:Cx,de_DE:Cx,fr:Rv,fr_FR:Rv,fr_CA:Rv,fr_BE:Rv,es:Ex,es_ES:Ex,uk:kb,uk_UA:kb,ru:Lm,ru_RU:Lm,pl:Dx,pl_PL:Dx,pt:Fm,pt_BR:Fm,pt_PT:Fm,ja:Nv,ja_JP:Nv,lt:Ox,lt_LT:Ox,sv:Sb,sv_SE:Sb,nb:Lv,nn:Lv,nb_NO:Lv,nn_NO:Lv};function Ys(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var jm=function(s){Zn(u,s);var r=Ys(u);function u(o,c){var f,m;jt(this,u),(m=r.call(this)).body=o,m.defaultOptions={moment:Nn,locales:td,locale:"en",id:void 0,title:void 0},m.options=K.extend({},m.defaultOptions),m.setOptions(c),m.options.locales=K.extend({},td,m.options.locales);var S=m.defaultOptions.locales[m.defaultOptions.locale];return Ae(f=Di(m.options.locales)).call(f,function(x){m.options.locales[x]=K.extend({},S,m.options.locales[x])}),c&&c.time!=null?m.customTime=c.time:m.customTime=new Date,m.eventParams={},m._create(),m}return Jt(u,[{key:"setOptions",value:function(o){o&&K.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,o)}},{key:"_create",value:function(){var o,c,f,m=document.createElement("div");m["custom-time"]=this,m.className="vis-custom-time ".concat(this.options.id||""),m.style.position="absolute",m.style.top="0px",m.style.height="100%",this.bar=m;var S=document.createElement("div");function x(O){this.body.range._onMouseWheel(O)}S.style.position="relative",S.style.top="0px",this.options.rtl?S.style.right="-10px":S.style.left="-10px",S.style.height="100%",S.style.width="20px",S.addEventListener?(S.addEventListener("mousewheel",de(x).call(x,this),!1),S.addEventListener("DOMMouseScroll",de(x).call(x,this),!1)):S.attachEvent("onmousewheel",de(x).call(x,this)),m.appendChild(S),this.hammer=new bn(S),this.hammer.on("panstart",de(o=this._onDragStart).call(o,this)),this.hammer.on("panmove",de(c=this._onDrag).call(c,this)),this.hammer.on("panend",de(f=this._onDragEnd).call(f,this)),this.hammer.get("pan").set({threshold:5,direction:bn.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var o=this.body.dom.backgroundVertical;this.bar.parentNode!=o&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),o.appendChild(this.bar));var c=this.body.util.toScreen(this.customTime),f=this.options.locales[this.options.locale];f||(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),f=this.options.locales.en);var m,S=this.options.title;return S===void 0?S=(S=xr(m="".concat(f.time,": ")).call(m,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+S.substring(1):typeof S=="function"&&(S=S.call(this,this.customTime)),this.options.rtl?this.bar.style.right="".concat(c,"px"):this.bar.style.left="".concat(c,"px"),this.bar.title=S,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(o){this.customTime=K.convert(o,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(o,c){var f,m;this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=K.xss(o),this.marker.style.position="absolute",c&&(this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",function(){this.marker.focus()}),this.marker.addEventListener("input",de(f=this._onMarkerChange).call(f,this)),this.marker.title=o,this.marker.addEventListener("blur",de(m=function(S){this.title!=S.target.innerHTML&&(this._onMarkerChanged(S),this.title=S.target.innerHTML)}).call(m,this))),this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(o){this.options.title=o}},{key:"_onDragStart",value:function(o){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,o.stopPropagation()}},{key:"_onDrag",value:function(o){if(this.eventParams.dragging){var c=this.options.rtl?-1*o.deltaX:o.deltaX,f=this.body.util.toScreen(this.eventParams.customTime)+c,m=this.body.util.toTime(f),S=this.body.util.getScale(),x=this.body.util.getStep(),O=this.options.snap,I=O?O(m,S,x):m;this.setCustomTime(I),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:o}),o.stopPropagation()}}},{key:"_onDragEnd",value:function(o){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:o}),o.stopPropagation())}},{key:"_onMarkerChange",value:function(o){this.body.emitter.emit("markerchange",{id:this.options.id,title:o.target.innerHTML,event:o}),o.stopPropagation()}},{key:"_onMarkerChanged",value:function(o){this.body.emitter.emit("markerchanged",{id:this.options.id,title:o.target.innerHTML,event:o}),o.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(o){for(var c=o.target;c;){if(c.hasOwnProperty("custom-time"))return c["custom-time"];c=c.parentNode}return null}}]),u}(Ia),_h=function(){function s(){jt(this,s)}return Jt(s,[{key:"_create",value:function(r){var u,o,c,f=this;this.dom={},this.dom.container=r,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){f.initialDrawDone===!0&&f._redraw()}),this.on("rangechanged",function(){f.initialRangeChangeDone||(f.initialRangeChangeDone=!0)}),this.on("touch",de(u=this._onTouch).call(u,this)),this.on("panmove",de(o=this._onDrag).call(o,this));var m=this;this._origRedraw=de(c=this._redraw).call(c,this),this._redraw=K.throttle(this._origRedraw),this.on("_change",function(Q){m.itemSet&&m.itemSet.initialItemSetDrawn&&Q&&Q.queue==1?m._redraw():m._origRedraw()}),this.hammer=new bn(this.dom.root);var S=this.hammer.get("pinch").set({enable:!0});S&&function(Q){Q.getTouchAction=function(){return["pan-y"]}}(S),this.hammer.get("pan").set({threshold:5,direction:bn.DIRECTION_ALL}),this.timelineListeners={};var x,O,I=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function N(Q){this.isActive()&&this.emit("mousewheel",Q);var ne=0,he=0;if("detail"in Q&&(he=-1*Q.detail),"wheelDelta"in Q&&(he=Q.wheelDelta),"wheelDeltaY"in Q&&(he=Q.wheelDeltaY),"wheelDeltaX"in Q&&(ne=-1*Q.wheelDeltaX),"axis"in Q&&Q.axis===Q.HORIZONTAL_AXIS&&(ne=-1*he,he=0),"deltaY"in Q&&(he=-1*Q.deltaY),"deltaX"in Q&&(ne=Q.deltaX),Q.deltaMode&&(Q.deltaMode===1?(ne*=40,he*=40):(ne*=40,he*=800)),this.options.preferZoom){if(!this.options.zoomKey||Q[this.options.zoomKey])return}else if(this.options.zoomKey&&Q[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll){if(this.options.verticalScroll&&Math.abs(he)>=Math.abs(ne)){var Te=this.props.scrollTop,Re=Te+he;this.isActive()&&this._setScrollTop(Re)!==Te&&(this._redraw(),this.emit("scroll",Q),Q.preventDefault())}else if(this.options.horizontalScroll){var xe=(Math.abs(ne)>=Math.abs(he)?ne:he)/120*(this.range.end-this.range.start)/20,De=this.range.start+xe,fe=this.range.end+xe,We={animation:!1,byUser:!0,event:Q};this.range.setRange(De,fe,We),Q.preventDefault()}}}Ae(I).call(I,function(Q){var ne=function(he){m.isActive()&&m.emit(Q,he)};m.hammer.on(Q,ne),m.timelineListeners[Q]=ne}),Tx(this.hammer,function(Q){m.emit("touch",Q)}),x=this.hammer,(O=function(Q){m.emit("release",Q)}).inputHandler=function(Q){Q.isFinal&&O(Q)},x.on("hammer.input",O.inputHandler);var L="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function z(Q){if(m.options.verticalScroll&&(Q.preventDefault(),m.isActive())){var ne=-Q.target.scrollTop;m._setScrollTop(ne),m._redraw(),m.emit("scrollSide",Q)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(L,de(N).call(N,this),!1),this.dom.top.addEventListener(L,de(N).call(N,this),!1),this.dom.bottom.addEventListener(L,de(N).call(N,this),!1),this.dom.left.parentNode.addEventListener("scroll",de(z).call(z,this)),this.dom.right.parentNode.addEventListener("scroll",de(z).call(z,this));var W=!1;function X(Q){var ne;if(Q.preventDefault&&(m.emit("dragover",m.getEventProperties(Q)),Q.preventDefault()),er(ne=Q.target.className).call(ne,"timeline")>-1&&!W)return Q.dataTransfer.dropEffect="move",W=!0,!1}function Z(Q){Q.preventDefault&&Q.preventDefault(),Q.stopPropagation&&Q.stopPropagation();try{var ne=JSON.parse(Q.dataTransfer.getData("text"));if(!ne||!ne.content)return}catch(he){return!1}return W=!1,Q.center={x:Q.clientX,y:Q.clientY},ne.target!=="item"?m.itemSet._onAddItem(Q):m.itemSet._onDropObjectOnItem(Q),m.emit("drop",m.getEventProperties(Q)),!1}if(this.dom.center.addEventListener("dragover",de(X).call(X,this),!1),this.dom.center.addEventListener("drop",de(Z).call(Z,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!r)throw new Error("No container provided");r.appendChild(this.dom.root),r.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(r){var u;if(r){if(K.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,r),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"),ft(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation={item:r.orientation,axis:r.orientation}:ft(r.orientation)==="object"&&("item"in r.orientation&&(this.options.orientation.item=r.orientation.item),"axis"in r.orientation&&(this.options.orientation.axis=r.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var o=this.timeAxis2=new ed(this.body,this.options);o.setOptions=function(O){var I=O?K.extend({},O):{};I.orientation="top",ed.prototype.setOptions.call(o,I)},this.components.push(o)}}else if(this.timeAxis2){var c,f,m=er(c=this.components).call(c,this.timeAxis2);m!==-1&&Ln(f=this.components).call(f,m,1),this.timeAxis2.destroy(),this.timeAxis2=null}typeof r.drawPoints=="function"&&(r.drawPoints={onRender:r.drawPoints}),"hiddenDates"in this.options&&yn(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in r&&(r.clickToUse?this.activator||(this.activator=new Aa(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(Ae(u=this.components).call(u,function(O){return O.setOptions(r)}),"configure"in r){var S;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(r.configure);var x=K.deepExtend({},this.options);Ae(S=this.components).call(S,function(O){K.deepExtend(x,O.options)}),this.configurator.setModuleOptions({global:x})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var r;for(var u in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(u)&&delete this.timelineListeners[u];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,Ae(r=this.components).call(r,function(o){return o.destroy()}),this.body=null}},{key:"setCustomTime",value:function(r,u){var o,c=Mt(o=this.customTimes).call(o,function(f){return u===f.options.id});if(c.length===0)throw new Error("No custom time bar found with id ".concat(ta(u)));c.length>0&&c[0].setCustomTime(r)}},{key:"getCustomTime",value:function(r){var u,o=Mt(u=this.customTimes).call(u,function(c){return c.options.id===r});if(o.length===0)throw new Error("No custom time bar found with id ".concat(ta(r)));return o[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(r,u,o){var c,f=Mt(c=this.customTimes).call(c,function(m){return m.options.id===u});if(f.length===0)throw new Error("No custom time bar found with id ".concat(ta(u)));f.length>0&&f[0].setCustomMarker(r,o)}},{key:"setCustomTimeTitle",value:function(r,u){var o,c=Mt(o=this.customTimes).call(o,function(f){return f.options.id===u});if(c.length===0)throw new Error("No custom time bar found with id ".concat(ta(u)));if(c.length>0)return c[0].setCustomTitle(r)}},{key:"getEventProperties",value:function(r){return{event:r}}},{key:"addCustomTime",value:function(r,u){var o,c=r!==void 0?K.convert(r,"Date"):new Date,f=Sx(o=this.customTimes).call(o,function(S){return S.options.id===u});if(f)throw new Error("A custom time with id ".concat(ta(u)," already exists"));var m=new jm(this.body,K.extend({},this.options,{time:c,id:u,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(m),this.components.push(m),this._redraw(),u}},{key:"removeCustomTime",value:function(r){var u,o=this,c=Mt(u=this.customTimes).call(u,function(f){return f.options.id===r});if(c.length===0)throw new Error("No custom time bar found with id ".concat(ta(r)));Ae(c).call(c,function(f){var m,S,x,O;Ln(m=o.customTimes).call(m,er(S=o.customTimes).call(S,f),1),Ln(x=o.components).call(x,er(O=o.components).call(O,f),1),f.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(r){return this.time=r,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(r,u){var o=this.getDataRange();if(o.min!==null||o.max!==null){var c=o.max-o.min,f=new Date(o.min.valueOf()-.01*c),m=new Date(o.max.valueOf()+.01*c),S=!r||r.animation===void 0||r.animation;this.range.setRange(f,m,{animation:S},u)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(r,u,o,c){var f,m;typeof arguments[2]=="function"&&(c=arguments[2],o={}),arguments.length==1?(f=(m=arguments[0]).animation===void 0||m.animation,this.range.setRange(m.start,m.end,{animation:f})):arguments.length==2&&typeof arguments[1]=="function"?(c=arguments[1],f=(m=arguments[0]).animation===void 0||m.animation,this.range.setRange(m.start,m.end,{animation:f},c)):(f=!o||o.animation===void 0||o.animation,this.range.setRange(r,u,{animation:f},c))}},{key:"moveTo",value:function(r,u,o){typeof arguments[1]=="function"&&(o=arguments[1],u={});var c=this.range.end-this.range.start,f=K.convert(r,"Date").valueOf(),m=f-c/2,S=f+c/2,x=!u||u.animation===void 0||u.animation;this.range.setRange(m,S,{animation:x},o)}},{key:"getWindow",value:function(){var r=this.range.getRange();return{start:new Date(r.start),end:new Date(r.end)}}},{key:"zoomIn",value:function(r,u,o){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(o=arguments[1],u={});var c=this.getWindow(),f=c.start.valueOf(),m=c.end.valueOf(),S=m-f,x=(S-S/(1+r))/2,O=f+x,I=m-x;this.setWindow(O,I,u,o)}}},{key:"zoomOut",value:function(r,u,o){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(o=arguments[1],u={});var c=this.getWindow(),f=c.start.valueOf(),m=c.end.valueOf(),S=m-f,x=f-S*r/2,O=m+S*r/2;this.setWindow(x,O,u,o)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var r;this.redrawCount++;var u=this.dom;if(u&&u.container&&u.root.offsetWidth!=0){var o=!1,c=this.options,f=this.props;Wo(this.options.moment,this.body,this.options.hiddenDates),c.orientation=="top"?(K.addClassName(u.root,"vis-top"),K.removeClassName(u.root,"vis-bottom")):(K.removeClassName(u.root,"vis-top"),K.addClassName(u.root,"vis-bottom")),c.rtl?(K.addClassName(u.root,"vis-rtl"),K.removeClassName(u.root,"vis-ltr")):(K.addClassName(u.root,"vis-ltr"),K.removeClassName(u.root,"vis-rtl")),u.root.style.maxHeight=K.option.asSize(c.maxHeight,""),u.root.style.minHeight=K.option.asSize(c.minHeight,""),u.root.style.width=K.option.asSize(c.width,"");var m=u.root.offsetWidth;f.border.left=1,f.border.right=1,f.border.top=1,f.border.bottom=1,f.center.height=u.center.offsetHeight,f.left.height=u.left.offsetHeight,f.right.height=u.right.offsetHeight,f.top.height=u.top.clientHeight||-f.border.top,f.bottom.height=Math.round(u.bottom.getBoundingClientRect().height)||u.bottom.clientHeight||-f.border.bottom;var S=Math.max(f.left.height,f.center.height,f.right.height),x=f.top.height+S+f.bottom.height+f.border.top+f.border.bottom;u.root.style.height=K.option.asSize(c.height,"".concat(x,"px")),f.root.height=u.root.offsetHeight,f.background.height=f.root.height;var O=f.root.height-f.top.height-f.bottom.height;f.centerContainer.height=O,f.leftContainer.height=O,f.rightContainer.height=f.leftContainer.height,f.root.width=m,f.background.width=f.root.width,this.initialDrawDone||(f.scrollbarWidth=K.getScrollBarWidth());var I=u.leftContainer.clientWidth,N=u.rightContainer.clientWidth;c.verticalScroll?c.rtl?(f.left.width=I||-f.border.left,f.right.width=N+f.scrollbarWidth||-f.border.right):(f.left.width=I+f.scrollbarWidth||-f.border.left,f.right.width=N||-f.border.right):(f.left.width=I||-f.border.left,f.right.width=N||-f.border.right),this._setDOM();var L=this._updateScrollTop();c.orientation.item!="top"&&(L+=Math.max(f.centerContainer.height-f.center.height-f.border.top-f.border.bottom,0)),u.center.style.transform="translateY(".concat(L,"px)");var z=f.scrollTop==0?"hidden":"",W=f.scrollTop==f.scrollTopMin?"hidden":"";u.shadowTop.style.visibility=z,u.shadowBottom.style.visibility=W,u.shadowTopLeft.style.visibility=z,u.shadowBottomLeft.style.visibility=W,u.shadowTopRight.style.visibility=z,u.shadowBottomRight.style.visibility=W,c.verticalScroll&&(u.rightContainer.className="vis-panel vis-right vis-vertical-scroll",u.leftContainer.className="vis-panel vis-left vis-vertical-scroll",u.shadowTopRight.style.visibility="hidden",u.shadowBottomRight.style.visibility="hidden",u.shadowTopLeft.style.visibility="hidden",u.shadowBottomLeft.style.visibility="hidden",u.left.style.top="0px",u.right.style.top="0px"),(!c.verticalScroll||f.center.height<f.centerContainer.height)&&(u.left.style.top="".concat(L,"px"),u.right.style.top="".concat(L,"px"),u.rightContainer.className=u.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),u.leftContainer.className=u.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),f.left.width=I||-f.border.left,f.right.width=N||-f.border.right,this._setDOM());var X=f.center.height>f.centerContainer.height;if(this.hammer.get("pan").set({direction:X?bn.DIRECTION_ALL:bn.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),Ae(r=this.components).call(r,function(Z){o=Z.redraw()||o}),o){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var r=this.props,u=this.dom;r.leftContainer.width=r.left.width,r.rightContainer.width=r.right.width;var o=r.root.width-r.left.width-r.right.width;r.center.width=o,r.centerContainer.width=o,r.top.width=o,r.bottom.width=o,u.background.style.height="".concat(r.background.height,"px"),u.backgroundVertical.style.height="".concat(r.background.height,"px"),u.backgroundHorizontal.style.height="".concat(r.centerContainer.height,"px"),u.centerContainer.style.height="".concat(r.centerContainer.height,"px"),u.leftContainer.style.height="".concat(r.leftContainer.height,"px"),u.rightContainer.style.height="".concat(r.rightContainer.height,"px"),u.background.style.width="".concat(r.background.width,"px"),u.backgroundVertical.style.width="".concat(r.centerContainer.width,"px"),u.backgroundHorizontal.style.width="".concat(r.background.width,"px"),u.centerContainer.style.width="".concat(r.center.width,"px"),u.top.style.width="".concat(r.top.width,"px"),u.bottom.style.width="".concat(r.bottom.width,"px"),u.background.style.left="0",u.background.style.top="0",u.backgroundVertical.style.left="".concat(r.left.width+r.border.left,"px"),u.backgroundVertical.style.top="0",u.backgroundHorizontal.style.left="0",u.backgroundHorizontal.style.top="".concat(r.top.height,"px"),u.centerContainer.style.left="".concat(r.left.width,"px"),u.centerContainer.style.top="".concat(r.top.height,"px"),u.leftContainer.style.left="0",u.leftContainer.style.top="".concat(r.top.height,"px"),u.rightContainer.style.left="".concat(r.left.width+r.center.width,"px"),u.rightContainer.style.top="".concat(r.top.height,"px"),u.top.style.left="".concat(r.left.width,"px"),u.top.style.top="0",u.bottom.style.left="".concat(r.left.width,"px"),u.bottom.style.top="".concat(r.top.height+r.centerContainer.height,"px"),u.center.style.left="0",u.left.style.left="0",u.right.style.left="0"}},{key:"setCurrentTime",value:function(r){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(r)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(r){return Ma(this,r,this.props.center.width)}},{key:"_toGlobalTime",value:function(r){return Ma(this,r,this.props.root.width)}},{key:"_toScreen",value:function(r){return bh(this,r,this.props.center.width)}},{key:"_toGlobalScreen",value:function(r){return bh(this,r,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==1?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var r=this;this._stopAutoResize(),this._onResize=function(){if(r.options.autoResize==1){if(r.dom.root){var u=r.dom.root.offsetHeight,o=r.dom.root.offsetWidth;o==r.props.lastWidth&&u==r.props.lastHeight||(r.props.lastWidth=o,r.props.lastHeight=u,r.props.scrollbarWidth=K.getScrollBarWidth(),r.body.emitter.emit("_change"))}}else r._stopAutoResize()},window.addEventListener("resize",this._onResize),r.dom.root&&(r.props.lastWidth=r.dom.root.offsetWidth,r.props.lastHeight=r.dom.root.offsetHeight),this.watchTimer=xx(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(r){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(r){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(r){if(r&&this.touch.allowDragging){var u=r.deltaY,o=this._getScrollTop(),c=this._setScrollTop(this.touch.initialScrollTop+u);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),c!=o&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(r){return this.props.scrollTop=r,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var r=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return r!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(this.props.scrollTop+=r-this.props.scrollTopMin),this.props.scrollTopMin=r),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<r&&(this.props.scrollTop=r),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),s}();function q4(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}C0(_h.prototype);var xb=function(s){Zn(u,s);var r=q4(u);function u(o,c){var f,m;jt(this,u),(m=r.call(this)).body=o,m.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Nn,locales:td,locale:"en"},m.options=K.extend({},m.defaultOptions),m.setOptions(c),m.options.locales=K.extend({},td,m.options.locales);var S=m.defaultOptions.locales[m.defaultOptions.locale];return Ae(f=Di(m.options.locales)).call(f,function(x){m.options.locales[x]=K.extend({},S,m.options.locales[x])}),m.offset=0,m._create(),m}return Jt(u,[{key:"_create",value:function(){var o=document.createElement("div");o.className="vis-current-time",o.style.position="absolute",o.style.top="0px",o.style.height="100%",this.bar=o}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(o){o&&K.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,o)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var o,c,f=this.body.dom.backgroundVertical;this.bar.parentNode!=f&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),f.appendChild(this.bar),this.start());var m=this.options.moment(Qn()+this.offset);this.options.alignCurrentTime&&(m=m.startOf(this.options.alignCurrentTime));var S=this.body.util.toScreen(m),x=this.options.locales[this.options.locale];x||(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),x=this.options.locales.en);var O=xr(o=xr(c="".concat(x.current," ")).call(c,x.time,": ")).call(o,m.format("dddd, MMMM Do YYYY, H:mm:ss"));O=O.charAt(0).toUpperCase()+O.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*S,"px)"):this.bar.style.transform="translateX(".concat(S,"px)"),this.bar.title=O}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var o=this;(function c(){o.stop();var f=1/o.body.range.conversion(o.body.domProps.center.width).scale/10;f<30&&(f=30),f>1e3&&(f=1e3),o.redraw(),o.body.emitter.emit("currentTimeTick"),o.currentTimeTimer=Ci(c,f)})()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(o){var c=K.convert(o,"Date").valueOf(),f=Qn();this.offset=c-f,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(Qn()+this.offset)}}]),u}(Ia),$x=Ke,K4=vn.find,Px="find",Ym=!0;Px in[]&&Array(1)[Px](function(){Ym=!1}),$x({target:"Array",proto:!0,forced:Ym},{find:function(s){return K4(this,s,arguments.length>1?arguments[1]:void 0)}});var X4=qr("Array").find,Ix=Pt,Z4=X4,Bm=Array.prototype,J4=function(s){var r=s.find;return s===Bm||Ix(Bm,s)&&r===Bm.find?Z4:r},Mx=p(J4),Hm={exports:{}},Q4=w(function(){if(typeof ArrayBuffer=="function"){var s=new ArrayBuffer(8);Object.isExtensible(s)&&Object.defineProperty(s,"a",{value:8})}}),eI=w,Ax=Ft,Rx=_e,Tb=Q4,Wm=Object.isExtensible,tI=eI(function(){Wm(1)})||Tb?function(s){return!!Ax(s)&&(!Tb||Rx(s)!=="ArrayBuffer")&&(!Wm||Wm(s))}:Wm,rI=!w(function(){return Object.isExtensible(Object.preventExtensions({}))}),iI=Ke,nI=pe,Wl=vs,aI=Ft,Cb=Ge,oI=fi.f,Nx=Cs,sI=Ro,Gm=tI,Lx=rI,Fx=!1,Bs=as("meta"),lI=0,zm=function(s){oI(s,Bs,{value:{objectID:"O"+lI++,weakData:{}}})},jx=Hm.exports={enable:function(){jx.enable=function(){},Fx=!0;var s=Nx.f,r=nI([].splice),u={};u[Bs]=1,s(u).length&&(Nx.f=function(o){for(var c=s(o),f=0,m=c.length;f<m;f++)if(c[f]===Bs){r(c,f,1);break}return c},iI({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:sI.f}))},fastKey:function(s,r){if(!aI(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Cb(s,Bs)){if(!Gm(s))return"F";if(!r)return"E";zm(s)}return s[Bs].objectID},getWeakData:function(s,r){if(!Cb(s,Bs)){if(!Gm(s))return!0;if(!r)return!1;zm(s)}return s[Bs].weakData},onFreeze:function(s){return Lx&&Fx&&Gm(s)&&!Cb(s,Bs)&&zm(s),s}};Wl[Bs]=!0;var Yx=Hm.exports,uI=ga,Bx=ht,hI=Fi,cI=Et,dI=Jk,fI=ki,Hx=Pt,Wx=t1,vI=Jp,Gx=Xy,pI=TypeError,Um=function(s,r){this.stopped=s,this.result=r},zx=Um.prototype,Ux=function(s,r,u){var o,c,f,m,S,x,O,I=u&&u.that,N=!(!u||!u.AS_ENTRIES),L=!(!u||!u.IS_RECORD),z=!(!u||!u.IS_ITERATOR),W=!(!u||!u.INTERRUPTED),X=uI(r,I),Z=function(ne){return o&&Gx(o,"normal",ne),new Um(!0,ne)},Q=function(ne){return N?(hI(ne),W?X(ne[0],ne[1],Z):X(ne[0],ne[1])):W?X(ne,Z):X(ne)};if(L)o=s.iterator;else if(z)o=s;else{if(!(c=vI(s)))throw new pI(cI(s)+" is not iterable");if(dI(c)){for(f=0,m=fI(s);m>f;f++)if((S=Q(s[f]))&&Hx(zx,S))return S;return new Um(!1)}o=Wx(s,c)}for(x=L?s.next:o.next;!(O=Bx(x,o)).done;){try{S=Q(O.value)}catch(ne){Gx(o,"throw",ne)}if(typeof S=="object"&&S&&Hx(zx,S))return S}return new Um(!1)},mI=Pt,gI=TypeError,Vx=function(s,r){if(mI(r,s))return s;throw new gI("Incorrect invocation")},yI=Ke,bI=b,qx=Yx,Kx=w,_I=$n,wI=Ux,Xx=Vx,kI=gt,Zx=Ft,SI=Qe,xI=q,TI=fi.f,CI=vn.forEach,EI=lt,DI=Gu.set,OI=Gu.getterFor,Jx=Fr,Fv=Pr,$I=Wu,PI=lt,Qx=hr("species"),II=Po,eT=Wu,tT=function(s,r,u){for(var o in r)Jx(s,o,r[o],u);return s},MI=ga,AI=Vx,RI=Qe,NI=Ux,LI=Ol,rT=tv,FI=function(s){var r=Fv(s);PI&&r&&!r[Qx]&&$I(r,Qx,{configurable:!0,get:function(){return this}})},jv=lt,iT=Yx.fastKey,nT=Gu.set,Vm=Gu.getterFor,Eb={getConstructor:function(s,r,u,o){var c=s(function(O,I){AI(O,f),nT(O,{type:r,index:II(null),first:void 0,last:void 0,size:0}),jv||(O.size=0),RI(I)||NI(I,O[o],{that:O,AS_ENTRIES:u})}),f=c.prototype,m=Vm(r),S=function(O,I,N){var L,z,W=m(O),X=x(O,I);return X?X.value=N:(W.last=X={index:z=iT(I,!0),key:I,value:N,previous:L=W.last,next:void 0,removed:!1},W.first||(W.first=X),L&&(L.next=X),jv?W.size++:O.size++,z!=="F"&&(W.index[z]=X)),O},x=function(O,I){var N,L=m(O),z=iT(I);if(z!=="F")return L.index[z];for(N=L.first;N;N=N.next)if(N.key===I)return N};return tT(f,{clear:function(){for(var O=m(this),I=O.index,N=O.first;N;)N.removed=!0,N.previous&&(N.previous=N.previous.next=void 0),delete I[N.index],N=N.next;O.first=O.last=void 0,jv?O.size=0:this.size=0},delete:function(O){var I=this,N=m(I),L=x(I,O);if(L){var z=L.next,W=L.previous;delete N.index[L.index],L.removed=!0,W&&(W.next=z),z&&(z.previous=W),N.first===L&&(N.first=z),N.last===L&&(N.last=W),jv?N.size--:I.size--}return!!L},forEach:function(O){for(var I,N=m(this),L=MI(O,arguments.length>1?arguments[1]:void 0);I=I?I.next:N.first;)for(L(I.value,I.key,this);I&&I.removed;)I=I.previous},has:function(O){return!!x(this,O)}}),tT(f,u?{get:function(O){var I=x(this,O);return I&&I.value},set:function(O,I){return S(this,O===0?0:O,I)}}:{add:function(O){return S(this,O=O===0?0:O,O)}}),jv&&eT(f,"size",{configurable:!0,get:function(){return m(this).size}}),c},setStrong:function(s,r,u){var o=r+" Iterator",c=Vm(r),f=Vm(o);LI(s,r,function(m,S){nT(this,{type:o,target:m,state:c(m),kind:S,last:void 0})},function(){for(var m=f(this),S=m.kind,x=m.last;x&&x.removed;)x=x.previous;return m.target&&(m.last=x=x?x.next:m.state.first)?rT(S==="keys"?x.key:S==="values"?x.value:[x.key,x.value],!1):(m.target=void 0,rT(void 0,!0))},u?"entries":"values",!u,!0),FI(r)}},jI=function(s,r,u){var o,c=s.indexOf("Map")!==-1,f=s.indexOf("Weak")!==-1,m=c?"set":"add",S=bI[s],x=S&&S.prototype,O={};if(EI&&kI(S)&&(f||x.forEach&&!Kx(function(){new S().entries().next()}))){var I=(o=r(function(L,z){DI(Xx(L,I),{type:s,collection:new S}),SI(z)||wI(z,L[m],{that:L,AS_ENTRIES:c})})).prototype,N=OI(s);CI(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(L){var z=L==="add"||L==="set";!(L in x)||f&&L==="clear"||_I(I,L,function(W,X){var Z=N(this).collection;if(!z&&f&&!Zx(W))return L==="get"&&void 0;var Q=Z[L](W===0?0:W,X);return z?this:Q})}),f||TI(I,"size",{configurable:!0,get:function(){return N(this).collection.size}})}else o=u.getConstructor(r,s,c,m),qx.enable();return xI(o,s,!1,!0),O[s]=o,yI({global:!0,forced:!0},O),f||u.setStrong(o,s,c),o};jI("Set",function(s){return function(){return s(this,arguments.length?arguments[0]:void 0)}},Eb);var qm=p(Lt.Set),YI=Ke,BI=vn.findIndex,aT="findIndex",Db=!0;aT in[]&&Array(1)[aT](function(){Db=!1}),YI({target:"Array",proto:!0,forced:Db},{findIndex:function(s){return BI(this,s,arguments.length>1?arguments[1]:void 0)}});var Ob=qr("Array").findIndex,oT=Pt,sT=Ob,$b=Array.prototype,HI=function(s){var r=s.findIndex;return s===$b||oT($b,s)&&r===$b.findIndex?sT:r},WI=p(HI);function GI(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return Pb(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return Pb(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function Pb(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}var jn=.001;function wh(s){Jr(s).call(s,function(r,u){return r.data.start-u.data.start})}function Ib(s){Jr(s).call(s,function(r,u){return("end"in r.data?r.data.end:r.data.start)-("end"in u.data?u.data.end:u.data.start)})}function Km(s,r,u,o){return Ab(s,r.item,!1,function(c){return c.stack&&(u||c.top===null)},function(c){return c.stack},function(c){return r.axis},o)===null}function lT(s,r,u){var o=Ab(s,r.item,!1,function(c){return c.stack},function(c){return!0},function(c){return c.baseTop});u.height=o-u.top+.5*r.item.vertical}function uT(s,r,u,o){for(var c=0;c<s.length;c++)if(s[c].data.subgroup==null)s[c].top=r.item.vertical;else if(s[c].data.subgroup!==void 0&&o){var f=0;for(var m in u)u.hasOwnProperty(m)&&u[m].visible==1&&u[m].index<u[s[c].data.subgroup].index&&(f+=u[m].height,u[s[c].data.subgroup].top=f);s[c].top=f+.5*r.item.vertical}o||hT(s,r,u)}function hT(s,r,u){var o;Ab(Jr(o=m0(u)).call(o,function(f,m){return f.index>m.index?1:f.index<m.index?-1:0}),{vertical:0},!0,function(f){return!0},function(f){return!0},function(f){return 0});for(var c=0;c<s.length;c++)s[c].data.subgroup!==void 0&&(s[c].top=u[s[c].data.subgroup].top+.5*r.item.vertical)}function Mb(s,r,u){var o=!1,c=[];for(var f in u)u[f].hasOwnProperty("index")?c[u[f].index]=f:c.push(f);for(var m=0;m<c.length;m++)if(f=c[m],u.hasOwnProperty(f)){for(var S in o=o||u[f].stack,u[f].top=0,u)u[S].visible&&u[f].index>u[S].index&&(u[f].top+=u[S].height);for(var x=s[f],O=0;O<x.length;O++)x[O].data.subgroup!==void 0&&(x[O].top=u[x[O].data.subgroup].top+.5*r.item.vertical,u[f].stack&&(x[O].baseTop=x[O].top));o&&u[f].stack&&lT(s[f],r,u[f])}}function Ab(s,r,u,o,c,f,m){var S=function(De){return De.start},x=function(De){return De.end};if(!u){var O=!(!s[0]||!s[0].options.rtl);S=O?function(De){return De.right}:function(De){return De.left},x=function(De){return S(De)+De.width+r.horizontal}}var I,N=[],L=[],z=null,W=0,X=GI(s);try{var Z=function(){var De=I.value;if(o(De))N.push(De);else if(c(De)){var fe=S(De);z!==null&&fe<z-jn&&(W=0),z=fe,W=Xm(L,function(We){return S(We)-jn>fe},W),Ln(L).call(L,W,0,De),W++}};for(X.s();!(I=X.n()).done;)Z()}catch(De){X.e(De)}finally{X.f()}z=null;var Q=null;W=0;for(var ne,he=0,Te=0,Re=0,xe=function(){var De,fe,We=N.shift();We.top=f(We);var at=S(We),Gt=x(We);z!==null&&at<z-jn&&(he=0,Te=0,W=0,Q=null),z=at,he=Xm(L,function(rn){return at<x(rn)-jn},he),(Q===null||Q<Gt-jn)&&(Te=Xm(L,function(rn){return Gt<S(rn)-jn},Math.max(he,Te))),Q!==null&&Q-jn>Gt&&(Te=function(rn,Uv,Ws,Vv){for(Ws||(Ws=0),Vv||(Vv=rn.length),i=Vv-1;i>=Ws;i--)if(Uv(rn[i]))return i;return Ws-1}(L,function(rn){return Gt+jn>=S(rn)},he,Te)+1);for(var yr,Hn,Hs,xh=Jr(De=Mt(fe=pn(L).call(L,he,Te)).call(fe,function(rn){return at<x(rn)-jn&&Gt-jn>S(rn)})).call(De,function(rn,Uv){return rn.top-Uv.top}),sd=0;sd<xh.length;sd++){var og=xh[sd];Hn=og,Hs=r,(yr=We).top-Hs.vertical+jn<Hn.top+Hn.height&&yr.top+yr.height+Hs.vertical-jn>Hn.top&&(We.top=og.top+og.height+r.vertical)}c(We)&&(W=Xm(L,function(rn){return S(rn)-jn>at},W),Ln(L).call(L,W,0,We),W++);var zv=We.top+We.height;if(zv>Re&&(Re=zv),m&&m())return{v:null}};N.length>0;)if(ne=xe())return ne.v;return Re}function Xm(s,r,u){var o;u||(u=0);var c=WI(o=pn(s).call(s,u)).call(o,r);return c===-1?s.length:c+u}var cT=Object.freeze({__proto__:null,nostack:uT,orderByEnd:Ib,orderByStart:wh,stack:Km,stackSubgroups:hT,stackSubgroupsWithInnerStack:Mb,substack:lT}),dT="__background__",Zm=function(){function s(r,u,o){var c=this;if(jt(this,s),this.groupId=r,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=u&&u.subgroupOrder,this.itemSet=o,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],u&&u.nestedGroups&&(this.nestedGroups=u.nestedGroups,u.showNested==0?this.showNested=!1:this.showNested=!0),u&&u.subgroupStack)if(typeof u.subgroupStack=="boolean")this.doInnerStack=u.subgroupStack,this.subgroupStackAll=u.subgroupStack;else for(var f in u.subgroupStack)this.subgroupStack[f]=u.subgroupStack[f],this.doInnerStack=this.doInnerStack||u.subgroupStack[f];u&&u.heightMode?this.heightMode=u.heightMode:this.heightMode=o.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var m=function(){c.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",m),this._disposeCallbacks.push(function(){c.itemSet.body.emitter.off("checkRangedItems",m)}),this._create(),this.setData(u)}return Jt(s,[{key:"_create",value:function(){var r=document.createElement("div");this.itemSet.options.groupEditable.order?r.className="vis-label draggable":r.className="vis-label",this.dom.label=r;var u=document.createElement("div");u.className="vis-inner",r.appendChild(u),this.dom.inner=u;var o=document.createElement("div");o.className="vis-group",o["vis-group"]=this,this.dom.foreground=o,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(r){if(!this.itemSet.groupTouchParams.isDragging){var u,o,c;if(r&&r.subgroupVisibility)for(var f in r.subgroupVisibility)this.subgroupVisibility[f]=r.subgroupVisibility[f];if(this.itemSet.options&&this.itemSet.options.groupTemplate?u=(o=de(c=this.itemSet.options.groupTemplate).call(c,this))(r,this.dom.inner):u=r&&r.content,u instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(u)}else u instanceof Object&&u.isReactComponent||(u instanceof Object?o(r,this.dom.inner):this.dom.inner.innerHTML=u!=null?K.xss(u):K.xss(this.groupId||""));this.dom.label.title=r&&r.title||"",this.dom.inner.firstChild?K.removeClassName(this.dom.inner,"vis-hidden"):K.addClassName(this.dom.inner,"vis-hidden"),r&&r.nestedGroups?(this.nestedGroups&&this.nestedGroups==r.nestedGroups||(this.nestedGroups=r.nestedGroups),r.showNested===void 0&&this.showNested!==void 0||(r.showNested==0?this.showNested=!1:this.showNested=!0),K.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(K.removeClassName(this.dom.label,"collapsed"),K.addClassName(this.dom.label,"expanded")):(K.removeClassName(this.dom.label,"expanded"),K.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,K.removeClassName(this.dom.label,"collapsed"),K.removeClassName(this.dom.label,"expanded"),K.removeClassName(this.dom.label,"vis-nesting-group")),r&&(r.treeLevel||r.nestedInGroup)?(K.addClassName(this.dom.label,"vis-nested-group"),r.treeLevel?K.addClassName(this.dom.label,"vis-group-level-"+r.treeLevel):K.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):K.addClassName(this.dom.label,"vis-group-level-0");var m=r&&r.className||null;m!=this.className&&(this.className&&(K.removeClassName(this.dom.label,this.className),K.removeClassName(this.dom.foreground,this.className),K.removeClassName(this.dom.background,this.className),K.removeClassName(this.dom.axis,this.className)),K.addClassName(this.dom.label,m),K.addClassName(this.dom.foreground,m),K.addClassName(this.dom.background,m),K.addClassName(this.dom.axis,m),this.className=m),this.style&&(K.removeCssText(this.dom.label,this.style),this.style=null),r&&r.style&&(K.addCssText(this.dom.label,r.style),this.style=r.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var r=this.dom.marker.clientHeight;if(r!=this.lastMarkerHeight){this.lastMarkerHeight=r;var u={},o=0;if(Ae(K).call(K,this.items,function(m,S){m.dirty=!0,m.displayed&&(u[S]=m.redraw(!0),o=u[S].length)}),o>0)for(var c=function(m){Ae(K).call(K,u,function(S){S[m]()})},f=0;f<o;f++)c(f);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var r=this.dom.foreground,u=r.offsetTop,o=r.offsetLeft,c=r.offsetWidth;this.top=u,this.right=o,this.width=c}},{key:"_shouldBailItemsRedraw",value:function(){var r=this,u=this.itemSet.options.onTimeout,o={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:u&&u.timeoutMs,userBailFunction:u&&u.callback,shouldBailStackItems:this.shouldBailStackItems},c=null;if(!this.itemSet.initialDrawDone){if(o.shouldBailStackItems)return!0;Math.abs(Qn()-new Date(o.relativeBailingTime))>o.bailTimeMs&&(o.userBailFunction&&this.itemSet.userContinueNotBail==null?o.userBailFunction(function(f){r.itemSet.userContinueNotBail=f,c=!f}):c=r.itemSet.userContinueNotBail==0)}return c}},{key:"_redrawItems",value:function(r,u,o,c){var f=this;if(r||this.stackDirty||this.isVisible&&!u){var m,S,x,O,I,N,L={byEnd:Mt(m=this.orderedItems.byEnd).call(m,function(fe){return!fe.isCluster}),byStart:Mt(S=this.orderedItems.byStart).call(S,function(fe){return!fe.isCluster})},z={byEnd:co(new qm(Mt(x=Ei(O=this.orderedItems.byEnd).call(O,function(fe){return fe.cluster})).call(x,function(fe){return!!fe}))),byStart:co(new qm(Mt(I=Ei(N=this.orderedItems.byStart).call(N,function(fe){return fe.cluster})).call(I,function(fe){return!!fe})))},W=function(){var fe,We,at,Gt=f._updateItemsInRange(L,Mt(fe=f.visibleItems).call(fe,function(Hn){return!Hn.isCluster}),c),yr=f._updateClustersInRange(z,Mt(We=f.visibleItems).call(We,function(Hn){return Hn.isCluster}),c);return xr(at=[]).call(at,co(Gt),co(yr))},X=function(fe){var We={},at=function(yr){var Hn,Hs=Mt(Hn=f.visibleItems).call(Hn,function(xh){return xh.data.subgroup===yr});We[yr]=fe?Jr(Hs).call(Hs,function(xh,sd){return fe(xh.data,sd.data)}):Hs};for(var Gt in f.subgroups)at(Gt);return We};if(typeof this.itemSet.options.order=="function"){var Z=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups)Mb(X(this.itemSet.options.order),o,this.subgroups),this.visibleItems=W(),this._updateSubGroupHeights(o);else{var Q,ne,he,Te;this.visibleItems=W(),this._updateSubGroupHeights(o);var Re=Jr(Q=Mt(ne=pn(he=this.visibleItems).call(he)).call(ne,function(fe){return fe.isCluster||!fe.isCluster&&!fe.cluster})).call(Q,function(fe,We){return Z.itemSet.options.order(fe.data,We.data)});this.shouldBailStackItems=Km(Re,o,!0,de(Te=this._shouldBailItemsRedraw).call(Te,this))}}else{var xe;this.visibleItems=W(),this._updateSubGroupHeights(o),this.itemSet.options.stack?this.doInnerStack&&this.itemSet.options.stackSubgroups?Mb(X(),o,this.subgroups):this.shouldBailStackItems=Km(this.visibleItems,o,!0,de(xe=this._shouldBailItemsRedraw).call(xe,this)):uT(this.visibleItems,o,this.subgroups,this.itemSet.options.stackSubgroups)}for(var De=0;De<this.visibleItems.length;De++)this.visibleItems[De].repositionX(),this.subgroupVisibility[this.visibleItems[De].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[De].data.subgroup]||this.visibleItems[De].hide());this.itemSet.options.cluster&&Ae(K).call(K,this.items,function(fe){fe.cluster&&fe.displayed&&fe.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(r,u){r=K.updateProperty(this,"height",u)||r;var o=this.dom.inner.clientWidth,c=this.dom.inner.clientHeight;return r=K.updateProperty(this.props.label,"width",o)||r,r=K.updateProperty(this.props.label,"height",c)||r}},{key:"_applyGroupHeight",value:function(r){this.dom.background.style.height="".concat(r,"px"),this.dom.foreground.style.height="".concat(r,"px"),this.dom.label.style.height="".concat(r,"px")}},{key:"_updateItemsVerticalPosition",value:function(r){for(var u=0,o=this.visibleItems.length;u<o;u++){var c=this.visibleItems[u];c.repositionY(r),this.isVisible||this.groupId==dT||c.displayed&&c.hide()}}},{key:"redraw",value:function(r,u,o,c){var f,m,S,x,O,I,N,L=this,z=!1,W=this.isVisible,X=[function(){o=L._didMarkerHeightChange.call(L)||o},de(f=this._updateSubGroupHeights).call(f,this,u),de(m=this._calculateGroupSizeAndPosition).call(m,this),function(){var Z;L.isVisible=de(Z=L._isGroupVisible).call(Z,L)(r,u)},function(){var Z;de(Z=L._redrawItems).call(Z,L)(o,W,u,r)},de(S=this._updateSubgroupsSizes).call(S,this),function(){var Z;I=de(Z=L._calculateHeight).call(Z,L)(u)},de(x=this._calculateGroupSizeAndPosition).call(x,this),function(){var Z;z=de(Z=L._didResize).call(Z,L)(z,I)},function(){var Z;de(Z=L._applyGroupHeight).call(Z,L)(I)},function(){var Z;de(Z=L._updateItemsVerticalPosition).call(Z,L)(u)},de(O=function(){return!L.isVisible&&L.height&&(z=!1),z}).call(O,this)];return c?X:(Ae(X).call(X,function(Z){N=Z()}),N)}},{key:"_updateSubGroupHeights",value:function(r){var u=this;if(Di(this.subgroups).length>0){var o=this;this._resetSubgroups(),Ae(K).call(K,this.visibleItems,function(c){c.data.subgroup!==void 0&&(o.subgroups[c.data.subgroup].height=Math.max(o.subgroups[c.data.subgroup].height,c.height+r.item.vertical),o.subgroups[c.data.subgroup].visible=u.subgroupVisibility[c.data.subgroup]===void 0||Boolean(u.subgroupVisibility[c.data.subgroup]))})}}},{key:"_isGroupVisible",value:function(r,u){return this.top<=r.body.domProps.centerContainer.height-r.body.domProps.scrollTop+u.axis&&this.top+this.height+u.axis>=-r.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(r){var u,o;if((o=this.heightMode==="fixed"?K.toArray(this.items):this.visibleItems).length>0){var c=o[0].top,f=o[0].top+o[0].height;if(Ae(K).call(K,o,function(S){c=Math.min(c,S.top),f=Math.max(f,S.top+S.height)}),c>r.axis){var m=c-r.axis;f-=m,Ae(K).call(K,o,function(S){S.top-=m})}u=Math.ceil(f+r.item.vertical/2),this.heightMode!=="fitItems"&&(u=Math.max(u,this.props.label.height))}else u=this.props.label.height;return u}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var r=this.dom.label;r.parentNode&&r.parentNode.removeChild(r);var u=this.dom.foreground;u.parentNode&&u.parentNode.removeChild(u);var o=this.dom.background;o.parentNode&&o.parentNode.removeChild(o);var c=this.dom.axis;c.parentNode&&c.parentNode.removeChild(c)}},{key:"add",value:function(r){var u;if(this.items[r.id]=r,r.setParent(this),this.stackDirty=!0,r.data.subgroup!==void 0&&(this._addToSubgroup(r),this.orderSubgroups()),!Wc(u=this.visibleItems).call(u,r)){var o=this.itemSet.body.range;this._checkIfVisible(r,this.visibleItems,o)}}},{key:"_addToSubgroup",value:function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;u!=null&&this.subgroups[u]===void 0&&(this.subgroups[u]={height:0,top:0,start:r.data.start,end:r.data.end||r.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[u]||!1},this.subgroupIndex++),new Date(r.data.start)<new Date(this.subgroups[u].start)&&(this.subgroups[u].start=r.data.start);var o=r.data.end||r.data.start;new Date(o)>new Date(this.subgroups[u].end)&&(this.subgroups[u].end=o),this.subgroups[u].items.push(r)}},{key:"_updateSubgroupsSizes",value:function(){var r=this;if(r.subgroups){var u=function(){var c,f=r.subgroups[o].items[0].data.end||r.subgroups[o].items[0].data.start,m=r.subgroups[o].items[0].data.start,S=f-1;Ae(c=r.subgroups[o].items).call(c,function(x){new Date(x.data.start)<new Date(m)&&(m=x.data.start);var O=x.data.end||x.data.start;new Date(O)>new Date(S)&&(S=O)}),r.subgroups[o].start=m,r.subgroups[o].end=new Date(S-1)};for(var o in r.subgroups)u()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var r=[];if(typeof this.subgroupOrderer=="string"){for(var u in this.subgroups)r.push({subgroup:u,sortField:this.subgroups[u].items[0].data[this.subgroupOrderer]});Jr(r).call(r,function(f,m){return f.sortField-m.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var o in this.subgroups)r.push(this.subgroups[o].items[0].data);Jr(r).call(r,this.subgroupOrderer)}if(r.length>0)for(var c=0;c<r.length;c++)this.subgroups[r[c].subgroup].index=c}}},{key:"_resetSubgroups",value:function(){for(var r in this.subgroups)this.subgroups.hasOwnProperty(r)&&(this.subgroups[r].visible=!1,this.subgroups[r].height=0)}},{key:"remove",value:function(r){var u,o;delete this.items[r.id],r.setParent(null),this.stackDirty=!0;var c=er(u=this.visibleItems).call(u,r);c!=-1&&Ln(o=this.visibleItems).call(o,c,1),r.data.subgroup!==void 0&&(this._removeFromSubgroup(r),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;if(u!=null){var o=this.subgroups[u];if(o){var c,f,m=er(c=o.items).call(c,r);m>=0&&(Ln(f=o.items).call(f,m,1),o.items.length?this._updateSubgroupsSizes():delete this.subgroups[u])}}}},{key:"removeFromDataSet",value:function(r){this.itemSet.removeItem(r.id)}},{key:"order",value:function(){for(var r=K.toArray(this.items),u=[],o=[],c=0;c<r.length;c++)r[c].data.end!==void 0&&o.push(r[c]),u.push(r[c]);this.orderedItems={byStart:u,byEnd:o},wh(this.orderedItems.byStart),Ib(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(r,u,o){var c=[],f={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=dT){for(var m=0;m<u.length;m++){var S=u[m];S.displayed&&S.hide()}return c}var x=(o.end-o.start)/4,O=o.start-x,I=o.end+x;if(u.length>0)for(var N=0;N<u.length;N++)this._checkIfVisibleWithReference(u[N],c,f,o);var L=K.binarySearchCustom(r.byStart,function(xe){return xe<O?-1:xe<=I?0:1},"data","start");if(this._traceVisible(L,r.byStart,c,f,function(xe){return xe.data.start<O||xe.data.start>I}),this.checkRangedItems==1){this.checkRangedItems=!1;for(var z=0;z<r.byEnd.length;z++)this._checkIfVisibleWithReference(r.byEnd[z],c,f,o)}else{var W=K.binarySearchCustom(r.byEnd,function(xe){var De=xe.start;return xe.end<O?-1:De<=I?0:1},"data");this._traceVisible(W,r.byEnd,c,f,function(xe){return xe.data.end<O||xe.data.start>I})}for(var X={},Z=0,Q=0;Q<c.length;Q++){var ne=c[Q];ne.displayed||(X[Q]=ne.redraw(!0),Z=X[Q].length)}if(Z>0)for(var he=function(xe){Ae(K).call(K,X,function(De){De[xe]()})},Te=0;Te<Z;Te++)he(Te);for(var Re=0;Re<c.length;Re++)c[Re].repositionX();return c}},{key:"_traceVisible",value:function(r,u,o,c,f){if(r!=-1){for(var m=r;m>=0;m--){var S=u[m];if(f(S))break;S.isCluster&&!S.hasItems()||S.cluster||c[S.id]===void 0&&(c[S.id]=!0,o.push(S))}for(var x=r+1;x<u.length;x++){var O=u[x];if(f(O))break;O.isCluster&&!O.hasItems()||O.cluster||c[O.id]===void 0&&(c[O.id]=!0,o.push(O))}}}},{key:"_checkIfVisible",value:function(r,u,o){r.isVisible(o)?(r.displayed||r.show(),r.repositionX(),u.push(r)):r.displayed&&r.hide()}},{key:"_checkIfVisibleWithReference",value:function(r,u,o,c){r.isVisible(c)?o[r.id]===void 0&&(o[r.id]=!0,u.push(r)):r.displayed&&r.hide()}},{key:"_updateClustersInRange",value:function(r,u,o){var c=[],f={};if(u.length>0)for(var m=0;m<u.length;m++)this._checkIfVisibleWithReference(u[m],c,f,o);for(var S=0;S<r.byStart.length;S++)this._checkIfVisibleWithReference(r.byStart[S],c,f,o);for(var x=0;x<r.byEnd.length;x++)this._checkIfVisibleWithReference(r.byEnd[x],c,f,o);for(var O={},I=0,N=0;N<c.length;N++){var L=c[N];L.displayed||(O[N]=L.redraw(!0),I=O[N].length)}if(I>0)for(var z=0;z<I;z++)Ae(K).call(K,O,function(X){X[z]()});for(var W=0;W<c.length;W++)c[W].repositionX();return c}},{key:"changeSubgroup",value:function(r,u,o){this._removeFromSubgroup(r,u),this._addToSubgroup(r,o),this.orderSubgroups()}},{key:"dispose",value:function(){var r;for(this.hide();r=this._disposeCallbacks.pop();)r()}}]),s}();function zI(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var Rb=function(s){Zn(u,s);var r=zI(u);function u(o,c,f){var m;return jt(this,u),(m=r.call(this,o,c,f)).width=0,m.height=0,m.top=0,m.left=0,m}return Jt(u,[{key:"redraw",value:function(o,c,f){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,o),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var m=0,S=this.visibleItems.length;m<S;m++)this.visibleItems[m].repositionY(c);return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),u}(Zm);function UI(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return fT(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return fT(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function fT(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}var kh=function(){function s(r,u,o){var c,f=this;jt(this,s),this.id=null,this.parent=null,this.data=r,this.dom=null,this.conversion=u||{},this.defaultOptions={locales:td,locale:"en"},this.options=K.extend({},this.defaultOptions,o),this.options.locales=K.extend({},td,this.options.locales);var m=this.defaultOptions.locales[this.defaultOptions.locale];Ae(c=Di(this.options.locales)).call(c,function(S){f.options.locales[S]=K.extend({},m,f.options.locales[S])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=o&&o.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(r),this.editable=null,this._updateEditStatus()}return Jt(s,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(r){r.group!=null&&this.data.group!=r.group&&this.parent!=null&&this.parent.itemSet._moveToGroup(this,r.group),this.setSelectability(r),this.parent&&(this.parent.stackDirty=!0),r.subgroup!=null&&this.data.subgroup!=r.subgroup&&this.parent!=null&&this.parent.changeSubgroup(this,this.data.subgroup,r.subgroup),this.data=r,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(r){r&&(this.selectable=r.selectable===void 0||Boolean(r.selectable))}},{key:"setParent",value:function(r){this.displayed?(this.hide(),this.parent=r,this.parent&&this.show()):this.parent=r}},{key:"isVisible",value:function(r){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var r,u,o=this,c=document.createElement("div");c.className="vis-drag-center",c.dragCenterItem=this,this.hammerDragCenter=new bn(c),this.hammerDragCenter.on("tap",function(f){o.parent.itemSet.body.emitter.emit("click",{event:f,item:o.id})}),this.hammerDragCenter.on("doubletap",function(f){f.stopPropagation(),o.parent.itemSet._onUpdateItem(o),o.parent.itemSet.body.emitter.emit("doubleClick",{event:f,item:o.id})}),this.hammerDragCenter.on("panstart",function(f){f.stopPropagation(),o.parent.itemSet._onDragStart(f)}),this.hammerDragCenter.on("panmove",de(r=o.parent.itemSet._onDrag).call(r,o.parent.itemSet)),this.hammerDragCenter.on("panend",de(u=o.parent.itemSet._onDragEnd).call(u,o.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(c,this.dom.dragLeft):this.dom.box.appendChild(c):this.dom.point&&this.dom.point.appendChild(c),this.dom.dragCenter=c}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(r){var u=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&u&&!this.dom.deleteButton){var o=this,c=document.createElement("div");this.options.rtl?c.className="vis-delete-rtl":c.className="vis-delete";var f=this.options.locales[this.options.locale];f||(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),f=this.options.locales.en),c.title=f.deleteSelected,this.hammerDeleteButton=new bn(c).on("tap",function(m){m.stopPropagation(),o.parent.removeFromDataSet(o)}),r.appendChild(c),this.dom.deleteButton=c}else this.selected&&u||!this.dom.deleteButton||(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(r){if(this.options.tooltipOnItemUpdateTime){var u=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&u&&!this.dom.onItemUpdateTimeTooltip){var o=document.createElement("div");o.className="vis-onUpdateTime-tooltip",r.appendChild(o),this.dom.onItemUpdateTimeTooltip=o}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var c,f,m=this.parent.itemSet.body.domProps.scrollTop;(this.options.orientation.item=="top"?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-m?(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?c=de(f=this.options.tooltipOnItemUpdateTime.template).call(f,this)(this.data):(c="start: ".concat(Nn(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(c+="<br> end: ".concat(Nn(this.data.end).format("MM/DD/YYYY hh:mm")))),this.dom.onItemUpdateTimeTooltip.innerHTML=K.xss(c)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(r){var u,o,c,f,m,S,x=this._getItemData(),O=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate?(f=de(m=this.options.visibleFrameTemplate).call(m,this),c=K.xss(f(x,O))):c="",O){if(c instanceof Object&&!(c instanceof Element))f(x,O);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(c)){if(c instanceof Element)O.innerHTML="",O.appendChild(c);else if(c!=null)O.innerHTML=K.xss(c);else if(this.data.type!="background"||this.data.content!==void 0)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=c}}if(this.options.template?u=(o=de(S=this.options.template).call(S,this))(x,r,this.data):u=this.data.content,u instanceof Object&&!(u instanceof Element))o(x,r);else if(this._contentToString(this.content)!==this._contentToString(u)){if(u instanceof Element)r.innerHTML="",r.appendChild(u);else if(u!=null)r.innerHTML=K.xss(u);else if(this.data.type!="background"||this.data.content!==void 0)throw new Error('Property "content" missing in item '.concat(this.id));this.content=u}}},{key:"_updateDataAttributes",value:function(r){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var u=[];if(xt(this.options.dataAttributes))u=this.options.dataAttributes;else{if(this.options.dataAttributes!="all")return;u=Di(this.data)}var o,c=UI(u);try{for(c.s();!(o=c.n()).done;){var f=o.value,m=this.data[f];m!=null?r.setAttribute("data-".concat(f),m):r.removeAttribute("data-".concat(f))}}catch(S){c.e(S)}finally{c.f()}}}},{key:"_updateStyle",value:function(r){this.style&&(K.removeCssText(r,this.style),this.style=null),this.data.style&&(K.addCssText(r,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(r){return typeof r=="string"?r:r&&"outerHTML"in r?r.outerHTML:r}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:ft(this.options.editable)==="object"&&(this.editable={},K.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&this.options.editable.overrideItems===!0||this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:ft(this.data.editable)==="object"&&(this.editable={},K.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){var r;return this.options.tooltip&&this.options.tooltip.template?de(r=this.options.tooltip.template).call(r,this)(this._getItemData(),this.data):this.data.title}}]),s}();function VI(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}kh.prototype.stack=!0;var Nb=function(s){Zn(u,s);var r=VI(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={dot:{width:0,height:0},line:{width:0,height:0}},o&&o.start==null)throw new Error('Property "start" missing in item '.concat(o));return m}return Jt(u,[{key:"isVisible",value:function(o){if(this.cluster)return!1;var c,f=this.data.align||this.options.align,m=this.width*o.getMillisecondsPerPixel();return c=f=="right"?this.data.start.getTime()>o.start&&this.data.start.getTime()-m<o.end:f=="left"?this.data.start.getTime()+m>o.start&&this.data.start.getTime()<o.end:this.data.start.getTime()+m/2>o.start&&this.data.start.getTime()-m/2<o.end,c}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var o=this.parent.dom.foreground;if(!o)throw new Error("Cannot redraw item: parent has no foreground container element");o.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var c=this.parent.dom.background;if(!c)throw new Error("Cannot redraw item: parent has no background container element");c.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var f=this.parent.dom.axis;if(!c)throw new Error("Cannot redraw item: parent has no axis container element");f.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var o=this.editable.updateTime||this.editable.updateGroup,c=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(o?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(c),this.dom.line.className="vis-item vis-line".concat(c),this.dom.dot.className="vis-item vis-dot".concat(c)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(o){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=o.dot.height,this.props.dot.width=o.dot.width,this.props.line.width=o.line.width,this.width=o.box.width,this.height=o.box.height,this.options.rtl?this.dom.box.style.right=o.previous.right:this.dom.box.style.left=o.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(o){var c,f,m,S,x,O,I=this,N=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),function(){I.dirty&&(x=I._getDomComponentsSizes())},function(){var L;I.dirty&&de(L=I._updateDomComponentsSizes).call(L,I)(x)},de(S=this._repaintDomAdditionals).call(S,this)];return o?N:(Ae(N).call(N,function(L){O=L()}),O)}},{key:"show",value:function(o){if(!this.displayed)return this.redraw(o)}},{key:"hide",value:function(){if(this.displayed){var o=this.dom;o.box.remove?o.box.remove():o.box.parentNode&&o.box.parentNode.removeChild(o.box),o.line.remove?o.line.remove():o.line.parentNode&&o.line.parentNode.removeChild(o.line),o.dot.remove?o.dot.remove():o.dot.parentNode&&o.dot.parentNode.removeChild(o.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var o=this.options.rtl,c=function(f,m,S){var x;if(m!==void 0||S!==void 0){var O=arguments.length>3&&arguments[3]!==void 0&&arguments[3]?-1*m:m;f.style.transform=S!==void 0?m!==void 0?xr(x="translate(".concat(O,"px, ")).call(x,S,"px)"):"translateY(".concat(S,"px)"):"translateX(".concat(O,"px)")}};c(this.dom.box,this.boxX,this.boxY,o),c(this.dom.dot,this.dotX,this.dotY,o),c(this.dom.line,this.lineX,this.lineY,o)}},{key:"repositionX",value:function(){var o=this.conversion.toScreen(this.data.start),c=this.data.align===void 0?this.options.align:this.data.align,f=this.props.line.width,m=this.props.dot.width;c=="right"?(this.boxX=o-this.width,this.lineX=o-f,this.dotX=o-f/2-m/2):c=="left"?(this.boxX=o,this.lineX=o,this.dotX=o+f/2-m/2):(this.boxX=o-this.width/2,this.lineX=this.options.rtl?o-f:o-f/2,this.dotX=o-m/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var o=this.options.orientation.item,c=this.dom.line.style;if(o=="top"){var f=this.parent.top+this.top+1;this.boxY=this.top||0,c.height="".concat(f,"px"),c.bottom="",c.top="0"}else{var m=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),c.height="".concat(m,"px"),c.top="",c.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),u}(kh);function qI(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var vT=function(s){Zn(u,s);var r=qI(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},o&&o.start==null)throw new Error('Property "start" missing in item '.concat(o));return m}return Jt(u,[{key:"isVisible",value:function(o){if(this.cluster)return!1;var c=this.width*o.getMillisecondsPerPixel();return this.data.start.getTime()+c>o.start&&this.data.start<o.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var o=this.parent.dom.foreground;if(!o)throw new Error("Cannot redraw item: parent has no foreground container element");o.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var o=this.editable.updateTime||this.editable.updateGroup,c=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(o?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(c),this.dom.dot.className="vis-item vis-dot".concat(c)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(o){this.props.dot.width=o.dot.width,this.props.dot.height=o.dot.height,this.props.content.height=o.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=o.point.width,this.height=o.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var c=this.props.dot.width,f=this.options.rtl?c/2:c/2*-1;this.dom.dot.style.transform="translateX(".concat(f,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(o){var c,f,m,S,x,O,I=this,N=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),function(){I.dirty&&(x=I._getDomComponentsSizes())},function(){var L;I.dirty&&de(L=I._updateDomComponentsSizes).call(L,I)(x)},de(S=this._repaintDomAdditionals).call(S,this)];return o?N:(Ae(N).call(N,function(L){O=L()}),O)}},{key:"repositionXY",value:function(){var o=this.options.rtl,c=function(f,m,S){var x;if(m!==void 0||S!==void 0){var O=arguments.length>3&&arguments[3]!==void 0&&arguments[3]?-1*m:m;f.style.transform=S!==void 0?m!==void 0?xr(x="translate(".concat(O,"px, ")).call(x,S,"px)"):"translateY(".concat(S,"px)"):"translateX(".concat(O,"px)")}};c(this.dom.point,this.pointX,this.pointY,o)}},{key:"show",value:function(o){if(!this.displayed)return this.redraw(o)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var o=this.conversion.toScreen(this.data.start);this.pointX=o,this.options.rtl?this.right=o-this.props.dot.width:this.left=o-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var o=this.options.orientation.item;this.pointY=o=="top"?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),u}(kh);function pT(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var Gl=function(s){Zn(u,s);var r=pT(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={content:{width:0}},m.overflow=!1,o){if(o.start==null)throw new Error('Property "start" missing in item '.concat(o.id));if(o.end==null)throw new Error('Property "end" missing in item '.concat(o.id))}return m}return Jt(u,[{key:"isVisible",value:function(o){return!this.cluster&&this.data.start<o.end&&this.data.end>o.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var o=this.parent.dom.foreground;if(!o)throw new Error("Cannot redraw item: parent has no foreground container element");o.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var o=this.editable.updateTime||this.editable.updateGroup,c=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(o?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+c,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(o){this.props.content.width=o.content.width,this.height=o.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(o){var c,f,m,S,x,O,I=this,N=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),function(){var L;I.dirty&&(x=de(L=I._getDomComponentsSizes).call(L,I)())},function(){var L;I.dirty&&de(L=I._updateDomComponentsSizes).call(L,I)(x)},de(S=this._repaintDomAdditionals).call(S,this)];return o?N:(Ae(N).call(N,function(L){O=L()}),O)}},{key:"show",value:function(o){if(!this.displayed)return this.redraw(o)}},{key:"hide",value:function(){if(this.displayed){var o=this.dom.box;o.parentNode&&o.parentNode.removeChild(o),this.displayed=!1}}},{key:"repositionX",value:function(o){var c,f,m=this.parent.width,S=this.conversion.toScreen(this.data.start),x=this.conversion.toScreen(this.data.end),O=this.data.align===void 0?this.options.align:this.data.align;this.data.limitSize===!1||o!==void 0&&o!==!0||(S<-m&&(S=-m),x>2*m&&(x=2*m));var I=Math.max(Math.round(1e3*(x-S))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=S:this.left=S,this.width=I+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=S:this.left=S,this.width=I,f=Math.min(x-S,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(I,"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){var N=-1*Math.max(I-f,0);this.dom.content.style.transform="translateX(".concat(N,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(I-f,0),"px)");break;case"center":if(this.options.rtl){var L=-1*Math.max((I-f)/2,0);this.dom.content.style.transform="translateX(".concat(L,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((I-f)/2,0),"px)");break;default:if(c=this.overflow?x>0?Math.max(-S,0):-f:S<0?-S:0,this.options.rtl){var z=-1*c;this.dom.content.style.transform="translateX(".concat(z,"px)")}else this.dom.content.style.transform="translateX(".concat(c,"px)")}}},{key:"repositionY",value:function(){var o=this.options.orientation.item,c=this.dom.box;c.style.top="".concat(o=="top"?this.top:this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var o=document.createElement("div");o.className="vis-drag-left",o.dragLeftItem=this,this.dom.box.appendChild(o),this.dom.dragLeft=o}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var o=document.createElement("div");o.className="vis-drag-right",o.dragRightItem=this,this.dom.box.appendChild(o),this.dom.dragRight=o}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)}}]),u}(kh);function KI(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}Gl.prototype.baseClassName="vis-item vis-range";var zl=function(s){Zn(u,s);var r=KI(u);function u(o,c,f){var m;if(jt(this,u),(m=r.call(this,o,c,f)).props={content:{width:0}},m.overflow=!1,o){if(o.start==null)throw new Error('Property "start" missing in item '.concat(o.id));if(o.end==null)throw new Error('Property "end" missing in item '.concat(o.id))}return m}return Jt(u,[{key:"isVisible",value:function(o){return this.data.start<o.end&&this.data.end>o.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var o=this.parent.dom.background;if(!o)throw new Error("Cannot redraw item: parent has no background container element");o.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var o=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+o}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(o){this.props.content.width=o.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(o){var c,f,m,S,x,O,I=this,N=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),function(){var L;I.dirty&&(x=de(L=I._getDomComponentsSizes).call(L,I)())},function(){var L;I.dirty&&de(L=I._updateDomComponentsSizes).call(L,I)(x)},de(S=this._repaintDomAdditionals).call(S,this)];return o?N:(Ae(N).call(N,function(L){O=L()}),O)}},{key:"repositionY",value:function(o){var c,f=this.options.orientation.item;if(this.data.subgroup!==void 0){var m=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[m].height,"px"),this.dom.box.style.top="".concat(f=="top"?this.parent.top+this.parent.subgroups[m].top:this.parent.top+this.parent.height-this.parent.subgroups[m].top-this.parent.subgroups[m].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof Rb?(c=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=f=="bottom"?"0":"",this.dom.box.style.top=f=="top"?"0":""):(c=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(c,"px")}}]),u}(kh);zl.prototype.baseClassName="vis-item vis-background",zl.prototype.stack=!1,zl.prototype.show=Gl.prototype.show,zl.prototype.hide=Gl.prototype.hide,zl.prototype.repositionX=Gl.prototype.repositionX;var XI=function(){function s(r,u){jt(this,s),this.container=r,this.overflowMethod=u||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Jt(s,[{key:"setPosition",value:function(r,u){this.x=ea(r),this.y=ea(u)}},{key:"setText",value:function(r){r instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(r)):this.frame.innerHTML=K.xss(r)}},{key:"show",value:function(r){if(r===void 0&&(r=!0),r===!0){var u=this.frame.clientHeight,o=this.frame.clientWidth,c=this.frame.parentNode.clientHeight,f=this.frame.parentNode.clientWidth,m=0,S=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){var x=!1,O=!0;this.overflowMethod=="flip"&&(this.y-u<this.padding&&(O=!1),this.x+o>f-this.padding&&(x=!0)),m=x?this.x-o:this.x,S=O?this.y-u:this.y}else(S=this.y-u)+u+this.padding>c&&(S=c-u-this.padding),S<this.padding&&(S=this.padding),(m=this.x)+o+this.padding>f&&(m=f-o-this.padding),m<this.padding&&(m=this.padding);this.frame.style.left=m+"px",this.frame.style.top=S+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),s}(),ZI=vn.every;Ke({target:"Array",proto:!0,forced:!Zu("every")},{every:function(s){return ZI(this,s,arguments.length>1?arguments[1]:void 0)}});var JI=qr("Array").every,QI=Pt,eM=JI,Jm=Array.prototype,tM=function(s){var r=s.every;return s===Jm||QI(Jm,s)&&r===Jm.every?eM:r},rM=p(tM);function mT(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return gT(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return gT(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function gT(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}function iM(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var Lb=function(s){Zn(u,s);var r=iM(u);function u(o,c,f){var m;jt(this,u);var S=ih({},{fitOnDoubleClick:!0},f,{editable:!1});if((m=r.call(this,o,c,S)).props={content:{width:0,height:0}},!o||o.uiItems==null)throw new Error('Property "uiItems" missing in item '+o.id);return m.id=Rs(),m.group=o.group,m._setupRange(),m.emitter=m.data.eventEmitter,m.range=m.data.range,m.attached=!1,m.isCluster=!0,m.data.isCluster=!0,m}return Jt(u,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(o){this.detach(),this.data.uiItems=o,this._setupRange(),this.attach()}},{key:"isVisible",value:function(o){var c=this.data.end?this.data.end-this.data.start:0,f=this.width*o.getMillisecondsPerPixel(),m=Math.max(this.data.start.getTime()+c,this.data.start.getTime()+f);return this.data.start<o.end&&m>o.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(o){var c,f,m,S,x,O,I,N,L=[de(c=this._createDomElement).call(c,this),de(f=this._appendDomElement).call(f,this),de(m=this._updateDirtyDomComponents).call(m,this),de(S=function(){this.dirty&&(I=this._getDomComponentsSizes())}).call(S,this),de(x=function(){var z;this.dirty&&de(z=this._updateDomComponentsSizes).call(z,this)(I)}).call(x,this),de(O=this._repaintDomAdditionals).call(O,this)];return o?L:(Ae(L).call(L,function(z){N=z()}),N)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var o=this.dom;o.box.parentNode&&o.box.parentNode.removeChild(o.box),this.options.showStipes&&(o.line.parentNode&&o.line.parentNode.removeChild(o.line),o.dot.parentNode&&o.dot.parentNode.removeChild(o.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var o=this.conversion.toScreen(this.data.start),c=this.data.end?this.conversion.toScreen(this.data.end):0;if(c)this.repositionXWithRanges(o,c);else{var f=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(o,f)}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(o,c))}},{key:"repositionStype",value:function(o,c){this.dom.line.style.display="block",this.dom.dot.style.display="block";var f=this.dom.line.offsetWidth,m=this.dom.dot.offsetWidth;if(c){var S=f+o+(c-o)/2,x=S-m/2,O=this.options.rtl?-1*S:S,I=this.options.rtl?-1*x:x;this.dom.line.style.transform="translateX(".concat(O,"px)"),this.dom.dot.style.transform="translateX(".concat(I,"px)")}else{var N=this.options.rtl?-1*o:o,L=this.options.rtl?-1*(o-m/2):o-m/2;this.dom.line.style.transform="translateX(".concat(N,"px)"),this.dom.dot.style.transform="translateX(".concat(L,"px)")}}},{key:"repositionXWithoutRanges",value:function(o,c){c=="right"?this.options.rtl?(this.right=o-this.width,this.dom.box.style.right=this.right+"px"):(this.left=o-this.width,this.dom.box.style.left=this.left+"px"):c=="left"?this.options.rtl?(this.right=o,this.dom.box.style.right=this.right+"px"):(this.left=o,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=o-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=o-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(o,c){var f=Math.round(Math.max(c-o+.5,1));this.options.rtl?this.right=o:this.left=o,this.width=Math.max(f,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=f+"px"}},{key:"repositionY",value:function(){var o=this.options.orientation.item,c=this.dom.box;if(c.style.top=o=="top"?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(o=="top")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 f=this.parent.itemSet.props.height,m=f-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=f-m+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var o,c,f=mT(this.data.uiItems);try{for(f.s();!(c=f.n()).done;)c.value.cluster=this}catch(m){f.e(m)}finally{f.f()}this.data.items=Ei(o=this.data.uiItems).call(o,function(m){return m.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.hasItems()){var c,f=mT(this.data.uiItems);try{for(f.s();!(c=f.n()).done;)delete c.value.cluster}catch(m){f.e(m)}finally{f.f()}this.attached=!1,o&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var o,c,f,m=Ei(o=this.data.uiItems).call(o,function(O){return{start:O.data.start.valueOf(),end:O.data.end?O.data.end.valueOf():O.data.start.valueOf()}});this.data.min=Math.min.apply(Math,co(Ei(m).call(m,function(O){return Math.min(O.start,O.end||O.start)}))),this.data.max=Math.max.apply(Math,co(Ei(m).call(m,function(O){return Math.max(O.start,O.end||O.start)})));var S=Ei(c=this.data.uiItems).call(c,function(O){return O.center}),x=Vk(S).call(S,function(O,I){return O+I},0)/this.data.uiItems.length;Sx(f=this.data.uiItems).call(f,function(O){return O.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(x),this.data.end=null)}},{key:"_getUiItems",value:function(){var o,c=this;return this.data.uiItems&&this.data.uiItems.length?Mt(o=this.data.uiItems).call(o,function(f){return f.cluster===c}):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var o;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=de(o=u.prototype._onDoubleClick).call(o,this)),this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var o=this.parent.dom.foreground;if(!o)throw new Error("Cannot redraw item: parent has no foreground container element");o.appendChild(this.dom.box)}var c=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!c)throw new Error("Cannot redraw item: parent has no background container element");c.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var f=this.parent.dom.axis;if(!c)throw new Error("Cannot redraw item: parent has no axis container element");f.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var o=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+o,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var o={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&&(o.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},o.line={width:this.dom.line.offsetWidth}),o}},{key:"_updateDomComponentsSizes",value:function(o){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=o.box.width:this.width=o.box.width,this.height=o.box.height,this.options.rtl?this.dom.box.style.right=o.previous.right:this.dom.box.style.left=o.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var o=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-o,fitEnd:this.data.max+o}}},{key:"_fit",value:function(){if(this.emitter){var o=this._getFitRange(),c=o.fitStart,f=o.fitEnd,m={start:new Date(c),end:new Date(f),animation:!0};this.emitter.emit("fit",m)}}},{key:"_getItemData",value:function(){return this.data}}]),u}(kh);function nM(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return Fb(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return Fb(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function Fb(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}Lb.prototype.baseClassName="vis-item vis-range vis-cluster";var aM="__ungrouped__",oM=function(){function s(r){jt(this,s),this.itemSet=r,this.groups={},this.cache={},this.cache[-1]=[]}return Jt(s,[{key:"createClusterItem",value:function(r,u,o){return new Lb(r,u,o)}},{key:"setItems",value:function(r,u){this.items=r||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,u&&u.applyOnChangedLevel&&(this.applyOnChangedLevel=u.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(r,u,o){var c=typeof o=="boolean"?{}:o,f=c.maxItems,m=c.clusterCriteria;m||(m=function(){return!0}),f=f||1;var S=-1,x=0;if(u>0){if(u>=1)return[];S=Math.abs(Math.round(Math.log(100/u)/Math.log(2))),x=Math.abs(Math.pow(2,S))}if(this.dataChanged){var O=S!=this.cacheLevel;(!this.applyOnChangedLevel||O)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=S;var I=this.cache[S];if(!I){for(var N in I=[],this.groups)if(this.groups.hasOwnProperty(N))for(var L=this.groups[N],z=L.length,W=0;W<z;){for(var X=L[W],Z=1,Q=W-1;Q>=0&&X.center-L[Q].center<x/2;)!L[Q].cluster&&m(X.data,L[Q].data)&&Z++,Q--;for(var ne=W+1;ne<L.length&&L[ne].center-X.center<x/2;)m(X.data,L[ne].data)&&Z++,ne++;for(var he=I.length-1;he>=0&&X.center-I[he].center<x;)X.group==I[he].group&&m(X.data,I[he].data)&&Z++,he--;if(Z>f){for(var Te=Z-f+1,Re=[],xe=W;Re.length<Te&&xe<L.length;)m(L[W].data,L[xe].data)&&Re.push(L[xe]),xe++;var De=this.itemSet.getGroupId(X.data),fe=this.itemSet.groups[De]||this.itemSet.groups[aM],We=this._getClusterForItems(Re,fe,r,o);I.push(We),W+=Te}else delete X.cluster,W+=1}this.cache[S]=I}return I}},{key:"_filterData",value:function(){var r={};this.groups=r;for(var u=0,o=m0(this.items);u<o.length;u++){var c=o[u],f=c.parent?c.parent.groupId:"",m=r[f];m||(m=[],r[f]=m),m.push(c),c.data.start&&(c.data.end?c.center=(c.data.start.valueOf()+c.data.end.valueOf())/2:c.center=c.data.start.valueOf())}for(var S in r){var x;r.hasOwnProperty(S)&&Jr(x=r[S]).call(x,function(O,I){return O.center-I.center})}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(r,u,o,c){var f,m,S=Ei(f=o||[]).call(f,function(Q){var ne;return{cluster:Q,itemsIds:new qm(Ei(ne=Q.data.uiItems).call(ne,function(he){return he.id}))}});if(S.length){var x,O=nM(S);try{var I=function(){var Q=x.value;if(Q.itemsIds.size===r.length&&rM(r).call(r,function(ne){return Q.itemsIds.has(ne.id)}))return m=Q.cluster,1};for(O.s();!(x=O.n()).done&&!I(););}catch(Q){O.e(Q)}finally{O.f()}}if(m)return m.setUiItems(r),m.group!==u&&(m.group&&m.group.remove(m),u&&(u.add(m),m.group=u)),m;var N=c.titleTemplate||"",L={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},z=N.replace(/{count}/,r.length),W='<div title="'+z+'">'+r.length+"</div>",X=ih({},c,this.itemSet.options),Z={content:W,title:z,group:u,uiItems:r,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return m=this.createClusterItem(Z,L,X),u&&(u.add(m),m.group=u),m.attach(),m}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),s}();function Ul(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return yT(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return yT(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function yT(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}function Qm(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var Sh="__ungrouped__",Yn="__background__",Yv=function(s){Zn(u,s);var r=Qm(u);function u(o,c){var f;jt(this,u),(f=r.call(this)).body=o,f.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(S,x,O){var I=x.order;x.order=S.order,S.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:Av.snap,onDropObjectOnItem:function(S,x,O){O(x)},onAdd:function(S,x){x(S)},onUpdate:function(S,x){x(S)},onMove:function(S,x){x(S)},onRemove:function(S,x){x(S)},onMoving:function(S,x){x(S)},onAddGroup:function(S,x){x(S)},onMoveGroup:function(S,x){x(S)},onRemoveGroup:function(S,x){x(S)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},f.options=K.extend({},f.defaultOptions),f.options.rtl=c.rtl,f.options.onTimeout=c.onTimeout,f.conversion={toScreen:o.util.toScreen,toTime:o.util.toTime},f.dom={},f.props={},f.hammer=null;var m=Ti(f);return f.itemsData=null,f.groupsData=null,f.itemsSettingTime=null,f.initialItemSetDrawn=!1,f.userContinueNotBail=null,f.sequentialSelection=!1,f.itemListeners={add:function(S,x,O){m._onAdd(x.items),m.options.cluster&&m.clusterGenerator.setItems(m.items,{applyOnChangedLevel:!1}),m.redraw()},update:function(S,x,O){m._onUpdate(x.items),m.options.cluster&&m.clusterGenerator.setItems(m.items,{applyOnChangedLevel:!1}),m.redraw()},remove:function(S,x,O){m._onRemove(x.items),m.options.cluster&&m.clusterGenerator.setItems(m.items,{applyOnChangedLevel:!1}),m.redraw()}},f.groupListeners={add:function(S,x,O){if(m._onAddGroups(x.items),m.groupsData&&m.groupsData.length>0){var I,N=m.groupsData.getDataSet();Ae(I=N.get()).call(I,function(L){if(L.nestedGroups){var z;L.showNested!=0&&(L.showNested=!0);var W=[];Ae(z=L.nestedGroups).call(z,function(X){var Z=N.get(X);Z&&(Z.nestedInGroup=L.id,L.showNested==0&&(Z.visible=!1),W=xr(W).call(W,Z))}),N.update(W,O)}})}},update:function(S,x,O){m._onUpdateGroups(x.items)},remove:function(S,x,O){m._onRemoveGroups(x.items)}},f.items={},f.groups={},f.groupIds=[],f.selection=[],f.popup=null,f.popupTimer=null,f.touchParams={},f.groupTouchParams={group:null,isDragging:!1},f._create(),f.setOptions(c),f.clusters=[],f}return Jt(u,[{key:"_create",value:function(){var o,c,f,m,S,x,O,I,N,L,z,W,X,Z,Q,ne=this,he=document.createElement("div");he.className="vis-itemset",he["vis-itemset"]=this,this.dom.frame=he;var Te=document.createElement("div");Te.className="vis-background",he.appendChild(Te),this.dom.background=Te;var Re=document.createElement("div");Re.className="vis-foreground",he.appendChild(Re),this.dom.foreground=Re;var xe=document.createElement("div");xe.className="vis-axis",this.dom.axis=xe;var De=document.createElement("div");De.className="vis-labelset",this.dom.labelSet=De,this._updateUngrouped();var fe=new Rb(Yn,null,this);fe.show(),this.groups[Yn]=fe,this.hammer=new bn(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(We){We.isFirst&&ne._onTouch(We)}),this.hammer.on("panstart",de(o=this._onDragStart).call(o,this)),this.hammer.on("panmove",de(c=this._onDrag).call(c,this)),this.hammer.on("panend",de(f=this._onDragEnd).call(f,this)),this.hammer.get("pan").set({threshold:5,direction:bn.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",de(m=this._onSelectItem).call(m,this)),this.hammer.on("press",de(S=this._onMultiSelectItem).call(S,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",de(x=this._onAddItem).call(x,this)),this.options.rtl?this.groupHammer=new bn(this.body.dom.rightContainer):this.groupHammer=new bn(this.body.dom.leftContainer),this.groupHammer.on("tap",de(O=this._onGroupClick).call(O,this)),this.groupHammer.on("panstart",de(I=this._onGroupDragStart).call(I,this)),this.groupHammer.on("panmove",de(N=this._onGroupDrag).call(N,this)),this.groupHammer.on("panend",de(L=this._onGroupDragEnd).call(L,this)),this.groupHammer.get("pan").set({threshold:5,direction:bn.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",de(z=this._onMouseOver).call(z,this)),this.body.dom.centerContainer.addEventListener("mouseout",de(W=this._onMouseOut).call(W,this)),this.body.dom.centerContainer.addEventListener("mousemove",de(X=this._onMouseMove).call(X,this)),this.body.dom.centerContainer.addEventListener("contextmenu",de(Z=this._onDragEnd).call(Z,this)),this.body.dom.centerContainer.addEventListener("mousewheel",de(Q=this._onMouseWheel).call(Q,this)),this.show()}},{key:"setOptions",value:function(o){var c=this;if(o){var f,m;K.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,o),"itemsAlwaysDraggable"in o&&(typeof o.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=o.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):ft(o.itemsAlwaysDraggable)==="object"&&(K.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,o.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in o&&typeof o.sequentialSelection=="boolean"&&(this.options.sequentialSelection=o.sequentialSelection),"orientation"in o&&(typeof o.orientation=="string"?this.options.orientation.item=o.orientation==="top"?"top":"bottom":ft(o.orientation)==="object"&&"item"in o.orientation&&(this.options.orientation.item=o.orientation.item)),"margin"in o&&(typeof o.margin=="number"?(this.options.margin.axis=o.margin,this.options.margin.item.horizontal=o.margin,this.options.margin.item.vertical=o.margin):ft(o.margin)==="object"&&(K.selectiveExtend(["axis"],this.options.margin,o.margin),"item"in o.margin&&(typeof o.margin.item=="number"?(this.options.margin.item.horizontal=o.margin.item,this.options.margin.item.vertical=o.margin.item):ft(o.margin.item)==="object"&&K.selectiveExtend(["horizontal","vertical"],this.options.margin.item,o.margin.item)))),Ae(f=["locale","locales"]).call(f,function(S){S in o&&(c.options[S]=o[S])}),"editable"in o&&(typeof o.editable=="boolean"?(this.options.editable.updateTime=o.editable,this.options.editable.updateGroup=o.editable,this.options.editable.add=o.editable,this.options.editable.remove=o.editable,this.options.editable.overrideItems=!1):ft(o.editable)==="object"&&K.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,o.editable)),"groupEditable"in o&&(typeof o.groupEditable=="boolean"?(this.options.groupEditable.order=o.groupEditable,this.options.groupEditable.add=o.groupEditable,this.options.groupEditable.remove=o.groupEditable):ft(o.groupEditable)==="object"&&K.selectiveExtend(["order","add","remove"],this.options.groupEditable,o.groupEditable)),Ae(m=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(m,function(S){var x=o[S];if(x){var O;if(typeof x!="function")throw new Error(xr(O="option ".concat(S," must be a function ")).call(O,S,"(item, callback)"));c.options[S]=x}}),o.cluster?(ih(this.options,{cluster:o.cluster}),this.clusterGenerator||(this.clusterGenerator=new oM(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(o){this.groupIds=[],o&&(o.refreshItems&&Ae(K).call(K,this.items,function(c){c.dirty=!0,c.displayed&&c.redraw()}),o.restackGroups&&Ae(K).call(K,this.groups,function(c,f){f!==Yn&&(c.stackDirty=!0)}))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(o){if(this.clearPopupTimer(),o){var c=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=Ci(function(){o.show()},c)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(o){var c;o==null&&(o=[]),xt(o)||(o=[o]);var f,m=Mt(c=this.selection).call(c,function(W){return er(o).call(o,W)===-1}),S=Ul(m);try{for(S.s();!(f=S.n()).done;){var x=f.value,O=this.getItemById(x);O&&O.unselect()}}catch(W){S.e(W)}finally{S.f()}this.selection=co(o);var I,N=Ul(o);try{for(N.s();!(I=N.n()).done;){var L=I.value,z=this.getItemById(L);z&&z.select()}}catch(W){N.e(W)}finally{N.f()}}},{key:"getSelection",value:function(){var o;return xr(o=this.selection).call(o,[])}},{key:"getVisibleItems",value:function(){var o,c,f=this.body.range.getRange();this.options.rtl?(o=this.body.util.toScreen(f.start),c=this.body.util.toScreen(f.end)):(c=this.body.util.toScreen(f.start),o=this.body.util.toScreen(f.end));var m=[];for(var S in this.groups)if(this.groups.hasOwnProperty(S)){var x,O=this.groups[S],I=Ul(O.isVisible?O.visibleItems:[]);try{for(I.s();!(x=I.n()).done;){var N=x.value;this.options.rtl?N.right<c&&N.right+N.width>o&&m.push(N.id):N.left<o&&N.left+N.width>c&&m.push(N.id)}}catch(L){I.e(L)}finally{I.f()}}return m}},{key:"getItemsAtCurrentTime",value:function(o){var c,f;this.options.rtl?(c=this.body.util.toScreen(o),f=this.body.util.toScreen(o)):(f=this.body.util.toScreen(o),c=this.body.util.toScreen(o));var m=[];for(var S in this.groups)if(this.groups.hasOwnProperty(S)){var x,O=this.groups[S],I=Ul(O.isVisible?O.visibleItems:[]);try{for(I.s();!(x=I.n()).done;){var N=x.value;this.options.rtl?N.right<f&&N.right+N.width>c&&m.push(N.id):N.left<c&&N.left+N.width>f&&m.push(N.id)}}catch(L){I.e(L)}finally{I.f()}}return m}},{key:"getVisibleGroups",value:function(){var o=[];for(var c in this.groups)this.groups.hasOwnProperty(c)&&this.groups[c].isVisible&&o.push(c);return o}},{key:"getItemById",value:function(o){var c;return this.items[o]||Mx(c=this.clusters).call(c,function(f){return f.id===o})}},{key:"_deselect",value:function(o){for(var c=this.selection,f=0,m=c.length;f<m;f++)if(c[f]==o){Ln(c).call(c,f,1);break}}},{key:"redraw",value:function(){var o=this.options.margin,c=this.body.range,f=K.option.asSize,m=this.options,S=m.orientation.item,x=!1,O=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,O.className="vis-itemset",this.options.cluster&&this._clusterItems(),x=this._orderGroups()||x;var I=c.end-c.start,N=I!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,L=c.start!=this.lastRangeStart,z=m.stack!=this.lastStack,W=m.stackSubgroups!=this.lastStackSubgroups,X=N||L||z||W;this.lastVisibleInterval=I,this.lastRangeStart=c.start,this.lastStack=m.stack,this.lastStackSubgroups=m.stackSubgroups,this.props.lastWidth=this.props.width;var Z=this._firstGroup(),Q={item:o.item,axis:o.axis},ne={item:o.item,axis:o.item.vertical/2},he=0,Te=o.axis+o.item.vertical;this.groups[Yn].redraw(c,ne,X);var Re={},xe=0;if(Ae(K).call(K,this.groups,function(at,Gt){if(Gt!==Yn){var yr=at==Z?Q:ne;Re[Gt]=at.redraw(c,yr,X,!0),xe=Re[Gt].length}}),xe>0){for(var De={},fe=function(at){Ae(K).call(K,Re,function(Gt,yr){De[yr]=Gt[at]()})},We=0;We<xe;We++)fe(We);Ae(K).call(K,this.groups,function(at,Gt){if(Gt!==Yn){var yr=De[Gt];x=yr||x,he+=at.height}}),he=Math.max(he,Te)}return he=Math.max(he,Te),O.style.height=f(he),this.props.width=O.offsetWidth,this.props.height=he,this.dom.axis.style.top=f(S=="top"?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,x=this._isResized()||x}},{key:"_firstGroup",value:function(){var o=this.options.orientation.item=="top"?0:this.groupIds.length-1,c=this.groupIds[o];return this.groups[c]||this.groups[Sh]||null}},{key:"_updateUngrouped",value:function(){var o,c,f=this.groups[Sh];if(this.groupsData){if(f){for(c in f.dispose(),delete this.groups[Sh],this.items)if(this.items.hasOwnProperty(c)){(o=this.items[c]).parent&&o.parent.remove(o);var m=this.getGroupId(o.data),S=this.groups[m];S&&S.add(o)||o.hide()}}}else if(!f){for(c in f=new Zm(null,null,this),this.groups[Sh]=f,this.items)this.items.hasOwnProperty(c)&&(o=this.items[c],f.add(o));f.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(o){this.itemsSettingTime=new Date;var c,f=this,m=this.itemsData;if(o){if(!Ns(o))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=jl(o)}else this.itemsData=null;if(m&&(Ae(K).call(K,this.itemListeners,function(x,O){m.off(O,x)}),m.dispose(),c=m.getIds(),this._onRemove(c)),this.itemsData){var S=this.id;Ae(K).call(K,this.itemListeners,function(x,O){f.itemsData.on(O,x,S)}),c=this.itemsData.getIds(),this._onAdd(c),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData!=null?this.itemsData.rawDS:null}},{key:"setGroups",value:function(o){var c,f=this;if(this.groupsData&&(Ae(K).call(K,this.groupListeners,function(O,I){f.groupsData.off(I,O)}),c=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(c)),o){if(!Ns(o))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=o}else this.groupsData=null;if(this.groupsData){var m,S=this.groupsData.getDataSet();Ae(m=S.get()).call(m,function(O){var I;O.nestedGroups&&Ae(I=O.nestedGroups).call(I,function(N){var L=S.get(N);L.nestedInGroup=O.id,O.showNested==0&&(L.visible=!1),S.update(L)})});var x=this.id;Ae(K).call(K,this.groupListeners,function(O,I){f.groupsData.on(I,O,x)}),c=this.groupsData.getIds(),this._onAddGroups(c)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(o){var c=this,f=this.itemsData.get(o);f&&this.options.onRemove(f,function(m){m&&c.itemsData.remove(o)})}},{key:"_getType",value:function(o){return o.type||this.options.type||(o.end?"range":"box")}},{key:"getGroupId",value:function(o){return this._getType(o)=="background"&&o.group==null?Yn:this.groupsData?o.group:Sh}},{key:"_onUpdate",value:function(o){var c=this,f=this;Ae(o).call(o,function(m){var S,x=f.itemsData.get(m),O=f.items[m],I=x?f._getType(x):null,N=u.types[I];if(O&&(N&&O instanceof N?f._updateItem(O,x):(S=O.selected,f._removeItem(O),O=null)),!O&&x){if(!N)throw new TypeError('Unknown item type "'.concat(I,'"'));(O=new N(x,f.conversion,f.options)).id=m,f._addItem(O),S&&(c.selection.push(m),O.select())}}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(o){var c=0,f=this;Ae(o).call(o,function(m){var S=f.items[m];S&&(c++,f._removeItem(S))}),c&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){Ae(K).call(K,this.groups,function(o){o.order()})}},{key:"_onUpdateGroups",value:function(o){this._onAddGroups(o)}},{key:"_onAddGroups",value:function(o){var c=this;Ae(o).call(o,function(f){var m=c.groupsData.get(f),S=c.groups[f];if(S)S.setData(m);else{if(f==Sh||f==Yn)throw new Error("Illegal group id. ".concat(f," is a reserved id."));var x=nm(c.options);for(var O in K.extend(x,{height:null}),S=new Zm(f,m,c),c.groups[f]=S,c.items)if(c.items.hasOwnProperty(O)){var I=c.items[O];I.data.group==f&&S.add(I)}S.order(),S.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(o){var c=this;Ae(o).call(o,function(f){var m=c.groups[f];m&&(m.dispose(),delete c.groups[f])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var o=this.groupsData.getIds({order:this.options.groupOrder});o=this._orderNestedGroups(o);var c=!K.equalArray(o,this.groupIds);if(c){var f=this.groups;Ae(o).call(o,function(m){f[m].hide()}),Ae(o).call(o,function(m){f[m].show()}),this.groupIds=o}return c}return!1}},{key:"_orderNestedGroups",value:function(o){var c=this;return function f(m,S){var x=[];return Ae(S).call(S,function(O){if(x.push(O),m.groupsData.get(O).nestedGroups){var I,N=Ei(I=m.groupsData.get({filter:function(L){return L.nestedInGroup==O},order:m.options.groupOrder})).call(I,function(L){return L.id});x=xr(x).call(x,f(m,N))}}),x}(this,Mt(o).call(o,function(f){return!c.groupsData.get(f).nestedInGroup}))}},{key:"_addItem",value:function(o){this.items[o.id]=o;var c=this.getGroupId(o.data),f=this.groups[c];f?f&&f.data&&f.data.showNested&&(o.groupShowing=!0):o.groupShowing=!1,f&&f.add(o)}},{key:"_updateItem",value:function(o,c){o.setData(c);var f=this.getGroupId(o.data),m=this.groups[f];m?m&&m.data&&m.data.showNested&&(o.groupShowing=!0):o.groupShowing=!1}},{key:"_removeItem",value:function(o){var c,f;o.hide(),delete this.items[o.id];var m=er(c=this.selection).call(c,o.id);m!=-1&&Ln(f=this.selection).call(f,m,1),o.parent&&o.parent.remove(o),this.popup!=null&&this.popup.hide()}},{key:"_constructByEndArray",value:function(o){for(var c=[],f=0;f<o.length;f++)o[f]instanceof Gl&&c.push(o[f]);return c}},{key:"_onTouch",value:function(o){this.touchParams.item=this.itemFromTarget(o),this.touchParams.dragLeftItem=o.target.dragLeftItem||!1,this.touchParams.dragRightItem=o.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(o){for(var c=0;c<this.groupIds.length;c++)if(o==this.groupIds[c])return c}},{key:"_onDragStart",value:function(o){var c=this;if(!this.touchParams.itemIsDragging){var f,m=this.touchParams.item||null,S=this;if(m&&(m.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||m.editable!=null&&!m.editable.updateTime&&!m.editable.updateGroup&&!this.options.editable.overrideItems)return;var x=this.touchParams.dragLeftItem,O=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=m,x)f={item:x,initialX:o.center.x,dragLeft:!0,data:this._cloneItemData(m.data)},this.touchParams.itemProps=[f];else if(O)f={item:O,initialX:o.center.x,dragRight:!0,data:this._cloneItemData(m.data)},this.touchParams.itemProps=[f];else if(this.options.editable.add&&(o.srcEvent.ctrlKey||o.srcEvent.metaKey))this._onDragStartAddItem(o);else{this.groupIds.length<1&&this.redraw();var I=this._getGroupIndex(m.data.group),N=this.options.itemsAlwaysDraggable.item&&!m.selected?[m.id]:this.getSelection();this.touchParams.itemProps=Ei(N).call(N,function(L){var z=S.items[L],W=S._getGroupIndex(z.data.group);return{item:z,initialX:o.center.x,groupOffset:I-W,data:c._cloneItemData(z.data)}})}o.stopPropagation()}else this.options.editable.add&&(o.srcEvent.ctrlKey||o.srcEvent.metaKey)&&this._onDragStartAddItem(o)}}},{key:"_onDragStartAddItem",value:function(o){var c=this.options.snap||null,f=this.dom.frame.getBoundingClientRect(),m=this.options.rtl?f.right-o.center.x+10:o.center.x-f.left-10,S=this.body.util.toTime(m),x=this.body.util.getScale(),O=this.body.util.getStep(),I=c?c(S,x,O):S,N={type:"range",start:I,end:I,content:"new item"},L=Rs();N[this.itemsData.idProp]=L;var z=this.groupFromTarget(o);z&&(N.group=z.groupId);var W=new Gl(N,this.conversion,this.options);W.id=L,W.data=this._cloneItemData(N),this._addItem(W),this.touchParams.selectedItem=W;var X={item:W,initialX:o.center.x,data:W.data};this.options.rtl?X.dragLeft=!0:X.dragRight=!0,this.touchParams.itemProps=[X],o.stopPropagation()}},{key:"_onDrag",value:function(o){var c=this;if(this.popup!=null&&this.options.showTooltips&&!this.popup.hidden){var f=this.body.dom.centerContainer,m=f.getBoundingClientRect();this.popup.setPosition(o.center.x-m.left+f.offsetLeft,o.center.y-m.top+f.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var S;o.stopPropagation();var x=this,O=this.options.snap||null,I=this.body.dom.root.offsetLeft,N=this.options.rtl?I+this.body.domProps.right.width:I+this.body.domProps.left.width,L=this.body.util.getScale(),z=this.body.util.getStep(),W=this.touchParams.selectedItem,X=(this.options.editable.overrideItems||W.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&W.editable!=null&&W.editable.updateGroup,Z=null;if(X&&W&&W.data.group!=null){var Q=x.groupFromTarget(o);Q&&(Z=this._getGroupIndex(Q.groupId))}Ae(S=this.touchParams.itemProps).call(S,function(ne){var he,Te,Re,xe,De,fe=x.body.util.toTime(o.center.x-N),We=x.body.util.toTime(ne.initialX-N);he=c.options.rtl?-(fe-We):fe-We;var at=c._cloneItemData(ne.item.data);if(ne.item.editable==null||ne.item.editable.updateTime||ne.item.editable.updateGroup||x.options.editable.overrideItems){if((c.options.editable.overrideItems||W.editable==null)&&c.options.editable.updateTime||!c.options.editable.overrideItems&&W.editable!=null&&W.editable.updateTime){if(ne.dragLeft)c.options.rtl?at.end!=null&&(Re=K.convert(ne.data.end,"Date"),De=new Date(Re.valueOf()+he),at.end=O?O(De,L,z):De):at.start!=null&&(Te=K.convert(ne.data.start,"Date"),xe=new Date(Te.valueOf()+he),at.start=O?O(xe,L,z):xe);else if(ne.dragRight)c.options.rtl?at.start!=null&&(Te=K.convert(ne.data.start,"Date"),xe=new Date(Te.valueOf()+he),at.start=O?O(xe,L,z):xe):at.end!=null&&(Re=K.convert(ne.data.end,"Date"),De=new Date(Re.valueOf()+he),at.end=O?O(De,L,z):De);else if(at.start!=null)if(Te=K.convert(ne.data.start,"Date").valueOf(),xe=new Date(Te+he),at.end!=null){var Gt=(Re=K.convert(ne.data.end,"Date")).valueOf()-Te.valueOf();at.start=O?O(xe,L,z):xe,at.end=new Date(at.start.valueOf()+Gt)}else at.start=O?O(xe,L,z):xe}if(X&&!ne.dragLeft&&!ne.dragRight&&Z!=null&&at.group!=null){var yr=Z-ne.groupOffset;yr=Math.max(0,yr),yr=Math.min(x.groupIds.length-1,yr),at.group=x.groupIds[yr]}at=c._cloneItemData(at),x.options.onMoving(at,function(Hn){Hn&&ne.item.setData(c._cloneItemData(Hn,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(o,c){var f=this.groups[c];if(f&&f.groupId!=o.data.group){var m=o.parent;m.remove(o),m.order(),o.data.group=f.groupId,f.add(o),f.order()}}},{key:"_onDragEnd",value:function(o){var c=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){o.stopPropagation();var f=this,m=this.touchParams.itemProps;this.touchParams.itemProps=null,Ae(m).call(m,function(S){var x=S.item.id;if(f.itemsData.get(x)!=null){var O=c._cloneItemData(S.item.data);f.options.onMove(O,function(I){I?(I[c.itemsData.idProp]=x,c.itemsData.update(I)):(S.item.setData(S.data),f.body.emitter.emit("_change"))})}else f.options.onAdd(S.item.data,function(I){f._removeItem(S.item),I&&f.itemsData.add(I),f.body.emitter.emit("_change")})})}}},{key:"_onGroupClick",value:function(o){var c=this,f=this.groupFromTarget(o);Ci(function(){c.toggleGroupShowNested(f)},1)}},{key:"toggleGroupShowNested",value:function(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(o&&o.nestedGroups){var f=this.groupsData.getDataSet();o.showNested=c!=null?!!c:!o.showNested;var m=f.get(o.groupId);m.showNested=o.showNested;for(var S,x=o.nestedGroups,O=x;O.length>0;){var I=O;O=[];for(var N=0;N<I.length;N++){var L=f.get(I[N]);L.nestedGroups&&(O=xr(O).call(O,L.nestedGroups))}O.length>0&&(x=xr(x).call(x,O))}if(m.showNested){for(var z=f.get(m.nestedGroups),W=0;W<z.length;W++){var X=z[W];X.nestedGroups&&X.nestedGroups.length>0&&(X.showNested==null||X.showNested==1)&&z.push.apply(z,co(f.get(X.nestedGroups)))}S=Ei(z).call(z,function(Q){return Q.visible==null&&(Q.visible=!0),Q.visible=!!m.showNested,Q})}else{var Z;S=Ei(Z=f.get(x)).call(Z,function(Q){return Q.visible==null&&(Q.visible=!0),Q.visible=!!m.showNested,Q})}f.update(xr(S).call(S,m)),m.showNested?(K.removeClassName(o.dom.label,"collapsed"),K.addClassName(o.dom.label,"expanded")):(K.removeClassName(o.dom.label,"expanded"),K.addClassName(o.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(o){o.dom.label.classList.toggle("vis-group-is-dragging"),o.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(o){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(o),this.groupTouchParams.group&&(o.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(o){if(this.options.groupEditable.order&&this.groupTouchParams.group){o.stopPropagation();var c=this.groupsData.getDataSet(),f=this.groupFromTarget(o);if(f&&f.height!=this.groupTouchParams.group.height){var m=f.top<this.groupTouchParams.group.top,S=o.center?o.center.y:o.clientY,x=f.dom.foreground.getBoundingClientRect(),O=this.groupTouchParams.group.height;if(m){if(x.top+O<S)return}else{var I=f.height;if(x.top+I-O>S)return}}if(f&&f!=this.groupTouchParams.group){var N=c.get(f.groupId),L=c.get(this.groupTouchParams.group.groupId);L&&N&&(this.options.groupOrderSwap(L,N,c),c.update(L),c.update(N));var z=c.getIds({order:this.options.groupOrder});if(!K.equalArray(z,this.groupTouchParams.originalOrder))for(var W=this.groupTouchParams.originalOrder,X=this.groupTouchParams.group.groupId,Z=Math.min(W.length,z.length),Q=0,ne=0,he=0;Q<Z;){for(;Q+ne<Z&&Q+he<Z&&z[Q+ne]==W[Q+he];)Q++;if(Q+ne>=Z)break;if(z[Q+ne]==X)ne=1;else if(W[Q+he]==X)he=1;else{var Te=er(z).call(z,W[Q+he]),Re=c.get(z[Q+ne]),xe=c.get(W[Q+he]);this.options.groupOrderSwap(Re,xe,c),c.update(Re),c.update(xe);var De=z[Q+ne];z[Q+ne]=W[Q+he],z[Te]=De,Q++}}}}}},{key:"_onGroupDragEnd",value:function(o){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){o.stopPropagation();var c=this,f=c.groupTouchParams.group.groupId,m=c.groupsData.getDataSet(),S=K.extend({},m.get(f));c.options.onMoveGroup(S,function(x){if(x)x[m._idProp]=f,m.update(x);else{var O=m.getIds({order:c.options.groupOrder});if(!K.equalArray(O,c.groupTouchParams.originalOrder))for(var I=c.groupTouchParams.originalOrder,N=Math.min(I.length,O.length),L=0;L<N;){for(;L<N&&O[L]==I[L];)L++;if(L>=N)break;var z=er(O).call(O,I[L]),W=m.get(O[L]),X=m.get(I[L]);c.options.groupOrderSwap(W,X,m),m.update(W),m.update(X);var Z=O[L];O[L]=I[L],O[z]=Z,L++}}}),c.body.emitter.emit("groupDragged",{groupId:f}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(o){if(this.options.selectable){var c=o.srcEvent&&(o.srcEvent.ctrlKey||o.srcEvent.metaKey),f=o.srcEvent&&o.srcEvent.shiftKey;if(c||f)this._onMultiSelectItem(o);else{var m=this.getSelection(),S=this.itemFromTarget(o),x=S&&S.selectable?[S.id]:[];this.setSelection(x);var O=this.getSelection();(O.length>0||m.length>0)&&this.body.emitter.emit("select",{items:O,event:o})}}}},{key:"_onMouseOver",value:function(o){var c=this.itemFromTarget(o);if(c&&c!==this.itemFromRelatedTarget(o)){var f=c.getTitle();if(this.options.showTooltips&&f){this.popup==null&&(this.popup=new XI(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(f);var m=this.body.dom.centerContainer,S=m.getBoundingClientRect();this.popup.setPosition(o.clientX-S.left+m.offsetLeft,o.clientY-S.top+m.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:c.id,event:o})}}},{key:"_onMouseOut",value:function(o){var c=this.itemFromTarget(o);c&&c!==this.itemFromRelatedTarget(o)&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:c.id,event:o}))}},{key:"_onMouseMove",value:function(o){if(this.itemFromTarget(o)&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var c=this.body.dom.centerContainer,f=c.getBoundingClientRect();this.popup.setPosition(o.clientX-f.left+c.offsetLeft,o.clientY-f.top+c.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(o){this.touchParams.itemIsDragging&&this._onDragEnd(o)}},{key:"_onUpdateItem",value:function(o){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var c=this;if(o){var f=c.itemsData.get(o.id);this.options.onUpdate(f,function(m){m&&c.itemsData.update(m)})}}}},{key:"_onDropObjectOnItem",value:function(o){var c=this.itemFromTarget(o),f=JSON.parse(o.dataTransfer.getData("text"));this.options.onDropObjectOnItem(f,c)}},{key:"_onAddItem",value:function(o){if(this.options.selectable&&this.options.editable.add){var c,f,m=this,S=this.options.snap||null,x=this.dom.frame.getBoundingClientRect(),O=this.options.rtl?x.right-o.center.x:o.center.x-x.left,I=this.body.util.toTime(O),N=this.body.util.getScale(),L=this.body.util.getStep();o.type=="drop"?((f=JSON.parse(o.dataTransfer.getData("text"))).content=f.content?f.content:"new item",f.start=f.start?f.start:S?S(I,N,L):I,f.type=f.type||"box",f[this.itemsData.idProp]=f.id||Rs(),f.type!="range"||f.end||(c=this.body.util.toTime(O+this.props.width/5),f.end=S?S(c,N,L):c)):((f={start:S?S(I,N,L):I,content:"new item"})[this.itemsData.idProp]=Rs(),this.options.type==="range"&&(c=this.body.util.toTime(O+this.props.width/5),f.end=S?S(c,N,L):c));var z=this.groupFromTarget(o);z&&(f.group=z.groupId),f=this._cloneItemData(f),this.options.onAdd(f,function(W){W&&(m.itemsData.add(W),o.type=="drop"&&m.setSelection([W.id]))})}}},{key:"_onMultiSelectItem",value:function(o){var c=this;if(this.options.selectable){var f=this.itemFromTarget(o);if(f){var m=this.options.multiselect?this.getSelection():[];if((o.srcEvent&&o.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var S=this.itemsData.get(f.id).group,x=void 0;this.options.multiselectPerGroup&&m.length>0&&(x=this.itemsData.get(m[0]).group),this.options.multiselectPerGroup&&x!=null&&x!=S||m.push(f.id);var O=u._getItemRange(this.itemsData.get(m));if(!this.options.multiselectPerGroup||x==S){for(var I in m=[],this.items)if(this.items.hasOwnProperty(I)){var N=this.items[I],L=N.data.start,z=N.data.end!==void 0?N.data.end:L;!(L>=O.min&&z<=O.max)||this.options.multiselectPerGroup&&x!=this.itemsData.get(N.id).group||N instanceof zl||m.push(N.id)}}}else{var W=er(m).call(m,f.id);W==-1?m.push(f.id):Ln(m).call(m,W,1)}var X=Mt(m).call(m,function(Z){return c.getItemById(Z).selectable});this.setSelection(X),this.body.emitter.emit("select",{items:this.getSelection(),event:o})}}}},{key:"itemFromElement",value:function(o){for(var c=o;c;){if(c.hasOwnProperty("vis-item"))return c["vis-item"];c=c.parentNode}return null}},{key:"itemFromTarget",value:function(o){return this.itemFromElement(o.target)}},{key:"itemFromRelatedTarget",value:function(o){return this.itemFromElement(o.relatedTarget)}},{key:"groupFromTarget",value:function(o){var c=o.center?o.center.y:o.clientY,f=this.groupIds;f.length<=0&&this.groupsData&&(f=this.groupsData.getIds({order:this.options.groupOrder}));for(var m=0;m<f.length;m++){var S=f[m],x=this.groups[S],O=x.dom.foreground,I=O.getBoundingClientRect();if(c>=I.top&&c<I.top+O.offsetHeight)return x;if(this.options.orientation.item==="top"){if(m===this.groupIds.length-1&&c>I.top)return x}else if(m===0&&c<I.top+O.offset)return x}return null}},{key:"_cloneItemData",value:function(o,c){var f=K.extend({},o);return c||(c=this.itemsData.type),f.start!=null&&(f.start=K.convert(f.start,c&&c.start||"Date")),f.end!=null&&(f.end=K.convert(f.end,c&&c.end||"Date")),f}},{key:"_clusterItems",value:function(){if(this.options.cluster){var o=this.body.range.conversion(this.body.domProps.center.width).scale,c=this.clusterGenerator.getClusters(this.clusters,o,this.options.cluster);if(this.clusters!=c){if(this._detachAllClusters(),c){var f,m=Ul(c);try{for(m.s();!(f=m.n()).done;)f.value.attach()}catch(S){m.e(S)}finally{m.f()}this.clusters=c}this._updateClusters(c)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var o,c=Ul(this.clusters);try{for(c.s();!(o=c.n()).done;)o.value.detach()}catch(f){c.e(f)}finally{c.f()}}}},{key:"_updateClusters",value:function(o){if(this.clusters&&this.clusters.length){var c,f,m=new qm(Ei(o).call(o,function(X){return X.id})),S=Mt(c=this.clusters).call(c,function(X){return!m.has(X.id)}),x=!1,O=Ul(S);try{for(O.s();!(f=O.n()).done;){var I,N,L=f.value,z=er(I=this.selection).call(I,L.id);z!==-1&&(L.unselect(),Ln(N=this.selection).call(N,z,1),x=!0)}}catch(X){O.e(X)}finally{O.f()}if(x){var W=this.getSelection();this.body.emitter.emit("select",{items:W,event})}}this.clusters=o||[]}}],[{key:"_getItemRange",value:function(o){var c=null,f=null;return Ae(o).call(o,function(m){(f==null||m.start<f)&&(f=m.start),m.end!=null?(c==null||m.end>c)&&(c=m.end):(c==null||m.start>c)&&(c=m.start)}),{min:f,max:c}}},{key:"itemSetFromTarget",value:function(o){for(var c=o.target;c;){if(c.hasOwnProperty("vis-itemset"))return c["vis-itemset"];c=c.parentNode}return null}}]),u}(Ia);Yv.types={background:zl,box:Nb,range:Gl,point:vT},Yv.prototype._onAdd=Yv.prototype._onUpdate;var bT,Bv=!1,eg="background: #FFeeee; color: #dd0000",_T=function(){function s(){jt(this,s)}return Jt(s,null,[{key:"validate",value:function(r,u,o){Bv=!1,bT=u;var c=u;return o!==void 0&&(c=u[o]),s.parse(r,c,[]),Bv}},{key:"parse",value:function(r,u,o){for(var c in r)r.hasOwnProperty(c)&&s.check(c,r,u,o)}},{key:"check",value:function(r,u,o,c){if(o[r]!==void 0||o.__any__!==void 0){var f=r,m=!0;o[r]===void 0&&o.__any__!==void 0&&(f="__any__",m=s.getType(u[r])==="object");var S=o[f];m&&S.__type__!==void 0&&(S=S.__type__),s.checkFields(r,u,o,f,S,c)}else s.getSuggestion(r,o,c)}},{key:"checkFields",value:function(r,u,o,c,f,m){var S=function(I){console.log("%c"+I+s.printLocation(m,r),eg)},x=s.getType(u[r]),O=f[x];O!==void 0?s.getType(O)==="array"&&er(O).call(O,u[r])===-1?(S('Invalid option detected in "'+r+'". Allowed values are:'+s.print(O)+' not "'+u[r]+'". '),Bv=!0):x==="object"&&c!=="__any__"&&(m=K.copyAndExtendArray(m,r),s.parse(u[r],o[c],m)):f.any===void 0&&(S('Invalid type received for "'+r+'". Expected: '+s.print(Di(f))+". Received ["+x+'] "'+u[r]+'"'),Bv=!0)}},{key:"getType",value:function(r){var u=ft(r);return u==="object"?r===null?"null":r instanceof Boolean?"boolean":r instanceof Number?"number":r instanceof String?"string":xt(r)?"array":r instanceof Date?"date":r.nodeType!==void 0?"dom":r._isAMomentObject===!0?"moment":"object":u==="number"?"number":u==="boolean"?"boolean":u==="string"?"string":u===void 0?"undefined":u}},{key:"getSuggestion",value:function(r,u,o){var c,f=s.findInOptions(r,u,o,!1),m=s.findInOptions(r,bT,[],!0);c=f.indexMatch!==void 0?" in "+s.printLocation(f.path,r,"")+'Perhaps it was incomplete? Did you mean: "'+f.indexMatch+`"?
`:m.distance<=4&&f.distance>m.distance?" in "+s.printLocation(f.path,r,"")+"Perhaps it was misplaced? Matching option found at: "+s.printLocation(m.path,m.closestMatch,""):f.distance<=8?'. Did you mean "'+f.closestMatch+'"?'+s.printLocation(f.path,r):". Did you mean one of these: "+s.print(Di(u))+s.printLocation(o,r),console.log('%cUnknown option detected: "'+r+'"'+c,eg),Bv=!0}},{key:"findInOptions",value:function(r,u,o){var c=arguments.length>3&&arguments[3]!==void 0&&arguments[3],f=1e9,m="",S=[],x=r.toLowerCase(),O=void 0;for(var I in u){var N=void 0;if(u[I].__type__!==void 0&&c===!0){var L=s.findInOptions(r,u[I],K.copyAndExtendArray(o,I));f>L.distance&&(m=L.closestMatch,S=L.path,f=L.distance,O=L.indexMatch)}else{var z;er(z=I.toLowerCase()).call(z,x)!==-1&&(O=I),f>(N=s.levenshteinDistance(r,I))&&(m=I,S=K.copyArray(o),f=N)}}return{closestMatch:m,path:S,distance:f,indexMatch:O}}},{key:"printLocation",value:function(r,u){for(var o=`
`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
`)+`options = {
`,c=0;c<r.length;c++){for(var f=0;f<c+1;f++)o+=" ";o+=r[c]+`: {
`}for(var m=0;m<r.length+1;m++)o+=" ";o+=u+`
`;for(var S=0;S<r.length+1;S++){for(var x=0;x<r.length-S;x++)o+=" ";o+=`}
`}return o+`
`}},{key:"print",value:function(r){return ta(r).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(r,u){if(r.length===0)return u.length;if(u.length===0)return r.length;var o,c,f=[];for(o=0;o<=u.length;o++)f[o]=[o];for(c=0;c<=r.length;c++)f[0][c]=c;for(o=1;o<=u.length;o++)for(c=1;c<=r.length;c++)u.charAt(o-1)==r.charAt(c-1)?f[o][c]=f[o-1][c-1]:f[o][c]=Math.min(f[o-1][c-1]+1,Math.min(f[o][c-1]+1,f[o-1][c]+1));return f[u.length][r.length]}}]),s}(),dt="string",pt="boolean",or="number",tg="array",Vl="date",Qr="object",rd="moment",sM={configure:{enabled:{boolean:pt},filter:{boolean:pt,function:"function"},container:{dom:"dom"},__type__:{object:Qr,boolean:pt,function:"function"}},align:{string:dt},alignCurrentTime:{string:dt,undefined:"undefined"},rtl:{boolean:pt,undefined:"undefined"},rollingMode:{follow:{boolean:pt},offset:{number:or,undefined:"undefined"},__type__:{object:Qr}},onTimeout:{timeoutMs:{number:or},callback:{function:"function"},__type__:{object:Qr}},verticalScroll:{boolean:pt,undefined:"undefined"},horizontalScroll:{boolean:pt,undefined:"undefined"},autoResize:{boolean:pt},throttleRedraw:{number:or},clickToUse:{boolean:pt},dataAttributes:{string:dt,array:tg},editable:{add:{boolean:pt,undefined:"undefined"},remove:{boolean:pt,undefined:"undefined"},updateGroup:{boolean:pt,undefined:"undefined"},updateTime:{boolean:pt,undefined:"undefined"},overrideItems:{boolean:pt,undefined:"undefined"},__type__:{boolean:pt,object:Qr}},end:{number:or,date:Vl,string:dt,moment:rd},format:{minorLabels:{millisecond:{string:dt,undefined:"undefined"},second:{string:dt,undefined:"undefined"},minute:{string:dt,undefined:"undefined"},hour:{string:dt,undefined:"undefined"},weekday:{string:dt,undefined:"undefined"},day:{string:dt,undefined:"undefined"},week:{string:dt,undefined:"undefined"},month:{string:dt,undefined:"undefined"},year:{string:dt,undefined:"undefined"},__type__:{object:Qr,function:"function"}},majorLabels:{millisecond:{string:dt,undefined:"undefined"},second:{string:dt,undefined:"undefined"},minute:{string:dt,undefined:"undefined"},hour:{string:dt,undefined:"undefined"},weekday:{string:dt,undefined:"undefined"},day:{string:dt,undefined:"undefined"},week:{string:dt,undefined:"undefined"},month:{string:dt,undefined:"undefined"},year:{string:dt,undefined:"undefined"},__type__:{object:Qr,function:"function"}},__type__:{object:Qr}},moment:{function:"function"},groupHeightMode:{string:dt},groupOrder:{string:dt,function:"function"},groupEditable:{add:{boolean:pt,undefined:"undefined"},remove:{boolean:pt,undefined:"undefined"},order:{boolean:pt,undefined:"undefined"},__type__:{boolean:pt,object:Qr}},groupOrderSwap:{function:"function"},height:{string:dt,number:or},hiddenDates:{start:{date:Vl,number:or,string:dt,moment:rd},end:{date:Vl,number:or,string:dt,moment:rd},repeat:{string:dt},__type__:{object:Qr,array:tg}},itemsAlwaysDraggable:{item:{boolean:pt,undefined:"undefined"},range:{boolean:pt,undefined:"undefined"},__type__:{boolean:pt,object:Qr}},limitSize:{boolean:pt},locale:{string:dt},locales:{__any__:{any:"any"},__type__:{object:Qr}},longSelectPressTime:{number:or},margin:{axis:{number:or},item:{horizontal:{number:or,undefined:"undefined"},vertical:{number:or,undefined:"undefined"},__type__:{object:Qr,number:or}},__type__:{object:Qr,number:or}},max:{date:Vl,number:or,string:dt,moment:rd},maxHeight:{number:or,string:dt},maxMinorChars:{number:or},min:{date:Vl,number:or,string:dt,moment:rd},minHeight:{number:or,string:dt},moveable:{boolean:pt},multiselect:{boolean:pt},multiselectPerGroup:{boolean:pt},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:dt,undefined:"undefined"},item:{string:dt,undefined:"undefined"},__type__:{string:dt,object:Qr}},selectable:{boolean:pt},sequentialSelection:{boolean:pt},showCurrentTime:{boolean:pt},showMajorLabels:{boolean:pt},showMinorLabels:{boolean:pt},showWeekScale:{boolean:pt},stack:{boolean:pt},stackSubgroups:{boolean:pt},cluster:{maxItems:{number:or,undefined:"undefined"},titleTemplate:{string:dt,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:pt,undefined:"undefined"},fitOnDoubleClick:{boolean:pt,undefined:"undefined"},__type__:{boolean:pt,object:Qr}},snap:{function:"function",null:"null"},start:{date:Vl,number:or,string:dt,moment:rd},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:dt,function:"function"},showTooltips:{boolean:pt},tooltip:{followMouse:{boolean:pt},overflowMethod:{string:["cap","flip","none"]},delay:{number:or},template:{function:"function"},__type__:{object:Qr}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:pt,object:Qr}},timeAxis:{scale:{string:dt,undefined:"undefined"},step:{number:or,undefined:"undefined"},__type__:{object:Qr}},type:{string:dt},width:{string:dt,number:or},preferZoom:{boolean:pt},zoomable:{boolean:pt},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:or},zoomMax:{number:or},zoomMin:{number:or},xss:{disabled:{boolean:pt},filterOptions:{__any__:{any:"any"},__type__:{object:Qr}},__type__:{object:Qr}},__type__:{object:Qr}},lM={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}}},uM={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"},hM=function(){function s(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;jt(this,s),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Jt(s,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=r}},{key:"setCloseCallback",value:function(r){if(typeof r!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=r}},{key:"_isColorString",value:function(r){if(typeof r=="string")return uM[r]}},{key:"setColor",value:function(r){var u=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(r!=="none"){var o,c=this._isColorString(r);if(c!==void 0&&(r=c),K.isString(r)===!0){if(K.isValidRGB(r)===!0){var f=r.substr(4).substr(0,r.length-5).split(",");o={r:f[0],g:f[1],b:f[2],a:1}}else if(K.isValidRGBA(r)===!0){var m=r.substr(5).substr(0,r.length-6).split(",");o={r:m[0],g:m[1],b:m[2],a:m[3]}}else if(K.isValidHex(r)===!0){var S=K.hexToRGB(r);o={r:S.r,g:S.g,b:S.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var x=r.a!==void 0?r.a:"1.0";o={r:r.r,g:r.g,b:r.b,a:x}}if(o===void 0)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: "+ta(r));this._setColor(o,u)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=K.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ci(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=K.extend({},r)),this.color=r;var u=K.RGBToHSV(r.r,r.g,r.b),o=2*Math.PI,c=this.r*u.s,f=this.centerCoordinates.x+c*Math.sin(o*u.h),m=this.centerCoordinates.y+c*Math.cos(o*u.h);this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var u=K.RGBToHSV(this.color.r,this.color.g,this.color.b);u.v=r/100;var o=K.HSVToRGB(u.h,u.s,u.v);o.a=this.color.a,this.color=o,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,u=K.RGBToHSV(r.r,r.g,r.b),o=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1)),o.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var c=this.colorPickerCanvas.clientWidth,f=this.colorPickerCanvas.clientHeight;o.clearRect(0,0,c,f),o.putImageData(this.hueCircle,0,0),o.fillStyle="rgba(0,0,0,"+(1-u.v)+")",o.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),T0(o).call(o),this.brightnessRange.value=100*u.v,this.opacityRange.value=100*r.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var r,u,o,c;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var f=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(f.webkitBackingStorePixelRatio||f.mozBackingStorePixelRatio||f.msBackingStorePixelRatio||f.oBackingStorePixelRatio||f.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var m=document.createElement("DIV");m.style.color="red",m.style.fontWeight="bold",m.style.padding="10px",m.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(m)}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(x){}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(x){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var S=this;this.opacityRange.onchange=function(){S._setOpacity(this.value)},this.opacityRange.oninput=function(){S._setOpacity(this.value)},this.brightnessRange.onchange=function(){S._setBrightness(this.value)},this.brightnessRange.oninput=function(){S._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=de(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=de(u=this._apply).call(u,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=de(o=this._save).call(o,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=de(c=this._loadLast).call(c,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var r=this;this.drag={},this.pinch={},this.hammer=new bn(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),Tx(this.hammer,function(u){r._moveSelector(u)}),this.hammer.on("tap",function(u){r._moveSelector(u)}),this.hammer.on("panstart",function(u){r._moveSelector(u)}),this.hammer.on("panmove",function(u){r._moveSelector(u)}),this.hammer.on("panend",function(u){r._moveSelector(u)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var u,o,c,f,m=this.colorPickerCanvas.clientWidth,S=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,m,S),this.centerCoordinates={x:.5*m,y:.5*S},this.r=.49*m;var x,O=2*Math.PI/360,I=1/this.r;for(c=0;c<360;c++)for(f=0;f<this.r;f++)u=this.centerCoordinates.x+f*Math.sin(O*c),o=this.centerCoordinates.y+f*Math.cos(O*c),x=K.HSVToRGB(.002777777777777778*c,f*I,1),r.fillStyle="rgb("+x.r+","+x.g+","+x.b+")",r.fillRect(u-.5,o-.5,2,2);r.strokeStyle="rgba(0,0,0,1)",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),r.stroke(),this.hueCircle=r.getImageData(0,0,m,S)}this.generated=!0}},{key:"_moveSelector",value:function(r){var u=this.colorPickerDiv.getBoundingClientRect(),o=r.center.x-u.left,c=r.center.y-u.top,f=.5*this.colorPickerDiv.clientHeight,m=.5*this.colorPickerDiv.clientWidth,S=o-m,x=c-f,O=Math.atan2(S,x),I=.98*Math.min(Math.sqrt(S*S+x*x),m),N=Math.cos(O)*I+f,L=Math.sin(O)*I+m;this.colorPickerSelector.style.top=N-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=L-.5*this.colorPickerSelector.clientWidth+"px";var z=O/(2*Math.PI);z=z<0?z+1:z;var W=I/this.r,X=K.RGBToHSV(this.color.r,this.color.g,this.color.b);X.h=z,X.s=W;var Z=K.HSVToRGB(X.h,X.s,X.v);Z.a=this.color.a,this.color=Z,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+")"}}]),s}(),Hv=function(){function s(r,u,o){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;jt(this,s),this.parent=r,this.changedOptions=[],this.container=u,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},K.extend(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new hM(c),this.wrapper=void 0}return Jt(s,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var u=!0;if(typeof r=="string")this.options.filter=r;else if(xt(r))this.options.filter=r.join();else if(ft(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),Mt(r)!==void 0&&(this.options.filter=Mt(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(u=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,u=r):typeof r=="function"&&(this.options.filter=r,u=!0);Mt(this.options)===!1&&(u=!1),this.options.enabled=u}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=Mt(this.options),u=0,o=!1;for(var c in this.configureOptions)this.configureOptions.hasOwnProperty(c)&&(this.allowCreation=!1,o=!1,typeof r=="function"?o=(o=r(c,[]))||this._handleObject(this.configureOptions[c],[c],!0):r!==!0&&er(r).call(r,c)===-1||(o=!0),o!==!1&&(this.allowCreation=!0,u>0&&this._makeItem([]),this._makeHeader(c),this._handleObject(this.configureOptions[c],[c])),u++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var r=0;r<this.domElements.length;r++)this.wrapper.appendChild(this.domElements[r]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var r=0;r<this.domElements.length;r++)this.wrapper.removeChild(this.domElements[r]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(r){for(var u=this.moduleOptions,o=0;o<r.length;o++){if(u[r[o]]===void 0){u=void 0;break}u=u[r[o]]}return u}},{key:"_makeItem",value:function(r){if(this.allowCreation===!0){var u=document.createElement("div");u.className="vis-configuration vis-config-item vis-config-s"+r.length;for(var o=arguments.length,c=new Array(o>1?o-1:0),f=1;f<o;f++)c[f-1]=arguments[f];return Ae(c).call(c,function(m){u.appendChild(m)}),this.domElements.push(u),this.domElements.length}return 0}},{key:"_makeHeader",value:function(r){var u=document.createElement("div");u.className="vis-configuration vis-config-header",u.innerHTML=K.xss(r),this._makeItem([],u)}},{key:"_makeLabel",value:function(r,u){var o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],c=document.createElement("div");return c.className="vis-configuration vis-config-label vis-config-s"+u.length,c.innerHTML=o===!0?K.xss("<i><b>"+r+":</b></i>"):K.xss(r+":"),c}},{key:"_makeDropdown",value:function(r,u,o){var c=document.createElement("select");c.className="vis-configuration vis-config-select";var f=0;u!==void 0&&er(r).call(r,u)!==-1&&(f=er(r).call(r,u));for(var m=0;m<r.length;m++){var S=document.createElement("option");S.value=r[m],m===f&&(S.selected="selected"),S.innerHTML=r[m],c.appendChild(S)}var x=this;c.onchange=function(){x._update(this.value,o)};var O=this._makeLabel(o[o.length-1],o);this._makeItem(o,O,c)}},{key:"_makeRange",value:function(r,u,o){var c=r[0],f=r[1],m=r[2],S=r[3],x=document.createElement("input");x.className="vis-configuration vis-config-range";try{x.type="range",x.min=f,x.max=m}catch(Z){}x.step=S;var O="",I=0;if(u!==void 0){var N=1.2;u<0&&u*N<f?(x.min=Math.ceil(u*N),I=x.min,O="range increased"):u/N<f&&(x.min=Math.ceil(u/N),I=x.min,O="range increased"),u*N>m&&m!==1&&(x.max=Math.ceil(u*N),I=x.max,O="range increased"),x.value=u}else x.value=c;var L=document.createElement("input");L.className="vis-configuration vis-config-rangeinput",L.value=Number(x.value);var z=this;x.onchange=function(){L.value=this.value,z._update(Number(this.value),o)},x.oninput=function(){L.value=this.value};var W=this._makeLabel(o[o.length-1],o),X=this._makeItem(o,W,x,L);O!==""&&this.popupHistory[X]!==I&&(this.popupHistory[X]=I,this._setupPopup(O,X))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var u=document.createElement("div");u.className="vis-configuration vis-config-button",u.innerHTML="generate options",u.onclick=function(){r._printOptions()},u.onmouseover=function(){u.className="vis-configuration vis-config-button hover"},u.onmouseout=function(){u.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(u)}}},{key:"_setupPopup",value:function(r,u){var o=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var c=document.createElement("div");c.id="vis-configuration-popup",c.className="vis-configuration-popup",c.innerHTML=K.xss(r),c.onclick=function(){o._removePopup()},this.popupCounter+=1,this.popupDiv={html:c,index:u}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var r=this;if(this.popupDiv.html!==void 0){var u=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=u.left+"px",this.popupDiv.html.style.top=u.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Ci(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Ci(function(){r._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(r,u,o){var c=document.createElement("input");c.type="checkbox",c.className="vis-configuration vis-config-checkbox",c.checked=r,u!==void 0&&(c.checked=u,u!==r&&(ft(r)==="object"?u!==r.enabled&&this.changedOptions.push({path:o,value:u}):this.changedOptions.push({path:o,value:u})));var f=this;c.onchange=function(){f._update(this.checked,o)};var m=this._makeLabel(o[o.length-1],o);this._makeItem(o,m,c)}},{key:"_makeTextInput",value:function(r,u,o){var c=document.createElement("input");c.type="text",c.className="vis-configuration vis-config-text",c.value=u,u!==r&&this.changedOptions.push({path:o,value:u});var f=this;c.onchange=function(){f._update(this.value,o)};var m=this._makeLabel(o[o.length-1],o);this._makeItem(o,m,c)}},{key:"_makeColorField",value:function(r,u,o){var c=this,f=r[1],m=document.createElement("div");(u=u===void 0?f:u)!=="none"?(m.className="vis-configuration vis-config-colorBlock",m.style.backgroundColor=u):m.className="vis-configuration vis-config-colorBlock none",u=u===void 0?f:u,m.onclick=function(){c._showColorPicker(u,m,o)};var S=this._makeLabel(o[o.length-1],o);this._makeItem(o,S,m)}},{key:"_showColorPicker",value:function(r,u,o){var c=this;u.onclick=function(){},this.colorPicker.insertTo(u),this.colorPicker.show(),this.colorPicker.setColor(r),this.colorPicker.setUpdateCallback(function(f){var m="rgba("+f.r+","+f.g+","+f.b+","+f.a+")";u.style.backgroundColor=m,c._update(m,o)}),this.colorPicker.setCloseCallback(function(){u.onclick=function(){c._showColorPicker(r,u,o)}})}},{key:"_handleObject",value:function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],c=!1,f=Mt(this.options),m=!1;for(var S in r)if(r.hasOwnProperty(S)){c=!0;var x=r[S],O=K.copyAndExtendArray(u,S);if(typeof f=="function"&&(c=f(S,u))===!1&&!xt(x)&&typeof x!="string"&&typeof x!="boolean"&&x instanceof Object&&(this.allowCreation=!1,c=this._handleObject(x,O,!0),this.allowCreation=o===!1),c!==!1){m=!0;var I=this._getValue(O);if(xt(x))this._handleArray(x,I,O);else if(typeof x=="string")this._makeTextInput(x,I,O);else if(typeof x=="boolean")this._makeCheckbox(x,I,O);else if(x instanceof Object){var N=!0;if(er(u).call(u,"physics")!==-1&&this.moduleOptions.physics.solver!==S&&(N=!1),N===!0)if(x.enabled!==void 0){var L=K.copyAndExtendArray(O,"enabled"),z=this._getValue(L);if(z===!0){var W=this._makeLabel(S,O,!0);this._makeItem(O,W),m=this._handleObject(x,O)||m}else this._makeCheckbox(x,z,O)}else{var X=this._makeLabel(S,O,!0);this._makeItem(O,X),m=this._handleObject(x,O)||m}}else console.error("dont know how to handle",x,S,O)}}return m}},{key:"_handleArray",value:function(r,u,o){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,u,o),r[1]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="string"?(this._makeDropdown(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:u})):typeof r[0]=="number"&&(this._makeRange(r,u,o),r[0]!==u&&this.changedOptions.push({path:o,value:Number(u)}))}},{key:"_update",value:function(r,u){var o=this._constructOptions(r,u);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",o),this.initialized=!0,this.parent.setOptions(o)}},{key:"_constructOptions",value:function(r,u){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=o;r=(r=r==="true"||r)!=="false"&&r;for(var f=0;f<u.length;f++)u[f]!=="global"&&(c[u[f]]===void 0&&(c[u[f]]={}),f!==u.length-1?c=c[u[f]]:c[u[f]]=r);return o}},{key:"_printOptions",value:function(){var r=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+ta(r,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var r={},u=0;u<this.changedOptions.length;u++)this._constructOptions(this.changedOptions[u].value,this.changedOptions[u].path,r);return r}}]),s}();function cM(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var id=function(s){Zn(u,s);var r=cM(u);function u(o,c,f,m){var S,x,O,I,N,L,z,W;if(jt(this,u),(W=r.call(this)).initTime=new Date,W.itemsDone=!1,!(Ti(W)instanceof u))throw new SyntaxError("Constructor must be called with the new operator");if(!xt(f)&&!Ns(f)&&f instanceof Object){var X=m;m=f,f=X}m&&m.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var Z=Ti(W);if(W.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Nn},W.options=K.deepExtend({},W.defaultOptions),m&&K.setupXSSProtection(m.xss),W._create(o),!m||m&&m.rtl===void 0){var Q;W.dom.root.style.visibility="hidden";for(var ne=W.dom.root;!Q&&ne;)Q=window.getComputedStyle(ne,null).direction,ne=ne.parentElement;W.options.rtl=Q&&Q.toLowerCase()=="rtl"}else W.options.rtl=m.rtl;m&&(m.rollingMode&&(W.options.rollingMode=m.rollingMode),m.onInitialDrawComplete&&(W.options.onInitialDrawComplete=m.onInitialDrawComplete),m.onTimeout&&(W.options.onTimeout=m.onTimeout),m.loadingScreenTemplate&&(W.options.loadingScreenTemplate=m.loadingScreenTemplate));var he=document.createElement("div");if(W.options.loadingScreenTemplate){var Te,Re=de(Te=W.options.loadingScreenTemplate).call(Te,Ti(W)),xe=Re(W.dom.loadingScreen);xe instanceof Object&&!(xe instanceof Element)?Re(he):xe instanceof Element?(he.innerHTML="",he.appendChild(xe)):xe!=null&&(he.innerHTML=K.xss(xe))}function De(fe,We){Z.hasListeners(fe)&&Z.emit(fe,Z.getEventProperties(We))}return W.dom.loadingScreen.appendChild(he),W.components=[],W.body={dom:W.dom,domProps:W.props,emitter:{on:de(S=W.on).call(S,Ti(W)),off:de(x=W.off).call(x,Ti(W)),emit:de(O=W.emit).call(O,Ti(W))},hiddenDates:[],util:{getScale:function(){return Z.timeAxis.step.scale},getStep:function(){return Z.timeAxis.step.step},toScreen:de(I=Z._toScreen).call(I,Z),toGlobalScreen:de(N=Z._toGlobalScreen).call(N,Z),toTime:de(L=Z._toTime).call(L,Z),toGlobalTime:de(z=Z._toGlobalTime).call(z,Z)}},W.range=new Im(W.body,W.options),W.components.push(W.range),W.body.range=W.range,W.timeAxis=new ed(W.body,W.options),W.timeAxis2=null,W.components.push(W.timeAxis),W.currentTime=new xb(W.body,W.options),W.components.push(W.currentTime),W.itemSet=new Yv(W.body,W.options),W.components.push(W.itemSet),W.itemsData=null,W.groupsData=null,W.dom.root.onclick=function(fe){De("click",fe)},W.dom.root.ondblclick=function(fe){De("doubleClick",fe)},W.dom.root.oncontextmenu=function(fe){De("contextmenu",fe)},W.dom.root.onmouseover=function(fe){De("mouseOver",fe)},window.PointerEvent?(W.dom.root.onpointerdown=function(fe){De("mouseDown",fe)},W.dom.root.onpointermove=function(fe){De("mouseMove",fe)},W.dom.root.onpointerup=function(fe){De("mouseUp",fe)}):(W.dom.root.onmousemove=function(fe){De("mouseMove",fe)},W.dom.root.onmousedown=function(fe){De("mouseDown",fe)},W.dom.root.onmouseup=function(fe){De("mouseUp",fe)}),W.initialFitDone=!1,W.on("changed",function(){if(Z.itemsData!=null){if(!Z.initialFitDone&&!Z.options.rollingMode)if(Z.initialFitDone=!0,Z.options.start!=null||Z.options.end!=null){if(Z.options.start==null||Z.options.end==null)var fe=Z.getItemRange();var We=Z.options.start!=null?Z.options.start:fe.min,at=Z.options.end!=null?Z.options.end:fe.max;Z.setWindow(We,at,{animation:!1})}else Z.fit({animation:!1});Z.initialDrawDone||!Z.initialRangeChangeDone&&(Z.options.start||Z.options.end)&&!Z.options.rollingMode||(Z.initialDrawDone=!0,Z.itemSet.initialDrawDone=!0,Z.dom.root.style.visibility="visible",Z.dom.loadingScreen.parentNode.removeChild(Z.dom.loadingScreen),Z.options.onInitialDrawComplete&&Ci(function(){return Z.options.onInitialDrawComplete()},0))}}),W.on("destroyTimeline",function(){Z.destroy()}),m&&W.setOptions(m),W.body.emitter.on("fit",function(fe){W._onFit(fe),W.redraw()}),f&&W.setGroups(f),c&&W.setItems(c),W._redraw(),W}return Jt(u,[{key:"_createConfigurator",value:function(){return new Hv(this,this.dom.container,lM)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(o){if(_T.validate(o,sM)===!0&&console.log("%cErrors have been found in the supplied options object.",eg),_h.prototype.setOptions.call(this,o),"type"in o&&o.type!==this.options.type){this.options.type=o.type;var c=this.itemsData;if(c){var f=this.getSelection();this.setItems(null),this.setItems(c.rawDS),this.setSelection(f)}}}},{key:"setItems",value:function(o){var c;this.itemsDone=!1,c=o?Ns(o)?jl(o):jl(new h.DataSet(o)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=c,this.itemSet&&this.itemSet.setItems(c!=null?c.rawDS:null)}},{key:"setGroups",value:function(o){var c;o?(xt(o)&&(o=new h.DataSet(o)),c=new h.DataView(o,{filter:function(f){return f.visible!==!1}})):c=null,this.groupsData!=null&&typeof this.groupsData.setData=="function"&&this.groupsData.setData(null),this.groupsData=c,this.itemSet.setGroups(c)}},{key:"setData",value:function(o){o&&o.groups&&this.setGroups(o.groups),o&&o.items&&this.setItems(o.items)}},{key:"setSelection",value:function(o,c){this.itemSet&&this.itemSet.setSelection(o),c&&c.focus&&this.focus(o,c)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(o,c){if(this.itemsData&&o!=null){var f=xt(o)?o:[o],m=this.itemsData.get(f),S=null,x=null;if(Ae(m).call(m,function(ne){var he=ne.start.valueOf(),Te="end"in ne?ne.end.valueOf():ne.start.valueOf();(S===null||he<S)&&(S=he),(x===null||Te>x)&&(x=Te)}),S!==null&&x!==null){var O=this,I=this.itemSet.items[f[0]],N=-1*this._getScrollTop(),L=null,z=function(){var ne=wT(O,I);ne.shouldScroll&&ne.itemTop!=L.itemTop&&(O._setScrollTop(-ne.scrollOffset),O._redraw())},W=!c||c.zoom===void 0||c.zoom,X=(S+x)/2,Z=W?1.1*(x-S):Math.max(this.range.end-this.range.start,1.1*(x-S)),Q=!c||c.animation===void 0||c.animation;Q||(L={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(X-Z/2,X+Z/2,{animation:Q},function(){z(),Ci(z,100)},function(ne,he,Te){var Re=wT(O,I);if(Re!==!1&&(L||(L=Re),L.itemTop!=Re.itemTop||L.shouldScroll)){L.itemTop!=Re.itemTop&&Re.shouldScroll&&(L=Re,N=-1*O._getScrollTop());var xe=N,De=L.scrollOffset,fe=Te?De:xe+(De-xe)*ne;O._setScrollTop(-fe),he||O._redraw()}})}}}},{key:"fit",value:function(o,c){var f,m=!o||o.animation===void 0||o.animation;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(f=this.getDataRange(),this.moveTo(f.min.valueOf(),{animation:m},c)):(f=this.getItemRange(),this.range.setRange(f.min,f.max,{animation:m},c))}},{key:"getItemRange",value:function(){var o=this,c=this.getDataRange(),f=c.min!==null?c.min.valueOf():null,m=c.max!==null?c.max.valueOf():null,S=null,x=null;if(f!=null&&m!=null){var O=m-f;O<=0&&(O=10);var I=O/this.props.center.width,N={},L=0;if(Ae(K).call(K,this.itemSet.items,function(ne,he){ne.groupShowing&&(N[he]=ne.redraw(!0),L=N[he].length)}),L>0)for(var z=function(ne){Ae(K).call(K,N,function(he){he[ne]()})},W=0;W<L;W++)z(W);if(Ae(K).call(K,this.itemSet.items,function(ne){var he,Te,Re=Wv(ne),xe=jb(ne);o.options.rtl?(he=Re-(ne.getWidthRight()+10)*I,Te=xe+(ne.getWidthLeft()+10)*I):(he=Re-(ne.getWidthLeft()+10)*I,Te=xe+(ne.getWidthRight()+10)*I),he<f&&(f=he,S=ne),Te>m&&(m=Te,x=ne)}),S&&x){var X=S.getWidthLeft()+10,Z=x.getWidthRight()+10,Q=this.props.center.width-X-Z;Q>0&&(this.options.rtl?(f=Wv(S)-Z*O/Q,m=jb(x)+X*O/Q):(f=Wv(S)-X*O/Q,m=jb(x)+Z*O/Q))}}return{min:f!=null?new Date(f):null,max:m!=null?new Date(m):null}}},{key:"getDataRange",value:function(){var o,c=null,f=null;return this.itemsData&&Ae(o=this.itemsData).call(o,function(m){var S=K.convert(m.start,"Date").valueOf(),x=K.convert(m.end!=null?m.end:m.start,"Date").valueOf();(c===null||S<c)&&(c=S),(f===null||x>f)&&(f=x)}),{min:c!=null?new Date(c):null,max:f!=null?new Date(f):null}}},{key:"getEventProperties",value:function(o){var c=o.center?o.center.x:o.clientX,f=o.center?o.center.y:o.clientY,m=this.dom.centerContainer.getBoundingClientRect(),S=this.options.rtl?m.right-c:c-m.left,x=f-m.top,O=this.itemSet.itemFromTarget(o),I=this.itemSet.groupFromTarget(o),N=jm.customTimeFromTarget(o),L=this.itemSet.options.snap||null,z=this.body.util.getScale(),W=this.body.util.getStep(),X=this._toTime(S),Z=L?L(X,z,W):X,Q=K.getTarget(o),ne=null;return O!=null?ne="item":N!=null?ne="custom-time":K.hasParent(Q,this.timeAxis.dom.foreground)||this.timeAxis2&&K.hasParent(Q,this.timeAxis2.dom.foreground)?ne="axis":K.hasParent(Q,this.itemSet.dom.labelSet)?ne="group-label":K.hasParent(Q,this.currentTime.bar)?ne="current-time":K.hasParent(Q,this.dom.center)&&(ne="background"),{event:o,item:O?O.id:null,isCluster:!!O&&!!O.isCluster,items:O?O.items||[]:null,group:I?I.groupId:null,customTime:N?N.options.id:null,what:ne,pageX:o.srcEvent?o.srcEvent.pageX:o.pageX,pageY:o.srcEvent?o.srcEvent.pageY:o.pageY,x:S,y:x,time:X,snappedTime:Z}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){_h.prototype._redraw.call(this)}},{key:"_onFit",value:function(o){var c=o.start,f=o.end,m=o.animation;f?this.range.setRange(c,f,{animation:m}):this.moveTo(c.valueOf(),{animation:m})}}]),u}(_h);function Wv(s){return K.convert(s.data.start,"Date").valueOf()}function jb(s){var r=s.data.end!=null?s.data.end:s.data.start;return K.convert(r,"Date").valueOf()}function wT(s,r){if(!r.parent)return!1;var u=s.options.rtl?s.props.rightContainer.height:s.props.leftContainer.height,o=s.props.center.height,c=r.parent,f=c.top,m=!0,S=s.timeAxis.options.orientation.axis,x=function(){return S=="bottom"?c.height-r.top-r.height:r.top},O=-1*s._getScrollTop(),I=f+x(),N=r.height;return I<O?f+u<=f+x()+N&&(f+=x()-s.itemSet.options.margin.item.vertical):I+N>O+u?f+=x()+N-u+s.itemSet.options.margin.item.vertical:m=!1,{shouldScroll:m,scrollOffset:f=Math.min(f,o-u),itemTop:I}}function ql(s){for(var r in s)s.hasOwnProperty(r)&&(s[r].redundant=s[r].used,s[r].used=[])}function Ra(s){for(var r in s)if(s.hasOwnProperty(r)&&s[r].redundant){for(var u=0;u<s[r].redundant.length;u++)s[r].redundant[u].parentNode.removeChild(s[r].redundant[u]);s[r].redundant=[]}}function Na(s,r,u){var o;return r.hasOwnProperty(s)?r[s].redundant.length>0?(o=r[s].redundant[0],r[s].redundant.shift()):(o=document.createElementNS("http://www.w3.org/2000/svg",s),u.appendChild(o)):(o=document.createElementNS("http://www.w3.org/2000/svg",s),r[s]={used:[],redundant:[]},u.appendChild(o)),r[s].used.push(o),o}function rg(s,r,u,o){var c;return r.hasOwnProperty(s)?r[s].redundant.length>0?(c=r[s].redundant[0],r[s].redundant.shift()):(c=document.createElement(s),u.appendChild(c)):(c=document.createElement(s),r[s]={used:[],redundant:[]},u.appendChild(c)),r[s].used.push(c),c}function nd(s,r,u,o,c,f){var m;if(u.style=="circle"?((m=Na("circle",o,c)).setAttributeNS(null,"cx",s),m.setAttributeNS(null,"cy",r),m.setAttributeNS(null,"r",.5*u.size)):((m=Na("rect",o,c)).setAttributeNS(null,"x",s-.5*u.size),m.setAttributeNS(null,"y",r-.5*u.size),m.setAttributeNS(null,"width",u.size),m.setAttributeNS(null,"height",u.size)),u.styles!==void 0&&m.setAttributeNS(null,"style",u.styles),m.setAttributeNS(null,"class",u.className+" vis-point"),f){var S=Na("text",o,c);f.xOffset&&(s+=f.xOffset),f.yOffset&&(r+=f.yOffset),f.content&&(S.textContent=f.content),f.className&&S.setAttributeNS(null,"class",f.className+" vis-label"),S.setAttributeNS(null,"x",s),S.setAttributeNS(null,"y",r)}return m}function Yb(s,r,u,o,c,f,m,S){if(o!=0){o<0&&(r-=o*=-1);var x=Na("rect",f,m);x.setAttributeNS(null,"x",s-.5*u),x.setAttributeNS(null,"y",r),x.setAttributeNS(null,"width",u),x.setAttributeNS(null,"height",o),x.setAttributeNS(null,"class",c),S&&x.setAttributeNS(null,"style",S)}}var ig=function(){function s(r,u,o,c,f,m){var S=arguments.length>6&&arguments[6]!==void 0&&arguments[6],x=arguments.length>7&&arguments[7]!==void 0&&arguments[7];if(jt(this,s),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=f,this.majorCharHeight=m,this._start=r,this._end=u,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=S,this.autoScaleStart=o,this.autoScaleEnd=c,this.formattingFunction=x,o||c){var O=this,I=function(N){var L=N-N%(O.magnitudefactor*O.minorSteps[O.minorStepIdx]);return N%(O.magnitudefactor*O.minorSteps[O.minorStepIdx])>O.magnitudefactor*O.minorSteps[O.minorStepIdx]*.5?L+O.magnitudefactor*O.minorSteps[O.minorStepIdx]:L};o&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=I(this._start)),c&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=I(this._end)),this.determineScale()}}return Jt(s,[{key:"setCharHeight",value:function(r){this.majorCharHeight=r}},{key:"setHeight",value:function(r){this.containerHeight=r}},{key:"determineScale",value:function(){var r=this._end-this._start;this.scale=this.containerHeight/r;var u=this.majorCharHeight/this.scale,o=r>0?Math.round(Math.log(r)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,o);var c=0;o<0&&(c=o);for(var f=!1,m=c;Math.abs(m)<=Math.abs(o);m++){this.magnitudefactor=Math.pow(10,m);for(var S=0;S<this.minorSteps.length;S++)if(this.magnitudefactor*this.minorSteps[S]>=u){f=!0,this.minorStepIdx=S;break}if(f===!0)break}}},{key:"is_major",value:function(r){return r%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var r=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(r-this._start%r)%r)}},{key:"formatValue",value:function(r){var u=r.toPrecision(5);return typeof this.formattingFunction=="function"&&(u=this.formattingFunction(r)),typeof u=="number"?"".concat(u):typeof u=="string"?u:r.toPrecision(5)}},{key:"getLines",value:function(){for(var r=[],u=this.getStep(),o=(u-this._start%u)%u,c=this._start+o;this._end-c>1e-5;c+=u)c!=this._start&&r.push({major:this.is_major(c),y:this.convertValue(c),val:this.formatValue(c)});return r}},{key:"followScale",value:function(r){var u=this.minorStepIdx,o=this._start,c=this._end,f=this,m=function(){f.magnitudefactor*=2},S=function(){f.magnitudefactor/=2};r.minorStepIdx<=1&&this.minorStepIdx<=1||r.minorStepIdx>1&&this.minorStepIdx>1||(r.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,u==2||m(),m()):(this.minorStepIdx=2,u==1||S(),S()));for(var x=r.convertValue(0),O=r.getStep()*r.scale,I=!1,N=0;!I&&N++<5;){this.scale=O/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var L=this.containerHeight/this.scale;this._start=o,this._end=this._start+L;var z=this._end*this.scale,W=this.magnitudefactor*this.majorSteps[this.minorStepIdx],X=this.getFirstMajor()-r.getFirstMajor();if(this.zeroAlign){var Z=x-z;this._end+=Z/this.scale,this._start=this._end-L}else this.autoScaleStart?(this._start-=X/this.scale,this._end=this._start+L):(this._start+=W-X/this.scale,this._end=this._start+L);if(!this.autoScaleEnd&&this._end>c+1e-5)S(),I=!1;else{if(!this.autoScaleStart&&this._start<o-1e-5){if(!(this.zeroAlign&&o>=0)){S(),I=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&L<c-o?(m(),I=!1):I=!0}}}},{key:"convertValue",value:function(r){return this.containerHeight-(r-this._start)*this.scale}},{key:"screenToValue",value:function(r){return(this.containerHeight-r)/this.scale+this._start}}]),s}();function kT(s,r){var u=$l!==void 0&&th(s)||s["@@iterator"];if(!u){if(xt(s)||(u=function(x,O){var I;if(x){if(typeof x=="string")return ST(x,O);var N=pn(I=Object.prototype.toString.call(x)).call(I,8,-1);if(N==="Object"&&x.constructor&&(N=x.constructor.name),N==="Map"||N==="Set")return eh(x);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return ST(x,O)}}(s))||r){u&&(s=u);var o=0,c=function(){};return{s:c,n:function(){return o>=s.length?{done:!0}:{done:!1,value:s[o++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,m=!0,S=!1;return{s:function(){u=u.call(s)},n:function(){var x=u.next();return m=x.done,x},e:function(x){S=!0,f=x},f:function(){try{m||u.return==null||u.return()}finally{if(S)throw f}}}}function ST(s,r){(r==null||r>s.length)&&(r=s.length);for(var u=0,o=new Array(r);u<r;u++)o[u]=s[u];return o}function dM(s){var r=function(){if(typeof Reflect=="undefined"||!Je||Je.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Je(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u,o=Qt(s);if(r){var c=Qt(this).constructor;u=Je(o,arguments,c)}else u=o.apply(this,arguments);return Rn(this,u)}}var Bb=function(s){Zn(u,s);var r=dM(u);function u(o,c,f,m){var S;jt(this,u),(S=r.call(this)).id=Rs(),S.body=o,S.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(O){return"".concat($v(O.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(O){return"".concat($v(O.toPrecision(3)))},title:{text:void 0,style:void 0}}},S.linegraphOptions=m,S.linegraphSVG=f,S.props={},S.DOMelements={lines:{},labels:{},title:{}},S.dom={},S.scale=void 0,S.range={start:0,end:0},S.options=K.extend({},S.defaultOptions),S.conversionFactor=1,S.setOptions(c),S.width=Number("".concat(S.options.width).replace("px","")),S.minWidth=S.width,S.height=S.linegraphSVG.getBoundingClientRect().height,S.hidden=!1,S.stepPixels=25,S.zeroCrossing=-1,S.amountOfSteps=-1,S.lineOffset=0,S.master=!0,S.masterAxis=null,S.svgElements={},S.iconsRemoved=!1,S.groups={},S.amountOfGroups=0,S._create(),S.scale==null&&S._redrawLabels(),S.framework={svg:S.svg,svgElements:S.svgElements,options:S.options,groups:S.groups};var x=Ti(S);return S.body.emitter.on("verticalDrag",function(){x.dom.lineContainer.style.top="".concat(x.body.domProps.scrollTop,"px")}),S}return Jt(u,[{key:"addGroup",value:function(o,c){this.groups.hasOwnProperty(o)||(this.groups[o]=c),this.amountOfGroups+=1}},{key:"updateGroup",value:function(o,c){this.groups.hasOwnProperty(o)||(this.amountOfGroups+=1),this.groups[o]=c}},{key:"removeGroup",value:function(o){this.groups.hasOwnProperty(o)&&(delete this.groups[o],this.amountOfGroups-=1)}},{key:"setOptions",value:function(o){if(o){var c=!1;this.options.orientation!=o.orientation&&o.orientation!==void 0&&(c=!0),K.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,o),this.minWidth=Number("".concat(this.options.width).replace("px","")),c===!0&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){var o;ql(this.svgElements);var c=this.options.iconWidth,f=11.5;o=this.options.orientation==="left"?4:this.width-c-4;var m=Di(this.groups);Jr(m).call(m,function(I,N){return I<N?-1:1});var S,x=kT(m);try{for(x.s();!(S=x.n()).done;){var O=S.value;this.groups[O].visible!==!0||this.linegraphOptions.visibility[O]!==void 0&&this.linegraphOptions.visibility[O]!==!0||(this.groups[O].getLegend(c,15,this.framework,o,f),f+=19)}}catch(I){x.e(I)}finally{x.f()}Ra(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(ql(this.svgElements),Ra(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||(this.options.orientation==="left"?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(o,c){this.range.start=o,this.range.end=c}},{key:"redraw",value:function(){var o=!1,c=0;for(var f in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(f)&&(this.groups[f].visible!==!0||this.linegraphOptions.visibility[f]!==void 0&&this.linegraphOptions.visibility[f]!==!0||c++);if(this.amountOfGroups===0||c===0)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=this.options.visible===!0?Number("".concat(this.options.width).replace("px","")):0;var m=this.props,S=this.dom.frame;S.className="vis-data-axis",this._calculateCharSize();var x=this.options.orientation,O=this.options.showMinorLabels,I=this.options.showMajorLabels,N=this.body.dom.backgroundHorizontal.offsetWidth;m.minorLabelHeight=O?m.minorCharHeight:0,m.majorLabelHeight=I?m.majorCharHeight:0,m.minorLineWidth=N-this.lineOffset-this.width+2*this.options.minorLinesOffset,m.minorLineHeight=1,m.majorLineWidth=N-this.lineOffset-this.width+2*this.options.majorLinesOffset,m.majorLineHeight=1,x==="left"?(S.style.top="0",S.style.left="0",S.style.bottom="",S.style.width="".concat(this.width,"px"),S.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(S.style.top="",S.style.bottom="0",S.style.left="0",S.style.width="".concat(this.width,"px"),S.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),o=this._redrawLabels(),o=this._isResized()||o,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(x)}return o}},{key:"_redrawLabels",value:function(){var o=this,c=!1;ql(this.DOMelements.lines),ql(this.DOMelements.labels);var f=this.options.orientation,m=this.options[f].range!=null?this.options[f].range:{},S=!0;m.max!=null&&(this.range.end=m.max,S=!1);var x=!0;m.min!=null&&(this.range.start=m.min,x=!1),this.scale=new ig(this.range.start,this.range.end,x,S,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[f].format),this.master===!1&&this.masterAxis!=null?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var O=this.scale.getLines();Ae(O).call(O,function(L){var z=L.y,W=L.major;o.options.showMinorLabels&&W===!1&&o._redrawLabel(z-2,L.val,f,"vis-y-axis vis-minor",o.props.minorCharHeight),W&&z>=0&&o._redrawLabel(z-2,L.val,f,"vis-y-axis vis-major",o.props.majorCharHeight),o.master===!0&&(W?o._redrawLine(z,f,"vis-grid vis-horizontal vis-major",o.options.majorLinesOffset,o.props.majorLineWidth):o._redrawLine(z,f,"vis-grid vis-horizontal vis-minor",o.options.minorLinesOffset,o.props.minorLineWidth))});var I=0;this.options[f].title!==void 0&&this.options[f].title.text!==void 0&&(I=this.props.titleCharHeight);var N=this.options.icons===!0?Math.max(this.options.iconWidth,I)+this.options.labelOffsetX+15:I+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-N&&this.options.visible===!0?(this.width=this.maxLabelSize+N,this.options.width="".concat(this.width,"px"),Ra(this.DOMelements.lines),Ra(this.DOMelements.labels),this.redraw(),c=!0):this.maxLabelSize<this.width-N&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+N),this.options.width="".concat(this.width,"px"),Ra(this.DOMelements.lines),Ra(this.DOMelements.labels),this.redraw(),c=!0):(Ra(this.DOMelements.lines),Ra(this.DOMelements.labels),c=!1),c}},{key:"convertValue",value:function(o){return this.scale.convertValue(o)}},{key:"screenToValue",value:function(o){return this.scale.screenToValue(o)}},{key:"_redrawLabel",value:function(o,c,f,m,S){var x=rg("div",this.DOMelements.labels,this.dom.frame);x.className=m,x.innerHTML=K.xss(c),f==="left"?(x.style.left="-".concat(this.options.labelOffsetX,"px"),x.style.textAlign="right"):(x.style.right="-".concat(this.options.labelOffsetX,"px"),x.style.textAlign="left"),x.style.top="".concat(o-.5*S+this.options.labelOffsetY,"px"),c+="";var O=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<c.length*O&&(this.maxLabelSize=c.length*O)}},{key:"_redrawLine",value:function(o,c,f,m,S){if(this.master===!0){var x=rg("div",this.DOMelements.lines,this.dom.lineContainer);x.className=f,x.innerHTML="",c==="left"?x.style.left="".concat(this.width-m,"px"):x.style.right="".concat(this.width-m,"px"),x.style.width="".concat(S,"px"),x.style.top="".concat(o,"px")}}},{key:"_redrawTitle",value:function(o){if(ql(this.DOMelements.title),this.options[o].title!==void 0&&this.options[o].title.text!==void 0){var c=rg("div",this.DOMelements.title,this.dom.frame);c.className="vis-y-axis vis-title vis-".concat(o),c.innerHTML=K.xss(this.options[o].title.text),this.options[o].title.style!==void 0&&K.addCssText(c,this.options[o].title.style),o==="left"?c.style.left="".concat(this.props.titleCharHeight,"px"):c.style.right="".concat(this.props.titleCharHeight,"px"),c.style.width="".concat(this.height,"px")}Ra(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var o=document.createTextNode("0"),c=document.createElement("div");c.className="vis-y-axis vis-minor vis-measure",c.appendChild(o),this.dom.frame.appendChild(c),this.props.minorCharHeight=c.clientHeight,this.props.minorCharWidth=c.clientWidth,this.dom.frame.removeChild(c)}if(!("majorCharHeight"in this.props)){var f=document.createTextNode("0"),m=document.createElement("div");m.className="vis-y-axis vis-major vis-measure",m.appendChild(f),this.dom.frame.appendChild(m),this.props.majorCharHeight=m.clientHeight,this.props.majorCharWidth=m.clientWidth,this.dom.frame.removeChild(m)}if(!("titleCharHeight"in this.props)){var S=document.createTextNode("0"),x=document.createElement("div");x.className="vis-y-axis vis-title vis-measure",x.appendChild(S),this.dom.frame.appendChild(x),this.props.titleCharHeight=x.clientHeight,this.props.titleCharWidth=x.clientWidth,this.dom.frame.removeChild(x)}}}]),u}(Ia);function Gv(s,r){}function ng(s,r){return{style:(r=r===void 0?{}:r).style||s.options.drawPoints.style,styles:r.styles||s.options.drawPoints.styles,size:r.size||s.options.drawPoints.size,className:r.className||s.className}}function _n(s,r){}function $i(s,r){}function ei(s,r,u,o){this.id=r,this.options=K.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],u),this.usingDefaultStyle=s.className===void 0,this.groupsUsingDefaultStyles=o,this.zeroPosition=0,this.update(s),this.usingDefaultStyle==1&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=s.visible===void 0||s.visible}function Bn(s,r,u,o){this.body=s,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=u,this.options=K.extend({},this.defaultOptions),this.linegraphOptions=o,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(r)}Gv.draw=function(s,r,u,o){o=o||0;for(var c=function(S,x){var O=void 0;return S.options&&S.options.drawPoints&&S.options.drawPoints.onRender&&typeof S.options.drawPoints.onRender=="function"&&(O=S.options.drawPoints.onRender),x.group.options&&x.group.options.drawPoints&&x.group.options.drawPoints.onRender&&typeof x.group.options.drawPoints.onRender=="function"&&(O=x.group.options.drawPoints.onRender),O}(u,r),f=0;f<s.length;f++)if(c){var m=c(s[f],r);m!==!0&&ft(m)!=="object"||nd(s[f].screen_x+o,s[f].screen_y,ng(r,m),u.svgElements,u.svg,s[f].label)}else nd(s[f].screen_x+o,s[f].screen_y,ng(r),u.svgElements,u.svg,s[f].label)},Gv.drawIcon=function(s,r,u,o,c,f){var m=.5*c,S=Na("rect",f.svgElements,f.svg);S.setAttributeNS(null,"x",r),S.setAttributeNS(null,"y",u-m),S.setAttributeNS(null,"width",o),S.setAttributeNS(null,"height",2*m),S.setAttributeNS(null,"class","vis-outline"),nd(r+.5*o,u,ng(s),f.svgElements,f.svg)},_n.drawIcon=function(s,r,u,o,c,f){var m=.5*c,S=Na("rect",f.svgElements,f.svg);S.setAttributeNS(null,"x",r),S.setAttributeNS(null,"y",u-m),S.setAttributeNS(null,"width",o),S.setAttributeNS(null,"height",2*m),S.setAttributeNS(null,"class","vis-outline");var x=Math.round(.3*o),O=s.options.barChart.width/x,I=Math.round(.4*c),N=Math.round(.75*c),L=Math.round((o-2*x)/3);if(Yb(r+.5*x+L,u+m-I-1,x,I,s.className+" vis-bar",f.svgElements,f.svg,s.style),Yb(r+1.5*x+L+2,u+m-N-1,x,N,s.className+" vis-bar",f.svgElements,f.svg,s.style),s.options.drawPoints.enabled==1){var z={style:s.options.drawPoints.style,styles:s.options.drawPoints.styles,size:s.options.drawPoints.size/O,className:s.className};nd(r+.5*x+L,u+m-I-1,z,f.svgElements,f.svg),nd(r+1.5*x+L+2,u+m-N-1,z,f.svgElements,f.svg)}},_n.draw=function(s,r,u){var o,c,f,m,S,x,O=[],I={},N=0;for(S=0;S<s.length;S++)if((m=u.groups[s[S]]).options.style==="bar"&&m.visible===!0&&(u.options.groups.visibility[s[S]]===void 0||u.options.groups.visibility[s[S]]===!0))for(x=0;x<r[s[S]].length;x++)O.push({screen_x:r[s[S]][x].screen_x,screen_end:r[s[S]][x].screen_end,screen_y:r[s[S]][x].screen_y,x:r[s[S]][x].x,end:r[s[S]][x].end,y:r[s[S]][x].y,groupId:s[S],label:r[s[S]][x].label}),N+=1;if(N!==0)for(Jr(O).call(O,function(ne,he){return ne.screen_x===he.screen_x?ne.groupId<he.groupId?-1:1:ne.screen_x-he.screen_x}),_n._getDataIntersections(I,O),S=0;S<O.length;S++){var L=(m=u.groups[O[S].groupId]).options.barChart.minWidth!=null?m.options.barChart.minWidth:.1*m.options.barChart.width,z=0;if(I[c=O[S].screen_x]===void 0)S+1<O.length&&(o=Math.abs(O[S+1].screen_x-c)),f=_n._getSafeDrawData(o,m,L);else{var W=S+(I[c].amount-I[c].resolved);W<O.length&&(o=Math.abs(O[W].screen_x-c)),f=_n._getSafeDrawData(o,m,L),I[c].resolved+=1,m.options.stack===!0&&m.options.excludeFromStacking!==!0?O[S].screen_y<m.zeroPosition?(z=I[c].accumulatedNegative,I[c].accumulatedNegative+=m.zeroPosition-O[S].screen_y):(z=I[c].accumulatedPositive,I[c].accumulatedPositive+=m.zeroPosition-O[S].screen_y):m.options.barChart.sideBySide===!0&&(f.width=f.width/I[c].amount,f.offset+=I[c].resolved*f.width-.5*f.width*(I[c].amount+1))}var X=f.width,Z=O[S].screen_x;if(O[S].screen_end!=null?Z+=.5*(X=O[S].screen_end-O[S].screen_x):Z+=f.offset,Yb(Z,O[S].screen_y-z,X,m.zeroPosition-O[S].screen_y,m.className+" vis-bar",u.svgElements,u.svg,m.style),m.options.drawPoints.enabled===!0){var Q={screen_x:O[S].screen_x,screen_y:O[S].screen_y-z,x:O[S].x,y:O[S].y,groupId:O[S].groupId,label:O[S].label};Gv.draw([Q],m,u,f.offset)}}},_n._getDataIntersections=function(s,r){for(var u,o=0;o<r.length;o++)o+1<r.length&&(u=Math.abs(r[o+1].screen_x-r[o].screen_x)),o>0&&(u=Math.min(u,Math.abs(r[o-1].screen_x-r[o].screen_x))),u===0&&(s[r[o].screen_x]===void 0&&(s[r[o].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),s[r[o].screen_x].amount+=1)},_n._getSafeDrawData=function(s,r,u){var o,c;return s<r.options.barChart.width&&s>0?(o=s<u?u:s,c=0,r.options.barChart.align==="left"?c-=.5*s:r.options.barChart.align==="right"&&(c+=.5*s)):(o=r.options.barChart.width,c=0,r.options.barChart.align==="left"?c-=.5*r.options.barChart.width:r.options.barChart.align==="right"&&(c+=.5*r.options.barChart.width)),{width:o,offset:c}},_n.getStackedYRange=function(s,r,u,o,c){if(s.length>0){Jr(s).call(s,function(m,S){return m.screen_x===S.screen_x?m.groupId<S.groupId?-1:1:m.screen_x-S.screen_x});var f={};_n._getDataIntersections(f,s),r[o]=_n._getStackedYRange(f,s),r[o].yAxisOrientation=c,u.push(o)}},_n._getStackedYRange=function(s,r){for(var u,o=r[0].screen_y,c=r[0].screen_y,f=0;f<r.length;f++)s[u=r[f].screen_x]===void 0?(o=o>r[f].screen_y?r[f].screen_y:o,c=c<r[f].screen_y?r[f].screen_y:c):r[f].screen_y<0?s[u].accumulatedNegative+=r[f].screen_y:s[u].accumulatedPositive+=r[f].screen_y;for(var m in s)s.hasOwnProperty(m)&&(o=(o=o>s[m].accumulatedNegative?s[m].accumulatedNegative:o)>s[m].accumulatedPositive?s[m].accumulatedPositive:o,c=(c=c<s[m].accumulatedNegative?s[m].accumulatedNegative:c)<s[m].accumulatedPositive?s[m].accumulatedPositive:c);return{min:o,max:c}},$i.calcPath=function(s,r){if(s!=null&&s.length>0)return r.options.interpolation.enabled==1?$i._catmullRom(s,r):$i._linear(s)},$i.drawIcon=function(s,r,u,o,c,f){var m,S,x=.5*c,O=Na("rect",f.svgElements,f.svg);O.setAttributeNS(null,"x",r),O.setAttributeNS(null,"y",u-x),O.setAttributeNS(null,"width",o),O.setAttributeNS(null,"height",2*x),O.setAttributeNS(null,"class","vis-outline"),(m=Na("path",f.svgElements,f.svg)).setAttributeNS(null,"class",s.className),s.style!==void 0&&m.setAttributeNS(null,"style",s.style),m.setAttributeNS(null,"d","M"+r+","+u+" L"+(r+o)+","+u),s.options.shaded.enabled==1&&(S=Na("path",f.svgElements,f.svg),s.options.shaded.orientation=="top"?S.setAttributeNS(null,"d","M"+r+", "+(u-x)+"L"+r+","+u+" L"+(r+o)+","+u+" L"+(r+o)+","+(u-x)):S.setAttributeNS(null,"d","M"+r+","+u+" L"+r+","+(u+x)+" L"+(r+o)+","+(u+x)+"L"+(r+o)+","+u),S.setAttributeNS(null,"class",s.className+" vis-icon-fill"),s.options.shaded.style!==void 0&&s.options.shaded.style!==""&&S.setAttributeNS(null,"style",s.options.shaded.style)),s.options.drawPoints.enabled==1&&nd(r+.5*o,u,{style:s.options.drawPoints.style,styles:s.options.drawPoints.styles,size:s.options.drawPoints.size,className:s.className},f.svgElements,f.svg)},$i.drawShading=function(s,r,u,o){if(r.options.shaded.enabled==1){var c,f=Number(o.svg.style.height.replace("px","")),m=Na("path",o.svgElements,o.svg),S="L";r.options.interpolation.enabled==1&&(S="C");var x=0;x=r.options.shaded.orientation=="top"?0:r.options.shaded.orientation=="bottom"?f:Math.min(Math.max(0,r.zeroPosition),f),c=r.options.shaded.orientation=="group"&&u!=null&&u!=null?"M"+s[0][0]+","+s[0][1]+" "+this.serializePath(s,S,!1)+" L"+u[u.length-1][0]+","+u[u.length-1][1]+" "+this.serializePath(u,S,!0)+u[0][0]+","+u[0][1]+" Z":"M"+s[0][0]+","+s[0][1]+" "+this.serializePath(s,S,!1)+" V"+x+" H"+s[0][0]+" Z",m.setAttributeNS(null,"class",r.className+" vis-fill"),r.options.shaded.style!==void 0&&m.setAttributeNS(null,"style",r.options.shaded.style),m.setAttributeNS(null,"d",c)}},$i.draw=function(s,r,u){if(s!=null&&s!=null){var o=Na("path",u.svgElements,u.svg);o.setAttributeNS(null,"class",r.className),r.style!==void 0&&o.setAttributeNS(null,"style",r.style);var c="L";r.options.interpolation.enabled==1&&(c="C"),o.setAttributeNS(null,"d","M"+s[0][0]+","+s[0][1]+" "+this.serializePath(s,c,!1))}},$i.serializePath=function(s,r,u){if(s.length<2)return"";var o,c=r;if(u)for(o=s.length-2;o>0;o--)c+=s[o][0]+","+s[o][1]+" ";else for(o=1;o<s.length;o++)c+=s[o][0]+","+s[o][1]+" ";return c},$i._catmullRomUniform=function(s){var r,u,o,c,f,m,S=[];S.push([Math.round(s[0].screen_x),Math.round(s[0].screen_y)]);for(var x=1/6,O=s.length,I=0;I<O-1;I++)r=I==0?s[0]:s[I-1],u=s[I],o=s[I+1],c=I+2<O?s[I+2]:o,f={screen_x:(-r.screen_x+6*u.screen_x+o.screen_x)*x,screen_y:(-r.screen_y+6*u.screen_y+o.screen_y)*x},m={screen_x:(u.screen_x+6*o.screen_x-c.screen_x)*x,screen_y:(u.screen_y+6*o.screen_y-c.screen_y)*x},S.push([f.screen_x,f.screen_y]),S.push([m.screen_x,m.screen_y]),S.push([o.screen_x,o.screen_y]);return S},$i._catmullRom=function(s,r){var u=r.options.interpolation.alpha;if(u==0||u===void 0)return this._catmullRomUniform(s);var o,c,f,m,S,x,O,I,N,L,z,W,X,Z,Q,ne,he,Te,Re,xe=[];xe.push([Math.round(s[0].screen_x),Math.round(s[0].screen_y)]);for(var De=s.length,fe=0;fe<De-1;fe++)o=fe==0?s[0]:s[fe-1],c=s[fe],f=s[fe+1],m=fe+2<De?s[fe+2]:f,O=Math.sqrt(Math.pow(o.screen_x-c.screen_x,2)+Math.pow(o.screen_y-c.screen_y,2)),I=Math.sqrt(Math.pow(c.screen_x-f.screen_x,2)+Math.pow(c.screen_y-f.screen_y,2)),N=Math.sqrt(Math.pow(f.screen_x-m.screen_x,2)+Math.pow(f.screen_y-m.screen_y,2)),Z=Math.pow(N,u),ne=Math.pow(N,2*u),Q=Math.pow(I,u),he=Math.pow(I,2*u),Re=Math.pow(O,u),L=2*(Te=Math.pow(O,2*u))+3*Re*Q+he,z=2*ne+3*Z*Q+he,(W=3*Re*(Re+Q))>0&&(W=1/W),(X=3*Z*(Z+Q))>0&&(X=1/X),S={screen_x:(-he*o.screen_x+L*c.screen_x+Te*f.screen_x)*W,screen_y:(-he*o.screen_y+L*c.screen_y+Te*f.screen_y)*W},x={screen_x:(ne*c.screen_x+z*f.screen_x-he*m.screen_x)*X,screen_y:(ne*c.screen_y+z*f.screen_y-he*m.screen_y)*X},S.screen_x==0&&S.screen_y==0&&(S=c),x.screen_x==0&&x.screen_y==0&&(x=f),xe.push([S.screen_x,S.screen_y]),xe.push([x.screen_x,x.screen_y]),xe.push([f.screen_x,f.screen_y]);return xe},$i._linear=function(s){for(var r=[],u=0;u<s.length;u++)r.push([s[u].screen_x,s[u].screen_y]);return r},ei.prototype.setItems=function(s){s!=null?(this.itemsData=s,Jr(this.options)==1&&K.insertSort(this.itemsData,function(r,u){return r.x>u.x?1:-1})):this.itemsData=[]},ei.prototype.getItems=function(){return this.itemsData},ei.prototype.setZeroPosition=function(s){this.zeroPosition=s},ei.prototype.setOptions=function(s){s!==void 0&&(K.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,s),typeof s.drawPoints=="function"&&(s.drawPoints={onRender:s.drawPoints}),K.mergeOptions(this.options,s,"interpolation"),K.mergeOptions(this.options,s,"drawPoints"),K.mergeOptions(this.options,s,"shaded"),s.interpolation&&ft(s.interpolation)=="object"&&s.interpolation.parametrization&&(s.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:s.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)))},ei.prototype.update=function(s){this.group=s,this.content=s.content||"graph",this.className=s.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=s.visible===void 0||s.visible,this.style=s.style,this.setOptions(s.options)},ei.prototype.getLegend=function(s,r,u,o,c){switch(u!=null&&u!=null||(u={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),o!=null&&o!=null||(o=0),c!=null&&c!=null||(c=.5*r),this.options.style){case"line":$i.drawIcon(this,o,c,s,r,u);break;case"points":case"point":Gv.drawIcon(this,o,c,s,r,u);break;case"bar":_n.drawIcon(this,o,c,s,r,u)}return{icon:u.svg,label:this.content,orientation:this.options.yAxisOrientation}},ei.prototype.getYRange=function(s){for(var r=s[0].y,u=s[0].y,o=0;o<s.length;o++)r=r>s[o].y?s[o].y:r,u=u<s[o].y?s[o].y:u;return{min:r,max:u,yAxisOrientation:this.options.yAxisOrientation}},Bn.prototype=new Ia,Bn.prototype.clear=function(){this.groups={},this.amountOfGroups=0},Bn.prototype.addGroup=function(s,r){r.options.excludeFromLegend!=1&&(this.groups.hasOwnProperty(s)||(this.groups[s]=r),this.amountOfGroups+=1)},Bn.prototype.updateGroup=function(s,r){this.groups[s]=r},Bn.prototype.removeGroup=function(s){this.groups.hasOwnProperty(s)&&(delete this.groups[s],this.amountOfGroups-=1)},Bn.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)},Bn.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Bn.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Bn.prototype.setOptions=function(s){K.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,s)},Bn.prototype.redraw=function(){var s=0,r=Di(this.groups);Jr(r).call(r,function(m,S){return m<S?-1:1});for(var u=0;u<r.length;u++){var o=r[u];this.groups[o].visible!=1||this.linegraphOptions.visibility[o]!==void 0&&this.linegraphOptions.visibility[o]!=1||s++}if(this.options[this.side].visible==0||this.amountOfGroups==0||this.options.enabled==0||s==0)this.hide();else{if(this.show(),this.options[this.side].position=="top-left"||this.options[this.side].position=="bottom-left"?(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=""),this.options[this.side].position=="top-left"||this.options[this.side].position=="top-right")this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var c=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+c+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==0?(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 f="";for(u=0;u<r.length;u++)o=r[u],this.groups[o].visible!=1||this.linegraphOptions.visibility[o]!==void 0&&this.linegraphOptions.visibility[o]!=1||(f+=this.groups[o].content+"<br />");this.dom.textArea.innerHTML=K.xss(f),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},Bn.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var s=Di(this.groups);Jr(s).call(s,function(I,N){return I<N?-1:1}),ql(O=this.svgElements),Ra(O),ql(O);var r=window.getComputedStyle(this.dom.frame).paddingTop,u=Number(r.replace("px","")),o=u,c=this.options.iconSize,f=.75*this.options.iconSize,m=u+.5*f+3;this.svg.style.width=c+5+u+"px";for(var S=0;S<s.length;S++){var x=s[S];this.groups[x].visible!=1||this.linegraphOptions.visibility[x]!==void 0&&this.linegraphOptions.visibility[x]!=1||(this.groups[x].getLegend(c,f,this.framework,o,m),m+=f+this.options.iconSpacing)}}var O};var ag="__ungrouped__";function qt(s,r){this.id=Rs(),this.body=s,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=K.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 u=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(o,c,f){u._onAdd(c.items)},update:function(o,c,f){u._onUpdate(c.items)},remove:function(o,c,f){u._onRemove(c.items)}},this.groupListeners={add:function(o,c,f){u._onAddGroups(c.items)},update:function(o,c,f){u._onUpdateGroups(c.items)},remove:function(o,c,f){u._onRemoveGroups(c.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(r),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){u.svg.style.left=K.option.asSize(-u.props.width),u.forceGraphUpdate=!0,u.redraw.call(u)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}qt.prototype=new Ia,qt.prototype._create=function(){var s=document.createElement("div");s.className="vis-line-graph",this.dom.frame=s,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",s.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new Bb(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new Bb(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new Bn(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new Bn(this.body,this.options.legend,"right",this.options.groups),this.show()},qt.prototype.setOptions=function(s){s&&(s.graphHeight===void 0&&s.height!==void 0?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):this.body.domProps.centerContainer.height!==void 0&&s.graphHeight!==void 0&&ea((s.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),K.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,s),K.mergeOptions(this.options,s,"interpolation"),K.mergeOptions(this.options,s,"drawPoints"),K.mergeOptions(this.options,s,"shaded"),K.mergeOptions(this.options,s,"legend"),s.interpolation&&ft(s.interpolation)=="object"&&s.interpolation.parametrization&&(s.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:s.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&s.dataAxis!==void 0&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&s.legend!==void 0&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(ag)&&this.groups[ag].setOptions(s)),this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},qt.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},qt.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},qt.prototype.setItems=function(s){var r,u=this,o=this.itemsData;if(s){if(!Ns(s))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=jl(s)}else this.itemsData=null;if(o&&(Ae(K).call(K,this.itemListeners,function(f,m){o.off(m,f)}),o.dispose(),r=o.getIds(),this._onRemove(r)),this.itemsData){var c=this.id;Ae(K).call(K,this.itemListeners,function(f,m){u.itemsData.on(m,f,c)}),r=this.itemsData.getIds(),this._onAdd(r)}},qt.prototype.setGroups=function(s){var r,u=this;if(this.groupsData){Ae(K).call(K,this.groupListeners,function(f,m){u.groupsData.off(m,f)}),r=this.groupsData.getIds(),this.groupsData=null;for(var o=0;o<r.length;o++)this._removeGroup(r[o])}if(s){if(!Ns(s))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=s}else this.groupsData=null;if(this.groupsData){var c=this.id;Ae(K).call(K,this.groupListeners,function(f,m){u.groupsData.on(m,f,c)}),r=this.groupsData.getIds(),this._onAddGroups(r)}},qt.prototype._onUpdate=function(s){this._updateAllGroupData(s)},qt.prototype._onAdd=function(s){this._onUpdate(s)},qt.prototype._onRemove=function(s){this._onUpdate(s)},qt.prototype._onUpdateGroups=function(s){this._updateAllGroupData(null,s)},qt.prototype._onAddGroups=function(s){this._onUpdateGroups(s)},qt.prototype._onRemoveGroups=function(s){for(var r=0;r<s.length;r++)this._removeGroup(s[r]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})},qt.prototype._removeGroup=function(s){this.groups.hasOwnProperty(s)&&(this.groups[s].options.yAxisOrientation=="right"?(this.yAxisRight.removeGroup(s),this.legendRight.removeGroup(s),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(s),this.legendLeft.removeGroup(s),this.legendLeft.redraw()),delete this.groups[s])},qt.prototype._updateGroup=function(s,r){this.groups.hasOwnProperty(r)?(this.groups[r].update(s),this.groups[r].options.yAxisOrientation=="right"?(this.yAxisRight.updateGroup(r,this.groups[r]),this.legendRight.updateGroup(r,this.groups[r]),this.yAxisLeft.removeGroup(r),this.legendLeft.removeGroup(r)):(this.yAxisLeft.updateGroup(r,this.groups[r]),this.legendLeft.updateGroup(r,this.groups[r]),this.yAxisRight.removeGroup(r),this.legendRight.removeGroup(r))):(this.groups[r]=new ei(s,r,this.options,this.groupsUsingDefaultStyles),this.groups[r].options.yAxisOrientation=="right"?(this.yAxisRight.addGroup(r,this.groups[r]),this.legendRight.addGroup(r,this.groups[r])):(this.yAxisLeft.addGroup(r,this.groups[r]),this.legendLeft.addGroup(r,this.groups[r]))),this.legendLeft.redraw(),this.legendRight.redraw()},qt.prototype._updateAllGroupData=function(s,r){if(this.itemsData!=null){var u={},o=this.itemsData.get(),c=this.itemsData.idProp,f={};s&&Ei(s).call(s,function(Z){f[Z]=Z});for(var m={},S=0;S<o.length;S++){var x=o[S],O=x.group;O==null&&(O=ag),m.hasOwnProperty(O)?m[O]++:m[O]=1}var I={};if(!r&&s){for(O in this.groups)if(this.groups.hasOwnProperty(O)){var N=(X=this.groups[O]).getItems();u[O]=Mt(N).call(N,function(Z){return I[Z[c]]=Z[c],Z[c]!==f[Z[c]]});var L=m[O];m[O]-=u[O].length,u[O].length<L&&(u[O][L-1]={})}}for(S=0;S<o.length;S++)if((O=(x=o[S]).group)==null&&(O=ag),r||!s||x[c]===f[x[c]]||!I.hasOwnProperty(x[c])){u.hasOwnProperty(O)||(u[O]=new Array(m[O]));var z=K.bridgeObject(x);z.x=K.convert(x.x,"Date"),z.end=K.convert(x.end,"Date"),z.orginalY=x.y,z.y=Number(x.y),z[c]=x[c];var W=u[O].length-m[O]--;u[O][W]=z}for(O in this.groups)this.groups.hasOwnProperty(O)&&(u.hasOwnProperty(O)||(u[O]=new Array(0)));for(O in u)if(u.hasOwnProperty(O))if(u[O].length==0)this.groups.hasOwnProperty(O)&&this._removeGroup(O);else{var X=void 0;this.groupsData!=null&&(X=this.groupsData.get(O)),X==null&&(X={id:O,content:this.options.defaultGroup+O}),this._updateGroup(X,O),this.groups[O].setItems(u[O])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},qt.prototype.redraw=function(){var s=!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,s=this._isResized()||s;var r,u=this.body.range.end-this.body.range.start,o=u!=this.lastVisibleInterval;if(this.lastVisibleInterval=u,s==1&&(this.svg.style.width=K.option.asSize(3*this.props.width),this.svg.style.left=K.option.asSize(-this.props.width),er(r=this.options.height+"").call(r,"%")==-1&&this.updateSVGheightOnResize!=1||(this.updateSVGheight=!0)),this.updateSVGheight==1?(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",s==1||o==1||this.abortedGraphUpdate==1||this.forceGraphUpdate==1)s=this._updateGraph()||s,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(this.lastStart!=0){var c=this.body.range.start-this.lastStart,f=this.body.range.end-this.body.range.start;if(this.props.width!=0){var m=c*(this.props.width/f);this.svg.style.left=-this.props.width-m+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),s},qt.prototype._getSortedGroupIds=function(){var s=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var u=this.groups[r];u.visible!=1||this.options.groups.visibility[r]!==void 0&&this.options.groups.visibility[r]!=1||s.push({id:r,zIndex:u.options.zIndex})}K.insertSort(s,function(f,m){var S=f.zIndex,x=m.zIndex;return S===void 0&&(S=0),x===void 0&&(x=0),S==x?0:S<x?-1:1});for(var o=new Array(s.length),c=0;c<s.length;c++)o[c]=s[c].id;return o},qt.prototype._updateGraph=function(){if(ql(this.svgElements),this.props.width!=0&&this.itemsData!=null){var s,r,u={},o=this.body.util.toGlobalTime(-this.body.domProps.root.width),c=this.body.util.toGlobalTime(2*this.body.domProps.root.width),f=this._getSortedGroupIds();if(f.length>0){var m={};for(this._getRelevantData(f,m,o,c),this._applySampling(f,m),r=0;r<f.length;r++)this._convertXcoordinates(m[f[r]]);if(this._getYRanges(f,m,u),this._updateYAxis(f,u)==1)return Ra(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var S=void 0;for(r=0;r<f.length;r++)s=this.groups[f[r]],this.options.stack===!0&&this.options.style==="line"&&(s.options.excludeFromStacking!=null&&s.options.excludeFromStacking||(S!=null&&(this._stack(m[s.id],m[S.id]),s.options.shaded.enabled==1&&s.options.shaded.orientation!=="group"&&(s.options.shaded.orientation=="top"&&S.options.shaded.orientation!=="group"?(S.options.shaded.orientation="group",S.options.shaded.groupId=s.id):(s.options.shaded.orientation="group",s.options.shaded.groupId=S.id))),S=s)),this._convertYcoordinates(m[f[r]],s);var x={};for(r=0;r<f.length;r++)if((s=this.groups[f[r]]).options.style==="line"&&s.options.shaded.enabled==1){var O=m[f[r]];if(O==null||O.length==0)continue;if(x.hasOwnProperty(f[r])||(x[f[r]]=$i.calcPath(O,s)),s.options.shaded.orientation==="group"){var I=s.options.shaded.groupId;if(er(f).call(f,I)===-1){console.log(s.id+": Unknown shading group target given:"+I);continue}x.hasOwnProperty(I)||(x[I]=$i.calcPath(m[I],this.groups[I])),$i.drawShading(x[f[r]],s,x[I],this.framework)}else $i.drawShading(x[f[r]],s,void 0,this.framework)}for(_n.draw(f,m,this.framework),r=0;r<f.length;r++)if(s=this.groups[f[r]],m[f[r]].length>0)switch(s.options.style){case"line":x.hasOwnProperty(f[r])||(x[f[r]]=$i.calcPath(m[f[r]],s)),$i.draw(x[f[r]],s,this.framework);case"point":case"points":s.options.style!="point"&&s.options.style!="points"&&s.options.drawPoints.enabled!=1||Gv.draw(m[f[r]],s,this.framework)}}}return Ra(this.svgElements),!1},qt.prototype._stack=function(s,r){var u,o,c,f,m;u=0;for(var S=0;S<s.length;S++){f=void 0,m=void 0;for(var x=u;x<r.length;x++){if(r[x].x===s[S].x){f=r[x],m=r[x],u=x;break}if(r[x].x>s[S].x){m=r[x],f=x==0?m:r[x-1],u=x;break}}m===void 0&&(f=r[r.length-1],m=r[r.length-1]),o=m.x-f.x,c=m.y-f.y,s[S].y=o==0?s[S].orginalY+m.y:s[S].orginalY+c/o*(s[S].x-f.x)+f.y}},qt.prototype._getRelevantData=function(s,r,u,o){var c,f,m,S;if(s.length>0)for(f=0;f<s.length;f++){var x=(c=this.groups[s[f]]).getItems();if(Jr(c.options)==1){var O=function(z,W){return z.getTime()==W.getTime()?0:z<W?-1:1},I=Math.max(0,K.binarySearchValue(x,u,"x","before",O)),N=Math.min(x.length,K.binarySearchValue(x,o,"x","after",O)+1);N<=0&&(N=x.length);var L=new Array(N-I);for(m=I;m<N;m++)S=c.itemsData[m],L[m-I]=S;r[s[f]]=L}else r[s[f]]=c.itemsData}},qt.prototype._applySampling=function(s,r){if(s.length>0){for(var u=0;u<s.length;u++)if(this.groups[s[u]].options.sampling==1){var o=r[s[u]];if(o.length>0){var c,f=o.length,m=f/(this.body.util.toGlobalScreen(o[o.length-1].x)-this.body.util.toGlobalScreen(o[0].x));c=Math.min(Math.ceil(.2*f),Math.max(1,Math.round(m)));for(var S=new Array(f),x=0;x<f;x+=c)S[Math.round(x/c)]=o[x];r[s[u]]=Ln(S).call(S,0,Math.round(f/c))}}}},qt.prototype._getYRanges=function(s,r,u){var o,c,f,m,S=[],x=[];if(s.length>0){for(f=0;f<s.length;f++)o=r[s[f]],m=this.groups[s[f]].options,o.length>0&&(c=this.groups[s[f]],m.stack===!0&&m.style==="bar"?m.yAxisOrientation==="left"?S=xr(S).call(S,o):x=xr(x).call(x,o):u[s[f]]=c.getYRange(o,s[f]));_n.getStackedYRange(S,u,s,"__barStackLeft","left"),_n.getStackedYRange(x,u,s,"__barStackRight","right")}},qt.prototype._updateYAxis=function(s,r){var u,o,c=!1,f=!1,m=!1,S=1e9,x=1e9,O=-1e9,I=-1e9;if(s.length>0){for(var N=0;N<s.length;N++){var L=this.groups[s[N]];L&&L.options.yAxisOrientation!="right"?(f=!0,S=1e9,O=-1e9):L&&L.options.yAxisOrientation&&(m=!0,x=1e9,I=-1e9)}for(N=0;N<s.length;N++)r.hasOwnProperty(s[N])&&r[s[N]].ignore!==!0&&(u=r[s[N]].min,o=r[s[N]].max,r[s[N]].yAxisOrientation!="right"?(f=!0,S=S>u?u:S,O=O<o?o:O):(m=!0,x=x>u?u:x,I=I<o?o:I));f==1&&this.yAxisLeft.setRange(S,O),m==1&&this.yAxisRight.setRange(x,I)}c=this._toggleAxisVisiblity(f,this.yAxisLeft)||c,c=this._toggleAxisVisiblity(m,this.yAxisRight)||c,m==1&&f==1?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!f,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==0?(this.yAxisLeft.lineOffset=m==1?this.yAxisRight.width:0,c=this.yAxisLeft.redraw()||c,c=this.yAxisRight.redraw()||c):c=this.yAxisRight.redraw()||c;var z=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(N=0;N<z.length;N++)er(s).call(s,z[N])!=-1&&Ln(s).call(s,er(s).call(s,z[N]),1);return c},qt.prototype._toggleAxisVisiblity=function(s,r){var u=!1;return s==0?r.dom.frame.parentNode&&r.hidden==0&&(r.hide(),u=!0):r.dom.frame.parentNode||r.hidden!=1||(r.show(),u=!0),u},qt.prototype._convertXcoordinates=function(s){for(var r=this.body.util.toScreen,u=0;u<s.length;u++)s[u].screen_x=r(s[u].x)+this.props.width,s[u].screen_y=s[u].y,s[u].end!=null?s[u].screen_end=r(s[u].end)+this.props.width:s[u].screen_end=void 0},qt.prototype._convertYcoordinates=function(s,r){var u=this.yAxisLeft,o=Number(this.svg.style.height.replace("px",""));r.options.yAxisOrientation=="right"&&(u=this.yAxisRight);for(var c=0;c<s.length;c++)s[c].screen_y=Math.round(u.convertValue(s[c].y));r.setZeroPosition(Math.min(o,u.convertValue(0)))};var mt="string",At="boolean",Xt="number",ad="date",gr="object",od="moment",fM={configure:{enabled:{boolean:At},filter:{boolean:At,function:"function"},container:{dom:"dom"},__type__:{object:gr,boolean:At,function:"function"}},alignCurrentTime:{string:mt,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:mt},sort:{boolean:At},sampling:{boolean:At},stack:{boolean:At},graphHeight:{string:mt,number:Xt},shaded:{enabled:{boolean:At},orientation:{string:["bottom","top","zero","group"]},groupId:{object:gr},__type__:{boolean:At,object:gr}},style:{string:["line","bar","points"]},barChart:{width:{number:Xt},minWidth:{number:Xt},sideBySide:{boolean:At},align:{string:["left","center","right"]},__type__:{object:gr}},interpolation:{enabled:{boolean:At},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:Xt},__type__:{object:gr,boolean:At}},drawPoints:{enabled:{boolean:At},onRender:{function:"function"},size:{number:Xt},style:{string:["square","circle"]},__type__:{object:gr,boolean:At,function:"function"}},dataAxis:{showMinorLabels:{boolean:At},showMajorLabels:{boolean:At},showWeekScale:{boolean:At},icons:{boolean:At},width:{string:mt,number:Xt},visible:{boolean:At},alignZeros:{boolean:At},left:{range:{min:{number:Xt,undefined:"undefined"},max:{number:Xt,undefined:"undefined"},__type__:{object:gr}},format:{function:"function"},title:{text:{string:mt,number:Xt,undefined:"undefined"},style:{string:mt,undefined:"undefined"},__type__:{object:gr}},__type__:{object:gr}},right:{range:{min:{number:Xt,undefined:"undefined"},max:{number:Xt,undefined:"undefined"},__type__:{object:gr}},format:{function:"function"},title:{text:{string:mt,number:Xt,undefined:"undefined"},style:{string:mt,undefined:"undefined"},__type__:{object:gr}},__type__:{object:gr}},__type__:{object:gr}},legend:{enabled:{boolean:At},icons:{boolean:At},left:{visible:{boolean:At},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:gr}},right:{visible:{boolean:At},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:gr}},__type__:{object:gr,boolean:At}},groups:{visibility:{any:"any"},__type__:{object:gr}},autoResize:{boolean:At},throttleRedraw:{number:Xt},clickToUse:{boolean:At},end:{number:Xt,date:ad,string:mt,moment:od},format:{minorLabels:{millisecond:{string:mt,undefined:"undefined"},second:{string:mt,undefined:"undefined"},minute:{string:mt,undefined:"undefined"},hour:{string:mt,undefined:"undefined"},weekday:{string:mt,undefined:"undefined"},day:{string:mt,undefined:"undefined"},week:{string:mt,undefined:"undefined"},month:{string:mt,undefined:"undefined"},quarter:{string:mt,undefined:"undefined"},year:{string:mt,undefined:"undefined"},__type__:{object:gr}},majorLabels:{millisecond:{string:mt,undefined:"undefined"},second:{string:mt,undefined:"undefined"},minute:{string:mt,undefined:"undefined"},hour:{string:mt,undefined:"undefined"},weekday:{string:mt,undefined:"undefined"},day:{string:mt,undefined:"undefined"},week:{string:mt,undefined:"undefined"},month:{string:mt,undefined:"undefined"},quarter:{string:mt,undefined:"undefined"},year:{string:mt,undefined:"undefined"},__type__:{object:gr}},__type__:{object:gr}},moment:{function:"function"},height:{string:mt,number:Xt},hiddenDates:{start:{date:ad,number:Xt,string:mt,moment:od},end:{date:ad,number:Xt,string:mt,moment:od},repeat:{string:mt},__type__:{object:gr,array:"array"}},locale:{string:mt},locales:{__any__:{any:"any"},__type__:{object:gr}},max:{date:ad,number:Xt,string:mt,moment:od},maxHeight:{number:Xt,string:mt},maxMinorChars:{number:Xt},min:{date:ad,number:Xt,string:mt,moment:od},minHeight:{number:Xt,string:mt},moveable:{boolean:At},multiselect:{boolean:At},orientation:{string:mt},showCurrentTime:{boolean:At},showMajorLabels:{boolean:At},showMinorLabels:{boolean:At},showWeekScale:{boolean:At},snap:{function:"function",null:"null"},start:{date:ad,number:Xt,string:mt,moment:od},timeAxis:{scale:{string:mt,undefined:"undefined"},step:{number:Xt,undefined:"undefined"},__type__:{object:gr}},width:{string:mt,number:Xt},zoomable:{boolean:At},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:Xt},zoomMin:{number:Xt},zIndex:{number:Xt},__type__:{object:gr}},vM={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function La(s,r,u,o){var c,f,m,S,x,O,I;if(!xt(u)&&!Ns(u)&&u instanceof Object){var N=o;o=u,u=N}o&&o.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var L=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Nn,width:null,height:null,maxHeight:null,minHeight:null},this.options=K.deepExtend({},this.defaultOptions),this._create(s),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:de(c=this.on).call(c,this),off:de(f=this.off).call(f,this),emit:de(m=this.emit).call(m,this)},hiddenDates:[],util:{getScale:function(){return L.timeAxis.step.scale},getStep:function(){return L.timeAxis.step.step},toScreen:de(S=L._toScreen).call(S,L),toGlobalScreen:de(x=L._toGlobalScreen).call(x,L),toTime:de(O=L._toTime).call(O,L),toGlobalTime:de(I=L._toGlobalTime).call(I,L)}},this.range=new Im(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new ed(this.body),this.components.push(this.timeAxis),this.currentTime=new xb(this.body),this.components.push(this.currentTime),this.linegraph=new qt(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(z){L.emit("click",L.getEventProperties(z))}),this.on("doubletap",function(z){L.emit("doubleClick",L.getEventProperties(z))}),this.dom.root.oncontextmenu=function(z){L.emit("contextmenu",L.getEventProperties(z))},this.initialFitDone=!1,this.on("changed",function(){if(L.itemsData!=null){if(!L.initialFitDone&&!L.options.rollingMode)if(L.initialFitDone=!0,L.options.start!=null||L.options.end!=null){if(L.options.start==null||L.options.end==null)var z=L.getItemRange();var W=L.options.start!=null?L.options.start:z.min,X=L.options.end!=null?L.options.end:z.max;L.setWindow(W,X,{animation:!1})}else L.fit({animation:!1});L.initialDrawDone||!L.initialRangeChangeDone&&(L.options.start||L.options.end)&&!L.options.rollingMode||(L.initialDrawDone=!0,L.dom.root.style.visibility="visible",L.dom.loadingScreen.parentNode.removeChild(L.dom.loadingScreen),L.options.onInitialDrawComplete&&Ci(function(){return L.options.onInitialDrawComplete()},0))}}),o&&this.setOptions(o),u&&this.setGroups(u),r&&this.setItems(r),this._redraw()}La.prototype=new _h,La.prototype.setOptions=function(s){_T.validate(s,fM)===!0&&console.log("%cErrors have been found in the supplied options object.",eg),_h.prototype.setOptions.call(this,s)},La.prototype.setItems=function(s){var r,u=this.itemsData==null;if(r=s?Ns(s)?jl(s):jl(new h.DataSet(s)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=r,this.linegraph&&this.linegraph.setItems(r!=null?r.rawDS:null),u)if(this.options.start!=null||this.options.end!=null){var o=this.options.start!=null?this.options.start:null,c=this.options.end!=null?this.options.end:null;this.setWindow(o,c,{animation:!1})}else this.fit({animation:!1})},La.prototype.setGroups=function(s){var r;r=s?Ns(s)?s:new h.DataSet(s):null,this.groupsData=r,this.linegraph.setGroups(r)},La.prototype.getLegend=function(s,r,u){return r===void 0&&(r=15),u===void 0&&(u=15),this.linegraph.groups[s]!==void 0?this.linegraph.groups[s].getLegend(r,u):"cannot find group:'"+s+"'"},La.prototype.isGroupVisible=function(s){return this.linegraph.groups[s]!==void 0&&this.linegraph.groups[s].visible&&(this.linegraph.options.groups.visibility[s]===void 0||this.linegraph.options.groups.visibility[s]==1)},La.prototype.getDataRange=function(){var s=null,r=null;for(var u in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(u)&&this.linegraph.groups[u].visible==1)for(var o=0;o<this.linegraph.groups[u].itemsData.length;o++){var c=this.linegraph.groups[u].itemsData[o],f=K.convert(c.x,"Date").valueOf();s=s==null||s>f?f:s,r=r==null||r<f?f:r}return{min:s!=null?new Date(s):null,max:r!=null?new Date(r):null}},La.prototype.getEventProperties=function(s){var r=s.center?s.center.x:s.clientX,u=s.center?s.center.y:s.clientY,o=r-K.getAbsoluteLeft(this.dom.centerContainer),c=u-K.getAbsoluteTop(this.dom.centerContainer),f=this._toTime(o),m=jm.customTimeFromTarget(s),S=K.getTarget(s),x=null;K.hasParent(S,this.timeAxis.dom.foreground)||this.timeAxis2&&K.hasParent(S,this.timeAxis2.dom.foreground)?x="axis":K.hasParent(S,this.linegraph.yAxisLeft.dom.frame)||K.hasParent(S,this.linegraph.yAxisRight.dom.frame)?x="data-axis":K.hasParent(S,this.linegraph.legendLeft.dom.frame)||K.hasParent(S,this.linegraph.legendRight.dom.frame)?x="legend":m!=null?x="custom-time":K.hasParent(S,this.currentTime.bar)?x="current-time":K.hasParent(S,this.dom.center)&&(x="background");var O=[],I=this.linegraph.yAxisLeft,N=this.linegraph.yAxisRight;return!I.hidden&&this.itemsData.length>0&&O.push(I.screenToValue(c)),!N.hidden&&this.itemsData.length>0&&O.push(N.screenToValue(c)),{event:s,customTime:m?m.options.id:null,what:x,pageX:s.srcEvent?s.srcEvent.pageX:s.pageX,pageY:s.srcEvent?s.srcEvent.pageY:s.pageY,x:o,y:c,time:f,value:O}},La.prototype._createConfigurator=function(){return new Hv(this,this.dom.container,vM)};var xT=function(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(s){return"en"}}();n.locale(xT);var pM={Core:_h,DateUtil:yx,Range:Im,stack:cT,TimeStep:Av,components:{items:{Item:kh,BackgroundItem:zl,BoxItem:Nb,ClusterItem:Lb,PointItem:vT,RangeItem:Gl},BackgroundGroup:Rb,Component:Ia,CurrentTime:xb,CustomTime:jm,DataAxis:Bb,DataScale:ig,GraphGroup:ei,Group:Zm,ItemSet:Yv,Legend:Bn,LineGraph:qt,TimeAxis:ed}};t.Graph2d=La,t.Timeline=id,t.timeline=pM})}}),C6=(e=>(e.Red="red",e.Orange="orange",e.Yellow="yellow",e.Green="green",e.Blue="blue",e.Purple="purple",e.Pink="pink",e.Cyan="cyan",e))(C6||{}),E6=(e=>(e.Solid="solid",e.Opaque="opaque",e))(E6||{}),BC="en",D6=/^(-?\d+)(?:-(\d{2}))?(?:-(\d{2}))?(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(?:\.(\d+))?(?:Z)?$/;function ip(e){let a={month:"01",day:"01",hour:"00",minute:"00",second:"00"},t=e.match(D6);if(!t)throw new Error("Invalid date format");let[n,h,d=a.month,p=a.day,y=a.hour,b=a.minute,w=a.second]=t;return`${parseInt(h)<0?`-${Math.abs(parseInt(h)).toString().padStart(4,"0")}`:h.padStart(4,"0")}-${d}-${p}T${y}:${b}:${w}Z`}function gN(e){let a=/^(-?\d{1,})-(\d{2})-(\d{2})(T(\d{2}):(\d{2}):(\d{2})(Z|([+-]\d{2}:\d{2})))?$/,t=e.match(a);if(!t)throw new Error(`Invalid date format: ${e}`);let[n,h,d,p,y,b="00",w="00",$="00"]=t,A=parseInt(h,10),R=parseInt(d,10)-1,Y=parseInt(p,10),V=parseInt(b,10),oe=parseInt(w,10),G=parseInt($,10);if(R<0||R>11)throw new Error(`Invalid month: ${d}. Must be between 01-12`);if(Y<1||Y>31)throw new Error(`Invalid day: ${p}. Must be between 01-31`);if(V<0||V>23)throw new Error(`Invalid hour: ${b}. Must be between 00-23`);if(oe<0||oe>59)throw new Error(`Invalid hour: ${w}. Must be between 00-59`);if(G<0||G>59)throw new Error(`Invalid second: ${w}. Must be between 00-59`);let ae=new Date(Date.UTC(A,R,Y,V,oe,G));if(!(ae.getUTCMonth()===R&&ae.getUTCDate()===Y&&ae.getUTCHours()===V&&ae.getUTCMinutes()===oe&&ae.getUTCSeconds()===G))throw new Error(`Invalid date: ${e.split("T")[0]}. Make sure you have correct month, day, etc.`)}function aa(e){let t=ip(e).match(D6);if(!t)throw new Error("Invalid date format");let[n,h,d,p,y,b,w]=t,$=new Date(Date.UTC(parseInt(h),parseInt(d)-1,parseInt(p),parseInt(y),parseInt(b),parseInt(w)));if($.setUTCFullYear(parseInt(h)),isNaN($))throw new Error("Date is invalid");return $}var ko=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ru(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var JM={exports:{}},zF;function Js(){return zF||(zF=1,function(e,a){(function(t,n){e.exports=n()})(ko,function(){var t;function n(){return t.apply(null,arguments)}function h(l){t=l}function d(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function p(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function y(l,v){return Object.prototype.hasOwnProperty.call(l,v)}function b(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var v;for(v in l)if(y(l,v))return!1;return!0}function w(l){return l===void 0}function $(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function A(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function R(l,v){var _=[],T,P=l.length;for(T=0;T<P;++T)_.push(v(l[T],T));return _}function Y(l,v){for(var _ in v)y(v,_)&&(l[_]=v[_]);return y(v,"toString")&&(l.toString=v.toString),y(v,"valueOf")&&(l.valueOf=v.valueOf),l}function V(l,v,_,T){return mu(l,v,_,T,!0).utc()}function oe(){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 G(l){return l._pf==null&&(l._pf=oe()),l._pf}var ae;Array.prototype.some?ae=Array.prototype.some:ae=function(l){var v=Object(this),_=v.length>>>0,T;for(T=0;T<_;T++)if(T in v&&l.call(this,v[T],T,v))return!0;return!1};function ve(l){var v=null,_=!1,T=l._d&&!isNaN(l._d.getTime());if(T&&(v=G(l),_=ae.call(v.parsedDateParts,function(P){return P!=null}),T=v.overflow<0&&!v.empty&&!v.invalidEra&&!v.invalidMonth&&!v.invalidWeekday&&!v.weekdayMismatch&&!v.nullInput&&!v.invalidFormat&&!v.userInvalidated&&(!v.meridiem||v.meridiem&&_),l._strict&&(T=T&&v.charsLeftOver===0&&v.unusedTokens.length===0&&v.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(l))l._isValid=T;else return T;return l._isValid}function ye(l){var v=V(NaN);return l!=null?Y(G(v),l):G(v).userInvalidated=!0,v}var pe=n.momentProperties=[],Se=!1;function ze(l,v){var _,T,P,j=pe.length;if(w(v._isAMomentObject)||(l._isAMomentObject=v._isAMomentObject),w(v._i)||(l._i=v._i),w(v._f)||(l._f=v._f),w(v._l)||(l._l=v._l),w(v._strict)||(l._strict=v._strict),w(v._tzm)||(l._tzm=v._tzm),w(v._isUTC)||(l._isUTC=v._isUTC),w(v._offset)||(l._offset=v._offset),w(v._pf)||(l._pf=G(v)),w(v._locale)||(l._locale=v._locale),j>0)for(_=0;_<j;_++)T=pe[_],P=v[T],w(P)||(l[T]=P);return l}function tt(l){ze(this,l),this._d=new Date(l._d!=null?l._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Se===!1&&(Se=!0,n.updateOffset(this),Se=!1)}function _e(l){return l instanceof tt||l!=null&&l._isAMomentObject!=null}function it(l){n.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+l)}function Ne(l,v){var _=!0;return Y(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,l),_){var T=[],P,j,q,le=arguments.length;for(j=0;j<le;j++){if(P="",typeof arguments[j]=="object"){P+=`
[`+j+"] ";for(q in arguments[0])y(arguments[0],q)&&(P+=q+": "+arguments[0][q]+", ");P=P.slice(0,-2)}else P=arguments[j];T.push(P)}it(l+`
Arguments: `+Array.prototype.slice.call(T).join("")+`
`+new Error().stack),_=!1}return v.apply(this,arguments)},v)}var qe={};function Fe(l,v){n.deprecationHandler!=null&&n.deprecationHandler(l,v),qe[l]||(it(v),qe[l]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function Ye(l){return typeof Function!="undefined"&&l instanceof Function||Object.prototype.toString.call(l)==="[object Function]"}function ir(l){var v,_;for(_ in l)y(l,_)&&(v=l[_],Ye(v)?this[_]=v:this["_"+_]=v);this._config=l,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function gt(l,v){var _=Y({},l),T;for(T in v)y(v,T)&&(p(l[T])&&p(v[T])?(_[T]={},Y(_[T],l[T]),Y(_[T],v[T])):v[T]!=null?_[T]=v[T]:delete _[T]);for(T in l)y(l,T)&&!y(v,T)&&p(l[T])&&(_[T]=Y({},_[T]));return _}function Kt(l){l!=null&&this.set(l)}var lt;Object.keys?lt=Object.keys:lt=function(l){var v,_=[];for(v in l)y(l,v)&&_.push(v);return _};var kt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $r(l,v,_){var T=this._calendar[l]||this._calendar.sameElse;return Ye(T)?T.call(v,_):T}function ht(l,v,_){var T=""+Math.abs(l),P=v-T.length,j=l>=0;return(j?_?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+T}var Ct=/(\[[^\[]*\])|(\\)?([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,ui=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,sn={},$t={};function ce(l,v,_,T){var P=T;typeof T=="string"&&(P=function(){return this[T]()}),l&&($t[l]=P),v&&($t[v[0]]=function(){return ht(P.apply(this,arguments),v[1],v[2])}),_&&($t[_]=function(){return this.localeData().ordinal(P.apply(this,arguments),l)})}function Gn(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function En(l){var v=l.match(Ct),_,T;for(_=0,T=v.length;_<T;_++)$t[v[_]]?v[_]=$t[v[_]]:v[_]=Gn(v[_]);return function(P){var j="",q;for(q=0;q<T;q++)j+=Ye(v[q])?v[q].call(P,l):v[q];return j}}function ln(l,v){return l.isValid()?(v=ke(v,l.localeData()),sn[v]=sn[v]||En(v),sn[v](l)):l.localeData().invalidDate()}function ke(l,v){var _=5;function T(P){return v.longDateFormat(P)||P}for(ui.lastIndex=0;_>=0&&ui.test(l);)l=l.replace(ui,T),ui.lastIndex=0,_-=1;return l}var ge={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 be(l){var v=this._longDateFormat[l],_=this._longDateFormat[l.toUpperCase()];return v||!_?v:(this._longDateFormat[l]=_.match(Ct).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[l])}var je="Invalid date";function Qe(){return this._invalidDate}var rt="%d",Ut=/\d{1,2}/;function Bt(l){return this._ordinal.replace("%d",l)}var ii={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 zn(l,v,_,T){var P=this._relativeTime[_];return Ye(P)?P(l,v,_,T):P.replace(/%d/i,l)}function sr(l,v){var _=this._relativeTime[l>0?"future":"past"];return Ye(_)?_(v):_.replace(/%s/i,v)}var Zi={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 nr(l){return typeof l=="string"?Zi[l]||Zi[l.toLowerCase()]:void 0}function Ft(l){var v={},_,T;for(T in l)y(l,T)&&(_=nr(T),_&&(v[_]=l[T]));return v}var Lt={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 el(l){var v=[],_;for(_ in l)y(l,_)&&v.push({unit:_,priority:Lt[_]});return v.sort(function(T,P){return T.priority-P.priority}),v}var ts=/\d/,ct=/\d\d/,Ht=/\d{3}/,Pr=/\d{4}/,Pt=/[+-]?\d{6}/,Ve=/\d\d?/,rs=/\d\d\d\d?/,Er=/\d\d\d\d\d\d?/,da=/\d{1,3}/,Vt=/\d{1,4}/,hi=/[+-]?\d{1,6}/,Li=/\d+/,yi=/[+-]?\d+/,nu=/Z|[+-]\d\d:?\d\d/gi,fa=/Z|[+-]\d\d(?::?\d\d)?/gi,Yh=/[+-]?\d+(\.\d{1,3})?/,ci=/[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,lr=/^[1-9]\d?/,va=/^([1-9]\d|\d)/,Ji;Ji={};function ue(l,v,_){Ji[l]=Ye(v)?v:function(T,P){return T&&_?_:v}}function Sd(l,v){return y(Ji,l)?Ji[l](v._strict,v._locale):new RegExp(is(l))}function is(l){return Hr(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(v,_,T,P,j){return _||T||P||j}))}function Hr(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Et(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Oe(l){var v=+l,_=0;return v!==0&&isFinite(v)&&(_=Et(v)),_}var Co={};function Ue(l,v){var _,T=v,P;for(typeof l=="string"&&(l=[l]),$(v)&&(T=function(j,q){q[v]=Oe(j)}),P=l.length,_=0;_<P;_++)Co[l[_]]=T}function di(l,v){Ue(l,function(_,T,P,j){P._w=P._w||{},v(_,P._w,P,j)})}function xd(l,v,_){v!=null&&y(Co,l)&&Co[l](v,_._a,_,l)}function Va(l){return l%4===0&&l%100!==0||l%400===0}var Dt=0,ur=1,wr=2,ut=3,pr=4,Ir=5,bi=6,_i=7,Td=8;ce("Y",0,0,function(){var l=this.year();return l<=9999?ht(l,4):"+"+l}),ce(0,["YY",2],0,function(){return this.year()%100}),ce(0,["YYYY",4],0,"year"),ce(0,["YYYYY",5],0,"year"),ce(0,["YYYYYY",6,!0],0,"year"),ue("Y",yi),ue("YY",Ve,ct),ue("YYYY",Vt,Pr),ue("YYYYY",hi,Pt),ue("YYYYYY",hi,Pt),Ue(["YYYYY","YYYYYY"],Dt),Ue("YYYY",function(l,v){v[Dt]=l.length===2?n.parseTwoDigitYear(l):Oe(l)}),Ue("YY",function(l,v){v[Dt]=n.parseTwoDigitYear(l)}),Ue("Y",function(l,v){v[Dt]=parseInt(l,10)});function Dn(l){return Va(l)?366:365}n.parseTwoDigitYear=function(l){return Oe(l)+(Oe(l)>68?1900:2e3)};var qa=Mr("FullYear",!0);function tl(){return Va(this.year())}function Mr(l,v){return function(_){return _!=null?(au(this,l,_),n.updateOffset(this,v),this):un(this,l)}}function un(l,v){if(!l.isValid())return NaN;var _=l._d,T=l._isUTC;switch(v){case"Milliseconds":return T?_.getUTCMilliseconds():_.getMilliseconds();case"Seconds":return T?_.getUTCSeconds():_.getSeconds();case"Minutes":return T?_.getUTCMinutes():_.getMinutes();case"Hours":return T?_.getUTCHours():_.getHours();case"Date":return T?_.getUTCDate():_.getDate();case"Day":return T?_.getUTCDay():_.getDay();case"Month":return T?_.getUTCMonth():_.getMonth();case"FullYear":return T?_.getUTCFullYear():_.getFullYear();default:return NaN}}function au(l,v,_){var T,P,j,q,le;if(!(!l.isValid()||isNaN(_))){switch(T=l._d,P=l._isUTC,v){case"Milliseconds":return void(P?T.setUTCMilliseconds(_):T.setMilliseconds(_));case"Seconds":return void(P?T.setUTCSeconds(_):T.setSeconds(_));case"Minutes":return void(P?T.setUTCMinutes(_):T.setMinutes(_));case"Hours":return void(P?T.setUTCHours(_):T.setHours(_));case"Date":return void(P?T.setUTCDate(_):T.setDate(_));case"FullYear":break;default:return}j=_,q=l.month(),le=l.date(),le=le===29&&q===1&&!Va(j)?28:le,P?T.setUTCFullYear(j,q,le):T.setFullYear(j,q,le)}}function wi(l){return l=nr(l),Ye(this[l])?this[l]():this}function Bh(l,v){if(typeof l=="object"){l=Ft(l);var _=el(l),T,P=_.length;for(T=0;T<P;T++)this[_[T].unit](l[_[T].unit])}else if(l=nr(l),Ye(this[l]))return this[l](v);return this}function Cd(l,v){return(l%v+v)%v}var Ge;Array.prototype.indexOf?Ge=Array.prototype.indexOf:Ge=function(l){var v;for(v=0;v<this.length;++v)if(this[v]===l)return v;return-1};function ns(l,v){if(isNaN(l)||isNaN(v))return NaN;var _=Cd(v,12);return l+=(v-_)/12,_===1?Va(l)?29:28:31-_%7%2}ce("M",["MM",2],"Mo",function(){return this.month()+1}),ce("MMM",0,0,function(l){return this.localeData().monthsShort(this,l)}),ce("MMMM",0,0,function(l){return this.localeData().months(this,l)}),ue("M",Ve,lr),ue("MM",Ve,ct),ue("MMM",function(l,v){return v.monthsShortRegex(l)}),ue("MMMM",function(l,v){return v.monthsRegex(l)}),Ue(["M","MM"],function(l,v){v[ur]=Oe(l)-1}),Ue(["MMM","MMMM"],function(l,v,_,T){var P=_._locale.monthsParse(l,T,_._strict);P!=null?v[ur]=P:G(_).invalidMonth=l});var Ed="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ou="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),su=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,as=ci,Dd=ci;function rl(l,v){return l?d(this._months)?this._months[l.month()]:this._months[(this._months.isFormat||su).test(v)?"format":"standalone"][l.month()]:d(this._months)?this._months:this._months.standalone}function Hh(l,v){return l?d(this._monthsShort)?this._monthsShort[l.month()]:this._monthsShort[su.test(v)?"format":"standalone"][l.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Eo(l,v,_){var T,P,j,q=l.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],T=0;T<12;++T)j=V([2e3,T]),this._shortMonthsParse[T]=this.monthsShort(j,"").toLocaleLowerCase(),this._longMonthsParse[T]=this.months(j,"").toLocaleLowerCase();return _?v==="MMM"?(P=Ge.call(this._shortMonthsParse,q),P!==-1?P:null):(P=Ge.call(this._longMonthsParse,q),P!==-1?P:null):v==="MMM"?(P=Ge.call(this._shortMonthsParse,q),P!==-1?P:(P=Ge.call(this._longMonthsParse,q),P!==-1?P:null)):(P=Ge.call(this._longMonthsParse,q),P!==-1?P:(P=Ge.call(this._shortMonthsParse,q),P!==-1?P:null))}function Od(l,v,_){var T,P,j;if(this._monthsParseExact)return Eo.call(this,l,v,_);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),T=0;T<12;T++){if(P=V([2e3,T]),_&&!this._longMonthsParse[T]&&(this._longMonthsParse[T]=new RegExp("^"+this.months(P,"").replace(".","")+"$","i"),this._shortMonthsParse[T]=new RegExp("^"+this.monthsShort(P,"").replace(".","")+"$","i")),!_&&!this._monthsParse[T]&&(j="^"+this.months(P,"")+"|^"+this.monthsShort(P,""),this._monthsParse[T]=new RegExp(j.replace(".",""),"i")),_&&v==="MMMM"&&this._longMonthsParse[T].test(l))return T;if(_&&v==="MMM"&&this._shortMonthsParse[T].test(l))return T;if(!_&&this._monthsParse[T].test(l))return T}}function pa(l,v){if(!l.isValid())return l;if(typeof v=="string"){if(/^\d+$/.test(v))v=Oe(v);else if(v=l.localeData().monthsParse(v),!$(v))return l}var _=v,T=l.date();return T=T<29?T:Math.min(T,ns(l.year(),_)),l._isUTC?l._d.setUTCMonth(_,T):l._d.setMonth(_,T),l}function Ar(l){return l!=null?(pa(this,l),n.updateOffset(this,!0),this):un(this,"Month")}function $d(){return ns(this.year(),this.month())}function hr(l){return this._monthsParseExact?(y(this,"_monthsRegex")||ar.call(this),l?this._monthsShortStrictRegex:this._monthsShortRegex):(y(this,"_monthsShortRegex")||(this._monthsShortRegex=as),this._monthsShortStrictRegex&&l?this._monthsShortStrictRegex:this._monthsShortRegex)}function Pd(l){return this._monthsParseExact?(y(this,"_monthsRegex")||ar.call(this),l?this._monthsStrictRegex:this._monthsRegex):(y(this,"_monthsRegex")||(this._monthsRegex=Dd),this._monthsStrictRegex&&l?this._monthsStrictRegex:this._monthsRegex)}function ar(){function l(me,Pe){return Pe.length-me.length}var v=[],_=[],T=[],P,j,q,le;for(P=0;P<12;P++)j=V([2e3,P]),q=Hr(this.monthsShort(j,"")),le=Hr(this.months(j,"")),v.push(q),_.push(le),T.push(le),T.push(q);v.sort(l),_.sort(l),T.sort(l),this._monthsRegex=new RegExp("^("+T.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+v.join("|")+")","i")}function Wh(l,v,_,T,P,j,q){var le;return l<100&&l>=0?(le=new Date(l+400,v,_,T,P,j,q),isFinite(le.getFullYear())&&le.setFullYear(l)):le=new Date(l,v,_,T,P,j,q),le}function Un(l){var v,_;return l<100&&l>=0?(_=Array.prototype.slice.call(arguments),_[0]=l+400,v=new Date(Date.UTC.apply(null,_)),isFinite(v.getUTCFullYear())&&v.setUTCFullYear(l)):v=new Date(Date.UTC.apply(null,arguments)),v}function Ka(l,v,_){var T=7+v-_,P=(7+Un(l,0,T).getUTCDay()-v)%7;return-P+T-1}function lu(l,v,_,T,P){var j=(7+_-T)%7,q=Ka(l,T,P),le=1+7*(v-1)+j+q,me,Pe;return le<=0?(me=l-1,Pe=Dn(me)+le):le>Dn(l)?(me=l+1,Pe=le-Dn(l)):(me=l,Pe=le),{year:me,dayOfYear:Pe}}function Qi(l,v,_){var T=Ka(l.year(),v,_),P=Math.floor((l.dayOfYear()-T-1)/7)+1,j,q;return P<1?(q=l.year()-1,j=P+Wr(q,v,_)):P>Wr(l.year(),v,_)?(j=P-Wr(l.year(),v,_),q=l.year()+1):(q=l.year(),j=P),{week:j,year:q}}function Wr(l,v,_){var T=Ka(l,v,_),P=Ka(l+1,v,_);return(Dn(l)-T+P)/7}ce("w",["ww",2],"wo","week"),ce("W",["WW",2],"Wo","isoWeek"),ue("w",Ve,lr),ue("ww",Ve,ct),ue("W",Ve,lr),ue("WW",Ve,ct),di(["w","ww","W","WW"],function(l,v,_,T){v[T.substr(0,1)]=Oe(l)});function Id(l){return Qi(l,this._week.dow,this._week.doy).week}var os={dow:0,doy:6};function Gh(){return this._week.dow}function uu(){return this._week.doy}function Md(l){var v=this.localeData().week(this);return l==null?v:this.add((l-v)*7,"d")}function Xa(l){var v=Qi(this,1,4).week;return l==null?v:this.add((l-v)*7,"d")}ce("d",0,"do","day"),ce("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),ce("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),ce("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),ce("e",0,0,"weekday"),ce("E",0,0,"isoWeekday"),ue("d",Ve),ue("e",Ve),ue("E",Ve),ue("dd",function(l,v){return v.weekdaysMinRegex(l)}),ue("ddd",function(l,v){return v.weekdaysShortRegex(l)}),ue("dddd",function(l,v){return v.weekdaysRegex(l)}),di(["dd","ddd","dddd"],function(l,v,_,T){var P=_._locale.weekdaysParse(l,T,_._strict);P!=null?v.d=P:G(_).invalidWeekday=l}),di(["d","e","E"],function(l,v,_,T){v[T]=Oe(l)});function hu(l,v){return typeof l!="string"?l:isNaN(l)?(l=v.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function zh(l,v){return typeof l=="string"?v.weekdaysParse(l)%7||7:isNaN(l)?null:l}function Wt(l,v){return l.slice(v,7).concat(l.slice(0,v))}var Ad="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),il="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Uh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rd=ci,Nd=ci,Ld=ci;function Fd(l,v){var _=d(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(v)?"format":"standalone"];return l===!0?Wt(_,this._week.dow):l?_[l.day()]:_}function Vh(l){return l===!0?Wt(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function jd(l){return l===!0?Wt(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function Yd(l,v,_){var T,P,j,q=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)j=V([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin(j,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort(j,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays(j,"").toLocaleLowerCase();return _?v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1?P:null):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null):(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null):v==="dddd"?(P=Ge.call(this._weekdaysParse,q),P!==-1||(P=Ge.call(this._shortWeekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):v==="ddd"?(P=Ge.call(this._shortWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._minWeekdaysParse,q),P!==-1?P:null)):(P=Ge.call(this._minWeekdaysParse,q),P!==-1||(P=Ge.call(this._weekdaysParse,q),P!==-1)?P:(P=Ge.call(this._shortWeekdaysParse,q),P!==-1?P:null))}function Bd(l,v,_){var T,P,j;if(this._weekdaysParseExact)return Yd.call(this,l,v,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(P=V([2e3,1]).day(T),_&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(P,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(P,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(P,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||(j="^"+this.weekdays(P,"")+"|^"+this.weekdaysShort(P,"")+"|^"+this.weekdaysMin(P,""),this._weekdaysParse[T]=new RegExp(j.replace(".",""),"i")),_&&v==="dddd"&&this._fullWeekdaysParse[T].test(l))return T;if(_&&v==="ddd"&&this._shortWeekdaysParse[T].test(l))return T;if(_&&v==="dd"&&this._minWeekdaysParse[T].test(l))return T;if(!_&&this._weekdaysParse[T].test(l))return T}}function ma(l){if(!this.isValid())return l!=null?this:NaN;var v=un(this,"Day");return l!=null?(l=hu(l,this.localeData()),this.add(l-v,"d")):v}function Hd(l){if(!this.isValid())return l!=null?this:NaN;var v=(this.day()+7-this.localeData()._week.dow)%7;return l==null?v:this.add(l-v,"d")}function qh(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var v=zh(l,this.localeData());return this.day(this.day()%7?v:v-7)}else return this.day()||7}function cu(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,"_weekdaysRegex")||(this._weekdaysRegex=Rd),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wd(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nd),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function du(l){return this._weekdaysParseExact?(y(this,"_weekdaysRegex")||ss.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ld),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ss(){function l(It,Vr){return Vr.length-It.length}var v=[],_=[],T=[],P=[],j,q,le,me,Pe;for(j=0;j<7;j++)q=V([2e3,1]).day(j),le=Hr(this.weekdaysMin(q,"")),me=Hr(this.weekdaysShort(q,"")),Pe=Hr(this.weekdays(q,"")),v.push(le),_.push(me),T.push(Pe),P.push(le),P.push(me),P.push(Pe);v.sort(l),_.sort(l),T.sort(l),P.sort(l),this._weekdaysRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+v.join("|")+")","i")}function ls(){return this.hours()%12||12}function Gd(){return this.hours()||24}ce("H",["HH",2],0,"hour"),ce("h",["hh",2],0,ls),ce("k",["kk",2],0,Gd),ce("hmm",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)}),ce("hmmss",0,0,function(){return""+ls.apply(this)+ht(this.minutes(),2)+ht(this.seconds(),2)}),ce("Hmm",0,0,function(){return""+this.hours()+ht(this.minutes(),2)}),ce("Hmmss",0,0,function(){return""+this.hours()+ht(this.minutes(),2)+ht(this.seconds(),2)});function ga(l,v){ce(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),v)})}ga("a",!0),ga("A",!1);function fi(l,v){return v._meridiemParse}ue("a",fi),ue("A",fi),ue("H",Ve,va),ue("h",Ve,lr),ue("k",Ve,lr),ue("HH",Ve,ct),ue("hh",Ve,ct),ue("kk",Ve,ct),ue("hmm",rs),ue("hmmss",Er),ue("Hmm",rs),ue("Hmmss",Er),Ue(["H","HH"],ut),Ue(["k","kk"],function(l,v,_){var T=Oe(l);v[ut]=T===24?0:T}),Ue(["a","A"],function(l,v,_){_._isPm=_._locale.isPM(l),_._meridiem=l}),Ue(["h","hh"],function(l,v,_){v[ut]=Oe(l),G(_).bigHour=!0}),Ue("hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T)),G(_).bigHour=!0}),Ue("hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P)),G(_).bigHour=!0}),Ue("Hmm",function(l,v,_){var T=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T))}),Ue("Hmmss",function(l,v,_){var T=l.length-4,P=l.length-2;v[ut]=Oe(l.substr(0,T)),v[pr]=Oe(l.substr(T,2)),v[Ir]=Oe(l.substr(P))});function Kh(l){return(l+"").toLowerCase().charAt(0)==="p"}var zd=/[ap]\.?m?\.?/i,Ud=Mr("Hours",!0);function Vd(l,v,_){return l>11?_?"pm":"PM":_?"am":"AM"}var Fi={calendar:kt,longDateFormat:ge,invalidDate:je,ordinal:rt,dayOfMonthOrdinalParse:Ut,relativeTime:ii,months:Ed,monthsShort:ou,week:os,weekdays:Ad,weekdaysMin:Uh,weekdaysShort:il,meridiemParse:zd},nt={},Vn={},On;function nl(l,v){var _,T=Math.min(l.length,v.length);for(_=0;_<T;_+=1)if(l[_]!==v[_])return _;return T}function al(l){return l&&l.toLowerCase().replace("_","-")}function qd(l){for(var v=0,_,T,P,j;v<l.length;){for(j=al(l[v]).split("-"),_=j.length,T=al(l[v+1]),T=T?T.split("-"):null;_>0;){if(P=Ja(j.slice(0,_).join("-")),P)return P;if(T&&T.length>=_&&nl(j,T)>=_-1)break;_--}v++}return On}function Za(l){return!!(l&&l.match("^[^/\\\\]*$"))}function Ja(l){var v=null,_;if(nt[l]===void 0&&e&&e.exports&&Za(l))try{v=On._abbr,_=ru,_("./locale/"+l),Gr(v)}catch(T){nt[l]=null}return nt[l]}function Gr(l,v){var _;return l&&(w(v)?_=Rr(l):_=Qa(l,v),_?On=_:typeof console!="undefined"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),On._abbr}function Qa(l,v){if(v!==null){var _,T=Fi;if(v.abbr=l,nt[l]!=null)Fe("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."),T=nt[l]._config;else if(v.parentLocale!=null)if(nt[v.parentLocale]!=null)T=nt[v.parentLocale]._config;else if(_=Ja(v.parentLocale),_!=null)T=_._config;else return Vn[v.parentLocale]||(Vn[v.parentLocale]=[]),Vn[v.parentLocale].push({name:l,config:v}),null;return nt[l]=new Kt(gt(T,v)),Vn[l]&&Vn[l].forEach(function(P){Qa(P.name,P.config)}),Gr(l),nt[l]}else return delete nt[l],null}function fu(l,v){if(v!=null){var _,T,P=Fi;nt[l]!=null&&nt[l].parentLocale!=null?nt[l].set(gt(nt[l]._config,v)):(T=Ja(l),T!=null&&(P=T._config),v=gt(P,v),T==null&&(v.abbr=l),_=new Kt(v),_.parentLocale=nt[l],nt[l]=_),Gr(l)}else nt[l]!=null&&(nt[l].parentLocale!=null?(nt[l]=nt[l].parentLocale,l===Gr()&&Gr(l)):nt[l]!=null&&delete nt[l]);return nt[l]}function Rr(l){var v;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return On;if(!d(l)){if(v=Ja(l),v)return v;l=[l]}return qd(l)}function Xh(){return lt(nt)}function $n(l){var v,_=l._a;return _&&G(l).overflow===-2&&(v=_[ur]<0||_[ur]>11?ur:_[wr]<1||_[wr]>ns(_[Dt],_[ur])?wr:_[ut]<0||_[ut]>24||_[ut]===24&&(_[pr]!==0||_[Ir]!==0||_[bi]!==0)?ut:_[pr]<0||_[pr]>59?pr:_[Ir]<0||_[Ir]>59?Ir:_[bi]<0||_[bi]>999?bi:-1,G(l)._overflowDayOfYear&&(v<Dt||v>wr)&&(v=wr),G(l)._overflowWeeks&&v===-1&&(v=_i),G(l)._overflowWeekday&&v===-1&&(v=Td),G(l).overflow=v),l}var ol=/^\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)?)?$/,Kd=/^\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)?)?$/,ya=/Z|[+-]\d\d(?::?\d\d)?/,kr=[["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]],us=[["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/]],Xd=/^\/?Date\((-?\d+)/i,eo=/^(?:(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}))$/,Zd={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ba(l){var v,_,T=l._i,P=ol.exec(T)||Kd.exec(T),j,q,le,me,Pe=kr.length,It=us.length;if(P){for(G(l).iso=!0,v=0,_=Pe;v<_;v++)if(kr[v][1].exec(P[1])){q=kr[v][0],j=kr[v][2]!==!1;break}if(q==null){l._isValid=!1;return}if(P[3]){for(v=0,_=It;v<_;v++)if(us[v][1].exec(P[3])){le=(P[2]||" ")+us[v][0];break}if(le==null){l._isValid=!1;return}}if(!j&&le!=null){l._isValid=!1;return}if(P[4])if(ya.exec(P[4]))me="Z";else{l._isValid=!1;return}l._f=q+(le||"")+(me||""),to(l)}else l._isValid=!1}function Zh(l,v,_,T,P,j){var q=[ji(l),ou.indexOf(v),parseInt(_,10),parseInt(T,10),parseInt(P,10)];return j&&q.push(parseInt(j,10)),q}function ji(l){var v=parseInt(l,10);return v<=49?2e3+v:v<=999?1900+v:v}function Ke(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sl(l,v,_){if(l){var T=il.indexOf(l),P=new Date(v[0],v[1],v[2]).getDay();if(T!==P)return G(_).weekdayMismatch=!0,_._isValid=!1,!1}return!0}function Jh(l,v,_){if(l)return Zd[l];if(v)return 0;var T=parseInt(_,10),P=T%100,j=(T-P)/100;return j*60+P}function Do(l){var v=eo.exec(Ke(l._i)),_;if(v){if(_=Zh(v[4],v[3],v[2],v[5],v[6],v[7]),!sl(v[1],_,l))return;l._a=_,l._tzm=Jh(v[8],v[9],v[10]),l._d=Un.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),G(l).rfc2822=!0}else l._isValid=!1}function Qh(l){var v=Xd.exec(l._i);if(v!==null){l._d=new Date(+v[1]);return}if(ba(l),l._isValid===!1)delete l._isValid;else return;if(Do(l),l._isValid===!1)delete l._isValid;else return;l._strict?l._isValid=!1:n.createFromInputFallback(l)}n.createFromInputFallback=Ne("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(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))});function hn(l,v,_){return l!=null?l:v!=null?v:_}function ll(l){var v=new Date(n.now());return l._useUTC?[v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()]:[v.getFullYear(),v.getMonth(),v.getDate()]}function hs(l){var v,_,T=[],P,j,q;if(!l._d){for(P=ll(l),l._w&&l._a[wr]==null&&l._a[ur]==null&&ul(l),l._dayOfYear!=null&&(q=hn(l._a[Dt],P[Dt]),(l._dayOfYear>Dn(q)||l._dayOfYear===0)&&(G(l)._overflowDayOfYear=!0),_=Un(q,0,l._dayOfYear),l._a[ur]=_.getUTCMonth(),l._a[wr]=_.getUTCDate()),v=0;v<3&&l._a[v]==null;++v)l._a[v]=T[v]=P[v];for(;v<7;v++)l._a[v]=T[v]=l._a[v]==null?v===2?1:0:l._a[v];l._a[ut]===24&&l._a[pr]===0&&l._a[Ir]===0&&l._a[bi]===0&&(l._nextDay=!0,l._a[ut]=0),l._d=(l._useUTC?Un:Wh).apply(null,T),j=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[ut]=24),l._w&&typeof l._w.d!="undefined"&&l._w.d!==j&&(G(l).weekdayMismatch=!0)}}function ul(l){var v,_,T,P,j,q,le,me,Pe;v=l._w,v.GG!=null||v.W!=null||v.E!=null?(j=1,q=4,_=hn(v.GG,l._a[Dt],Qi(Xe(),1,4).year),T=hn(v.W,1),P=hn(v.E,1),(P<1||P>7)&&(me=!0)):(j=l._locale._week.dow,q=l._locale._week.doy,Pe=Qi(Xe(),j,q),_=hn(v.gg,l._a[Dt],Pe.year),T=hn(v.w,Pe.week),v.d!=null?(P=v.d,(P<0||P>6)&&(me=!0)):v.e!=null?(P=v.e+j,(v.e<0||v.e>6)&&(me=!0)):P=j),T<1||T>Wr(_,j,q)?G(l)._overflowWeeks=!0:me!=null?G(l)._overflowWeekday=!0:(le=lu(_,T,P,j,q),l._a[Dt]=le.year,l._dayOfYear=le.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function to(l){if(l._f===n.ISO_8601){ba(l);return}if(l._f===n.RFC_2822){Do(l);return}l._a=[],G(l).empty=!0;var v=""+l._i,_,T,P,j,q,le=v.length,me=0,Pe,It;for(P=ke(l._f,l._locale).match(Ct)||[],It=P.length,_=0;_<It;_++)j=P[_],T=(v.match(Sd(j,l))||[])[0],T&&(q=v.substr(0,v.indexOf(T)),q.length>0&&G(l).unusedInput.push(q),v=v.slice(v.indexOf(T)+T.length),me+=T.length),$t[j]?(T?G(l).empty=!1:G(l).unusedTokens.push(j),xd(j,T,l)):l._strict&&!T&&G(l).unusedTokens.push(j);G(l).charsLeftOver=le-me,v.length>0&&G(l).unusedInput.push(v),l._a[ut]<=12&&G(l).bigHour===!0&&l._a[ut]>0&&(G(l).bigHour=void 0),G(l).parsedDateParts=l._a.slice(0),G(l).meridiem=l._meridiem,l._a[ut]=vu(l._locale,l._a[ut],l._meridiem),Pe=G(l).era,Pe!==null&&(l._a[Dt]=l._locale.erasConvertYear(Pe,l._a[Dt])),hs(l),$n(l)}function vu(l,v,_){var T;return _==null?v:l.meridiemHour!=null?l.meridiemHour(v,_):(l.isPM!=null&&(T=l.isPM(_),T&&v<12&&(v+=12),!T&&v===12&&(v=0)),v)}function pu(l){var v,_,T,P,j,q,le=!1,me=l._f.length;if(me===0){G(l).invalidFormat=!0,l._d=new Date(NaN);return}for(P=0;P<me;P++)j=0,q=!1,v=ze({},l),l._useUTC!=null&&(v._useUTC=l._useUTC),v._f=l._f[P],to(v),ve(v)&&(q=!0),j+=G(v).charsLeftOver,j+=G(v).unusedTokens.length*10,G(v).score=j,le?j<T&&(T=j,_=v):(T==null||j<T||q)&&(T=j,_=v,q&&(le=!0));Y(l,_||v)}function ec(l){if(!l._d){var v=Ft(l._i),_=v.day===void 0?v.date:v.day;l._a=R([v.year,v.month,_,v.hour,v.minute,v.second,v.millisecond],function(T){return T&&parseInt(T,10)}),hs(l)}}function tc(l){var v=new tt($n(Yi(l)));return v._nextDay&&(v.add(1,"d"),v._nextDay=void 0),v}function Yi(l){var v=l._i,_=l._f;return l._locale=l._locale||Rr(l._l),v===null||_===void 0&&v===""?ye({nullInput:!0}):(typeof v=="string"&&(l._i=v=l._locale.preparse(v)),_e(v)?new tt($n(v)):(A(v)?l._d=v:d(_)?pu(l):_?to(l):hl(l),ve(l)||(l._d=null),l))}function hl(l){var v=l._i;w(v)?l._d=new Date(n.now()):A(v)?l._d=new Date(v.valueOf()):typeof v=="string"?Qh(l):d(v)?(l._a=R(v.slice(0),function(_){return parseInt(_,10)}),hs(l)):p(v)?ec(l):$(v)?l._d=new Date(v):n.createFromInputFallback(l)}function mu(l,v,_,T,P){var j={};return(v===!0||v===!1)&&(T=v,v=void 0),(_===!0||_===!1)&&(T=_,_=void 0),(p(l)&&b(l)||d(l)&&l.length===0)&&(l=void 0),j._isAMomentObject=!0,j._useUTC=j._isUTC=P,j._l=_,j._i=l,j._f=v,j._strict=T,tc(j)}function Xe(l,v,_,T){return mu(l,v,_,T,!1)}var Jd=Ne("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=Xe.apply(null,arguments);return this.isValid()&&l.isValid()?l<this?this:l:ye()}),Qd=Ne("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=Xe.apply(null,arguments);return this.isValid()&&l.isValid()?l>this?this:l:ye()});function gu(l,v){var _,T;if(v.length===1&&d(v[0])&&(v=v[0]),!v.length)return Xe();for(_=v[0],T=1;T<v.length;++T)(!v[T].isValid()||v[T][l](_))&&(_=v[T]);return _}function cn(){var l=[].slice.call(arguments,0);return gu("isBefore",l)}function ef(){var l=[].slice.call(arguments,0);return gu("isAfter",l)}var _a=function(){return Date.now?Date.now():+new Date},Pn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tf(l){var v,_=!1,T,P=Pn.length;for(v in l)if(y(l,v)&&!(Ge.call(Pn,v)!==-1&&(l[v]==null||!isNaN(l[v]))))return!1;for(T=0;T<P;++T)if(l[Pn[T]]){if(_)return!1;parseFloat(l[Pn[T]])!==Oe(l[Pn[T]])&&(_=!0)}return!0}function Ze(){return this._isValid}function rf(){return mr(NaN)}function wa(l){var v=Ft(l),_=v.year||0,T=v.quarter||0,P=v.month||0,j=v.week||v.isoWeek||0,q=v.day||0,le=v.hour||0,me=v.minute||0,Pe=v.second||0,It=v.millisecond||0;this._isValid=tf(v),this._milliseconds=+It+Pe*1e3+me*6e4+le*1e3*60*60,this._days=+q+j*7,this._months=+P+T*3+_*12,this._data={},this._locale=Rr(),this._bubble()}function ka(l){return l instanceof wa}function cs(l){return l<0?Math.round(-1*l)*-1:Math.round(l)}function yu(l,v,_){var T=Math.min(l.length,v.length),P=Math.abs(l.length-v.length),j=0,q;for(q=0;q<T;q++)Oe(l[q])!==Oe(v[q])&&j++;return j+P}function bu(l,v){ce(l,0,0,function(){var _=this.utcOffset(),T="+";return _<0&&(_=-_,T="-"),T+ht(~~(_/60),2)+v+ht(~~_%60,2)})}bu("Z",":"),bu("ZZ",""),ue("Z",fa),ue("ZZ",fa),Ue(["Z","ZZ"],function(l,v,_){_._useUTC=!0,_._tzm=ro(fa,l)});var rc=/([\+\-]|\d\d)/gi;function ro(l,v){var _=(v||"").match(l),T,P,j;return _===null?null:(T=_[_.length-1]||[],P=(T+"").match(rc)||["-",0,0],j=+(P[1]*60)+Oe(P[2]),j===0?0:P[0]==="+"?j:-j)}function Oo(l,v){var _,T;return v._isUTC?(_=v.clone(),T=(_e(l)||A(l)?l.valueOf():Xe(l).valueOf())-_.valueOf(),_._d.setTime(_._d.valueOf()+T),n.updateOffset(_,!1),_):Xe(l).local()}function ds(l){return-Math.round(l._d.getTimezoneOffset())}n.updateOffset=function(){};function fs(l,v,_){var T=this._offset||0,P;if(!this.isValid())return l!=null?this:NaN;if(l!=null){if(typeof l=="string"){if(l=ro(fa,l),l===null)return this}else Math.abs(l)<16&&!_&&(l=l*60);return!this._isUTC&&v&&(P=ds(this)),this._offset=l,this._isUTC=!0,P!=null&&this.add(P,"m"),T!==l&&(!v||this._changeInProgress?ki(this,mr(l-T,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?T:ds(this)}function ic(l,v){return l!=null?(typeof l!="string"&&(l=-l),this.utcOffset(l,v),this):-this.utcOffset()}function cl(l){return this.utcOffset(0,l)}function nc(l){return this._isUTC&&(this.utcOffset(0,l),this._isUTC=!1,l&&this.subtract(ds(this),"m")),this}function dl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var l=ro(nu,this._i);l!=null?this.utcOffset(l):this.utcOffset(0,!0)}return this}function nf(l){return this.isValid()?(l=l?Xe(l).utcOffset():0,(this.utcOffset()-l)%60===0):!1}function dn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function af(){if(!w(this._isDSTShifted))return this._isDSTShifted;var l={},v;return ze(l,this),l=Yi(l),l._a?(v=l._isUTC?V(l._a):Xe(l._a),this._isDSTShifted=this.isValid()&&yu(l._a,v.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function of(){return this.isValid()?!this._isUTC:!1}function sf(){return this.isValid()?this._isUTC:!1}function io(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lf=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mr(l,v){var _=l,T=null,P,j,q;return ka(l)?_={ms:l._milliseconds,d:l._days,M:l._months}:$(l)||!isNaN(+l)?(_={},v?_[v]=+l:_.milliseconds=+l):(T=fl.exec(l))?(P=T[1]==="-"?-1:1,_={y:0,d:Oe(T[wr])*P,h:Oe(T[ut])*P,m:Oe(T[pr])*P,s:Oe(T[Ir])*P,ms:Oe(cs(T[bi]*1e3))*P}):(T=lf.exec(l))?(P=T[1]==="-"?-1:1,_={y:zr(T[2],P),M:zr(T[3],P),w:zr(T[4],P),d:zr(T[5],P),h:zr(T[6],P),m:zr(T[7],P),s:zr(T[8],P)}):_==null?_={}:typeof _=="object"&&("from"in _||"to"in _)&&(q=Bi(Xe(_.from),Xe(_.to)),_={},_.ms=q.milliseconds,_.M=q.months),j=new wa(_),ka(l)&&y(l,"_locale")&&(j._locale=l._locale),ka(l)&&y(l,"_isValid")&&(j._isValid=l._isValid),j}mr.fn=wa.prototype,mr.invalid=rf;function zr(l,v){var _=l&&parseFloat(l.replace(",","."));return(isNaN(_)?0:_)*v}function _u(l,v){var _={};return _.months=v.month()-l.month()+(v.year()-l.year())*12,l.clone().add(_.months,"M").isAfter(v)&&--_.months,_.milliseconds=+v-+l.clone().add(_.months,"M"),_}function Bi(l,v){var _;return l.isValid()&&v.isValid()?(v=Oo(v,l),l.isBefore(v)?_=_u(l,v):(_=_u(v,l),_.milliseconds=-_.milliseconds,_.months=-_.months),_):{milliseconds:0,months:0}}function wu(l,v){return function(_,T){var P,j;return T!==null&&!isNaN(+T)&&(Fe(v,"moment()."+v+"(period, number) is deprecated. Please use moment()."+v+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),j=_,_=T,T=j),P=mr(_,T),ki(this,P,l),this}}function ki(l,v,_,T){var P=v._milliseconds,j=cs(v._days),q=cs(v._months);l.isValid()&&(T=T==null?!0:T,q&&pa(l,un(l,"Month")+q*_),j&&au(l,"Date",un(l,"Date")+j*_),P&&l._d.setTime(l._d.valueOf()+P*_),T&&n.updateOffset(l,j||q))}var vl=wu(1,"add"),uf=wu(-1,"subtract");function ku(l){return typeof l=="string"||l instanceof String}function ac(l){return _e(l)||A(l)||ku(l)||$(l)||vs(l)||Sa(l)||l===null||l===void 0}function Sa(l){var v=p(l)&&!b(l),_=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],P,j,q=T.length;for(P=0;P<q;P+=1)j=T[P],_=_||y(l,j);return v&&_}function vs(l){var v=d(l),_=!1;return v&&(_=l.filter(function(T){return!$(T)&&ku(l)}).length===0),v&&_}function Su(l){var v=p(l)&&!b(l),_=!1,T=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],P,j;for(P=0;P<T.length;P+=1)j=T[P],_=_||y(l,j);return v&&_}function oc(l,v){var _=l.diff(v,"days",!0);return _<-6?"sameElse":_<-1?"lastWeek":_<0?"lastDay":_<1?"sameDay":_<2?"nextDay":_<7?"nextWeek":"sameElse"}function xu(l,v){arguments.length===1&&(arguments[0]?ac(arguments[0])?(l=arguments[0],v=void 0):Su(arguments[0])&&(v=arguments[0],l=void 0):(l=void 0,v=void 0));var _=l||Xe(),T=Oo(_,this).startOf("day"),P=n.calendarFormat(this,T)||"sameElse",j=v&&(Ye(v[P])?v[P].call(this,_):v[P]);return this.format(j||this.localeData().calendar(P,this,Xe(_)))}function hf(){return new tt(this)}function sc(l,v){var _=_e(l)?l:Xe(l);return this.isValid()&&_.isValid()?(v=nr(v)||"millisecond",v==="millisecond"?this.valueOf()>_.valueOf():_.valueOf()<this.clone().startOf(v).valueOf()):!1}function ps(l,v){var _=_e(l)?l:Xe(l);return this.isValid()&&_.isValid()?(v=nr(v)||"millisecond",v==="millisecond"?this.valueOf()<_.valueOf():this.clone().endOf(v).valueOf()<_.valueOf()):!1}function Tu(l,v,_,T){var P=_e(l)?l:Xe(l),j=_e(v)?v:Xe(v);return this.isValid()&&P.isValid()&&j.isValid()?(T=T||"()",(T[0]==="("?this.isAfter(P,_):!this.isBefore(P,_))&&(T[1]===")"?this.isBefore(j,_):!this.isAfter(j,_))):!1}function cf(l,v){var _=_e(l)?l:Xe(l),T;return this.isValid()&&_.isValid()?(v=nr(v)||"millisecond",v==="millisecond"?this.valueOf()===_.valueOf():(T=_.valueOf(),this.clone().startOf(v).valueOf()<=T&&T<=this.clone().endOf(v).valueOf())):!1}function df(l,v){return this.isSame(l,v)||this.isAfter(l,v)}function ms(l,v){return this.isSame(l,v)||this.isBefore(l,v)}function ff(l,v,_){var T,P,j;if(!this.isValid())return NaN;if(T=Oo(l,this),!T.isValid())return NaN;switch(P=(T.utcOffset()-this.utcOffset())*6e4,v=nr(v),v){case"year":j=vi(this,T)/12;break;case"month":j=vi(this,T);break;case"quarter":j=vi(this,T)/3;break;case"second":j=(this-T)/1e3;break;case"minute":j=(this-T)/6e4;break;case"hour":j=(this-T)/36e5;break;case"day":j=(this-T-P)/864e5;break;case"week":j=(this-T-P)/6048e5;break;default:j=this-T}return _?j:Et(j)}function vi(l,v){if(l.date()<v.date())return-vi(v,l);var _=(v.year()-l.year())*12+(v.month()-l.month()),T=l.clone().add(_,"months"),P,j;return v-T<0?(P=l.clone().add(_-1,"months"),j=(v-T)/(T-P)):(P=l.clone().add(_+1,"months"),j=(v-T)/(P-T)),-(_+j)||0}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function vf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pf(l){if(!this.isValid())return null;var v=l!==!0,_=v?this.clone().utc():this;return _.year()<0||_.year()>9999?ln(_,v?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ye(Date.prototype.toISOString)?v?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(_,"Z")):ln(_,v?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Cu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",v="",_,T,P,j;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",v="Z"),_="["+l+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",P="-MM-DD[T]HH:mm:ss.SSS",j=v+'[")]',this.format(_+T+P+j)}function mf(l){l||(l=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var v=ln(this,l);return this.localeData().postformat(v)}function gs(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({to:this,from:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function gf(l){return this.from(Xe(),l)}function yf(l,v){return this.isValid()&&(_e(l)&&l.isValid()||Xe(l).isValid())?mr({from:this,to:l}).locale(this.locale()).humanize(!v):this.localeData().invalidDate()}function Eu(l){return this.to(Xe(),l)}function $o(l){var v;return l===void 0?this._locale._abbr:(v=Rr(l),v!=null&&(this._locale=v),this)}var Du=Ne("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function Ou(){return this._locale}var qn=1e3,fn=60*qn,xa=60*fn,ys=(365*400+97)*24*xa;function Hi(l,v){return(l%v+v)%v}function bs(l,v,_){return l<100&&l>=0?new Date(l+400,v,_)-ys:new Date(l,v,_).valueOf()}function Ta(l,v,_){return l<100&&l>=0?Date.UTC(l+400,v,_)-ys:Date.UTC(l,v,_)}function pl(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year(),0,1);break;case"quarter":v=_(this.year(),this.month()-this.month()%3,1);break;case"month":v=_(this.year(),this.month(),1);break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":v=_(this.year(),this.month(),this.date());break;case"hour":v=this._d.valueOf(),v-=Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa);break;case"minute":v=this._d.valueOf(),v-=Hi(v,fn);break;case"second":v=this._d.valueOf(),v-=Hi(v,qn);break}return this._d.setTime(v),n.updateOffset(this,!0),this}function _s(l){var v,_;if(l=nr(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ta:bs,l){case"year":v=_(this.year()+1,0,1)-1;break;case"quarter":v=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":v=_(this.year(),this.month()+1,1)-1;break;case"week":v=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":v=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":v=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":v=this._d.valueOf(),v+=xa-Hi(v+(this._isUTC?0:this.utcOffset()*fn),xa)-1;break;case"minute":v=this._d.valueOf(),v+=fn-Hi(v,fn)-1;break;case"second":v=this._d.valueOf(),v+=qn-Hi(v,qn)-1;break}return this._d.setTime(v),n.updateOffset(this,!0),this}function $u(){return this._d.valueOf()-(this._offset||0)*6e4}function ml(){return Math.floor(this.valueOf()/1e3)}function Po(){return new Date(this.valueOf())}function bf(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function Pu(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function lc(){return this.isValid()?this.toISOString():null}function uc(){return ve(this)}function _f(){return Y({},G(this))}function ws(){return G(this).overflow}function wf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ce("N",0,0,"eraAbbr"),ce("NN",0,0,"eraAbbr"),ce("NNN",0,0,"eraAbbr"),ce("NNNN",0,0,"eraName"),ce("NNNNN",0,0,"eraNarrow"),ce("y",["y",1],"yo","eraYear"),ce("y",["yy",2],0,"eraYear"),ce("y",["yyy",3],0,"eraYear"),ce("y",["yyyy",4],0,"eraYear"),ue("N",Io),ue("NN",Io),ue("NNN",Io),ue("NNNN",pc),ue("NNNNN",mc),Ue(["N","NN","NNN","NNNN","NNNNN"],function(l,v,_,T){var P=_._locale.erasParse(l,T,_._strict);P?G(_).era=P:G(_).invalidEra=l}),ue("y",Li),ue("yy",Li),ue("yyy",Li),ue("yyyy",Li),ue("yo",gc),Ue(["y","yy","yyy","yyyy"],Dt),Ue(["yo"],function(l,v,_,T){var P;_._locale._eraYearOrdinalRegex&&(P=l.match(_._locale._eraYearOrdinalRegex)),_._locale.eraYearOrdinalParse?v[Dt]=_._locale.eraYearOrdinalParse(l,P):v[Dt]=parseInt(l,10)});function hc(l,v){var _,T,P,j=this._eras||Rr("en")._eras;for(_=0,T=j.length;_<T;++_){switch(typeof j[_].since){case"string":P=n(j[_].since).startOf("day"),j[_].since=P.valueOf();break}switch(typeof j[_].until){case"undefined":j[_].until=1/0;break;case"string":P=n(j[_].until).startOf("day").valueOf(),j[_].until=P.valueOf();break}}return j}function Iu(l,v,_){var T,P,j=this.eras(),q,le,me;for(l=l.toUpperCase(),T=0,P=j.length;T<P;++T)if(q=j[T].name.toUpperCase(),le=j[T].abbr.toUpperCase(),me=j[T].narrow.toUpperCase(),_)switch(v){case"N":case"NN":case"NNN":if(le===l)return j[T];break;case"NNNN":if(q===l)return j[T];break;case"NNNNN":if(me===l)return j[T];break}else if([q,le,me].indexOf(l)>=0)return j[T]}function kf(l,v){var _=l.since<=l.until?1:-1;return v===void 0?n(l.since).year():n(l.since).year()+(v-l.offset)*_}function ks(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;l<v;++l)if(_=this.clone().startOf("day").valueOf(),T[l].since<=_&&_<=T[l].until||T[l].until<=_&&_<=T[l].since)return T[l].name;return""}function cc(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;l<v;++l)if(_=this.clone().startOf("day").valueOf(),T[l].since<=_&&_<=T[l].until||T[l].until<=_&&_<=T[l].since)return T[l].narrow;return""}function dc(){var l,v,_,T=this.localeData().eras();for(l=0,v=T.length;l<v;++l)if(_=this.clone().startOf("day").valueOf(),T[l].since<=_&&_<=T[l].until||T[l].until<=_&&_<=T[l].since)return T[l].abbr;return""}function fc(){var l,v,_,T,P=this.localeData().eras();for(l=0,v=P.length;l<v;++l)if(_=P[l].since<=P[l].until?1:-1,T=this.clone().startOf("day").valueOf(),P[l].since<=T&&T<=P[l].until||P[l].until<=T&&T<=P[l].since)return(this.year()-n(P[l].since).year())*_+P[l].offset;return this.year()}function Je(l){return y(this,"_erasNameRegex")||Ss.call(this),l?this._erasNameRegex:this._erasRegex}function jt(l){return y(this,"_erasAbbrRegex")||Ss.call(this),l?this._erasAbbrRegex:this._erasRegex}function vc(l){return y(this,"_erasNarrowRegex")||Ss.call(this),l?this._erasNarrowRegex:this._erasRegex}function Io(l,v){return v.erasAbbrRegex(l)}function pc(l,v){return v.erasNameRegex(l)}function mc(l,v){return v.erasNarrowRegex(l)}function gc(l,v){return v._eraYearOrdinalRegex||Li}function Ss(){var l=[],v=[],_=[],T=[],P,j,q,le,me,Pe=this.eras();for(P=0,j=Pe.length;P<j;++P)q=Hr(Pe[P].name),le=Hr(Pe[P].abbr),me=Hr(Pe[P].narrow),v.push(q),l.push(le),_.push(me),T.push(q),T.push(le),T.push(me);this._erasRegex=new RegExp("^("+T.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+v.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+_.join("|")+")","i")}ce(0,["gg",2],0,function(){return this.weekYear()%100}),ce(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ca(l,v){ce(0,[l,l.length],0,v)}Ca("gggg","weekYear"),Ca("ggggg","weekYear"),Ca("GGGG","isoWeekYear"),Ca("GGGGG","isoWeekYear"),ue("G",yi),ue("g",yi),ue("GG",Ve,ct),ue("gg",Ve,ct),ue("GGGG",Vt,Pr),ue("gggg",Vt,Pr),ue("GGGGG",hi,Pt),ue("ggggg",hi,Pt),di(["gggg","ggggg","GGGG","GGGGG"],function(l,v,_,T){v[T.substr(0,2)]=Oe(l)}),di(["gg","GG"],function(l,v,_,T){v[T]=n.parseTwoDigitYear(l)});function xs(l){return Kn.call(this,l,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Sf(l){return Kn.call(this,l,this.isoWeek(),this.isoWeekday(),1,4)}function no(){return Wr(this.year(),1,4)}function xf(){return Wr(this.isoWeekYear(),1,4)}function Mu(){var l=this.localeData()._week;return Wr(this.year(),l.dow,l.doy)}function Tf(){var l=this.localeData()._week;return Wr(this.weekYear(),l.dow,l.doy)}function Kn(l,v,_,T,P){var j;return l==null?Qi(this,T,P).year:(j=Wr(l,T,P),v>j&&(v=j),gl.call(this,l,v,_,T,P))}function gl(l,v,_,T,P){var j=lu(l,v,_,T,P),q=Un(j.year,0,j.dayOfYear);return this.year(q.getUTCFullYear()),this.month(q.getUTCMonth()),this.date(q.getUTCDate()),this}ce("Q",0,"Qo","quarter"),ue("Q",ts),Ue("Q",function(l,v){v[ur]=(Oe(l)-1)*3});function Mo(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}ce("D",["DD",2],"Do","date"),ue("D",Ve,lr),ue("DD",Ve,ct),ue("Do",function(l,v){return l?v._dayOfMonthOrdinalParse||v._ordinalParse:v._dayOfMonthOrdinalParseLenient}),Ue(["D","DD"],wr),Ue("Do",function(l,v){v[wr]=Oe(l.match(Ve)[0])});var yl=Mr("Date",!0);ce("DDD",["DDDD",3],"DDDo","dayOfYear"),ue("DDD",da),ue("DDDD",Ht),Ue(["DDD","DDDD"],function(l,v,_){_._dayOfYear=Oe(l)});function Cf(l){var v=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?v:this.add(l-v,"d")}ce("m",["mm",2],0,"minute"),ue("m",Ve,va),ue("mm",Ve,ct),Ue(["m","mm"],pr);var bl=Mr("Minutes",!1);ce("s",["ss",2],0,"second"),ue("s",Ve,va),ue("ss",Ve,ct),Ue(["s","ss"],Ir);var Ef=Mr("Seconds",!1);ce("S",0,0,function(){return~~(this.millisecond()/100)}),ce(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ce(0,["SSS",3],0,"millisecond"),ce(0,["SSSS",4],0,function(){return this.millisecond()*10}),ce(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ce(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ce(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ce(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ce(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ue("S",da,ts),ue("SS",da,ct),ue("SSS",da,Ht);var ni,Au;for(ni="SSSS";ni.length<=9;ni+="S")ue(ni,Li);function Ru(l,v){v[bi]=Oe(("0."+l)*1e3)}for(ni="S";ni.length<=9;ni+="S")Ue(ni,Ru);Au=Mr("Milliseconds",!1),ce("z",0,0,"zoneAbbr"),ce("zz",0,0,"zoneName");function Df(){return this._isUTC?"UTC":""}function Ts(){return this._isUTC?"Coordinated Universal Time":""}var te=tt.prototype;te.add=vl,te.calendar=xu,te.clone=hf,te.diff=ff,te.endOf=_s,te.format=mf,te.from=gs,te.fromNow=gf,te.to=yf,te.toNow=Eu,te.get=wi,te.invalidAt=ws,te.isAfter=sc,te.isBefore=ps,te.isBetween=Tu,te.isSame=cf,te.isSameOrAfter=df,te.isSameOrBefore=ms,te.isValid=uc,te.lang=Du,te.locale=$o,te.localeData=Ou,te.max=Qd,te.min=Jd,te.parsingFlags=_f,te.set=Bh,te.startOf=pl,te.subtract=uf,te.toArray=bf,te.toObject=Pu,te.toDate=Po,te.toISOString=pf,te.inspect=Cu,typeof Symbol!="undefined"&&Symbol.for!=null&&(te[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),te.toJSON=lc,te.toString=vf,te.unix=ml,te.valueOf=$u,te.creationData=wf,te.eraName=ks,te.eraNarrow=cc,te.eraAbbr=dc,te.eraYear=fc,te.year=qa,te.isLeapYear=tl,te.weekYear=xs,te.isoWeekYear=Sf,te.quarter=te.quarters=Mo,te.month=Ar,te.daysInMonth=$d,te.week=te.weeks=Md,te.isoWeek=te.isoWeeks=Xa,te.weeksInYear=Mu,te.weeksInWeekYear=Tf,te.isoWeeksInYear=no,te.isoWeeksInISOWeekYear=xf,te.date=yl,te.day=te.days=ma,te.weekday=Hd,te.isoWeekday=qh,te.dayOfYear=Cf,te.hour=te.hours=Ud,te.minute=te.minutes=bl,te.second=te.seconds=Ef,te.millisecond=te.milliseconds=Au,te.utcOffset=fs,te.utc=cl,te.local=nc,te.parseZone=dl,te.hasAlignedHourOffset=nf,te.isDST=dn,te.isLocal=of,te.isUtcOffset=sf,te.isUtc=io,te.isUTC=io,te.zoneAbbr=Df,te.zoneName=Ts,te.dates=Ne("dates accessor is deprecated. Use date instead.",yl),te.months=Ne("months accessor is deprecated. Use month instead",Ar),te.years=Ne("years accessor is deprecated. Use year instead",qa),te.zone=Ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ic),te.isDSTShifted=Ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",af);function ao(l){return Xe(l*1e3)}function Of(){return Xe.apply(null,arguments).parseZone()}function Nu(l){return l}var Le=Kt.prototype;Le.calendar=$r,Le.longDateFormat=be,Le.invalidDate=Qe,Le.ordinal=Bt,Le.preparse=Nu,Le.postformat=Nu,Le.relativeTime=zn,Le.pastFuture=sr,Le.set=ir,Le.eras=hc,Le.erasParse=Iu,Le.erasConvertYear=kf,Le.erasAbbrRegex=jt,Le.erasNameRegex=Je,Le.erasNarrowRegex=vc,Le.months=rl,Le.monthsShort=Hh,Le.monthsParse=Od,Le.monthsRegex=Pd,Le.monthsShortRegex=hr,Le.week=Id,Le.firstDayOfYear=uu,Le.firstDayOfWeek=Gh,Le.weekdays=Fd,Le.weekdaysMin=jd,Le.weekdaysShort=Vh,Le.weekdaysParse=Bd,Le.weekdaysRegex=cu,Le.weekdaysShortRegex=Wd,Le.weekdaysMinRegex=du,Le.isPM=Kh,Le.meridiem=Vd;function Ea(l,v,_,T){var P=Rr(),j=V().set(T,v);return P[_](j,l)}function _l(l,v,_){if($(l)&&(v=l,l=void 0),l=l||"",v!=null)return Ea(l,v,_,"month");var T,P=[];for(T=0;T<12;T++)P[T]=Ea(l,T,_,"month");return P}function oo(l,v,_,T){typeof l=="boolean"?($(v)&&(_=v,v=void 0),v=v||""):(v=l,_=v,l=!1,$(v)&&(_=v,v=void 0),v=v||"");var P=Rr(),j=l?P._week.dow:0,q,le=[];if(_!=null)return Ea(v,(_+j)%7,T,"day");for(q=0;q<7;q++)le[q]=Ea(v,(q+j)%7,T,"day");return le}function yc(l,v){return _l(l,v,"months")}function bc(l,v){return _l(l,v,"monthsShort")}function wl(l,v,_){return oo(l,v,_,"weekdays")}function $f(l,v,_){return oo(l,v,_,"weekdaysShort")}function Pf(l,v,_){return oo(l,v,_,"weekdaysMin")}Gr("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(l){var v=l%10,_=Oe(l%100/10)===1?"th":v===1?"st":v===2?"nd":v===3?"rd":"th";return l+_}}),n.lang=Ne("moment.lang is deprecated. Use moment.locale instead.",Gr),n.langData=Ne("moment.langData is deprecated. Use moment.localeData instead.",Rr);var Nr=Math.abs;function If(){var l=this._data;return this._milliseconds=Nr(this._milliseconds),this._days=Nr(this._days),this._months=Nr(this._months),l.milliseconds=Nr(l.milliseconds),l.seconds=Nr(l.seconds),l.minutes=Nr(l.minutes),l.hours=Nr(l.hours),l.months=Nr(l.months),l.years=Nr(l.years),this}function Lu(l,v,_,T){var P=mr(v,_);return l._milliseconds+=T*P._milliseconds,l._days+=T*P._days,l._months+=T*P._months,l._bubble()}function Mf(l,v){return Lu(this,l,v,1)}function Af(l,v){return Lu(this,l,v,-1)}function Si(l){return l<0?Math.floor(l):Math.ceil(l)}function Cs(){var l=this._milliseconds,v=this._days,_=this._months,T=this._data,P,j,q,le,me;return l>=0&&v>=0&&_>=0||l<=0&&v<=0&&_<=0||(l+=Si(Ao(_)+v)*864e5,v=0,_=0),T.milliseconds=l%1e3,P=Et(l/1e3),T.seconds=P%60,j=Et(P/60),T.minutes=j%60,q=Et(j/60),T.hours=q%24,v+=Et(q/24),me=Et(Fu(v)),_+=me,v-=Si(Ao(me)),le=Et(_/12),_%=12,T.days=v,T.months=_,T.years=le,this}function Fu(l){return l*4800/146097}function Ao(l){return l*146097/4800}function Ro(l){if(!this.isValid())return NaN;var v,_,T=this._milliseconds;if(l=nr(l),l==="month"||l==="quarter"||l==="year")switch(v=this._days+T/864e5,_=this._months+Fu(v),l){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(v=this._days+Math.round(Ao(this._months)),l){case"week":return v/7+T/6048e5;case"day":return v+T/864e5;case"hour":return v*24+T/36e5;case"minute":return v*1440+T/6e4;case"second":return v*86400+T/1e3;case"millisecond":return Math.floor(v*864e5)+T;default:throw new Error("Unknown unit "+l)}}function Lr(l){return function(){return this.as(l)}}var ju=Lr("ms"),_c=Lr("s"),Rf=Lr("m"),Nf=Lr("h"),wc=Lr("d"),Lf=Lr("w"),kc=Lr("M"),Yu=Lr("Q"),Bu=Lr("y"),kl=ju;function No(){return mr(this)}function Hu(l){return l=nr(l),this.isValid()?this[l+"s"]():NaN}function Fr(l){return function(){return this.isValid()?this._data[l]:NaN}}var Sc=Fr("milliseconds"),Wu=Fr("seconds"),Da=Fr("minutes"),Sl=Fr("hours"),In=Fr("days"),Xn=Fr("months"),xl=Fr("years");function xc(){return Et(this.days()/7)}var Ur=Math.round,Wi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tc(l,v,_,T,P){return P.relativeTime(v||1,!!_,l,T)}function cr(l,v,_,T){var P=mr(l).abs(),j=Ur(P.as("s")),q=Ur(P.as("m")),le=Ur(P.as("h")),me=Ur(P.as("d")),Pe=Ur(P.as("M")),It=Ur(P.as("w")),Vr=Ur(P.as("y")),pi=j<=_.ss&&["s",j]||j<_.s&&["ss",j]||q<=1&&["m"]||q<_.m&&["mm",q]||le<=1&&["h"]||le<_.h&&["hh",le]||me<=1&&["d"]||me<_.d&&["dd",me];return _.w!=null&&(pi=pi||It<=1&&["w"]||It<_.w&&["ww",It]),pi=pi||Pe<=1&&["M"]||Pe<_.M&&["MM",Pe]||Vr<=1&&["y"]||["yy",Vr],pi[2]=v,pi[3]=+l>0,pi[4]=T,Tc.apply(null,pi)}function Ff(l){return l===void 0?Ur:typeof l=="function"?(Ur=l,!0):!1}function jf(l,v){return Wi[l]===void 0?!1:v===void 0?Wi[l]:(Wi[l]=v,l==="s"&&(Wi.ss=v-1),!0)}function Yf(l,v){if(!this.isValid())return this.localeData().invalidDate();var _=!1,T=Wi,P,j;return typeof l=="object"&&(v=l,l=!1),typeof l=="boolean"&&(_=l),typeof v=="object"&&(T=Object.assign({},Wi,v),v.s!=null&&v.ss==null&&(T.ss=v.s-1)),P=this.localeData(),j=cr(this,!_,T,P),_&&(j=P.pastFuture(+this,j)),P.postformat(j)}var Lo=Math.abs;function en(l){return(l>0)-(l<0)||+l}function so(){if(!this.isValid())return this.localeData().invalidDate();var l=Lo(this._milliseconds)/1e3,v=Lo(this._days),_=Lo(this._months),T,P,j,q,le=this.asSeconds(),me,Pe,It,Vr;return le?(T=Et(l/60),P=Et(T/60),l%=60,T%=60,j=Et(_/12),_%=12,q=l?l.toFixed(3).replace(/\.?0+$/,""):"",me=le<0?"-":"",Pe=en(this._months)!==en(le)?"-":"",It=en(this._days)!==en(le)?"-":"",Vr=en(this._milliseconds)!==en(le)?"-":"",me+"P"+(j?Pe+j+"Y":"")+(_?Pe+_+"M":"")+(v?It+v+"D":"")+(P||T||l?"T":"")+(P?Vr+P+"H":"")+(T?Vr+T+"M":"")+(l?Vr+q+"S":"")):"P0D"}var Ie=wa.prototype;return Ie.isValid=Ze,Ie.abs=If,Ie.add=Mf,Ie.subtract=Af,Ie.as=Ro,Ie.asMilliseconds=ju,Ie.asSeconds=_c,Ie.asMinutes=Rf,Ie.asHours=Nf,Ie.asDays=wc,Ie.asWeeks=Lf,Ie.asMonths=kc,Ie.asQuarters=Yu,Ie.asYears=Bu,Ie.valueOf=kl,Ie._bubble=Cs,Ie.clone=No,Ie.get=Hu,Ie.milliseconds=Sc,Ie.seconds=Wu,Ie.minutes=Da,Ie.hours=Sl,Ie.days=In,Ie.weeks=xc,Ie.months=Xn,Ie.years=xl,Ie.humanize=Yf,Ie.toISOString=so,Ie.toString=so,Ie.toJSON=so,Ie.locale=$o,Ie.localeData=Ou,Ie.toIsoString=Ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",so),Ie.lang=Du,ce("X",0,0,"unix"),ce("x",0,0,"valueOf"),ue("x",yi),ue("X",Yh),Ue("X",function(l,v,_){_._d=new Date(parseFloat(l)*1e3)}),Ue("x",function(l,v,_){_._d=new Date(Oe(l))}),n.version="2.30.1",h(Xe),n.fn=te,n.min=cn,n.max=ef,n.now=_a,n.utc=V,n.unix=ao,n.months=yc,n.isDate=A,n.locale=Gr,n.invalid=ye,n.duration=mr,n.isMoment=_e,n.weekdays=wl,n.parseZone=Of,n.localeData=Rr,n.isDuration=ka,n.monthsShort=bc,n.weekdaysMin=Pf,n.defineLocale=Qa,n.updateLocale=fu,n.locales=Xh,n.weekdaysShort=$f,n.normalizeUnits=nr,n.relativeTimeRounding=Ff,n.relativeTimeThreshold=jf,n.calendarFormat=oc,n.prototype=te,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})}(JM)),JM.exports}(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){function n(d,p,y,b){var w={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[d+" Tage",d+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[d+" Monate",d+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[d+" Jahre",d+" Jahren"]};return p?w[y][0]:w[y][1]}var h=t.defineLocale("de",{months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_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:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return h})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),h="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),d=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],p=/^(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,y=t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(b,w){return b?/-MMM-/.test(w)?h[b.month()]:n[b.month()]:n},monthsRegex:p,monthsShortRegex:p,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:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".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"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[ma\xF1ana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"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\xEDa",dd:"%d d\xEDas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4},invalidDate:"Fecha inv\xE1lida"});return y})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,h=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,d=/(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,p=[/^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],y=t.defineLocale("fr",{months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),monthsRegex:d,monthsShortRegex:d,monthsStrictRegex:n,monthsShortStrictRegex:h,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,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\u2019hui \xE0] LT",nextDay:"[Demain \xE0] LT",nextWeek:"dddd [\xE0] LT",lastDay:"[Hier \xE0] LT",lastWeek:"dddd [dernier \xE0] 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(b,w){switch(w){case"D":return b+(b===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return b+(b===1?"er":"e");case"w":case"W":return b+(b===1?"re":"e")}},week:{dow:1,doy:4}});return y})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n=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\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_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 ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"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\xBA",week:{dow:1,doy:4}});return n})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n=t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4EE4\u548C",narrow:"\u32FF",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5E73\u6210",narrow:"\u337B",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662D\u548C",narrow:"\u337C",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6B63",narrow:"\u337D",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660E\u6CBB",narrow:"\u337E",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897F\u66A6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7D00\u5143\u524D",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(h,d){return d[1]==="\u5143"?1:parseInt(d[1]||h,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(h){return h==="\u5348\u5F8C"},meridiem:function(h,d,p){return h<12?"\u5348\u524D":"\u5348\u5F8C"},calendar:{sameDay:"[\u4ECA\u65E5] LT",nextDay:"[\u660E\u65E5] LT",nextWeek:function(h){return h.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65E5] LT",lastWeek:function(h){return this.week()!==h.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(h,d){switch(d){case"y":return h===1?"\u5143\u5E74":h+"\u5E74";case"d":case"D":case"DDD":return h+"\u65E5";default:return h}},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",ss:"%d\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}});return n})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),h="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),d=[/^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],p=/^(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,y=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(b,w){return b?/-MMM-/.test(w)?h[b.month()]:n[b.month()]:n},monthsRegex:p,monthsShortRegex:p,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:d,longMonthsParse:d,shortMonthsParse:d,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:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",w:"\xE9\xE9n week",ww:"%d weken",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(b){return b+(b===1||b===8||b>=20?"ste":"de")},week:{dow:1,doy:4}});return y})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),h="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),d=[/^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 p(w){return w%10<5&&w%10>1&&~~(w/10)%10!==1}function y(w,$,A){var R=w+" ";switch(A){case"ss":return R+(p(w)?"sekundy":"sekund");case"m":return $?"minuta":"minut\u0119";case"mm":return R+(p(w)?"minuty":"minut");case"h":return $?"godzina":"godzin\u0119";case"hh":return R+(p(w)?"godziny":"godzin");case"ww":return R+(p(w)?"tygodnie":"tygodni");case"MM":return R+(p(w)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return R+(p(w)?"lata":"lat")}}var b=t.defineLocale("pl",{months:function(w,$){return w?/D MMMM/.test($)?h[w.month()]:n[w.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),monthsParse:d,longMonthsParse:d,shortMonthsParse:d,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_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\u015B o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015Brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015Brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:y,m:y,mm:y,h:y,hh:y,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:y,M:"miesi\u0105c",MM:y,y:"rok",yy:y},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return b})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){function n(y,b){var w=y.split("_");return b%10===1&&b%100!==11?w[0]:b%10>=2&&b%10<=4&&(b%100<10||b%100>=20)?w[1]:w[2]}function h(y,b,w){var $={ss:b?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434",mm:b?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",ww:"\u043D\u0435\u0434\u0435\u043B\u044F_\u043D\u0435\u0434\u0435\u043B\u0438_\u043D\u0435\u0434\u0435\u043B\u044C",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return w==="m"?b?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":y+" "+n($[w],+y)}var d=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],p=t.defineLocale("ru",{months:{format:"\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),standalone:"\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_")},monthsShort:{format:"\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),standalone:"\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_")},weekdays:{standalone:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),format:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043E\u0442\u0443".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),monthsParse:d,longMonthsParse:d,shortMonthsParse:d,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(y){if(y.week()!==this.week())switch(this.day()){case 0:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E] dddd, [\u0432] LT"}else return this.day()===2?"[\u0412\u043E] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT"},lastWeek:function(y){if(y.week()!==this.week())switch(this.day()){case 0:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u044B\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u0443\u044E] dddd, [\u0432] LT"}else return this.day()===2?"[\u0412\u043E] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT"},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",ss:h,m:h,mm:h,h:"\u0447\u0430\u0441",hh:h,d:"\u0434\u0435\u043D\u044C",dd:h,w:"\u043D\u0435\u0434\u0435\u043B\u044F",ww:h,M:"\u043C\u0435\u0441\u044F\u0446",MM:h,y:"\u0433\u043E\u0434",yy:h},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(y){return/^(дня|вечера)$/.test(y)},meridiem:function(y,b,w){return y<4?"\u043D\u043E\u0447\u0438":y<12?"\u0443\u0442\u0440\u0430":y<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(y,b){switch(b){case"M":case"d":case"DDD":return y+"-\u0439";case"D":return y+"-\u0433\u043E";case"w":case"W":return y+"-\u044F";default:return y}},week:{dow:1,doy:4}});return p})})();(function(e,a){(function(t,n){n(typeof ru=="function"?Js():t.moment)})(ko,function(t){function n(b,w){var $=b.split("_");return w%10===1&&w%100!==11?$[0]:w%10>=2&&w%10<=4&&(w%100<10||w%100>=20)?$[1]:$[2]}function h(b,w,$){var A={ss:w?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434",mm:w?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D",hh:w?"\u0433\u043E\u0434\u0438\u043D\u0430_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D":"\u0433\u043E\u0434\u0438\u043D\u0443_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u0456_\u0434\u043D\u0456\u0432",MM:"\u043C\u0456\u0441\u044F\u0446\u044C_\u043C\u0456\u0441\u044F\u0446\u0456_\u043C\u0456\u0441\u044F\u0446\u0456\u0432",yy:"\u0440\u0456\u043A_\u0440\u043E\u043A\u0438_\u0440\u043E\u043A\u0456\u0432"};return $==="m"?w?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443":$==="h"?w?"\u0433\u043E\u0434\u0438\u043D\u0430":"\u0433\u043E\u0434\u0438\u043D\u0443":b+" "+n(A[$],+b)}function d(b,w){var $={nominative:"\u043D\u0435\u0434\u0456\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044F_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"),accusative:"\u043D\u0435\u0434\u0456\u043B\u044E_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044E_\u0441\u0443\u0431\u043E\u0442\u0443".split("_"),genitive:"\u043D\u0435\u0434\u0456\u043B\u0456_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043A\u0430_\u0432\u0456\u0432\u0442\u043E\u0440\u043A\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u0456_\u0441\u0443\u0431\u043E\u0442\u0438".split("_")},A;return b===!0?$.nominative.slice(1,7).concat($.nominative.slice(0,1)):b?(A=/(\[[ВвУу]\]) ?dddd/.test(w)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(w)?"genitive":"nominative",$[A][b.day()]):$.nominative}function p(b){return function(){return b+"\u043E"+(this.hours()===11?"\u0431":"")+"] LT"}}var y=t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043D\u044F_\u043B\u044E\u0442\u043E\u0433\u043E_\u0431\u0435\u0440\u0435\u0437\u043D\u044F_\u043A\u0432\u0456\u0442\u043D\u044F_\u0442\u0440\u0430\u0432\u043D\u044F_\u0447\u0435\u0440\u0432\u043D\u044F_\u043B\u0438\u043F\u043D\u044F_\u0441\u0435\u0440\u043F\u043D\u044F_\u0432\u0435\u0440\u0435\u0441\u043D\u044F_\u0436\u043E\u0432\u0442\u043D\u044F_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043D\u044F".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043D\u044C_\u043B\u044E\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C_\u043A\u0432\u0456\u0442\u0435\u043D\u044C_\u0442\u0440\u0430\u0432\u0435\u043D\u044C_\u0447\u0435\u0440\u0432\u0435\u043D\u044C_\u043B\u0438\u043F\u0435\u043D\u044C_\u0441\u0435\u0440\u043F\u0435\u043D\u044C_\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C_\u0436\u043E\u0432\u0442\u0435\u043D\u044C_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043D\u044C".split("_")},monthsShort:"\u0441\u0456\u0447_\u043B\u044E\u0442_\u0431\u0435\u0440_\u043A\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043B\u0438\u043F_\u0441\u0435\u0440\u043F_\u0432\u0435\u0440_\u0436\u043E\u0432\u0442_\u043B\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:d,weekdaysShort:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:p("[\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456 "),nextDay:p("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:p("[\u0412\u0447\u043E\u0440\u0430 "),nextWeek:p("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return p("[\u041C\u0438\u043D\u0443\u043B\u043E\u0457] dddd [").call(this);case 1:case 2:case 4:return p("[\u041C\u0438\u043D\u0443\u043B\u043E\u0433\u043E] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043E\u043C\u0443",s:"\u0434\u0435\u043A\u0456\u043B\u044C\u043A\u0430 \u0441\u0435\u043A\u0443\u043D\u0434",ss:h,m:h,mm:h,h:"\u0433\u043E\u0434\u0438\u043D\u0443",hh:h,d:"\u0434\u0435\u043D\u044C",dd:h,M:"\u043C\u0456\u0441\u044F\u0446\u044C",MM:h,y:"\u0440\u0456\u043A",yy:h},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(b){return/^(дня|вечора)$/.test(b)},meridiem:function(b,w,$){return b<4?"\u043D\u043E\u0447\u0456":b<12?"\u0440\u0430\u043D\u043A\u0443":b<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u043E\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(b,w){switch(w){case"M":case"d":case"DDD":case"w":case"W":return b+"-\u0439";case"D":return b+"-\u0433\u043E";default:return b}},week:{dow:1,doy:7}});return y})})();var Yt=function(e){try{return!!e()}catch(a){return!0}},JV=Yt,x_=!JV(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),O6=x_,$6=Function.prototype,yR=$6.call,QV=O6&&$6.bind.bind(yR,yR),Zt=O6?QV:function(e){return function(){return yR.apply(e,arguments)}},e7=Math.ceil,t7=Math.floor,r7=Math.trunc||function(a){var t=+a;return(t>0?t7:e7)(t)},i7=r7,T_=function(e){var a=+e;return a!==a||a===0?0:i7(a)},HT=function(e){return e&&e.Math===Math&&e},Dr=HT(typeof globalThis=="object"&&globalThis)||HT(typeof window=="object"&&window)||HT(typeof self=="object"&&self)||HT(typeof ko=="object"&&ko)||function(){return this}()||ko||Function("return this")(),P6={exports:{}},n7=!0,UF=Dr,a7=Object.defineProperty,o7=function(e,a){try{a7(UF,e,{value:a,configurable:!0,writable:!0})}catch(t){UF[e]=a}return a},s7=Dr,l7=o7,VF="__core-js_shared__",u7=s7[VF]||l7(VF,{}),yN=u7,qF=yN;(P6.exports=function(e,a){return qF[e]||(qF[e]=a!==void 0?a:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Hg=P6.exports,Wg=function(e){return e==null},h7=Wg,c7=TypeError,Gg=function(e){if(h7(e))throw new c7("Can't call method on "+e);return e},d7=Gg,f7=Object,ua=function(e){return f7(d7(e))},v7=Zt,p7=ua,m7=v7({}.hasOwnProperty),Ni=Object.hasOwn||function(a,t){return m7(p7(a),t)},g7=Zt,y7=0,b7=Math.random(),_7=g7(1 .toString),HC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_7(++y7+b7,36)},bd=typeof navigator!="undefined"&&String(navigator.userAgent)||"",I6=Dr,QM=bd,KF=I6.process,XF=I6.Deno,ZF=KF&&KF.versions||XF&&XF.version,JF=ZF&&ZF.v8,Us,_C;JF&&(Us=JF.split("."),_C=Us[0]>0&&Us[0]<4?1:+(Us[0]+Us[1]));!_C&&QM&&(Us=QM.match(/Edge\/(\d+)/),(!Us||Us[1]>=74)&&(Us=QM.match(/Chrome\/(\d+)/),Us&&(_C=+Us[1])));var zg=_C,QF=zg,w7=Yt,k7=Dr,S7=k7.String,Ug=!!Object.getOwnPropertySymbols&&!w7(function(){var e=Symbol("symbol detection");return!S7(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&QF&&QF<41}),x7=Ug,M6=x7&&!Symbol.sham&&typeof Symbol.iterator=="symbol",T7=Dr,C7=Hg,e5=Ni,E7=HC,D7=Ug,O7=M6,xg=T7.Symbol,eA=C7("wks"),$7=O7?xg.for||xg:xg&&xg.withoutSetter||E7,Or=function(e){return e5(eA,e)||(eA[e]=D7&&e5(xg,e)?xg[e]:$7("Symbol."+e)),eA[e]},P7=Or,I7=P7("toStringTag"),A6={};A6[I7]="z";var bN=String(A6)==="[object z]",bR=typeof document=="object"&&document.all,M7=typeof bR=="undefined"&&bR!==void 0,R6={all:bR,IS_HTMLDDA:M7},N6=R6,A7=N6.all,si=N6.IS_HTMLDDA?function(e){return typeof e=="function"||e===A7}:function(e){return typeof e=="function"},L6=Zt,R7=L6({}.toString),N7=L6("".slice),Mh=function(e){return N7(R7(e),8,-1)},L7=bN,F7=si,fC=Mh,j7=Or,Y7=j7("toStringTag"),B7=Object,H7=fC(function(){return arguments}())==="Arguments",W7=function(e,a){try{return e[a]}catch(t){}},Ah=L7?fC:function(e){var a,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=W7(a=B7(e),Y7))=="string"?t:H7?fC(a):(n=fC(a))==="Object"&&F7(a.callee)?"Arguments":n},G7=Ah,z7=String,Qo=function(e){if(G7(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return z7(e)},_N=Zt,U7=T_,V7=Qo,q7=Gg,K7=_N("".charAt),t5=_N("".charCodeAt),X7=_N("".slice),Z7=function(e){return function(a,t){var n=V7(q7(a)),h=U7(t),d=n.length,p,y;return h<0||h>=d?e?"":void 0:(p=t5(n,h),p<55296||p>56319||h+1===d||(y=t5(n,h+1))<56320||y>57343?e?K7(n,h):p:e?X7(n,h,h+2):(p-55296<<10)+(y-56320)+65536)}},J7={charAt:Z7(!0)},Q7=Dr,eq=si,r5=Q7.WeakMap,tq=eq(r5)&&/native code/.test(String(r5)),i5=si,F6=R6,rq=F6.all,an=F6.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:i5(e)||e===rq}:function(e){return typeof e=="object"?e!==null:i5(e)},iq=Yt,Xi=!iq(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ga={},nq=Dr,n5=an,_R=nq.document,aq=n5(_R)&&n5(_R.createElement),wN=function(e){return aq?_R.createElement(e):{}},oq=Xi,sq=Yt,lq=wN,j6=!oq&&!sq(function(){return Object.defineProperty(lq("div"),"a",{get:function(){return 7}}).a!==7}),uq=Xi,hq=Yt,Y6=uq&&hq(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),cq=an,dq=String,fq=TypeError,xo=function(e){if(cq(e))return e;throw new fq(dq(e)+" is not an object")},vq=x_,WT=Function.prototype.call,on=vq?WT.bind(WT):function(){return WT.apply(WT,arguments)},tr={},tA=tr,rA=Dr,pq=si,a5=function(e){return pq(e)?e:void 0},ha=function(e,a){return arguments.length<2?a5(tA[e])||a5(rA[e]):tA[e]&&tA[e][a]||rA[e]&&rA[e][a]},mq=Zt,Cr=mq({}.isPrototypeOf),gq=ha,yq=si,bq=Cr,_q=M6,wq=Object,C_=_q?function(e){return typeof e=="symbol"}:function(e){var a=gq("Symbol");return yq(a)&&bq(a.prototype,wq(e))},kq=String,Vg=function(e){try{return kq(e)}catch(a){return"Object"}},Sq=si,xq=Vg,Tq=TypeError,za=function(e){if(Sq(e))return e;throw new Tq(xq(e)+" is not a function")},Cq=za,Eq=Wg,kN=function(e,a){var t=e[a];return Eq(t)?void 0:Cq(t)},iA=on,nA=si,aA=an,Dq=TypeError,Oq=function(e,a){var t,n;if(a==="string"&&nA(t=e.toString)&&!aA(n=iA(t,e))||nA(t=e.valueOf)&&!aA(n=iA(t,e))||a!=="string"&&nA(t=e.toString)&&!aA(n=iA(t,e)))return n;throw new Dq("Can't convert object to primitive value")},$q=on,o5=an,s5=C_,Pq=kN,Iq=Oq,Mq=Or,Aq=TypeError,Rq=Mq("toPrimitive"),Nq=function(e,a){if(!o5(e)||s5(e))return e;var t=Pq(e,Rq),n;if(t){if(a===void 0&&(a="default"),n=$q(t,e,a),!o5(n)||s5(n))return n;throw new Aq("Can't convert object to primitive value")}return a===void 0&&(a="number"),Iq(e,a)},Lq=Nq,Fq=C_,WC=function(e){var a=Lq(e,"string");return Fq(a)?a:a+""},jq=Xi,Yq=j6,Bq=Y6,GT=xo,l5=WC,Hq=TypeError,oA=Object.defineProperty,Wq=Object.getOwnPropertyDescriptor,sA="enumerable",lA="configurable",uA="writable";Ga.f=jq?Bq?function(a,t,n){if(GT(a),t=l5(t),GT(n),typeof a=="function"&&t==="prototype"&&"value"in n&&uA in n&&!n[uA]){var h=Wq(a,t);h&&h[uA]&&(a[t]=n.value,n={configurable:lA in n?n[lA]:h[lA],enumerable:sA in n?n[sA]:h[sA],writable:!1})}return oA(a,t,n)}:oA:function(a,t,n){if(GT(a),t=l5(t),GT(n),Yq)try{return oA(a,t,n)}catch(h){}if("get"in n||"set"in n)throw new Hq("Accessors not supported");return"value"in n&&(a[t]=n.value),a};var vp=function(e,a){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:a}},Gq=Xi,zq=Ga,Uq=vp,Rh=Gq?function(e,a,t){return zq.f(e,a,Uq(1,t))}:function(e,a,t){return e[a]=t,e},Vq=Hg,qq=HC,u5=Vq("keys"),GC=function(e){return u5[e]||(u5[e]=qq(e))},E_={},Kq=tq,B6=Dr,Xq=an,Zq=Rh,hA=Ni,cA=yN,Jq=GC,Qq=E_,h5="Object already initialized",wR=B6.TypeError,eK=B6.WeakMap,wC,h_,kC,tK=function(e){return kC(e)?h_(e):wC(e,{})},rK=function(e){return function(a){var t;if(!Xq(a)||(t=h_(a)).type!==e)throw new wR("Incompatible receiver, "+e+" required");return t}};Kq||cA.state?(Gs=cA.state||(cA.state=new eK),Gs.get=Gs.get,Gs.has=Gs.has,Gs.set=Gs.set,wC=function(e,a){if(Gs.has(e))throw new wR(h5);return a.facade=e,Gs.set(e,a),a},h_=function(e){return Gs.get(e)||{}},kC=function(e){return Gs.has(e)}):(Qv=Jq("state"),Qq[Qv]=!0,wC=function(e,a){if(hA(e,Qv))throw new wR(h5);return a.facade=e,Zq(e,Qv,a),a},h_=function(e){return hA(e,Qv)?e[Qv]:{}},kC=function(e){return hA(e,Qv)});var Gs,Qv,qg={set:wC,get:h_,has:kC,enforce:tK,getterFor:rK},iK=x_,H6=Function.prototype,c5=H6.apply,d5=H6.call,Kg=typeof Reflect=="object"&&Reflect.apply||(iK?d5.bind(c5):function(){return d5.apply(c5,arguments)}),nK=Mh,aK=Zt,SN=function(e){if(nK(e)==="Function")return aK(e)},pp={},D_={},W6={}.propertyIsEnumerable,G6=Object.getOwnPropertyDescriptor,oK=G6&&!W6.call({1:2},1);D_.f=oK?function(a){var t=G6(this,a);return!!t&&t.enumerable}:W6;var sK=Zt,lK=Yt,uK=Mh,dA=Object,hK=sK("".split),zC=lK(function(){return!dA("z").propertyIsEnumerable(0)})?function(e){return uK(e)==="String"?hK(e,""):dA(e)}:dA,cK=zC,dK=Gg,Qs=function(e){return cK(dK(e))},fK=Xi,vK=on,pK=D_,mK=vp,gK=Qs,yK=WC,bK=Ni,_K=j6,f5=Object.getOwnPropertyDescriptor;pp.f=fK?f5:function(a,t){if(a=gK(a),t=yK(t),_K)try{return f5(a,t)}catch(n){}if(bK(a,t))return mK(!vK(pK.f,a,t),a[t])};var wK=Yt,kK=si,SK=/#|\.prototype\./,O_=function(e,a){var t=TK[xK(e)];return t===EK?!0:t===CK?!1:kK(a)?wK(a):!!a},xK=O_.normalize=function(e){return String(e).replace(SK,".").toLowerCase()},TK=O_.data={},CK=O_.NATIVE="N",EK=O_.POLYFILL="P",z6=O_,v5=SN,DK=za,OK=x_,$K=v5(v5.bind),_d=function(e,a){return DK(e),a===void 0?e:OK?$K(e,a):function(){return e.apply(a,arguments)}},zT=Dr,PK=Kg,IK=SN,MK=si,AK=pp.f,RK=z6,pg=tr,NK=_d,mg=Rh,p5=Ni,LK=function(e){var a=function(t,n,h){if(this instanceof a){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,h)}return PK(e,this,arguments)};return a.prototype=e.prototype,a},He=function(e,a){var t=e.target,n=e.global,h=e.stat,d=e.proto,p=n?zT:h?zT[t]:(zT[t]||{}).prototype,y=n?pg:pg[t]||mg(pg,t,{})[t],b=y.prototype,w,$,A,R,Y,V,oe,G,ae;for(R in a)w=RK(n?R:t+(h?".":"#")+R,e.forced),$=!w&&p&&p5(p,R),V=y[R],$&&(e.dontCallGetSet?(ae=AK(p,R),oe=ae&&ae.value):oe=p[R]),Y=$&&oe?oe:a[R],!($&&typeof V==typeof Y)&&(e.bind&&$?G=NK(Y,zT):e.wrap&&$?G=LK(Y):d&&MK(Y)?G=IK(Y):G=Y,(e.sham||Y&&Y.sham||V&&V.sham)&&mg(G,"sham",!0),mg(y,R,G),d&&(A=t+"Prototype",p5(pg,A)||mg(pg,A,{}),mg(pg[A],R,Y),e.real&&b&&(w||!b[R])&&mg(b,R,Y)))},kR=Xi,FK=Ni,U6=Function.prototype,jK=kR&&Object.getOwnPropertyDescriptor,V6=FK(U6,"name"),YK=V6&&function(){}.name==="something";V6&&(!kR||kR&&jK(U6,"name").configurable);var BK={PROPER:YK},UC={},HK=T_,WK=Math.max,GK=Math.min,$_=function(e,a){var t=HK(e);return t<0?WK(t+a,0):GK(t,a)},zK=T_,UK=Math.min,VK=function(e){return e>0?UK(zK(e),9007199254740991):0},qK=VK,Ua=function(e){return qK(e.length)},KK=Qs,XK=$_,ZK=Ua,m5=function(e){return function(a,t,n){var h=KK(a),d=ZK(h),p=XK(n,d),y;if(e&&t!==t){for(;d>p;)if(y=h[p++],y!==y)return!0}else for(;d>p;p++)if((e||p in h)&&h[p]===t)return e||p||0;return!e&&-1}},xN={includes:m5(!0),indexOf:m5(!1)},JK=Zt,fA=Ni,QK=Qs,eX=xN.indexOf,tX=E_,g5=JK([].push),q6=function(e,a){var t=QK(e),n=0,h=[],d;for(d in t)!fA(tX,d)&&fA(t,d)&&g5(h,d);for(;a.length>n;)fA(t,d=a[n++])&&(~eX(h,d)||g5(h,d));return h},TN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rX=q6,iX=TN,P_=Object.keys||function(a){return rX(a,iX)},nX=Xi,aX=Y6,oX=Ga,sX=xo,lX=Qs,uX=P_;UC.f=nX&&!aX?Object.defineProperties:function(a,t){sX(a);for(var n=lX(t),h=uX(t),d=h.length,p=0,y;d>p;)oX.f(a,y=h[p++],n[y]);return a};var hX=ha,K6=hX("document","documentElement"),cX=xo,dX=UC,y5=TN,fX=E_,vX=K6,pX=wN,mX=GC,b5=">",_5="<",SR="prototype",xR="script",X6=mX("IE_PROTO"),vA=function(){},Z6=function(e){return _5+xR+b5+e+_5+"/"+xR+b5},w5=function(e){e.write(Z6("")),e.close();var a=e.parentWindow.Object;return e=null,a},gX=function(){var e=pX("iframe"),a="java"+xR+":",t;return e.style.display="none",vX.appendChild(e),e.src=String(a),t=e.contentWindow.document,t.open(),t.write(Z6("document.F=Object")),t.close(),t.F},UT,vC=function(){try{UT=new ActiveXObject("htmlfile")}catch(a){}vC=typeof document!="undefined"?document.domain&&UT?w5(UT):gX():w5(UT);for(var e=y5.length;e--;)delete vC[SR][y5[e]];return vC()};fX[X6]=!0;var mp=Object.create||function(a,t){var n;return a!==null?(vA[SR]=cX(a),n=new vA,vA[SR]=null,n[X6]=a):n=vC(),t===void 0?n:dX.f(n,t)},yX=Yt,J6=!yX(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),bX=Ni,_X=si,wX=ua,kX=GC,SX=J6,k5=kX("IE_PROTO"),TR=Object,xX=TR.prototype,I_=SX?TR.getPrototypeOf:function(e){var a=wX(e);if(bX(a,k5))return a[k5];var t=a.constructor;return _X(t)&&a instanceof t?t.prototype:a instanceof TR?xX:null},TX=Rh,Xg=function(e,a,t,n){return n&&n.enumerable?e[a]=t:TX(e,a,t),e},CX=Yt,EX=si,DX=an,OX=mp,S5=I_,$X=Xg,PX=Or,CR=PX("iterator"),Q6=!1,Eh,pA,mA;[].keys&&(mA=[].keys(),"next"in mA?(pA=S5(S5(mA)),pA!==Object.prototype&&(Eh=pA)):Q6=!0);var IX=!DX(Eh)||CX(function(){var e={};return Eh[CR].call(e)!==e});IX?Eh={}:Eh=OX(Eh);EX(Eh[CR])||$X(Eh,CR,function(){return this});var eB={IteratorPrototype:Eh,BUGGY_SAFARI_ITERATORS:Q6},MX=bN,AX=Ah,RX=MX?{}.toString:function(){return"[object "+AX(this)+"]"},NX=bN,LX=Ga.f,FX=Rh,jX=Ni,YX=RX,BX=Or,x5=BX("toStringTag"),gp=function(e,a,t,n){if(e){var h=t?e:e.prototype;jX(h,x5)||LX(h,x5,{configurable:!0,value:a}),n&&!NX&&FX(h,"toString",YX)}},Zg={},HX=eB.IteratorPrototype,WX=mp,GX=vp,zX=gp,UX=Zg,VX=function(){return this},qX=function(e,a,t,n){var h=a+" Iterator";return e.prototype=WX(HX,{next:GX(+!n,t)}),zX(e,h,!1,!0),UX[h]=VX,e},KX=Zt,XX=za,ZX=function(e,a,t){try{return KX(XX(Object.getOwnPropertyDescriptor(e,a)[t]))}catch(n){}},JX=si,QX=String,eZ=TypeError,tZ=function(e){if(typeof e=="object"||JX(e))return e;throw new eZ("Can't set "+QX(e)+" as a prototype")},rZ=ZX,iZ=xo,nZ=tZ,tB=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,a={},t;try{t=rZ(Object.prototype,"__proto__","set"),t(a,[]),e=a instanceof Array}catch(n){}return function(h,d){return iZ(h),nZ(d),e?t(h,d):h.__proto__=d,h}}():void 0),aZ=He,oZ=on,sZ=BK,lZ=qX,uZ=I_,hZ=gp,T5=Xg,cZ=Or,C5=Zg,dZ=eB,fZ=sZ.PROPER,VT=dZ.BUGGY_SAFARI_ITERATORS,gA=cZ("iterator"),E5="keys",qT="values",D5="entries",vZ=function(){return this},CN=function(e,a,t,n,h,d,p){lZ(t,a,n);var y=function(ae){if(ae===h&&R)return R;if(!VT&&ae&&ae in $)return $[ae];switch(ae){case E5:return function(){return new t(this,ae)};case qT:return function(){return new t(this,ae)};case D5:return function(){return new t(this,ae)}}return function(){return new t(this)}},b=a+" Iterator",w=!1,$=e.prototype,A=$[gA]||$["@@iterator"]||h&&$[h],R=!VT&&A||y(h),Y=a==="Array"&&$.entries||A,V,oe,G;if(Y&&(V=uZ(Y.call(new e)),V!==Object.prototype&&V.next&&(hZ(V,b,!0,!0),C5[b]=vZ)),fZ&&h===qT&&A&&A.name!==qT&&(w=!0,R=function(){return oZ(A,this)}),h)if(oe={values:y(qT),keys:d?R:y(E5),entries:y(D5)},p)for(G in oe)(VT||w||!(G in $))&&T5($,G,oe[G]);else aZ({target:a,proto:!0,forced:VT||w},oe);return p&&$[gA]!==R&&T5($,gA,R,{}),C5[a]=R,oe},EN=function(e,a){return{value:e,done:a}},pZ=J7.charAt,mZ=Qo,rB=qg,gZ=CN,O5=EN,iB="String Iterator",yZ=rB.set,bZ=rB.getterFor(iB);gZ(String,"String",function(e){yZ(this,{type:iB,string:mZ(e),index:0})},function(){var a=bZ(this),t=a.string,n=a.index,h;return n>=t.length?O5(void 0,!0):(h=pZ(t,n),a.index+=h.length,O5(h,!1))});var _Z=on,$5=xo,wZ=kN,nB=function(e,a,t){var n,h;$5(e);try{if(n=wZ(e,"return"),!n){if(a==="throw")throw t;return t}n=_Z(n,e)}catch(d){h=!0,n=d}if(a==="throw")throw t;if(h)throw n;return $5(n),t},kZ=xo,SZ=nB,xZ=function(e,a,t,n){try{return n?a(kZ(t)[0],t[1]):a(t)}catch(h){SZ(e,"throw",h)}},TZ=Or,CZ=Zg,EZ=TZ("iterator"),DZ=Array.prototype,aB=function(e){return e!==void 0&&(CZ.Array===e||DZ[EZ]===e)},OZ=Zt,$Z=si,ER=yN,PZ=OZ(Function.toString);$Z(ER.inspectSource)||(ER.inspectSource=function(e){return PZ(e)});var oB=ER.inspectSource,IZ=Zt,MZ=Yt,sB=si,AZ=Ah,RZ=ha,NZ=oB,lB=function(){},LZ=[],uB=RZ("Reflect","construct"),DN=/^\s*(?:class|function)\b/,FZ=IZ(DN.exec),jZ=!DN.test(lB),Ub=function(a){if(!sB(a))return!1;try{return uB(lB,LZ,a),!0}catch(t){return!1}},hB=function(a){if(!sB(a))return!1;switch(AZ(a)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jZ||!!FZ(DN,NZ(a))}catch(t){return!0}};hB.sham=!0;var VC=!uB||MZ(function(){var e;return Ub(Ub.call)||!Ub(Object)||!Ub(function(){e=!0})||e})?hB:Ub,YZ=WC,BZ=Ga,HZ=vp,Jg=function(e,a,t){var n=YZ(a);n in e?BZ.f(e,n,HZ(0,t)):e[n]=t},WZ=Ah,P5=kN,GZ=Wg,zZ=Zg,UZ=Or,VZ=UZ("iterator"),qC=function(e){if(!GZ(e))return P5(e,VZ)||P5(e,"@@iterator")||zZ[WZ(e)]},qZ=on,KZ=za,XZ=xo,ZZ=Vg,JZ=qC,QZ=TypeError,ON=function(e,a){var t=arguments.length<2?JZ(e):a;if(KZ(t))return XZ(qZ(t,e));throw new QZ(ZZ(e)+" is not iterable")},eJ=_d,tJ=on,rJ=ua,iJ=xZ,nJ=aB,aJ=VC,oJ=Ua,I5=Jg,sJ=ON,lJ=qC,M5=Array,uJ=function(a){var t=rJ(a),n=aJ(this),h=arguments.length,d=h>1?arguments[1]:void 0,p=d!==void 0;p&&(d=eJ(d,h>2?arguments[2]:void 0));var y=lJ(t),b=0,w,$,A,R,Y,V;if(y&&!(this===M5&&nJ(y)))for(R=sJ(t,y),Y=R.next,$=n?new this:[];!(A=tJ(Y,R)).done;b++)V=p?iJ(R,d,[A.value,b],!0):A.value,I5($,b,V);else for(w=oJ(t),$=n?new this(w):M5(w);w>b;b++)V=p?d(t[b],b):t[b],I5($,b,V);return $.length=b,$},hJ=Or,cB=hJ("iterator"),dB=!1;try{A5=0,yA={next:function(){return{done:!!A5++}},return:function(){dB=!0}},yA[cB]=function(){return this},Array.from(yA,function(){throw 2})}catch(e){}var A5,yA,fB=function(e,a){try{if(!a&&!dB)return!1}catch(h){return!1}var t=!1;try{var n={};n[cB]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch(h){}return t},cJ=He,dJ=uJ,fJ=fB,vJ=!fJ(function(e){Array.from(e)});cJ({target:"Array",stat:!0,forced:vJ},{from:dJ});var pJ=tr,mJ=pJ.Array.from,gJ=mJ,vB=gJ,yJ=vB,M_=Be(yJ),bJ=Qs,R5=Zg,pB=qg;Ga.f;var _J=CN,KT=EN,mB="Array Iterator",wJ=pB.set,kJ=pB.getterFor(mB);_J(Array,"Array",function(e,a){wJ(this,{type:mB,target:bJ(e),index:0,kind:a})},function(){var e=kJ(this),a=e.target,t=e.kind,n=e.index++;if(!a||n>=a.length)return e.target=void 0,KT(void 0,!0);switch(t){case"keys":return KT(n,!1);case"values":return KT(a[n],!1)}return KT([n,a[n]],!1)},"values");R5.Arguments=R5.Array;var SJ=qC,xJ=SJ,TJ={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},CJ=TJ,EJ=Dr,DJ=Ah,OJ=Rh,N5=Zg,$J=Or,L5=$J("toStringTag");for(ZT in CJ)bA=EJ[ZT],XT=bA&&bA.prototype,XT&&DJ(XT)!==L5&&OJ(XT,L5,ZT),N5[ZT]=N5.Array;var bA,XT,ZT,PJ=xJ,IJ=PJ,MJ=IJ,AJ=MJ,RJ=AJ,NJ=RJ,gB=NJ,yB=Be(gB),LJ=gB,A_=Be(LJ);function br(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}var bB={exports:{}},FJ=He,jJ=Xi,F5=Ga.f;FJ({target:"Object",stat:!0,forced:Object.defineProperty!==F5,sham:!jJ},{defineProperty:F5});var YJ=tr,_B=YJ.Object,BJ=bB.exports=function(a,t,n){return _B.defineProperty(a,t,n)};_B.defineProperty.sham&&(BJ.sham=!0);var HJ=bB.exports,WJ=HJ,wB=WJ,GJ=wB,zJ=GJ,UJ=zJ,VJ=UJ,kB=VJ,KC=Be(kB),qJ=Mh,wd=Array.isArray||function(a){return qJ(a)==="Array"},KJ=TypeError,XJ=9007199254740991,XC=function(e){if(e>XJ)throw KJ("Maximum allowed index exceeded");return e},j5=wd,ZJ=VC,JJ=an,QJ=Or,eQ=QJ("species"),Y5=Array,tQ=function(e){var a;return j5(e)&&(a=e.constructor,ZJ(a)&&(a===Y5||j5(a.prototype))?a=void 0:JJ(a)&&(a=a[eQ],a===null&&(a=void 0))),a===void 0?Y5:a},rQ=tQ,ZC=function(e,a){return new(rQ(e))(a===0?0:a)},iQ=Yt,nQ=Or,aQ=zg,oQ=nQ("species"),R_=function(e){return aQ>=51||!iQ(function(){var a=[],t=a.constructor={};return t[oQ]=function(){return{foo:1}},a[e](Boolean).foo!==1})},sQ=He,lQ=Yt,uQ=wd,hQ=an,cQ=ua,dQ=Ua,B5=XC,H5=Jg,fQ=ZC,vQ=R_,pQ=Or,mQ=zg,SB=pQ("isConcatSpreadable"),gQ=mQ>=51||!lQ(function(){var e=[];return e[SB]=!1,e.concat()[0]!==e}),yQ=function(e){if(!hQ(e))return!1;var a=e[SB];return a!==void 0?!!a:uQ(e)},bQ=!gQ||!vQ("concat");sQ({target:"Array",proto:!0,forced:bQ},{concat:function(a){var t=cQ(this),n=fQ(t,0),h=0,d,p,y,b,w;for(d=-1,y=arguments.length;d<y;d++)if(w=d===-1?t:arguments[d],yQ(w))for(b=dQ(w),B5(h+b),p=0;p<b;p++,h++)p in w&&H5(n,h,w[p]);else B5(h+1),H5(n,h++,w);return n.length=h,n}});var N_={},_Q=q6,wQ=TN,kQ=wQ.concat("length","prototype");N_.f=Object.getOwnPropertyNames||function(a){return _Q(a,kQ)};var $N={},W5=$_,SQ=Ua,xQ=Jg,TQ=Array,CQ=Math.max,xB=function(e,a,t){for(var n=SQ(e),h=W5(a,n),d=W5(t===void 0?n:t,n),p=TQ(CQ(d-h,0)),y=0;h<d;h++,y++)xQ(p,y,e[h]);return p.length=y,p},EQ=Mh,DQ=Qs,TB=N_.f,OQ=xB,CB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$Q=function(e){try{return TB(e)}catch(a){return OQ(CB)}};$N.f=function(a){return CB&&EQ(a)==="Window"?$Q(a):TB(DQ(a))};var L_={};L_.f=Object.getOwnPropertySymbols;var PQ=Ga,PN=function(e,a,t){return PQ.f(e,a,t)},F_={},IQ=Or;F_.f=IQ;var G5=tr,MQ=Ni,AQ=F_,RQ=Ga.f,li=function(e){var a=G5.Symbol||(G5.Symbol={});MQ(a,e)||RQ(a,e,{value:AQ.f(e)})},NQ=on,LQ=ha,FQ=Or,jQ=Xg,EB=function(){var e=LQ("Symbol"),a=e&&e.prototype,t=a&&a.valueOf,n=FQ("toPrimitive");a&&!a[n]&&jQ(a,n,function(h){return NQ(t,this)},{})},YQ=_d,BQ=Zt,HQ=zC,WQ=ua,GQ=Ua,zQ=ZC,z5=BQ([].push),ep=function(e){var a=e===1,t=e===2,n=e===3,h=e===4,d=e===6,p=e===7,y=e===5||d;return function(b,w,$,A){for(var R=WQ(b),Y=HQ(R),V=YQ(w,$),oe=GQ(Y),G=0,ae=A||zQ,ve=a?ae(b,oe):t||p?ae(b,0):void 0,ye,pe;oe>G;G++)if((y||G in Y)&&(ye=Y[G],pe=V(ye,G,R),e))if(a)ve[G]=pe;else if(pe)switch(e){case 3:return!0;case 5:return ye;case 6:return G;case 2:z5(ve,ye)}else switch(e){case 4:return!1;case 7:z5(ve,ye)}return d?-1:n||h?h:ve}},Nh={forEach:ep(0),map:ep(1),filter:ep(2),some:ep(3),every:ep(4),find:ep(5),findIndex:ep(6)},JC=He,QC=Dr,IN=on,UQ=Zt,Mg=Xi,Ag=Ug,VQ=Yt,nn=Ni,qQ=Cr,DR=xo,eE=Qs,MN=WC,KQ=Qo,OR=vp,c_=mp,DB=P_,XQ=N_,OB=$N,ZQ=L_,$B=pp,PB=Ga,JQ=UC,IB=D_,U5=Xg,QQ=PN,AN=Hg,e2=GC,MB=E_,V5=HC,t2=Or,r2=F_,i2=li,n2=EB,a2=gp,AB=qg,tE=Nh.forEach,Ba=e2("hidden"),rE="Symbol",d_="prototype",o2=AB.set,q5=AB.getterFor(rE),qs=Object[d_],ap=QC.Symbol,Qb=ap&&ap[d_],s2=QC.RangeError,l2=QC.TypeError,_A=QC.QObject,RB=$B.f,op=PB.f,NB=OB.f,u2=IB.f,LB=UQ([].push),Ph=AN("symbols"),j_=AN("op-symbols"),h2=AN("wks"),$R=!_A||!_A[d_]||!_A[d_].findChild,FB=function(e,a,t){var n=RB(qs,a);n&&delete qs[a],op(e,a,t),n&&e!==qs&&op(qs,a,n)},PR=Mg&&VQ(function(){return c_(op({},"a",{get:function(){return op(this,"a",{value:7}).a}})).a!==7})?FB:op,wA=function(e,a){var t=Ph[e]=c_(Qb);return o2(t,{type:rE,tag:e,description:a}),Mg||(t.description=a),t},iE=function(a,t,n){a===qs&&iE(j_,t,n),DR(a);var h=MN(t);return DR(n),nn(Ph,h)?(n.enumerable?(nn(a,Ba)&&a[Ba][h]&&(a[Ba][h]=!1),n=c_(n,{enumerable:OR(0,!1)})):(nn(a,Ba)||op(a,Ba,OR(1,{})),a[Ba][h]=!0),PR(a,h,n)):op(a,h,n)},RN=function(a,t){DR(a);var n=eE(t),h=DB(n).concat(HB(n));return tE(h,function(d){(!Mg||IN(jB,n,d))&&iE(a,d,n[d])}),a},c2=function(a,t){return t===void 0?c_(a):RN(c_(a),t)},jB=function(a){var t=MN(a),n=IN(u2,this,t);return this===qs&&nn(Ph,t)&&!nn(j_,t)?!1:n||!nn(this,t)||!nn(Ph,t)||nn(this,Ba)&&this[Ba][t]?n:!0},YB=function(a,t){var n=eE(a),h=MN(t);if(!(n===qs&&nn(Ph,h)&&!nn(j_,h))){var d=RB(n,h);return d&&nn(Ph,h)&&!(nn(n,Ba)&&n[Ba][h])&&(d.enumerable=!0),d}},BB=function(a){var t=NB(eE(a)),n=[];return tE(t,function(h){!nn(Ph,h)&&!nn(MB,h)&&LB(n,h)}),n},HB=function(e){var a=e===qs,t=NB(a?j_:eE(e)),n=[];return tE(t,function(h){nn(Ph,h)&&(!a||nn(qs,h))&&LB(n,Ph[h])}),n};Ag||(ap=function(){if(qQ(Qb,this))throw new l2("Symbol is not a constructor");var a=!arguments.length||arguments[0]===void 0?void 0:KQ(arguments[0]),t=V5(a),n=function(h){this===qs&&IN(n,j_,h),nn(this,Ba)&&nn(this[Ba],t)&&(this[Ba][t]=!1);var d=OR(1,h);try{PR(this,t,d)}catch(p){if(!(p instanceof s2))throw p;FB(this,t,d)}};return Mg&&$R&&PR(qs,t,{configurable:!0,set:n}),wA(t,a)},Qb=ap[d_],U5(Qb,"toString",function(){return q5(this).tag}),U5(ap,"withoutSetter",function(e){return wA(V5(e),e)}),IB.f=jB,PB.f=iE,JQ.f=RN,$B.f=YB,XQ.f=OB.f=BB,ZQ.f=HB,r2.f=function(e){return wA(t2(e),e)},Mg&&QQ(Qb,"description",{configurable:!0,get:function(){return q5(this).description}}));JC({global:!0,wrap:!0,forced:!Ag,sham:!Ag},{Symbol:ap});tE(DB(h2),function(e){i2(e)});JC({target:rE,stat:!0,forced:!Ag},{useSetter:function(){$R=!0},useSimple:function(){$R=!1}});JC({target:"Object",stat:!0,forced:!Ag,sham:!Mg},{create:c2,defineProperty:iE,defineProperties:RN,getOwnPropertyDescriptor:YB});JC({target:"Object",stat:!0,forced:!Ag},{getOwnPropertyNames:BB});n2();a2(ap,rE);MB[Ba]=!0;var d2=Ug,WB=d2&&!!Symbol.for&&!!Symbol.keyFor,f2=He,v2=ha,p2=Ni,m2=Qo,GB=Hg,g2=WB,kA=GB("string-to-symbol-registry"),y2=GB("symbol-to-string-registry");f2({target:"Symbol",stat:!0,forced:!g2},{for:function(e){var a=m2(e);if(p2(kA,a))return kA[a];var t=v2("Symbol")(a);return kA[a]=t,y2[t]=a,t}});var b2=He,_2=Ni,w2=C_,k2=Vg,S2=Hg,x2=WB,K5=S2("symbol-to-string-registry");b2({target:"Symbol",stat:!0,forced:!x2},{keyFor:function(a){if(!w2(a))throw new TypeError(k2(a)+" is not a symbol");if(_2(K5,a))return K5[a]}});var T2=Zt,Y_=T2([].slice),C2=Zt,X5=wd,E2=si,Z5=Mh,D2=Qo,J5=C2([].push),O2=function(e){if(E2(e))return e;if(X5(e)){for(var a=e.length,t=[],n=0;n<a;n++){var h=e[n];typeof h=="string"?J5(t,h):(typeof h=="number"||Z5(h)==="Number"||Z5(h)==="String")&&J5(t,D2(h))}var d=t.length,p=!0;return function(y,b){if(p)return p=!1,b;if(X5(this))return b;for(var w=0;w<d;w++)if(t[w]===y)return b}}},$2=He,zB=ha,UB=Kg,P2=on,B_=Zt,VB=Yt,Q5=si,ej=C_,qB=Y_,I2=O2,M2=Ug,A2=String,md=zB("JSON","stringify"),JT=B_(/./.exec),tj=B_("".charAt),R2=B_("".charCodeAt),N2=B_("".replace),L2=B_(1 .toString),F2=/[\uD800-\uDFFF]/g,rj=/^[\uD800-\uDBFF]$/,ij=/^[\uDC00-\uDFFF]$/,nj=!M2||VB(function(){var e=zB("Symbol")("stringify detection");return md([e])!=="[null]"||md({a:e})!=="{}"||md(Object(e))!=="{}"}),aj=VB(function(){return md("\uDF06\uD834")!=='"\\udf06\\ud834"'||md("\uDEAD")!=='"\\udead"'}),j2=function(e,a){var t=qB(arguments),n=I2(a);if(!(!Q5(n)&&(e===void 0||ej(e))))return t[1]=function(h,d){if(Q5(n)&&(d=P2(n,this,A2(h),d)),!ej(d))return d},UB(md,null,t)},Y2=function(e,a,t){var n=tj(t,a-1),h=tj(t,a+1);return JT(rj,e)&&!JT(ij,h)||JT(ij,e)&&!JT(rj,n)?"\\u"+L2(R2(e,0),16):e};md&&$2({target:"JSON",stat:!0,forced:nj||aj},{stringify:function(a,t,n){var h=qB(arguments),d=UB(nj?j2:md,null,h);return aj&&typeof d=="string"?N2(d,F2,Y2):d}});var B2=He,H2=Ug,W2=Yt,KB=L_,G2=ua,z2=!H2||W2(function(){KB.f(1)});B2({target:"Object",stat:!0,forced:z2},{getOwnPropertySymbols:function(a){var t=KB.f;return t?t(G2(a)):[]}});var U2=li;U2("asyncIterator");var V2=li;V2("hasInstance");var q2=li;q2("isConcatSpreadable");var K2=li;K2("iterator");var X2=li;X2("match");var Z2=li;Z2("matchAll");var J2=li;J2("replace");var Q2=li;Q2("search");var eee=li;eee("species");var tee=li;tee("split");var ree=li,iee=EB;ree("toPrimitive");iee();var nee=ha,aee=li,oee=gp;aee("toStringTag");oee(nee("Symbol"),"Symbol");var see=li;see("unscopables");var lee=Dr,uee=gp;uee(lee.JSON,"JSON",!0);var hee=tr,cee=hee.Symbol,dee=cee,XB=dee,fee=Or,vee=Ga.f,oj=fee("metadata"),sj=Function.prototype;sj[oj]===void 0&&vee(sj,oj,{value:null});var pee=li;pee("asyncDispose");var mee=li;mee("dispose");var gee=li;gee("metadata");var yee=XB,bee=yee,_ee=ha,wee=Zt,NN=_ee("Symbol"),kee=NN.keyFor,See=wee(NN.prototype.valueOf),ZB=NN.isRegisteredSymbol||function(a){try{return kee(See(a))!==void 0}catch(t){return!1}},xee=He,Tee=ZB;xee({target:"Symbol",stat:!0},{isRegisteredSymbol:Tee});var Cee=Hg,JB=ha,Eee=Zt,Dee=C_,Oee=Or,SC=JB("Symbol"),lj=SC.isWellKnownSymbol,QB=JB("Object","getOwnPropertyNames"),$ee=Eee(SC.prototype.valueOf),uj=Cee("wks");for(QT=0,xA=QB(SC),hj=xA.length;QT<hj;QT++)try{SA=xA[QT],Dee(SC[SA])&&Oee(SA)}catch(e){}var SA,QT,xA,hj,eH=function(a){if(lj&&lj(a))return!0;try{for(var t=$ee(a),n=0,h=QB(uj),d=h.length;n<d;n++)if(uj[h[n]]==t)return!0}catch(p){}return!1},Pee=He,Iee=eH;Pee({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Iee});var Mee=li;Mee("matcher");var Aee=li;Aee("observable");var Ree=He,Nee=ZB;Ree({target:"Symbol",stat:!0},{isRegistered:Nee});var Lee=He,Fee=eH;Lee({target:"Symbol",stat:!0,forced:!0},{isWellKnown:Fee});var jee=li;jee("metadataKey");var Yee=li;Yee("patternMatch");var Bee=li;Bee("replaceAll");var Hee=bee,Wee=Hee,LN=Wee,Tg=Be(LN),Gee=F_,zee=Gee.f("iterator"),Uee=zee,tH=Uee,Vee=tH,qee=Vee,Kee=qee,Xee=Kee,rH=Xee,Zee=Be(rH);function bt(e){return bt=typeof Tg=="function"&&typeof Zee=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Tg=="function"&&a.constructor===Tg&&a!==Tg.prototype?"symbol":typeof a},bt(e)}var Jee=F_,Qee=Jee.f("toPrimitive"),ete=Qee,tte=ete,rte=tte,ite=rte,nte=ite,ate=nte,ote=ate,ste=Be(ote);function lte(e,a){if(bt(e)!=="object"||e===null)return e;var t=e[ste];if(t!==void 0){var n=t.call(e,a);if(bt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}function iH(e){var a=lte(e,"string");return bt(a)==="symbol"?a:String(a)}function cj(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),KC(e,iH(n.key),n)}}function _r(e,a,t){return a&&cj(e.prototype,a),t&&cj(e,t),KC(e,"prototype",{writable:!1}),e}var ute=He,hte=wd;ute({target:"Array",stat:!0},{isArray:hte});var cte=tr,dte=cte.Array.isArray,fte=dte,nH=fte,vte=nH,pte=vte,mte=pte,gte=mte,yte=gte,aH=Be(yte);function bte(e){if(aH(e))return e}var _te=Xi,wte=wd,kte=TypeError,Ste=Object.getOwnPropertyDescriptor,xte=_te&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),oH=xte?function(e,a){if(wte(e)&&!Ste(e,"length").writable)throw new kte("Cannot set read only .length");return e.length=a}:function(e,a){return e.length=a},Tte=He,Cte=ua,Ete=Ua,Dte=oH,Ote=XC,$te=Yt,Pte=$te(function(){return[].push.call({length:4294967296},1)!==4294967297}),Ite=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},Mte=Pte||!Ite();Tte({target:"Array",proto:!0,forced:Mte},{push:function(a){var t=Cte(this),n=Ete(t),h=arguments.length;Ote(n+h);for(var d=0;d<h;d++)t[n]=arguments[d],n++;return Dte(t,n),n}});var Ate=tr,Yr=function(e){return Ate[e+"Prototype"]},Rte=Yr,Nte=Rte("Array").push,Lte=Cr,Fte=Nte,TA=Array.prototype,jte=function(e){var a=e.push;return e===TA||Lte(TA,e)&&a===TA.push?Fte:a},Yte=jte,Bte=Yte,Hte=Bte,Wte=Hte,Gte=Wte,zte=Gte,sH=zte,Ute=Be(sH);function Vte(e,a){var t=e==null?null:typeof Tg!="undefined"&&yB(e)||e["@@iterator"];if(t!=null){var n,h,d,p,y=[],b=!0,w=!1;try{if(d=(t=t.call(e)).next,a===0){if(Object(t)!==t)return;b=!1}else for(;!(b=(n=d.call(t)).done)&&(Ute(y).call(y,n.value),y.length!==a);b=!0);}catch($){w=!0,h=$}finally{try{if(!b&&t.return!=null&&(p=t.return(),Object(p)!==p))return}finally{if(w)throw h}}return y}}var qte=He,dj=wd,Kte=VC,Xte=an,fj=$_,Zte=Ua,Jte=Qs,Qte=Jg,ere=Or,tre=R_,rre=Y_,ire=tre("slice"),nre=ere("species"),CA=Array,are=Math.max;qte({target:"Array",proto:!0,forced:!ire},{slice:function(a,t){var n=Jte(this),h=Zte(n),d=fj(a,h),p=fj(t===void 0?h:t,h),y,b,w;if(dj(n)&&(y=n.constructor,Kte(y)&&(y===CA||dj(y.prototype))?y=void 0:Xte(y)&&(y=y[nre],y===null&&(y=void 0)),y===CA||y===void 0))return rre(n,d,p);for(b=new(y===void 0?CA:y)(are(p-d,0)),w=0;d<p;d++,w++)d in n&&Qte(b,w,n[d]);return b.length=w,b}});var ore=Yr,sre=ore("Array").slice,lre=Cr,ure=sre,EA=Array.prototype,hre=function(e){var a=e.slice;return e===EA||lre(EA,e)&&a===EA.slice?ure:a},cre=hre,lH=cre,dre=lH,fre=dre,vre=fre,pre=vre,uH=pre,mre=Be(uH),gre=vB,yre=gre,bre=yre,_re=bre,wre=_re,hH=Be(wre);function IR(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}function cH(e,a){var t;if(e){if(typeof e=="string")return IR(e,a);var n=mre(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return hH(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IR(e,a)}}function kre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wn(e,a){return bte(e)||Vte(e,a)||cH(e,a)||kre()}function Sre(e){if(aH(e))return IR(e)}function xre(e){if(typeof Tg!="undefined"&&yB(e)!=null||e["@@iterator"]!=null)return hH(e)}function Tre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pi(e){return Sre(e)||xre(e)||cH(e)||Tre()}var Cre=XB,Qg=Be(Cre),Ere=Yr,Dre=Ere("Array").concat,Ore=Cr,$re=Dre,DA=Array.prototype,Pre=function(e){var a=e.concat;return e===DA||Ore(DA,e)&&a===DA.concat?$re:a},Ire=Pre,Mre=Ire,Are=Mre,Cn=Be(Are),Rre=lH,To=Be(Rre),Nre=ha,Lre=Zt,Fre=N_,jre=L_,Yre=xo,Bre=Lre([].concat),FN=Nre("Reflect","ownKeys")||function(a){var t=Fre.f(Yre(a)),n=jre.f;return n?Bre(t,n(a)):t},Hre=He,Wre=FN;Hre({target:"Reflect",stat:!0},{ownKeys:Wre});var Gre=tr,zre=Gre.Reflect.ownKeys,Ure=zre,Vre=Ure,qre=Vre,Kre=Be(qre),Xre=nH,Ot=Be(Xre),Zre=He,Jre=Nh.map,Qre=R_,eie=Qre("map");Zre({target:"Array",proto:!0,forced:!eie},{map:function(a){return Jre(this,a,arguments.length>1?arguments[1]:void 0)}});var tie=Yr,rie=tie("Array").map,iie=Cr,nie=rie,OA=Array.prototype,aie=function(e){var a=e.map;return e===OA||iie(OA,e)&&a===OA.map?nie:a},oie=aie,sie=oie,lie=sie,xn=Be(lie),uie=He,hie=ua,dH=P_,cie=Yt,die=cie(function(){dH(1)});uie({target:"Object",stat:!0,forced:die},{keys:function(a){return dH(hie(a))}});var fie=tr,vie=fie.Object.keys,pie=vie,mie=pie,gie=mie,Ki=Be(gie),yie=He,bie=Zt,fH=Date,_ie=bie(fH.prototype.getTime);yie({target:"Date",stat:!0},{now:function(){return _ie(new fH)}});var wie=tr,kie=wie.Date.now,Sie=kie,xie=Sie,Tie=xie,bo=Be(Tie),vH=Zt,Cie=za,Eie=an,Die=Ni,vj=Y_,Oie=x_,pH=Function,$ie=vH([].concat),Pie=vH([].join),$A={},Iie=function(e,a,t){if(!Die($A,a)){for(var n=[],h=0;h<a;h++)n[h]="a["+h+"]";$A[a]=pH("C,a","return new C("+Pie(n,",")+")")}return $A[a](e,t)},mH=Oie?pH.bind:function(a){var t=Cie(this),n=t.prototype,h=vj(arguments,1),d=function(){var y=$ie(h,vj(arguments));return this instanceof d?Iie(t,y.length,y):t.apply(a,y)};return Eie(n)&&(d.prototype=n),d},Mie=He,pj=mH;Mie({target:"Function",proto:!0,forced:Function.bind!==pj},{bind:pj});var Aie=Yr,Rie=Aie("Function").bind,Nie=Cr,Lie=Rie,PA=Function.prototype,Fie=function(e){var a=e.bind;return e===PA||Nie(PA,e)&&a===PA.bind?Lie:a},jie=Fie,gH=jie,Yie=gH,Ee=Be(Yie),Bie=Yt,ey=function(e,a){var t=[][e];return!!t&&Bie(function(){t.call(null,a||function(){return 1},1)})},Hie=Nh.forEach,Wie=ey,Gie=Wie("forEach"),zie=Gie?[].forEach:function(a){return Hie(this,a,arguments.length>1?arguments[1]:void 0)},Uie=He,mj=zie;Uie({target:"Array",proto:!0,forced:[].forEach!==mj},{forEach:mj});var Vie=Yr,qie=Vie("Array").forEach,Kie=qie,Xie=Kie,Zie=Ah,Jie=Ni,Qie=Cr,ene=Xie,IA=Array.prototype,tne={DOMTokenList:!0,NodeList:!0},yH=function(e){var a=e.forEach;return e===IA||Qie(IA,e)&&a===IA.forEach||Jie(tne,Zie(e))?ene:a},rne=yH,Tt=Be(rne),ine=He,nne=Zt,ane=wd,one=nne([].reverse),gj=[1,2];ine({target:"Array",proto:!0,forced:String(gj)===String(gj.reverse())},{reverse:function(){return ane(this)&&(this.length=this.length),one(this)}});var sne=Yr,lne=sne("Array").reverse,une=Cr,hne=lne,MA=Array.prototype,cne=function(e){var a=e.reverse;return e===MA||une(MA,e)&&a===MA.reverse?hne:a},dne=cne,bH=dne,fne=bH,vne=Be(fne),yj=Vg,pne=TypeError,_H=function(e,a){if(!delete e[a])throw new pne("Cannot delete property "+yj(a)+" of "+yj(e))},mne=He,gne=ua,yne=$_,bne=T_,_ne=Ua,wne=oH,kne=XC,Sne=ZC,xne=Jg,AA=_H,Tne=R_,Cne=Tne("splice"),Ene=Math.max,Dne=Math.min;mne({target:"Array",proto:!0,forced:!Cne},{splice:function(a,t){var n=gne(this),h=_ne(n),d=yne(a,h),p=arguments.length,y,b,w,$,A,R;for(p===0?y=b=0:p===1?(y=0,b=h-d):(y=p-2,b=Dne(Ene(bne(t),0),h-d)),kne(h+y-b),w=Sne(n,b),$=0;$<b;$++)A=d+$,A in n&&xne(w,$,n[A]);if(w.length=b,y<b){for($=d;$<h-b;$++)A=$+b,R=$+y,A in n?n[R]=n[A]:AA(n,R);for($=h;$>h-b+y;$--)AA(n,$-1)}else if(y>b)for($=h-b;$>d;$--)A=$+b-1,R=$+y-1,A in n?n[R]=n[A]:AA(n,R);for($=0;$<y;$++)n[$+d]=arguments[$+2];return wne(n,h-b+y),w}});var One=Yr,$ne=One("Array").splice,Pne=Cr,Ine=$ne,RA=Array.prototype,Mne=function(e){var a=e.splice;return e===RA||Pne(RA,e)&&a===RA.splice?Ine:a},Ane=Mne,Rne=Ane,Nne=Rne,Ks=Be(Nne),bj=Xi,Lne=Zt,Fne=on,jne=Yt,NA=P_,Yne=L_,Bne=D_,Hne=ua,Wne=zC,gg=Object.assign,_j=Object.defineProperty,Gne=Lne([].concat),zne=!gg||jne(function(){if(bj&&gg({b:1},gg(_j({},"a",{enumerable:!0,get:function(){_j(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},a={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(h){a[h]=h}),gg({},e)[t]!==7||NA(gg({},a)).join("")!==n})?function(a,t){for(var n=Hne(a),h=arguments.length,d=1,p=Yne.f,y=Bne.f;h>d;)for(var b=Wne(arguments[d++]),w=p?Gne(NA(b),p(b)):NA(b),$=w.length,A=0,R;$>A;)R=w[A++],(!bj||Fne(y,b,R))&&(n[R]=b[R]);return n}:gg,Une=He,wj=zne;Une({target:"Object",stat:!0,forced:Object.assign!==wj},{assign:wj});var Vne=tr,qne=Vne.Object.assign,Kne=qne,Xne=Kne,Zne=Xne,f_=Be(Zne),Jne=He,Qne=xN.includes,eae=Yt,tae=eae(function(){return!Array(1).includes()});Jne({target:"Array",proto:!0,forced:tae},{includes:function(a){return Qne(this,a,arguments.length>1?arguments[1]:void 0)}});var rae=Yr,iae=rae("Array").includes,nae=an,aae=Mh,oae=Or,sae=oae("match"),lae=function(e){var a;return nae(e)&&((a=e[sae])!==void 0?!!a:aae(e)==="RegExp")},uae=lae,hae=TypeError,cae=function(e){if(uae(e))throw new hae("The method doesn't accept regular expressions");return e},dae=Or,fae=dae("match"),vae=function(e){var a=/./;try{"/./"[e](a)}catch(t){try{return a[fae]=!1,"/./"[e](a)}catch(n){}}return!1},pae=He,mae=Zt,gae=cae,yae=Gg,kj=Qo,bae=vae,_ae=mae("".indexOf);pae({target:"String",proto:!0,forced:!bae("includes")},{includes:function(a){return!!~_ae(kj(yae(this)),kj(gae(a)),arguments.length>1?arguments[1]:void 0)}});var wae=Yr,kae=wae("String").includes,Sj=Cr,Sae=iae,xae=kae,LA=Array.prototype,FA=String.prototype,Tae=function(e){var a=e.includes;return e===LA||Sj(LA,e)&&a===LA.includes?Sae:typeof e=="string"||e===FA||Sj(FA,e)&&a===FA.includes?xae:a},Cae=Tae,Eae=Cae,Dae=Eae,Rg=Be(Dae),Oae=He,$ae=Yt,Pae=ua,wH=I_,Iae=J6,Mae=$ae(function(){wH(1)});Oae({target:"Object",stat:!0,forced:Mae,sham:!Iae},{getPrototypeOf:function(a){return wH(Pae(a))}});var Aae=tr,Rae=Aae.Object.getPrototypeOf,Nae=Rae,kH=Nae,Lae=kH,xj=Be(Lae),Fae=He,jae=Nh.filter,Yae=R_,Bae=Yae("filter");Fae({target:"Array",proto:!0,forced:!Bae},{filter:function(a){return jae(this,a,arguments.length>1?arguments[1]:void 0)}});var Hae=Yr,Wae=Hae("Array").filter,Gae=Cr,zae=Wae,jA=Array.prototype,Uae=function(e){var a=e.filter;return e===jA||Gae(jA,e)&&a===jA.filter?zae:a},Vae=Uae,qae=Vae,Kae=qae,Rt=Be(Kae),SH=Xi,Xae=Yt,xH=Zt,Zae=I_,Jae=P_,Qae=Qs,eoe=D_.f,TH=xH(eoe),toe=xH([].push),roe=SH&&Xae(function(){var e=Object.create(null);return e[2]=2,!TH(e,2)}),Tj=function(e){return function(a){for(var t=Qae(a),n=Jae(t),h=roe&&Zae(t)===null,d=n.length,p=0,y=[],b;d>p;)b=n[p++],(!SH||(h?b in t:TH(t,b)))&&toe(y,e?[b,t[b]]:t[b]);return y}},CH={entries:Tj(!0),values:Tj(!1)},ioe=He,noe=CH.values;ioe({target:"Object",stat:!0},{values:function(a){return noe(a)}});var aoe=tr,ooe=aoe.Object.values,soe=ooe,loe=soe,uoe=loe,EH=Be(uoe),jN=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,hoe=Zt,coe=Gg,doe=Qo,MR=jN,Cj=hoe("".replace),foe=RegExp("^["+MR+"]+"),voe=RegExp("(^|[^"+MR+"])["+MR+"]+$"),poe=function(e){return function(a){var t=doe(coe(a));return e&1&&(t=Cj(t,foe,"")),e&2&&(t=Cj(t,voe,"$1")),t}},DH={trim:poe(3)},OH=Dr,moe=Yt,goe=Zt,yoe=Qo,boe=DH.trim,Ej=jN,t_=OH.parseInt,Dj=OH.Symbol,Oj=Dj&&Dj.iterator,$H=/^[+-]?0x/i,_oe=goe($H.exec),woe=t_(Ej+"08")!==8||t_(Ej+"0x16")!==22||Oj&&!moe(function(){t_(Object(Oj))}),koe=woe?function(a,t){var n=boe(yoe(a));return t_(n,t>>>0||(_oe($H,n)?16:10))}:t_,Soe=He,$j=koe;Soe({global:!0,forced:parseInt!==$j},{parseInt:$j});var xoe=tr,Toe=xoe.parseInt,Coe=Toe,Eoe=Coe,Doe=Eoe,Vs=Be(Doe),Ooe=He,$oe=SN,Poe=xN.indexOf,Ioe=ey,AR=$oe([].indexOf),PH=!!AR&&1/AR([1],1,-0)<0,Moe=PH||!Ioe("indexOf");Ooe({target:"Array",proto:!0,forced:Moe},{indexOf:function(a){var t=arguments.length>1?arguments[1]:void 0;return PH?AR(this,a,t)||0:Poe(this,a,t)}});var Aoe=Yr,Roe=Aoe("Array").indexOf,Noe=Cr,Loe=Roe,YA=Array.prototype,Foe=function(e){var a=e.indexOf;return e===YA||Noe(YA,e)&&a===YA.indexOf?Loe:a},joe=Foe,Yoe=joe,Boe=Yoe,oi=Be(Boe),Hoe=He,Woe=CH.entries;Hoe({target:"Object",stat:!0},{entries:function(a){return Woe(a)}});var Goe=tr,zoe=Goe.Object.entries,Uoe=zoe,Voe=Uoe,qoe=Voe,Koe=Be(qoe),Xoe=He,Zoe=Xi,Joe=mp;Xoe({target:"Object",stat:!0,sham:!Zoe},{create:Joe});var Qoe=tr,ese=Qoe.Object,tse=function(a,t){return ese.create(a,t)},rse=tse,IH=rse,ise=IH,nE=Be(ise),RR=tr,nse=Kg;RR.JSON||(RR.JSON={stringify:JSON.stringify});var ase=function(a,t,n){return nse(RR.JSON.stringify,null,arguments)},ose=ase,sse=ose,lse=sse,Ha=Be(lse),use=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",hse=TypeError,MH=function(e,a){if(e<a)throw new hse("Not enough arguments");return e},AH=Dr,cse=Kg,dse=si,fse=use,vse=bd,pse=Y_,mse=MH,gse=AH.Function,yse=/MSIE .\./.test(vse)||fse&&function(){var e=AH.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),RH=function(e,a){var t=a?2:1;return yse?function(n,h){var d=mse(arguments.length,1)>t,p=dse(n)?n:gse(n),y=d?pse(arguments,t):[],b=d?function(){cse(p,this,y)}:p;return a?e(b,h):e(b)}:e},bse=He,NH=Dr,_se=RH,Pj=_se(NH.setInterval,!0);bse({global:!0,bind:!0,forced:NH.setInterval!==Pj},{setInterval:Pj});var wse=He,LH=Dr,kse=RH,Ij=kse(LH.setTimeout,!0);wse({global:!0,bind:!0,forced:LH.setTimeout!==Ij},{setTimeout:Ij});var Sse=tr,xse=Sse.setTimeout,Tse=xse,Zo=Be(Tse),Cse=ua,Mj=$_,Ese=Ua,Dse=function(a){for(var t=Cse(this),n=Ese(t),h=arguments.length,d=Mj(h>1?arguments[1]:void 0,n),p=h>2?arguments[2]:void 0,y=p===void 0?n:Mj(p,n);y>d;)t[d++]=a;return t},Ose=He,$se=Dse;Ose({target:"Array",proto:!0},{fill:$se});var Pse=Yr,Ise=Pse("Array").fill,Mse=Cr,Ase=Ise,BA=Array.prototype,Rse=function(e){var a=e.fill;return e===BA||Mse(BA,e)&&a===BA.fill?Ase:a},Nse=Rse,Lse=Nse,Fse=Lse,FH=Be(Fse),jH={exports:{}};(function(e){e.exports=a;function a(n){if(n)return t(n)}function t(n){for(var h in a.prototype)n[h]=a.prototype[h];return n}a.prototype.on=a.prototype.addEventListener=function(n,h){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(h),this},a.prototype.once=function(n,h){function d(){this.off(n,d),h.apply(this,arguments)}return d.fn=h,this.on(n,d),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(n,h){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var d=this._callbacks["$"+n];if(!d)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var p,y=0;y<d.length;y++)if(p=d[y],p===h||p.fn===h){d.splice(y,1);break}return d.length===0&&delete this._callbacks["$"+n],this},a.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var h=new Array(arguments.length-1),d=this._callbacks["$"+n],p=1;p<arguments.length;p++)h[p-1]=arguments[p];if(d){d=d.slice(0);for(var p=0,y=d.length;p<y;++p)d[p].apply(this,h)}return this},a.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},a.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(jH);var jse=jH.exports,YN=Be(jse);function Zs(){return Zs=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Zs.apply(this,arguments)}function es(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}function eC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var NR;typeof Object.assign!="function"?NR=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(a),n=1;n<arguments.length;n++){var h=arguments[n];if(h!=null)for(var d in h)h.hasOwnProperty(d)&&(t[d]=h[d])}return t}:NR=Object.assign;var up=NR,Aj=["","webkit","Moz","MS","ms","o"],Yse=typeof document=="undefined"?{style:{}}:document.createElement("div"),Bse="function",Cg=Math.round,hp=Math.abs,BN=Date.now;function aE(e,a){for(var t,n,h=a[0].toUpperCase()+a.slice(1),d=0;d<Aj.length;){if(t=Aj[d],n=t?t+h:a,n in e)return n;d++}}var Dh;typeof window=="undefined"?Dh={}:Dh=window;var YH=aE(Yse.style,"touchAction"),BH=YH!==void 0;function Hse(){if(!BH)return!1;var e={},a=Dh.CSS&&Dh.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=a?Dh.CSS.supports("touch-action",t):!0}),e}var HH="compute",WH="auto",LR="manipulation",sp="none",v_="pan-x",p_="pan-y",tC=Hse(),Wse=/mobile|tablet|ip(ad|hone|od)|android/i,GH="ontouchstart"in Dh,Gse=aE(Dh,"PointerEvent")!==void 0,zse=GH&&Wse.test(navigator.userAgent),H_="touch",Use="pen",HN="mouse",Vse="kinect",qse=25,la=1,yp=2,Ai=4,Wa=8,xC=1,W_=2,G_=4,z_=8,Ng=16,tu=W_|G_,lp=z_|Ng,zH=tu|lp,UH=["x","y"],TC=["clientX","clientY"];function Oh(e,a,t){var n;if(e)if(e.forEach)e.forEach(a,t);else if(e.length!==void 0)for(n=0;n<e.length;)a.call(t,e[n],n,e),n++;else for(n in e)e.hasOwnProperty(n)&&a.call(t,e[n],n,e)}function oE(e,a){return typeof e===Bse?e.apply(a&&a[0]||void 0,a):e}function np(e,a){return e.indexOf(a)>-1}function Kse(e){if(np(e,sp))return sp;var a=np(e,v_),t=np(e,p_);return a&&t?sp:a||t?a?v_:p_:np(e,LR)?LR:WH}var VH=function(){function e(t,n){this.manager=t,this.set(n)}var a=e.prototype;return a.set=function(n){n===HH&&(n=this.compute()),BH&&this.manager.element.style&&tC[n]&&(this.manager.element.style[YH]=n),this.actions=n.toLowerCase().trim()},a.update=function(){this.set(this.manager.options.touchAction)},a.compute=function(){var n=[];return Oh(this.manager.recognizers,function(h){oE(h.options.enable,[h])&&(n=n.concat(h.getTouchAction()))}),Kse(n.join(" "))},a.preventDefaults=function(n){var h=n.srcEvent,d=n.offsetDirection;if(this.manager.session.prevented){h.preventDefault();return}var p=this.actions,y=np(p,sp)&&!tC[sp],b=np(p,p_)&&!tC[p_],w=np(p,v_)&&!tC[v_];if(y){var $=n.pointers.length===1,A=n.distance<2,R=n.deltaTime<250;if($&&A&&R)return}if(!(w&&b)&&(y||b&&d&tu||w&&d&lp))return this.preventSrc(h)},a.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},e}();function WN(e,a){for(;e;){if(e===a)return!0;e=e.parentNode}return!1}function qH(e){var a=e.length;if(a===1)return{x:Cg(e[0].clientX),y:Cg(e[0].clientY)};for(var t=0,n=0,h=0;h<a;)t+=e[h].clientX,n+=e[h].clientY,h++;return{x:Cg(t/a),y:Cg(n/a)}}function Rj(e){for(var a=[],t=0;t<e.pointers.length;)a[t]={clientX:Cg(e.pointers[t].clientX),clientY:Cg(e.pointers[t].clientY)},t++;return{timeStamp:BN(),pointers:a,center:qH(a),deltaX:e.deltaX,deltaY:e.deltaY}}function CC(e,a,t){t||(t=UH);var n=a[t[0]]-e[t[0]],h=a[t[1]]-e[t[1]];return Math.sqrt(n*n+h*h)}function FR(e,a,t){t||(t=UH);var n=a[t[0]]-e[t[0]],h=a[t[1]]-e[t[1]];return Math.atan2(h,n)*180/Math.PI}function KH(e,a){return e===a?xC:hp(e)>=hp(a)?e<0?W_:G_:a<0?z_:Ng}function Xse(e,a){var t=a.center,n=e.offsetDelta||{},h=e.prevDelta||{},d=e.prevInput||{};(a.eventType===la||d.eventType===Ai)&&(h=e.prevDelta={x:d.deltaX||0,y:d.deltaY||0},n=e.offsetDelta={x:t.x,y:t.y}),a.deltaX=h.x+(t.x-n.x),a.deltaY=h.y+(t.y-n.y)}function XH(e,a,t){return{x:a/e||0,y:t/e||0}}function Zse(e,a){return CC(a[0],a[1],TC)/CC(e[0],e[1],TC)}function Jse(e,a){return FR(a[1],a[0],TC)+FR(e[1],e[0],TC)}function Qse(e,a){var t=e.lastInterval||a,n=a.timeStamp-t.timeStamp,h,d,p,y;if(a.eventType!==Wa&&(n>qse||t.velocity===void 0)){var b=a.deltaX-t.deltaX,w=a.deltaY-t.deltaY,$=XH(n,b,w);d=$.x,p=$.y,h=hp($.x)>hp($.y)?$.x:$.y,y=KH(b,w),e.lastInterval=a}else h=t.velocity,d=t.velocityX,p=t.velocityY,y=t.direction;a.velocity=h,a.velocityX=d,a.velocityY=p,a.direction=y}function ele(e,a){var t=e.session,n=a.pointers,h=n.length;t.firstInput||(t.firstInput=Rj(a)),h>1&&!t.firstMultiple?t.firstMultiple=Rj(a):h===1&&(t.firstMultiple=!1);var d=t.firstInput,p=t.firstMultiple,y=p?p.center:d.center,b=a.center=qH(n);a.timeStamp=BN(),a.deltaTime=a.timeStamp-d.timeStamp,a.angle=FR(y,b),a.distance=CC(y,b),Xse(t,a),a.offsetDirection=KH(a.deltaX,a.deltaY);var w=XH(a.deltaTime,a.deltaX,a.deltaY);a.overallVelocityX=w.x,a.overallVelocityY=w.y,a.overallVelocity=hp(w.x)>hp(w.y)?w.x:w.y,a.scale=p?Zse(p.pointers,n):1,a.rotation=p?Jse(p.pointers,n):0,a.maxPointers=t.prevInput?a.pointers.length>t.prevInput.maxPointers?a.pointers.length:t.prevInput.maxPointers:a.pointers.length,Qse(t,a);var $=e.element,A=a.srcEvent,R;A.composedPath?R=A.composedPath()[0]:A.path?R=A.path[0]:R=A.target,WN(R,$)&&($=R),a.target=$}function tle(e,a,t){var n=t.pointers.length,h=t.changedPointers.length,d=a&la&&n-h===0,p=a&(Ai|Wa)&&n-h===0;t.isFirst=!!d,t.isFinal=!!p,d&&(e.session={}),t.eventType=a,ele(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function m_(e){return e.trim().split(/\s+/g)}function r_(e,a,t){Oh(m_(a),function(n){e.addEventListener(n,t,!1)})}function i_(e,a,t){Oh(m_(a),function(n){e.removeEventListener(n,t,!1)})}function Nj(e){var a=e.ownerDocument||e;return a.defaultView||a.parentWindow||window}var ty=function(){function e(t,n){var h=this;this.manager=t,this.callback=n,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(d){oE(t.options.enable,[t])&&h.handler(d)},this.init()}var a=e.prototype;return a.handler=function(){},a.init=function(){this.evEl&&r_(this.element,this.evEl,this.domHandler),this.evTarget&&r_(this.target,this.evTarget,this.domHandler),this.evWin&&r_(Nj(this.element),this.evWin,this.domHandler)},a.destroy=function(){this.evEl&&i_(this.element,this.evEl,this.domHandler),this.evTarget&&i_(this.target,this.evTarget,this.domHandler),this.evWin&&i_(Nj(this.element),this.evWin,this.domHandler)},e}();function cp(e,a,t){if(e.indexOf&&!t)return e.indexOf(a);for(var n=0;n<e.length;){if(t&&e[n][t]==a||!t&&e[n]===a)return n;n++}return-1}var rle={pointerdown:la,pointermove:yp,pointerup:Ai,pointercancel:Wa,pointerout:Wa},ile={2:H_,3:Use,4:HN,5:Vse},ZH="pointerdown",JH="pointermove pointerup pointercancel";Dh.MSPointerEvent&&!Dh.PointerEvent&&(ZH="MSPointerDown",JH="MSPointerMove MSPointerUp MSPointerCancel");var QH=function(e){es(a,e);function a(){var n,h=a.prototype;return h.evEl=ZH,h.evWin=JH,n=e.apply(this,arguments)||this,n.store=n.manager.session.pointerEvents=[],n}var t=a.prototype;return t.handler=function(h){var d=this.store,p=!1,y=h.type.toLowerCase().replace("ms",""),b=rle[y],w=ile[h.pointerType]||h.pointerType,$=w===H_,A=cp(d,h.pointerId,"pointerId");b&la&&(h.button===0||$)?A<0&&(d.push(h),A=d.length-1):b&(Ai|Wa)&&(p=!0),!(A<0)&&(d[A]=h,this.callback(this.manager,b,{pointers:d,changedPointers:[h],pointerType:w,srcEvent:h}),p&&d.splice(A,1))},a}(ty);function g_(e){return Array.prototype.slice.call(e,0)}function GN(e,a,t){for(var n=[],h=[],d=0;d<e.length;){var p=a?e[d][a]:e[d];cp(h,p)<0&&n.push(e[d]),h[d]=p,d++}return t&&(a?n=n.sort(function(y,b){return y[a]>b[a]}):n=n.sort()),n}var nle={touchstart:la,touchmove:yp,touchend:Ai,touchcancel:Wa},ale="touchstart touchmove touchend touchcancel",zN=function(e){es(a,e);function a(){var n;return a.prototype.evTarget=ale,n=e.apply(this,arguments)||this,n.targetIds={},n}var t=a.prototype;return t.handler=function(h){var d=nle[h.type],p=ole.call(this,h,d);p&&this.callback(this.manager,d,{pointers:p[0],changedPointers:p[1],pointerType:H_,srcEvent:h})},a}(ty);function ole(e,a){var t=g_(e.touches),n=this.targetIds;if(a&(la|yp)&&t.length===1)return n[t[0].identifier]=!0,[t,t];var h,d,p=g_(e.changedTouches),y=[],b=this.target;if(d=t.filter(function(w){return WN(w.target,b)}),a===la)for(h=0;h<d.length;)n[d[h].identifier]=!0,h++;for(h=0;h<p.length;)n[p[h].identifier]&&y.push(p[h]),a&(Ai|Wa)&&delete n[p[h].identifier],h++;if(y.length)return[GN(d.concat(y),"identifier",!0),y]}var sle={mousedown:la,mousemove:yp,mouseup:Ai},lle="mousedown",ule="mousemove mouseup",UN=function(e){es(a,e);function a(){var n,h=a.prototype;return h.evEl=lle,h.evWin=ule,n=e.apply(this,arguments)||this,n.pressed=!1,n}var t=a.prototype;return t.handler=function(h){var d=sle[h.type];d&la&&h.button===0&&(this.pressed=!0),d&yp&&h.which!==1&&(d=Ai),this.pressed&&(d&Ai&&(this.pressed=!1),this.callback(this.manager,d,{pointers:[h],changedPointers:[h],pointerType:HN,srcEvent:h}))},a}(ty),hle=2500,Lj=25;function Fj(e){var a=e.changedPointers,t=a[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},h=this.lastTouches;this.lastTouches.push(n);var d=function(){var y=h.indexOf(n);y>-1&&h.splice(y,1)};setTimeout(d,hle)}}function cle(e,a){e&la?(this.primaryTouch=a.changedPointers[0].identifier,Fj.call(this,a)):e&(Ai|Wa)&&Fj.call(this,a)}function dle(e){for(var a=e.srcEvent.clientX,t=e.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var h=this.lastTouches[n],d=Math.abs(a-h.x),p=Math.abs(t-h.y);if(d<=Lj&&p<=Lj)return!0}return!1}var e8=function(){var e=function(a){es(t,a);function t(h,d){var p;return p=a.call(this,h,d)||this,p.handler=function(y,b,w){var $=w.pointerType===H_,A=w.pointerType===HN;if(!(A&&w.sourceCapabilities&&w.sourceCapabilities.firesTouchEvents)){if($)cle.call(eC(eC(p)),b,w);else if(A&&dle.call(eC(eC(p)),w))return;p.callback(y,b,w)}},p.touch=new zN(p.manager,p.handler),p.mouse=new UN(p.manager,p.handler),p.primaryTouch=null,p.lastTouches=[],p}var n=t.prototype;return n.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(ty);return e}();function fle(e){var a,t=e.options.inputClass;return t?a=t:Gse?a=QH:zse?a=zN:GH?a=e8:a=UN,new a(e,tle)}function Eg(e,a,t){return Array.isArray(e)?(Oh(e,t[a],t),!0):!1}var pC=1,Jo=2,Lg=4,gd=8,$h=gd,y_=16,Jl=32,vle=1;function ple(){return vle++}function rC(e,a){var t=a.manager;return t?t.get(e):e}function jj(e){return e&y_?"cancel":e&gd?"end":e&Lg?"move":e&Jo?"start":""}var U_=function(){function e(t){t===void 0&&(t={}),this.options=Zs({enable:!0},t),this.id=ple(),this.manager=null,this.state=pC,this.simultaneous={},this.requireFail=[]}var a=e.prototype;return a.set=function(n){return up(this.options,n),this.manager&&this.manager.touchAction.update(),this},a.recognizeWith=function(n){if(Eg(n,"recognizeWith",this))return this;var h=this.simultaneous;return n=rC(n,this),h[n.id]||(h[n.id]=n,n.recognizeWith(this)),this},a.dropRecognizeWith=function(n){return Eg(n,"dropRecognizeWith",this)?this:(n=rC(n,this),delete this.simultaneous[n.id],this)},a.requireFailure=function(n){if(Eg(n,"requireFailure",this))return this;var h=this.requireFail;return n=rC(n,this),cp(h,n)===-1&&(h.push(n),n.requireFailure(this)),this},a.dropRequireFailure=function(n){if(Eg(n,"dropRequireFailure",this))return this;n=rC(n,this);var h=cp(this.requireFail,n);return h>-1&&this.requireFail.splice(h,1),this},a.hasRequireFailures=function(){return this.requireFail.length>0},a.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},a.emit=function(n){var h=this,d=this.state;function p(y){h.manager.emit(y,n)}d<gd&&p(h.options.event+jj(d)),p(h.options.event),n.additionalEvent&&p(n.additionalEvent),d>=gd&&p(h.options.event+jj(d))},a.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=Jl},a.canEmit=function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(Jl|pC)))return!1;n++}return!0},a.recognize=function(n){var h=up({},n);if(!oE(this.options.enable,[this,h])){this.reset(),this.state=Jl;return}this.state&($h|y_|Jl)&&(this.state=pC),this.state=this.process(h),this.state&(Jo|Lg|gd|y_)&&this.tryEmit(h)},a.process=function(n){},a.getTouchAction=function(){},a.reset=function(){},e}(),jR=function(e){es(a,e);function a(n){var h;return n===void 0&&(n={}),h=e.call(this,Zs({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},n))||this,h.pTime=!1,h.pCenter=!1,h._timer=null,h._input=null,h.count=0,h}var t=a.prototype;return t.getTouchAction=function(){return[LR]},t.process=function(h){var d=this,p=this.options,y=h.pointers.length===p.pointers,b=h.distance<p.threshold,w=h.deltaTime<p.time;if(this.reset(),h.eventType&la&&this.count===0)return this.failTimeout();if(b&&w&&y){if(h.eventType!==Ai)return this.failTimeout();var $=this.pTime?h.timeStamp-this.pTime<p.interval:!0,A=!this.pCenter||CC(this.pCenter,h.center)<p.posThreshold;this.pTime=h.timeStamp,this.pCenter=h.center,!A||!$?this.count=1:this.count+=1,this._input=h;var R=this.count%p.taps;if(R===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){d.state=$h,d.tryEmit()},p.interval),Jo):$h}return Jl},t.failTimeout=function(){var h=this;return this._timer=setTimeout(function(){h.state=Jl},this.options.interval),Jl},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===$h&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},a}(U_),Fg=function(e){es(a,e);function a(n){return n===void 0&&(n={}),e.call(this,Zs({pointers:1},n))||this}var t=a.prototype;return t.attrTest=function(h){var d=this.options.pointers;return d===0||h.pointers.length===d},t.process=function(h){var d=this.state,p=h.eventType,y=d&(Jo|Lg),b=this.attrTest(h);return y&&(p&Wa||!b)?d|y_:y||b?p&Ai?d|gd:d&Jo?d|Lg:Jo:Jl},a}(U_);function t8(e){return e===Ng?"down":e===z_?"up":e===W_?"left":e===G_?"right":""}var VN=function(e){es(a,e);function a(n){var h;return n===void 0&&(n={}),h=e.call(this,Zs({event:"pan",threshold:10,pointers:1,direction:zH},n))||this,h.pX=null,h.pY=null,h}var t=a.prototype;return t.getTouchAction=function(){var h=this.options.direction,d=[];return h&tu&&d.push(p_),h&lp&&d.push(v_),d},t.directionTest=function(h){var d=this.options,p=!0,y=h.distance,b=h.direction,w=h.deltaX,$=h.deltaY;return b&d.direction||(d.direction&tu?(b=w===0?xC:w<0?W_:G_,p=w!==this.pX,y=Math.abs(h.deltaX)):(b=$===0?xC:$<0?z_:Ng,p=$!==this.pY,y=Math.abs(h.deltaY))),h.direction=b,p&&y>d.threshold&&b&d.direction},t.attrTest=function(h){return Fg.prototype.attrTest.call(this,h)&&(this.state&Jo||!(this.state&Jo)&&this.directionTest(h))},t.emit=function(h){this.pX=h.deltaX,this.pY=h.deltaY;var d=t8(h.direction);d&&(h.additionalEvent=this.options.event+d),e.prototype.emit.call(this,h)},a}(Fg),r8=function(e){es(a,e);function a(n){return n===void 0&&(n={}),e.call(this,Zs({event:"swipe",threshold:10,velocity:.3,direction:tu|lp,pointers:1},n))||this}var t=a.prototype;return t.getTouchAction=function(){return VN.prototype.getTouchAction.call(this)},t.attrTest=function(h){var d=this.options.direction,p;return d&(tu|lp)?p=h.overallVelocity:d&tu?p=h.overallVelocityX:d&lp&&(p=h.overallVelocityY),e.prototype.attrTest.call(this,h)&&d&h.offsetDirection&&h.distance>this.options.threshold&&h.maxPointers===this.options.pointers&&hp(p)>this.options.velocity&&h.eventType&Ai},t.emit=function(h){var d=t8(h.offsetDirection);d&&this.manager.emit(this.options.event+d,h),this.manager.emit(this.options.event,h)},a}(Fg),i8=function(e){es(a,e);function a(n){return n===void 0&&(n={}),e.call(this,Zs({event:"pinch",threshold:0,pointers:2},n))||this}var t=a.prototype;return t.getTouchAction=function(){return[sp]},t.attrTest=function(h){return e.prototype.attrTest.call(this,h)&&(Math.abs(h.scale-1)>this.options.threshold||this.state&Jo)},t.emit=function(h){if(h.scale!==1){var d=h.scale<1?"in":"out";h.additionalEvent=this.options.event+d}e.prototype.emit.call(this,h)},a}(Fg),n8=function(e){es(a,e);function a(n){return n===void 0&&(n={}),e.call(this,Zs({event:"rotate",threshold:0,pointers:2},n))||this}var t=a.prototype;return t.getTouchAction=function(){return[sp]},t.attrTest=function(h){return e.prototype.attrTest.call(this,h)&&(Math.abs(h.rotation)>this.options.threshold||this.state&Jo)},a}(Fg),a8=function(e){es(a,e);function a(n){var h;return n===void 0&&(n={}),h=e.call(this,Zs({event:"press",pointers:1,time:251,threshold:9},n))||this,h._timer=null,h._input=null,h}var t=a.prototype;return t.getTouchAction=function(){return[WH]},t.process=function(h){var d=this,p=this.options,y=h.pointers.length===p.pointers,b=h.distance<p.threshold,w=h.deltaTime>p.time;if(this._input=h,!b||!y||h.eventType&(Ai|Wa)&&!w)this.reset();else if(h.eventType&la)this.reset(),this._timer=setTimeout(function(){d.state=$h,d.tryEmit()},p.time);else if(h.eventType&Ai)return $h;return Jl},t.reset=function(){clearTimeout(this._timer)},t.emit=function(h){this.state===$h&&(h&&h.eventType&Ai?this.manager.emit(this.options.event+"up",h):(this._input.timeStamp=BN(),this.manager.emit(this.options.event,this._input)))},a}(U_),o8={domEvents:!1,touchAction:HH,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Yj=[[n8,{enable:!1}],[i8,{enable:!1},["rotate"]],[r8,{direction:tu}],[VN,{direction:tu},["swipe"]],[jR],[jR,{event:"doubletap",taps:2},["tap"]],[a8]],mle=1,Bj=2;function Hj(e,a){var t=e.element;if(t.style){var n;Oh(e.options.cssProps,function(h,d){n=aE(t.style,d),a?(e.oldCssProps[n]=t.style[n],t.style[n]=h):t.style[n]=e.oldCssProps[n]||""}),a||(e.oldCssProps={})}}function gle(e,a){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=a,a.target.dispatchEvent(t)}var Wj=function(){function e(t,n){var h=this;this.options=up({},o8,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=fle(this),this.touchAction=new VH(this,this.options.touchAction),Hj(this,!0),Oh(this.options.recognizers,function(d){var p=h.add(new d[0](d[1]));d[2]&&p.recognizeWith(d[2]),d[3]&&p.requireFailure(d[3])},this)}var a=e.prototype;return a.set=function(n){return up(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},a.stop=function(n){this.session.stopped=n?Bj:mle},a.recognize=function(n){var h=this.session;if(!h.stopped){this.touchAction.preventDefaults(n);var d,p=this.recognizers,y=h.curRecognizer;(!y||y&&y.state&$h)&&(h.curRecognizer=null,y=null);for(var b=0;b<p.length;)d=p[b],h.stopped!==Bj&&(!y||d===y||d.canRecognizeWith(y))?d.recognize(n):d.reset(),!y&&d.state&(Jo|Lg|gd)&&(h.curRecognizer=d,y=d),b++}},a.get=function(n){if(n instanceof U_)return n;for(var h=this.recognizers,d=0;d<h.length;d++)if(h[d].options.event===n)return h[d];return null},a.add=function(n){if(Eg(n,"add",this))return this;var h=this.get(n.options.event);return h&&this.remove(h),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},a.remove=function(n){if(Eg(n,"remove",this))return this;var h=this.get(n);if(n){var d=this.recognizers,p=cp(d,h);p!==-1&&(d.splice(p,1),this.touchAction.update())}return this},a.on=function(n,h){if(n===void 0||h===void 0)return this;var d=this.handlers;return Oh(m_(n),function(p){d[p]=d[p]||[],d[p].push(h)}),this},a.off=function(n,h){if(n===void 0)return this;var d=this.handlers;return Oh(m_(n),function(p){h?d[p]&&d[p].splice(cp(d[p],h),1):delete d[p]}),this},a.emit=function(n,h){this.options.domEvents&&gle(n,h);var d=this.handlers[n]&&this.handlers[n].slice();if(!(!d||!d.length)){h.type=n,h.preventDefault=function(){h.srcEvent.preventDefault()};for(var p=0;p<d.length;)d[p](h),p++}},a.destroy=function(){this.element&&Hj(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),yle={touchstart:la,touchmove:yp,touchend:Ai,touchcancel:Wa},ble="touchstart",_le="touchstart touchmove touchend touchcancel",wle=function(e){es(a,e);function a(){var n,h=a.prototype;return h.evTarget=ble,h.evWin=_le,n=e.apply(this,arguments)||this,n.started=!1,n}var t=a.prototype;return t.handler=function(h){var d=yle[h.type];if(d===la&&(this.started=!0),!!this.started){var p=kle.call(this,h,d);d&(Ai|Wa)&&p[0].length-p[1].length===0&&(this.started=!1),this.callback(this.manager,d,{pointers:p[0],changedPointers:p[1],pointerType:H_,srcEvent:h})}},a}(ty);function kle(e,a){var t=g_(e.touches),n=g_(e.changedTouches);return a&(Ai|Wa)&&(t=GN(t.concat(n),"identifier",!0)),[t,n]}function s8(e,a,t){var n="DEPRECATED METHOD: "+a+`
`+t+` AT
`;return function(){var h=new Error("get-stack-trace"),d=h&&h.stack?h.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",p=window.console&&(window.console.warn||window.console.log);return p&&p.call(window.console,n,d),e.apply(this,arguments)}}var l8=s8(function(e,a,t){for(var n=Object.keys(a),h=0;h<n.length;)(!t||t&&e[n[h]]===void 0)&&(e[n[h]]=a[n[h]]),h++;return e},"extend","Use `assign`."),Sle=s8(function(e,a){return l8(e,a,!0)},"merge","Use `assign`.");function xle(e,a,t){var n=a.prototype,h;h=e.prototype=Object.create(n),h.constructor=e,h._super=n,t&&up(h,t)}function Gj(e,a){return function(){return e.apply(a,arguments)}}var u8=function(){var e=function(t,n){return n===void 0&&(n={}),new Wj(t,Zs({recognizers:Yj.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=zH,e.DIRECTION_DOWN=Ng,e.DIRECTION_LEFT=W_,e.DIRECTION_RIGHT=G_,e.DIRECTION_UP=z_,e.DIRECTION_HORIZONTAL=tu,e.DIRECTION_VERTICAL=lp,e.DIRECTION_NONE=xC,e.DIRECTION_DOWN=Ng,e.INPUT_START=la,e.INPUT_MOVE=yp,e.INPUT_END=Ai,e.INPUT_CANCEL=Wa,e.STATE_POSSIBLE=pC,e.STATE_BEGAN=Jo,e.STATE_CHANGED=Lg,e.STATE_ENDED=gd,e.STATE_RECOGNIZED=$h,e.STATE_CANCELLED=y_,e.STATE_FAILED=Jl,e.Manager=Wj,e.Input=ty,e.TouchAction=VH,e.TouchInput=zN,e.MouseInput=UN,e.PointerEventInput=QH,e.TouchMouseInput=e8,e.SingleTouchInput=wle,e.Recognizer=U_,e.AttrRecognizer=Fg,e.Tap=jR,e.Pan=VN,e.Swipe=r8,e.Pinch=i8,e.Rotate=n8,e.Press=a8,e.on=r_,e.off=i_,e.each=Oh,e.merge=Sle,e.extend=l8,e.bindFn=Gj,e.assign=up,e.inherit=xle,e.bindFn=Gj,e.prefixed=aE,e.toArray=g_,e.inArray=cp,e.uniqueArray=GN,e.splitStr=m_,e.boolOrFn=oE,e.hasParent=WN,e.addEventListeners=r_,e.removeEventListeners=i_,e.defaults=up({},o8,{preset:Yj}),e}();u8.defaults;var h8=u8;function qN(e,a){var t=typeof Qg!="undefined"&&A_(e)||e["@@iterator"];if(!t){if(Ot(e)||(t=Tle(e))||a){t&&(e=t);var n=0,h=function(){};return{s:h,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function Tle(e,a){var t;if(e){if(typeof e=="string")return zj(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zj(e,a)}}function zj(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}var KN=Qg("DELETE");function c8(e){for(var a,t=arguments.length,n=new Array(t>1?t-1:0),h=1;h<t;h++)n[h-1]=arguments[h];return XN.apply(void 0,Cn(a=[{},e]).call(a,n))}function XN(){var e=EC.apply(void 0,arguments);return f8(e),e}function EC(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];if(a.length<2)return a[0];if(a.length>2){var n;return EC.apply(void 0,Cn(n=[XN(a[0],a[1])]).call(n,Pi(To(a).call(a,2))))}var h=a[0],d=a[1];if(h instanceof Date&&d instanceof Date)return h.setTime(d.getTime()),h;var p=qN(Kre(d)),y;try{for(p.s();!(y=p.n()).done;){var b=y.value;Object.prototype.propertyIsEnumerable.call(d,b)&&(d[b]===KN?delete h[b]:h[b]!==null&&d[b]!==null&&bt(h[b])==="object"&&bt(d[b])==="object"&&!Ot(h[b])&&!Ot(d[b])?h[b]=EC(h[b],d[b]):h[b]=d8(d[b]))}}catch(w){p.e(w)}finally{p.f()}return h}function d8(e){return Ot(e)?xn(e).call(e,function(a){return d8(a)}):bt(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):EC({},e):e}function f8(e){for(var a=0,t=Ki(e);a<t.length;a++){var n=t[a];e[n]===KN?delete e[n]:bt(e[n])==="object"&&e[n]!==null&&f8(e[n])}}function Cle(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];return Ele(a.length?a:[bo()])}function Ele(e){var a=Dle(e),t=Wn(a,3),n=t[0],h=t[1],d=t[2],p=1,y=function(){var w=2091639*n+p*23283064365386963e-26;return n=h,h=d,d=w-(p=w|0)};return y.uint32=function(){return y()*4294967296},y.fract53=function(){return y()+(y()*2097152|0)*11102230246251565e-32},y.algorithm="Alea",y.seed=e,y.version="0.9",y}function Dle(){for(var e=Ole(),a=e(" "),t=e(" "),n=e(" "),h=0;h<arguments.length;h++)a-=e(h<0||arguments.length<=h?void 0:arguments[h]),a<0&&(a+=1),t-=e(h<0||arguments.length<=h?void 0:arguments[h]),t<0&&(t+=1),n-=e(h<0||arguments.length<=h?void 0:arguments[h]),n<0&&(n+=1);return[a,t,n]}function Ole(){var e=4022871197;return function(a){for(var t=a.toString(),n=0;n<t.length;n++){e+=t.charCodeAt(n);var h=.02519603282416938*e;e=h>>>0,h-=e,h*=e,e=h>>>0,h-=e,e+=h*4294967296}return(e>>>0)*23283064365386963e-26}}function $le(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var ZN=typeof window!="undefined"?window.Hammer||h8:function(){return $le()};function Ql(e){var a=this,t;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){a._dom.overlay.parentNode.removeChild(a._dom.overlay)});var n=ZN(this._dom.overlay);n.on("tap",Ee(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){n.destroy()});var h=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Tt(h).call(h,function(d){n.on(d,function(p){p.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(d){Ple(d.target,e)||a.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",a._onClick)})),this._escListener=function(d){("key"in d?d.key==="Escape":d.keyCode===27)&&a.deactivate()}}YN(Ql.prototype);Ql.current=null;Ql.prototype.destroy=function(){var e,a;this.deactivate();var t=qN(vne(e=Ks(a=this._cleanupQueue).call(a,0)).call(e)),n;try{for(t.s();!(n=t.n()).done;){var h=n.value;h()}}catch(d){t.e(d)}finally{t.f()}};Ql.prototype.activate=function(){Ql.current&&Ql.current.deactivate(),Ql.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)};Ql.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")};Ql.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function Ple(e,a){for(;e;){if(e===a)return!0;e=e.parentNode}return!1}var Ile=/^\/?Date\((-?\d+)/i,Mle=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ale=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Rle=/^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,Nle=/^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 n_(e){return e instanceof Number||typeof e=="number"}function v8(e){if(e)for(;e.hasChildNodes()===!0;){var a=e.firstChild;a&&(v8(a),e.removeChild(a))}}function _o(e){return e instanceof String||typeof e=="string"}function YR(e){return bt(e)==="object"&&e!==null}function Lle(e){if(e instanceof Date)return!0;if(_o(e)){var a=Ile.exec(e);if(a)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function dp(e,a,t,n){var h=!1;n===!0&&(h=a[t]===null&&e[t]!==void 0),h?delete e[t]:e[t]=a[t]}function p8(e,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var n in e)if(a[n]!==void 0)if(a[n]===null||bt(a[n])!=="object")dp(e,a,n,t);else{var h=e[n],d=a[n];YR(h)&&YR(d)&&p8(h,d,t)}}var Fle=f_;function jle(e,a){if(!Ot(e))throw new Error("Array with property names expected as first argument");for(var t=arguments.length,n=new Array(t>2?t-2:0),h=2;h<t;h++)n[h-2]=arguments[h];for(var d=0,p=n;d<p.length;d++)for(var y=p[d],b=0;b<e.length;b++){var w=e[b];y&&Object.prototype.hasOwnProperty.call(y,w)&&(a[w]=y[w])}return a}function Yle(e,a,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ot(t))throw new TypeError("Arrays are not supported by deepExtend");for(var h=0;h<e.length;h++){var d=e[h];if(Object.prototype.hasOwnProperty.call(t,d))if(t[d]&&t[d].constructor===Object)a[d]===void 0&&(a[d]={}),a[d].constructor===Object?b_(a[d],t[d],!1,n):dp(a,t,d,n);else{if(Ot(t[d]))throw new TypeError("Arrays are not supported by deepExtend");dp(a,t,d,n)}}return a}function Ble(e,a,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ot(t))throw new TypeError("Arrays are not supported by deepExtend");for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h)&&!Rg(e).call(e,h))if(t[h]&&t[h].constructor===Object)a[h]===void 0&&(a[h]={}),a[h].constructor===Object?b_(a[h],t[h]):dp(a,t,h,n);else if(Ot(t[h])){a[h]=[];for(var d=0;d<t[h].length;d++)a[h].push(t[h][d])}else dp(a,t,h,n);return a}function b_(e,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var h in a)if(Object.prototype.hasOwnProperty.call(a,h)||t===!0)if(bt(a[h])==="object"&&a[h]!==null&&xj(a[h])===Object.prototype)e[h]===void 0?e[h]=b_({},a[h],t):bt(e[h])==="object"&&e[h]!==null&&xj(e[h])===Object.prototype?b_(e[h],a[h],t):dp(e,a,h,n);else if(Ot(a[h])){var d;e[h]=To(d=a[h]).call(d)}else dp(e,a,h,n);return e}function Hle(e,a){if(e.length!==a.length)return!1;for(var t=0,n=e.length;t<n;t++)if(e[t]!=a[t])return!1;return!0}function e_(e){var a=bt(e);return a==="object"?e===null?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":Ot(e)?"Array":e instanceof Date?"Date":"Object":a==="number"?"Number":a==="boolean"?"Boolean":a==="string"?"String":a===void 0?"undefined":a}function __(e,a){var t;return Cn(t=[]).call(t,Pi(e),[a])}function m8(e){return To(e).call(e)}function Wle(e){return e.getBoundingClientRect().left}function Gle(e){return e.getBoundingClientRect().right}function zle(e){return e.getBoundingClientRect().top}function Ule(e,a){var t=e.className.split(" "),n=a.split(" ");t=Cn(t).call(t,Rt(n).call(n,function(h){return!Rg(t).call(t,h)})),e.className=t.join(" ")}function Vle(e,a){var t=e.className.split(" "),n=a.split(" ");t=Rt(t).call(t,function(h){return!Rg(n).call(n,h)}),e.className=t.join(" ")}function qle(e,a){if(Ot(e))for(var t=e.length,n=0;n<t;n++)a(e[n],n,e);else for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&a(e[h],h,e)}var Kle=EH;function Xle(e,a,t){return e[a]!==t?(e[a]=t,!0):!1}function Zle(e){var a=!1;return function(){a||(a=!0,requestAnimationFrame(function(){a=!1,e()}))}}function Jle(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}function Qle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,a=null;return e&&(e.target?a=e.target:e.srcElement&&(a=e.srcElement)),!(a instanceof Element)||a.nodeType!=null&&a.nodeType==3&&(a=a.parentNode,!(a instanceof Element))?null:a}function eue(e,a){for(var t=e;t;){if(t===a)return!0;if(t.parentNode)t=t.parentNode;else return!1}return!1}var tue={asBoolean:function(a,t){return typeof a=="function"&&(a=a()),a!=null?a!=!1:t||null},asNumber:function(a,t){return typeof a=="function"&&(a=a()),a!=null?Number(a)||t||null:t||null},asString:function(a,t){return typeof a=="function"&&(a=a()),a!=null?String(a):t||null},asSize:function(a,t){return typeof a=="function"&&(a=a()),_o(a)?a:n_(a)?a+"px":t||null},asElement:function(a,t){return typeof a=="function"&&(a=a()),a||t||null}};function sE(e){var a;switch(e.length){case 3:case 4:return a=Ale.exec(e),a?{r:Vs(a[1]+a[1],16),g:Vs(a[2]+a[2],16),b:Vs(a[3]+a[3],16)}:null;case 6:case 7:return a=Mle.exec(e),a?{r:Vs(a[1],16),g:Vs(a[2],16),b:Vs(a[3],16)}:null;default:return null}}function rue(e,a){if(Rg(e).call(e,"rgba"))return e;if(Rg(e).call(e,"rgb")){var t=e.substr(oi(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+a+")"}else{var n=sE(e);return n==null?e:"rgba("+n.r+","+n.g+","+n.b+","+a+")"}}function JN(e,a,t){var n;return"#"+To(n=((1<<24)+(e<<16)+(a<<8)+t).toString(16)).call(n,1)}function iue(e,a){if(_o(e)){var t=e;if(eL(t)){var n,h=xn(n=t.substr(4).substr(0,t.length-5).split(",")).call(n,function(R){return Vs(R)});t=JN(h[0],h[1],h[2])}if(QN(t)===!0){var d=y8(t),p={h:d.h,s:d.s*.8,v:Math.min(1,d.v*1.02)},y={h:d.h,s:Math.min(1,d.s*1.25),v:d.v*.8},b=BR(y.h,y.s,y.v),w=BR(p.h,p.s,p.v);return{background:t,border:b,highlight:{background:w,border:b},hover:{background:w,border:b}}}else return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else if(a){var $={background:e.background||a.background,border:e.border||a.border,highlight:_o(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||a.highlight.background,border:e.highlight&&e.highlight.border||a.highlight.border},hover:_o(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||a.hover.border,background:e.hover&&e.hover.background||a.hover.background}};return $}else{var A={background:e.background||void 0,border:e.border||void 0,highlight:_o(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:_o(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return A}}function Dg(e,a,t){e=e/255,a=a/255,t=t/255;var n=Math.min(e,Math.min(a,t)),h=Math.max(e,Math.max(a,t));if(n===h)return{h:0,s:0,v:n};var d=e===n?a-t:t===n?e-a:t-e,p=e===n?3:t===n?1:5,y=60*(p-d/(h-n))/360,b=(h-n)/h,w=h;return{h:y,s:b,v:w}}function g8(e){var a=document.createElement("div"),t={};a.style.cssText=e;for(var n=0;n<a.style.length;++n)t[a.style[n]]=a.style.getPropertyValue(a.style[n]);return t}function nue(e,a){for(var t=g8(a),n=0,h=Koe(t);n<h.length;n++){var d=Wn(h[n],2),p=d[0],y=d[1];e.style.setProperty(p,y)}}function aue(e,a){for(var t=g8(a),n=0,h=Ki(t);n<h.length;n++){var d=h[n];e.style.removeProperty(d)}}function a_(e,a,t){var n,h,d,p=Math.floor(e*6),y=e*6-p,b=t*(1-a),w=t*(1-y*a),$=t*(1-(1-y)*a);switch(p%6){case 0:n=t,h=$,d=b;break;case 1:n=w,h=t,d=b;break;case 2:n=b,h=t,d=$;break;case 3:n=b,h=w,d=t;break;case 4:n=$,h=b,d=t;break;case 5:n=t,h=b,d=w;break}return{r:Math.floor(n*255),g:Math.floor(h*255),b:Math.floor(d*255)}}function BR(e,a,t){var n=a_(e,a,t);return JN(n.r,n.g,n.b)}function y8(e){var a=sE(e);if(!a)throw new TypeError("'".concat(e,"' is not a valid color."));return Dg(a.r,a.g,a.b)}function QN(e){var a=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return a}function eL(e){return Rle.test(e)}function b8(e){return Nle.test(e)}function oue(e,a){if(a!==null&&bt(a)==="object"){for(var t=nE(a),n=0;n<e.length;n++)Object.prototype.hasOwnProperty.call(a,e[n])&&bt(a[e[n]])=="object"&&(t[e[n]]=tL(a[e[n]]));return t}else return null}function tL(e){if(e===null||bt(e)!=="object")return null;if(e instanceof Element)return e;var a=nE(e);for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&bt(e[t])=="object"&&(a[t]=tL(e[t]));return a}function sue(e,a){for(var t=0;t<e.length;t++){var n=e[t],h=void 0;for(h=t;h>0&&a(n,e[h-1])<0;h--)e[h]=e[h-1];e[h]=n}return e}function lue(e,a,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=function(V){return V!=null},d=function(V){return V!==null&&bt(V)==="object"},p=function(V){for(var oe in V)if(Object.prototype.hasOwnProperty.call(V,oe))return!1;return!0};if(!d(e))throw new Error("Parameter mergeTarget must be an object");if(!d(a))throw new Error("Parameter options must be an object");if(!h(t))throw new Error("Parameter option must have a value");if(!d(n))throw new Error("Parameter globalOptions must be an object");var y=function(V,oe,G){d(V[G])||(V[G]={});var ae=oe[G],ve=V[G];for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&(ve[ye]=ae[ye])},b=a[t],w=d(n)&&!p(n),$=w?n[t]:void 0,A=$?$.enabled:void 0;if(b!==void 0){if(typeof b=="boolean"){d(e[t])||(e[t]={}),e[t].enabled=b;return}if(b===null&&!d(e[t]))if(h($))e[t]=nE($);else return;if(d(b)){var R=!0;b.enabled!==void 0?R=b.enabled:A!==void 0&&(R=$.enabled),y(e,a,t),e[t].enabled=R}}}function uue(e,a,t,n){for(var h=1e4,d=0,p=0,y=e.length-1;p<=y&&d<h;){var b=Math.floor((p+y)/2),w=e[b],$=n===void 0?w[t]:w[t][n],A=a($);if(A==0)return b;A==-1?p=b+1:y=b-1,d++}return-1}function hue(e,a,t,n,h){var d=1e4,p=0,y=0,b=e.length-1,w,$,A,R;for(h=h!=null?h:function(Y,V){return Y==V?0:Y<V?-1:1};y<=b&&p<d;){if(R=Math.floor(.5*(b+y)),w=e[Math.max(0,R-1)][t],$=e[R][t],A=e[Math.min(e.length-1,R+1)][t],h($,a)==0)return R;if(h(w,a)<0&&h($,a)>0)return n=="before"?Math.max(0,R-1):R;if(h($,a)<0&&h(A,a)>0)return n=="before"?R:Math.min(e.length-1,R+1);h($,a)<0?y=R+1:b=R-1,p++}return-1}var cue={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return a*(2-a)},easeInOutQuad:function(a){return a<.5?2*a*a:-1+(4-2*a)*a},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return--a*a*a+1},easeInOutCubic:function(a){return a<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return 1- --a*a*a*a},easeInOutQuart:function(a){return a<.5?8*a*a*a*a:1-8*--a*a*a*a},easeInQuint:function(a){return a*a*a*a*a},easeOutQuint:function(a){return 1+--a*a*a*a*a},easeInOutQuint:function(a){return a<.5?16*a*a*a*a*a:1+16*--a*a*a*a*a}};function due(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var a=document.createElement("div");a.style.position="absolute",a.style.top="0px",a.style.left="0px",a.style.visibility="hidden",a.style.width="200px",a.style.height="150px",a.style.overflow="hidden",a.appendChild(e),document.body.appendChild(a);var t=e.offsetWidth;a.style.overflow="scroll";var n=e.offsetWidth;return t==n&&(n=a.clientWidth),document.body.removeChild(a),t-n}function fue(e,a){var t;Ot(a)||(a=[a]);var n=qN(e),h;try{for(n.s();!(h=n.n()).done;){var d=h.value;if(d){t=d[a[0]];for(var p=1;p<a.length;p++)t&&(t=t[a[p]]);if(typeof t!="undefined")break}}}catch(y){n.e(y)}finally{n.f()}return t}var vue={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"},_8=function(){function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;br(this,e),this.pixelRatio=a,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return _r(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return vue[t]}},{key:"setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var h,d=this._isColorString(t);if(d!==void 0&&(t=d),_o(t)===!0){if(eL(t)===!0){var p=t.substr(4).substr(0,t.length-5).split(",");h={r:p[0],g:p[1],b:p[2],a:1}}else if(b8(t)===!0){var y=t.substr(5).substr(0,t.length-6).split(",");h={r:y[0],g:y[1],b:y[2],a:y[3]}}else if(QN(t)===!0){var b=sE(t);h={r:b.r,g:b.g,b:b.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var w=t.a!==void 0?t.a:"1.0";h={r:t.r,g:t.g,b:t.b,a:w}}if(h===void 0)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: "+Ha(t));this._setColor(h,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=f_({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Zo(function(){t.closeCallback!==void 0&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=f_({},t)),this.color=t;var h=Dg(t.r,t.g,t.b),d=2*Math.PI,p=this.r*h.s,y=this.centerCoordinates.x+p*Math.sin(d*h.h),b=this.centerCoordinates.y+p*Math.cos(d*h.h);this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=b-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var n=Dg(this.color.r,this.color.g,this.color.b);n.v=t/100;var h=a_(n.h,n.s,n.v);h.a=this.color.a,this.color=h,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=Dg(t.r,t.g,t.b),h=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(h.webkitBackingStorePixelRatio||h.mozBackingStorePixelRatio||h.msBackingStorePixelRatio||h.oBackingStorePixelRatio||h.backingStorePixelRatio||1)),h.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var d=this.colorPickerCanvas.clientWidth,p=this.colorPickerCanvas.clientHeight;h.clearRect(0,0,d,p),h.putImageData(this.hueCircle,0,0),h.fillStyle="rgba(0,0,0,"+(1-n.v)+")",h.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),FH(h).call(h),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,n,h,d;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var y=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var p=document.createElement("DIV");p.style.color="red",p.style.fontWeight="bold",p.style.padding="10px",p.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(p)}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(w){}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(w){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var b=this;this.opacityRange.onchange=function(){b._setOpacity(this.value)},this.opacityRange.oninput=function(){b._setOpacity(this.value)},this.brightnessRange.onchange=function(){b._setBrightness(this.value)},this.brightnessRange.oninput=function(){b._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=Ee(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=Ee(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Ee(h=this._save).call(h,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Ee(d=this._loadLast).call(d,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new ZN(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&t._moveSelector(n)}),this.hammer.on("tap",function(n){t._moveSelector(n)}),this.hammer.on("panstart",function(n){t._moveSelector(n)}),this.hammer.on("panmove",function(n){t._moveSelector(n)}),this.hammer.on("panend",function(n){t._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,h=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,n,h);var d,p,y,b;this.centerCoordinates={x:n*.5,y:h*.5},this.r=.49*n;var w=2*Math.PI/360,$=1/360,A=1/this.r,R;for(y=0;y<360;y++)for(b=0;b<this.r;b++)d=this.centerCoordinates.x+b*Math.sin(w*y),p=this.centerCoordinates.y+b*Math.cos(w*y),R=a_(y*$,b*A,1),t.fillStyle="rgb("+R.r+","+R.g+","+R.b+")",t.fillRect(d-.5,p-.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,n,h)}this.generated=!0}},{key:"_moveSelector",value:function(t){var n=this.colorPickerDiv.getBoundingClientRect(),h=t.center.x-n.left,d=t.center.y-n.top,p=.5*this.colorPickerDiv.clientHeight,y=.5*this.colorPickerDiv.clientWidth,b=h-y,w=d-p,$=Math.atan2(b,w),A=.98*Math.min(Math.sqrt(b*b+w*w),y),R=Math.cos($)*A+p,Y=Math.sin($)*A+y;this.colorPickerSelector.style.top=R-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=Y-.5*this.colorPickerSelector.clientWidth+"px";var V=$/(2*Math.PI);V=V<0?V+1:V;var oe=A/this.r,G=Dg(this.color.r,this.color.g,this.color.b);G.h=V,G.s=oe;var ae=a_(G.h,G.s,G.v);ae.a=this.color.a,this.color=ae,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+")"}}]),e}();function HR(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];if(a.length<1)throw new TypeError("Invalid arguments.");if(a.length===1)return document.createTextNode(a[0]);var n=document.createElement(a[0]);return n.appendChild(HR.apply(void 0,Pi(To(a).call(a,1)))),n}var pue=function(){function e(a,t,n){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};br(this,e),this.parent=a,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=d,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},f_(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new _8(h),this.wrapper=void 0}return _r(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof t=="string")this.options.filter=t;else if(Ot(t))this.options.filter=t.join();else if(bt(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),Rt(t)!==void 0&&(this.options.filter=Rt(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(n=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,n=t):typeof t=="function"&&(this.options.filter=t,n=!0);Rt(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Rt(this.options),n=0,h=!1;for(var d in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,d)&&(this.allowCreation=!1,h=!1,typeof t=="function"?(h=t(d,[]),h=h||this._handleObject(this.configureOptions[d],[d],!0)):(t===!0||oi(t).call(t,d)!==-1)&&(h=!0),h!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(d),this._handleObject(this.configureOptions[d],[d])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var n=this.moduleOptions,h=0;h<t.length;h++)if(n[t[h]]!==void 0)n=n[t[h]];else{n=void 0;break}return n}},{key:"_makeItem",value:function(t){if(this.allowCreation===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var h=arguments.length,d=new Array(h>1?h-1:0),p=1;p<h;p++)d[p-1]=arguments[p];return Tt(d).call(d,function(y){n.appendChild(y)}),this.domElements.push(n),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var n=document.createElement("div");n.className="vis-configuration vis-config-header",n.innerText=t,this._makeItem([],n)}},{key:"_makeLabel",value:function(t,n){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=document.createElement("div");if(d.className="vis-configuration vis-config-label vis-config-s"+n.length,h===!0){for(;d.firstChild;)d.removeChild(d.firstChild);d.appendChild(HR("i","b",t))}else d.innerText=t+":";return d}},{key:"_makeDropdown",value:function(t,n,h){var d=document.createElement("select");d.className="vis-configuration vis-config-select";var p=0;n!==void 0&&oi(t).call(t,n)!==-1&&(p=oi(t).call(t,n));for(var y=0;y<t.length;y++){var b=document.createElement("option");b.value=t[y],y===p&&(b.selected="selected"),b.innerText=t[y],d.appendChild(b)}var w=this;d.onchange=function(){w._update(this.value,h)};var $=this._makeLabel(h[h.length-1],h);this._makeItem(h,$,d)}},{key:"_makeRange",value:function(t,n,h){var d=t[0],p=t[1],y=t[2],b=t[3],w=document.createElement("input");w.className="vis-configuration vis-config-range";try{w.type="range",w.min=p,w.max=y}catch(ae){}w.step=b;var $="",A=0;if(n!==void 0){var R=1.2;n<0&&n*R<p?(w.min=Math.ceil(n*R),A=w.min,$="range increased"):n/R<p&&(w.min=Math.ceil(n/R),A=w.min,$="range increased"),n*R>y&&y!==1&&(w.max=Math.ceil(n*R),A=w.max,$="range increased"),w.value=n}else w.value=d;var Y=document.createElement("input");Y.className="vis-configuration vis-config-rangeinput",Y.value=w.value;var V=this;w.onchange=function(){Y.value=this.value,V._update(Number(this.value),h)},w.oninput=function(){Y.value=this.value};var oe=this._makeLabel(h[h.length-1],h),G=this._makeItem(h,oe,w,Y);$!==""&&this.popupHistory[G]!==A&&(this.popupHistory[G]=A,this._setupPopup($,G))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){t._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(t,n){var h=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var d=document.createElement("div");d.id="vis-configuration-popup",d.className="vis-configuration-popup",d.innerText=t,d.onclick=function(){h._removePopup()},this.popupCounter+=1,this.popupDiv={html:d,index:n}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(this.popupDiv.html!==void 0){var n=this.domElements[this.popupDiv.index],h=n.getBoundingClientRect();this.popupDiv.html.style.left=h.left+"px",this.popupDiv.html.style.top=h.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Zo(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Zo(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,n,h){var d=document.createElement("input");d.type="checkbox",d.className="vis-configuration vis-config-checkbox",d.checked=t,n!==void 0&&(d.checked=n,n!==t&&(bt(t)==="object"?n!==t.enabled&&this.changedOptions.push({path:h,value:n}):this.changedOptions.push({path:h,value:n})));var p=this;d.onchange=function(){p._update(this.checked,h)};var y=this._makeLabel(h[h.length-1],h);this._makeItem(h,y,d)}},{key:"_makeTextInput",value:function(t,n,h){var d=document.createElement("input");d.type="text",d.className="vis-configuration vis-config-text",d.value=n,n!==t&&this.changedOptions.push({path:h,value:n});var p=this;d.onchange=function(){p._update(this.value,h)};var y=this._makeLabel(h[h.length-1],h);this._makeItem(h,y,d)}},{key:"_makeColorField",value:function(t,n,h){var d=this,p=t[1],y=document.createElement("div");n=n===void 0?p:n,n!=="none"?(y.className="vis-configuration vis-config-colorBlock",y.style.backgroundColor=n):y.className="vis-configuration vis-config-colorBlock none",n=n===void 0?p:n,y.onclick=function(){d._showColorPicker(n,y,h)};var b=this._makeLabel(h[h.length-1],h);this._makeItem(h,b,y)}},{key:"_showColorPicker",value:function(t,n,h){var d=this;n.onclick=function(){},this.colorPicker.insertTo(n),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(p){var y="rgba("+p.r+","+p.g+","+p.b+","+p.a+")";n.style.backgroundColor=y,d._update(y,h)}),this.colorPicker.setCloseCallback(function(){n.onclick=function(){d._showColorPicker(t,n,h)}})}},{key:"_handleObject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=!1,p=Rt(this.options),y=!1;for(var b in t)if(Object.prototype.hasOwnProperty.call(t,b)){d=!0;var w=t[b],$=__(n,b);if(typeof p=="function"&&(d=p(b,n),d===!1&&!Ot(w)&&typeof w!="string"&&typeof w!="boolean"&&w instanceof Object&&(this.allowCreation=!1,d=this._handleObject(w,$,!0),this.allowCreation=h===!1)),d!==!1){y=!0;var A=this._getValue($);if(Ot(w))this._handleArray(w,A,$);else if(typeof w=="string")this._makeTextInput(w,A,$);else if(typeof w=="boolean")this._makeCheckbox(w,A,$);else if(w instanceof Object){if(!this.hideOption(n,b,this.moduleOptions))if(w.enabled!==void 0){var R=__($,"enabled"),Y=this._getValue(R);if(Y===!0){var V=this._makeLabel(b,$,!0);this._makeItem($,V),y=this._handleObject(w,$)||y}else this._makeCheckbox(w,Y,$)}else{var oe=this._makeLabel(b,$,!0);this._makeItem($,oe),y=this._handleObject(w,$)||y}}else console.error("dont know how to handle",w,b,$)}}return y}},{key:"_handleArray",value:function(t,n,h){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,n,h),t[1]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="string"?(this._makeDropdown(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="number"&&(this._makeRange(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:Number(n)}))}},{key:"_update",value:function(t,n){var h=this._constructOptions(t,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",h),this.initialized=!0,this.parent.setOptions(h)}},{key:"_constructOptions",value:function(t,n){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=h;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var p=0;p<n.length;p++)n[p]!=="global"&&(d[n[p]]===void 0&&(d[n[p]]={}),p!==n.length-1?d=d[n[p]]:d[n[p]]=t);return h}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(HR("pre","const options = "+Ha(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},n=0;n<this.changedOptions.length;n++)this._constructOptions(this.changedOptions[n].value,this.changedOptions[n].path,t);return t}}]),e}(),mue=function(){function e(a,t){br(this,e),this.container=a,this.overflowMethod=t||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return _r(e,[{key:"setPosition",value:function(t,n){this.x=Vs(t),this.y=Vs(n)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(t===void 0&&(t=!0),t===!0){var n=this.frame.clientHeight,h=this.frame.clientWidth,d=this.frame.parentNode.clientHeight,p=this.frame.parentNode.clientWidth,y=0,b=0;if(this.overflowMethod=="flip"){var w=!1,$=!0;this.y-n<this.padding&&($=!1),this.x+h>p-this.padding&&(w=!0),w?y=this.x-h:y=this.x,$?b=this.y-n:b=this.y}else b=this.y-n,b+n+this.padding>d&&(b=d-n-this.padding),b<this.padding&&(b=this.padding),y=this.x,y+h+this.padding>p&&(y=p-h-this.padding),y<this.padding&&(y=this.padding);this.frame.style.left=y+"px",this.frame.style.top=b+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),Vb=!1,Uj,WR="background: #FFeeee; color: #dd0000",gue=function(){function e(){br(this,e)}return _r(e,null,[{key:"validate",value:function(t,n,h){Vb=!1,Uj=n;var d=n;return h!==void 0&&(d=n[h]),e.parse(t,d,[]),Vb}},{key:"parse",value:function(t,n,h){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&e.check(d,t,n,h)}},{key:"check",value:function(t,n,h,d){if(h[t]===void 0&&h.__any__===void 0){e.getSuggestion(t,h,d);return}var p=t,y=!0;h[t]===void 0&&h.__any__!==void 0&&(p="__any__",y=e.getType(n[t])==="object");var b=h[p];y&&b.__type__!==void 0&&(b=b.__type__),e.checkFields(t,n,h,p,b,d)}},{key:"checkFields",value:function(t,n,h,d,p,y){var b=function(R){console.error("%c"+R+e.printLocation(y,t),WR)},w=e.getType(n[t]),$=p[w];$!==void 0?e.getType($)==="array"&&oi($).call($,n[t])===-1?(b('Invalid option detected in "'+t+'". Allowed values are:'+e.print($)+' not "'+n[t]+'". '),Vb=!0):w==="object"&&d!=="__any__"&&(y=__(y,t),e.parse(n[t],h[d],y)):p.any===void 0&&(b('Invalid type received for "'+t+'". Expected: '+e.print(Ki(p))+". Received ["+w+'] "'+n[t]+'"'),Vb=!0)}},{key:"getType",value:function(t){var n=bt(t);return n==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Ot(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":n==="number"?"number":n==="boolean"?"boolean":n==="string"?"string":n===void 0?"undefined":n}},{key:"getSuggestion",value:function(t,n,h){var d=e.findInOptions(t,n,h,!1),p=e.findInOptions(t,Uj,[],!0),y=8,b=4,w;d.indexMatch!==void 0?w=" in "+e.printLocation(d.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+d.indexMatch+`"?
`:p.distance<=b&&d.distance>p.distance?w=" in "+e.printLocation(d.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(p.path,p.closestMatch,""):d.distance<=y?w='. Did you mean "'+d.closestMatch+'"?'+e.printLocation(d.path,t):w=". Did you mean one of these: "+e.print(Ki(n))+e.printLocation(h,t),console.error('%cUnknown option detected: "'+t+'"'+w,WR),Vb=!0}},{key:"findInOptions",value:function(t,n,h){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=1e9,y="",b=[],w=t.toLowerCase(),$=void 0;for(var A in n){var R=void 0;if(n[A].__type__!==void 0&&d===!0){var Y=e.findInOptions(t,n[A],__(h,A));p>Y.distance&&(y=Y.closestMatch,b=Y.path,p=Y.distance,$=Y.indexMatch)}else{var V;oi(V=A.toLowerCase()).call(V,w)!==-1&&($=A),R=e.levenshteinDistance(t,A),p>R&&(y=A,b=m8(h),p=R)}}return{closestMatch:y,path:b,distance:p,indexMatch:$}}},{key:"printLocation",value:function(t,n){for(var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
`,d=`
`+h+`options = {
`,p=0;p<t.length;p++){for(var y=0;y<p+1;y++)d+=" ";d+=t[p]+`: {
`}for(var b=0;b<t.length+1;b++)d+=" ";d+=n+`
`;for(var w=0;w<t.length+1;w++){for(var $=0;$<t.length-w;$++)d+=" ";d+=`}
`}return d+`
`}},{key:"print",value:function(t){return Ha(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,n){if(t.length===0)return n.length;if(n.length===0)return t.length;var h=[],d;for(d=0;d<=n.length;d++)h[d]=[d];var p;for(p=0;p<=t.length;p++)h[0][p]=p;for(d=1;d<=n.length;d++)for(p=1;p<=t.length;p++)n.charAt(d-1)==t.charAt(p-1)?h[d][p]=h[d-1][p-1]:h[d][p]=Math.min(h[d-1][p-1]+1,Math.min(h[d][p-1]+1,h[d-1][p]+1));return h[n.length][t.length]}}]),e}(),yue=Ql,bue=_8,_ue=pue,wue=ZN,kue=mue,Sue=WR,xue=gue,Tue=Object.freeze({__proto__:null,Activator:yue,Alea:Cle,ColorPicker:bue,Configurator:_ue,DELETE:KN,HSVToHex:BR,HSVToRGB:a_,Hammer:wue,Popup:kue,RGBToHSV:Dg,RGBToHex:JN,VALIDATOR_PRINT_STYLE:Sue,Validator:xue,addClassName:Ule,addCssText:nue,binarySearchCustom:uue,binarySearchValue:hue,bridgeObject:tL,copyAndExtendArray:__,copyArray:m8,deepExtend:b_,deepObjectAssign:XN,easingFunctions:cue,equalArray:Hle,extend:Fle,fillIfDefined:p8,forEach:qle,getAbsoluteLeft:Wle,getAbsoluteRight:Gle,getAbsoluteTop:zle,getScrollBarWidth:due,getTarget:Qle,getType:e_,hasParent:eue,hexToHSV:y8,hexToRGB:sE,insertSort:sue,isDate:Lle,isNumber:n_,isObject:YR,isString:_o,isValidHex:QN,isValidRGB:eL,isValidRGBA:b8,mergeOptions:lue,option:tue,overrideOpacity:rue,parseColor:iue,preventDefault:Jle,pureDeepObjectAssign:c8,recursiveDOMDelete:v8,removeClassName:Vle,removeCssText:aue,selectiveBridgeObject:oue,selectiveDeepExtend:Yle,selectiveExtend:jle,selectiveNotDeepExtend:Ble,throttle:Zle,toArray:Kle,topMost:fue,updateProperty:Xle});function vd(e){for(var a in e)e.hasOwnProperty(a)&&(e[a].redundant=e[a].used,e[a].used=[])}function qo(e){for(var a in e)if(e.hasOwnProperty(a)&&e[a].redundant){for(var t=0;t<e[a].redundant.length;t++)e[a].redundant[t].parentNode.removeChild(e[a].redundant[t]);e[a].redundant=[]}}function Cue(e){vd(e),qo(e),vd(e)}function Xs(e,a,t){var n;return a.hasOwnProperty(e)?a[e].redundant.length>0?(n=a[e].redundant[0],a[e].redundant.shift()):(n=document.createElementNS("http://www.w3.org/2000/svg",e),t.appendChild(n)):(n=document.createElementNS("http://www.w3.org/2000/svg",e),a[e]={used:[],redundant:[]},t.appendChild(n)),a[e].used.push(n),n}function HA(e,a,t,n){var h;return a.hasOwnProperty(e)?a[e].redundant.length>0?(h=a[e].redundant[0],a[e].redundant.shift()):(h=document.createElement(e),t.appendChild(h)):(h=document.createElement(e),a[e]={used:[],redundant:[]},t.appendChild(h)),a[e].used.push(h),h}function jg(e,a,t,n,h,d){var p;if(t.style=="circle"?(p=Xs("circle",n,h),p.setAttributeNS(null,"cx",e),p.setAttributeNS(null,"cy",a),p.setAttributeNS(null,"r",.5*t.size)):(p=Xs("rect",n,h),p.setAttributeNS(null,"x",e-.5*t.size),p.setAttributeNS(null,"y",a-.5*t.size),p.setAttributeNS(null,"width",t.size),p.setAttributeNS(null,"height",t.size)),t.styles!==void 0&&p.setAttributeNS(null,"style",t.styles),p.setAttributeNS(null,"class",t.className+" vis-point"),d){var y=Xs("text",n,h);d.xOffset&&(e=e+d.xOffset),d.yOffset&&(a=a+d.yOffset),d.content&&(y.textContent=d.content),d.className&&y.setAttributeNS(null,"class",d.className+" vis-label"),y.setAttributeNS(null,"x",e),y.setAttributeNS(null,"y",a)}return p}function GR(e,a,t,n,h,d,p,y){if(n!=0){n<0&&(n*=-1,a-=n);var b=Xs("rect",d,p);b.setAttributeNS(null,"x",e-.5*t),b.setAttributeNS(null,"y",a),b.setAttributeNS(null,"width",t),b.setAttributeNS(null,"height",n),b.setAttributeNS(null,"class",h),y&&b.setAttributeNS(null,"style",y)}}function Eue(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(e){return"en"}}function oa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Due=IH,Oue=Due,$ue=Oue,Pue=$ue,w8=Pue,Iue=Be(w8),Mue=He,Aue=tB;Mue({target:"Object",stat:!0},{setPrototypeOf:Aue});var Rue=tr,Nue=Rue.Object.setPrototypeOf,Lue=Nue,Fue=Lue,jue=Fue,Yue=jue,Bue=Yue,Hue=Bue,k8=Hue,zR=Be(k8),Wue=gH,Gue=Wue,zue=Gue,Uue=zue,Vue=Uue,S8=Be(Vue);function UR(e,a){var t;return UR=zR?S8(t=zR).call(t):function(h,d){return h.__proto__=d,h},UR(e,a)}function Lh(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Iue(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),KC(e,"prototype",{writable:!1}),a&&UR(e,a)}function Fh(e,a){if(a&&(bt(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oa(e)}var que=kH,Kue=que,Xue=Kue,Zue=Xue,x8=Zue,Vj=Be(x8);function Ri(e){var a;return Ri=zR?S8(a=Vj).call(a):function(n){return n.__proto__||Vj(n)},Ri(e)}function fr(e,a,t){return a=iH(a),a in e?KC(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var T8={exports:{}},C8={exports:{}};(function(e){var a=LN,t=rH;function n(h){return e.exports=n=typeof a=="function"&&typeof t=="symbol"?function(d){return typeof d}:function(d){return d&&typeof a=="function"&&d.constructor===a&&d!==a.prototype?"symbol":typeof d},e.exports.__esModule=!0,e.exports.default=e.exports,n(h)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(C8);var Jue=C8.exports,Que=yH,ehe=Que,the=ehe,rhe=the,ihe=rhe,qj=Ni,nhe=FN,ahe=pp,ohe=Ga,she=function(e,a,t){for(var n=nhe(a),h=ohe.f,d=ahe.f,p=0;p<n.length;p++){var y=n[p];!qj(e,y)&&!(t&&qj(t,y))&&h(e,y,d(a,y))}},lhe=an,uhe=Rh,hhe=function(e,a){lhe(a)&&"cause"in a&&uhe(e,"cause",a.cause)},che=Zt,E8=Error,dhe=che("".replace),fhe=function(e){return String(new E8(e).stack)}("zxcasd"),D8=/\n\s*at [^:]*:[^\n]*/,vhe=D8.test(fhe),phe=function(e,a){if(vhe&&typeof e=="string"&&!E8.prepareStackTrace)for(;a--;)e=dhe(e,D8,"");return e},mhe=Yt,ghe=vp,yhe=!mhe(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",ghe(1,7)),e.stack!==7):!0}),bhe=Rh,_he=phe,whe=yhe,Kj=Error.captureStackTrace,khe=function(e,a,t,n){whe&&(Kj?Kj(e,a):bhe(e,"stack",_he(t,n)))},She=_d,xhe=on,The=xo,Che=Vg,Ehe=aB,Dhe=Ua,Xj=Cr,Ohe=ON,$he=qC,Zj=nB,Phe=TypeError,mC=function(e,a){this.stopped=e,this.result=a},Jj=mC.prototype,bp=function(e,a,t){var n=t&&t.that,h=!!(t&&t.AS_ENTRIES),d=!!(t&&t.IS_RECORD),p=!!(t&&t.IS_ITERATOR),y=!!(t&&t.INTERRUPTED),b=She(a,n),w,$,A,R,Y,V,oe,G=function(ve){return w&&Zj(w,"normal",ve),new mC(!0,ve)},ae=function(ve){return h?(The(ve),y?b(ve[0],ve[1],G):b(ve[0],ve[1])):y?b(ve,G):b(ve)};if(d)w=e.iterator;else if(p)w=e;else{if($=$he(e),!$)throw new Phe(Che(e)+" is not iterable");if(Ehe($)){for(A=0,R=Dhe(e);R>A;A++)if(Y=ae(e[A]),Y&&Xj(Jj,Y))return Y;return new mC(!1)}w=Ohe(e,$)}for(V=d?e.next:w.next;!(oe=xhe(V,w)).done;){try{Y=ae(oe.value)}catch(ve){Zj(w,"throw",ve)}if(typeof Y=="object"&&Y&&Xj(Jj,Y))return Y}return new mC(!1)},Ihe=Qo,Mhe=function(e,a){return e===void 0?arguments.length<2?"":a:Ihe(e)},Ahe=He,Rhe=Cr,Nhe=I_,DC=tB,Lhe=she,O8=mp,WA=Rh,GA=vp,Fhe=hhe,jhe=khe,Yhe=bp,Bhe=Mhe,Hhe=Or,Whe=Hhe("toStringTag"),OC=Error,Ghe=[].push,Yg=function(a,t){var n=Rhe(zA,this),h;DC?h=DC(new OC,n?Nhe(this):zA):(h=n?this:O8(zA),WA(h,Whe,"Error")),t!==void 0&&WA(h,"message",Bhe(t)),jhe(h,Yg,h.stack,1),arguments.length>2&&Fhe(h,arguments[2]);var d=[];return Yhe(a,Ghe,{that:d}),WA(h,"errors",d),h};DC?DC(Yg,OC):Lhe(Yg,OC,{name:!0});var zA=Yg.prototype=O8(OC.prototype,{constructor:GA(1,Yg),message:GA(1,""),name:GA(1,"AggregateError")});Ahe({global:!0},{AggregateError:Yg});var zhe=Dr,Uhe=Mh,V_=Uhe(zhe.process)==="process",Vhe=ha,qhe=PN,Khe=Or,Xhe=Xi,Qj=Khe("species"),$8=function(e){var a=Vhe(e);Xhe&&a&&!a[Qj]&&qhe(a,Qj,{configurable:!0,get:function(){return this}})},Zhe=Cr,Jhe=TypeError,rL=function(e,a){if(Zhe(a,e))return e;throw new Jhe("Incorrect invocation")},Qhe=VC,ece=Vg,tce=TypeError,P8=function(e){if(Qhe(e))return e;throw new tce(ece(e)+" is not a constructor")},eY=xo,rce=P8,ice=Wg,nce=Or,ace=nce("species"),I8=function(e,a){var t=eY(e).constructor,n;return t===void 0||ice(n=eY(t)[ace])?a:rce(n)},oce=bd,M8=/(?:ipad|iphone|ipod).*applewebkit/i.test(oce),wo=Dr,sce=Kg,lce=_d,tY=si,uce=Ni,A8=Yt,rY=K6,hce=Y_,iY=wN,cce=MH,dce=M8,fce=V_,VR=wo.setImmediate,nY=wo.clearImmediate,vce=wo.process,UA=wo.Dispatch,pce=wo.Function,aY=wo.MessageChannel,mce=wo.String,VA=0,o_={},oY="onreadystatechange",w_,tp,qA,KA;A8(function(){w_=wo.location});var iL=function(e){if(uce(o_,e)){var a=o_[e];delete o_[e],a()}},XA=function(e){return function(){iL(e)}},sY=function(e){iL(e.data)},lY=function(e){wo.postMessage(mce(e),w_.protocol+"//"+w_.host)};(!VR||!nY)&&(VR=function(a){cce(arguments.length,1);var t=tY(a)?a:pce(a),n=hce(arguments,1);return o_[++VA]=function(){sce(t,void 0,n)},tp(VA),VA},nY=function(a){delete o_[a]},fce?tp=function(e){vce.nextTick(XA(e))}:UA&&UA.now?tp=function(e){UA.now(XA(e))}:aY&&!dce?(qA=new aY,KA=qA.port2,qA.port1.onmessage=sY,tp=lce(KA.postMessage,KA)):wo.addEventListener&&tY(wo.postMessage)&&!wo.importScripts&&w_&&w_.protocol!=="file:"&&!A8(lY)?(tp=lY,wo.addEventListener("message",sY,!1)):oY in iY("script")?tp=function(e){rY.appendChild(iY("script"))[oY]=function(){rY.removeChild(this),iL(e)}}:tp=function(e){setTimeout(XA(e),0)});var R8={set:VR},N8=function(){this.head=null,this.tail=null};N8.prototype={add:function(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a},get:function(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}};var L8=N8,gce=bd,yce=/ipad|iphone|ipod/i.test(gce)&&typeof Pebble!="undefined",bce=bd,_ce=/web0s(?!.*chrome)/i.test(bce),fp=Dr,uY=_d,wce=pp.f,ZA=R8.set,kce=L8,Sce=M8,xce=yce,Tce=_ce,JA=V_,hY=fp.MutationObserver||fp.WebKitMutationObserver,cY=fp.document,dY=fp.process,iC=fp.Promise,fY=wce(fp,"queueMicrotask"),qR=fY&&fY.value,yg,QA,eR,nC,vY;qR||(qb=new kce,Kb=function(){var e,a;for(JA&&(e=dY.domain)&&e.exit();a=qb.get();)try{a()}catch(t){throw qb.head&&yg(),t}e&&e.enter()},!Sce&&!JA&&!Tce&&hY&&cY?(QA=!0,eR=cY.createTextNode(""),new hY(Kb).observe(eR,{characterData:!0}),yg=function(){eR.data=QA=!QA}):!xce&&iC&&iC.resolve?(nC=iC.resolve(void 0),nC.constructor=iC,vY=uY(nC.then,nC),yg=function(){vY(Kb)}):JA?yg=function(){dY.nextTick(Kb)}:(ZA=uY(ZA,fp),yg=function(){ZA(Kb)}),qR=function(e){qb.head||yg(),qb.add(e)});var qb,Kb,Cce=qR,Ece=function(e,a){try{arguments.length===1?console.error(e):console.error(e,a)}catch(t){}},ry=function(e){try{return{error:!1,value:e()}}catch(a){return{error:!0,value:a}}},Dce=Dr,iy=Dce.Promise,F8=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Oce=F8,$ce=V_,Pce=!Oce&&!$ce&&typeof window=="object"&&typeof document=="object",Ice=Dr,s_=iy,Mce=si,Ace=z6,Rce=oB,Nce=Or,Lce=Pce,Fce=F8,tR=zg,pY=s_&&s_.prototype,jce=Nce("species"),mY=!1,j8=Mce(Ice.PromiseRejectionEvent),Yce=Ace("Promise",function(){var e=Rce(s_),a=e!==String(s_);if(!a&&tR===66||!(pY.catch&&pY.finally))return!0;if(!tR||tR<51||!/native code/.test(e)){var t=new s_(function(d){d(1)}),n=function(d){d(function(){},function(){})},h=t.constructor={};if(h[jce]=n,mY=t.then(function(){})instanceof n,!mY)return!0}return!a&&(Lce||Fce)&&!j8}),q_={CONSTRUCTOR:Yce,REJECTION_EVENT:j8},iu={},gY=za,Bce=TypeError,Hce=function(e){var a,t;this.promise=new e(function(n,h){if(a!==void 0||t!==void 0)throw new Bce("Bad Promise constructor");a=n,t=h}),this.resolve=gY(a),this.reject=gY(t)};iu.f=function(e){return new Hce(e)};var Wce=He,$C=V_,yd=Dr,K_=on,Gce=Xg,zce=gp,Uce=$8,Vce=za,KR=si,qce=an,Kce=rL,Xce=I8,Y8=R8.set,nL=Cce,Zce=Ece,Jce=ry,Qce=L8,B8=qg,XR=iy,H8=q_,W8=iu,lE="Promise",G8=H8.CONSTRUCTOR,ede=H8.REJECTION_EVENT,rR=B8.getterFor(lE),tde=B8.set,rde=XR&&XR.prototype,Og=XR,iR=rde,z8=yd.TypeError,ZR=yd.document,aL=yd.process,JR=W8.f,ide=JR,nde=!!(ZR&&ZR.createEvent&&yd.dispatchEvent),U8="unhandledrejection",ade="rejectionhandled",yY=0,V8=1,ode=2,oL=1,q8=2,aC,bY,sde,K8=function(e){var a;return qce(e)&&KR(a=e.then)?a:!1},X8=function(e,a){var t=a.value,n=a.state===V8,h=n?e.ok:e.fail,d=e.resolve,p=e.reject,y=e.domain,b,w,$;try{h?(n||(a.rejection===q8&&ude(a),a.rejection=oL),h===!0?b=t:(y&&y.enter(),b=h(t),y&&(y.exit(),$=!0)),b===e.promise?p(new z8("Promise-chain cycle")):(w=K8(b))?K_(w,b,d,p):d(b)):p(t)}catch(A){y&&!$&&y.exit(),p(A)}},Z8=function(e,a){e.notified||(e.notified=!0,nL(function(){for(var t=e.reactions,n;n=t.get();)X8(n,e);e.notified=!1,a&&!e.rejection&&lde(e)}))},J8=function(e,a,t){var n,h;nde?(n=ZR.createEvent("Event"),n.promise=a,n.reason=t,n.initEvent(e,!1,!0),yd.dispatchEvent(n)):n={promise:a,reason:t},!ede&&(h=yd["on"+e])?h(n):e===U8&&Zce("Unhandled promise rejection",t)},lde=function(e){K_(Y8,yd,function(){var a=e.facade,t=e.value,n=_Y(e),h;if(n&&(h=Jce(function(){$C?aL.emit("unhandledRejection",t,a):J8(U8,a,t)}),e.rejection=$C||_Y(e)?q8:oL,h.error))throw h.value})},_Y=function(e){return e.rejection!==oL&&!e.parent},ude=function(e){K_(Y8,yd,function(){var a=e.facade;$C?aL.emit("rejectionHandled",a):J8(ade,a,e.value)})},$g=function(e,a,t){return function(n){e(a,n,t)}},Pg=function(e,a,t){e.done||(e.done=!0,t&&(e=t),e.value=a,e.state=ode,Z8(e,!0))},QR=function(e,a,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===a)throw new z8("Promise can't be resolved itself");var n=K8(a);n?nL(function(){var h={done:!1};try{K_(n,a,$g(QR,h,e),$g(Pg,h,e))}catch(d){Pg(h,d,e)}}):(e.value=a,e.state=V8,Z8(e,!1))}catch(h){Pg({done:!1},h,e)}}};G8&&(Og=function(a){Kce(this,iR),Vce(a),K_(aC,this);var t=rR(this);try{a($g(QR,t),$g(Pg,t))}catch(n){Pg(t,n)}},iR=Og.prototype,aC=function(a){tde(this,{type:lE,done:!1,notified:!1,parent:!1,reactions:new Qce,rejection:!1,state:yY,value:void 0})},aC.prototype=Gce(iR,"then",function(a,t){var n=rR(this),h=JR(Xce(this,Og));return n.parent=!0,h.ok=KR(a)?a:!0,h.fail=KR(t)&&t,h.domain=$C?aL.domain:void 0,n.state===yY?n.reactions.add(h):nL(function(){X8(h,n)}),h.promise}),bY=function(){var e=new aC,a=rR(e);this.promise=e,this.resolve=$g(QR,a),this.reject=$g(Pg,a)},W8.f=JR=function(e){return e===Og||e===sde?new bY(e):ide(e)});Wce({global:!0,wrap:!0,forced:G8},{Promise:Og});zce(Og,lE,!1,!0);Uce(lE);var hde=iy,cde=fB,dde=q_.CONSTRUCTOR,uE=dde||!cde(function(e){hde.all(e).then(void 0,function(){})}),fde=He,vde=on,pde=za,mde=iu,gde=ry,yde=bp,bde=uE;fde({target:"Promise",stat:!0,forced:bde},{all:function(a){var t=this,n=mde.f(t),h=n.resolve,d=n.reject,p=gde(function(){var y=pde(t.resolve),b=[],w=0,$=1;yde(a,function(A){var R=w++,Y=!1;$++,vde(y,t,A).then(function(V){Y||(Y=!0,b[R]=V,--$||h(b))},d)}),--$||h(b)});return p.error&&d(p.value),n.promise}});var _de=He,wde=q_.CONSTRUCTOR,wY=iy;wY&&wY.prototype;_de({target:"Promise",proto:!0,forced:wde,real:!0},{catch:function(e){return this.then(void 0,e)}});var kde=He,Sde=on,xde=za,Tde=iu,Cde=ry,Ede=bp,Dde=uE;kde({target:"Promise",stat:!0,forced:Dde},{race:function(a){var t=this,n=Tde.f(t),h=n.reject,d=Cde(function(){var p=xde(t.resolve);Ede(a,function(y){Sde(p,t,y).then(n.resolve,h)})});return d.error&&h(d.value),n.promise}});var Ode=He,$de=on,Pde=iu,Ide=q_.CONSTRUCTOR;Ode({target:"Promise",stat:!0,forced:Ide},{reject:function(a){var t=Pde.f(this);return $de(t.reject,void 0,a),t.promise}});var Mde=xo,Ade=an,Rde=iu,Q8=function(e,a){if(Mde(e),Ade(a)&&a.constructor===e)return a;var t=Rde.f(e),n=t.resolve;return n(a),t.promise},Nde=He,Lde=ha,Fde=n7,jde=iy,Yde=q_.CONSTRUCTOR,Bde=Q8,Hde=Lde("Promise"),Wde=!Yde;Nde({target:"Promise",stat:!0,forced:Fde},{resolve:function(a){return Bde(Wde&&this===Hde?jde:this,a)}});var Gde=He,zde=on,Ude=za,Vde=iu,qde=ry,Kde=bp,Xde=uE;Gde({target:"Promise",stat:!0,forced:Xde},{allSettled:function(a){var t=this,n=Vde.f(t),h=n.resolve,d=n.reject,p=qde(function(){var y=Ude(t.resolve),b=[],w=0,$=1;Kde(a,function(A){var R=w++,Y=!1;$++,zde(y,t,A).then(function(V){Y||(Y=!0,b[R]={status:"fulfilled",value:V},--$||h(b))},function(V){Y||(Y=!0,b[R]={status:"rejected",reason:V},--$||h(b))})}),--$||h(b)});return p.error&&d(p.value),n.promise}});var Zde=He,Jde=on,Qde=za,efe=ha,tfe=iu,rfe=ry,ife=bp,nfe=uE,kY="No one promise resolved";Zde({target:"Promise",stat:!0,forced:nfe},{any:function(a){var t=this,n=efe("AggregateError"),h=tfe.f(t),d=h.resolve,p=h.reject,y=rfe(function(){var b=Qde(t.resolve),w=[],$=0,A=1,R=!1;ife(a,function(Y){var V=$++,oe=!1;A++,Jde(b,t,Y).then(function(G){oe||R||(R=!0,d(G))},function(G){oe||R||(oe=!0,w[V]=G,--A||p(new n(w,kY)))})}),--A||p(new n(w,kY))});return y.error&&p(y.value),h.promise}});var afe=He,eN=iy,ofe=Yt,sfe=ha,lfe=si,ufe=I8,SY=Q8,hfe=eN&&eN.prototype,cfe=!!eN&&ofe(function(){hfe.finally.call({then:function(){}},function(){})});afe({target:"Promise",proto:!0,real:!0,forced:cfe},{finally:function(e){var a=ufe(this,sfe("Promise")),t=lfe(e);return this.then(t?function(n){return SY(a,e()).then(function(){return n})}:e,t?function(n){return SY(a,e()).then(function(){throw n})}:e)}});var dfe=tr,ffe=dfe.Promise,vfe=ffe,pfe=vfe,mfe=He,gfe=iu;mfe({target:"Promise",stat:!0},{withResolvers:function(){var a=gfe.f(this);return{promise:a.promise,resolve:a.resolve,reject:a.reject}}});var yfe=pfe,bfe=yfe,_fe=He,wfe=iu,kfe=ry;_fe({target:"Promise",stat:!0,forced:!0},{try:function(e){var a=wfe.f(this),t=kfe(e);return(t.error?a.reject:a.resolve)(t.value),a.promise}});var Sfe=bfe,xfe=Sfe,Tfe=xfe,Cfe=bH,Efe=Cfe,Dfe=Efe,Ofe=Dfe,$fe=Ofe;(function(e){var a=Jue.default,t=kB,n=LN,h=w8,d=x8,p=ihe,y=sH,b=k8,w=Tfe,$=$fe,A=uH;function R(){e.exports=R=function(){return V},e.exports.__esModule=!0,e.exports.default=e.exports;var Y,V={},oe=Object.prototype,G=oe.hasOwnProperty,ae=t||function(ke,ge,be){ke[ge]=be.value},ve=typeof n=="function"?n:{},ye=ve.iterator||"@@iterator",pe=ve.asyncIterator||"@@asyncIterator",Se=ve.toStringTag||"@@toStringTag";function ze(ke,ge,be){return t(ke,ge,{value:be,enumerable:!0,configurable:!0,writable:!0}),ke[ge]}try{ze({},"")}catch(ke){ze=function(be,je,Qe){return be[je]=Qe}}function tt(ke,ge,be,je){var Qe=ge&&ge.prototype instanceof ir?ge:ir,rt=h(Qe.prototype),Ut=new En(je||[]);return ae(rt,"_invoke",{value:sn(ke,be,Ut)}),rt}function _e(ke,ge,be){try{return{type:"normal",arg:ke.call(ge,be)}}catch(je){return{type:"throw",arg:je}}}V.wrap=tt;var it="suspendedStart",Ne="suspendedYield",qe="executing",Fe="completed",Ye={};function ir(){}function gt(){}function Kt(){}var lt={};ze(lt,ye,function(){return this});var kt=d,$r=kt&&kt(kt(ln([])));$r&&$r!==oe&&G.call($r,ye)&&(lt=$r);var ht=Kt.prototype=ir.prototype=h(lt);function Ct(ke){var ge;p(ge=["next","throw","return"]).call(ge,function(be){ze(ke,be,function(je){return this._invoke(be,je)})})}function ui(ke,ge){function be(Qe,rt,Ut,Bt){var ii=_e(ke[Qe],ke,rt);if(ii.type!=="throw"){var zn=ii.arg,sr=zn.value;return sr&&a(sr)=="object"&&G.call(sr,"__await")?ge.resolve(sr.__await).then(function(Zi){be("next",Zi,Ut,Bt)},function(Zi){be("throw",Zi,Ut,Bt)}):ge.resolve(sr).then(function(Zi){zn.value=Zi,Ut(zn)},function(Zi){return be("throw",Zi,Ut,Bt)})}Bt(ii.arg)}var je;ae(this,"_invoke",{value:function(rt,Ut){function Bt(){return new ge(function(ii,zn){be(rt,Ut,ii,zn)})}return je=je?je.then(Bt,Bt):Bt()}})}function sn(ke,ge,be){var je=it;return function(Qe,rt){if(je===qe)throw new Error("Generator is already running");if(je===Fe){if(Qe==="throw")throw rt;return{value:Y,done:!0}}for(be.method=Qe,be.arg=rt;;){var Ut=be.delegate;if(Ut){var Bt=$t(Ut,be);if(Bt){if(Bt===Ye)continue;return Bt}}if(be.method==="next")be.sent=be._sent=be.arg;else if(be.method==="throw"){if(je===it)throw je=Fe,be.arg;be.dispatchException(be.arg)}else be.method==="return"&&be.abrupt("return",be.arg);je=qe;var ii=_e(ke,ge,be);if(ii.type==="normal"){if(je=be.done?Fe:Ne,ii.arg===Ye)continue;return{value:ii.arg,done:be.done}}ii.type==="throw"&&(je=Fe,be.method="throw",be.arg=ii.arg)}}}function $t(ke,ge){var be=ge.method,je=ke.iterator[be];if(je===Y)return ge.delegate=null,be==="throw"&&ke.iterator.return&&(ge.method="return",ge.arg=Y,$t(ke,ge),ge.method==="throw")||be!=="return"&&(ge.method="throw",ge.arg=new TypeError("The iterator does not provide a '"+be+"' method")),Ye;var Qe=_e(je,ke.iterator,ge.arg);if(Qe.type==="throw")return ge.method="throw",ge.arg=Qe.arg,ge.delegate=null,Ye;var rt=Qe.arg;return rt?rt.done?(ge[ke.resultName]=rt.value,ge.next=ke.nextLoc,ge.method!=="return"&&(ge.method="next",ge.arg=Y),ge.delegate=null,Ye):rt:(ge.method="throw",ge.arg=new TypeError("iterator result is not an object"),ge.delegate=null,Ye)}function ce(ke){var ge,be={tryLoc:ke[0]};1 in ke&&(be.catchLoc=ke[1]),2 in ke&&(be.finallyLoc=ke[2],be.afterLoc=ke[3]),y(ge=this.tryEntries).call(ge,be)}function Gn(ke){var ge=ke.completion||{};ge.type="normal",delete ge.arg,ke.completion=ge}function En(ke){this.tryEntries=[{tryLoc:"root"}],p(ke).call(ke,ce,this),this.reset(!0)}function ln(ke){if(ke||ke===""){var ge=ke[ye];if(ge)return ge.call(ke);if(typeof ke.next=="function")return ke;if(!isNaN(ke.length)){var be=-1,je=function Qe(){for(;++be<ke.length;)if(G.call(ke,be))return Qe.value=ke[be],Qe.done=!1,Qe;return Qe.value=Y,Qe.done=!0,Qe};return je.next=je}}throw new TypeError(a(ke)+" is not iterable")}return gt.prototype=Kt,ae(ht,"constructor",{value:Kt,configurable:!0}),ae(Kt,"constructor",{value:gt,configurable:!0}),gt.displayName=ze(Kt,Se,"GeneratorFunction"),V.isGeneratorFunction=function(ke){var ge=typeof ke=="function"&&ke.constructor;return!!ge&&(ge===gt||(ge.displayName||ge.name)==="GeneratorFunction")},V.mark=function(ke){return b?b(ke,Kt):(ke.__proto__=Kt,ze(ke,Se,"GeneratorFunction")),ke.prototype=h(ht),ke},V.awrap=function(ke){return{__await:ke}},Ct(ui.prototype),ze(ui.prototype,pe,function(){return this}),V.AsyncIterator=ui,V.async=function(ke,ge,be,je,Qe){Qe===void 0&&(Qe=w);var rt=new ui(tt(ke,ge,be,je),Qe);return V.isGeneratorFunction(ge)?rt:rt.next().then(function(Ut){return Ut.done?Ut.value:rt.next()})},Ct(ht),ze(ht,Se,"Generator"),ze(ht,ye,function(){return this}),ze(ht,"toString",function(){return"[object Generator]"}),V.keys=function(ke){var ge=Object(ke),be=[];for(var je in ge)y(be).call(be,je);return $(be).call(be),function Qe(){for(;be.length;){var rt=be.pop();if(rt in ge)return Qe.value=rt,Qe.done=!1,Qe}return Qe.done=!0,Qe}},V.values=ln,En.prototype={constructor:En,reset:function(ge){var be;if(this.prev=0,this.next=0,this.sent=this._sent=Y,this.done=!1,this.delegate=null,this.method="next",this.arg=Y,p(be=this.tryEntries).call(be,Gn),!ge)for(var je in this)je.charAt(0)==="t"&&G.call(this,je)&&!isNaN(+A(je).call(je,1))&&(this[je]=Y)},stop:function(){this.done=!0;var ge=this.tryEntries[0].completion;if(ge.type==="throw")throw ge.arg;return this.rval},dispatchException:function(ge){if(this.done)throw ge;var be=this;function je(zn,sr){return Ut.type="throw",Ut.arg=ge,be.next=zn,sr&&(be.method="next",be.arg=Y),!!sr}for(var Qe=this.tryEntries.length-1;Qe>=0;--Qe){var rt=this.tryEntries[Qe],Ut=rt.completion;if(rt.tryLoc==="root")return je("end");if(rt.tryLoc<=this.prev){var Bt=G.call(rt,"catchLoc"),ii=G.call(rt,"finallyLoc");if(Bt&&ii){if(this.prev<rt.catchLoc)return je(rt.catchLoc,!0);if(this.prev<rt.finallyLoc)return je(rt.finallyLoc)}else if(Bt){if(this.prev<rt.catchLoc)return je(rt.catchLoc,!0)}else{if(!ii)throw new Error("try statement without catch or finally");if(this.prev<rt.finallyLoc)return je(rt.finallyLoc)}}}},abrupt:function(ge,be){for(var je=this.tryEntries.length-1;je>=0;--je){var Qe=this.tryEntries[je];if(Qe.tryLoc<=this.prev&&G.call(Qe,"finallyLoc")&&this.prev<Qe.finallyLoc){var rt=Qe;break}}rt&&(ge==="break"||ge==="continue")&&rt.tryLoc<=be&&be<=rt.finallyLoc&&(rt=null);var Ut=rt?rt.completion:{};return Ut.type=ge,Ut.arg=be,rt?(this.method="next",this.next=rt.finallyLoc,Ye):this.complete(Ut)},complete:function(ge,be){if(ge.type==="throw")throw ge.arg;return ge.type==="break"||ge.type==="continue"?this.next=ge.arg:ge.type==="return"?(this.rval=this.arg=ge.arg,this.method="return",this.next="end"):ge.type==="normal"&&be&&(this.next=be),Ye},finish:function(ge){for(var be=this.tryEntries.length-1;be>=0;--be){var je=this.tryEntries[be];if(je.finallyLoc===ge)return this.complete(je.completion,je.afterLoc),Gn(je),Ye}},catch:function(ge){for(var be=this.tryEntries.length-1;be>=0;--be){var je=this.tryEntries[be];if(je.tryLoc===ge){var Qe=je.completion;if(Qe.type==="throw"){var rt=Qe.arg;Gn(je)}return rt}}throw new Error("illegal catch attempt")},delegateYield:function(ge,be,je){return this.delegate={iterator:ln(ge),resultName:be,nextLoc:je},this.method==="next"&&(this.arg=Y),Ye}},V}e.exports=R,e.exports.__esModule=!0,e.exports.default=e.exports})(T8);var Pfe=T8.exports,gC=Pfe(),Ife=gC;try{regeneratorRuntime=gC}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=gC:Function("r","regeneratorRuntime = r")(gC)}var Ya=Be(Ife),Mfe=za,Afe=ua,Rfe=zC,Nfe=Ua,Lfe=TypeError,Ffe=function(e){return function(a,t,n,h){Mfe(t);var d=Afe(a),p=Rfe(d),y=Nfe(d),b=e?y-1:0,w=e?-1:1;if(n<2)for(;;){if(b in p){h=p[b],b+=w;break}if(b+=w,e?b<0:y<=b)throw new Lfe("Reduce of empty array with no initial value")}for(;e?b>=0:y>b;b+=w)b in p&&(h=t(h,p[b],b,d));return h}},jfe={left:Ffe(!1)},Yfe=He,Bfe=jfe.left,Hfe=ey,xY=zg,Wfe=V_,Gfe=!Wfe&&xY>79&&xY<83,zfe=Gfe||!Hfe("reduce");Yfe({target:"Array",proto:!0,forced:zfe},{reduce:function(a){var t=arguments.length;return Bfe(this,a,t,t>1?arguments[1]:void 0)}});var Ufe=Yr,Vfe=Ufe("Array").reduce,qfe=Cr,Kfe=Vfe,nR=Array.prototype,Xfe=function(e){var a=e.reduce;return e===nR||qfe(nR,e)&&a===nR.reduce?Kfe:a},Zfe=Xfe,Jfe=Zfe,Qfe=Jfe,sL=Be(Qfe),eve=wd,tve=Ua,rve=XC,ive=_d,e3=function(e,a,t,n,h,d,p,y){for(var b=h,w=0,$=p?ive(p,y):!1,A,R;w<n;)w in t&&(A=$?$(t[w],w,a):t[w],d>0&&eve(A)?(R=tve(A),b=e3(e,a,A,R,b,d-1)-1):(rve(b+1),e[b]=A),b++),w++;return b},nve=e3,ave=He,ove=nve,sve=za,lve=ua,uve=Ua,hve=ZC;ave({target:"Array",proto:!0},{flatMap:function(a){var t=lve(this),n=uve(t),h;return sve(a),h=hve(t,0),h.length=ove(h,t,t,n,0,1,a,arguments.length>1?arguments[1]:void 0),h}});var cve=Yr,dve=cve("Array").flatMap,fve=Cr,vve=dve,aR=Array.prototype,pve=function(e){var a=e.flatMap;return e===aR||fve(aR,e)&&a===aR.flatMap?vve:a},mve=pve,gve=mve,yve=gve,bve=Be(yve),t3={exports:{}},_ve=Yt,wve=_ve(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),kve=Yt,Sve=an,xve=Mh,TY=wve,yC=Object.isExtensible,Tve=kve(function(){yC(1)}),Cve=Tve||TY?function(a){return!Sve(a)||TY&&xve(a)==="ArrayBuffer"?!1:yC?yC(a):!0}:yC,Eve=Yt,Dve=!Eve(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ove=He,$ve=Zt,Pve=E_,Ive=an,lL=Ni,Mve=Ga.f,CY=N_,Ave=$N,uL=Cve,Rve=HC,Nve=Dve,r3=!1,Ih=Rve("meta"),Lve=0,hL=function(e){Mve(e,Ih,{value:{objectID:"O"+Lve++,weakData:{}}})},Fve=function(e,a){if(!Ive(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!lL(e,Ih)){if(!uL(e))return"F";if(!a)return"E";hL(e)}return e[Ih].objectID},jve=function(e,a){if(!lL(e,Ih)){if(!uL(e))return!0;if(!a)return!1;hL(e)}return e[Ih].weakData},Yve=function(e){return Nve&&r3&&uL(e)&&!lL(e,Ih)&&hL(e),e},Bve=function(){Hve.enable=function(){},r3=!0;var e=CY.f,a=$ve([].splice),t={};t[Ih]=1,e(t).length&&(CY.f=function(n){for(var h=e(n),d=0,p=h.length;d<p;d++)if(h[d]===Ih){a(h,d,1);break}return h},Ove({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ave.f}))},Hve=t3.exports={enable:Bve,fastKey:Fve,getWeakData:jve,onFreeze:Yve};Pve[Ih]=!0;var i3=t3.exports,Wve=He,Gve=Dr,zve=i3,Uve=Yt,Vve=Rh,qve=bp,Kve=rL,Xve=si,Zve=an,Jve=Wg,Qve=gp,epe=Ga.f,tpe=Nh.forEach,rpe=Xi,n3=qg,ipe=n3.set,npe=n3.getterFor,a3=function(e,a,t){var n=e.indexOf("Map")!==-1,h=e.indexOf("Weak")!==-1,d=n?"set":"add",p=Gve[e],y=p&&p.prototype,b={},w;if(!rpe||!Xve(p)||!(h||y.forEach&&!Uve(function(){new p().entries().next()})))w=t.getConstructor(a,e,n,d),zve.enable();else{w=a(function(R,Y){ipe(Kve(R,$),{type:e,collection:new p}),Jve(Y)||qve(Y,R[d],{that:R,AS_ENTRIES:n})});var $=w.prototype,A=npe(e);tpe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(R){var Y=R==="add"||R==="set";R in y&&!(h&&R==="clear")&&Vve($,R,function(V,oe){var G=A(this).collection;if(!Y&&h&&!Zve(V))return R==="get"?void 0:!1;var ae=G[R](V===0?0:V,oe);return Y?this:ae})}),h||epe($,"size",{configurable:!0,get:function(){return A(this).collection.size}})}return Qve(w,e,!1,!0),b[e]=w,Wve({global:!0,forced:!0},b),h||t.setStrong(w,e,n),w},ape=Xg,ope=function(e,a,t){for(var n in a)t&&t.unsafe&&e[n]?e[n]=a[n]:ape(e,n,a[n],t);return e},spe=mp,lpe=PN,EY=ope,upe=_d,hpe=rL,cpe=Wg,dpe=bp,fpe=CN,oC=EN,vpe=$8,Xb=Xi,DY=i3.fastKey,o3=qg,OY=o3.set,oR=o3.getterFor,s3={getConstructor:function(e,a,t,n){var h=e(function(w,$){hpe(w,d),OY(w,{type:a,index:spe(null),first:void 0,last:void 0,size:0}),Xb||(w.size=0),cpe($)||dpe($,w[n],{that:w,AS_ENTRIES:t})}),d=h.prototype,p=oR(a),y=function(w,$,A){var R=p(w),Y=b(w,$),V,oe;return Y?Y.value=A:(R.last=Y={index:oe=DY($,!0),key:$,value:A,previous:V=R.last,next:void 0,removed:!1},R.first||(R.first=Y),V&&(V.next=Y),Xb?R.size++:w.size++,oe!=="F"&&(R.index[oe]=Y)),w},b=function(w,$){var A=p(w),R=DY($),Y;if(R!=="F")return A.index[R];for(Y=A.first;Y;Y=Y.next)if(Y.key===$)return Y};return EY(d,{clear:function(){for(var $=this,A=p($),R=A.index,Y=A.first;Y;)Y.removed=!0,Y.previous&&(Y.previous=Y.previous.next=void 0),delete R[Y.index],Y=Y.next;A.first=A.last=void 0,Xb?A.size=0:$.size=0},delete:function(w){var $=this,A=p($),R=b($,w);if(R){var Y=R.next,V=R.previous;delete A.index[R.index],R.removed=!0,V&&(V.next=Y),Y&&(Y.previous=V),A.first===R&&(A.first=Y),A.last===R&&(A.last=V),Xb?A.size--:$.size--}return!!R},forEach:function($){for(var A=p(this),R=upe($,arguments.length>1?arguments[1]:void 0),Y;Y=Y?Y.next:A.first;)for(R(Y.value,Y.key,this);Y&&Y.removed;)Y=Y.previous},has:function($){return!!b(this,$)}}),EY(d,t?{get:function($){var A=b(this,$);return A&&A.value},set:function($,A){return y(this,$===0?0:$,A)}}:{add:function($){return y(this,$=$===0?0:$,$)}}),Xb&&lpe(d,"size",{configurable:!0,get:function(){return p(this).size}}),h},setStrong:function(e,a,t){var n=a+" Iterator",h=oR(a),d=oR(n);fpe(e,a,function(p,y){OY(this,{type:n,target:p,state:h(p),kind:y,last:void 0})},function(){for(var p=d(this),y=p.kind,b=p.last;b&&b.removed;)b=b.previous;return!p.target||!(p.last=b=b?b.next:p.state.first)?(p.target=void 0,oC(void 0,!0)):oC(y==="keys"?b.key:y==="values"?b.value:[b.key,b.value],!1)},t?"entries":"values",!t,!0),vpe(a)}},ppe=a3,mpe=s3;ppe("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mpe);var gpe=tr,ype=gpe.Map,bpe=ype,_pe=bpe,wpe=_pe,l3=Be(wpe),kpe=a3,Spe=s3;kpe("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Spe);var xpe=tr,Tpe=xpe.Set,Cpe=Tpe,Epe=Cpe,Dpe=Epe,l_=Be(Dpe),Ope=tH,Ig=Be(Ope),$pe=ON,Ppe=$pe,Ipe=Ppe,Mpe=Ipe,Ape=Mpe,Rpe=Ape,Npe=Rpe,Lpe=Npe,Fpe=Lpe,jpe=Fpe,sR=Be(jpe),$Y=xB,Ype=Math.floor,tN=function(e,a){var t=e.length,n=Ype(t/2);return t<8?Bpe(e,a):Hpe(e,tN($Y(e,0,n),a),tN($Y(e,n),a),a)},Bpe=function(e,a){for(var t=e.length,n=1,h,d;n<t;){for(d=n,h=e[n];d&&a(e[d-1],h)>0;)e[d]=e[--d];d!==n++&&(e[d]=h)}return e},Hpe=function(e,a,t,n){for(var h=a.length,d=t.length,p=0,y=0;p<h||y<d;)e[p+y]=p<h&&y<d?n(a[p],t[y])<=0?a[p++]:t[y++]:p<h?a[p++]:t[y++];return e},Wpe=tN,Gpe=bd,PY=Gpe.match(/firefox\/(\d+)/i),zpe=!!PY&&+PY[1],Upe=bd,Vpe=/MSIE|Trident/.test(Upe),qpe=bd,IY=qpe.match(/AppleWebKit\/(\d+)\./),Kpe=!!IY&&+IY[1],Xpe=He,u3=Zt,Zpe=za,Jpe=ua,MY=Ua,Qpe=_H,AY=Qo,cL=Yt,eme=Wpe,tme=ey,RY=zpe,rme=Vpe,NY=zg,LY=Kpe,pd=[],FY=u3(pd.sort),ime=u3(pd.push),nme=cL(function(){pd.sort(void 0)}),ame=cL(function(){pd.sort(null)}),ome=tme("sort"),h3=!cL(function(){if(NY)return NY<70;if(!(RY&&RY>3)){if(rme)return!0;if(LY)return LY<603;var e="",a,t,n,h;for(a=65;a<76;a++){switch(t=String.fromCharCode(a),a){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(h=0;h<47;h++)pd.push({k:t+h,v:n})}for(pd.sort(function(d,p){return p.v-d.v}),h=0;h<pd.length;h++)t=pd[h].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),sme=nme||!ame||!ome||!h3,lme=function(e){return function(a,t){return t===void 0?-1:a===void 0?1:e!==void 0?+e(a,t)||0:AY(a)>AY(t)?1:-1}};Xpe({target:"Array",proto:!0,forced:sme},{sort:function(a){a!==void 0&&Zpe(a);var t=Jpe(this);if(h3)return a===void 0?FY(t):FY(t,a);var n=[],h=MY(t),d,p;for(p=0;p<h;p++)p in t&&ime(n,t[p]);for(eme(n,lme(a)),d=MY(n),p=0;p<d;)t[p]=n[p++];for(;p<h;)Qpe(t,p++);return t}});var ume=Yr,hme=ume("Array").sort,cme=Cr,dme=hme,lR=Array.prototype,fme=function(e){var a=e.sort;return e===lR||cme(lR,e)&&a===lR.sort?dme:a},vme=fme,pme=vme,mme=pme,Ii=Be(mme),gme=He,yme=Nh.some,bme=ey,_me=bme("some");gme({target:"Array",proto:!0,forced:!_me},{some:function(a){return yme(this,a,arguments.length>1?arguments[1]:void 0)}});var wme=Yr,kme=wme("Array").some,Sme=Cr,xme=kme,uR=Array.prototype,Tme=function(e){var a=e.some;return e===uR||Sme(uR,e)&&a===uR.some?xme:a},Cme=Tme,Eme=Cme,Dme=Eme,c3=Be(Dme),Ome=Yr,$me=Ome("Array").keys,Pme=$me,Ime=Pme,Mme=Ah,Ame=Ni,Rme=Cr,Nme=Ime,hR=Array.prototype,Lme={DOMTokenList:!0,NodeList:!0},Fme=function(e){var a=e.keys;return e===hR||Rme(hR,e)&&a===hR.keys||Ame(Lme,Mme(e))?Nme:a},jme=Fme,bg=Be(jme),Yme=Yr,Bme=Yme("Array").values,Hme=Bme,Wme=Hme,Gme=Ah,zme=Ni,Ume=Cr,Vme=Wme,cR=Array.prototype,qme={DOMTokenList:!0,NodeList:!0},Kme=function(e){var a=e.values;return e===cR||Ume(cR,e)&&a===cR.values||zme(qme,Gme(e))?Vme:a},Xme=Kme,jY=Be(Xme),Zme=Yr,Jme=Zme("Array").entries,Qme=Jme,ege=Qme,tge=Ah,rge=Ni,ige=Cr,nge=ege,dR=Array.prototype,age={DOMTokenList:!0,NodeList:!0},oge=function(e){var a=e.entries;return e===dR||ige(dR,e)&&a===dR.entries||rge(age,tge(e))?nge:a},sge=oge,lge=Be(sge),uge=wB,dL=Be(uge),hge=He,cge=ha,fR=Kg,dge=mH,YY=P8,fge=xo,BY=an,vge=mp,d3=Yt,fL=cge("Reflect","construct"),pge=Object.prototype,mge=[].push,f3=d3(function(){function e(){}return!(fL(function(){},[],e)instanceof e)}),v3=!d3(function(){fL(function(){})}),HY=f3||v3;hge({target:"Reflect",stat:!0,forced:HY,sham:HY},{construct:function(a,t){YY(a),fge(t);var n=arguments.length<3?a:YY(arguments[2]);if(v3&&!f3)return fL(a,t,n);if(a===n){switch(t.length){case 0:return new a;case 1:return new a(t[0]);case 2:return new a(t[0],t[1]);case 3:return new a(t[0],t[1],t[2]);case 4:return new a(t[0],t[1],t[2],t[3])}var h=[null];return fR(mge,h,t),new(fR(dge,a,h))}var d=n.prototype,p=vge(BY(d)?d:pge),y=fR(a,p,t);return BY(y)?y:p}});var gge=tr,yge=gge.Reflect.construct,bge=yge,_ge=bge,wge=_ge,Nt=Be(wge),kge=tr,Sge=kge.Object.getOwnPropertySymbols,xge=Sge,Tge=xge,Cge=Tge,PC=Be(Cge),p3={exports:{}},Ege=He,Dge=Yt,Oge=Qs,m3=pp.f,g3=Xi,$ge=!g3||Dge(function(){m3(1)});Ege({target:"Object",stat:!0,forced:$ge,sham:!g3},{getOwnPropertyDescriptor:function(a,t){return m3(Oge(a),t)}});var Pge=tr,y3=Pge.Object,Ige=p3.exports=function(a,t){return y3.getOwnPropertyDescriptor(a,t)};y3.getOwnPropertyDescriptor.sham&&(Ige.sham=!0);var Mge=p3.exports,Age=Mge,Rge=Age,Nge=Rge,hE=Be(Nge),Lge=He,Fge=Xi,jge=FN,Yge=Qs,Bge=pp,Hge=Jg;Lge({target:"Object",stat:!0,sham:!Fge},{getOwnPropertyDescriptors:function(a){for(var t=Yge(a),n=Bge.f,h=jge(t),d={},p=0,y,b;h.length>p;)b=n(t,y=h[p++]),b!==void 0&&Hge(d,y,b);return d}});var Wge=tr,Gge=Wge.Object.getOwnPropertyDescriptors,zge=Gge,Uge=zge,Vge=Uge,IC=Be(Vge),b3={exports:{}},qge=He,Kge=Xi,WY=UC.f;qge({target:"Object",stat:!0,forced:Object.defineProperties!==WY,sham:!Kge},{defineProperties:WY});var Xge=tr,_3=Xge.Object,Zge=b3.exports=function(a,t){return _3.defineProperties(a,t)};_3.defineProperties.sham&&(Zge.sham=!0);var Jge=b3.exports,Qge=Jge,eye=Qge,tye=eye,w3=Be(tye),sC,rye=new Uint8Array(16);function iye(){if(!sC&&(sC=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sC(rye)}var Sn=[];for(let e=0;e<256;++e)Sn.push((e+256).toString(16).slice(1));function nye(e,a=0){return Sn[e[a+0]]+Sn[e[a+1]]+Sn[e[a+2]]+Sn[e[a+3]]+"-"+Sn[e[a+4]]+Sn[e[a+5]]+"-"+Sn[e[a+6]]+Sn[e[a+7]]+"-"+Sn[e[a+8]]+Sn[e[a+9]]+"-"+Sn[e[a+10]]+Sn[e[a+11]]+Sn[e[a+12]]+Sn[e[a+13]]+Sn[e[a+14]]+Sn[e[a+15]]}var aye=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),GY={randomUUID:aye};function vL(e,a,t){if(GY.randomUUID&&!e)return GY.randomUUID();e=e||{};let n=e.random||(e.rng||iye)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,nye(n)}var k3;function zY(e,a){var t=Ki(e);if(PC){var n=PC(e);a&&(n=Rt(n).call(n,function(h){return hE(e,h).enumerable})),t.push.apply(t,n)}return t}function UY(e){for(var a=1;a<arguments.length;a++){var t,n,h=arguments[a]!=null?arguments[a]:{};a%2?Tt(t=zY(Object(h),!0)).call(t,function(d){fr(e,d,h[d])}):IC?w3(e,IC(h)):Tt(n=zY(Object(h))).call(n,function(d){dL(e,d,hE(h,d))})}return e}function oye(e){var a=sye();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function sye(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}function yo(e,a){var t=typeof Qg!="undefined"&&A_(e)||e["@@iterator"];if(!t){if(Ot(e)||(t=lye(e))||a){t&&(e=t);var n=0,h=function(){};return{s:h,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function lye(e,a){var t;if(e){if(typeof e=="string")return VY(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VY(e,a)}}function VY(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}function uye(e){return new cye(e)}var hye=function(){function e(a,t,n){var h,d,p;br(this,e),fr(this,"_source",void 0),fr(this,"_transformers",void 0),fr(this,"_target",void 0),fr(this,"_listeners",{add:Ee(h=this._add).call(h,this),remove:Ee(d=this._remove).call(d,this),update:Ee(p=this._update).call(p,this)}),this._source=a,this._transformers=t,this._target=n}return _r(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var n;return sL(n=this._transformers).call(n,function(h,d){return d(h)},t)}},{key:"_add",value:function(t,n){n!=null&&this._target.add(this._transformItems(this._source.get(n.items)))}},{key:"_update",value:function(t,n){n!=null&&this._target.update(this._transformItems(this._source.get(n.items)))}},{key:"_remove",value:function(t,n){n!=null&&this._target.remove(this._transformItems(n.oldData))}}]),e}(),cye=function(){function e(a){br(this,e),fr(this,"_source",void 0),fr(this,"_transformers",[]),this._source=a}return _r(e,[{key:"filter",value:function(t){return this._transformers.push(function(n){return Rt(n).call(n,t)}),this}},{key:"map",value:function(t){return this._transformers.push(function(n){return xn(n).call(n,t)}),this}},{key:"flatMap",value:function(t){return this._transformers.push(function(n){return bve(n).call(n,t)}),this}},{key:"to",value:function(t){return new hye(this._source,this._transformers,t)}}]),e}();function qY(e){return typeof e=="string"||typeof e=="number"}var dye=function(){function e(a){br(this,e),fr(this,"delay",void 0),fr(this,"max",void 0),fr(this,"_queue",[]),fr(this,"_timeout",null),fr(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(a)}return _r(e,[{key:"setOptions",value:function(t){t&&typeof t.delay!="undefined"&&(this.delay=t.delay),t&&typeof t.max!="undefined"&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,n=this._extended.methods,h=0;h<n.length;h++){var d=n[h];d.original?t[d.name]=d.original:delete t[d.name]}this._extended=null}}},{key:"replace",value:function(t,n){var h=this,d=t[n];if(!d)throw new Error("Method "+n+" undefined");t[n]=function(){for(var p=arguments.length,y=new Array(p),b=0;b<p;b++)y[b]=arguments[b];h.queue({args:y,fn:d,context:this})}}},{key:"queue",value:function(t){typeof t=="function"?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Zo(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,n;Tt(t=Ks(n=this._queue).call(n,0)).call(t,function(h){h.fn.apply(h.context||h.fn,h.args||[])})}}],[{key:"extend",value:function(t,n){var h=new e(n);if(t.flush!==void 0)throw new Error("Target object already has a property flush");t.flush=function(){h.flush()};var d=[{name:"flush",original:void 0}];if(n&&n.replace)for(var p=0;p<n.replace.length;p++){var y=n.replace[p];d.push({name:y,original:t[y]}),h.replace(t,y)}return h._extended={object:t,methods:d},h}}]),e}(),fye=function(){function e(){br(this,e),fr(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),fr(this,"subscribe",e.prototype.on),fr(this,"unsubscribe",e.prototype.off)}return _r(e,[{key:"_trigger",value:function(t,n,h){var d,p;if(t==="*")throw new Error("Cannot trigger event *");Tt(d=Cn(p=[]).call(p,Pi(this._subscribers[t]),Pi(this._subscribers["*"]))).call(d,function(y){y(t,n,h!=null?h:null)})}},{key:"on",value:function(t,n){typeof n=="function"&&this._subscribers[t].push(n)}},{key:"off",value:function(t,n){var h;this._subscribers[t]=Rt(h=this._subscribers[t]).call(h,function(d){return d!==n})}}]),e}();k3=Ig;var KY=function(){function e(a){br(this,e),fr(this,"_pairs",void 0),this._pairs=a}return _r(e,[{key:k3,value:Ya.mark(function a(){var t,n,h,d,p;return Ya.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:t=yo(this._pairs),b.prev=1,t.s();case 3:if((n=t.n()).done){b.next=9;break}return h=Wn(n.value,2),d=h[0],p=h[1],b.next=7,[d,p];case 7:b.next=3;break;case 9:b.next=14;break;case 11:b.prev=11,b.t0=b.catch(1),t.e(b.t0);case 14:return b.prev=14,t.f(),b.finish(14);case 17:case"end":return b.stop()}},a,this,[[1,11,14,17]])})},{key:"entries",value:Ya.mark(function a(){var t,n,h,d,p;return Ya.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:t=yo(this._pairs),b.prev=1,t.s();case 3:if((n=t.n()).done){b.next=9;break}return h=Wn(n.value,2),d=h[0],p=h[1],b.next=7,[d,p];case 7:b.next=3;break;case 9:b.next=14;break;case 11:b.prev=11,b.t0=b.catch(1),t.e(b.t0);case 14:return b.prev=14,t.f(),b.finish(14);case 17:case"end":return b.stop()}},a,this,[[1,11,14,17]])})},{key:"keys",value:Ya.mark(function a(){var t,n,h,d;return Ya.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:t=yo(this._pairs),y.prev=1,t.s();case 3:if((n=t.n()).done){y.next=9;break}return h=Wn(n.value,1),d=h[0],y.next=7,d;case 7:y.next=3;break;case 9:y.next=14;break;case 11:y.prev=11,y.t0=y.catch(1),t.e(y.t0);case 14:return y.prev=14,t.f(),y.finish(14);case 17:case"end":return y.stop()}},a,this,[[1,11,14,17]])})},{key:"values",value:Ya.mark(function a(){var t,n,h,d;return Ya.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:t=yo(this._pairs),y.prev=1,t.s();case 3:if((n=t.n()).done){y.next=9;break}return h=Wn(n.value,2),d=h[1],y.next=7,d;case 7:y.next=3;break;case 9:y.next=14;break;case 11:y.prev=11,y.t0=y.catch(1),t.e(y.t0);case 14:return y.prev=14,t.f(),y.finish(14);case 17:case"end":return y.stop()}},a,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var t;return xn(t=Pi(this._pairs)).call(t,function(n){return n[0]})}},{key:"toItemArray",value:function(){var t;return xn(t=Pi(this._pairs)).call(t,function(n){return n[1]})}},{key:"toEntryArray",value:function(){return Pi(this._pairs)}},{key:"toObjectMap",value:function(){var t=nE(null),n=yo(this._pairs),h;try{for(n.s();!(h=n.n()).done;){var d=Wn(h.value,2),p=d[0],y=d[1];t[p]=y}}catch(b){n.e(b)}finally{n.f()}return t}},{key:"toMap",value:function(){return new l3(this._pairs)}},{key:"toIdSet",value:function(){return new l_(this.toIdArray())}},{key:"toItemSet",value:function(){return new l_(this.toItemArray())}},{key:"cache",value:function(){return new e(Pi(this._pairs))}},{key:"distinct",value:function(t){var n=new l_,h=yo(this._pairs),d;try{for(h.s();!(d=h.n()).done;){var p=Wn(d.value,2),y=p[0],b=p[1];n.add(t(b,y))}}catch(w){h.e(w)}finally{h.f()}return n}},{key:"filter",value:function(t){var n=this._pairs;return new e(fr({},Ig,Ya.mark(function h(){var d,p,y,b,w;return Ya.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:d=yo(n),A.prev=1,d.s();case 3:if((p=d.n()).done){A.next=10;break}if(y=Wn(p.value,2),b=y[0],w=y[1],!t(w,b)){A.next=8;break}return A.next=8,[b,w];case 8:A.next=3;break;case 10:A.next=15;break;case 12:A.prev=12,A.t0=A.catch(1),d.e(A.t0);case 15:return A.prev=15,d.f(),A.finish(15);case 18:case"end":return A.stop()}},h,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(t){var n=yo(this._pairs),h;try{for(n.s();!(h=n.n()).done;){var d=Wn(h.value,2),p=d[0],y=d[1];t(y,p)}}catch(b){n.e(b)}finally{n.f()}}},{key:"map",value:function(t){var n=this._pairs;return new e(fr({},Ig,Ya.mark(function h(){var d,p,y,b,w;return Ya.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:d=yo(n),A.prev=1,d.s();case 3:if((p=d.n()).done){A.next=9;break}return y=Wn(p.value,2),b=y[0],w=y[1],A.next=7,[b,t(w,b)];case 7:A.next=3;break;case 9:A.next=14;break;case 11:A.prev=11,A.t0=A.catch(1),d.e(A.t0);case 14:return A.prev=14,d.f(),A.finish(14);case 17:case"end":return A.stop()}},h,null,[[1,11,14,17]])})))}},{key:"max",value:function(t){var n=sR(this._pairs),h=n.next();if(h.done)return null;for(var d=h.value[1],p=t(h.value[1],h.value[0]);!(h=n.next()).done;){var y=Wn(h.value,2),b=y[0],w=y[1],$=t(w,b);$>p&&(p=$,d=w)}return d}},{key:"min",value:function(t){var n=sR(this._pairs),h=n.next();if(h.done)return null;for(var d=h.value[1],p=t(h.value[1],h.value[0]);!(h=n.next()).done;){var y=Wn(h.value,2),b=y[0],w=y[1],$=t(w,b);$<p&&(p=$,d=w)}return d}},{key:"reduce",value:function(t,n){var h=yo(this._pairs),d;try{for(h.s();!(d=h.n()).done;){var p=Wn(d.value,2),y=p[0],b=p[1];n=t(n,b,y)}}catch(w){h.e(w)}finally{h.f()}return n}},{key:"sort",value:function(t){var n=this;return new e(fr({},Ig,function(){var h;return sR(Ii(h=Pi(n._pairs)).call(h,function(d,p){var y=Wn(d,2),b=y[0],w=y[1],$=Wn(p,2),A=$[0],R=$[1];return t(w,R,b,A)}))}))}}]),e}();function vye(e,a){return e[a]==null&&(e[a]=vL()),e}var k_=function(e){Lh(t,e);var a=oye(t);function t(n,h){var d;return br(this,t),d=a.call(this),fr(oa(d),"flush",void 0),fr(oa(d),"length",void 0),fr(oa(d),"_options",void 0),fr(oa(d),"_data",void 0),fr(oa(d),"_idProp",void 0),fr(oa(d),"_queue",null),n&&!Ot(n)&&(h=n,n=[]),d._options=h||{},d._data=new l3,d.length=0,d._idProp=d._options.fieldId||"id",n&&n.length&&d.add(n),d.setOptions(h),d}return _r(t,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(h){h&&h.queue!==void 0&&(h.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=dye.extend(this,{replace:["add","update","remove"]})),h.queue&&bt(h.queue)==="object"&&this._queue.setOptions(h.queue)))}},{key:"add",value:function(h,d){var p=this,y=[],b;if(Ot(h)){var w=xn(h).call(h,function(R){return R[p._idProp]});if(c3(w).call(w,function(R){return p._data.has(R)}))throw new Error("A duplicate id was found in the parameter array.");for(var $=0,A=h.length;$<A;$++)b=this._addItem(h[$]),y.push(b)}else if(h&&bt(h)==="object")b=this._addItem(h),y.push(b);else throw new Error("Unknown dataType");return y.length&&this._trigger("add",{items:y},d),y}},{key:"update",value:function(h,d){var p=this,y=[],b=[],w=[],$=[],A=this._idProp,R=function(ae){var ve=ae[A];if(ve!=null&&p._data.has(ve)){var ye=ae,pe=f_({},p._data.get(ve)),Se=p._updateItem(ye);b.push(Se),$.push(ye),w.push(pe)}else{var ze=p._addItem(ae);y.push(ze)}};if(Ot(h))for(var Y=0,V=h.length;Y<V;Y++)h[Y]&&bt(h[Y])==="object"?R(h[Y]):console.warn("Ignoring input item, which is not an object at index "+Y);else if(h&&bt(h)==="object")R(h);else throw new Error("Unknown dataType");if(y.length&&this._trigger("add",{items:y},d),b.length){var oe={items:b,oldData:w,data:$};this._trigger("update",oe,d)}return Cn(y).call(y,b)}},{key:"updateOnly",value:function(h,d){var p,y=this;Ot(h)||(h=[h]);var b=xn(p=xn(h).call(h,function($){var A=y._data.get($[y._idProp]);if(A==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:A,update:$}})).call(p,function($){var A=$.oldData,R=$.update,Y=A[y._idProp],V=c8(A,R);return y._data.set(Y,V),{id:Y,oldData:A,updatedData:V}});if(b.length){var w={items:xn(b).call(b,function($){return $.id}),oldData:xn(b).call(b,function($){return $.oldData}),data:xn(b).call(b,function($){return $.updatedData})};return this._trigger("update",w,d),w.items}else return[]}},{key:"get",value:function(h,d){var p=void 0,y=void 0,b=void 0;qY(h)?(p=h,b=d):Ot(h)?(y=h,b=d):b=h;var w=b&&b.returnType==="Object"?"Object":"Array",$=b&&Rt(b),A=[],R=void 0,Y=void 0,V=void 0;if(p!=null)R=this._data.get(p),R&&$&&!$(R)&&(R=void 0);else if(y!=null)for(var oe=0,G=y.length;oe<G;oe++)R=this._data.get(y[oe]),R!=null&&(!$||$(R))&&A.push(R);else{var ae;Y=Pi(bg(ae=this._data).call(ae));for(var ve=0,ye=Y.length;ve<ye;ve++)V=Y[ve],R=this._data.get(V),R!=null&&(!$||$(R))&&A.push(R)}if(b&&b.order&&p==null&&this._sort(A,b.order),b&&b.fields){var pe=b.fields;if(p!=null&&R!=null)R=this._filterFields(R,pe);else for(var Se=0,ze=A.length;Se<ze;Se++)A[Se]=this._filterFields(A[Se],pe)}if(w=="Object"){for(var tt={},_e=0,it=A.length;_e<it;_e++){var Ne=A[_e],qe=Ne[this._idProp];tt[qe]=Ne}return tt}else if(p!=null){var Fe;return(Fe=R)!==null&&Fe!==void 0?Fe:null}else return A}},{key:"getIds",value:function(h){var d=this._data,p=h&&Rt(h),y=h&&h.order,b=Pi(bg(d).call(d)),w=[];if(p)if(y){for(var $=[],A=0,R=b.length;A<R;A++){var Y=b[A],V=this._data.get(Y);V!=null&&p(V)&&$.push(V)}this._sort($,y);for(var oe=0,G=$.length;oe<G;oe++)w.push($[oe][this._idProp])}else for(var ae=0,ve=b.length;ae<ve;ae++){var ye=b[ae],pe=this._data.get(ye);pe!=null&&p(pe)&&w.push(pe[this._idProp])}else if(y){for(var Se=[],ze=0,tt=b.length;ze<tt;ze++){var _e=b[ze];Se.push(d.get(_e))}this._sort(Se,y);for(var it=0,Ne=Se.length;it<Ne;it++)w.push(Se[it][this._idProp])}else for(var qe=0,Fe=b.length;qe<Fe;qe++){var Ye=b[qe],ir=d.get(Ye);ir!=null&&w.push(ir[this._idProp])}return w}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(h,d){var p=d&&Rt(d),y=this._data,b=Pi(bg(y).call(y));if(d&&d.order)for(var w=this.get(d),$=0,A=w.length;$<A;$++){var R=w[$],Y=R[this._idProp];h(R,Y)}else for(var V=0,oe=b.length;V<oe;V++){var G=b[V],ae=this._data.get(G);ae!=null&&(!p||p(ae))&&h(ae,G)}}},{key:"map",value:function(h,d){for(var p=d&&Rt(d),y=[],b=this._data,w=Pi(bg(b).call(b)),$=0,A=w.length;$<A;$++){var R=w[$],Y=this._data.get(R);Y!=null&&(!p||p(Y))&&y.push(h(Y,R))}return d&&d.order&&this._sort(y,d.order),y}},{key:"_filterFields",value:function(h,d){var p;return h&&sL(p=Ot(d)?d:Ki(d)).call(p,function(y,b){return y[b]=h[b],y},{})}},{key:"_sort",value:function(h,d){if(typeof d=="string"){var p=d;Ii(h).call(h,function(y,b){var w=y[p],$=b[p];return w>$?1:w<$?-1:0})}else if(typeof d=="function")Ii(h).call(h,d);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(h,d){for(var p=[],y=[],b=Ot(h)?h:[h],w=0,$=b.length;w<$;w++){var A=this._remove(b[w]);if(A){var R=A[this._idProp];R!=null&&(p.push(R),y.push(A))}}return p.length&&this._trigger("remove",{items:p,oldData:y},d),p}},{key:"_remove",value:function(h){var d;if(qY(h)?d=h:h&&bt(h)==="object"&&(d=h[this._idProp]),d!=null&&this._data.has(d)){var p=this._data.get(d)||null;return this._data.delete(d),--this.length,p}return null}},{key:"clear",value:function(h){for(var d,p=Pi(bg(d=this._data).call(d)),y=[],b=0,w=p.length;b<w;b++)y.push(this._data.get(p[b]));return this._data.clear(),this.length=0,this._trigger("remove",{items:p,oldData:y},h),p}},{key:"max",value:function(h){var d,p=null,y=null,b=yo(jY(d=this._data).call(d)),w;try{for(b.s();!(w=b.n()).done;){var $=w.value,A=$[h];typeof A=="number"&&(y==null||A>y)&&(p=$,y=A)}}catch(R){b.e(R)}finally{b.f()}return p||null}},{key:"min",value:function(h){var d,p=null,y=null,b=yo(jY(d=this._data).call(d)),w;try{for(b.s();!(w=b.n()).done;){var $=w.value,A=$[h];typeof A=="number"&&(y==null||A<y)&&(p=$,y=A)}}catch(R){b.e(R)}finally{b.f()}return p||null}},{key:"distinct",value:function(h){for(var d=this._data,p=Pi(bg(d).call(d)),y=[],b=0,w=0,$=p.length;w<$;w++){for(var A=p[w],R=d.get(A),Y=R[h],V=!1,oe=0;oe<b;oe++)if(y[oe]==Y){V=!0;break}!V&&Y!==void 0&&(y[b]=Y,b++)}return y}},{key:"_addItem",value:function(h){var d=vye(h,this._idProp),p=d[this._idProp];if(this._data.has(p))throw new Error("Cannot add item: item with id "+p+" already exists");return this._data.set(p,d),++this.length,p}},{key:"_updateItem",value:function(h){var d=h[this._idProp];if(d==null)throw new Error("Cannot update item: item has no id (item: "+Ha(h)+")");var p=this._data.get(d);if(!p)throw new Error("Cannot update item: no item with id "+d+" found");return this._data.set(d,UY(UY({},p),h)),d}},{key:"stream",value:function(h){if(h){var d=this._data;return new KY(fr({},Ig,Ya.mark(function y(){var b,w,$,A;return Ya.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:b=yo(h),Y.prev=1,b.s();case 3:if((w=b.n()).done){Y.next=11;break}if($=w.value,A=d.get($),A==null){Y.next=9;break}return Y.next=9,[$,A];case 9:Y.next=3;break;case 11:Y.next=16;break;case 13:Y.prev=13,Y.t0=Y.catch(1),b.e(Y.t0);case 16:return Y.prev=16,b.f(),Y.finish(16);case 19:case"end":return Y.stop()}},y,null,[[1,13,16,19]])})))}else{var p;return new KY(fr({},Ig,Ee(p=lge(this._data)).call(p,this._data)))}}}]),t}(fye);function pye(e,a){return bt(a)==="object"&&a!==null&&e===a.idProp&&typeof a.add=="function"&&typeof a.clear=="function"&&typeof a.distinct=="function"&&typeof Tt(a)=="function"&&typeof a.get=="function"&&typeof a.getDataSet=="function"&&typeof a.getIds=="function"&&typeof a.length=="number"&&typeof xn(a)=="function"&&typeof a.max=="function"&&typeof a.min=="function"&&typeof a.off=="function"&&typeof a.on=="function"&&typeof a.remove=="function"&&typeof a.setOptions=="function"&&typeof a.stream=="function"&&typeof a.update=="function"&&typeof a.updateOnly=="function"}function mye(e,a){return bt(a)==="object"&&a!==null&&e===a.idProp&&typeof Tt(a)=="function"&&typeof a.get=="function"&&typeof a.getDataSet=="function"&&typeof a.getIds=="function"&&typeof a.length=="number"&&typeof xn(a)=="function"&&typeof a.off=="function"&&typeof a.on=="function"&&typeof a.stream=="function"&&pye(e,a.getDataSet())}var gye=typeof window!="undefined"&&window.moment||Js(),Mi=Be(gye),yye=Js(),zs=Be(yye),rN={exports:{}},Br={},iN={exports:{}},_p={};function S3(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function bye(e,a,t){}function _ye(e,a,t){}var wye=/javascript\s*\:/img;function kye(e,a){return wye.test(a)?"":a}_p.whiteList=S3();_p.getDefaultWhiteList=S3;_p.onAttr=bye;_p.onIgnoreAttr=_ye;_p.safeAttrValue=kye;var Sye={indexOf:function(e,a){var t,n;if(Array.prototype.indexOf)return e.indexOf(a);for(t=0,n=e.length;t<n;t++)if(e[t]===a)return t;return-1},forEach:function(e,a,t){var n,h;if(Array.prototype.forEach)return e.forEach(a,t);for(n=0,h=e.length;n<h;n++)a.call(t,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Zb=Sye;function xye(e,a){e=Zb.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,n=!1,h=0,d=0,p="";function y(){if(!n){var $=Zb.trim(e.slice(h,d)),A=$.indexOf(":");if(A!==-1){var R=Zb.trim($.slice(0,A)),Y=Zb.trim($.slice(A+1));if(R){var V=a(h,p.length,R,Y,$);V&&(p+=V+"; ")}}}h=d+1}for(;d<t;d++){var b=e[d];if(b==="/"&&e[d+1]==="*"){var w=e.indexOf("*/",d+2);if(w===-1)break;d=w+1,h=d+1,n=!1}else b==="("?n=!0:b===")"?n=!1:b===";"?n||y():b===`
`&&y()}return Zb.trim(p)}var Tye=xye,lC=_p,Cye=Tye;function XY(e){return e==null}function Eye(e){var a={};for(var t in e)a[t]=e[t];return a}function x3(e){e=Eye(e||{}),e.whiteList=e.whiteList||lC.whiteList,e.onAttr=e.onAttr||lC.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||lC.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||lC.safeAttrValue,this.options=e}x3.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var a=this,t=a.options,n=t.whiteList,h=t.onAttr,d=t.onIgnoreAttr,p=t.safeAttrValue,y=Cye(e,function(b,w,$,A,R){var Y=n[$],V=!1;if(Y===!0?V=Y:typeof Y=="function"?V=Y(A):Y instanceof RegExp&&(V=Y.test(A)),V!==!0&&(V=!1),A=p($,A),!!A){var oe={position:w,sourcePosition:b,source:R,isWhite:V};if(V){var G=h($,A,oe);return XY(G)?$+":"+A:G}else{var G=d($,A,oe);if(!XY(G))return G}}});return y};var Dye=x3;(function(e,a){var t=_p,n=Dye;function h(p,y){var b=new n(y);return b.process(p)}a=e.exports=h,a.FilterCSS=n;for(var d in t)a[d]=t[d];typeof window!="undefined"&&(window.filterCSS=e.exports)})(iN,iN.exports);var pL=iN.exports,mL={indexOf:function(e,a){var t,n;if(Array.prototype.indexOf)return e.indexOf(a);for(t=0,n=e.length;t<n;t++)if(e[t]===a)return t;return-1},forEach:function(e,a,t){var n,h;if(Array.prototype.forEach)return e.forEach(a,t);for(n=0,h=e.length;n<h;n++)a.call(t,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var a=/\s|\n|\t/,t=a.exec(e);return t?t.index:-1}},Oye=pL.FilterCSS,$ye=pL.getDefaultWhiteList,MC=mL;function T3(){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 C3=new Oye;function Pye(e,a,t){}function Iye(e,a,t){}function Mye(e,a,t){}function Aye(e,a,t){}function E3(e){return e.replace(Nye,"&lt;").replace(Lye,"&gt;")}function Rye(e,a,t,n){if(t=M3(t),a==="href"||a==="src"){if(t=MC.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(a==="background"){if(uC.lastIndex=0,uC.test(t))return""}else if(a==="style"){if(ZY.lastIndex=0,ZY.test(t)||(JY.lastIndex=0,JY.test(t)&&(uC.lastIndex=0,uC.test(t))))return"";n!==!1&&(n=n||C3,t=n.process(t))}return t=A3(t),t}var Nye=/</g,Lye=/>/g,Fye=/"/g,jye=/&quot;/g,Yye=/&#([a-zA-Z0-9]*);?/gim,Bye=/&colon;?/gim,Hye=/&newline;?/gim,uC=/((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,ZY=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,JY=/u\s*r\s*l\s*\(.*/gi;function D3(e){return e.replace(Fye,"&quot;")}function O3(e){return e.replace(jye,'"')}function $3(e){return e.replace(Yye,function(t,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function P3(e){return e.replace(Bye,":").replace(Hye," ")}function I3(e){for(var a="",t=0,n=e.length;t<n;t++)a+=e.charCodeAt(t)<32?" ":e.charAt(t);return MC.trim(a)}function M3(e){return e=O3(e),e=$3(e),e=P3(e),e=I3(e),e}function A3(e){return e=D3(e),e=E3(e),e}function Wye(){return""}function Gye(e,a){typeof a!="function"&&(a=function(){});var t=!Array.isArray(e);function n(p){return t?!0:MC.indexOf(e,p)!==-1}var h=[],d=!1;return{onIgnoreTag:function(p,y,b){if(n(p))if(b.isClosing){var w="[/removed]",$=b.position+w.length;return h.push([d!==!1?d:b.position,$]),d=!1,w}else return d||(d=b.position),"[removed]";else return a(p,y,b)},remove:function(p){var y="",b=0;return MC.forEach(h,function(w){y+=p.slice(b,w[0]),b=w[1]}),y+=p.slice(b),y}}}function zye(e){for(var a="",t=0;t<e.length;){var n=e.indexOf("<!--",t);if(n===-1){a+=e.slice(t);break}a+=e.slice(t,n);var h=e.indexOf("-->",n);if(h===-1)break;t=h+3}return a}function Uye(e){var a=e.split("");return a=a.filter(function(t){var n=t.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),a.join("")}Br.whiteList=T3();Br.getDefaultWhiteList=T3;Br.onTag=Pye;Br.onIgnoreTag=Iye;Br.onTagAttr=Mye;Br.onIgnoreTagAttr=Aye;Br.safeAttrValue=Rye;Br.escapeHtml=E3;Br.escapeQuote=D3;Br.unescapeQuote=O3;Br.escapeHtmlEntities=$3;Br.escapeDangerHtml5Entities=P3;Br.clearNonPrintableCharacter=I3;Br.friendlyAttrValue=M3;Br.escapeAttrValue=A3;Br.onIgnoreTagStripAll=Wye;Br.StripTagBody=Gye;Br.stripCommentTag=zye;Br.stripBlankChar=Uye;Br.attributeWrapSign='"';Br.cssFilter=C3;Br.getDefaultCSSWhiteList=$ye;var cE={},fd=mL;function Vye(e){var a=fd.spaceIndex(e),t;return a===-1?t=e.slice(1,-1):t=e.slice(1,a+1),t=fd.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function qye(e){return e.slice(0,2)==="</"}function Kye(e,a,t){var n="",h=0,d=!1,p=!1,y=0,b=e.length,w="",$="";e:for(y=0;y<b;y++){var A=e.charAt(y);if(d===!1){if(A==="<"){d=y;continue}}else if(p===!1){if(A==="<"){n+=t(e.slice(h,y)),d=y,h=y;continue}if(A===">"||y===b-1){n+=t(e.slice(h,d)),$=e.slice(d,y+1),w=Vye($),n+=a(d,n.length,w,$,qye($)),h=y+1,d=!1;continue}if(A==='"'||A==="'")for(var R=1,Y=e.charAt(y-R);Y.trim()===""||Y==="=";){if(Y==="="){p=A;continue e}Y=e.charAt(y-++R)}}else if(A===p){p=!1;continue}}return h<b&&(n+=t(e.substr(h))),n}var Xye=/[^a-zA-Z0-9\\_:.-]/gim;function Zye(e,a){var t=0,n=0,h=[],d=!1,p=e.length;function y(R,Y){if(R=fd.trim(R),R=R.replace(Xye,"").toLowerCase(),!(R.length<1)){var V=a(R,Y||"");V&&h.push(V)}}for(var b=0;b<p;b++){var w=e.charAt(b),$,A;if(d===!1&&w==="="){d=e.slice(t,b),t=b+1,n=e.charAt(t)==='"'||e.charAt(t)==="'"?t:Qye(e,b+1);continue}if(d!==!1&&b===n){if(A=e.indexOf(w,b+1),A===-1)break;$=fd.trim(e.slice(n+1,A)),y(d,$),d=!1,b=A,t=b+1;continue}if(/\s|\n|\t/.test(w))if(e=e.replace(/\s|\n|\t/g," "),d===!1)if(A=Jye(e,b),A===-1){$=fd.trim(e.slice(t,b)),y($),d=!1,t=b+1;continue}else{b=A-1;continue}else if(A=e0e(e,b-1),A===-1){$=fd.trim(e.slice(t,b)),$=QY($),y(d,$),d=!1,t=b+1;continue}else continue}return t<e.length&&(d===!1?y(e.slice(t)):y(d,QY(fd.trim(e.slice(t))))),fd.trim(h.join(" "))}function Jye(e,a){for(;a<e.length;a++){var t=e[a];if(t!==" ")return t==="="?a:-1}}function Qye(e,a){for(;a<e.length;a++){var t=e[a];if(t!==" ")return t==="'"||t==='"'?a:-1}}function e0e(e,a){for(;a>0;a--){var t=e[a];if(t!==" ")return t==="="?a:-1}}function t0e(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function QY(e){return t0e(e)?e.substr(1,e.length-2):e}cE.parseTag=Kye;cE.parseAttr=Zye;var r0e=pL.FilterCSS,Ko=Br,R3=cE,i0e=R3.parseTag,n0e=R3.parseAttr,bC=mL;function hC(e){return e==null}function a0e(e){var a=bC.spaceIndex(e);if(a===-1)return{html:"",closing:e[e.length-2]==="/"};e=bC.trim(e.slice(a+1,-1));var t=e[e.length-1]==="/";return t&&(e=bC.trim(e.slice(0,-1))),{html:e,closing:t}}function o0e(e){var a={};for(var t in e)a[t]=e[t];return a}function s0e(e){var a={};for(var t in e)Array.isArray(e[t])?a[t.toLowerCase()]=e[t].map(function(n){return n.toLowerCase()}):a[t.toLowerCase()]=e[t];return a}function N3(e){e=o0e(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ko.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=s0e(e.whiteList||e.allowList):e.whiteList=Ko.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":Ko.attributeWrapSign,e.onTag=e.onTag||Ko.onTag,e.onTagAttr=e.onTagAttr||Ko.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ko.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ko.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ko.safeAttrValue,e.escapeHtml=e.escapeHtml||Ko.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r0e(e.css))}N3.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var a=this,t=a.options,n=t.whiteList,h=t.onTag,d=t.onIgnoreTag,p=t.onTagAttr,y=t.onIgnoreTagAttr,b=t.safeAttrValue,w=t.escapeHtml,$=a.attributeWrapSign,A=a.cssFilter;t.stripBlankChar&&(e=Ko.stripBlankChar(e)),t.allowCommentTag||(e=Ko.stripCommentTag(e));var R=!1;t.stripIgnoreTagBody&&(R=Ko.StripTagBody(t.stripIgnoreTagBody,d),d=R.onIgnoreTag);var Y=i0e(e,function(V,oe,G,ae,ve){var ye={sourcePosition:V,position:oe,isClosing:ve,isWhite:Object.prototype.hasOwnProperty.call(n,G)},pe=h(G,ae,ye);if(!hC(pe))return pe;if(ye.isWhite){if(ye.isClosing)return"</"+G+">";var Se=a0e(ae),ze=n[G],tt=n0e(Se.html,function(_e,it){var Ne=bC.indexOf(ze,_e)!==-1,qe=p(G,_e,it,Ne);return hC(qe)?Ne?(it=b(G,_e,it,A),it?_e+"="+$+it+$:_e):(qe=y(G,_e,it,Ne),hC(qe)?void 0:qe):qe});return ae="<"+G,tt&&(ae+=" "+tt),Se.closing&&(ae+=" /"),ae+=">",ae}else return pe=d(G,ae,ye),hC(pe)?w(ae):pe},w);return R&&(Y=R.remove(Y)),Y};var l0e=N3;(function(e,a){var t=Br,n=cE,h=l0e;function d(y,b){var w=new h(b);return w.process(y)}a=e.exports=d,a.filterXSS=d,a.FilterXSS=h,function(){for(var y in t)a[y]=t[y];for(var b in n)a[b]=n[b]}(),typeof window!="undefined"&&(window.filterXSS=e.exports);function p(){return typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope}p()&&(self.filterXSS=e.exports)})(rN,rN.exports);var u0e=rN.exports,h0e=Be(u0e);function e6(e,a){var t=Ki(e);if(PC){var n=PC(e);a&&(n=Rt(n).call(n,function(h){return hE(e,h).enumerable})),t.push.apply(t,n)}return t}function t6(e){for(var a=1;a<arguments.length;a++){var t,n,h=arguments[a]!=null?arguments[a]:{};a%2?Tt(t=e6(Object(h),!0)).call(t,function(d){fr(e,d,h[d])}):IC?w3(e,IC(h)):Tt(n=e6(Object(h))).call(n,function(d){dL(e,d,hE(h,d))})}return e}function X_(e){var a;if(!e)return!1;var t=(a=e.idProp)!==null&&a!==void 0?a:e._idProp;return t?mye(t,e):!1}var vR=/^\/?Date\((-?\d+)/i,c0e=/^\d+$/;function gL(e,a){var t;if(e!==void 0){if(e===null)return null;if(!a)return e;if(typeof a!="string"&&!(a instanceof String))throw new Error("Type must be a string");switch(a){case"boolean":case"Boolean":return Boolean(e);case"number":case"Number":return _o(e)&&!isNaN(Date.parse(e))?zs(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return gL(e,"Moment").toDate()}catch(h){throw h instanceof TypeError?new TypeError("Cannot convert object of type "+e_(e)+" to type "+a):h}case"Moment":if(n_(e))return zs(e);if(e instanceof Date)return zs(e.valueOf());if(zs.isMoment(e))return zs(e);if(_o(e))return t=vR.exec(e),t?zs(Number(t[1])):(t=c0e.exec(e),zs(t?Number(e):e));throw new TypeError("Cannot convert object of type "+e_(e)+" to type "+a);case"ISODate":if(n_(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(zs.isMoment(e))return e.toDate().toISOString();if(_o(e))return t=vR.exec(e),t?new Date(Number(t[1])).toISOString():zs(e).format();throw new Error("Cannot convert object of type "+e_(e)+" to type ISODate");case"ASPDate":if(n_(e))return"/Date("+e+")/";if(e instanceof Date||zs.isMoment(e))return"/Date("+e.valueOf()+")/";if(_o(e)){t=vR.exec(e);var n;return t?n=new Date(Number(t[1])).valueOf():n=new Date(e).valueOf(),"/Date("+n+")/"}else throw new Error("Cannot convert object of type "+e_(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(a))}}}function nN(e){var a,t,n,h,d,p,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},b=e._idProp,w=new k_({fieldId:b}),$=xn(a=uye(e)).call(a,function(A){var R;return sL(R=Ki(A)).call(R,function(Y,V){return Y[V]=gL(A[V],y[V]),Y},{})}).to(w);return $.all().start(),{add:function(){var R;return(R=e.getDataSet()).add.apply(R,arguments)},remove:function(){var R;return(R=e.getDataSet()).remove.apply(R,arguments)},update:function(){var R;return(R=e.getDataSet()).update.apply(R,arguments)},updateOnly:function(){var R;return(R=e.getDataSet()).updateOnly.apply(R,arguments)},clear:function(){var R;return(R=e.getDataSet()).clear.apply(R,arguments)},forEach:Ee(t=Tt(w)).call(t,w),get:Ee(n=w.get).call(n,w),getIds:Ee(h=w.getIds).call(h,w),off:Ee(d=w.off).call(d,w),on:Ee(p=w.on).call(p,w),get length(){return w.length},idProp:b,type:y,rawDS:e,coercedDS:w,dispose:function(){return $.stop()}}}var L3=function(a){var t=new h0e.FilterXSS(a);return function(n){return t.process(n)}},d0e=function(a){return a},aN=L3(),f0e=function(a){a&&(a.disabled===!0?(aN=d0e,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):a.filterOptions&&(aN=L3(a.filterOptions)))},ee=t6(t6({},Tue),{},{convert:gL,setupXSSProtection:f0e});dL(ee,"xss",{get:function(){return aN}});var F3=Dr,v0e=Yt,p0e=Zt,m0e=Qo,g0e=DH.trim,y0e=jN,b0e=p0e("".charAt),AC=F3.parseFloat,r6=F3.Symbol,i6=r6&&r6.iterator,_0e=1/AC(y0e+"-0")!==-1/0||i6&&!v0e(function(){AC(Object(i6))}),w0e=_0e?function(a){var t=g0e(m0e(a)),n=AC(t);return n===0&&b0e(t,0)==="-"?-0:n}:AC,k0e=He,n6=w0e;k0e({global:!0,forced:parseFloat!==n6},{parseFloat:n6});var S0e=tr,x0e=S0e.parseFloat,T0e=x0e,C0e=T0e,E0e=C0e,RC=Be(E0e),wp=function(){function e(a,t){br(this,e),this.options=null,this.props=null}return _r(e,[{key:"setOptions",value:function(t){t&&ee.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),e}(),D0e=T_,O0e=Qo,$0e=Gg,P0e=RangeError,I0e=function(a){var t=O0e($0e(this)),n="",h=D0e(a);if(h<0||h===1/0)throw new P0e("Wrong number of repetitions");for(;h>0;(h>>>=1)&&(t+=t))h&1&&(n+=t);return n},M0e=He,A0e=I0e;M0e({target:"String",proto:!0},{repeat:A0e});var R0e=Yr,N0e=R0e("String").repeat,L0e=Cr,F0e=N0e,pR=String.prototype,j0e=function(e){var a=e.repeat;return typeof e=="string"||e===pR||L0e(pR,e)&&a===pR.repeat?F0e:a},Y0e=j0e,B0e=Y0e,H0e=B0e,Sg=Be(H0e);function yL(e,a,t){if(t&&!Ot(t))return yL(e,a,[t]);if(a.hiddenDates=[],t&&Ot(t)==!0){for(var n,h=0;h<t.length;h++)if(Sg(t[h])===void 0){var d={};d.start=e(t[h].start).toDate().valueOf(),d.end=e(t[h].end).toDate().valueOf(),a.hiddenDates.push(d)}Ii(n=a.hiddenDates).call(n,function(p,y){return p.start-y.start})}}function NC(e,a,t){if(t&&!Ot(t))return NC(e,a,[t]);if(t&&a.domProps.centerContainer.width!==void 0){yL(e,a,t);for(var n=e(a.range.start),h=e(a.range.end),d=a.range.end-a.range.start,p=d/a.domProps.centerContainer.width,y=0;y<t.length;y++)if(Sg(t[y])!==void 0){var b=e(t[y].start),w=e(t[y].end);if(b._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(t[y].start));if(w._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(t[y].end));var $=w-b;if($>=4*p){var A=0,R=h.clone();switch(Sg(t[y])){case"daily":b.day()!=w.day()&&(A=1),b=b.dayOfYear(n.dayOfYear()).year(n.year()).subtract(7,"days"),w=w.dayOfYear(n.dayOfYear()).year(n.year()).subtract(7-A,"days"),R.add(1,"weeks");break;case"weekly":{var Y=w.diff(b,"days"),V=b.day();b=b.date(n.date()).month(n.month()).year(n.year()),w=b.clone(),b=b.day(V).subtract(1,"weeks"),w=w.day(V).add(Y,"days").subtract(1,"weeks"),R.add(1,"weeks");break}case"monthly":b.month()!=w.month()&&(A=1),b=b.month(n.month()).year(n.year()).subtract(1,"months"),w=w.month(n.month()).year(n.year()).subtract(1,"months").add(A,"months"),R.add(1,"months");break;case"yearly":b.year()!=w.year()&&(A=1),b=b.year(n.year()).subtract(1,"years"),w=w.year(n.year()).subtract(1,"years").add(A,"years"),R.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Sg(t[y]));return}for(;b<R;)switch(a.hiddenDates.push({start:b.valueOf(),end:w.valueOf()}),Sg(t[y])){case"daily":b=b.add(1,"days"),w=w.add(1,"days");break;case"weekly":b=b.add(1,"weeks"),w=w.add(1,"weeks");break;case"monthly":b=b.add(1,"months"),w=w.add(1,"months");break;case"yearly":b=b.add(1,"y"),w=w.add(1,"y");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Sg(t[y]));return}a.hiddenDates.push({start:b.valueOf(),end:w.valueOf()})}}W0e(a);var oe=FC(a.range.start,a.hiddenDates),G=FC(a.range.end,a.hiddenDates),ae=a.range.start,ve=a.range.end;oe.hidden==!0&&(ae=a.range.startToFront==!0?oe.startDate-1:oe.endDate+1),G.hidden==!0&&(ve=a.range.endToFront==!0?G.startDate-1:G.endDate+1),(oe.hidden==!0||G.hidden==!0)&&a.range._applyRange(ae,ve)}}function W0e(e){for(var a,t=e.hiddenDates,n=[],h=0;h<t.length;h++)for(var d=0;d<t.length;d++)h!=d&&t[d].remove!=!0&&t[h].remove!=!0&&(t[d].start>=t[h].start&&t[d].end<=t[h].end?t[d].remove=!0:t[d].start>=t[h].start&&t[d].start<=t[h].end?(t[h].end=t[d].end,t[d].remove=!0):t[d].end>=t[h].start&&t[d].end<=t[h].end&&(t[h].start=t[d].start,t[d].remove=!0));for(h=0;h<t.length;h++)t[h].remove!==!0&&n.push(t[h]);e.hiddenDates=n,Ii(a=e.hiddenDates).call(a,function(p,y){return p.start-y.start})}function G0e(e,a,t){for(var n=!1,h=a.current.valueOf(),d=0;d<a.hiddenDates.length;d++){var p=a.hiddenDates[d].start,y=a.hiddenDates[d].end;if(h>=p&&h<y){n=!0;break}}if(n==!0&&h<a._end.valueOf()&&h!=t){var b=e(t),w=e(y);b.year()!=w.year()?a.switchedYear=!0:b.month()!=w.month()?a.switchedMonth=!0:b.dayOfYear()!=w.dayOfYear()&&(a.switchedDay=!0),a.current=w}}function a6(e,a,t){var n;if(e.body.hiddenDates.length==0)return n=e.range.conversion(t),(a.valueOf()-n.offset)*n.scale;var h=FC(a,e.body.hiddenDates);h.hidden==!0&&(a=h.startDate);var d=u_(e.body.hiddenDates,e.range.start,e.range.end);if(a<e.range.start){n=e.range.conversion(t,d);var p=z0e(e.body.hiddenDates,a,n.offset);return a=e.options.moment(a).toDate().valueOf(),a=a+p,-(n.offset-a.valueOf())*n.scale}else if(a>e.range.end){var y={start:e.range.start,end:a};return a=s6(e.options.moment,e.body.hiddenDates,y,a),n=e.range.conversion(t,d),(a.valueOf()-n.offset)*n.scale}else return a=s6(e.options.moment,e.body.hiddenDates,e.range,a),n=e.range.conversion(t,d),(a.valueOf()-n.offset)*n.scale}function o6(e,a,t){if(e.body.hiddenDates.length==0){var n=e.range.conversion(t);return new Date(a/n.scale+n.offset)}else{var h=u_(e.body.hiddenDates,e.range.start,e.range.end),d=e.range.end-e.range.start-h,p=d*a/t,y=U0e(e.body.hiddenDates,e.range,p);return new Date(y+p+e.range.start)}}function u_(e,a,t){for(var n=0,h=0;h<e.length;h++){var d=e[h].start,p=e[h].end;d>=a&&p<t&&(n+=p-d)}return n}function z0e(e,a,t){for(var n=0,h=0;h<e.length;h++){var d=e[h].start,p=e[h].end;d>=a&&p<=t&&(n+=p-d)}return n}function s6(e,a,t,n){return n=e(n).toDate().valueOf(),n-=LC(e,a,t,n),n}function LC(e,a,t,n){var h=0;n=e(n).toDate().valueOf();for(var d=0;d<a.length;d++){var p=a[d].start,y=a[d].end;p>=t.start&&y<t.end&&n>=y&&(h+=y-p)}return h}function U0e(e,a,t){for(var n=0,h=0,d=a.start,p=0;p<e.length;p++){var y=e[p].start,b=e[p].end;if(y>=a.start&&b<a.end){if(h+=y-d,d=b,h>=t)break;n+=b-y}}return n}function rp(e,a,t,n){var h=FC(a,e);return h.hidden==!0?t<0?h.startDate-(h.endDate-a)-1:h.endDate+(a-h.startDate)+1:a}function FC(e,a){for(var t=0;t<a.length;t++){var n=a[t].start,h=a[t].end;if(e>=n&&e<h)return{hidden:!0,startDate:n,endDate:h}}return{hidden:!1,startDate:n,endDate:h}}function V0e(e){var a=q0e();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function q0e(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var K0e=function(e){Lh(t,e);var a=V0e(t);function t(n,h){var d,p,y,b,w,$,A,R;br(this,t),R=a.call(this);var Y=Mi().hours(0).minutes(0).seconds(0).milliseconds(0),V=Y.clone().add(-3,"days").valueOf(),oe=Y.clone().add(3,"days").valueOf();return R.millisecondsPerPixelCache=void 0,h===void 0?(R.start=V,R.end=oe):(R.start=h.start||V,R.end=h.end||oe),R.rolling=!1,R.body=n,R.deltaDifference=0,R.scaleOffset=0,R.startToFront=!1,R.endToFront=!0,R.defaultOptions={rtl:!1,start:null,end:null,moment:Mi,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},R.options=ee.extend({},R.defaultOptions),R.props={touch:{}},R.animationTimer=null,R.body.emitter.on("panstart",Ee(d=R._onDragStart).call(d,oa(R))),R.body.emitter.on("panmove",Ee(p=R._onDrag).call(p,oa(R))),R.body.emitter.on("panend",Ee(y=R._onDragEnd).call(y,oa(R))),R.body.emitter.on("mousewheel",Ee(b=R._onMouseWheel).call(b,oa(R))),R.body.emitter.on("touch",Ee(w=R._onTouch).call(w,oa(R))),R.body.emitter.on("pinch",Ee($=R._onPinch).call($,oa(R))),R.body.dom.rollingModeBtn.addEventListener("click",Ee(A=R.startRolling).call(A,oa(R))),R.setOptions(h),R}return _r(t,[{key:"setOptions",value:function(h){if(h){var d=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"];ee.selectiveExtend(d,this.options,h),h.rollingMode&&h.rollingMode.follow&&this.startRolling(),("start"in h||"end"in h)&&this.setRange(h.start,h.end)}}},{key:"startRolling",value:function(){var h=this;function d(){h.stopRolling(),h.rolling=!0;var p=h.end-h.start,y=ee.convert(new Date,"Date").valueOf(),b=h.options.rollingMode&&h.options.rollingMode.offset||.5,w=y-p*b,$=y+p*(1-b),A={animation:!1};h.setRange(w,$,A);var R=h.conversion(h.body.domProps.center.width).scale;p=1/R/10,p<30&&(p=30),p>1e3&&(p=1e3),h.body.dom.rollingModeBtn.style.visibility="hidden",h.currentTimeTimer=Zo(d,p)}d()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(h,d,p,y,b){p||(p={}),p.byUser!==!0&&(p.byUser=!1);var w=this,$=h!=null?ee.convert(h,"Date").valueOf():null,A=d!=null?ee.convert(d,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,p.animation){var R=this.start,Y=this.end,V=bt(p.animation)==="object"&&"duration"in p.animation?p.animation.duration:500,oe=bt(p.animation)==="object"&&"easingFunction"in p.animation?p.animation.easingFunction:"easeInOutQuad",G=ee.easingFunctions[oe];if(!G){var ae;throw new Error(Cn(ae="Unknown easing function ".concat(Ha(oe),". Choose from: ")).call(ae,Ki(ee.easingFunctions).join(", ")))}var ve=bo(),ye=!1,pe=function tt(){if(!w.props.touch.dragging){var _e=bo(),it=_e-ve,Ne=G(it/V),qe=it>V,Fe=qe||$===null?$:R+($-R)*Ne,Ye=qe||A===null?A:Y+(A-Y)*Ne;Se=w._applyRange(Fe,Ye),NC(w.options.moment,w.body,w.options.hiddenDates),ye=ye||Se;var ir={start:new Date(w.start),end:new Date(w.end),byUser:p.byUser,event:p.event};if(b&&b(Ne,Se,qe),Se&&w.body.emitter.emit("rangechange",ir),qe){if(ye&&(w.body.emitter.emit("rangechanged",ir),y))return y()}else w.animationTimer=Zo(tt,20)}};return pe()}else{var Se=this._applyRange($,A);if(NC(this.options.moment,this.body,this.options.hiddenDates),Se){var ze={start:new Date(this.start),end:new Date(this.end),byUser:p.byUser,event:p.event};if(this.body.emitter.emit("rangechange",ze),clearTimeout(w.timeoutID),w.timeoutID=Zo(function(){w.body.emitter.emit("rangechanged",ze)},200),y)return y()}}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(h,d){var p=h!=null?ee.convert(h,"Date").valueOf():this.start,y=d!=null?ee.convert(d,"Date").valueOf():this.end,b=this.options.max!=null?ee.convert(this.options.max,"Date").valueOf():null,w=this.options.min!=null?ee.convert(this.options.min,"Date").valueOf():null,$;if(isNaN(p)||p===null)throw new Error('Invalid start "'.concat(h,'"'));if(isNaN(y)||y===null)throw new Error('Invalid end "'.concat(d,'"'));if(y<p&&(y=p),w!==null&&p<w&&($=w-p,p+=$,y+=$,b!=null&&y>b&&(y=b)),b!==null&&y>b&&($=y-b,p-=$,y-=$,w!=null&&p<w&&(p=w)),this.options.zoomMin!==null){var A=RC(this.options.zoomMin);if(A<0&&(A=0),y-p<A){var R=.5;this.end-this.start===A&&p>=this.start-R&&y<=this.end?(p=this.start,y=this.end):($=A-(y-p),p-=$/2,y+=$/2)}}if(this.options.zoomMax!==null){var Y=RC(this.options.zoomMax);Y<0&&(Y=0),y-p>Y&&(this.end-this.start===Y&&p<this.start&&y>this.end?(p=this.start,y=this.end):($=y-p-Y,p+=$/2,y-=$/2))}var V=this.start!=p||this.end!=y;return!(p>=this.start&&p<=this.end||y>=this.start&&y<=this.end)&&!(this.start>=p&&this.start<=y||this.end>=p&&this.end<=y)&&this.body.emitter.emit("checkRangedItems"),this.start=p,this.end=y,V}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(h,d){return t.conversion(this.start,this.end,h,d)}},{key:"_onDragStart",value:function(h){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(h)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(h){if(h&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var d=this.options.direction;l6(d);var p=d=="horizontal"?h.deltaX:h.deltaY;p-=this.deltaDifference;var y=this.props.touch.end-this.props.touch.start,b=u_(this.body.hiddenDates,this.start,this.end);y-=b;var w=d=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height,$;this.options.rtl?$=p/w*y:$=-p/w*y;var A=this.props.touch.start+$,R=this.props.touch.end+$,Y=rp(this.body.hiddenDates,A,this.previousDelta-p),V=rp(this.body.hiddenDates,R,this.previousDelta-p);if(Y!=A||V!=R){this.deltaDifference+=p,this.props.touch.start=Y,this.props.touch.end=V,this._onDrag(h);return}this.previousDelta=p,this._applyRange(A,R);var oe=new Date(this.start),G=new Date(this.end);this.body.emitter.emit("rangechange",{start:oe,end:G,byUser:!0,event:h}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(h){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:h}))}},{key:"_onMouseWheel",value:function(h){var d=0;if(h.wheelDelta?d=h.wheelDelta/120:h.detail?d=-h.detail/3:h.deltaY&&(d=-h.deltaY/3),!(this.options.zoomKey&&!h[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(h)&&d){var p=this.options.zoomFriction||5,y;d<0?y=1-d/p:y=1/(1+d/p);var b;if(this.rolling){var w=this.options.rollingMode&&this.options.rollingMode.offset||.5;b=this.start+(this.end-this.start)*w}else{var $=this.getPointer({x:h.clientX,y:h.clientY},this.body.dom.center);b=this._pointerToDate($)}this.zoom(y,b,d,h),h.preventDefault()}}},{key:"_onTouch",value:function(h){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,ee.preventDefault(h)}},{key:"_onPinch",value:function(h){if(this.options.zoomable&&this.options.moveable){ee.preventDefault(h),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(h.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var d=1/(h.scale+this.scaleOffset),p=this.props.touch.centerDate,y=u_(this.body.hiddenDates,this.start,this.end),b=LC(this.options.moment,this.body.hiddenDates,this,p),w=y-b,$=p-b+(this.props.touch.start-(p-b))*d,A=p+w+(this.props.touch.end-(p+w))*d;this.startToFront=1-d<=0,this.endToFront=d-1<=0;var R=rp(this.body.hiddenDates,$,1-d),Y=rp(this.body.hiddenDates,A,d-1);(R!=$||Y!=A)&&(this.props.touch.start=R,this.props.touch.end=Y,this.scaleOffset=1-h.scale,$=R,A=Y);var V={animation:!1,byUser:!0,event:h};this.setRange($,A,V),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(h){var d=h.center?h.center.x:h.clientX,p=this.body.dom.centerContainer.getBoundingClientRect(),y=this.options.rtl?d-p.left:p.right-d,b=this.body.util.toTime(y);return b>=this.start&&b<=this.end}},{key:"_pointerToDate",value:function(h){var d,p=this.options.direction;if(l6(p),p=="horizontal")return this.body.util.toTime(h.x).valueOf();var y=this.body.domProps.center.height;return d=this.conversion(y),h.y/d.scale+d.offset}},{key:"getPointer",value:function(h,d){var p=d.getBoundingClientRect();return this.options.rtl?{x:p.right-h.x,y:h.y-p.top}:{x:h.x-p.left,y:h.y-p.top}}},{key:"zoom",value:function(h,d,p,y){d==null&&(d=(this.start+this.end)/2);var b=u_(this.body.hiddenDates,this.start,this.end),w=LC(this.options.moment,this.body.hiddenDates,this,d),$=b-w,A=d-w+(this.start-(d-w))*h,R=d+$+(this.end-(d+$))*h;this.startToFront=!(p>0),this.endToFront=!(-p>0);var Y=rp(this.body.hiddenDates,A,p),V=rp(this.body.hiddenDates,R,-p);(Y!=A||V!=R)&&(A=Y,R=V);var oe={animation:!1,byUser:!0,event:y};this.setRange(A,R,oe),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(h){var d=this.end-this.start,p=this.start+d*h,y=this.end+d*h;this.start=p,this.end=y}},{key:"moveTo",value:function(h){var d=(this.start+this.end)/2,p=d-h,y=this.start-p,b=this.end-p,w={animation:!1,byUser:!0,event:null};this.setRange(y,b,w)}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(h,d,p,y){return y===void 0&&(y=0),p!=0&&d-h!=0?{offset:h,scale:p/(d-h-y)}:{offset:0,scale:1}}}]),t}(wp);function l6(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var X0e=tr,Z0e=X0e.setInterval,J0e=Z0e,Q0e=Be(J0e),cC=null;function oN(e,a){var t=a||{preventDefault:!1};if(e.Manager){var n=e,h=function(w,$){var A=Object.create(t);return $&&n.assign(A,$),oN(new n(w,A),A)};return n.assign(h,n),h.Manager=function(w,$){var A=Object.create(t);return $&&n.assign(A,$),oN(new n.Manager(w,A),A)},h}var d=Object.create(e),p=e.element;p.hammer||(p.hammer=[]),p.hammer.push(d),e.on("hammer.input",function(w){(t.preventDefault===!0||t.preventDefault===w.pointerType)&&w.preventDefault(),w.isFirst&&(cC=w.target)}),d._handlers={},d.on=function(w,$){return y(w).forEach(function(A){var R=d._handlers[A];R||(d._handlers[A]=R=[],e.on(A,b)),R.push($)}),d},d.off=function(w,$){return y(w).forEach(function(A){var R=d._handlers[A];R&&(R=$?R.filter(function(Y){return Y!==$}):[],R.length>0?d._handlers[A]=R:(e.off(A,b),delete d._handlers[A]))}),d},d.emit=function(w,$){cC=$.target,e.emit(w,$)},d.destroy=function(){var w=e.element.hammer,$=w.indexOf(d);$!==-1&&w.splice($,1),w.length||delete e.element.hammer,d._handlers={},e.destroy()};function y(w){return w.match(/[^ ]+/g)}function b(w){if(w.type!=="hammer.input"){if(w.srcEvent._handled||(w.srcEvent._handled={}),w.srcEvent._handled[w.type])return;w.srcEvent._handled[w.type]=!0}var $=!1;w.stopPropagation=function(){$=!0};var A=w.srcEvent.stopPropagation.bind(w.srcEvent);typeof A=="function"&&(w.srcEvent.stopPropagation=function(){A(),w.stopPropagation()}),w.firstTarget=cC;for(var R=cC;R&&!$;){var Y=R.hammer;if(Y){for(var V,oe=0;oe<Y.length;oe++)if(V=Y[oe]._handlers[w.type],V)for(var G=0;G<V.length&&!$;G++)V[G](w)}R=R.parentNode}}return d}function ebe(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}var sN;typeof window!="undefined"?(u6=window.Hammer||h8,sN=oN(u6,{preventDefault:"mouse"})):sN=function(){return ebe()};var u6,eu=sN;function j3(e,a){a.inputHandler=function(t){t.isFirst&&a(t)},e.on("hammer.input",a.inputHandler)}function tbe(e,a){return a.inputHandler=function(t){t.isFinal&&a(t)},e.on("hammer.input",a.inputHandler)}function rbe(e){var a="pan-y";return e.getTouchAction=function(){return[a]},e}var lN=function(){function e(a,t,n,h,d){br(this,e),this.moment=d&&d.moment||Mi,this.options=d||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(a,t,n),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Ot(h)?this.hiddenDates=h:h!=null?this.hiddenDates=[h]:this.hiddenDates=[],this.format=e.FORMAT}return _r(e,[{key:"setMoment",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(t){var n=ee.deepExtend({},e.FORMAT);this.format=ee.deepExtend(n,t)}},{key:"setRange",value:function(t,n,h){if(!(t instanceof Date)||!(n instanceof Date))throw"No legal start or end date in method setRange";this._start=t!=null?this.moment(t.valueOf()):bo(),this._end=n!=null?this.moment(n.valueOf()):bo(),this.autoScale&&this.setMinimumStep(h)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&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(this.step!=1){var 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");break}t.isSame(this.current)||(this.current=this.moment(rp(this.hiddenDates,this.current.valueOf(),-1)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=this.current.valueOf();switch(this.scale){case"millisecond":this.current=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(this.current.weekday()!==0)this.current=this.current.weekday(0).add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current=this.current.add(this.step,"week");else{var n=this.current.clone();n.add(1,"week"),n.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");break}if(this.step!=1)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));break}this.current.valueOf()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,G0e(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&typeof t.scale=="string"&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(t!=null){var n=1e3*60*60*24*30*12,h=1e3*60*60*24*30,d=1e3*60*60*24,p=1e3*60*60,y=1e3*60,b=1e3,w=1;n*1e3>t&&(this.scale="year",this.step=1e3),n*500>t&&(this.scale="year",this.step=500),n*100>t&&(this.scale="year",this.step=100),n*50>t&&(this.scale="year",this.step=50),n*10>t&&(this.scale="year",this.step=10),n*5>t&&(this.scale="year",this.step=5),n>t&&(this.scale="year",this.step=1),h*3>t&&(this.scale="month",this.step=3),h>t&&(this.scale="month",this.step=1),d*7>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),d*2>t&&(this.scale="day",this.step=2),d>t&&(this.scale="day",this.step=1),d/2>t&&(this.scale="weekday",this.step=1),p*4>t&&(this.scale="hour",this.step=4),p>t&&(this.scale="hour",this.step=1),y*15>t&&(this.scale="minute",this.step=15),y*10>t&&(this.scale="minute",this.step=10),y*5>t&&(this.scale="minute",this.step=5),y>t&&(this.scale="minute",this.step=1),b*15>t&&(this.scale="second",this.step=15),b*10>t&&(this.scale="second",this.step=10),b*5>t&&(this.scale="second",this.step=5),b>t&&(this.scale="second",this.step=1),w*200>t&&(this.scale="millisecond",this.step=200),w*100>t&&(this.scale="millisecond",this.step=100),w*50>t&&(this.scale="millisecond",this.step=50),w*10>t&&(this.scale="millisecond",this.step=10),w*5>t&&(this.scale="millisecond",this.step=5),w>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==!0)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(this.switchedMonth==!0)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==!0)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return t.milliseconds()==0;case"second":return t.seconds()==0;case"minute":return t.hours()==0&&t.minutes()==0;case"hour":return t.hours()==0;case"weekday":case"day":return this.options.showWeekScale?t.isoWeekday()==1:t.date()==1;case"week":return t.date()==1;case"month":return t.month()==0;case"year":return!1;default:return!1}}},{key:"getLabelMinor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.minorLabels=="function")return this.format.minorLabels(t,this.scale,this.step);var n=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(t.date()===1&&t.weekday()!==0)return"";default:return n&&n.length>0?this.moment(t).format(n):""}}},{key:"getLabelMajor",value:function(t){if(t==null&&(t=this.current),t instanceof Date&&(t=this.moment(t)),typeof this.format.majorLabels=="function")return this.format.majorLabels(t,this.scale,this.step);var n=this.format.majorLabels[this.scale];return n&&n.length>0?this.moment(t).format(n):""}},{key:"getClassName",value:function(){var t,n=this.moment,h=this.moment(this.current),d=h.locale?h.locale("en"):h.lang("en"),p=this.step,y=[];function b(Y){return Y/p%2==0?" vis-even":" vis-odd"}function w(Y){return Y.isSame(bo(),"day")?" vis-today":Y.isSame(n().add(1,"day"),"day")?" vis-tomorrow":Y.isSame(n().add(-1,"day"),"day")?" vis-yesterday":""}function $(Y){return Y.isSame(bo(),"week")?" vis-current-week":""}function A(Y){return Y.isSame(bo(),"month")?" vis-current-month":""}function R(Y){return Y.isSame(bo(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":y.push(w(d)),y.push(b(d.milliseconds()));break;case"second":y.push(w(d)),y.push(b(d.seconds()));break;case"minute":y.push(w(d)),y.push(b(d.minutes()));break;case"hour":y.push(Cn(t="vis-h".concat(d.hours())).call(t,this.step==4?"-h"+(d.hours()+4):"")),y.push(w(d)),y.push(b(d.hours()));break;case"weekday":y.push("vis-".concat(d.format("dddd").toLowerCase())),y.push(w(d)),y.push($(d)),y.push(b(d.date()));break;case"day":y.push("vis-day".concat(d.date())),y.push("vis-".concat(d.format("MMMM").toLowerCase())),y.push(w(d)),y.push(A(d)),y.push(this.step<=2?w(d):""),y.push(this.step<=2?"vis-".concat(d.format("dddd").toLowerCase()):""),y.push(b(d.date()-1));break;case"week":y.push("vis-week".concat(d.format("w"))),y.push($(d)),y.push(b(d.week()));break;case"month":y.push("vis-".concat(d.format("MMMM").toLowerCase())),y.push(A(d)),y.push(b(d.month()));break;case"year":y.push("vis-year".concat(d.year())),y.push(R(d)),y.push(b(d.year()));break}return Rt(y).call(y,String).join(" ")}}],[{key:"snap",value:function(t,n,h){var d=Mi(t);if(n=="year"){var p=d.year()+Math.round(d.month()/12);d=d.year(Math.round(p/h)*h).month(0).date(0).hours(0).minutes(0).seconds(0).milliseconds(0)}else if(n=="month")d.date()>15?d=d.date(1).add(1,"month"):d=d.date(1),d=d.hours(0).minutes(0).seconds(0).milliseconds(0);else if(n=="week")d.weekday()>2?d=d.weekday(0).add(1,"week"):d=d.weekday(0),d=d.hours(0).minutes(0).seconds(0).milliseconds(0);else if(n=="day"){switch(h){case 5:case 2:d=d.hours(Math.round(d.hours()/24)*24);break;default:d=d.hours(Math.round(d.hours()/12)*12);break}d=d.minutes(0).seconds(0).milliseconds(0)}else if(n=="weekday"){switch(h){case 5:case 2:d=d.hours(Math.round(d.hours()/12)*12);break;default:d=d.hours(Math.round(d.hours()/6)*6);break}d=d.minutes(0).seconds(0).milliseconds(0)}else if(n=="hour"){switch(h){case 4:d=d.minutes(Math.round(d.minutes()/60)*60);break;default:d=d.minutes(Math.round(d.minutes()/30)*30);break}d=d.seconds(0).milliseconds(0)}else if(n=="minute"){switch(h){case 15:case 10:d=d.minutes(Math.round(d.minutes()/5)*5).seconds(0);break;case 5:d=d.seconds(Math.round(d.seconds()/60)*60);break;default:d=d.seconds(Math.round(d.seconds()/30)*30);break}d=d.milliseconds(0)}else if(n=="second")switch(h){case 15:case 10:d=d.seconds(Math.round(d.seconds()/5)*5).milliseconds(0);break;case 5:d=d.milliseconds(Math.round(d.milliseconds()/1e3)*1e3);break;default:d=d.milliseconds(Math.round(d.milliseconds()/500)*500);break}else if(n=="millisecond"){var y=h>5?h/2:1;d=d.milliseconds(Math.round(d.milliseconds()/y)*y)}return d}}]),e}();lN.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:""}};function ca(e,a){a===void 0&&(a={});var t=a.insertAt;if(!(!e||typeof document=="undefined")){var n=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.type="text/css",t==="top"&&n.firstChild?n.insertBefore(h,n.firstChild):n.appendChild(h),h.styleSheet?h.styleSheet.cssText=e:h.appendChild(document.createTextNode(e))}}var ibe=`.vis-time-axis {
position: relative;
overflow: hidden;
}
.vis-time-axis.vis-foreground {
top: 0;
left: 0;
width: 100%;
}
.vis-time-axis.vis-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.vis-time-axis .vis-text {
position: absolute;
color: #4d4d4d;
padding: 3px;
overflow: hidden;
box-sizing: border-box;
white-space: nowrap;
}
.vis-time-axis .vis-text.vis-measure {
position: absolute;
padding-left: 0;
padding-right: 0;
margin-left: 0;
margin-right: 0;
visibility: hidden;
}
.vis-time-axis .vis-grid.vis-vertical {
position: absolute;
border-left: 1px solid;
}
.vis-time-axis .vis-grid.vis-vertical-rtl {
position: absolute;
border-right: 1px solid;
}
.vis-time-axis .vis-grid.vis-minor {
border-color: #e5e5e5;
}
.vis-time-axis .vis-grid.vis-major {
border-color: #bfbfbf;
}
`;ca(ibe);function nbe(e){var a=abe();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function abe(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var uN=function(e){Lh(t,e);var a=nbe(t);function t(n,h){var d;return br(this,t),d=a.call(this),d.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},d.props={range:{start:0,end:0,minimumStep:0},lineTop:0},d.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:ee.extend({},lN.FORMAT),moment:Mi,timeAxis:null},d.options=ee.extend({},d.defaultOptions),d.body=n,d._create(),d.setOptions(h),d}return _r(t,[{key:"setOptions",value:function(h){h&&(ee.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,h),ee.selectiveDeepExtend(["format"],this.options,h),"orientation"in h&&(typeof h.orientation=="string"?this.options.orientation.axis=h.orientation:bt(h.orientation)==="object"&&"axis"in h.orientation&&(this.options.orientation.axis=h.orientation.axis)),"locale"in h&&(typeof Mi.locale=="function"?Mi.locale(h.locale):Mi.lang(h.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var h=this.props,d=this.dom.foreground,p=this.dom.background,y=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,b=d.parentNode!==y;this._calculateCharSize();var w=this.options.showMinorLabels&&this.options.orientation.axis!=="none",$=this.options.showMajorLabels&&this.options.orientation.axis!=="none";h.minorLabelHeight=w?h.minorCharHeight:0,h.majorLabelHeight=$?h.majorCharHeight:0,h.height=h.minorLabelHeight+h.majorLabelHeight,h.width=d.offsetWidth,h.minorLineHeight=this.body.domProps.root.height-h.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),h.minorLineWidth=1,h.majorLineHeight=h.minorLineHeight+h.majorLabelHeight,h.majorLineWidth=1;var A=d.nextSibling,R=p.nextSibling;return d.parentNode&&d.parentNode.removeChild(d),p.parentNode&&p.parentNode.removeChild(p),d.style.height="".concat(this.props.height,"px"),this._repaintLabels(),A?y.insertBefore(d,A):y.appendChild(d),R?this.body.dom.backgroundVertical.insertBefore(p,R):this.body.dom.backgroundVertical.appendChild(p),this._isResized()||b}},{key:"_repaintLabels",value:function(){var h=this.options.orientation.axis,d=ee.convert(this.body.range.start,"Number"),p=ee.convert(this.body.range.end,"Number"),y=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),b=y-LC(this.options.moment,this.body.hiddenDates,this.body.range,y);b-=this.body.util.toTime(0).valueOf();var w=new lN(new Date(d),new Date(p),b,this.body.hiddenDates,this.options);w.setMoment(this.options.moment),this.options.format&&w.setFormat(this.options.format),this.options.timeAxis&&w.setScale(this.options.timeAxis),this.step=w;var $=this.dom;$.redundant.lines=$.lines,$.redundant.majorTexts=$.majorTexts,$.redundant.minorTexts=$.minorTexts,$.lines=[],$.majorTexts=[],$.minorTexts=[];var A,R,Y,V,oe,G,ae=0,ve,ye,pe=void 0,Se=0,ze=1e3,tt;for(w.start(),R=w.getCurrent(),V=this.body.util.toScreen(R);w.hasNext()&&Se<ze;){switch(Se++,oe=w.isMajor(),tt=w.getClassName(),A=R,Y=V,w.next(),R=w.getCurrent(),V=this.body.util.toScreen(R),ve=ae,ae=V-Y,w.scale){case"week":G=!0;break;default:G=ae>=ve*.4;break}if(this.options.showMinorLabels&&G){var _e=this._repaintMinorText(Y,w.getLabelMinor(A),h,tt);_e.style.width="".concat(ae,"px")}oe&&this.options.showMajorLabels?(Y>0&&(pe==null&&(pe=Y),_e=this._repaintMajorText(Y,w.getLabelMajor(A),h,tt)),ye=this._repaintMajorLine(Y,ae,h,tt)):G?ye=this._repaintMinorLine(Y,ae,h,tt):ye&&(ye.style.width="".concat(Vs(ye.style.width)+ae,"px"))}if(Se===ze&&!h6&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(ze," lines.")),h6=!0),this.options.showMajorLabels){var it=this.body.util.toTime(0),Ne=w.getLabelMajor(it),qe=Ne.length*(this.props.majorCharWidth||10)+10;(pe==null||qe<pe)&&this._repaintMajorText(0,Ne,h,tt)}Tt(ee).call(ee,this.dom.redundant,function(Fe){for(;Fe.length;){var Ye=Fe.pop();Ye&&Ye.parentNode&&Ye.parentNode.removeChild(Ye)}})}},{key:"_repaintMinorText",value:function(h,d,p,y){var b=this.dom.redundant.minorTexts.shift();if(!b){var w=document.createTextNode("");b=document.createElement("div"),b.appendChild(w),this.dom.foreground.appendChild(b)}this.dom.minorTexts.push(b),b.innerHTML=ee.xss(d);var $=p=="top"?this.props.majorLabelHeight:0;return this._setXY(b,h,$),b.className="vis-text vis-minor ".concat(y),b}},{key:"_repaintMajorText",value:function(h,d,p,y){var b=this.dom.redundant.majorTexts.shift();if(!b){var w=document.createElement("div");b=document.createElement("div"),b.appendChild(w),this.dom.foreground.appendChild(b)}b.childNodes[0].innerHTML=ee.xss(d),b.className="vis-text vis-major ".concat(y);var $=p=="top"?0:this.props.minorLabelHeight;return this._setXY(b,h,$),this.dom.majorTexts.push(b),b}},{key:"_setXY",value:function(h,d,p){var y,b=this.options.rtl?d*-1:d;h.style.transform=Cn(y="translate(".concat(b,"px, ")).call(y,p,"px)")}},{key:"_repaintMinorLine",value:function(h,d,p,y){var b,w=this.dom.redundant.lines.shift();w||(w=document.createElement("div"),this.dom.background.appendChild(w)),this.dom.lines.push(w);var $=this.props;w.style.width="".concat(d,"px"),w.style.height="".concat($.minorLineHeight,"px");var A=p=="top"?$.majorLabelHeight:this.body.domProps.top.height,R=h-$.minorLineWidth/2;return this._setXY(w,R,A),w.className=Cn(b="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(b,y),w}},{key:"_repaintMajorLine",value:function(h,d,p,y){var b,w=this.dom.redundant.lines.shift();w||(w=document.createElement("div"),this.dom.background.appendChild(w)),this.dom.lines.push(w);var $=this.props;w.style.width="".concat(d,"px"),w.style.height="".concat($.majorLineHeight,"px");var A=p=="top"?0:this.body.domProps.top.height,R=h-$.majorLineWidth/2;return this._setXY(w,R,A),w.className=Cn(b="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(b,y),w}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),t}(wp),h6=!1;function obe(e){var a=window,t={},n={keydown:{},keyup:{}},h={},d;for(d=97;d<=122;d++)h[String.fromCharCode(d)]={code:65+(d-97),shift:!1};for(d=65;d<=90;d++)h[String.fromCharCode(d)]={code:d,shift:!0};for(d=0;d<=9;d++)h[""+d]={code:48+d,shift:!1};for(d=1;d<=12;d++)h["F"+d]={code:111+d,shift:!1};for(d=0;d<=9;d++)h["num"+d]={code:96+d,shift:!1};h["num*"]={code:106,shift:!1},h["num+"]={code:107,shift:!1},h["num-"]={code:109,shift:!1},h["num/"]={code:111,shift:!1},h["num."]={code:110,shift:!1},h.left={code:37,shift:!1},h.up={code:38,shift:!1},h.right={code:39,shift:!1},h.down={code:40,shift:!1},h.space={code:32,shift:!1},h.enter={code:13,shift:!1},h.shift={code:16,shift:void 0},h.esc={code:27,shift:!1},h.backspace={code:8,shift:!1},h.tab={code:9,shift:!1},h.ctrl={code:17,shift:!1},h.alt={code:18,shift:!1},h.delete={code:46,shift:!1},h.pageup={code:33,shift:!1},h.pagedown={code:34,shift:!1},h["="]={code:187,shift:!1},h["-"]={code:189,shift:!1},h["]"]={code:221,shift:!1},h["["]={code:219,shift:!1};var p=function(w){b(w,"keydown")},y=function(w){b(w,"keyup")},b=function(w,$){if(n[$][w.keyCode]!==void 0)for(var A=n[$][w.keyCode],R=0;R<A.length;R++)(A[R].shift===void 0||A[R].shift==!0&&w.shiftKey==!0||A[R].shift==!1&&w.shiftKey==!1)&&A[R].fn(w)};return t.bind=function(w,$,A){if(A===void 0&&(A="keydown"),h[w]===void 0)throw new Error("unsupported key: "+w);n[A][h[w].code]===void 0&&(n[A][h[w].code]=[]),n[A][h[w].code].push({fn:$,shift:h[w].shift})},t.bindAll=function(w,$){$===void 0&&($="keydown");for(var A in h)h.hasOwnProperty(A)&&t.bind(A,w,$)},t.getKey=function(w){for(var $ in h)if(h.hasOwnProperty($)){if(w.shiftKey==!0&&h[$].shift==!0&&w.keyCode==h[$].code)return $;if(w.shiftKey==!1&&h[$].shift==!1&&w.keyCode==h[$].code)return $;if(w.keyCode==h[$].code&&$=="shift")return $}return"unknown key, currently not supported"},t.unbind=function(w,$,A){if(A===void 0&&(A="keydown"),h[w]===void 0)throw new Error("unsupported key: "+w);if($!==void 0){var R=[],Y=n[A][h[w].code];if(Y!==void 0)for(var V=0;V<Y.length;V++)Y[V].fn==$&&Y[V].shift==h[w].shift||R.push(n[A][h[w].code][V]);n[A][h[w].code]=R}else n[A][h[w].code]=[]},t.reset=function(){n={keydown:{},keyup:{}}},t.destroy=function(){n={keydown:{},keyup:{}},a.removeEventListener("keydown",p,!0),a.removeEventListener("keyup",y,!0)},a.addEventListener("keydown",p,!0),a.addEventListener("keyup",y,!0),t}var sbe=`.vis .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* Must be displayed above for example selected Timeline items */
z-index: 10;
}
.vis-active {
box-shadow: 0 0 10px #86d5f8;
}
`;ca(sbe);function Xo(e){var a,t;this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=eu(this.dom.overlay),this.hammer.on("tap",Ee(a=this._onTapOverlay).call(a,this));var n=this,h=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Tt(h).call(h,function(d){n.hammer.on(d,function(p){p.stopPropagation()})}),document&&document.body&&(this.onClick=function(d){lbe(d.target,e)||n.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=obe(),this.escListener=Ee(t=this.deactivate).call(t,this)}YN(Xo.prototype);Xo.current=null;Xo.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null};Xo.prototype.activate=function(){var e;Xo.current&&Xo.current.deactivate(),Xo.current=this,this.active=!0,this.dom.overlay.style.display="none",ee.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),Ee(e=this.keycharm).call(e,"esc",this.escListener)};Xo.prototype.deactivate=function(){Xo.current===this&&(Xo.current=null),this.active=!1,this.dom.overlay.style.display="",ee.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")};Xo.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};function lbe(e,a){for(;e;){if(e===a)return!0;e=e.parentNode}return!1}var bL={current:"current",time:"time",deleteSelected:"Delete selected"},ube=bL,hbe=bL,_L={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},cbe=_L,dbe=_L,wL={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},fbe=wL,vbe=wL,Y3={current:"Aktuelle",time:"Zeit",deleteSelected:"L\xF6sche Auswahl"},pbe=Y3,dE={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},mbe=dE,gbe=dE,ybe=dE,B3={current:"corriente",time:"hora",deleteSelected:"Eliminar selecci\xF3n"},bbe=B3,H3={current:"\u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0439",time:"\u0447\u0430\u0441",deleteSelected:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043E\u0431\u0440\u0430\u043D\u0435"},_be=H3,W3={current:"\u0442\u0435\u043A\u0443\u0449\u0435\u0435",time:"\u0432\u0440\u0435\u043C\u044F",deleteSelected:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435"},wbe=W3,G3={current:"aktualny",time:"czas",deleteSelected:"Usu\u0144 wybrane"},kbe=G3,kL={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},Sbe=kL,xbe=kL,z3={current:"\u73FE\u5728",time:"\u6642\u523B",deleteSelected:"\u9078\u629E\u3055\u308C\u305F\u3082\u306E\u3092\u524A\u9664"},Tbe=z3,U3={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},Cbe=U3,fE={current:"n\xE5v\xE6rende",time:"tid",deleteSelected:"Slett valgte"},Ebe=fE,Dbe=fE,Obe=fE,V3={current:"einamas",time:"laikas",deleteSelected:"Pa\u0161alinti pasirinkt\u0105"},$be=V3,Bg={en:bL,en_EN:ube,en_US:hbe,it:_L,it_IT:cbe,it_CH:dbe,nl:wL,nl_NL:fbe,nl_BE:vbe,de:Y3,de_DE:pbe,fr:dE,fr_FR:mbe,fr_CA:gbe,fr_BE:ybe,es:B3,es_ES:bbe,uk:H3,uk_UA:_be,ru:W3,ru_RU:wbe,pl:G3,pl_PL:kbe,pt:kL,pt_BR:Sbe,pt_PT:xbe,ja:z3,ja_JP:Tbe,lt:V3,lt_LT:$be,sv:U3,sv_SE:Cbe,nb:fE,nn:Dbe,nb_NO:Ebe,nn_NO:Obe},Pbe=`.vis-custom-time {
background-color: #6E94FF;
width: 2px;
cursor: move;
z-index: 1;
}
.vis-custom-time > .vis-custom-time-marker {
background-color: inherit;
color: white;
font-size: 12px;
white-space: nowrap;
padding: 3px 5px;
top: 0px;
cursor: initial;
z-index: inherit;
}`;ca(Pbe);function Ibe(e){var a=Mbe();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function Mbe(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var q3=function(e){Lh(t,e);var a=Ibe(t);function t(n,h){var d,p;br(this,t),p=a.call(this),p.body=n,p.defaultOptions={moment:Mi,locales:Bg,locale:"en",id:void 0,title:void 0},p.options=ee.extend({},p.defaultOptions),p.setOptions(h),p.options.locales=ee.extend({},Bg,p.options.locales);var y=p.defaultOptions.locales[p.defaultOptions.locale];return Tt(d=Ki(p.options.locales)).call(d,function(b){p.options.locales[b]=ee.extend({},y,p.options.locales[b])}),h&&h.time!=null?p.customTime=h.time:p.customTime=new Date,p.eventParams={},p._create(),p}return _r(t,[{key:"setOptions",value:function(h){h&&ee.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,h)}},{key:"_create",value:function(){var h,d,p,y=document.createElement("div");y["custom-time"]=this,y.className="vis-custom-time ".concat(this.options.id||""),y.style.position="absolute",y.style.top="0px",y.style.height="100%",this.bar=y;var b=document.createElement("div");b.style.position="relative",b.style.top="0px",this.options.rtl?b.style.right="-10px":b.style.left="-10px",b.style.height="100%",b.style.width="20px";function w($){this.body.range._onMouseWheel($)}b.addEventListener?(b.addEventListener("mousewheel",Ee(w).call(w,this),!1),b.addEventListener("DOMMouseScroll",Ee(w).call(w,this),!1)):b.attachEvent("onmousewheel",Ee(w).call(w,this)),y.appendChild(b),this.hammer=new eu(b),this.hammer.on("panstart",Ee(h=this._onDragStart).call(h,this)),this.hammer.on("panmove",Ee(d=this._onDrag).call(d,this)),this.hammer.on("panend",Ee(p=this._onDragEnd).call(p,this)),this.hammer.get("pan").set({threshold:5,direction:eu.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var h=this.body.dom.backgroundVertical;this.bar.parentNode!=h&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),h.appendChild(this.bar));var d=this.body.util.toScreen(this.customTime),p=this.options.locales[this.options.locale];p||(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),p=this.options.locales.en);var y=this.options.title;if(y===void 0){var b;y=Cn(b="".concat(p.time,": ")).call(b,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),y=y.charAt(0).toUpperCase()+y.substring(1)}else typeof y=="function"&&(y=y.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(d,"px"):this.bar.style.left="".concat(d,"px"),this.bar.title=y,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(h){this.customTime=ee.convert(h,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(h,d){if(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=ee.xss(h),this.marker.style.position="absolute",d){var p,y;this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",function(){this.marker.focus()}),this.marker.addEventListener("input",Ee(p=this._onMarkerChange).call(p,this)),this.marker.title=h,this.marker.addEventListener("blur",Ee(y=function(w){this.title!=w.target.innerHTML&&(this._onMarkerChanged(w),this.title=w.target.innerHTML)}).call(y,this))}this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(h){this.options.title=h}},{key:"_onDragStart",value:function(h){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,h.stopPropagation()}},{key:"_onDrag",value:function(h){if(this.eventParams.dragging){var d=this.options.rtl?-1*h.deltaX:h.deltaX,p=this.body.util.toScreen(this.eventParams.customTime)+d,y=this.body.util.toTime(p),b=this.body.util.getScale(),w=this.body.util.getStep(),$=this.options.snap,A=$?$(y,b,w):y;this.setCustomTime(A),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:h}),h.stopPropagation()}}},{key:"_onDragEnd",value:function(h){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:h}),h.stopPropagation())}},{key:"_onMarkerChange",value:function(h){this.body.emitter.emit("markerchange",{id:this.options.id,title:h.target.innerHTML,event:h}),h.stopPropagation()}},{key:"_onMarkerChanged",value:function(h){this.body.emitter.emit("markerchanged",{id:this.options.id,title:h.target.innerHTML,event:h}),h.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(h){for(var d=h.target;d;){if(d.hasOwnProperty("custom-time"))return d["custom-time"];d=d.parentNode}return null}}]),t}(wp),Abe=`.vis-timeline {
/*
-webkit-transition: height .4s ease-in-out;
transition: height .4s ease-in-out;
*/
}
.vis-panel {
/*
-webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
transition: height .4s ease-in-out, top .4s ease-in-out;
*/
}
.vis-axis {
/*
-webkit-transition: top .4s ease-in-out;
transition: top .4s ease-in-out;
*/
}
/* TODO: get animation working nicely
.vis-item {
-webkit-transition: top .4s ease-in-out;
transition: top .4s ease-in-out;
}
.vis-item.line {
-webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
transition: height .4s ease-in-out, top .4s ease-in-out;
}
/**/`;ca(Abe);var Rbe=`.vis-current-time {
background-color: #FF7F6E;
width: 2px;
z-index: 1;
pointer-events: none;
}
.vis-rolling-mode-btn {
height: 40px;
width: 40px;
position: absolute;
top: 7px;
right: 20px;
border-radius: 50%;
font-size: 28px;
cursor: pointer;
opacity: 0.8;
color: white;
font-weight: bold;
text-align: center;
background: #3876c2;
}
.vis-rolling-mode-btn:before {
content: "\\26F6";
}
.vis-rolling-mode-btn:hover {
opacity: 1;
}`;ca(Rbe);var Nbe=`.vis-panel {
position: absolute;
padding: 0;
margin: 0;
box-sizing: border-box;
}
.vis-panel.vis-center,
.vis-panel.vis-left,
.vis-panel.vis-right,
.vis-panel.vis-top,
.vis-panel.vis-bottom {
border: 1px #bfbfbf;
}
.vis-panel.vis-center,
.vis-panel.vis-left,
.vis-panel.vis-right {
border-top-style: solid;
border-bottom-style: solid;
overflow: hidden;
}
.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
}
.vis-left.vis-panel.vis-vertical-scroll {
direction: rtl;
}
.vis-left.vis-panel.vis-vertical-scroll .vis-content {
direction: ltr;
}
.vis-right.vis-panel.vis-vertical-scroll {
direction: ltr;
}
.vis-right.vis-panel.vis-vertical-scroll .vis-content {
direction: rtl;
}
.vis-panel.vis-center,
.vis-panel.vis-top,
.vis-panel.vis-bottom {
border-left-style: solid;
border-right-style: solid;
}
.vis-background {
overflow: hidden;
}
.vis-panel > .vis-content {
position: relative;
}
.vis-panel .vis-shadow {
position: absolute;
width: 100%;
height: 1px;
box-shadow: 0 0 10px rgba(0,0,0,0.8);
/* TODO: find a nice way to ensure vis-shadows are drawn on top of items
z-index: 1;
*/
}
.vis-panel .vis-shadow.vis-top {
top: -1px;
left: 0;
}
.vis-panel .vis-shadow.vis-bottom {
bottom: -1px;
left: 0;
}`;ca(Nbe);var Lbe=`.vis-graph-group0 {
fill:#4f81bd;
fill-opacity:0;
stroke-width:2px;
stroke: #4f81bd;
}
.vis-graph-group1 {
fill:#f79646;
fill-opacity:0;
stroke-width:2px;
stroke: #f79646;
}
.vis-graph-group2 {
fill: #8c51cf;
fill-opacity:0;
stroke-width:2px;
stroke: #8c51cf;
}
.vis-graph-group3 {
fill: #75c841;
fill-opacity:0;
stroke-width:2px;
stroke: #75c841;
}
.vis-graph-group4 {
fill: #ff0100;
fill-opacity:0;
stroke-width:2px;
stroke: #ff0100;
}
.vis-graph-group5 {
fill: #37d8e6;
fill-opacity:0;
stroke-width:2px;
stroke: #37d8e6;
}
.vis-graph-group6 {
fill: #042662;
fill-opacity:0;
stroke-width:2px;
stroke: #042662;
}
.vis-graph-group7 {
fill:#00ff26;
fill-opacity:0;
stroke-width:2px;
stroke: #00ff26;
}
.vis-graph-group8 {
fill:#ff00ff;
fill-opacity:0;
stroke-width:2px;
stroke: #ff00ff;
}
.vis-graph-group9 {
fill: #8f3938;
fill-opacity:0;
stroke-width:2px;
stroke: #8f3938;
}
.vis-timeline .vis-fill {
fill-opacity:0.1;
stroke: none;
}
.vis-timeline .vis-bar {
fill-opacity:0.5;
stroke-width:1px;
}
.vis-timeline .vis-point {
stroke-width:2px;
fill-opacity:1.0;
}
.vis-timeline .vis-legend-background {
stroke-width:1px;
fill-opacity:0.9;
fill: #ffffff;
stroke: #c2c2c2;
}
.vis-timeline .vis-outline {
stroke-width:1px;
fill-opacity:1;
fill: #ffffff;
stroke: #e5e5e5;
}
.vis-timeline .vis-icon-fill {
fill-opacity:0.3;
stroke: none;
}
`;ca(Lbe);var Fbe=`
.vis-timeline {
position: relative;
border: 1px solid #bfbfbf;
overflow: hidden;
padding: 0;
margin: 0;
box-sizing: border-box;
}
.vis-loading-screen {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}`;ca(Fbe);var jbe=`/* override some bootstrap styles screwing up the timelines css */
.vis [class*="span"] {
min-height: 0;
width: auto;
}
`;ca(jbe);var SL=function(){function e(){br(this,e)}return _r(e,[{key:"_create",value:function(t){var n=this,h,d,p;this.dom={},this.dom.container=t,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){n.initialDrawDone===!0&&n._redraw()}),this.on("rangechanged",function(){n.initialRangeChangeDone||(n.initialRangeChangeDone=!0)}),this.on("touch",Ee(h=this._onTouch).call(h,this)),this.on("panmove",Ee(d=this._onDrag).call(d,this));var y=this;this._origRedraw=Ee(p=this._redraw).call(p,this),this._redraw=ee.throttle(this._origRedraw),this.on("_change",function(G){y.itemSet&&y.itemSet.initialItemSetDrawn&&G&&G.queue==!0?y._redraw():y._origRedraw()}),this.hammer=new eu(this.dom.root);var b=this.hammer.get("pinch").set({enable:!0});b&&rbe(b),this.hammer.get("pan").set({threshold:5,direction:eu.DIRECTION_ALL}),this.timelineListeners={};var w=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Tt(w).call(w,function(G){var ae=function(ye){y.isActive()&&y.emit(G,ye)};y.hammer.on(G,ae),y.timelineListeners[G]=ae}),j3(this.hammer,function(G){y.emit("touch",G)}),tbe(this.hammer,function(G){y.emit("release",G)});function $(G){var ae=40,ve=800;this.isActive()&&this.emit("mousewheel",G);var ye=0,pe=0;if("detail"in G&&(pe=G.detail*-1),"wheelDelta"in G&&(pe=G.wheelDelta),"wheelDeltaY"in G&&(pe=G.wheelDeltaY),"wheelDeltaX"in G&&(ye=G.wheelDeltaX*-1),"axis"in G&&G.axis===G.HORIZONTAL_AXIS&&(ye=pe*-1,pe=0),"deltaY"in G&&(pe=G.deltaY*-1),"deltaX"in G&&(ye=G.deltaX),G.deltaMode&&(G.deltaMode===1?(ye*=ae,pe*=ae):(ye*=ae,pe*=ve)),this.options.preferZoom){if(!this.options.zoomKey||G[this.options.zoomKey])return}else if(this.options.zoomKey&&G[this.options.zoomKey])return;if(!(!this.options.verticalScroll&&!this.options.horizontalScroll)){if(this.options.verticalScroll&&Math.abs(pe)>=Math.abs(ye)){var Se=this.props.scrollTop,ze=Se+pe;if(this.isActive()){var tt=this._setScrollTop(ze);tt!==Se&&(this._redraw(),this.emit("scroll",G),G.preventDefault())}}else if(this.options.horizontalScroll){var _e=Math.abs(ye)>=Math.abs(pe)?ye:pe,it=_e/120*(this.range.end-this.range.start)/20,Ne=this.range.start+it,qe=this.range.end+it,Fe={animation:!1,byUser:!0,event:G};this.range.setRange(Ne,qe,Fe),G.preventDefault()}}}var A="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(A,Ee($).call($,this),!1),this.dom.top.addEventListener(A,Ee($).call($,this),!1),this.dom.bottom.addEventListener(A,Ee($).call($,this),!1);function R(G){if(y.options.verticalScroll&&(G.preventDefault(),y.isActive())){var ae=-G.target.scrollTop;y._setScrollTop(ae),y._redraw(),y.emit("scrollSide",G)}}this.dom.left.parentNode.addEventListener("scroll",Ee(R).call(R,this)),this.dom.right.parentNode.addEventListener("scroll",Ee(R).call(R,this));var Y=!1;function V(G){var ae;if(G.preventDefault&&(y.emit("dragover",y.getEventProperties(G)),G.preventDefault()),oi(ae=G.target.className).call(ae,"timeline")>-1&&!Y)return G.dataTransfer.dropEffect="move",Y=!0,!1}function oe(G){G.preventDefault&&G.preventDefault(),G.stopPropagation&&G.stopPropagation();try{var ae=JSON.parse(G.dataTransfer.getData("text"));if(!ae||!ae.content)return}catch(ve){return!1}return Y=!1,G.center={x:G.clientX,y:G.clientY},ae.target!=="item"?y.itemSet._onAddItem(G):y.itemSet._onDropObjectOnItem(G),y.emit("drop",y.getEventProperties(G)),!1}if(this.dom.center.addEventListener("dragover",Ee(V).call(V,this),!1),this.dom.center.addEventListener("drop",Ee(oe).call(oe,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){var n;if(t){var h=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"];if(ee.selectiveExtend(h,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"),bt(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&(typeof t.orientation=="string"?this.options.orientation={item:t.orientation,axis:t.orientation}:bt(t.orientation)==="object"&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var d=this.timeAxis2=new uN(this.body,this.options);d.setOptions=function(A){var R=A?ee.extend({},A):{};R.orientation="top",uN.prototype.setOptions.call(d,R)},this.components.push(d)}}else if(this.timeAxis2){var p,y=oi(p=this.components).call(p,this.timeAxis2);if(y!==-1){var b;Ks(b=this.components).call(b,y,1)}this.timeAxis2.destroy(),this.timeAxis2=null}typeof t.drawPoints=="function"&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&yL(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new Xo(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(Tt(n=this.components).call(n,function(A){return A.setOptions(t)}),"configure"in t){var w;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var $=ee.deepExtend({},this.options);Tt(w=this.components).call(w,function(A){ee.deepExtend($,A.options)}),this.configurator.setModuleOptions({global:$})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){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(var n in this.timelineListeners)this.timelineListeners.hasOwnProperty(n)&&delete this.timelineListeners[n];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,Tt(t=this.components).call(t,function(h){return h.destroy()}),this.body=null}},{key:"setCustomTime",value:function(t,n){var h,d=Rt(h=this.customTimes).call(h,function(p){return n===p.options.id});if(d.length===0)throw new Error("No custom time bar found with id ".concat(Ha(n)));d.length>0&&d[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var n,h=Rt(n=this.customTimes).call(n,function(d){return d.options.id===t});if(h.length===0)throw new Error("No custom time bar found with id ".concat(Ha(t)));return h[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,n,h){var d,p=Rt(d=this.customTimes).call(d,function(y){return y.options.id===n});if(p.length===0)throw new Error("No custom time bar found with id ".concat(Ha(n)));p.length>0&&p[0].setCustomMarker(t,h)}},{key:"setCustomTimeTitle",value:function(t,n){var h,d=Rt(h=this.customTimes).call(h,function(p){return p.options.id===n});if(d.length===0)throw new Error("No custom time bar found with id ".concat(Ha(n)));if(d.length>0)return d[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,n){var h,d=t!==void 0?ee.convert(t,"Date"):new Date,p=c3(h=this.customTimes).call(h,function(b){return b.options.id===n});if(p)throw new Error("A custom time with id ".concat(Ha(n)," already exists"));var y=new q3(this.body,ee.extend({},this.options,{time:d,id:n,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(y),this.components.push(y),this._redraw(),n}},{key:"removeCustomTime",value:function(t){var n,h=this,d=Rt(n=this.customTimes).call(n,function(p){return p.options.id===t});if(d.length===0)throw new Error("No custom time bar found with id ".concat(Ha(t)));Tt(d).call(d,function(p){var y,b,w,$;Ks(y=h.customTimes).call(y,oi(b=h.customTimes).call(b,p),1),Ks(w=h.components).call(w,oi($=h.components).call($,p),1),p.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,n){var h=this.getDataRange();if(!(h.min===null&&h.max===null)){var d=h.max-h.min,p=new Date(h.min.valueOf()-d*.01),y=new Date(h.max.valueOf()+d*.01),b=t&&t.animation!==void 0?t.animation:!0;this.range.setRange(p,y,{animation:b},n)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,n,h,d){typeof arguments[2]=="function"&&(d=arguments[2],h={});var p,y;arguments.length==1?(y=arguments[0],p=y.animation!==void 0?y.animation:!0,this.range.setRange(y.start,y.end,{animation:p})):arguments.length==2&&typeof arguments[1]=="function"?(y=arguments[0],d=arguments[1],p=y.animation!==void 0?y.animation:!0,this.range.setRange(y.start,y.end,{animation:p},d)):(p=h&&h.animation!==void 0?h.animation:!0,this.range.setRange(t,n,{animation:p},d))}},{key:"moveTo",value:function(t,n,h){typeof arguments[1]=="function"&&(h=arguments[1],n={});var d=this.range.end-this.range.start,p=ee.convert(t,"Date").valueOf(),y=p-d/2,b=p+d/2,w=n&&n.animation!==void 0?n.animation:!0;this.range.setRange(y,b,{animation:w},h)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,n,h){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(h=arguments[1],n={});var d=this.getWindow(),p=d.start.valueOf(),y=d.end.valueOf(),b=y-p,w=b/(1+t),$=(b-w)/2,A=p+$,R=y-$;this.setWindow(A,R,n,h)}}},{key:"zoomOut",value:function(t,n,h){if(!(!t||t<0||t>1)){typeof arguments[1]=="function"&&(h=arguments[1],n={});var d=this.getWindow(),p=d.start.valueOf(),y=d.end.valueOf(),b=y-p,w=p-b*t/2,$=y+b*t/2;this.setWindow(w,$,n,h)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var n=this.dom;if(!(!n||!n.container||n.root.offsetWidth==0)){var h=!1,d=this.options,p=this.props;NC(this.options.moment,this.body,this.options.hiddenDates),d.orientation=="top"?(ee.addClassName(n.root,"vis-top"),ee.removeClassName(n.root,"vis-bottom")):(ee.removeClassName(n.root,"vis-top"),ee.addClassName(n.root,"vis-bottom")),d.rtl?(ee.addClassName(n.root,"vis-rtl"),ee.removeClassName(n.root,"vis-ltr")):(ee.addClassName(n.root,"vis-ltr"),ee.removeClassName(n.root,"vis-rtl")),n.root.style.maxHeight=ee.option.asSize(d.maxHeight,""),n.root.style.minHeight=ee.option.asSize(d.minHeight,""),n.root.style.width=ee.option.asSize(d.width,"");var y=n.root.offsetWidth;p.border.left=1,p.border.right=1,p.border.top=1,p.border.bottom=1,p.center.height=n.center.offsetHeight,p.left.height=n.left.offsetHeight,p.right.height=n.right.offsetHeight,p.top.height=n.top.clientHeight||-p.border.top,p.bottom.height=Math.round(n.bottom.getBoundingClientRect().height)||n.bottom.clientHeight||-p.border.bottom;var b=Math.max(p.left.height,p.center.height,p.right.height),w=p.top.height+b+p.bottom.height+p.border.top+p.border.bottom;n.root.style.height=ee.option.asSize(d.height,"".concat(w,"px")),p.root.height=n.root.offsetHeight,p.background.height=p.root.height;var $=p.root.height-p.top.height-p.bottom.height;p.centerContainer.height=$,p.leftContainer.height=$,p.rightContainer.height=p.leftContainer.height,p.root.width=y,p.background.width=p.root.width,this.initialDrawDone||(p.scrollbarWidth=ee.getScrollBarWidth());var A=n.leftContainer.clientWidth,R=n.rightContainer.clientWidth;d.verticalScroll?d.rtl?(p.left.width=A||-p.border.left,p.right.width=R+p.scrollbarWidth||-p.border.right):(p.left.width=A+p.scrollbarWidth||-p.border.left,p.right.width=R||-p.border.right):(p.left.width=A||-p.border.left,p.right.width=R||-p.border.right),this._setDOM();var Y=this._updateScrollTop();d.orientation.item!="top"&&(Y+=Math.max(p.centerContainer.height-p.center.height-p.border.top-p.border.bottom,0)),n.center.style.transform="translateY(".concat(Y,"px)");var V=p.scrollTop==0?"hidden":"",oe=p.scrollTop==p.scrollTopMin?"hidden":"";n.shadowTop.style.visibility=V,n.shadowBottom.style.visibility=oe,n.shadowTopLeft.style.visibility=V,n.shadowBottomLeft.style.visibility=oe,n.shadowTopRight.style.visibility=V,n.shadowBottomRight.style.visibility=oe,d.verticalScroll&&(n.rightContainer.className="vis-panel vis-right vis-vertical-scroll",n.leftContainer.className="vis-panel vis-left vis-vertical-scroll",n.shadowTopRight.style.visibility="hidden",n.shadowBottomRight.style.visibility="hidden",n.shadowTopLeft.style.visibility="hidden",n.shadowBottomLeft.style.visibility="hidden",n.left.style.top="0px",n.right.style.top="0px"),(!d.verticalScroll||p.center.height<p.centerContainer.height)&&(n.left.style.top="".concat(Y,"px"),n.right.style.top="".concat(Y,"px"),n.rightContainer.className=n.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),n.leftContainer.className=n.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),p.left.width=A||-p.border.left,p.right.width=R||-p.border.right,this._setDOM());var G=p.center.height>p.centerContainer.height;this.hammer.get("pan").set({direction:G?eu.DIRECTION_ALL:eu.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),Tt(t=this.components).call(t,function(ve){h=ve.redraw()||h});var ae=5;if(h)if(this.redrawCount<ae){this.body.emitter.emit("_change");return}else console.log("WARNING: infinite loop in redraw?");else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,n=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var h=t.root.width-t.left.width-t.right.width;t.center.width=h,t.centerContainer.width=h,t.top.width=h,t.bottom.width=h,n.background.style.height="".concat(t.background.height,"px"),n.backgroundVertical.style.height="".concat(t.background.height,"px"),n.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),n.centerContainer.style.height="".concat(t.centerContainer.height,"px"),n.leftContainer.style.height="".concat(t.leftContainer.height,"px"),n.rightContainer.style.height="".concat(t.rightContainer.height,"px"),n.background.style.width="".concat(t.background.width,"px"),n.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),n.backgroundHorizontal.style.width="".concat(t.background.width,"px"),n.centerContainer.style.width="".concat(t.center.width,"px"),n.top.style.width="".concat(t.top.width,"px"),n.bottom.style.width="".concat(t.bottom.width,"px"),n.background.style.left="0",n.background.style.top="0",n.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),n.backgroundVertical.style.top="0",n.backgroundHorizontal.style.left="0",n.backgroundHorizontal.style.top="".concat(t.top.height,"px"),n.centerContainer.style.left="".concat(t.left.width,"px"),n.centerContainer.style.top="".concat(t.top.height,"px"),n.leftContainer.style.left="0",n.leftContainer.style.top="".concat(t.top.height,"px"),n.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),n.rightContainer.style.top="".concat(t.top.height,"px"),n.top.style.left="".concat(t.left.width,"px"),n.top.style.top="0",n.bottom.style.left="".concat(t.left.width,"px"),n.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),n.center.style.left="0",n.left.style.left="0",n.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return o6(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return o6(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return a6(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return a6(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==!0?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(t.options.autoResize!=!0){t._stopAutoResize();return}if(t.dom.root){var n=t.dom.root.offsetHeight,h=t.dom.root.offsetWidth;(h!=t.props.lastWidth||n!=t.props.lastHeight)&&(t.props.lastWidth=h,t.props.lastHeight=n,t.props.scrollbarWidth=ee.getScrollBarWidth(),t.body.emitter.emit("_change"))}},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=Q0e(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var n=t.deltaY,h=this._getScrollTop(),d=this._setScrollTop(this.touch.initialScrollTop+n);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),d!=h&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(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}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),e}();YN(SL.prototype);function Ybe(e){var a=Bbe();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function Bbe(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var Hbe=function(e){Lh(t,e);var a=Ybe(t);function t(n,h){var d,p;br(this,t),p=a.call(this),p.body=n,p.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Mi,locales:Bg,locale:"en"},p.options=ee.extend({},p.defaultOptions),p.setOptions(h),p.options.locales=ee.extend({},Bg,p.options.locales);var y=p.defaultOptions.locales[p.defaultOptions.locale];return Tt(d=Ki(p.options.locales)).call(d,function(b){p.options.locales[b]=ee.extend({},y,p.options.locales[b])}),p.offset=0,p._create(),p}return _r(t,[{key:"_create",value:function(){var h=document.createElement("div");h.className="vis-current-time",h.style.position="absolute",h.style.top="0px",h.style.height="100%",this.bar=h}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(h){h&&ee.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,h)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var h,d,p=this.body.dom.backgroundVertical;this.bar.parentNode!=p&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),p.appendChild(this.bar),this.start());var y=this.options.moment(bo()+this.offset);this.options.alignCurrentTime&&(y=y.startOf(this.options.alignCurrentTime));var b=this.body.util.toScreen(y),w=this.options.locales[this.options.locale];w||(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),w=this.options.locales.en);var $=Cn(h=Cn(d="".concat(w.current," ")).call(d,w.time,": ")).call(h,y.format("dddd, MMMM Do YYYY, H:mm:ss"));$=$.charAt(0).toUpperCase()+$.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(b*-1,"px)"):this.bar.style.transform="translateX(".concat(b,"px)"),this.bar.title=$}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var h=this;function d(){h.stop();var p=h.body.range.conversion(h.body.domProps.center.width).scale,y=1/p/10;y<30&&(y=30),y>1e3&&(y=1e3),h.redraw(),h.body.emitter.emit("currentTimeTick"),h.currentTimeTimer=Zo(d,y)}d()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(h){var d=ee.convert(h,"Date").valueOf(),p=bo();this.offset=d-p,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(bo()+this.offset)}}]),t}(wp),Wbe=He,Gbe=Nh.find,c6="find",K3=!0;c6 in[]&&Array(1)[c6](function(){K3=!1});Wbe({target:"Array",proto:!0,forced:K3},{find:function(a){return Gbe(this,a,arguments.length>1?arguments[1]:void 0)}});var zbe=Yr;zbe("Array").find;var Ube=He,Vbe=Nh.findIndex,d6="findIndex",X3=!0;d6 in[]&&Array(1)[d6](function(){X3=!1});Ube({target:"Array",proto:!0,forced:X3},{findIndex:function(a){return Vbe(this,a,arguments.length>1?arguments[1]:void 0)}});var qbe=Yr,Kbe=qbe("Array").findIndex,Xbe=Cr,Zbe=Kbe,mR=Array.prototype,Jbe=function(e){var a=e.findIndex;return e===mR||Xbe(mR,e)&&a===mR.findIndex?Zbe:a},Qbe=Jbe,e_e=Qbe,t_e=e_e,r_e=Be(t_e);function i_e(e,a){var t=typeof Qg!="undefined"&&A_(e)||e["@@iterator"];if(!t){if(Ot(e)||(t=n_e(e))||a){t&&(e=t);var n=0,h=function(){};return{s:h,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function n_e(e,a){var t;if(e){if(typeof e=="string")return f6(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f6(e,a)}}function f6(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}var go=.001;function a_e(e){Ii(e).call(e,function(a,t){return a.data.start-t.data.start})}function o_e(e){Ii(e).call(e,function(a,t){var n="end"in a.data?a.data.end:a.data.start,h="end"in t.data?t.data.end:t.data.start;return n-h})}function v6(e,a,t,n){var h=xL(e,a.item,!1,function(d){return d.stack&&(t||d.top===null)},function(d){return d.stack},function(d){return a.axis},n);return h===null}function s_e(e,a,t){var n=xL(e,a.item,!1,function(h){return h.stack},function(h){return!0},function(h){return h.baseTop});t.height=n-t.top+.5*a.item.vertical}function l_e(e,a,t,n){for(var h=0;h<e.length;h++)if(e[h].data.subgroup==null)e[h].top=a.item.vertical;else if(e[h].data.subgroup!==void 0&&n){var d=0;for(var p in t)t.hasOwnProperty(p)&&t[p].visible==!0&&t[p].index<t[e[h].data.subgroup].index&&(d+=t[p].height,t[e[h].data.subgroup].top=d);e[h].top=d+.5*a.item.vertical}n||u_e(e,a,t)}function u_e(e,a,t){var n;xL(Ii(n=EH(t)).call(n,function(d,p){return d.index>p.index?1:d.index<p.index?-1:0}),{vertical:0},!0,function(d){return!0},function(d){return!0},function(d){return 0});for(var h=0;h<e.length;h++)e[h].data.subgroup!==void 0&&(e[h].top=t[e[h].data.subgroup].top+.5*a.item.vertical)}function p6(e,a,t){var n=!1,h=[];for(var d in t)t[d].hasOwnProperty("index")?h[t[d].index]=d:h.push(d);for(var p=0;p<h.length;p++)if(d=h[p],t.hasOwnProperty(d)){n=n||t[d].stack,t[d].top=0;for(var y in t)t[y].visible&&t[d].index>t[y].index&&(t[d].top+=t[y].height);for(var b=e[d],w=0;w<b.length;w++)b[w].data.subgroup!==void 0&&(b[w].top=t[b[w].data.subgroup].top+.5*a.item.vertical,t[d].stack&&(b[w].baseTop=b[w].top));n&&t[d].stack&&s_e(e[d],a,t[d])}}function xL(e,a,t,n,h,d,p){var y=function(_e){return _e.start},b=function(_e){return _e.end};if(!t){var w=!!(e[0]&&e[0].options.rtl);w?y=function(_e){return _e.right}:y=function(_e){return _e.left},b=function(_e){return y(_e)+_e.width+a.horizontal}}var $=[],A=[],R=null,Y=0,V=i_e(e),oe;try{var G=function(){var _e=oe.value;if(n(_e))$.push(_e);else if(h(_e)){var it=y(_e);R!==null&&it<R-go&&(Y=0),R=it,Y=dC(A,function(Ne){return y(Ne)-go>it},Y),Ks(A).call(A,Y,0,_e),Y++}};for(V.s();!(oe=V.n()).done;)G()}catch(tt){V.e(tt)}finally{V.f()}R=null;var ae=null;Y=0;for(var ve=0,ye=0,pe=0,Se=function(){var _e,it,Ne=$.shift();Ne.top=d(Ne);var qe=y(Ne),Fe=b(Ne);R!==null&&qe<R-go&&(ve=0,ye=0,Y=0,ae=null),R=qe,ve=dC(A,function(lt){return qe<b(lt)-go},ve),(ae===null||ae<Fe-go)&&(ye=dC(A,function(lt){return Fe<y(lt)-go},Math.max(ve,ye))),ae!==null&&ae-go>Fe&&(ye=c_e(A,function(lt){return Fe+go>=y(lt)},ve,ye)+1);for(var Ye=Ii(_e=Rt(it=To(A).call(A,ve,ye)).call(it,function(lt){return qe<b(lt)-go&&Fe-go>y(lt)})).call(_e,function(lt,kt){return lt.top-kt.top}),ir=0;ir<Ye.length;ir++){var gt=Ye[ir];h_e(Ne,gt,a)&&(Ne.top=gt.top+gt.height+a.vertical)}h(Ne)&&(Y=dC(A,function(lt){return y(lt)-go>qe},Y),Ks(A).call(A,Y,0,Ne),Y++);var Kt=Ne.top+Ne.height;if(Kt>pe&&(pe=Kt),p&&p())return{v:null}},ze;$.length>0;)if(ze=Se(),ze)return ze.v;return pe}function h_e(e,a,t){return e.top-t.vertical+go<a.top+a.height&&e.top+e.height+t.vertical-go>a.top}function dC(e,a,t){var n;t||(t=0);var h=r_e(n=To(e).call(e,t)).call(n,a);return h===-1?e.length:h+t}function c_e(e,a,t,n){for(t||(t=0),n||(n=e.length),i=n-1;i>=t;i--)if(a(e[i]))return i;return t-1}var d_e="__background__",m6={BACKGROUND:d_e},f_e=function(){function e(a,t,n){var h=this;if(br(this,e),this.groupId=a,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=t&&t.subgroupOrder,this.itemSet=n,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],t&&t.nestedGroups&&(this.nestedGroups=t.nestedGroups,t.showNested==!1?this.showNested=!1:this.showNested=!0),t&&t.subgroupStack)if(typeof t.subgroupStack=="boolean")this.doInnerStack=t.subgroupStack,this.subgroupStackAll=t.subgroupStack;else for(var d in t.subgroupStack)this.subgroupStack[d]=t.subgroupStack[d],this.doInnerStack=this.doInnerStack||t.subgroupStack[d];t&&t.heightMode?this.heightMode=t.heightMode:this.heightMode=n.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var p=function(){h.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",p),this._disposeCallbacks.push(function(){h.itemSet.body.emitter.off("checkRangedItems",p)}),this._create(),this.setData(t)}return _r(e,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var n=document.createElement("div");n.className="vis-inner",t.appendChild(n),this.dom.inner=n;var h=document.createElement("div");h.className="vis-group",h["vis-group"]=this,this.dom.foreground=h,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var n,h;if(t&&t.subgroupVisibility)for(var d in t.subgroupVisibility)this.subgroupVisibility[d]=t.subgroupVisibility[d];if(this.itemSet.options&&this.itemSet.options.groupTemplate){var p;h=Ee(p=this.itemSet.options.groupTemplate).call(p,this),n=h(t,this.dom.inner)}else n=t&&t.content;if(n instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(n)}else n instanceof Object&&n.isReactComponent||(n instanceof Object?h(t,this.dom.inner):n!=null?this.dom.inner.innerHTML=ee.xss(n):this.dom.inner.innerHTML=ee.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?ee.removeClassName(this.dom.inner,"vis-hidden"):ee.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?((!this.nestedGroups||this.nestedGroups!=t.nestedGroups)&&(this.nestedGroups=t.nestedGroups),(t.showNested!==void 0||this.showNested===void 0)&&(t.showNested==!1?this.showNested=!1:this.showNested=!0),ee.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(ee.removeClassName(this.dom.label,"collapsed"),ee.addClassName(this.dom.label,"expanded")):(ee.removeClassName(this.dom.label,"expanded"),ee.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,ee.removeClassName(this.dom.label,"collapsed"),ee.removeClassName(this.dom.label,"expanded"),ee.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(ee.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?ee.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):ee.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):ee.addClassName(this.dom.label,"vis-group-level-0");var y=t&&t.className||null;y!=this.className&&(this.className&&(ee.removeClassName(this.dom.label,this.className),ee.removeClassName(this.dom.foreground,this.className),ee.removeClassName(this.dom.background,this.className),ee.removeClassName(this.dom.axis,this.className)),ee.addClassName(this.dom.label,y),ee.addClassName(this.dom.foreground,y),ee.addClassName(this.dom.background,y),ee.addClassName(this.dom.axis,y),this.className=y),this.style&&(ee.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(ee.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var n={},h=0;Tt(ee).call(ee,this.items,function(b,w){if(b.dirty=!0,b.displayed){var $=!0;n[w]=b.redraw($),h=n[w].length}});var d=h>0;if(d)for(var p=function(w){Tt(ee).call(ee,n,function($){$[w]()})},y=0;y<h;y++)p(y);return!0}else return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,n=t.offsetTop,h=t.offsetLeft,d=t.offsetWidth;this.top=n,this.right=h,this.width=d}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,n=this.itemSet.options.onTimeout,h={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:n&&n.timeoutMs,userBailFunction:n&&n.callback,shouldBailStackItems:this.shouldBailStackItems},d=null;if(!this.itemSet.initialDrawDone){if(h.shouldBailStackItems)return!0;Math.abs(bo()-new Date(h.relativeBailingTime))>h.bailTimeMs&&(h.userBailFunction&&this.itemSet.userContinueNotBail==null?h.userBailFunction(function(p){t.itemSet.userContinueNotBail=p,d=!p}):t.itemSet.userContinueNotBail==!1?d=!0:d=!1)}return d}},{key:"_redrawItems",value:function(t,n,h,d){var p=this,y=t||this.stackDirty||this.isVisible&&!n;if(y){var b,w,$,A,R,Y,V={byEnd:Rt(b=this.orderedItems.byEnd).call(b,function(Fe){return!Fe.isCluster}),byStart:Rt(w=this.orderedItems.byStart).call(w,function(Fe){return!Fe.isCluster})},oe={byEnd:Pi(new l_(Rt($=xn(A=this.orderedItems.byEnd).call(A,function(Fe){return Fe.cluster})).call($,function(Fe){return!!Fe}))),byStart:Pi(new l_(Rt(R=xn(Y=this.orderedItems.byStart).call(Y,function(Fe){return Fe.cluster})).call(R,function(Fe){return!!Fe})))},G=function(){var Ye,ir,gt,Kt=p._updateItemsInRange(V,Rt(Ye=p.visibleItems).call(Ye,function(kt){return!kt.isCluster}),d),lt=p._updateClustersInRange(oe,Rt(ir=p.visibleItems).call(ir,function(kt){return kt.isCluster}),d);return Cn(gt=[]).call(gt,Pi(Kt),Pi(lt))},ae=function(Ye){var ir={},gt=function(kt){var $r,ht=Rt($r=p.visibleItems).call($r,function(Ct){return Ct.data.subgroup===kt});ir[kt]=Ye?Ii(ht).call(ht,function(Ct,ui){return Ye(Ct.data,ui.data)}):ht};for(var Kt in p.subgroups)gt(Kt);return ir};if(typeof this.itemSet.options.order=="function"){var ve=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var ye=ae(this.itemSet.options.order);p6(ye,h,this.subgroups),this.visibleItems=G(),this._updateSubGroupHeights(h)}else{var pe,Se,ze,tt;this.visibleItems=G(),this._updateSubGroupHeights(h);var _e=Ii(pe=Rt(Se=To(ze=this.visibleItems).call(ze)).call(Se,function(Fe){return Fe.isCluster||!Fe.isCluster&&!Fe.cluster})).call(pe,function(Fe,Ye){return ve.itemSet.options.order(Fe.data,Ye.data)});this.shouldBailStackItems=v6(_e,h,!0,Ee(tt=this._shouldBailItemsRedraw).call(tt,this))}}else if(this.visibleItems=G(),this._updateSubGroupHeights(h),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var it=ae();p6(it,h,this.subgroups)}else{var Ne;this.shouldBailStackItems=v6(this.visibleItems,h,!0,Ee(Ne=this._shouldBailItemsRedraw).call(Ne,this))}else l_e(this.visibleItems,h,this.subgroups,this.itemSet.options.stackSubgroups);for(var qe=0;qe<this.visibleItems.length;qe++)this.visibleItems[qe].repositionX(),this.subgroupVisibility[this.visibleItems[qe].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[qe].data.subgroup]||this.visibleItems[qe].hide());this.itemSet.options.cluster&&Tt(ee).call(ee,this.items,function(Fe){Fe.cluster&&Fe.displayed&&Fe.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,n){t=ee.updateProperty(this,"height",n)||t;var h=this.dom.inner.clientWidth,d=this.dom.inner.clientHeight;return t=ee.updateProperty(this.props.label,"width",h)||t,t=ee.updateProperty(this.props.label,"height",d)||t,t}},{key:"_applyGroupHeight",value:function(t){this.dom.background.style.height="".concat(t,"px"),this.dom.foreground.style.height="".concat(t,"px"),this.dom.label.style.height="".concat(t,"px")}},{key:"_updateItemsVerticalPosition",value:function(t){for(var n=0,h=this.visibleItems.length;n<h;n++){var d=this.visibleItems[n];d.repositionY(t),!this.isVisible&&this.groupId!=m6.BACKGROUND&&d.displayed&&d.hide()}}},{key:"redraw",value:function(t,n,h,d){var p=this,y,b,w,$,A,R=!1,Y=this.isVisible,V,oe=[function(){h=p._didMarkerHeightChange.call(p)||h},Ee(y=this._updateSubGroupHeights).call(y,this,n),Ee(b=this._calculateGroupSizeAndPosition).call(b,this),function(){var ae;p.isVisible=Ee(ae=p._isGroupVisible).call(ae,p)(t,n)},function(){var ae;Ee(ae=p._redrawItems).call(ae,p)(h,Y,n,t)},Ee(w=this._updateSubgroupsSizes).call(w,this),function(){var ae;V=Ee(ae=p._calculateHeight).call(ae,p)(n)},Ee($=this._calculateGroupSizeAndPosition).call($,this),function(){var ae;R=Ee(ae=p._didResize).call(ae,p)(R,V)},function(){var ae;Ee(ae=p._applyGroupHeight).call(ae,p)(V)},function(){var ae;Ee(ae=p._updateItemsVerticalPosition).call(ae,p)(n)},Ee(A=function(){return!p.isVisible&&p.height&&(R=!1),R}).call(A,this)];if(d)return oe;var G;return Tt(oe).call(oe,function(ae){G=ae()}),G}},{key:"_updateSubGroupHeights",value:function(t){var n=this;if(Ki(this.subgroups).length>0){var h=this;this._resetSubgroups(),Tt(ee).call(ee,this.visibleItems,function(d){d.data.subgroup!==void 0&&(h.subgroups[d.data.subgroup].height=Math.max(h.subgroups[d.data.subgroup].height,d.height+t.item.vertical),h.subgroups[d.data.subgroup].visible=typeof n.subgroupVisibility[d.data.subgroup]=="undefined"?!0:Boolean(n.subgroupVisibility[d.data.subgroup]))})}}},{key:"_isGroupVisible",value:function(t,n){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+n.axis&&this.top+this.height+n.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var n,h;if(this.heightMode==="fixed"?h=ee.toArray(this.items):h=this.visibleItems,h.length>0){var d=h[0].top,p=h[0].top+h[0].height;if(Tt(ee).call(ee,h,function(b){d=Math.min(d,b.top),p=Math.max(p,b.top+b.height)}),d>t.axis){var y=d-t.axis;p-=y,Tt(ee).call(ee,h,function(b){b.top-=y})}n=Math.ceil(p+t.item.vertical/2),this.heightMode!=="fitItems"&&(n=Math.max(n,this.props.label.height))}else n=this.props.label.height;return n}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var n=this.dom.foreground;n.parentNode&&n.parentNode.removeChild(n);var h=this.dom.background;h.parentNode&&h.parentNode.removeChild(h);var d=this.dom.axis;d.parentNode&&d.parentNode.removeChild(d)}},{key:"add",value:function(t){var n;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,t.data.subgroup!==void 0&&(this._addToSubgroup(t),this.orderSubgroups()),!Rg(n=this.visibleItems).call(n,t)){var h=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,h)}}},{key:"_addToSubgroup",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;n!=null&&this.subgroups[n]===void 0&&(this.subgroups[n]={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[n]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[n].start)&&(this.subgroups[n].start=t.data.start);var h=t.data.end||t.data.start;new Date(h)>new Date(this.subgroups[n].end)&&(this.subgroups[n].end=h),this.subgroups[n].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var n=function(){var p,y=t.subgroups[h].items[0].data.end||t.subgroups[h].items[0].data.start,b=t.subgroups[h].items[0].data.start,w=y-1;Tt(p=t.subgroups[h].items).call(p,function($){new Date($.data.start)<new Date(b)&&(b=$.data.start);var A=$.data.end||$.data.start;new Date(A)>new Date(w)&&(w=A)}),t.subgroups[h].start=b,t.subgroups[h].end=new Date(w-1)};for(var h in t.subgroups)n()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var t=[];if(typeof this.subgroupOrderer=="string"){for(var n in this.subgroups)t.push({subgroup:n,sortField:this.subgroups[n].items[0].data[this.subgroupOrderer]});Ii(t).call(t,function(p,y){return p.sortField-y.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var h in this.subgroups)t.push(this.subgroups[h].items[0].data);Ii(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var d=0;d<t.length;d++)this.subgroups[t[d].subgroup].index=d}}},{key:"_resetSubgroups",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:"remove",value:function(t){var n,h;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var d=oi(n=this.visibleItems).call(n,t);d!=-1&&Ks(h=this.visibleItems).call(h,d,1),t.data.subgroup!==void 0&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.data.subgroup;if(n!=null){var h=this.subgroups[n];if(h){var d,p=oi(d=h.items).call(d,t);if(p>=0){var y;Ks(y=h.items).call(y,p,1),h.items.length?this._updateSubgroupsSizes():delete this.subgroups[n]}}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=ee.toArray(this.items),n=[],h=[],d=0;d<t.length;d++)t[d].data.end!==void 0&&h.push(t[d]),n.push(t[d]);this.orderedItems={byStart:n,byEnd:h},a_e(this.orderedItems.byStart),o_e(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,n,h){var d=[],p={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=m6.BACKGROUND){for(var y=0;y<n.length;y++){var b=n[y];b.displayed&&b.hide()}return d}var w=(h.end-h.start)/4,$=h.start-w,A=h.end+w,R=function(Fe){return Fe<$?-1:Fe<=A?0:1},Y=function(Fe){var Ye=Fe.start,ir=Fe.end;return ir<$?-1:Ye<=A?0:1};if(n.length>0)for(var V=0;V<n.length;V++)this._checkIfVisibleWithReference(n[V],d,p,h);var oe=ee.binarySearchCustom(t.byStart,R,"data","start");if(this._traceVisible(oe,t.byStart,d,p,function(qe){return qe.data.start<$||qe.data.start>A}),this.checkRangedItems==!0){this.checkRangedItems=!1;for(var G=0;G<t.byEnd.length;G++)this._checkIfVisibleWithReference(t.byEnd[G],d,p,h)}else{var ae=ee.binarySearchCustom(t.byEnd,Y,"data");this._traceVisible(ae,t.byEnd,d,p,function(qe){return qe.data.end<$||qe.data.start>A})}for(var ve={},ye=0,pe=0;pe<d.length;pe++){var Se=d[pe];if(!Se.displayed){var ze=!0;ve[pe]=Se.redraw(ze),ye=ve[pe].length}}var tt=ye>0;if(tt)for(var _e=function(Fe){Tt(ee).call(ee,ve,function(Ye){Ye[Fe]()})},it=0;it<ye;it++)_e(it);for(var Ne=0;Ne<d.length;Ne++)d[Ne].repositionX();return d}},{key:"_traceVisible",value:function(t,n,h,d,p){if(t!=-1){for(var y=t;y>=0;y--){var b=n[y];if(p(b))break;!(b.isCluster&&!b.hasItems())&&!b.cluster&&d[b.id]===void 0&&(d[b.id]=!0,h.push(b))}for(var w=t+1;w<n.length;w++){var $=n[w];if(p($))break;!($.isCluster&&!$.hasItems())&&!$.cluster&&d[$.id]===void 0&&(d[$.id]=!0,h.push($))}}}},{key:"_checkIfVisible",value:function(t,n,h){t.isVisible(h)?(t.displayed||t.show(),t.repositionX(),n.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,n,h,d){t.isVisible(d)?h[t.id]===void 0&&(h[t.id]=!0,n.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,n,h){var d=[],p={};if(n.length>0)for(var y=0;y<n.length;y++)this._checkIfVisibleWithReference(n[y],d,p,h);for(var b=0;b<t.byStart.length;b++)this._checkIfVisibleWithReference(t.byStart[b],d,p,h);for(var w=0;w<t.byEnd.length;w++)this._checkIfVisibleWithReference(t.byEnd[w],d,p,h);for(var $={},A=0,R=0;R<d.length;R++){var Y=d[R];if(!Y.displayed){var V=!0;$[R]=Y.redraw(V),A=$[R].length}}var oe=A>0;if(oe)for(var G=0;G<A;G++)Tt(ee).call(ee,$,function(ve){ve[G]()});for(var ae=0;ae<d.length;ae++)d[ae].repositionX();return d}},{key:"changeSubgroup",value:function(t,n,h){this._removeFromSubgroup(t,n),this._addToSubgroup(t,h),this.orderSubgroups()}},{key:"dispose",value:function(){this.hide();for(var t;t=this._disposeCallbacks.pop();)t()}}]),e}();function v_e(e){var a=p_e();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function p_e(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var m_e=function(e){Lh(t,e);var a=v_e(t);function t(n,h,d){var p;return br(this,t),p=a.call(this,n,h,d),p.width=0,p.height=0,p.top=0,p.left=0,p}return _r(t,[{key:"redraw",value:function(h,d,p){var y=!1;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,h),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var b=0,w=this.visibleItems.length;b<w;b++){var $=this.visibleItems[b];$.repositionY(d)}return y}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),t}(f_e),g_e=`
.vis-item {
position: absolute;
color: #1A1A1A;
border-color: #97B0F8;
border-width: 1px;
background-color: #D5DDF6;
display: inline-block;
z-index: 1;
/*overflow: hidden;*/
}
.vis-item.vis-selected {
border-color: #FFC200;
background-color: #FFF785;
/* z-index must be higher than the z-index of custom time bar and current time bar */
z-index: 2;
}
.vis-editable.vis-selected {
cursor: move;
}
.vis-item.vis-point.vis-selected {
background-color: #FFF785;
}
.vis-item.vis-box {
text-align: center;
border-style: solid;
border-radius: 2px;
}
.vis-item.vis-point {
background: none;
}
.vis-item.vis-dot {
position: absolute;
padding: 0;
border-width: 4px;
border-style: solid;
border-radius: 4px;
}
.vis-item.vis-range {
border-style: solid;
border-radius: 2px;
box-sizing: border-box;
}
.vis-item.vis-background {
border: none;
background-color: rgba(213, 221, 246, 0.4);
box-sizing: border-box;
padding: 0;
margin: 0;
}
.vis-item .vis-item-overflow {
position: relative;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
overflow: hidden;
}
.vis-item-visible-frame {
white-space: nowrap;
}
.vis-item.vis-range .vis-item-content {
position: relative;
display: inline-block;
}
.vis-item.vis-background .vis-item-content {
position: absolute;
display: inline-block;
}
.vis-item.vis-line {
padding: 0;
position: absolute;
width: 0;
border-left-width: 1px;
border-left-style: solid;
}
.vis-item .vis-item-content {
white-space: nowrap;
box-sizing: border-box;
padding: 5px;
}
.vis-item .vis-onUpdateTime-tooltip {
position: absolute;
background: #4f81bd;
color: white;
width: 200px;
text-align: center;
white-space: nowrap;
padding: 5px;
border-radius: 1px;
transition: 0.4s;
-o-transition: 0.4s;
-moz-transition: 0.4s;
-webkit-transition: 0.4s;
}
.vis-item .vis-delete, .vis-item .vis-delete-rtl {
position: absolute;
top: 0px;
width: 24px;
height: 24px;
box-sizing: border-box;
padding: 0px 5px;
cursor: pointer;
-webkit-transition: background 0.2s linear;
-moz-transition: background 0.2s linear;
-ms-transition: background 0.2s linear;
-o-transition: background 0.2s linear;
transition: background 0.2s linear;
}
.vis-item .vis-delete {
right: -24px;
}
.vis-item .vis-delete-rtl {
left: -24px;
}
.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {
content: "\\00D7"; /* MULTIPLICATION SIGN */
color: red;
font-family: arial, sans-serif;
font-size: 22px;
font-weight: bold;
-webkit-transition: color 0.2s linear;
-moz-transition: color 0.2s linear;
-ms-transition: color 0.2s linear;
-o-transition: color 0.2s linear;
transition: color 0.2s linear;
}
.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {
background: red;
}
.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {
color: white;
}
.vis-item .vis-drag-center {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0px;
cursor: move;
}
.vis-item.vis-range .vis-drag-left {
position: absolute;
width: 24px;
max-width: 20%;
min-width: 2px;
height: 100%;
top: 0;
left: -4px;
cursor: w-resize;
}
.vis-item.vis-range .vis-drag-right {
position: absolute;
width: 24px;
max-width: 20%;
min-width: 2px;
height: 100%;
top: 0;
right: -4px;
cursor: e-resize;
}
.vis-range.vis-item.vis-readonly .vis-drag-left,
.vis-range.vis-item.vis-readonly .vis-drag-right {
cursor: auto;
}
.vis-item.vis-cluster {
vertical-align: center;
text-align: center;
border-style: solid;
border-radius: 2px;
}
.vis-item.vis-cluster-line {
padding: 0;
position: absolute;
width: 0;
border-left-width: 1px;
border-left-style: solid;
}
.vis-item.vis-cluster-dot {
position: absolute;
padding: 0;
border-width: 4px;
border-style: solid;
border-radius: 4px;
}`;ca(g_e);function y_e(e,a){var t=typeof Qg!="undefined"&&A_(e)||e["@@iterator"];if(!t){if(Ot(e)||(t=b_e(e))||a){t&&(e=t);var n=0,h=function(){};return{s:h,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function b_e(e,a){var t;if(e){if(typeof e=="string")return g6(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g6(e,a)}}function g6(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}var TL=function(){function e(a,t,n){var h,d=this;br(this,e),this.id=null,this.parent=null,this.data=a,this.dom=null,this.conversion=t||{},this.defaultOptions={locales:Bg,locale:"en"},this.options=ee.extend({},this.defaultOptions,n),this.options.locales=ee.extend({},Bg,this.options.locales);var p=this.defaultOptions.locales[this.defaultOptions.locale];Tt(h=Ki(this.options.locales)).call(h,function(y){d.options.locales[y]=ee.extend({},p,d.options.locales[y])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=n&&n.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(a),this.editable=null,this._updateEditStatus()}return _r(e,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(t){var n=t.group!=null&&this.data.group!=t.group;n&&this.parent!=null&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0);var h=t.subgroup!=null&&this.data.subgroup!=t.subgroup;h&&this.parent!=null&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(t){t&&(this.selectable=typeof t.selectable=="undefined"?!0:Boolean(t.selectable))}},{key:"setParent",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:"isVisible",value:function(t){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var t,n,h=this,d=document.createElement("div");d.className="vis-drag-center",d.dragCenterItem=this,this.hammerDragCenter=new eu(d),this.hammerDragCenter.on("tap",function(p){h.parent.itemSet.body.emitter.emit("click",{event:p,item:h.id})}),this.hammerDragCenter.on("doubletap",function(p){p.stopPropagation(),h.parent.itemSet._onUpdateItem(h),h.parent.itemSet.body.emitter.emit("doubleClick",{event:p,item:h.id})}),this.hammerDragCenter.on("panstart",function(p){p.stopPropagation(),h.parent.itemSet._onDragStart(p)}),this.hammerDragCenter.on("panmove",Ee(t=h.parent.itemSet._onDrag).call(t,h.parent.itemSet)),this.hammerDragCenter.on("panend",Ee(n=h.parent.itemSet._onDragEnd).call(n,h.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(d,this.dom.dragLeft):this.dom.box.appendChild(d):this.dom.point&&this.dom.point.appendChild(d),this.dom.dragCenter=d}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(t){var n=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&n&&!this.dom.deleteButton){var h=this,d=document.createElement("div");this.options.rtl?d.className="vis-delete-rtl":d.className="vis-delete";var p=this.options.locales[this.options.locale];p||(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),p=this.options.locales.en),d.title=p.deleteSelected,this.hammerDeleteButton=new eu(d).on("tap",function(y){y.stopPropagation(),h.parent.removeFromDataSet(h)}),t.appendChild(d),this.dom.deleteButton=d}else(!this.selected||!n)&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(t){if(this.options.tooltipOnItemUpdateTime){var n=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&n&&!this.dom.onItemUpdateTimeTooltip){var h=document.createElement("div");h.className="vis-onUpdateTime-tooltip",t.appendChild(h),this.dom.onItemUpdateTimeTooltip=h}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var d=50,p=this.parent.itemSet.body.domProps.scrollTop,y;this.options.orientation.item=="top"?y=this.top:y=this.parent.height-this.top-this.height;var b=y+this.parent.top-d<-p;b?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px"));var w,$;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){var A;$=Ee(A=this.options.tooltipOnItemUpdateTime.template).call(A,this),w=$(this.data)}else w="start: ".concat(Mi(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(w+="<br> end: ".concat(Mi(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=ee.xss(w)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var n,h,d,p,y,b=this._getItemData(),w=this.dom.box||this.dom.point,$=w.getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate){var A;y=Ee(A=this.options.visibleFrameTemplate).call(A,this),p=ee.xss(y(b,$))}else p="";if($){if(p instanceof Object&&!(p instanceof Element))y(b,$);else if(h=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(p),h){if(p instanceof Element)$.innerHTML="",$.appendChild(p);else if(p!=null)$.innerHTML=ee.xss(p);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=p}}if(this.options.template){var R;d=Ee(R=this.options.template).call(R,this),n=d(b,t,this.data)}else n=this.data.content;if(n instanceof Object&&!(n instanceof Element))d(b,t);else if(h=this._contentToString(this.content)!==this._contentToString(n),h){if(n instanceof Element)t.innerHTML="",t.appendChild(n);else if(n!=null)t.innerHTML=ee.xss(n);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.content=n}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var n=[];if(Ot(this.options.dataAttributes))n=this.options.dataAttributes;else if(this.options.dataAttributes=="all")n=Ki(this.data);else return;var h=y_e(n),d;try{for(h.s();!(d=h.n()).done;){var p=d.value,y=this.data[p];y!=null?t.setAttribute("data-".concat(p),y):t.removeAttribute("data-".concat(p))}}catch(b){h.e(b)}finally{h.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(ee.removeCssText(t,this.style),this.style=null),this.data.style&&(ee.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return typeof t=="string"?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:bt(this.options.editable)==="object"&&(this.editable={},ee.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),(!this.options||!this.options.editable||this.options.editable.overrideItems!==!0)&&this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:bt(this.data.editable)==="object"&&(this.editable={},ee.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){if(this.options.tooltip&&this.options.tooltip.template){var t,n=Ee(t=this.options.tooltip.template).call(t,this);return n(this._getItemData(),this.data)}return this.data.title}}]),e}();TL.prototype.stack=!0;function __e(e){var a=w_e();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function w_e(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var vE=function(e){Lh(t,e);var a=__e(t);function t(n,h,d){var p;if(br(this,t),p=a.call(this,n,h,d),p.props={content:{width:0}},p.overflow=!1,n){if(n.start==null)throw new Error('Property "start" missing in item '.concat(n.id));if(n.end==null)throw new Error('Property "end" missing in item '.concat(n.id))}return p}return _r(t,[{key:"isVisible",value:function(h){return this.cluster?!1:this.data.start<h.end&&this.data.end>h.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var h=this.parent.dom.foreground;if(!h)throw new Error("Cannot redraw item: parent has no foreground container element");h.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var h=this.editable.updateTime||this.editable.updateGroup,d=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(h?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+d,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(h){this.props.content.width=h.content.width,this.height=h.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(h){var d,p,y,b=this,w,$,A=[Ee(d=this._createDomElement).call(d,this),Ee(p=this._appendDomElement).call(p,this),Ee(y=this._updateDirtyDomComponents).call(y,this),function(){if(b.dirty){var Y;$=Ee(Y=b._getDomComponentsSizes).call(Y,b)()}},function(){if(b.dirty){var Y;Ee(Y=b._updateDomComponentsSizes).call(Y,b)($)}},Ee(w=this._repaintDomAdditionals).call(w,this)];if(h)return A;var R;return Tt(A).call(A,function(Y){R=Y()}),R}},{key:"show",value:function(h){if(!this.displayed)return this.redraw(h)}},{key:"hide",value:function(){if(this.displayed){var h=this.dom.box;h.parentNode&&h.parentNode.removeChild(h),this.displayed=!1}}},{key:"repositionX",value:function(h){var d=this.parent.width,p=this.conversion.toScreen(this.data.start),y=this.conversion.toScreen(this.data.end),b=this.data.align===void 0?this.options.align:this.data.align,w,$;this.data.limitSize!==!1&&(h===void 0||h===!0)&&(p<-d&&(p=-d),y>2*d&&(y=2*d));var A=Math.max(Math.round((y-p)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=p:this.left=p,this.width=A+this.props.content.width,$=this.props.content.width):(this.options.rtl?this.right=p:this.left=p,this.width=A,$=Math.min(y-p,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(this.right*-1,"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),b){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var R=Math.max(A-$,0)*-1;this.dom.content.style.transform="translateX(".concat(R,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(A-$,0),"px)");break;case"center":if(this.options.rtl){var Y=Math.max((A-$)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(Y,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((A-$)/2,0),"px)");break;default:if(this.overflow?y>0?w=Math.max(-p,0):w=-$:p<0?w=-p:w=0,this.options.rtl){var V=w*-1;this.dom.content.style.transform="translateX(".concat(V,"px)")}else this.dom.content.style.transform="translateX(".concat(w,"px)")}}},{key:"repositionY",value:function(){var h=this.options.orientation.item,d=this.dom.box;h=="top"?d.style.top="".concat(this.top,"px"):d.style.top="".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var h=document.createElement("div");h.className="vis-drag-left",h.dragLeftItem=this,this.dom.box.appendChild(h),this.dom.dragLeft=h}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragLeft&&(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var h=document.createElement("div");h.className="vis-drag-right",h.dragRightItem=this,this.dom.box.appendChild(h),this.dom.dragRight=h}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)}}]),t}(TL);vE.prototype.baseClassName="vis-item vis-range";function k_e(e){var a=S_e();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function S_e(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var Z_=function(e){Lh(t,e);var a=k_e(t);function t(n,h,d){var p;if(br(this,t),p=a.call(this,n,h,d),p.props={content:{width:0}},p.overflow=!1,n){if(n.start==null)throw new Error('Property "start" missing in item '.concat(n.id));if(n.end==null)throw new Error('Property "end" missing in item '.concat(n.id))}return p}return _r(t,[{key:"isVisible",value:function(h){return this.data.start<h.end&&this.data.end>h.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var h=this.parent.dom.background;if(!h)throw new Error("Cannot redraw item: parent has no background container element");h.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var h=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+h}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(h){this.props.content.width=h.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(h){var d,p,y,b=this,w,$,A=[Ee(d=this._createDomElement).call(d,this),Ee(p=this._appendDomElement).call(p,this),Ee(y=this._updateDirtyDomComponents).call(y,this),function(){if(b.dirty){var Y;$=Ee(Y=b._getDomComponentsSizes).call(Y,b)()}},function(){if(b.dirty){var Y;Ee(Y=b._updateDomComponentsSizes).call(Y,b)($)}},Ee(w=this._repaintDomAdditionals).call(w,this)];if(h)return A;var R;return Tt(A).call(A,function(Y){R=Y()}),R}},{key:"repositionY",value:function(h){var d,p=this.options.orientation.item;if(this.data.subgroup!==void 0){var y=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[y].height,"px"),p=="top"?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[y].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[y].top-this.parent.subgroups[y].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof m_e?(d=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=p=="bottom"?"0":"",this.dom.box.style.top=p=="top"?"0":""):(d=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(d,"px")}}]),t}(TL);Z_.prototype.baseClassName="vis-item vis-background";Z_.prototype.stack=!1;Z_.prototype.show=vE.prototype.show;Z_.prototype.hide=vE.prototype.hide;Z_.prototype.repositionX=vE.prototype.repositionX;var x_e=`div.vis-tooltip {
position: absolute;
visibility: hidden;
padding: 5px;
white-space: nowrap;
font-family: verdana;
font-size:14px;
color:#000000;
background-color: #f5f4ed;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border: 1px solid #808074;
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
pointer-events: none;
z-index: 5;
}
`;ca(x_e);var T_e=He,C_e=Nh.every,E_e=ey,D_e=E_e("every");T_e({target:"Array",proto:!0,forced:!D_e},{every:function(a){return C_e(this,a,arguments.length>1?arguments[1]:void 0)}});var O_e=Yr;O_e("Array").every;var $_e=`
.vis-itemset {
position: relative;
padding: 0;
margin: 0;
box-sizing: border-box;
}
.vis-itemset .vis-background,
.vis-itemset .vis-foreground {
position: absolute;
width: 100%;
height: 100%;
overflow: visible;
}
.vis-axis {
position: absolute;
width: 100%;
height: 0;
left: 0;
z-index: 1;
}
.vis-foreground .vis-group {
position: relative;
box-sizing: border-box;
border-bottom: 1px solid #bfbfbf;
}
.vis-foreground .vis-group:last-child {
border-bottom: none;
}
.vis-nesting-group {
cursor: pointer;
}
.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {
background: #f5f5f5;
}
.vis-label.vis-nested-group.vis-group-level-0 {
background-color: #ffffff;
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
padding-left: 0;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
padding-right: 0;
}
.vis-label.vis-nested-group.vis-group-level-1 {
background-color: rgba(0, 0, 0, 0.05);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
padding-left: 15px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
padding-right: 15px;
}
.vis-label.vis-nested-group.vis-group-level-2 {
background-color: rgba(0, 0, 0, 0.1);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
padding-left: 30px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
padding-right: 30px;
}
.vis-label.vis-nested-group.vis-group-level-3 {
background-color: rgba(0, 0, 0, 0.15);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
padding-left: 45px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
padding-right: 45px;
}
.vis-label.vis-nested-group.vis-group-level-4 {
background-color: rgba(0, 0, 0, 0.2);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
padding-left: 60px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
padding-right: 60px;
}
.vis-label.vis-nested-group.vis-group-level-5 {
background-color: rgba(0, 0, 0, 0.25);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
padding-left: 75px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
padding-right: 75px;
}
.vis-label.vis-nested-group.vis-group-level-6 {
background-color: rgba(0, 0, 0, 0.3);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
padding-left: 90px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
padding-right: 90px;
}
.vis-label.vis-nested-group.vis-group-level-7 {
background-color: rgba(0, 0, 0, 0.35);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
padding-left: 105px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
padding-right: 105px;
}
.vis-label.vis-nested-group.vis-group-level-8 {
background-color: rgba(0, 0, 0, 0.4);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
padding-left: 120px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
padding-right: 120px;
}
.vis-label.vis-nested-group.vis-group-level-9 {
background-color: rgba(0, 0, 0, 0.45);
}
.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
padding-left: 135px;
}
.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
padding-right: 135px;
}
/* default takes over beginning with level-10 (thats why we add .vis-nested-group
to the selectors above, to have higher specifity than these rules for the defaults) */
.vis-label.vis-nested-group {
background-color: rgba(0, 0, 0, 0.5);
}
.vis-ltr .vis-label.vis-nested-group .vis-inner {
padding-left: 150px;
}
.vis-rtl .vis-label.vis-nested-group .vis-inner {
padding-right: 150px;
}
.vis-group-level-unknown-but-gte1 {
border: 1px solid red;
}
/* expanded/collapsed indicators */
.vis-label.vis-nesting-group:before,
.vis-label.vis-nesting-group:before {
display: inline-block;
width: 15px;
}
.vis-label.vis-nesting-group.expanded:before {
content: "\\25BC";
}
.vis-label.vis-nesting-group.collapsed:before {
content: "\\25B6";
}
.vis-rtl .vis-label.vis-nesting-group.collapsed:before {
content: "\\25C0";
}
/* compensate missing expanded/collapsed indicator, but only at levels > 0 */
.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
padding-left: 15px;
}
.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
padding-right: 15px;
}
.vis-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
}`;ca($_e);var P_e=`
.vis-labelset {
position: relative;
overflow: hidden;
box-sizing: border-box;
}
.vis-labelset .vis-label {
position: relative;
left: 0;
top: 0;
width: 100%;
color: #4d4d4d;
box-sizing: border-box;
}
.vis-labelset .vis-label {
border-bottom: 1px solid #bfbfbf;
}
.vis-labelset .vis-label.draggable {
cursor: pointer;
}
.vis-group-is-dragging {
background: rgba(0, 0, 0, .1);
}
.vis-labelset .vis-label:last-child {
border-bottom: none;
}
.vis-labelset .vis-label .vis-inner {
display: inline-block;
padding: 5px;
}
.vis-labelset .vis-label .vis-inner.vis-hidden {
padding: 0;
}
`;ca(P_e);var Jb=!1,y6,hN="background: #FFeeee; color: #dd0000",I_e=function(){function e(){br(this,e)}return _r(e,null,[{key:"validate",value:function(t,n,h){Jb=!1,y6=n;var d=n;return h!==void 0&&(d=n[h]),e.parse(t,d,[]),Jb}},{key:"parse",value:function(t,n,h){for(var d in t)t.hasOwnProperty(d)&&e.check(d,t,n,h)}},{key:"check",value:function(t,n,h,d){if(h[t]===void 0&&h.__any__===void 0){e.getSuggestion(t,h,d);return}var p=t,y=!0;h[t]===void 0&&h.__any__!==void 0&&(p="__any__",y=e.getType(n[t])==="object");var b=h[p];y&&b.__type__!==void 0&&(b=b.__type__),e.checkFields(t,n,h,p,b,d)}},{key:"checkFields",value:function(t,n,h,d,p,y){var b=function(R){console.log("%c"+R+e.printLocation(y,t),hN)},w=e.getType(n[t]),$=p[w];$!==void 0?e.getType($)==="array"&&oi($).call($,n[t])===-1?(b('Invalid option detected in "'+t+'". Allowed values are:'+e.print($)+' not "'+n[t]+'". '),Jb=!0):w==="object"&&d!=="__any__"&&(y=ee.copyAndExtendArray(y,t),e.parse(n[t],h[d],y)):p.any===void 0&&(b('Invalid type received for "'+t+'". Expected: '+e.print(Ki(p))+". Received ["+w+'] "'+n[t]+'"'),Jb=!0)}},{key:"getType",value:function(t){var n=bt(t);return n==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Ot(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":n==="number"?"number":n==="boolean"?"boolean":n==="string"?"string":n===void 0?"undefined":n}},{key:"getSuggestion",value:function(t,n,h){var d=e.findInOptions(t,n,h,!1),p=e.findInOptions(t,y6,[],!0),y=8,b=4,w;d.indexMatch!==void 0?w=" in "+e.printLocation(d.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+d.indexMatch+`"?
`:p.distance<=b&&d.distance>p.distance?w=" in "+e.printLocation(d.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(p.path,p.closestMatch,""):d.distance<=y?w='. Did you mean "'+d.closestMatch+'"?'+e.printLocation(d.path,t):w=". Did you mean one of these: "+e.print(Ki(n))+e.printLocation(h,t),console.log('%cUnknown option detected: "'+t+'"'+w,hN),Jb=!0}},{key:"findInOptions",value:function(t,n,h){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=1e9,y="",b=[],w=t.toLowerCase(),$=void 0;for(var A in n){var R=void 0;if(n[A].__type__!==void 0&&d===!0){var Y=e.findInOptions(t,n[A],ee.copyAndExtendArray(h,A));p>Y.distance&&(y=Y.closestMatch,b=Y.path,p=Y.distance,$=Y.indexMatch)}else{var V;oi(V=A.toLowerCase()).call(V,w)!==-1&&($=A),R=e.levenshteinDistance(t,A),p>R&&(y=A,b=ee.copyArray(h),p=R)}}return{closestMatch:y,path:b,distance:p,indexMatch:$}}},{key:"printLocation",value:function(t,n){for(var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
`,d=`
`+h+`options = {
`,p=0;p<t.length;p++){for(var y=0;y<p+1;y++)d+=" ";d+=t[p]+`: {
`}for(var b=0;b<t.length+1;b++)d+=" ";d+=n+`
`;for(var w=0;w<t.length+1;w++){for(var $=0;$<t.length-w;$++)d+=" ";d+=`}
`}return d+`
`}},{key:"print",value:function(t){return Ha(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,n){if(t.length===0)return n.length;if(n.length===0)return t.length;var h=[],d;for(d=0;d<=n.length;d++)h[d]=[d];var p;for(p=0;p<=t.length;p++)h[0][p]=p;for(d=1;d<=n.length;d++)for(p=1;p<=t.length;p++)n.charAt(d-1)==t.charAt(p-1)?h[d][p]=h[d-1][p-1]:h[d][p]=Math.min(h[d-1][p-1]+1,Math.min(h[d][p-1]+1,h[d-1][p]+1));return h[n.length][t.length]}}]),e}(),M_e={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"},A_e=function(){function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;br(this,e),this.pixelRatio=a,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return _r(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return M_e[t]}},{key:"setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var h,d=this._isColorString(t);if(d!==void 0&&(t=d),ee.isString(t)===!0){if(ee.isValidRGB(t)===!0){var p=t.substr(4).substr(0,t.length-5).split(",");h={r:p[0],g:p[1],b:p[2],a:1}}else if(ee.isValidRGBA(t)===!0){var y=t.substr(5).substr(0,t.length-6).split(",");h={r:y[0],g:y[1],b:y[2],a:y[3]}}else if(ee.isValidHex(t)===!0){var b=ee.hexToRGB(t);h={r:b.r,g:b.g,b:b.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var w=t.a!==void 0?t.a:"1.0";h={r:t.r,g:t.g,b:t.b,a:w}}if(h===void 0)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: "+Ha(t));this._setColor(h,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=ee.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Zo(function(){t.closeCallback!==void 0&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=ee.extend({},t)),this.color=t;var h=ee.RGBToHSV(t.r,t.g,t.b),d=2*Math.PI,p=this.r*h.s,y=this.centerCoordinates.x+p*Math.sin(d*h.h),b=this.centerCoordinates.y+p*Math.cos(d*h.h);this.colorPickerSelector.style.left=y-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=b-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var n=ee.RGBToHSV(this.color.r,this.color.g,this.color.b);n.v=t/100;var h=ee.HSVToRGB(n.h,n.s,n.v);h.a=this.color.a,this.color=h,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=ee.RGBToHSV(t.r,t.g,t.b),h=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(h.webkitBackingStorePixelRatio||h.mozBackingStorePixelRatio||h.msBackingStorePixelRatio||h.oBackingStorePixelRatio||h.backingStorePixelRatio||1)),h.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var d=this.colorPickerCanvas.clientWidth,p=this.colorPickerCanvas.clientHeight;h.clearRect(0,0,d,p),h.putImageData(this.hueCircle,0,0),h.fillStyle="rgba(0,0,0,"+(1-n.v)+")",h.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),FH(h).call(h),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,n,h,d;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var y=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var p=document.createElement("DIV");p.style.color="red",p.style.fontWeight="bold",p.style.padding="10px",p.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(p)}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(w){}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(w){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var b=this;this.opacityRange.onchange=function(){b._setOpacity(this.value)},this.opacityRange.oninput=function(){b._setOpacity(this.value)},this.brightnessRange.onchange=function(){b._setBrightness(this.value)},this.brightnessRange.oninput=function(){b._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=Ee(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=Ee(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=Ee(h=this._save).call(h,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=Ee(d=this._loadLast).call(d,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new eu(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),j3(this.hammer,function(n){t._moveSelector(n)}),this.hammer.on("tap",function(n){t._moveSelector(n)}),this.hammer.on("panstart",function(n){t._moveSelector(n)}),this.hammer.on("panmove",function(n){t._moveSelector(n)}),this.hammer.on("panend",function(n){t._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,h=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,n,h);var d,p,y,b;this.centerCoordinates={x:n*.5,y:h*.5},this.r=.49*n;var w=2*Math.PI/360,$=1/360,A=1/this.r,R;for(y=0;y<360;y++)for(b=0;b<this.r;b++)d=this.centerCoordinates.x+b*Math.sin(w*y),p=this.centerCoordinates.y+b*Math.cos(w*y),R=ee.HSVToRGB(y*$,b*A,1),t.fillStyle="rgb("+R.r+","+R.g+","+R.b+")",t.fillRect(d-.5,p-.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,n,h)}this.generated=!0}},{key:"_moveSelector",value:function(t){var n=this.colorPickerDiv.getBoundingClientRect(),h=t.center.x-n.left,d=t.center.y-n.top,p=.5*this.colorPickerDiv.clientHeight,y=.5*this.colorPickerDiv.clientWidth,b=h-y,w=d-p,$=Math.atan2(b,w),A=.98*Math.min(Math.sqrt(b*b+w*w),y),R=Math.cos($)*A+p,Y=Math.sin($)*A+y;this.colorPickerSelector.style.top=R-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=Y-.5*this.colorPickerSelector.clientWidth+"px";var V=$/(2*Math.PI);V=V<0?V+1:V;var oe=A/this.r,G=ee.RGBToHSV(this.color.r,this.color.g,this.color.b);G.h=V,G.s=oe;var ae=ee.HSVToRGB(G.h,G.s,G.v);ae.a=this.color.a,this.color=ae,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+")"}}]),e}(),R_e=`div.vis-configuration {
position:relative;
display:block;
float:left;
font-size:12px;
}
div.vis-configuration-wrapper {
display:block;
width:700px;
}
div.vis-configuration-wrapper::after {
clear: both;
content: "";
display: block;
}
div.vis-configuration.vis-config-option-container{
display:block;
width:495px;
background-color: #ffffff;
border:2px solid #f7f8fa;
border-radius:4px;
margin-top:20px;
left:10px;
padding-left:5px;
}
div.vis-configuration.vis-config-button{
display:block;
width:495px;
height:25px;
vertical-align: middle;
line-height:25px;
background-color: #f7f8fa;
border:2px solid #ceced0;
border-radius:4px;
margin-top:20px;
left:10px;
padding-left:5px;
cursor: pointer;
margin-bottom:30px;
}
div.vis-configuration.vis-config-button.hover{
background-color: #4588e6;
border:2px solid #214373;
color:#ffffff;
}
div.vis-configuration.vis-config-item{
display:block;
float:left;
width:495px;
height:25px;
vertical-align: middle;
line-height:25px;
}
div.vis-configuration.vis-config-item.vis-config-s2{
left:10px;
background-color: #f7f8fa;
padding-left:5px;
border-radius:3px;
}
div.vis-configuration.vis-config-item.vis-config-s3{
left:20px;
background-color: #e4e9f0;
padding-left:5px;
border-radius:3px;
}
div.vis-configuration.vis-config-item.vis-config-s4{
left:30px;
background-color: #cfd8e6;
padding-left:5px;
border-radius:3px;
}
div.vis-configuration.vis-config-header{
font-size:18px;
font-weight: bold;
}
div.vis-configuration.vis-config-label{
width:120px;
height:25px;
line-height: 25px;
}
div.vis-configuration.vis-config-label.vis-config-s3{
width:110px;
}
div.vis-configuration.vis-config-label.vis-config-s4{
width:100px;
}
div.vis-configuration.vis-config-colorBlock{
top:1px;
width:30px;
height:19px;
border:1px solid #444444;
border-radius:2px;
padding:0px;
margin:0px;
cursor:pointer;
}
input.vis-configuration.vis-config-checkbox {
left:-5px;
}
input.vis-configuration.vis-config-rangeinput{
position:relative;
top:-5px;
width:60px;
/*height:13px;*/
padding:1px;
margin:0;
pointer-events:none;
}
input.vis-configuration.vis-config-range{
/*removes default webkit styles*/
-webkit-appearance: none;
/*fix for FF unable to apply focus style bug */
border: 0px solid white;
background-color:rgba(0,0,0,0);
/*required for proper track sizing in FF*/
width: 300px;
height:20px;
}
input.vis-configuration.vis-config-range::-webkit-slider-runnable-track {
width: 300px;
height: 5px;
background: #dedede; /* Old browsers */
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
border: 1px solid #999999;
box-shadow: #aaaaaa 0px 0px 3px 0px;
border-radius: 3px;
}
input.vis-configuration.vis-config-range::-webkit-slider-thumb {
-webkit-appearance: none;
border: 1px solid #14334b;
height: 17px;
width: 17px;
border-radius: 50%;
background: #3876c2; /* Old browsers */
background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #3876c2 0%,#385380 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #3876c2 0%,#385380 100%); /* IE10+ */
background: linear-gradient(to bottom, #3876c2 0%,#385380 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */
box-shadow: #111927 0px 0px 1px 0px;
margin-top: -7px;
}
input.vis-configuration.vis-config-range:focus {
outline: none;
}
input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {
background: #9d9d9d; /* Old browsers */
background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */
background: linear-gradient(to bottom, #9d9d9d 0%,#c8c8c8 99%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
}
input.vis-configuration.vis-config-range::-moz-range-track {
width: 300px;
height: 10px;
background: #dedede; /* Old browsers */
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
border: 1px solid #999999;
box-shadow: #aaaaaa 0px 0px 3px 0px;
border-radius: 3px;
}
input.vis-configuration.vis-config-range::-moz-range-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #385380;
}
/*hide the outline behind the border*/
input.vis-configuration.vis-config-range:-moz-focusring{
outline: 1px solid white;
outline-offset: -1px;
}
input.vis-configuration.vis-config-range::-ms-track {
width: 300px;
height: 5px;
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
background: transparent;
/*leave room for the larger thumb to overflow with a transparent border */
border-color: transparent;
border-width: 6px 0;
/*remove default tick marks*/
color: transparent;
}
input.vis-configuration.vis-config-range::-ms-fill-lower {
background: #777;
border-radius: 10px;
}
input.vis-configuration.vis-config-range::-ms-fill-upper {
background: #ddd;
border-radius: 10px;
}
input.vis-configuration.vis-config-range::-ms-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #385380;
}
input.vis-configuration.vis-config-range:focus::-ms-fill-lower {
background: #888;
}
input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
background: #ccc;
}
.vis-configuration-popup {
position: absolute;
background: rgba(57, 76, 89, 0.85);
border: 2px solid #f2faff;
line-height:30px;
height:30px;
width:150px;
text-align:center;
color: #ffffff;
font-size:14px;
border-radius:4px;
-webkit-transition: opacity 0.3s ease-in-out;
-moz-transition: opacity 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out;
}
.vis-configuration-popup:after, .vis-configuration-popup:before {
left: 100%;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.vis-configuration-popup:after {
border-color: rgba(136, 183, 213, 0);
border-left-color: rgba(57, 76, 89, 0.85);
border-width: 8px;
margin-top: -8px;
}
.vis-configuration-popup:before {
border-color: rgba(194, 225, 245, 0);
border-left-color: #f2faff;
border-width: 12px;
margin-top: -12px;
}`;ca(R_e);var N_e=function(){function e(a,t,n){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;br(this,e),this.parent=a,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},ee.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new A_e(h),this.wrapper=void 0}return _r(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof t=="string")this.options.filter=t;else if(Ot(t))this.options.filter=t.join();else if(bt(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),Rt(t)!==void 0&&(this.options.filter=Rt(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(n=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,n=t):typeof t=="function"&&(this.options.filter=t,n=!0);Rt(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Rt(this.options),n=0,h=!1;for(var d in this.configureOptions)this.configureOptions.hasOwnProperty(d)&&(this.allowCreation=!1,h=!1,typeof t=="function"?(h=t(d,[]),h=h||this._handleObject(this.configureOptions[d],[d],!0)):(t===!0||oi(t).call(t,d)!==-1)&&(h=!0),h!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(d),this._handleObject(this.configureOptions[d],[d])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var n=this.moduleOptions,h=0;h<t.length;h++)if(n[t[h]]!==void 0)n=n[t[h]];else{n=void 0;break}return n}},{key:"_makeItem",value:function(t){if(this.allowCreation===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var h=arguments.length,d=new Array(h>1?h-1:0),p=1;p<h;p++)d[p-1]=arguments[p];return Tt(d).call(d,function(y){n.appendChild(y)}),this.domElements.push(n),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var n=document.createElement("div");n.className="vis-configuration vis-config-header",n.innerHTML=ee.xss(t),this._makeItem([],n)}},{key:"_makeLabel",value:function(t,n){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=document.createElement("div");return d.className="vis-configuration vis-config-label vis-config-s"+n.length,h===!0?d.innerHTML=ee.xss("<i><b>"+t+":</b></i>"):d.innerHTML=ee.xss(t+":"),d}},{key:"_makeDropdown",value:function(t,n,h){var d=document.createElement("select");d.className="vis-configuration vis-config-select";var p=0;n!==void 0&&oi(t).call(t,n)!==-1&&(p=oi(t).call(t,n));for(var y=0;y<t.length;y++){var b=document.createElement("option");b.value=t[y],y===p&&(b.selected="selected"),b.innerHTML=t[y],d.appendChild(b)}var w=this;d.onchange=function(){w._update(this.value,h)};var $=this._makeLabel(h[h.length-1],h);this._makeItem(h,$,d)}},{key:"_makeRange",value:function(t,n,h){var d=t[0],p=t[1],y=t[2],b=t[3],w=document.createElement("input");w.className="vis-configuration vis-config-range";try{w.type="range",w.min=p,w.max=y}catch(ae){}w.step=b;var $="",A=0;if(n!==void 0){var R=1.2;n<0&&n*R<p?(w.min=Math.ceil(n*R),A=w.min,$="range increased"):n/R<p&&(w.min=Math.ceil(n/R),A=w.min,$="range increased"),n*R>y&&y!==1&&(w.max=Math.ceil(n*R),A=w.max,$="range increased"),w.value=n}else w.value=d;var Y=document.createElement("input");Y.className="vis-configuration vis-config-rangeinput",Y.value=Number(w.value);var V=this;w.onchange=function(){Y.value=this.value,V._update(Number(this.value),h)},w.oninput=function(){Y.value=this.value};var oe=this._makeLabel(h[h.length-1],h),G=this._makeItem(h,oe,w,Y);$!==""&&this.popupHistory[G]!==A&&(this.popupHistory[G]=A,this._setupPopup($,G))}},{key:"_makeButton",value:function(){var t=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerHTML="generate options",n.onclick=function(){t._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(t,n){var h=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var d=document.createElement("div");d.id="vis-configuration-popup",d.className="vis-configuration-popup",d.innerHTML=ee.xss(t),d.onclick=function(){h._removePopup()},this.popupCounter+=1,this.popupDiv={html:d,index:n}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(this.popupDiv.html!==void 0){var n=this.domElements[this.popupDiv.index],h=n.getBoundingClientRect();this.popupDiv.html.style.left=h.left+"px",this.popupDiv.html.style.top=h.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Zo(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Zo(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,n,h){var d=document.createElement("input");d.type="checkbox",d.className="vis-configuration vis-config-checkbox",d.checked=t,n!==void 0&&(d.checked=n,n!==t&&(bt(t)==="object"?n!==t.enabled&&this.changedOptions.push({path:h,value:n}):this.changedOptions.push({path:h,value:n})));var p=this;d.onchange=function(){p._update(this.checked,h)};var y=this._makeLabel(h[h.length-1],h);this._makeItem(h,y,d)}},{key:"_makeTextInput",value:function(t,n,h){var d=document.createElement("input");d.type="text",d.className="vis-configuration vis-config-text",d.value=n,n!==t&&this.changedOptions.push({path:h,value:n});var p=this;d.onchange=function(){p._update(this.value,h)};var y=this._makeLabel(h[h.length-1],h);this._makeItem(h,y,d)}},{key:"_makeColorField",value:function(t,n,h){var d=this,p=t[1],y=document.createElement("div");n=n===void 0?p:n,n!=="none"?(y.className="vis-configuration vis-config-colorBlock",y.style.backgroundColor=n):y.className="vis-configuration vis-config-colorBlock none",n=n===void 0?p:n,y.onclick=function(){d._showColorPicker(n,y,h)};var b=this._makeLabel(h[h.length-1],h);this._makeItem(h,b,y)}},{key:"_showColorPicker",value:function(t,n,h){var d=this;n.onclick=function(){},this.colorPicker.insertTo(n),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(p){var y="rgba("+p.r+","+p.g+","+p.b+","+p.a+")";n.style.backgroundColor=y,d._update(y,h)}),this.colorPicker.setCloseCallback(function(){n.onclick=function(){d._showColorPicker(t,n,h)}})}},{key:"_handleObject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=!1,p=Rt(this.options),y=!1;for(var b in t)if(t.hasOwnProperty(b)){d=!0;var w=t[b],$=ee.copyAndExtendArray(n,b);if(typeof p=="function"&&(d=p(b,n),d===!1&&!Ot(w)&&typeof w!="string"&&typeof w!="boolean"&&w instanceof Object&&(this.allowCreation=!1,d=this._handleObject(w,$,!0),this.allowCreation=h===!1)),d!==!1){y=!0;var A=this._getValue($);if(Ot(w))this._handleArray(w,A,$);else if(typeof w=="string")this._makeTextInput(w,A,$);else if(typeof w=="boolean")this._makeCheckbox(w,A,$);else if(w instanceof Object){var R=!0;if(oi(n).call(n,"physics")!==-1&&this.moduleOptions.physics.solver!==b&&(R=!1),R===!0)if(w.enabled!==void 0){var Y=ee.copyAndExtendArray($,"enabled"),V=this._getValue(Y);if(V===!0){var oe=this._makeLabel(b,$,!0);this._makeItem($,oe),y=this._handleObject(w,$)||y}else this._makeCheckbox(w,V,$)}else{var G=this._makeLabel(b,$,!0);this._makeItem($,G),y=this._handleObject(w,$)||y}}else console.error("dont know how to handle",w,b,$)}}return y}},{key:"_handleArray",value:function(t,n,h){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,n,h),t[1]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="string"?(this._makeDropdown(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:n})):typeof t[0]=="number"&&(this._makeRange(t,n,h),t[0]!==n&&this.changedOptions.push({path:h,value:Number(n)}))}},{key:"_update",value:function(t,n){var h=this._constructOptions(t,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",h),this.initialized=!0,this.parent.setOptions(h)}},{key:"_constructOptions",value:function(t,n){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=h;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var p=0;p<n.length;p++)n[p]!=="global"&&(d[n[p]]===void 0&&(d[n[p]]={}),p!==n.length-1?d=d[n[p]]:d[n[p]]=t);return h}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+Ha(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},n=0;n<this.changedOptions.length;n++)this._constructOptions(this.changedOptions[n].value,this.changedOptions[n].path,t);return t}}]),e}(),L_e=function(){function e(a,t,n,h,d,p){var y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,b=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(br(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=d,this.majorCharHeight=p,this._start=a,this._end=t,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=y,this.autoScaleStart=n,this.autoScaleEnd=h,this.formattingFunction=b,n||h){var w=this,$=function(R){var Y=R-R%(w.magnitudefactor*w.minorSteps[w.minorStepIdx]);return R%(w.magnitudefactor*w.minorSteps[w.minorStepIdx])>.5*(w.magnitudefactor*w.minorSteps[w.minorStepIdx])?Y+w.magnitudefactor*w.minorSteps[w.minorStepIdx]:Y};n&&(this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx],this._start=$(this._start)),h&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=$(this._end)),this.determineScale()}}return _r(e,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var n=this.majorCharHeight/this.scale,h=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,h);var d=0;h<0&&(d=h);for(var p=!1,y=d;Math.abs(y)<=Math.abs(h);y++){this.magnitudefactor=Math.pow(10,y);for(var b=0;b<this.minorSteps.length;b++){var w=this.magnitudefactor*this.minorSteps[b];if(w>=n){p=!0,this.minorStepIdx=b;break}}if(p===!0)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var n=t.toPrecision(5);return typeof this.formattingFunction=="function"&&(n=this.formattingFunction(t)),typeof n=="number"?"".concat(n):typeof n=="string"?n:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],n=this.getStep(),h=(n-this._start%n)%n,d=this._start+h;this._end-d>1e-5;d+=n)d!=this._start&&t.push({major:this.is_major(d),y:this.convertValue(d),val:this.formatValue(d)});return t}},{key:"followScale",value:function(t){var n=this.minorStepIdx,h=this._start,d=this._end,p=this,y=function(){p.magnitudefactor*=2},b=function(){p.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,n==2||y(),y()):(this.minorStepIdx=2,n==1||b(),b()));for(var w=t.convertValue(0),$=t.getStep()*t.scale,A=!1,R=0;!A&&R++<5;){this.scale=$/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var Y=this.containerHeight/this.scale;this._start=h,this._end=this._start+Y;var V=this._end*this.scale,oe=this.magnitudefactor*this.majorSteps[this.minorStepIdx],G=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var ae=w-V;this._end+=ae/this.scale,this._start=this._end-Y}else this.autoScaleStart?(this._start-=G/this.scale,this._end=this._start+Y):(this._start+=oe-G/this.scale,this._end=this._start+Y);if(!this.autoScaleEnd&&this._end>d+1e-5){b(),A=!1;continue}if(!this.autoScaleStart&&this._start<h-1e-5)if(this.zeroAlign&&h>=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{b(),A=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&Y<d-h){y(),A=!1;continue}A=!0}}},{key:"convertValue",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:"screenToValue",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),e}(),F_e=`
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {
position: absolute;
width: 100%;
height: 0;
border-bottom: 1px solid;
}
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {
border-color: #e5e5e5;
}
.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {
border-color: #bfbfbf;
}
.vis-data-axis .vis-y-axis.vis-major {
width: 100%;
position: absolute;
color: #4d4d4d;
white-space: nowrap;
}
.vis-data-axis .vis-y-axis.vis-major.vis-measure {
padding: 0;
margin: 0;
border: 0;
visibility: hidden;
width: auto;
}
.vis-data-axis .vis-y-axis.vis-minor {
position: absolute;
width: 100%;
color: #bebebe;
white-space: nowrap;
}
.vis-data-axis .vis-y-axis.vis-minor.vis-measure {
padding: 0;
margin: 0;
border: 0;
visibility: hidden;
width: auto;
}
.vis-data-axis .vis-y-axis.vis-title {
position: absolute;
color: #4d4d4d;
white-space: nowrap;
bottom: 20px;
text-align: center;
}
.vis-data-axis .vis-y-axis.vis-title.vis-measure {
padding: 0;
margin: 0;
visibility: hidden;
width: auto;
}
.vis-data-axis .vis-y-axis.vis-title.vis-left {
bottom: 0;
-webkit-transform-origin: left top;
-moz-transform-origin: left top;
-ms-transform-origin: left top;
-o-transform-origin: left top;
transform-origin: left bottom;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.vis-data-axis .vis-y-axis.vis-title.vis-right {
bottom: 0;
-webkit-transform-origin: right bottom;
-moz-transform-origin: right bottom;
-ms-transform-origin: right bottom;
-o-transform-origin: right bottom;
transform-origin: right bottom;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
}
.vis-legend {
background-color: rgba(247, 252, 255, 0.65);
padding: 5px;
border: 1px solid #b3b3b3;
box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);
}
.vis-legend-text {
/*font-size: 10px;*/
white-space: nowrap;
display: inline-block
}`;ca(F_e);function j_e(e,a){var t=typeof Qg!="undefined"&&A_(e)||e["@@iterator"];if(!t){if(Ot(e)||(t=Y_e(e))||a){t&&(e=t);var n=0,h=function(){};return{s:h,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(w){throw w},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,p=!1,y;return{s:function(){t=t.call(e)},n:function(){var w=t.next();return d=w.done,w},e:function(w){p=!0,y=w},f:function(){try{!d&&t.return!=null&&t.return()}finally{if(p)throw y}}}}function Y_e(e,a){var t;if(e){if(typeof e=="string")return b6(e,a);var n=To(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return M_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b6(e,a)}}function b6(e,a){(a==null||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}function B_e(e){var a=H_e();return function(){var n=Ri(e),h;if(a){var d=Ri(this).constructor;h=Nt(n,arguments,d)}else h=n.apply(this,arguments);return Fh(this,h)}}function H_e(){if(typeof Reflect=="undefined"||!Nt||Nt.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Nt(Boolean,[],function(){})),!0}catch(e){return!1}}var _6=function(e){Lh(t,e);var a=B_e(t);function t(n,h,d,p){var y;br(this,t),y=a.call(this),y.id=vL(),y.body=n,y.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function($){return"".concat(RC($.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function($){return"".concat(RC($.toPrecision(3)))},title:{text:void 0,style:void 0}}},y.linegraphOptions=p,y.linegraphSVG=d,y.props={},y.DOMelements={lines:{},labels:{},title:{}},y.dom={},y.scale=void 0,y.range={start:0,end:0},y.options=ee.extend({},y.defaultOptions),y.conversionFactor=1,y.setOptions(h),y.width=Number("".concat(y.options.width).replace("px","")),y.minWidth=y.width,y.height=y.linegraphSVG.getBoundingClientRect().height,y.hidden=!1,y.stepPixels=25,y.zeroCrossing=-1,y.amountOfSteps=-1,y.lineOffset=0,y.master=!0,y.masterAxis=null,y.svgElements={},y.iconsRemoved=!1,y.groups={},y.amountOfGroups=0,y._create(),y.scale==null&&y._redrawLabels(),y.framework={svg:y.svg,svgElements:y.svgElements,options:y.options,groups:y.groups};var b=oa(y);return y.body.emitter.on("verticalDrag",function(){b.dom.lineContainer.style.top="".concat(b.body.domProps.scrollTop,"px")}),y}return _r(t,[{key:"addGroup",value:function(h,d){this.groups.hasOwnProperty(h)||(this.groups[h]=d),this.amountOfGroups+=1}},{key:"updateGroup",value:function(h,d){this.groups.hasOwnProperty(h)||(this.amountOfGroups+=1),this.groups[h]=d}},{key:"removeGroup",value:function(h){this.groups.hasOwnProperty(h)&&(delete this.groups[h],this.amountOfGroups-=1)}},{key:"setOptions",value:function(h){if(h){var d=!1;this.options.orientation!=h.orientation&&h.orientation!==void 0&&(d=!0);var p=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];ee.selectiveDeepExtend(p,this.options,h),this.minWidth=Number("".concat(this.options.width).replace("px","")),d===!0&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){vd(this.svgElements);var h,d=this.options.iconWidth,p=15,y=4,b=y+.5*p;this.options.orientation==="left"?h=y:h=this.width-d-y;var w=Ki(this.groups);Ii(w).call(w,function(Y,V){return Y<V?-1:1});var $=j_e(w),A;try{for($.s();!(A=$.n()).done;){var R=A.value;this.groups[R].visible===!0&&(this.linegraphOptions.visibility[R]===void 0||this.linegraphOptions.visibility[R]===!0)&&(this.groups[R].getLegend(d,p,this.framework,h,b),b+=p+y)}}catch(Y){$.e(Y)}finally{$.f()}qo(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(vd(this.svgElements),qo(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||(this.options.orientation==="left"?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(h,d){this.range.start=h,this.range.end=d}},{key:"redraw",value:function(){var h=!1,d=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(var p in this.groups)this.groups.hasOwnProperty(p)&&this.groups[p].visible===!0&&(this.linegraphOptions.visibility[p]===void 0||this.linegraphOptions.visibility[p]===!0)&&d++;if(this.amountOfGroups===0||d===0)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=this.options.visible===!0?Number("".concat(this.options.width).replace("px","")):0;var y=this.props,b=this.dom.frame;b.className="vis-data-axis",this._calculateCharSize();var w=this.options.orientation,$=this.options.showMinorLabels,A=this.options.showMajorLabels,R=this.body.dom.backgroundHorizontal.offsetWidth;y.minorLabelHeight=$?y.minorCharHeight:0,y.majorLabelHeight=A?y.majorCharHeight:0,y.minorLineWidth=R-this.lineOffset-this.width+2*this.options.minorLinesOffset,y.minorLineHeight=1,y.majorLineWidth=R-this.lineOffset-this.width+2*this.options.majorLinesOffset,y.majorLineHeight=1,w==="left"?(b.style.top="0",b.style.left="0",b.style.bottom="",b.style.width="".concat(this.width,"px"),b.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(b.style.top="",b.style.bottom="0",b.style.left="0",b.style.width="".concat(this.width,"px"),b.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),h=this._redrawLabels(),h=this._isResized()||h,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(w)}return h}},{key:"_redrawLabels",value:function(){var h=this,d=!1;vd(this.DOMelements.lines),vd(this.DOMelements.labels);var p=this.options.orientation,y=this.options[p].range!=null?this.options[p].range:{},b=!0;y.max!=null&&(this.range.end=y.max,b=!1);var w=!0;y.min!=null&&(this.range.start=y.min,w=!1),this.scale=new L_e(this.range.start,this.range.end,w,b,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[p].format),this.master===!1&&this.masterAxis!=null?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var $=this.scale.getLines();Tt($).call($,function(Y){var V=Y.y,oe=Y.major;h.options.showMinorLabels&&oe===!1&&h._redrawLabel(V-2,Y.val,p,"vis-y-axis vis-minor",h.props.minorCharHeight),oe&&V>=0&&h._redrawLabel(V-2,Y.val,p,"vis-y-axis vis-major",h.props.majorCharHeight),h.master===!0&&(oe?h._redrawLine(V,p,"vis-grid vis-horizontal vis-major",h.options.majorLinesOffset,h.props.majorLineWidth):h._redrawLine(V,p,"vis-grid vis-horizontal vis-minor",h.options.minorLinesOffset,h.props.minorLineWidth))});var A=0;this.options[p].title!==void 0&&this.options[p].title.text!==void 0&&(A=this.props.titleCharHeight);var R=this.options.icons===!0?Math.max(this.options.iconWidth,A)+this.options.labelOffsetX+15:A+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-R&&this.options.visible===!0?(this.width=this.maxLabelSize+R,this.options.width="".concat(this.width,"px"),qo(this.DOMelements.lines),qo(this.DOMelements.labels),this.redraw(),d=!0):this.maxLabelSize<this.width-R&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+R),this.options.width="".concat(this.width,"px"),qo(this.DOMelements.lines),qo(this.DOMelements.labels),this.redraw(),d=!0):(qo(this.DOMelements.lines),qo(this.DOMelements.labels),d=!1),d}},{key:"convertValue",value:function(h){return this.scale.convertValue(h)}},{key:"screenToValue",value:function(h){return this.scale.screenToValue(h)}},{key:"_redrawLabel",value:function(h,d,p,y,b){var w=HA("div",this.DOMelements.labels,this.dom.frame);w.className=y,w.innerHTML=ee.xss(d),p==="left"?(w.style.left="-".concat(this.options.labelOffsetX,"px"),w.style.textAlign="right"):(w.style.right="-".concat(this.options.labelOffsetX,"px"),w.style.textAlign="left"),w.style.top="".concat(h-.5*b+this.options.labelOffsetY,"px"),d+="";var $=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<d.length*$&&(this.maxLabelSize=d.length*$)}},{key:"_redrawLine",value:function(h,d,p,y,b){if(this.master===!0){var w=HA("div",this.DOMelements.lines,this.dom.lineContainer);w.className=p,w.innerHTML="",d==="left"?w.style.left="".concat(this.width-y,"px"):w.style.right="".concat(this.width-y,"px"),w.style.width="".concat(b,"px"),w.style.top="".concat(h,"px")}}},{key:"_redrawTitle",value:function(h){if(vd(this.DOMelements.title),this.options[h].title!==void 0&&this.options[h].title.text!==void 0){var d=HA("div",this.DOMelements.title,this.dom.frame);d.className="vis-y-axis vis-title vis-".concat(h),d.innerHTML=ee.xss(this.options[h].title.text),this.options[h].title.style!==void 0&&ee.addCssText(d,this.options[h].title.style),h==="left"?d.style.left="".concat(this.props.titleCharHeight,"px"):d.style.right="".concat(this.props.titleCharHeight,"px"),d.style.width="".concat(this.height,"px")}qo(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var h=document.createTextNode("0"),d=document.createElement("div");d.className="vis-y-axis vis-minor vis-measure",d.appendChild(h),this.dom.frame.appendChild(d),this.props.minorCharHeight=d.clientHeight,this.props.minorCharWidth=d.clientWidth,this.dom.frame.removeChild(d)}if(!("majorCharHeight"in this.props)){var p=document.createTextNode("0"),y=document.createElement("div");y.className="vis-y-axis vis-major vis-measure",y.appendChild(p),this.dom.frame.appendChild(y),this.props.majorCharHeight=y.clientHeight,this.props.majorCharWidth=y.clientWidth,this.dom.frame.removeChild(y)}if(!("titleCharHeight"in this.props)){var b=document.createTextNode("0"),w=document.createElement("div");w.className="vis-y-axis vis-title vis-measure",w.appendChild(b),this.dom.frame.appendChild(w),this.props.titleCharHeight=w.clientHeight,this.props.titleCharWidth=w.clientWidth,this.dom.frame.removeChild(w)}}}]),t}(wp);function J_(e,a){}J_.draw=function(e,a,t,n){n=n||0;for(var h=W_e(t,a),d=0;d<e.length;d++)if(!h)jg(e[d].screen_x+n,e[d].screen_y,cN(a),t.svgElements,t.svg,e[d].label);else{var p=h(e[d],a);(p===!0||bt(p)==="object")&&jg(e[d].screen_x+n,e[d].screen_y,cN(a,p),t.svgElements,t.svg,e[d].label)}};J_.drawIcon=function(e,a,t,n,h,d){var p=h*.5,y=Xs("rect",d.svgElements,d.svg);y.setAttributeNS(null,"x",a),y.setAttributeNS(null,"y",t-p),y.setAttributeNS(null,"width",n),y.setAttributeNS(null,"height",2*p),y.setAttributeNS(null,"class","vis-outline"),jg(a+.5*n,t,cN(e),d.svgElements,d.svg)};function cN(e,a){return a=typeof a=="undefined"?{}:a,{style:a.style||e.options.drawPoints.style,styles:a.styles||e.options.drawPoints.styles,size:a.size||e.options.drawPoints.size,className:a.className||e.className}}function W_e(e,a){var t=void 0;return e.options&&e.options.drawPoints&&e.options.drawPoints.onRender&&typeof e.options.drawPoints.onRender=="function"&&(t=e.options.drawPoints.onRender),a.group.options&&a.group.options.drawPoints&&a.group.options.drawPoints.onRender&&typeof a.group.options.drawPoints.onRender=="function"&&(t=a.group.options.drawPoints.onRender),t}function sa(e,a){}sa.drawIcon=function(e,a,t,n,h,d){var p=h*.5,y=Xs("rect",d.svgElements,d.svg);y.setAttributeNS(null,"x",a),y.setAttributeNS(null,"y",t-p),y.setAttributeNS(null,"width",n),y.setAttributeNS(null,"height",2*p),y.setAttributeNS(null,"class","vis-outline");var b=Math.round(.3*n),w=e.options.barChart.width,$=w/b,A=Math.round(.4*h),R=Math.round(.75*h),Y=Math.round((n-2*b)/3);if(GR(a+.5*b+Y,t+p-A-1,b,A,e.className+" vis-bar",d.svgElements,d.svg,e.style),GR(a+1.5*b+Y+2,t+p-R-1,b,R,e.className+" vis-bar",d.svgElements,d.svg,e.style),e.options.drawPoints.enabled==!0){var V={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size/$,className:e.className};jg(a+.5*b+Y,t+p-A-1,V,d.svgElements,d.svg),jg(a+1.5*b+Y+2,t+p-R-1,V,d.svgElements,d.svg)}};sa.draw=function(e,a,t){var n=[],h={},d,p,y,b,w,$,A=0;for(w=0;w<e.length;w++)if(b=t.groups[e[w]],b.options.style==="bar"&&b.visible===!0&&(t.options.groups.visibility[e[w]]===void 0||t.options.groups.visibility[e[w]]===!0))for($=0;$<a[e[w]].length;$++)n.push({screen_x:a[e[w]][$].screen_x,screen_end:a[e[w]][$].screen_end,screen_y:a[e[w]][$].screen_y,x:a[e[w]][$].x,end:a[e[w]][$].end,y:a[e[w]][$].y,groupId:e[w],label:a[e[w]][$].label}),A+=1;if(A!==0)for(Ii(n).call(n,function(ve,ye){return ve.screen_x===ye.screen_x?ve.groupId<ye.groupId?-1:1:ve.screen_x-ye.screen_x}),sa._getDataIntersections(h,n),w=0;w<n.length;w++){b=t.groups[n[w].groupId];var R=b.options.barChart.minWidth!=null?b.options.barChart.minWidth:.1*b.options.barChart.width;p=n[w].screen_x;var Y=0;if(h[p]===void 0)w+1<n.length&&(d=Math.abs(n[w+1].screen_x-p)),y=sa._getSafeDrawData(d,b,R);else{var V=w+(h[p].amount-h[p].resolved);V<n.length&&(d=Math.abs(n[V].screen_x-p)),y=sa._getSafeDrawData(d,b,R),h[p].resolved+=1,b.options.stack===!0&&b.options.excludeFromStacking!==!0?n[w].screen_y<b.zeroPosition?(Y=h[p].accumulatedNegative,h[p].accumulatedNegative+=b.zeroPosition-n[w].screen_y):(Y=h[p].accumulatedPositive,h[p].accumulatedPositive+=b.zeroPosition-n[w].screen_y):b.options.barChart.sideBySide===!0&&(y.width=y.width/h[p].amount,y.offset+=h[p].resolved*y.width-.5*y.width*(h[p].amount+1))}var oe=y.width,G=n[w].screen_x;if(n[w].screen_end!=null?(oe=n[w].screen_end-n[w].screen_x,G+=oe*.5):G+=y.offset,GR(G,n[w].screen_y-Y,oe,b.zeroPosition-n[w].screen_y,b.className+" vis-bar",t.svgElements,t.svg,b.style),b.options.drawPoints.enabled===!0){var ae={screen_x:n[w].screen_x,screen_y:n[w].screen_y-Y,x:n[w].x,y:n[w].y,groupId:n[w].groupId,label:n[w].label};J_.draw([ae],b,t,y.offset)}}};sa._getDataIntersections=function(e,a){for(var t,n=0;n<a.length;n++)n+1<a.length&&(t=Math.abs(a[n+1].screen_x-a[n].screen_x)),n>0&&(t=Math.min(t,Math.abs(a[n-1].screen_x-a[n].screen_x))),t===0&&(e[a[n].screen_x]===void 0&&(e[a[n].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[a[n].screen_x].amount+=1)};sa._getSafeDrawData=function(e,a,t){var n,h;return e<a.options.barChart.width&&e>0?(n=e<t?t:e,h=0,a.options.barChart.align==="left"?h-=.5*e:a.options.barChart.align==="right"&&(h+=.5*e)):(n=a.options.barChart.width,h=0,a.options.barChart.align==="left"?h-=.5*a.options.barChart.width:a.options.barChart.align==="right"&&(h+=.5*a.options.barChart.width)),{width:n,offset:h}};sa.getStackedYRange=function(e,a,t,n,h){if(e.length>0){Ii(e).call(e,function(p,y){return p.screen_x===y.screen_x?p.groupId<y.groupId?-1:1:p.screen_x-y.screen_x});var d={};sa._getDataIntersections(d,e),a[n]=sa._getStackedYRange(d,e),a[n].yAxisOrientation=h,t.push(n)}};sa._getStackedYRange=function(e,a){for(var t,n=a[0].screen_y,h=a[0].screen_y,d=0;d<a.length;d++)t=a[d].screen_x,e[t]===void 0?(n=n>a[d].screen_y?a[d].screen_y:n,h=h<a[d].screen_y?a[d].screen_y:h):a[d].screen_y<0?e[t].accumulatedNegative+=a[d].screen_y:e[t].accumulatedPositive+=a[d].screen_y;for(var p in e)e.hasOwnProperty(p)&&(n=n>e[p].accumulatedNegative?e[p].accumulatedNegative:n,n=n>e[p].accumulatedPositive?e[p].accumulatedPositive:n,h=h<e[p].accumulatedNegative?e[p].accumulatedNegative:h,h=h<e[p].accumulatedPositive?e[p].accumulatedPositive:h);return{min:n,max:h}};function Tn(e,a){}Tn.calcPath=function(e,a){if(e!=null&&e.length>0){var t=[];return a.options.interpolation.enabled==!0?t=Tn._catmullRom(e,a):t=Tn._linear(e),t}};Tn.drawIcon=function(e,a,t,n,h,d){var p=h*.5,y,b,w=Xs("rect",d.svgElements,d.svg);if(w.setAttributeNS(null,"x",a),w.setAttributeNS(null,"y",t-p),w.setAttributeNS(null,"width",n),w.setAttributeNS(null,"height",2*p),w.setAttributeNS(null,"class","vis-outline"),y=Xs("path",d.svgElements,d.svg),y.setAttributeNS(null,"class",e.className),e.style!==void 0&&y.setAttributeNS(null,"style",e.style),y.setAttributeNS(null,"d","M"+a+","+t+" L"+(a+n)+","+t),e.options.shaded.enabled==!0&&(b=Xs("path",d.svgElements,d.svg),e.options.shaded.orientation=="top"?b.setAttributeNS(null,"d","M"+a+", "+(t-p)+"L"+a+","+t+" L"+(a+n)+","+t+" L"+(a+n)+","+(t-p)):b.setAttributeNS(null,"d","M"+a+","+t+" L"+a+","+(t+p)+" L"+(a+n)+","+(t+p)+"L"+(a+n)+","+t),b.setAttributeNS(null,"class",e.className+" vis-icon-fill"),e.options.shaded.style!==void 0&&e.options.shaded.style!==""&&b.setAttributeNS(null,"style",e.options.shaded.style)),e.options.drawPoints.enabled==!0){var $={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};jg(a+.5*n,t,$,d.svgElements,d.svg)}};Tn.drawShading=function(e,a,t,n){if(a.options.shaded.enabled==!0){var h=Number(n.svg.style.height.replace("px","")),d=Xs("path",n.svgElements,n.svg),p="L";a.options.interpolation.enabled==!0&&(p="C");var y,b=0;a.options.shaded.orientation=="top"?b=0:a.options.shaded.orientation=="bottom"?b=h:b=Math.min(Math.max(0,a.zeroPosition),h),a.options.shaded.orientation=="group"&&t!=null&&t!=null?y="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,p,!1)+" L"+t[t.length-1][0]+","+t[t.length-1][1]+" "+this.serializePath(t,p,!0)+t[0][0]+","+t[0][1]+" Z":y="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,p,!1)+" V"+b+" H"+e[0][0]+" Z",d.setAttributeNS(null,"class",a.className+" vis-fill"),a.options.shaded.style!==void 0&&d.setAttributeNS(null,"style",a.options.shaded.style),d.setAttributeNS(null,"d",y)}};Tn.draw=function(e,a,t){if(e!=null&&e!=null){var n=Xs("path",t.svgElements,t.svg);n.setAttributeNS(null,"class",a.className),a.style!==void 0&&n.setAttributeNS(null,"style",a.style);var h="L";a.options.interpolation.enabled==!0&&(h="C"),n.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,h,!1))}};Tn.serializePath=function(e,a,t){if(e.length<2)return"";var n=a,h;if(t)for(h=e.length-2;h>0;h--)n+=e[h][0]+","+e[h][1]+" ";else for(h=1;h<e.length;h++)n+=e[h][0]+","+e[h][1]+" ";return n};Tn._catmullRomUniform=function(e){var a,t,n,h,d,p,y=[];y.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var b=1/6,w=e.length,$=0;$<w-1;$++)a=$==0?e[0]:e[$-1],t=e[$],n=e[$+1],h=$+2<w?e[$+2]:n,d={screen_x:(-a.screen_x+6*t.screen_x+n.screen_x)*b,screen_y:(-a.screen_y+6*t.screen_y+n.screen_y)*b},p={screen_x:(t.screen_x+6*n.screen_x-h.screen_x)*b,screen_y:(t.screen_y+6*n.screen_y-h.screen_y)*b},y.push([d.screen_x,d.screen_y]),y.push([p.screen_x,p.screen_y]),y.push([n.screen_x,n.screen_y]);return y};Tn._catmullRom=function(e,a){var t=a.options.interpolation.alpha;if(t==0||t===void 0)return this._catmullRomUniform(e);var n,h,d,p,y,b,w,$,A,R,Y,V,oe,G,ae,ve,ye,pe,Se,ze=[];ze.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var tt=e.length,_e=0;_e<tt-1;_e++)n=_e==0?e[0]:e[_e-1],h=e[_e],d=e[_e+1],p=_e+2<tt?e[_e+2]:d,w=Math.sqrt(Math.pow(n.screen_x-h.screen_x,2)+Math.pow(n.screen_y-h.screen_y,2)),$=Math.sqrt(Math.pow(h.screen_x-d.screen_x,2)+Math.pow(h.screen_y-d.screen_y,2)),A=Math.sqrt(Math.pow(d.screen_x-p.screen_x,2)+Math.pow(d.screen_y-p.screen_y,2)),G=Math.pow(A,t),ve=Math.pow(A,2*t),ae=Math.pow($,t),ye=Math.pow($,2*t),Se=Math.pow(w,t),pe=Math.pow(w,2*t),R=2*pe+3*Se*ae+ye,Y=2*ve+3*G*ae+ye,V=3*Se*(Se+ae),V>0&&(V=1/V),oe=3*G*(G+ae),oe>0&&(oe=1/oe),y={screen_x:(-ye*n.screen_x+R*h.screen_x+pe*d.screen_x)*V,screen_y:(-ye*n.screen_y+R*h.screen_y+pe*d.screen_y)*V},b={screen_x:(ve*h.screen_x+Y*d.screen_x-ye*p.screen_x)*oe,screen_y:(ve*h.screen_y+Y*d.screen_y-ye*p.screen_y)*oe},y.screen_x==0&&y.screen_y==0&&(y=h),b.screen_x==0&&b.screen_y==0&&(b=d),ze.push([y.screen_x,y.screen_y]),ze.push([b.screen_x,b.screen_y]),ze.push([d.screen_x,d.screen_y]);return ze};Tn._linear=function(e){for(var a=[],t=0;t<e.length;t++)a.push([e[t].screen_x,e[t].screen_y]);return a};function kd(e,a,t,n){this.id=a;var h=["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"];this.options=ee.selectiveBridgeObject(h,t),this.usingDefaultStyle=e.className===void 0,this.groupsUsingDefaultStyles=n,this.zeroPosition=0,this.update(e),this.usingDefaultStyle==!0&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=e.visible===void 0?!0:e.visible}kd.prototype.setItems=function(e){e!=null?(this.itemsData=e,Ii(this.options)==!0&&ee.insertSort(this.itemsData,function(a,t){return a.x>t.x?1:-1})):this.itemsData=[]};kd.prototype.getItems=function(){return this.itemsData};kd.prototype.setZeroPosition=function(e){this.zeroPosition=e};kd.prototype.setOptions=function(e){if(e!==void 0){var a=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];ee.selectiveDeepExtend(a,this.options,e),typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),ee.mergeOptions(this.options,e,"interpolation"),ee.mergeOptions(this.options,e,"drawPoints"),ee.mergeOptions(this.options,e,"shaded"),e.interpolation&&bt(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}};kd.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=e.visible===void 0?!0:e.visible,this.style=e.style,this.setOptions(e.options)};kd.prototype.getLegend=function(e,a,t,n,h){if(t==null||t==null){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");t={svg:d,svgElements:{},options:this.options,groups:[this]}}switch((n==null||n==null)&&(n=0),(h==null||h==null)&&(h=.5*a),this.options.style){case"line":Tn.drawIcon(this,n,h,e,a,t);break;case"points":case"point":J_.drawIcon(this,n,h,e,a,t);break;case"bar":sa.drawIcon(this,n,h,e,a,t);break}return{icon:t.svg,label:this.content,orientation:this.options.yAxisOrientation}};kd.prototype.getYRange=function(e){for(var a=e[0].y,t=e[0].y,n=0;n<e.length;n++)a=a>e[n].y?e[n].y:a,t=t<e[n].y?e[n].y:t;return{min:a,max:t,yAxisOrientation:this.options.yAxisOrientation}};function So(e,a,t,n){this.body=e,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=t,this.options=ee.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(a)}So.prototype=new wp;So.prototype.clear=function(){this.groups={},this.amountOfGroups=0};So.prototype.addGroup=function(e,a){a.options.excludeFromLegend!=!0&&(this.groups.hasOwnProperty(e)||(this.groups[e]=a),this.amountOfGroups+=1)};So.prototype.updateGroup=function(e,a){this.groups[e]=a};So.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)};So.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)};So.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};So.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};So.prototype.setOptions=function(e){var a=["enabled","orientation","icons","left","right"];ee.selectiveDeepExtend(a,this.options,e)};So.prototype.redraw=function(){var e=0,a=Ki(this.groups);Ii(a).call(a,function(p,y){return p<y?-1:1});for(var t=0;t<a.length;t++){var n=a[t];this.groups[n].visible==!0&&(this.linegraphOptions.visibility[n]===void 0||this.linegraphOptions.visibility[n]==!0)&&e++}if(this.options[this.side].visible==!1||this.amountOfGroups==0||this.options.enabled==!1||e==0)this.hide();else{if(this.show(),this.options[this.side].position=="top-left"||this.options[this.side].position=="bottom-left"?(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=""),this.options[this.side].position=="top-left"||this.options[this.side].position=="top-right")this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var h=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+h+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==!1?(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 d="";for(t=0;t<a.length;t++)n=a[t],this.groups[n].visible==!0&&(this.linegraphOptions.visibility[n]===void 0||this.linegraphOptions.visibility[n]==!0)&&(d+=this.groups[n].content+"<br />");this.dom.textArea.innerHTML=ee.xss(d),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}};So.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=Ki(this.groups);Ii(e).call(e,function(w,$){return w<$?-1:1}),Cue(this.svgElements);var a=window.getComputedStyle(this.dom.frame).paddingTop,t=Number(a.replace("px","")),n=t,h=this.options.iconSize,d=.75*this.options.iconSize,p=t+.5*d+3;this.svg.style.width=h+5+t+"px";for(var y=0;y<e.length;y++){var b=e[y];this.groups[b].visible==!0&&(this.linegraphOptions.visibility[b]===void 0||this.linegraphOptions.visibility[b]==!0)&&(this.groups[b].getLegend(h,d,this.framework,n,p),p+=d+this.options.iconSpacing)}}};var jC="__ungrouped__";function vr(e,a){this.id=vL(),this.body=e,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=ee.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 t=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(h,d,p){t._onAdd(d.items)},update:function(h,d,p){t._onUpdate(d.items)},remove:function(h,d,p){t._onRemove(d.items)}},this.groupListeners={add:function(h,d,p){t._onAddGroups(d.items)},update:function(h,d,p){t._onUpdateGroups(d.items)},remove:function(h,d,p){t._onRemoveGroups(d.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(a),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){t.svg.style.left=ee.option.asSize(-t.props.width),t.forceGraphUpdate=!0,t.redraw.call(t)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}vr.prototype=new wp;vr.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,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",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new _6(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new _6(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new So(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new So(this.body,this.options.legend,"right",this.options.groups),this.show()};vr.prototype.setOptions=function(e){if(e){var a=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];e.graphHeight===void 0&&e.height!==void 0?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):this.body.domProps.centerContainer.height!==void 0&&e.graphHeight!==void 0&&Vs((e.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),ee.selectiveDeepExtend(a,this.options,e),ee.mergeOptions(this.options,e,"interpolation"),ee.mergeOptions(this.options,e,"drawPoints"),ee.mergeOptions(this.options,e,"shaded"),ee.mergeOptions(this.options,e,"legend"),e.interpolation&&bt(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&e.dataAxis!==void 0&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&e.legend!==void 0&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(jC)&&this.groups[jC].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))};vr.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};vr.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};vr.prototype.setItems=function(e){var a=this,t,n=this.itemsData;if(!e)this.itemsData=null;else if(X_(e))this.itemsData=nN(e);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(n&&(Tt(ee).call(ee,this.itemListeners,function(d,p){n.off(p,d)}),n.dispose(),t=n.getIds(),this._onRemove(t)),this.itemsData){var h=this.id;Tt(ee).call(ee,this.itemListeners,function(d,p){a.itemsData.on(p,d,h)}),t=this.itemsData.getIds(),this._onAdd(t)}};vr.prototype.setGroups=function(e){var a=this,t;if(this.groupsData){Tt(ee).call(ee,this.groupListeners,function(d,p){a.groupsData.off(p,d)}),t=this.groupsData.getIds(),this.groupsData=null;for(var n=0;n<t.length;n++)this._removeGroup(t[n])}if(!e)this.groupsData=null;else if(X_(e))this.groupsData=e;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var h=this.id;Tt(ee).call(ee,this.groupListeners,function(d,p){a.groupsData.on(p,d,h)}),t=this.groupsData.getIds(),this._onAddGroups(t)}};vr.prototype._onUpdate=function(e){this._updateAllGroupData(e)};vr.prototype._onAdd=function(e){this._onUpdate(e)};vr.prototype._onRemove=function(e){this._onUpdate(e)};vr.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)};vr.prototype._onAddGroups=function(e){this._onUpdateGroups(e)};vr.prototype._onRemoveGroups=function(e){for(var a=0;a<e.length;a++)this._removeGroup(e[a]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})};vr.prototype._removeGroup=function(e){this.groups.hasOwnProperty(e)&&(this.groups[e].options.yAxisOrientation=="right"?(this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e),this.legendLeft.redraw()),delete this.groups[e])};vr.prototype._updateGroup=function(e,a){this.groups.hasOwnProperty(a)?(this.groups[a].update(e),this.groups[a].options.yAxisOrientation=="right"?(this.yAxisRight.updateGroup(a,this.groups[a]),this.legendRight.updateGroup(a,this.groups[a]),this.yAxisLeft.removeGroup(a),this.legendLeft.removeGroup(a)):(this.yAxisLeft.updateGroup(a,this.groups[a]),this.legendLeft.updateGroup(a,this.groups[a]),this.yAxisRight.removeGroup(a),this.legendRight.removeGroup(a))):(this.groups[a]=new kd(e,a,this.options,this.groupsUsingDefaultStyles),this.groups[a].options.yAxisOrientation=="right"?(this.yAxisRight.addGroup(a,this.groups[a]),this.legendRight.addGroup(a,this.groups[a])):(this.yAxisLeft.addGroup(a,this.groups[a]),this.legendLeft.addGroup(a,this.groups[a]))),this.legendLeft.redraw(),this.legendRight.redraw()};vr.prototype._updateAllGroupData=function(e,a){if(this.itemsData!=null){var t={},n=this.itemsData.get(),h=this.itemsData.idProp,d={};e&&xn(e).call(e,function(G){d[G]=G});for(var p={},y=0;y<n.length;y++){var b=n[y],w=b.group;w==null&&(w=jC),p.hasOwnProperty(w)?p[w]++:p[w]=1}var $={};if(!a&&e){for(w in this.groups)if(this.groups.hasOwnProperty(w)){oe=this.groups[w];var A=oe.getItems();t[w]=Rt(A).call(A,function(G){return $[G[h]]=G[h],G[h]!==d[G[h]]});var R=p[w];p[w]-=t[w].length,t[w].length<R&&(t[w][R-1]={})}}for(y=0;y<n.length;y++)if(b=n[y],w=b.group,w==null&&(w=jC),!(!a&&e&&b[h]!==d[b[h]]&&$.hasOwnProperty(b[h]))){t.hasOwnProperty(w)||(t[w]=new Array(p[w]));var Y=ee.bridgeObject(b);Y.x=ee.convert(b.x,"Date"),Y.end=ee.convert(b.end,"Date"),Y.orginalY=b.y,Y.y=Number(b.y),Y[h]=b[h];var V=t[w].length-p[w]--;t[w][V]=Y}for(w in this.groups)this.groups.hasOwnProperty(w)&&(t.hasOwnProperty(w)||(t[w]=new Array(0)));for(w in t)if(t.hasOwnProperty(w))if(t[w].length==0)this.groups.hasOwnProperty(w)&&this._removeGroup(w);else{var oe=void 0;this.groupsData!=null&&(oe=this.groupsData.get(w)),oe==null&&(oe={id:w,content:this.options.defaultGroup+w}),this._updateGroup(oe,w),this.groups[w].setItems(t[w])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}};vr.prototype.redraw=function(){var e=!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,e=this._isResized()||e;var a=this.body.range.end-this.body.range.start,t=a!=this.lastVisibleInterval;if(this.lastVisibleInterval=a,e==!0){var n;this.svg.style.width=ee.option.asSize(3*this.props.width),this.svg.style.left=ee.option.asSize(-this.props.width),(oi(n=this.options.height+"").call(n,"%")!=-1||this.updateSVGheightOnResize==!0)&&(this.updateSVGheight=!0)}if(this.updateSVGheight==!0?(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",e==!0||t==!0||this.abortedGraphUpdate==!0||this.forceGraphUpdate==!0)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(this.lastStart!=0){var h=this.body.range.start-this.lastStart,d=this.body.range.end-this.body.range.start;if(this.props.width!=0){var p=this.props.width/d,y=h*p;this.svg.style.left=-this.props.width-y+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e};vr.prototype._getSortedGroupIds=function(){var e=[];for(var a in this.groups)if(this.groups.hasOwnProperty(a)){var t=this.groups[a];t.visible==!0&&(this.options.groups.visibility[a]===void 0||this.options.groups.visibility[a]==!0)&&e.push({id:a,zIndex:t.options.zIndex})}ee.insertSort(e,function(d,p){var y=d.zIndex,b=p.zIndex;return y===void 0&&(y=0),b===void 0&&(b=0),y==b?0:y<b?-1:1});for(var n=new Array(e.length),h=0;h<e.length;h++)n[h]=e[h].id;return n};vr.prototype._updateGraph=function(){if(vd(this.svgElements),this.props.width!=0&&this.itemsData!=null){var e,a,t={},n=!1,h=this.body.util.toGlobalTime(-this.body.domProps.root.width),d=this.body.util.toGlobalTime(2*this.body.domProps.root.width),p=this._getSortedGroupIds();if(p.length>0){var y={};for(this._getRelevantData(p,y,h,d),this._applySampling(p,y),a=0;a<p.length;a++)this._convertXcoordinates(y[p[a]]);if(this._getYRanges(p,y,t),n=this._updateYAxis(p,t),n==!0)return qo(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var b=void 0;for(a=0;a<p.length;a++)e=this.groups[p[a]],this.options.stack===!0&&this.options.style==="line"&&(e.options.excludeFromStacking==null||!e.options.excludeFromStacking)&&(b!=null&&(this._stack(y[e.id],y[b.id]),e.options.shaded.enabled==!0&&e.options.shaded.orientation!=="group"&&(e.options.shaded.orientation=="top"&&b.options.shaded.orientation!=="group"?(b.options.shaded.orientation="group",b.options.shaded.groupId=e.id):(e.options.shaded.orientation="group",e.options.shaded.groupId=b.id))),b=e),this._convertYcoordinates(y[p[a]],e);var w={};for(a=0;a<p.length;a++)if(e=this.groups[p[a]],e.options.style==="line"&&e.options.shaded.enabled==!0){var $=y[p[a]];if($==null||$.length==0)continue;if(w.hasOwnProperty(p[a])||(w[p[a]]=Tn.calcPath($,e)),e.options.shaded.orientation==="group"){var A=e.options.shaded.groupId;if(oi(p).call(p,A)===-1){console.log(e.id+": Unknown shading group target given:"+A);continue}w.hasOwnProperty(A)||(w[A]=Tn.calcPath(y[A],this.groups[A])),Tn.drawShading(w[p[a]],e,w[A],this.framework)}else Tn.drawShading(w[p[a]],e,void 0,this.framework)}for(sa.draw(p,y,this.framework),a=0;a<p.length;a++)if(e=this.groups[p[a]],y[p[a]].length>0)switch(e.options.style){case"line":w.hasOwnProperty(p[a])||(w[p[a]]=Tn.calcPath(y[p[a]],e)),Tn.draw(w[p[a]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&J_.draw(y[p[a]],e,this.framework);break}}}return qo(this.svgElements),!1};vr.prototype._stack=function(e,a){var t,n,h,d,p;t=0;for(var y=0;y<e.length;y++){d=void 0,p=void 0;for(var b=t;b<a.length;b++)if(a[b].x===e[y].x){d=a[b],p=a[b],t=b;break}else if(a[b].x>e[y].x){p=a[b],b==0?d=p:d=a[b-1],t=b;break}p===void 0&&(d=a[a.length-1],p=a[a.length-1]),n=p.x-d.x,h=p.y-d.y,n==0?e[y].y=e[y].orginalY+p.y:e[y].y=e[y].orginalY+h/n*(e[y].x-d.x)+d.y}};vr.prototype._getRelevantData=function(e,a,t,n){var h,d,p,y;if(e.length>0)for(d=0;d<e.length;d++){h=this.groups[e[d]];var b=h.getItems();if(Ii(h.options)==!0){var w=function(V,oe){return V.getTime()==oe.getTime()?0:V<oe?-1:1},$=Math.max(0,ee.binarySearchValue(b,t,"x","before",w)),A=Math.min(b.length,ee.binarySearchValue(b,n,"x","after",w)+1);A<=0&&(A=b.length);var R=new Array(A-$);for(p=$;p<A;p++)y=h.itemsData[p],R[p-$]=y;a[e[d]]=R}else a[e[d]]=h.itemsData}};vr.prototype._applySampling=function(e,a){var t;if(e.length>0){for(var n=0;n<e.length;n++)if(t=this.groups[e[n]],t.options.sampling==!0){var h=a[e[n]];if(h.length>0){var d=1,p=h.length,y=this.body.util.toGlobalScreen(h[h.length-1].x)-this.body.util.toGlobalScreen(h[0].x),b=p/y;d=Math.min(Math.ceil(.2*p),Math.max(1,Math.round(b)));for(var w=new Array(p),$=0;$<p;$+=d){var A=Math.round($/d);w[A]=h[$]}a[e[n]]=Ks(w).call(w,0,Math.round(p/d))}}}};vr.prototype._getYRanges=function(e,a,t){var n,h,d,p=[],y=[],b;if(e.length>0){for(d=0;d<e.length;d++)n=a[e[d]],b=this.groups[e[d]].options,n.length>0&&(h=this.groups[e[d]],b.stack===!0&&b.style==="bar"?b.yAxisOrientation==="left"?p=Cn(p).call(p,n):y=Cn(y).call(y,n):t[e[d]]=h.getYRange(n,e[d]));sa.getStackedYRange(p,t,e,"__barStackLeft","left"),sa.getStackedYRange(y,t,e,"__barStackRight","right")}};vr.prototype._updateYAxis=function(e,a){var t=!1,n=!1,h=!1,d=1e9,p=1e9,y=-1e9,b=-1e9,w,$;if(e.length>0){for(var A=0;A<e.length;A++){var R=this.groups[e[A]];R&&R.options.yAxisOrientation!="right"?(n=!0,d=1e9,y=-1e9):R&&R.options.yAxisOrientation&&(h=!0,p=1e9,b=-1e9)}for(A=0;A<e.length;A++)a.hasOwnProperty(e[A])&&a[e[A]].ignore!==!0&&(w=a[e[A]].min,$=a[e[A]].max,a[e[A]].yAxisOrientation!="right"?(n=!0,d=d>w?w:d,y=y<$?$:y):(h=!0,p=p>w?w:p,b=b<$?$:b));n==!0&&this.yAxisLeft.setRange(d,y),h==!0&&this.yAxisRight.setRange(p,b)}t=this._toggleAxisVisiblity(n,this.yAxisLeft)||t,t=this._toggleAxisVisiblity(h,this.yAxisRight)||t,h==!0&&n==!0?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!n,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==!1?(h==!0?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,t=this.yAxisLeft.redraw()||t,t=this.yAxisRight.redraw()||t):t=this.yAxisRight.redraw()||t;var Y=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(A=0;A<Y.length;A++)oi(e).call(e,Y[A])!=-1&&Ks(e).call(e,oi(e).call(e,Y[A]),1);return t};vr.prototype._toggleAxisVisiblity=function(e,a){var t=!1;return e==!1?a.dom.frame.parentNode&&a.hidden==!1&&(a.hide(),t=!0):!a.dom.frame.parentNode&&a.hidden==!0&&(a.show(),t=!0),t};vr.prototype._convertXcoordinates=function(e){for(var a=this.body.util.toScreen,t=0;t<e.length;t++)e[t].screen_x=a(e[t].x)+this.props.width,e[t].screen_y=e[t].y,e[t].end!=null?e[t].screen_end=a(e[t].end)+this.props.width:e[t].screen_end=void 0};vr.prototype._convertYcoordinates=function(e,a){var t=this.yAxisLeft,n=Number(this.svg.style.height.replace("px",""));a.options.yAxisOrientation=="right"&&(t=this.yAxisRight);for(var h=0;h<e.length;h++)e[h].screen_y=Math.round(t.convertValue(e[h].y));a.setZeroPosition(Math.min(n,t.convertValue(0)))};var wt="string",zt="boolean",dr="number",G_e="array",_g="date",jr="object",z_e="dom",wg="moment",w6="any",U_e={configure:{enabled:{boolean:zt},filter:{boolean:zt,function:"function"},container:{dom:z_e},__type__:{object:jr,boolean:zt,function:"function"}},alignCurrentTime:{string:wt,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:wt},sort:{boolean:zt},sampling:{boolean:zt},stack:{boolean:zt},graphHeight:{string:wt,number:dr},shaded:{enabled:{boolean:zt},orientation:{string:["bottom","top","zero","group"]},groupId:{object:jr},__type__:{boolean:zt,object:jr}},style:{string:["line","bar","points"]},barChart:{width:{number:dr},minWidth:{number:dr},sideBySide:{boolean:zt},align:{string:["left","center","right"]},__type__:{object:jr}},interpolation:{enabled:{boolean:zt},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:dr},__type__:{object:jr,boolean:zt}},drawPoints:{enabled:{boolean:zt},onRender:{function:"function"},size:{number:dr},style:{string:["square","circle"]},__type__:{object:jr,boolean:zt,function:"function"}},dataAxis:{showMinorLabels:{boolean:zt},showMajorLabels:{boolean:zt},showWeekScale:{boolean:zt},icons:{boolean:zt},width:{string:wt,number:dr},visible:{boolean:zt},alignZeros:{boolean:zt},left:{range:{min:{number:dr,undefined:"undefined"},max:{number:dr,undefined:"undefined"},__type__:{object:jr}},format:{function:"function"},title:{text:{string:wt,number:dr,undefined:"undefined"},style:{string:wt,undefined:"undefined"},__type__:{object:jr}},__type__:{object:jr}},right:{range:{min:{number:dr,undefined:"undefined"},max:{number:dr,undefined:"undefined"},__type__:{object:jr}},format:{function:"function"},title:{text:{string:wt,number:dr,undefined:"undefined"},style:{string:wt,undefined:"undefined"},__type__:{object:jr}},__type__:{object:jr}},__type__:{object:jr}},legend:{enabled:{boolean:zt},icons:{boolean:zt},left:{visible:{boolean:zt},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:jr}},right:{visible:{boolean:zt},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:jr}},__type__:{object:jr,boolean:zt}},groups:{visibility:{any:w6},__type__:{object:jr}},autoResize:{boolean:zt},throttleRedraw:{number:dr},clickToUse:{boolean:zt},end:{number:dr,date:_g,string:wt,moment:wg},format:{minorLabels:{millisecond:{string:wt,undefined:"undefined"},second:{string:wt,undefined:"undefined"},minute:{string:wt,undefined:"undefined"},hour:{string:wt,undefined:"undefined"},weekday:{string:wt,undefined:"undefined"},day:{string:wt,undefined:"undefined"},week:{string:wt,undefined:"undefined"},month:{string:wt,undefined:"undefined"},quarter:{string:wt,undefined:"undefined"},year:{string:wt,undefined:"undefined"},__type__:{object:jr}},majorLabels:{millisecond:{string:wt,undefined:"undefined"},second:{string:wt,undefined:"undefined"},minute:{string:wt,undefined:"undefined"},hour:{string:wt,undefined:"undefined"},weekday:{string:wt,undefined:"undefined"},day:{string:wt,undefined:"undefined"},week:{string:wt,undefined:"undefined"},month:{string:wt,undefined:"undefined"},quarter:{string:wt,undefined:"undefined"},year:{string:wt,undefined:"undefined"},__type__:{object:jr}},__type__:{object:jr}},moment:{function:"function"},height:{string:wt,number:dr},hiddenDates:{start:{date:_g,number:dr,string:wt,moment:wg},end:{date:_g,number:dr,string:wt,moment:wg},repeat:{string:wt},__type__:{object:jr,array:G_e}},locale:{string:wt},locales:{__any__:{any:w6},__type__:{object:jr}},max:{date:_g,number:dr,string:wt,moment:wg},maxHeight:{number:dr,string:wt},maxMinorChars:{number:dr},min:{date:_g,number:dr,string:wt,moment:wg},minHeight:{number:dr,string:wt},moveable:{boolean:zt},multiselect:{boolean:zt},orientation:{string:wt},showCurrentTime:{boolean:zt},showMajorLabels:{boolean:zt},showMinorLabels:{boolean:zt},showWeekScale:{boolean:zt},snap:{function:"function",null:"null"},start:{date:_g,number:dr,string:wt,moment:wg},timeAxis:{scale:{string:wt,undefined:"undefined"},step:{number:dr,undefined:"undefined"},__type__:{object:jr}},width:{string:wt,number:dr},zoomable:{boolean:zt},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:dr},zoomMin:{number:dr},zIndex:{number:dr},__type__:{object:jr}},V_e={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function jh(e,a,t,n){var h,d,p,y,b,w,$;if(!(Ot(t)||X_(t))&&t instanceof Object){var A=n;n=t,t=A}n&&n.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var R=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Mi,width:null,height:null,maxHeight:null,minHeight:null},this.options=ee.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:Ee(h=this.on).call(h,this),off:Ee(d=this.off).call(d,this),emit:Ee(p=this.emit).call(p,this)},hiddenDates:[],util:{getScale:function(){return R.timeAxis.step.scale},getStep:function(){return R.timeAxis.step.step},toScreen:Ee(y=R._toScreen).call(y,R),toGlobalScreen:Ee(b=R._toGlobalScreen).call(b,R),toTime:Ee(w=R._toTime).call(w,R),toGlobalTime:Ee($=R._toGlobalTime).call($,R)}},this.range=new K0e(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new uN(this.body),this.components.push(this.timeAxis),this.currentTime=new Hbe(this.body),this.components.push(this.currentTime),this.linegraph=new vr(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(Y){R.emit("click",R.getEventProperties(Y))}),this.on("doubletap",function(Y){R.emit("doubleClick",R.getEventProperties(Y))}),this.dom.root.oncontextmenu=function(Y){R.emit("contextmenu",R.getEventProperties(Y))},this.initialFitDone=!1,this.on("changed",function(){if(R.itemsData!=null){if(!R.initialFitDone&&!R.options.rollingMode)if(R.initialFitDone=!0,R.options.start!=null||R.options.end!=null){if(R.options.start==null||R.options.end==null)var Y=R.getItemRange();var V=R.options.start!=null?R.options.start:Y.min,oe=R.options.end!=null?R.options.end:Y.max;R.setWindow(V,oe,{animation:!1})}else R.fit({animation:!1});!R.initialDrawDone&&(R.initialRangeChangeDone||!R.options.start&&!R.options.end||R.options.rollingMode)&&(R.initialDrawDone=!0,R.dom.root.style.visibility="visible",R.dom.loadingScreen.parentNode.removeChild(R.dom.loadingScreen),R.options.onInitialDrawComplete&&Zo(function(){return R.options.onInitialDrawComplete()},0))}}),n&&this.setOptions(n),t&&this.setGroups(t),a&&this.setItems(a),this._redraw()}jh.prototype=new SL;jh.prototype.setOptions=function(e){var a=I_e.validate(e,U_e);a===!0&&console.log("%cErrors have been found in the supplied options object.",hN),SL.prototype.setOptions.call(this,e)};jh.prototype.setItems=function(e){var a=this.itemsData==null,t;if(e?X_(e)?t=nN(e):t=nN(new k_(e)):t=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.linegraph&&this.linegraph.setItems(t!=null?t.rawDS:null),a)if(this.options.start!=null||this.options.end!=null){var n=this.options.start!=null?this.options.start:null,h=this.options.end!=null?this.options.end:null;this.setWindow(n,h,{animation:!1})}else this.fit({animation:!1})};jh.prototype.setGroups=function(e){var a;e?X_(e)?a=e:a=new k_(e):a=null,this.groupsData=a,this.linegraph.setGroups(a)};jh.prototype.getLegend=function(e,a,t){return a===void 0&&(a=15),t===void 0&&(t=15),this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].getLegend(a,t):"cannot find group:'"+e+"'"};jh.prototype.isGroupVisible=function(e){return this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].visible&&(this.linegraph.options.groups.visibility[e]===void 0||this.linegraph.options.groups.visibility[e]==!0):!1};jh.prototype.getDataRange=function(){var e=null,a=null;for(var t in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(t)&&this.linegraph.groups[t].visible==!0)for(var n=0;n<this.linegraph.groups[t].itemsData.length;n++){var h=this.linegraph.groups[t].itemsData[n],d=ee.convert(h.x,"Date").valueOf();e=e==null||e>d?d:e,a=a==null||a<d?d:a}return{min:e!=null?new Date(e):null,max:a!=null?new Date(a):null}};jh.prototype.getEventProperties=function(e){var a=e.center?e.center.x:e.clientX,t=e.center?e.center.y:e.clientY,n=a-ee.getAbsoluteLeft(this.dom.centerContainer),h=t-ee.getAbsoluteTop(this.dom.centerContainer),d=this._toTime(n),p=q3.customTimeFromTarget(e),y=ee.getTarget(e),b=null;ee.hasParent(y,this.timeAxis.dom.foreground)||this.timeAxis2&&ee.hasParent(y,this.timeAxis2.dom.foreground)?b="axis":ee.hasParent(y,this.linegraph.yAxisLeft.dom.frame)||ee.hasParent(y,this.linegraph.yAxisRight.dom.frame)?b="data-axis":ee.hasParent(y,this.linegraph.legendLeft.dom.frame)||ee.hasParent(y,this.linegraph.legendRight.dom.frame)?b="legend":p!=null?b="custom-time":ee.hasParent(y,this.currentTime.bar)?b="current-time":ee.hasParent(y,this.dom.center)&&(b="background");var w=[],$=this.linegraph.yAxisLeft,A=this.linegraph.yAxisRight;return!$.hidden&&this.itemsData.length>0&&w.push($.screenToValue(h)),!A.hidden&&this.itemsData.length>0&&w.push(A.screenToValue(h)),{event:e,customTime:p?p.options.id:null,what:b,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:n,y:h,time:d,value:w}};jh.prototype._createConfigurator=function(){return new N_e(this,this.dom.container,V_e)};var q_e=Eue();Mi.locale(q_e);var Z3=e=>(a,t)=>{var n,h,d,p,y,b,w,$;if(!e.orderBy)return 0;for(let A of J3(e.orderBy)){let R=0;switch(A.sortingField){case"start":R=Mi(t.start).diff(a.start);break;case"end":R=Mi(t.end).diff(a.end);break;case"content":R=t.content.localeCompare(a.content);break;case"style":case"color":R=(p=(d=(n=t.style)!=null?n:"")==null?void 0:d.localeCompare((h=a.style)!=null?h:""))!=null?p:0;break;case"description":R=($=(w=(y=t.cDescription)!=null?y:"")==null?void 0:w.localeCompare((b=a.cDescription)!=null?b:""))!=null?$:0;break}if(R!==0)return A.sortingOrder*R}return 0},J3=e=>e.map(a=>(a=a.trim(),{sortingField:a.startsWith("-")?a.substring(1):a,sortingOrder:a.startsWith("-")?-1:1})),Q3=(e=>(e[e.DESC=-1]="DESC",e[e.ASC=1]="ASC",e))(Q3||{}),dN=">",CL=class{constructor(e=BC){this.errors=[],this.items=[],this.markers=[],this.groups=[],this.groupMap={},this.flags={},this.locale=e}parse(e,a){this.settings=a;let t=e.split(`
`);if(this._resetVars(),t.forEach((y,b)=>{y=y.trim();let w=b+1;y.startsWith("#")||(y.startsWith("-")?this._parseEvent(y,w):y.startsWith("@")?this._parsePeriod(y,w):y.startsWith("*")?this._parsePoint(y,w):y.startsWith("=")?this._parseMarker(y,w):y.startsWith(dN)?this._parseFlag(y,w):y&&this._addParserError(w,`Unrecognized format: ${y}`))}),this.errors.length>0)throw new Error(this.errors.join(";;"));let n=this.flags,h=this.items,d=this.markers,p=this.groups;return{items:h,markers:d,groups:p,flags:n}}_parseTimeItem(e,a){let t="[-@=\\*]",n="(-?\\d{1,}(-?(\\d{2})?-?(\\d{2})?T?(\\d{2})?:?(\\d{2})?:?(\\d{2})?)?)",h="\\s*",d="([^-\\d\\s]*?)?",p="(#(\\w+))?",y="(\\{([^}]+)\\})?",b="(.+?)",w="(\\|\\s*(?<!\\[\\[[^\\]]*)\\s*(.*))?",$=new RegExp(`${t}${h}\\[${h}${n}?${h}${d}${h}${n}?${h}\\]${h}${p}${h}${y}${h}${b}${h}${w}$`),A=e.match($);if(A){let[,R,,,,,,,Y,V,,,,,,,,oe,,G,ae,,ve]=A,ye=new Date().toISOString().split("T")[0],pe=ae?this._extractWikiLink(ae):null,Se=ve?this._extractWikiLink(ve):void 0,ze=pe||Se;return{start:ip(R||ye),separator:Y,end:Y?ip(V||ye):void 0,color:oe,groupName:G,content:ae,description:ve,cLink:ze}}else return this._addParserError(a,`Invalid format: ${e}`),null}_constructItem({content:e,start:a,separator:t,end:n,groupName:h,color:d,lineNumber:p,type:y="default",cLink:b}){this._validateDates(a,n,t,p);let w=h?this._getOrCreateGroupId(h):null,$="";d&&($+=`background-color: ${this._mapToThemeColor(d,y==="background"?"opaque":"solid")};`),y==="point"&&($+=d?"color: black !important;":"color: var(--text-normal) !important;");let A=(y==="point"||y==="default")&&b,R="";return R+=A?"is-link":"",a&&n&&this.settings.roundRanges&&(R+=" with-caps"),{content:e||"",start:aa(a),end:n&&aa(a)!==aa(n)?aa(n):void 0,group:w,style:$.length?$:void 0,className:R,cLink:b,...y==="default"?{}:{type:y}}}_parseEvent(e,a){let t=this._parseTimeItem(e,a);if(t){let{start:n,separator:h,end:d,color:p,groupName:y,content:b,description:w,cLink:$}=t;this.items.push({...this._constructItem({content:b||"\xA0",start:n,separator:h,end:d,groupName:y,color:p,lineNumber:a,type:"default",cLink:$}),cDescription:w||void 0,cLink:$})}}_parsePeriod(e,a){let t=this._parseTimeItem(e,a);if(t){let{start:n,separator:h,end:d,color:p,groupName:y,content:b,description:w}=t;this.items.push(this._constructItem({content:w?b+" | "+w:b,start:n,separator:h,end:d,groupName:y,color:p,lineNumber:a,type:"background"}))}}_parsePoint(e,a){let t=this._parseTimeItem(e,a);if(t){let{start:n,separator:h,color:d,groupName:p,content:y,description:b,cLink:w}=t;this.items.push({...this._constructItem({content:y||"\xA0",start:n,separator:h,end:void 0,groupName:p,color:d,lineNumber:a,type:"point",cLink:w}),cDescription:b||void 0,cLink:w})}}_parseMarker(e,a){let t=e.match(/^=\s*\[(.*?)]\s*(.*)?$/);if(t){let[,n,h]=t;this.markers.push({start:aa(n).toISOString(),content:h||""})}else this._addParserError(a,`Invalid marker format: ${e}`)}_parseFlag(e,a){var y,b;let t="(\\w+)(?:\\s+(.+))?$",n=new RegExp(`${dN}\\s*${t}`,"i"),h=e.match(n);if(!h)return;let d=(y=h[1])==null?void 0:y.toLocaleLowerCase(),p=((b=h[2])==null?void 0:b.split("|"))||[];switch(d){case"orderby":this.flags.orderBy=p;break;case"defaultview":if(!p.length){this._addParserError(a,`Missing dates in DEFAULTVIEW flag: ${e}`);return}if(p.length<2){this._addParserError(a,`Must provide a start and end date for DEFAULTVIEW flag in format start|end: ${e}`);return}try{this._validateDates(aa(p[0]).toISOString().split("T")[0],aa(p[1]).toISOString().split("T")[0],"~",a),this.flags.defaultView={start:aa(p[0]).toISOString(),end:aa(p[1]).toISOString()}}catch($){this._addParserError(a,`${$.message}: ${e}`)}break;case"notoday":this.flags.noToday=!0;break;case"height":if(!p.length){this._addParserError(a,`Must provide number of pixels for HEIGHT flag (ex: 500): ${e}`);return}let w=p[0].trim();if(w.match(/\s/)){this._addParserError(a,`Must provide a single number (of pixels) for HEIGHT flag (ex: 500): ${e}`);return}if(isNaN(Number(w))){this._addParserError(a,`Must provide a number (of pixels) for HEIGHT flag (ex: 500): ${e}`);return}this.flags.height=Number(w);break;default:this._addParserError(a,`Unrecognized flag: ${e}`);break}}_getOrCreateGroupId(e){if(this.groupMap[e]!==void 0)return this.groupMap[e];{let a=this.groups.length+1;return this.groups.push({id:a,content:e}),this.groupMap[e]=a,a}}_extractWikiLink(e){let a=/\[\[([^\]]+)(\|([^\]]+))?\]\]/,t=e.match(a);return t?t[1]:void 0}_mapToThemeColor(e,a){var h,d,p;let t=(h=this.settings)==null?void 0:h.theme;if((d=t==null?void 0:t.colorMap)!=null&&d[e]){let y=t.colorMap[e];if(typeof y=="string")return this._applyOpacityToColor(y,a);if(typeof y=="object"){if(a==="solid"&&y.solid)return y.solid;if(a!=="solid"&&y.transparent)return y.transparent;if(y.solid)return this._applyOpacityToColor(y.solid,a)}}if((p=this.settings)!=null&&p.colorMap&&this.settings.colorMap[e])return this._applyOpacityToColor(this.settings.colorMap[e],a);let n={red:"red",green:"green",blue:"blue",yellow:"yellow",orange:"orange",purple:"purple",pink:"pink",cyan:"cyan"};if(n[e])return a==="solid"?`var(--chronos-color-${n[e]})`:`rgba(var(--chronos-color-${n[e]}-rgb), var(--chronos-opacity))`;if(/^[0-9A-Fa-f]{6}$/.test(e))return this._hexToColor(e,a);console.warn(`Color "${e}" not recognized as named color or hex code.`)}_applyOpacityToColor(e,a){if(a==="solid")return e;if(e.startsWith("var(--chronos-color-")&&e.endsWith(")")){let n=e.match(/var\(--chronos-color-(\w+)\)/);if(n&&n[1])return`rgba(var(--chronos-color-${n[1]}-rgb), var(--chronos-opacity))`}let t=e.match(/^#?([0-9A-Fa-f]{6})$/);return t?this._hexToColor(t[1],a):e.match(/^rgb\(/)?e.replace("rgb(","rgba(").replace(")",", var(--chronos-opacity))"):e}_hexToColor(e,a){let t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),h=parseInt(e.substr(4,2),16);return a==="solid"?`rgb(${t}, ${n}, ${h})`:`rgba(${t}, ${n}, ${h}, var(--chronos-opacity))`}_ensureChronologicalDates(e,a,t){if(e&&a){let n=aa(e),h=aa(a);n>h&&this._addParserError(t,`Start date (${e}) is after end date (${a}).`)}}_ensureCorrectDateSeparator(e,a){if(e!=="~"){let t=`Invalid date separator "${e}". Dates in a range must be separated by a tilde (~).`;this._addParserError(a,t)}}_validateDate(e,a){try{gN(e)}catch(t){this._addParserError(a,t.message)}}_validateDates(e,a,t,n){this._validateDate(e,n),a&&this._validateDate(a,n),t&&this._ensureCorrectDateSeparator(t,n),this._ensureChronologicalDates(e,a,n)}_addParserError(e,a){this.errors.push(`Line ${e}: ${a}`)}_clearErrors(){this.errors=[]}_clearItems(){this.items=[]}_clearMarkers(){this.markers=[]}_clearGroups(){this.groups=[]}_clearFlags(){this.flags={}}_resetVars(){this._clearErrors(),this._clearItems(),this._clearMarkers(),this._clearGroups(),this._clearFlags()}},k6=qV(ZV()),K_e=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
<circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="2" fill="none"/>
<line x1="12" y1="2" x2="12" y2="6" stroke="currentColor" stroke-width="2"/>
<line x1="12" y1="18" x2="12" y2="22" stroke="currentColor" stroke-width="2"/>
<line x1="2" y1="12" x2="6" y2="12" stroke="currentColor" stroke-width="2"/>
<line x1="18" y1="12" x2="22" y2="12" stroke="currentColor" stroke-width="2"/>
</svg>`;function EL(e){let a=e.replace(/(\d+)(st|nd|rd|th)/,"$1"),t=new Date(a);return isNaN(t)&&console.error("Invalid date string in custom marker title"),t.toISOString()}var eW=["ar","fa","he","ks","ku","ur","yi"];function tW(e){return eW.includes(e)}var X_e=["af","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en","eo","es","et","eu","fi","fr","ga","gl","gu","hi","hr","hu","hy","id","is","it","ja","jv","ka","kk","km","kn","ko","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","nb","ne","nl","nn","pl","pt","ro","ru","si","sk","sl","so","sq","sr","su","sv","sw","ta","te","th","tr","uk","vi","xh","zh-cn","zh-tw","zu"],Z_e=[...X_e,...eW].sort();function kg(e,a){switch(a){case"en":return`${e.getUTCFullYear()}`;case"ja":case"zh":case"zh-cn":case"zh-tw":return`${e.getUTCFullYear()}\u5E74`;case"ko":return`${e.getUTCFullYear()}\uB144`;case"ru":return`${e.getUTCDate()} \u0433.`;default:return`${e.getUTCFullYear()}`}}function fN(e){return e.getUTCMonth()===0&&e.getUTCDate()===1&&e.getUTCHours()===0&&e.getUTCMinutes()===0&&e.getUTCSeconds()===0}function S6(e,a){return fN(e)&&fN(a)}function YC(e,a=null,t){let n=aa(e),h=a?aa(a):null,d={month:"short",timeZone:"UTC"},p={month:"short",day:"numeric",year:"numeric",timeZone:"UTC"},y=tW(t),b=n.toLocaleDateString(t,d);if(h&&n.getUTCFullYear()===h.getUTCFullYear()&&n.getUTCMonth()===h.getUTCMonth()&&n.getUTCDate()===h.getUTCDate())return y?`${n.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()}`:n.toLocaleDateString(t,p);if(h&&n.getUTCFullYear()===h.getUTCFullYear()&&n.getUTCMonth()===h.getUTCMonth()){if(y)return`${n.getUTCDate()}-${h.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()}`;switch(t){case"en":return`${b} ${n.getUTCDate()}-${h.getUTCDate()}, ${n.getUTCFullYear()}`;case"ja":case"zh":return`${kg(n,t)}${b}${n.getUTCDate()}~${h.getUTCDate()}\u65E5`;case"ko":return`${kg(n,t)}\uB144 ${b}${n.getUTCDate()}~${h.getUTCDate()}\uC77C`;case"ru":return`${n.getUTCDate()}-${h.getUTCDate()} ${b} ${kg(n,t)}`;default:return`${n.getUTCDate()}-${h.getUTCDate()} ${b} ${n.getUTCFullYear()}`}}else if(h){let w=h.toLocaleDateString(t,d);return y?S6(n,h)?`\u200E${n.getUTCFullYear()} - \u200E${h.getUTCFullYear()}`:`${n.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()} - ${h.getUTCDate()} \u200E${w} \u200E${h.getUTCFullYear()}`:S6(n,h)?`${kg(n,t)} - ${kg(h,t)}`:`${n.toLocaleDateString(t,p)} - ${h.toLocaleDateString(t,p)}`}else return fN(n)?kg(n,t):y?`${n.getUTCDate()} \u200E${b} \u200E${n.getUTCFullYear()}`:n.toLocaleDateString(t,p)}var x6,J_e=((x6=Mi.clone)==null?void 0:x6.call(Mi))||Mi;function rW(e,a){let t=J_e(e).locale(a.selectedLocale);return a.useUtc?t.utc():t}var iW="```chronos\n\n```",nW=`\`\`\`chronos
- [2020] Event 1
- [2020-01-04~2020-01-14] Event 2
- [2020-01-10] Event 3
@ [2020-01-06~2020-01-10] Period 1
\`\`\``,aW=`\`\`\`chronos
@ [1888-09-26~1965-01-04] {T.S. Eliot} Life: 1888-1965
- [1949] {T.S. Eliot} "The Cocktail Party" | A play
- [1920] {T.S. Eliot} "The Sacred Wood"
- [1922] {T.S. Eliot} "The Wasteland"
@ [1899-08-24~1986-06-14] {Jorge Luis Borges} Life: 1899-1986
- [1944] {Jorge Luis Borges} "Ficciones"
- [1949] #cyan {Jorge Luis Borges} "El Aleph"
- [1962] {Jorge Luis Borges} "Labyrinths"
\`\`\``,oW=`# Chronos Cheatsheet
After installing the Chronos Timeline plugin for Obsidian, copy and paste this whole markdown file into a file in your vault to play around and learn the syntax.
Hover on a timeline and click the Edit button in the upper right to play with the data.
## Date formats
Chronos can visualize dates from the year down to the second level, using the syntax \`YYYY-MM-DDThh:mm:ss\`.
The only required component of a date is the year (\`YYYY\`). Beyond that, you can specify additional time granularity as needed for your use case.
If not explicitly provided:
- The month and day default to \`01\` (January and the 1st)
- The hour, minute, and second default to \`00\` (top of the hour or minute)
### Examples
\`\`\`chronos
- [2020] A year
- [2020-02] A month
- [2020-02-28] A day
- [2020-02-28T12] An hour
- [2020-02-28T12:30] A minute
- [2020-02-28T12:30:09] A second
\`\`\`
## Events
**Full Syntax**
\`\`\`
- [Date~Date] #Color {Group Name} Event Name | Description
\`\`\`
- The second Date, Color, Group Name, Event Name, and Description are optional
- Description appears when you hover on an event in the timeline
### Examples
#### Single Date
**Syntax**
\`\`\`
- [Date] Event Name
\`\`\`
\`\`\`chronos
- [1879-03-14] Einstein born
\`\`\`
#### Date range
**Syntax**
\`\`\`
- [Date~Date] Event Name
\`\`\`
\`\`\`chronos
- [1991~2001] Time I believed in Santa
\`\`\`
#### Date range with description
**Syntax**
\`\`\`
- [Date~Date] Event Name| Description
\`\`\`
\`\`\`chronos
- [1991~2001] Time I believed in Santa | ended when my brother tried to videotape Santa with a hidden camera
\`\`\`
#### With color
See available [Colors](#colors)
**Syntax**
\`\`\`
- [Date~Date] #Color Event Name| Description
\`\`\`
\`\`\`chronos
- [2001~2009] #red Bush
- [2009~2017] #blue Obama
- [2017~2021] #red Trump
- [2021~2025] #blue Biden
\`\`\`
#### With groups
**Syntax**
\`\`\`
- [Date(~Date)] {Group Name} Event Name| Description
\`\`\`
\`\`\`chronos
@ [1892-10-08~1941-08-31] {Marina Tsvetaeva} 1892-1941
- [1916] {Marina Tsvetaeva} "\u041F\u043E\u0434\u0440\u0443\u0433\u0430"
- [1928] {Marina Tsvetaeva} "\u041F\u043E\u044D\u043C\u0430 \u043A\u043E\u043D\u0446\u043E\u0432"
- [1941] {Marina Tsvetaeva} "\u0417\u0430\u043F\u0438\u0441\u043A\u0438 \u043E \u043F\u043E\u044D\u0437\u0438\u0438"
@ [1899-08-24~1986-06-14] {Jorge Luis Borges} 1899-1986
- [1944] {Jorge Luis Borges} "Ficciones"
- [1949] {Jorge Luis Borges} "El Aleph"
- [1962] {Jorge Luis Borges} "Labyrinths"
\`\`\`
## Periods
**Full Syntax**
\`\`\`
@ [Date~Date] #Color {Group Name} Period Name
\`\`\`
- Color, Group Name, and Period Name are optional
### Examples
#### Basic
\`\`\`chronos
@ [-300~250] Yayoi Period
- [-100] Introduction of rice cultivation
- [-57] Japan\u2019s first recorded contact with China
\`\`\`
#### With color
See available [Colors](#colors)
\`\`\`chronos
@ [-300~250] #red Yayoi Period
- [-100] Introduction of rice cultivation
- [-57] Japan\u2019s first recorded contact with China
@ [250~538] Kofun Period
- [250] Construction of keyhole-shaped kofun burial mounds begins
- [369] Yamato state sends envoys to Korea
\`\`\`
## Points
**Syntax**
\`\`\`
* [Date] Point Name | Description
\`\`\`
\`\`\`chronos
- [2024-02-26~2024-03-10] Tournament
* [2024-02-26] Game 1 | Austin
* [2024-02-28] Game 2 | Los Angeles
* [2024-03-06] Game 3 | Tokyo
* [2024-03-10] Game 4 | Jakarta
\`\`\`
## Markers
**Syntax**
\`\`\`
= [Date] Marker Name
\`\`\`
### Examples
\`\`\`chronos
= [1440] Invention of the Gutenberg Press
- [1455] Gutenberg Bible Printed
@ [1501~1600] The Spread of Printing
- [1517] Martin Luther's 95 Theses
\`\`\`
## Advanced example
\`\`\`chronos
- [1945-07-17] {Europe} Potsdam Conference | where post-WWII Europe is divided
- [1947-03-12] {USA} Truman Doctrine | committing the U.S. to containing communism
- [1948-06-24~1949-05-12] {Europe} Berlin Blockade | and Airlift in response to Soviet actions in Berlin
- [1949-04-04] {Europe} Formation of NATO
# Early Cold War
@ [1957~1969] #cyan {USSR} Space Race
@ [1957~1969] #cyan {USA} Space Race
- [1950-06-25~1953-07-27] {Asia} Korean War | between North and South Korea
- [1955-05-14] {USSR} Warsaw Pact | in response to NATO
- [1957-10-04] #cyan {USSR} Sputnik launched | initiating the Space Race
- [1961-04-17] {Cuba} Bay of Pigs Invasion | in Cuba
# Height of Tensions
- [1962-10-16] {Cuba} Cuban Missile Crisis | a peak confrontation between the U.S. and USSR
- [1963-08-05] {Global} Partial Nuclear Test Ban Treaty signed
- [1969-07-20] #cyan {USA} Apollo 11 Moon landing | U.S. wins the Space Race
- [1972-05-26] {Global} SALT I signed | first Strategic Arms Limitation Treaty
# D\xE9tente Period
- [1979-12-24~1989-02-15] {USSR} Soviet-Afghan War | straining Soviet resources
- [1983-03-23] {USA} Reagan announces the Strategic Defense Initiative (SDI)
- [1986-04-26] {USSR} Chernobyl nuclear disaster
- [1987-12-08] {Global} INF Treaty | signed, eliminating intermediate-range nuclear missiles
# Late Cold War
- [1989-11-09] {Europe} Fall of the Berlin Wall | symbolizing the end of Cold War tensions
- [1991-07-31] {Global} START I Treaty signed | further arms reduction
- [1991-12-26] {USSR} Dissolution of the Soviet Union | officially ending the Cold War
= [1991-12-26] End of the Cold War
\`\`\`
## Ordering
**Order by start date**
\`\`\`chronos
> ORDERBY start
- [2026~2028] Event D
- [2024~2028] Event B
- [2025~2030] #red Event C
- [2020~2030] #red Event A
\`\`\`
**Order by start (descending)**
\`\`\`chronos
> ORDERBY -start
- [2026~2028] Event D
- [2024~2028] Event B
- [2025~2030] #red Event C
- [2020~2030] #red Event A
\`\`\`
**Order by color and start**
\`\`\`chronos
> ORDERBY color|start
- [2026~2028] Event D
- [2024~2028] Event B
- [2025~2030] #red Event C
- [2020~2030] #red Event A
\`\`\`
## Default view dates
Use the \`> DEFAULTVIEW start|end\` flag to specify default start and end dates for your timeline's initial load
\`\`\`chronos
> DEFAULTVIEW -3000|3000
- [2024] AGI
\`\`\`
## Colors
- \`#red\`
- \`#orange\`
- \`#yellow\`
- \`#green\`
- \`#blue\`
- \`#purple\`
- \`#pink\`
- \`#cyan\`
You can also use valid six-digit color hexcodes. Upper or lowercase is fine.
example (Lavendar):
- #A379C9
- #a379c9
`,Q_e=`Generate timelines in Markdown using Chronos syntax, a simple line-by-line format for capturing events, periods, and markers.
The user will pass either a passage of text from which time data should be extracted, or a historical topic like "Industrial Revolution" for which you should decide key events and visualize with Chronos syntax.
### Chronos Syntax Overview:
1. **Events**: \`- [Date~Date] Event Name | Description\`
- The second Date, Event Name, and Description are optional.
2. **Periods**: \`@ [Date~Date] Period Name\`
- Requires both start and end Dates. Period Name is optional.
- Periods NEVER have descriptions
3. **Points**: \`* [Date] Event Name | Description\`
- Descriptions are optional
4. **Markers**: \`= [Date] Marker Name\`
- Requires a single Date.
### Rules:
- Important: the items should be wrapped in a codeblock with language "chronos"
- Important: keep Period Names and Event Names as brief as possible
- Important: DO NOT use groups if there is only one group
- assume that mention of today is today's date
- **Date format**: \`YYYY-MM-DDThh:mm:ss\`, with minimum granularity required (e.g., just year).
- Use \`#\` at the start of a line to add ignored comments.
- Events and Periods support optional modifiers:
- **Colors**: e.g., \`$red, #blue\`.
- **Groups**: \`{Group Name}\` (case-sensitive, can include spaces)
- modifers must be added in this order: \`- [Date~Date] #Color {Group Name} Event Name\`
- Possible colors: #red, #orange, #yellow, #green, #blue, #purple, #pink, #cyan
- BCE Dates: Represented with \`-\` (e.g., \`-10000\` for 10000 BCE).
- Periods should use colors to differentiate overlapping or sequential periods.
- Focus on simplicity; not all item types need to be used
### Example 1: Timeline of events in Cold War
\`\`\`chronos
- [1947-03-12] Truman Doctrine | Committing the U.S. to containing communism
- [1948-06-24~1949-05-12] Berlin Blockade | Soviet blockade and Allied airlift
@ [1947-01-01~1953-12-31] Early Cold War
- [1957-10-04] Sputnik launched | Start of the Space Race
@ [1963-01-01~1979-12-31] #red D\xE9tente Period
= [1991-12-26] End of the Cold War
\`\`\`
### Example 2: Timeline life and works of two authors
\`\`\`chronos
@ [1888-09-26~1965-01-04] {T.S. Eliot} Life: 1888-1965
- [1949] {T.S. Eliot} "The Cocktail Party" | A play
- [1920] {T.S. Eliot} "The Sacred Wood"
- [1922] {T.S. Eliot} "The Wasteland"
@ [1899-08-24~1986-06-14] #cyan {Jorge Luis Borges} Life: 1899-1986
- [1944] #cyan {Jorge Luis Borges} "Ficciones"
- [1949] #cyan {Jorge Luis Borges} "El Aleph"
- [1962] #cyan {Jorge Luis Borges} "Labyrinths"
\`\`\`
### Example 3: Tounement with games as Points
\`\`\`chronos
- [2024-02-26~2024-03-10] Tournament
* [2024-02-26] Game 1 | Austin
* [2024-02-28] Game 2 | Los Angeles
* [2024-03-06] Game 3 | Tokyo
* [2024-03-10] Game 4 | Jakarta
\`\`\`
`,S_=`
:root {
--chronos-semi-gray: hsla(0, 0%, 50%, 0.15);
--chronos-opacity: 0.2;
--chronos-bg-primary: #ffffff;
--chronos-bg-secondary: #f6f8fa;
--chronos-text-normal: #24292e;
--chronos-text-muted: #586069;
--chronos-text-on-accent: #ffffff;
--chronos-accent: #0366d6;
--chronos-accent-hover: #0366d6e6;
--chronos-accent-alpha: rgba(3, 102, 214, 0.2);
--chronos-border: #e1e4e8;
--chronos-border-active: rgba(3, 102, 214, 0.5);
--chronos-interactive: #0366d6;
--chronos-interactive-hover: #005cc5;
--chronos-radius: 6px;
--chronos-radius-small: 3px;
--chronos-icon-color: #586069;
--chronos-bg-text: #000000;
/* Color palette for timeline items */
--chronos-color-red: #dc3545;
--chronos-color-red-rgb: 220, 53, 69;
--chronos-color-green: #28a745;
--chronos-color-green-rgb: 40, 167, 69;
--chronos-color-blue: #007bff;
--chronos-color-blue-rgb: 0, 123, 255;
--chronos-color-yellow: #ffc107;
--chronos-color-yellow-rgb: 255, 193, 7;
--chronos-color-orange: #fd7e14;
--chronos-color-orange-rgb: 253, 126, 20;
--chronos-color-purple: #6f42c1;
--chronos-color-purple-rgb: 111, 66, 193;
--chronos-color-pink: #e83e8c;
--chronos-color-pink-rgb: 232, 62, 140;
--chronos-color-cyan: #17a2b8;
--chronos-color-cyan-rgb: 23, 162, 184;
}
.chronos-timeline-container {
background-color: var(--chronos-bg-secondary);
position: relative;
border-radius: var(--chronos-radius);
}
.chronos-timeline-container .chronos-timeline-refit-button {
position: absolute;
bottom: 2px;
right: 5px;
padding: 2px 5px;
background-color: transparent;
border: none;
box-shadow: none;
border-radius: 5px;
cursor: pointer;
z-index: 99;
color: var(--chronos-icon-color);
}
.chronos-timeline-container .chronos-timeline-refit-button:hover {
background-color: var(--chronos-semi-gray);
fill: currentColor;
}
.chronos-timeline-container .chronos-timeline-refit-button svg {
fill: currentColor;
width: 16px;
border-radius: 0;
}
.chronos-error-message-container {
padding: 1rem 1.5rem;
color: var(--chronos-text-normal);
}
.vis-timeline {
border: 1px solid transparent;
border-radius: 0;
cursor: default;
}
.vis-timeline.vis-active {
border-color: var(--chronos-border-active);
border-radius: 0;
}
.vis-label {
color: var(--chronos-text-muted);
}
.vis-custom-time,
.vis-custom-time-marker {
color: var(--chronos-text-on-accent);
background-color: var(--chronos-text-normal);
}
.chronos-timeline-container .vis-item.vis-background {
background-color: var(--chronos-accent-alpha);
z-index: 1;
}
.chronos-timeline-container .vis-item.vis-background .vis-item-content {
color: var(--chronos-bg-text);
}
/* Ensure points and events appear above background periods */
.chronos-timeline-container .vis-item.vis-point {
z-index: 10;
pointer-events: auto;
border: none;
}
.chronos-timeline-container .vis-item.vis-box,
.chronos-timeline-container .vis-item.vis-range {
z-index: 5;
pointer-events: auto;
}
/* Ensure item content is hoverable */
.chronos-timeline-container .vis-item-content {
pointer-events: auto;
position: relative;
z-index: inherit;
}
.chronos-timeline-container .vis-item.vis-selected {
border-color: var(--chronos-interactive-hover);
background-color: var(--chronos-interactive-hover);
color: var(--chronos-text-on-accent);
}
.chronos-timeline-container .vis-item {
border-radius: var(--chronos-radius-small);
border-color: var(--chronos-accent);
}
.chronos-timeline-container .vis-box,
.chronos-timeline-container .vis-range {
cursor: default;
border-color: transparent;
background-color: var(--chronos-interactive);
color: var(--chronos-text-on-accent);
z-index: 5;
pointer-events: auto;
}
.chronos-timeline-container .vis-range.with-caps {
border-radius: 50px;
padding-left: 8px;
}
/* Link styles */
.chronos-timeline-container .is-link {
cursor: pointer;
}
.chronos-timeline-container .is-link .vis-item-content {
text-transform: none;
text-decoration: underline;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: currentColor;
text-underline-offset: 5px;
}
.chronos-timeline-container .vis-item-content {
text-decoration: inherit;
}
.chronos-timeline-container .vis-point {
cursor: default;
z-index: 10;
pointer-events: auto;
}
.chronos-timeline-container .vis-text {
color: var(--chronos-text-muted);
}
.chronos-timeline-container .vis-dot,
.chronos-timeline-container .vis-line {
background-color: var(--chronos-interactive);
color: var(--chronos-interactive);
}
.vis-custom-time[title]::after {
content: attr(title);
display: none;
}
.chronos-timeline-container
:is(
.vis-timeline,
.vis-panel.vis-center,
.vis-panel.vis-left,
.vis-panel.vis-right,
.vis-panel.vis-top,
.vis-panel.vis-bottom
) {
border-color: var(--chronos-border);
}
.chronos-timeline-container .vis-time-axis .vis-grid.vis-major {
border-color: var(--chronos-border);
}
.chronos-timeline-container .vis-time-axis .vis-grid.vis-minor {
border-color: var(--chronos-semi-gray);
}
.chronos-timeline-container .vis-foreground > .vis-group,
.chronos-timeline-container .vis-labelset > .vis-label {
border-bottom-color: var(--chronos-border);
}
.chronos-timeline-container .vis-label {
color: var(--chronos-text-muted);
}
[data-theme="light"],
body:not([data-theme]) {
--chronos-bg-primary: #ffffff;
--chronos-bg-secondary: #f6f8fa;
--chronos-text-normal: #24292e;
--chronos-text-muted: #586069;
--chronos-text-on-accent: #ffffff;
--chronos-accent: #0366d6;
--chronos-accent-hover: #0366d6e6;
--chronos-accent-alpha: rgba(3, 102, 214, 0.2);
--chronos-border: #e1e4e8;
--chronos-border-active: rgba(3, 102, 214, 0.5);
--chronos-interactive: #0366d6;
--chronos-interactive-hover: #005cc5;
--chronos-icon-color: #586069;
--chronos-bg-text: #000000;
/* Light theme color palette */
--chronos-color-red: #dc3545;
--chronos-color-red-rgb: 220, 53, 69;
--chronos-color-green: #28a745;
--chronos-color-green-rgb: 40, 167, 69;
--chronos-color-blue: #007bff;
--chronos-color-blue-rgb: 0, 123, 255;
--chronos-color-yellow: #ffc107;
--chronos-color-yellow-rgb: 255, 193, 7;
--chronos-color-orange: #fd7e14;
--chronos-color-orange-rgb: 253, 126, 20;
--chronos-color-purple: #6f42c1;
--chronos-color-purple-rgb: 111, 66, 193;
--chronos-color-pink: #e83e8c;
--chronos-color-pink-rgb: 232, 62, 140;
--chronos-color-cyan: #17a2b8;
--chronos-color-cyan-rgb: 23, 162, 184;
}
/* Dark theme support */
@media (prefers-color-scheme: dark) {
:root {
--chronos-bg-primary: #0d1117;
--chronos-bg-secondary: #161b22;
--chronos-text-normal: #f0f6fc;
--chronos-text-muted: #8b949e;
--chronos-text-on-accent: #ffffff;
--chronos-accent: #58a6ff;
--chronos-accent-hover: #58a6ffe6;
--chronos-accent-alpha: rgba(88, 166, 255, 0.2);
--chronos-border: #30363d;
--chronos-border-active: rgba(88, 166, 255, 0.5);
--chronos-interactive: #58a6ff;
--chronos-interactive-hover: #388bfd;
--chronos-icon-color: #8b949e;
--chronos-bg-text: #ffffff;
/* Dark theme color palette */
--chronos-color-red: #f85149;
--chronos-color-red-rgb: 248, 81, 73;
--chronos-color-green: #3fb950;
--chronos-color-green-rgb: 63, 185, 80;
--chronos-color-blue: #58a6ff;
--chronos-color-blue-rgb: 88, 166, 255;
--chronos-color-yellow: #d29922;
--chronos-color-yellow-rgb: 210, 153, 34;
--chronos-color-orange: #fb8500;
--chronos-color-orange-rgb: 251, 133, 0;
--chronos-color-purple: #a855f7;
--chronos-color-purple-rgb: 168, 85, 247;
--chronos-color-pink: #f0649c;
--chronos-color-pink-rgb: 240, 100, 156;
--chronos-color-cyan: #39d0d8;
--chronos-color-cyan-rgb: 57, 208, 216;
}
}
[data-theme="dark"] {
--chronos-bg-primary: #0d1117;
--chronos-bg-secondary: #161b22;
--chronos-text-normal: #f0f6fc;
--chronos-text-muted: #8b949e;
--chronos-text-on-accent: #ffffff;
--chronos-accent: #58a6ff;
--chronos-accent-hover: #58a6ffe6;
--chronos-accent-alpha: rgba(88, 166, 255, 0.2);
--chronos-border: #30363d;
--chronos-border-active: rgba(88, 166, 255, 0.5);
--chronos-interactive: #58a6ff;
--chronos-interactive-hover: #388bfd;
--chronos-icon-color: #8b949e;
--chronos-bg-text: #ffffff;
/* Dark theme color palette */
--chronos-color-red: #f85149;
--chronos-color-red-rgb: 248, 81, 73;
--chronos-color-green: #3fb950;
--chronos-color-green-rgb: 63, 185, 80;
--chronos-color-blue: #58a6ff;
--chronos-color-blue-rgb: 88, 166, 255;
--chronos-color-yellow: #d29922;
--chronos-color-yellow-rgb: 210, 153, 34;
--chronos-color-orange: #fb8500;
--chronos-color-orange-rgb: 251, 133, 0;
--chronos-color-purple: #a855f7;
--chronos-color-purple-rgb: 168, 85, 247;
--chronos-color-pink: #f0649c;
--chronos-color-pink-rgb: 240, 100, 156;
--chronos-color-cyan: #39d0d8;
--chronos-color-cyan-rgb: 57, 208, 216;
}
`,gR=100;function ewe(e,a){e.setAttribute("title",a)}var pE=class sW{constructor(a,t){this.eventHandlers={};let n,h,d,p;if(a instanceof HTMLElement)n=a,h=t||{selectedLocale:"en",align:"left",clickToUse:!1,roundRanges:!1,useUtc:!0,useAI:!1},d=void 0,p=void 0;else{let y=a;n=y.container,h=y.settings,d=y.callbacks,p=y.cssRootClass}this.container=n,this.settings=h,this.parser=new CL(this.settings.selectedLocale),this.callbacks=d,this.cssRootClass=p,this.setTooltip=this.callbacks&&this.callbacks.setTooltip||ewe,this._attachStylesIfMissing()}_attachStylesIfMissing(){var a;try{let t=this.container&&this.container.ownerDocument||(typeof document!="undefined"?document:void 0),n=(a=this.settings)==null?void 0:a.theme,h=n==null?void 0:n.cssVariables,d=n==null?void 0:n.disableDefaultStyles;if(t){if(d){if(h&&!t.querySelector('style[data-chronos-custom="1"]')){let y=t.createElement("style");y.setAttribute("data-chronos-custom","1");let b=Object.entries(h).map(([w,$])=>` --${w}: ${$};`).join(`
`);y.textContent=`:root {
${b}
}`,t.head&&t.head.appendChild(y)}}else if(!t.querySelector('style[data-chronos-core="1"]')){let y=t.createElement("style");y.setAttribute("data-chronos-core","1");let b=S_;h&&(b=`:root {
${Object.entries(h).map(([$,A])=>` --${$}: ${A};`).join(`
`)}
}
`+b),y.textContent=b,t.head&&t.head.appendChild(y)}}}catch(t){}}static render(a,t,n){let h=new sW(a,n);return h.render(t),h}render(a){try{let{items:t,markers:n,groups:h,flags:d}=this.parser.parse(a,this.settings);this._renderFromResult({items:t,markers:n,groups:h,flags:d})}catch(t){this._handleParseError(t)}}renderParsed(a){this._renderFromResult(a)}on(a,t){this.eventHandlers[a]=t,this.timeline&&this._setupEventHandlers(this.timeline)}_setupEventHandlers(a){Object.keys(this.eventHandlers).forEach(t=>{a.on(t,n=>{this.eventHandlers[t](n)})})}_getTimelineOptions(){return{zoomMax:2997972e8,zoomable:!0,selectable:!0,minHeight:"200px",align:this.settings.align,moment:a=>rW(a,this.settings)}}_renderFromResult({items:a,markers:t,groups:n,flags:h}){var b,w,$,A,R;try{let Y=this.container&&this.container.ownerDocument||(typeof document!="undefined"?document:void 0),V=(b=this.settings)==null?void 0:b.theme,oe=V==null?void 0:V.cssVariables,G=V==null?void 0:V.disableDefaultStyles;if(Y){if(G){if(oe&&!Y.querySelector('style[data-chronos-custom="1"]')){let ve=Y.createElement("style");ve.setAttribute("data-chronos-custom","1");let ye=Object.entries(oe).map(([pe,Se])=>` --${pe}: ${Se};`).join(`
`);ve.textContent=`:root {
${ye}
}`,Y.head&&Y.head.appendChild(ve)}}else if(!Y.querySelector('style[data-chronos-core="1"]')){let ve=Y.createElement("style");ve.setAttribute("data-chronos-core","1");let ye=S_;oe&&(ye=`:root {
${Object.entries(oe).map(([Se,ze])=>` --${Se}: ${ze};`).join(`
`)}
}
`+ye),ve.textContent=ye,Y.head&&Y.head.appendChild(ve)}}}catch(Y){}this.container.classList.add("chronos-timeline-container"),this._applyThemeConfig();let d=this._getTimelineOptions();h!=null&&h.orderBy&&(d.order=Z3(h));let p=((w=h==null?void 0:h.defaultView)==null?void 0:w.start)&&(($=h==null?void 0:h.defaultView)==null?void 0:$.end);if(p&&(d.start=(A=h==null?void 0:h.defaultView)==null?void 0:A.start,d.end=(R=h==null?void 0:h.defaultView)==null?void 0:R.end),h!=null&&h.noToday&&(d.showCurrentTime=!1),h!=null&&h.height&&(d.height=`${h.height}px`,d.verticalScroll=!0),this.cssRootClass){let Y=this.container.querySelector(".chronos-timeline-container");Y?Y.classList.add(this.cssRootClass):this.container.classList.add(this.cssRootClass)}let y=this._createTimeline(a,n,d);this._addMarkers(y,t),this._setupTooltip(y,a),this._createRefitButton(y),this._handleZoomWorkaround(y,n),this.timeline=y,!p&&setTimeout(()=>y.fit(),gR)}_handleParseError(a){let t=document.createElement("div");t.className="chronos-error-message-container",t.innerText=this._formatErrorMessages(a),this.container.appendChild(t)}_formatErrorMessages(a){return`Error(s) parsing chronos markdown.
${a.message.split(";;").map(t=>` - ${t}`).join(`
`)}`}_createTimeline(a,t=[],n){let h;if(t.length){let{updatedItems:d,updatedGroups:p}=this.assignItemsToGroups(a,t);this.items=d,h=new k6.Timeline(this.container,d,this._createDataGroups(p),n)}else h=new k6.Timeline(this.container,a,n),this.items=a;return setTimeout(()=>this._updateTooltipCustomMarkers(),gR),h}_addMarkers(a,t){t.forEach((n,h)=>{let d=`marker_${h}`;a.addCustomTime(new Date(n.start),d);try{a.setCustomTimeMarker(n.content,d,!0)}catch(p){}})}_setupTooltip(a,t){let n=new k_(t);a.on("itemover",h=>{this._showTooltipForItem(h.item,h.event.target,n)}),a.on("itemout",h=>{this._hideTooltipForItem(h.event.target)}),setTimeout(()=>{let h=this.container.querySelector(".vis-timeline");h&&h.querySelectorAll(".vis-item").forEach(p=>{let y=p.getAttribute("data-id");y&&(p.addEventListener("mouseenter",b=>{this._showTooltipForItem(y,b.target,n)}),p.addEventListener("mouseleave",b=>{this._hideTooltipForItem(b.target)}))})},150)}_showTooltipForItem(a,t,n){var d,p;let h=n.get(a);if(h){let y=`${h.content} (${YC(h.start.toISOString(),(p=(d=h.end)==null?void 0:d.toISOString())!=null?p:null,this.settings.selectedLocale)})${h.cDescription?`
`+h.cDescription:""}`,b=this.container.querySelector(".vis-timeline"),w=t;if(b){let $=b.querySelector(`[data-id="${a}"]`)||b.querySelector(`.vis-item[data-id="${a}"]`);$&&(w=$)}this.setTooltip(w,y)}}_hideTooltipForItem(a){a&&a.removeAttribute("title")}_createRefitButton(a){let t=document.createElement("button");t.className="chronos-timeline-refit-button";let d=new DOMParser().parseFromString(K_e,"image/svg+xml").documentElement;t.appendChild(document.importNode(d,!0)),this.setTooltip(t,"Fit all"),t.addEventListener("click",()=>a.fit()),this.container.appendChild(t)}_updateTooltipCustomMarkers(){this.container.querySelectorAll(".vis-custom-time").forEach(t=>{let n=t.getAttribute("title");if(n){let h=n;if(this.settings.selectedLocale==="en"){let p=EL(n);h=YC(p,null,this.settings.selectedLocale)}else h=n.replace(", 0:00:00","").replace(/^.*?:/,"").trim();this.setTooltip(t,h),new MutationObserver(p=>{for(let y of p)y.type==="attributes"&&y.attributeName==="title"&&t.removeAttribute("title")}).observe(t,{attributes:!0})}})}assignItemsToGroups(a,t){let h=[...a],d=t.length?[...t,{id:0,content:" "}]:t;return h=a.map(p=>(t.length&&!p.group&&(p.group=0),p)),{updatedItems:h,updatedGroups:d}}_createDataGroups(a){return new k_(a.map(t=>({id:t.id,content:t.content})))}_handleZoomWorkaround(a,t){t.length&&setTimeout(()=>this._jiggleZoom(a),gR+50)}_jiggleZoom(a){let t=a.getWindow(),n=1.02,h=new Date(t.start.valueOf()-(t.end.valueOf()-t.start.valueOf())*(n-1)/2),d=new Date(t.end.valueOf()+(t.end.valueOf()-t.start.valueOf())*(n-1)/2);a.setWindow(h,d,{animation:!0}),setTimeout(()=>{a.setWindow(t.start,t.end,{animation:!0})},200)}destroy(){this.timeline&&typeof this.timeline.destroy=="function"&&(this.timeline.destroy(),this.timeline=void 0)}_applyThemeConfig(){var t;let a=(t=this.settings)==null?void 0:t.theme;a&&(a.customClass&&this.container.classList.add(a.customClass),a.cssVariables&&Object.entries(a.cssVariables).forEach(([n,h])=>{let d=n.startsWith("--")?n:`--${n}`;this.container.style.setProperty(d,h)}),a.disableDefaultStyles&&this.container.classList.add("chronos-no-default-styles"))}};pE.cheatsheet=oW;pE.templates={blank:iW,basic:nW,advanced:aW};pE.prompts={system:Q_e};var kp=pE,twe={version:"1.0.10"},lW={};mN(lW,{ChronosMdParser:()=>CL,enDateStrToISO:()=>EL,smartDateRange:()=>YC,toPaddedISOZ:()=>ip,toUTCDate:()=>aa,validateUTCDate:()=>gN});var uW={};mN(uW,{CHRONOS_DEFAULT_CSS:()=>S_,ChronosHighlighter:()=>awe,ChronosTimeline:()=>kp,cheatsheet:()=>oW,chronosHighlightCSS:()=>cW,chronosLanguageDefinition:()=>hW,highlightChronosText:()=>iwe,injectChronosHighlightCSS:()=>nwe,registerChronosLanguage:()=>rwe,templateAdvanced:()=>aW,templateBasic:()=>nW,templateBlank:()=>iW});var hW={name:"chronos",aliases:["chronos-md","chronos-markdown"],case_insensitive:!1,keywords:{built_in:"ORDERBY DEFAULTVIEW NOTODAY HEIGHT start end color"},contains:[{className:"comment",begin:"^\\s*#+",end:"$",relevance:0},{className:"meta",begin:"^\\s*>\\s*(ORDERBY|DEFAULTVIEW|NOTODAY|HEIGHT)\\b",end:"$",keywords:"ORDERBY DEFAULTVIEW NOTODAY HEIGHT",contains:[{className:"string",begin:"\\b(start|end|color)\\b"}]},{className:"section",begin:"^\\s*-",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"},{className:"operator",begin:"~"}]},{className:"literal",begin:"#\\w+\\b",relevance:5},{className:"title",begin:"\\{",end:"\\}",relevance:3},{className:"string",begin:"\\|",end:"$",relevance:2}]},{className:"keyword",begin:"^\\s*@",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"},{className:"operator",begin:"~"}]},{className:"literal",begin:"#\\w+\\b",relevance:5},{className:"title",begin:"\\{",end:"\\}",relevance:3},{className:"comment",begin:"\\|",end:"$",relevance:2}]},{className:"attribute",begin:"^\\s*\\*",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"},{className:"operator",begin:"~"}]},{className:"literal",begin:"#\\w+\\b",relevance:5},{className:"title",begin:"\\{",end:"\\}",relevance:3},{className:"comment",begin:"\\|",end:"$",relevance:2}]},{className:"built_in",begin:"^\\s*=",end:"$",contains:[{className:"string",begin:"\\[",end:"\\]",contains:[{className:"number",begin:"-?\\d{1,4}(-\\d{2})?(-\\d{2})?(T\\d{2}(:\\d{2})?(:\\d{2})?)?"}]}]},{className:"link",begin:"\\[\\[",end:"\\]\\]",relevance:3}]},cW=`
/* Chronos Markdown Syntax Highlighting */
.hljs-chronos {
background: #fafbfc;
color: #24292e;
}
/* Line type indicators */
.hljs-chronos .hljs-section {
color: #22863a; /* Events (-) - green */
}
.hljs-chronos .hljs-keyword {
color: #6f42c1; /* Periods (@) - purple */
font-weight: 600;
}
.hljs-chronos .hljs-attribute {
color: #005cc5; /* Points (*) - blue */
}
.hljs-chronos .hljs-built_in {
color: #e36209; /* Markers (=) - orange */
font-weight: 600;
}
/* Date brackets and content */
.hljs-chronos .hljs-string {
color: #032f62; /* Date brackets - dark blue */
font-weight: 500;
}
/* Dates and numbers */
.hljs-chronos .hljs-number {
color: #005cc5; /* Actual dates - blue */
font-weight: 600;
}
/* Range operator ~ */
.hljs-chronos .hljs-operator {
color: #d73a49; /* Range separator - red */
font-weight: bold;
}
/* Colors (#red, #blue, etc.) */
.hljs-chronos .hljs-literal {
color: #e36209; /* Color codes - orange */
font-weight: 600;
}
/* Groups {name} */
.hljs-chronos .hljs-title {
color: #6f42c1; /* Group names - purple */
font-style: italic;
}
/* Comments and descriptions */
.hljs-chronos .hljs-comment {
color: #6a737d; /* Comments and descriptions - gray */
font-style: italic;
}
/* Meta flags */
.hljs-chronos .hljs-meta {
color: #735c0f; /* Flag lines - brown */
font-weight: 600;
}
/* Wiki links */
.hljs-chronos .hljs-link {
color: #0366d6; /* Wiki-style links - blue */
text-decoration: underline;
}
/* Hover effects */
.hljs-chronos .hljs-literal:hover,
.hljs-chronos .hljs-number:hover {
background-color: rgba(255, 212, 0, 0.15);
border-radius: 2px;
}
.hljs-chronos .hljs-title:hover {
background-color: rgba(111, 66, 193, 0.1);
border-radius: 2px;
}
`;function rwe(e){e.registerLanguage("chronos",()=>hW)}function iwe(e,a){try{return a.highlight(e,{language:"chronos"}).value}catch(t){return console.warn("Chronos highlighting failed:",t),e}}function nwe(){let e="chronos-highlight-css";if(document.getElementById(e))return;let a=document.createElement("style");a.id=e,a.textContent=cW,document.head.appendChild(a)}var awe=class{constructor(e,a={}){this.isInitialized=!1,this.textarea=e,this.options={theme:"light",showLineNumbers:!1,highlightCurrentLine:!1,enableHover:!0,...a},this.container=this.createContainer(),this.highlightLayer=this.createHighlightLayer(),this.options.showLineNumbers&&(this.lineNumbersLayer=this.createLineNumbersLayer())}initialize(){this.isInitialized||(this.injectStyles(),this.setupDOM(),this.bindEvents(),this.updateHighlighting(),this.isInitialized=!0)}destroy(){if(!this.isInitialized)return;let e=this.container.parentNode;e&&(e.insertBefore(this.textarea,this.container),e.removeChild(this.container)),this.unbindEvents(),this.isInitialized=!1}updateHighlighting(){if(!this.isInitialized)return;let e=this.textarea.value,a=this.highlightText(e);this.highlightLayer.innerHTML=a,this.syncScroll(),this.lineNumbersLayer&&this.updateLineNumbers(e)}createContainer(){let e=document.createElement("div");return e.className="chronos-highlight-container",e}createHighlightLayer(){let e=document.createElement("div");return e.className="chronos-highlight-layer",e}createLineNumbersLayer(){let e=document.createElement("div");return e.className="chronos-line-numbers",e}setupDOM(){let e=this.textarea.parentNode;e&&(e.insertBefore(this.container,this.textarea),this.container.appendChild(this.textarea),this.lineNumbersLayer&&this.container.appendChild(this.lineNumbersLayer),this.container.appendChild(this.highlightLayer)),this.textarea.classList.add("chronos-highlight-textarea")}bindEvents(){this.textarea.addEventListener("input",()=>this.updateHighlighting()),this.textarea.addEventListener("scroll",()=>this.syncScroll()),this.textarea.addEventListener("resize",()=>this.syncScroll()),window.addEventListener("resize",()=>this.syncScroll())}unbindEvents(){this.textarea.removeEventListener("input",()=>this.updateHighlighting()),this.textarea.removeEventListener("scroll",()=>this.syncScroll()),this.textarea.removeEventListener("resize",()=>this.syncScroll()),window.removeEventListener("resize",()=>this.syncScroll())}syncScroll(){this.highlightLayer.scrollTop=this.textarea.scrollTop,this.highlightLayer.scrollLeft=this.textarea.scrollLeft,this.lineNumbersLayer&&(this.lineNumbersLayer.scrollTop=this.textarea.scrollTop)}updateLineNumbers(e){if(!this.lineNumbersLayer)return;let t=e.split(`
`).map((n,h)=>`<div class="line-number">${h+1}</div>`).join("");this.lineNumbersLayer.innerHTML=t}highlightText(e){return e?e.split(`
`).map(n=>this.highlightLine(n)).map(n=>`<div class="line">${n}</div>`).join(""):""}highlightLine(e){return e.trim()?e.match(/^\s*#+/)?`<span class="chronos-comment">${this.escapeHtml(e)}</span>`:e.match(/^\s*>\s*(ORDERBY|DEFAULTVIEW|NOTODAY|HEIGHT)\b/)?this.highlightFlag(e):e.match(/^\s*-/)?this.highlightTimeItem(e,"event"):e.match(/^\s*@/)?this.highlightTimeItem(e,"period"):e.match(/^\s*\*/)?this.highlightTimeItem(e,"point"):e.match(/^\s*=/)?this.highlightMarker(e):this.escapeHtml(e):"&nbsp;"}highlightFlag(e){return e.replace(/^(\s*>\s*)(ORDERBY|DEFAULTVIEW|NOTODAY|HEIGHT)(\b.*)/,'$1<span class="chronos-flag-keyword">$2</span><span class="chronos-flag-args">$3</span>').replace(/\b(start|end|color)\b/g,'<span class="chronos-flag-option">$1</span>')}highlightTimeItem(e,a){let t=`chronos-${a}`,n=a==="event"?"-":a==="period"?"@":"*",h=new RegExp(`^(\\s*)(${n==="*"?"\\*":n})(\\s*)(\\[.*?\\])(.*?)$`),d=e.match(h);if(!d)return`<span class="${t}">${this.escapeHtml(e)}</span>`;let[,p,y,b,w,$]=d;return this.escapeHtml(p)+`<span class="${t}-indicator">${this.escapeHtml(y)}</span>`+this.escapeHtml(b)+this.highlightDateSection(w)+this.highlightRestOfLine($)}highlightMarker(e){let a=/^(\s*)(=)(\s*)(\[.*?\])(.*?)$/,t=e.match(a);if(!t)return`<span class="chronos-marker">${this.escapeHtml(e)}</span>`;let[,n,h,d,p,y]=t;return this.escapeHtml(n)+`<span class="chronos-marker-indicator">${this.escapeHtml(h)}</span>`+this.escapeHtml(d)+this.highlightDateSection(p)+this.highlightRestOfLine(y)}highlightDateSection(e){return e.replace(/\[/g,'<span class="chronos-bracket">[</span>').replace(/\]/g,'<span class="chronos-bracket">]</span>').replace(/(-?\d{1,4}(-\d{2})?(-\d{2})?(T\d{2}(:\d{2})?(:\d{2})?)?)/g,'<span class="chronos-date">$1</span>').replace(/~/g,'<span class="chronos-range-separator">~</span>')}highlightRestOfLine(e){return e.replace(/(#\w+)\b/g,'<span class="chronos-color">$1</span>').replace(/\{([^}]+)\}/g,'<span class="chronos-group-bracket">{</span><span class="chronos-group">$1</span><span class="chronos-group-bracket">}</span>').replace(/\[\[([^\]]+)\]\]/g,'<span class="chronos-wiki-link">[[</span><span class="chronos-link-content">$1</span><span class="chronos-wiki-link">]]</span>').replace(/(\|)(.*)/,'<span class="chronos-pipe">$1</span><span class="chronos-description">$2</span>')}escapeHtml(e){let a=document.createElement("div");return a.textContent=e,a.innerHTML}injectStyles(){let e="chronos-realtime-highlight-css";if(document.getElementById(e))return;let a=document.createElement("style");a.id=e,a.textContent=this.getCSS(),document.head.appendChild(a)}getCSS(){let e=this.options.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":this.options.theme;return`
/* Chronos Real-time Syntax Highlighting */
.chronos-highlight-container {
position: relative;
display: flex;
width: 100%;
height: 100%;
font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
font-size: 14px;
line-height: 1.5;
}
.chronos-line-numbers {
background: ${e==="dark"?"#2d3748":"#f7fafc"};
border-right: 1px solid ${e==="dark"?"#4a5568":"#e2e8f0"};
color: ${e==="dark"?"#a0aec0":"#718096"};
padding: 1rem 0.5rem;
min-width: 3rem;
text-align: right;
user-select: none;
overflow: hidden;
white-space: nowrap;
}
.chronos-line-numbers .line-number {
height: 1.5em;
font-size: 12px;
}
.chronos-highlight-textarea {
background: transparent !important;
color: transparent;
caret-color: ${e==="dark"?"#ffffff":"#000000"};
resize: none;
border: none;
outline: none;
position: relative;
z-index: 2;
flex: 1;
}
.chronos-highlight-layer {
position: absolute;
top: 0;
left: ${this.options.showLineNumbers?"3rem":"0"};
right: 0;
bottom: 0;
padding: 1rem;
pointer-events: none;
overflow: hidden;
white-space: pre-wrap;
word-wrap: break-word;
background: ${e==="dark"?"#1a202c":"#ffffff"};
color: ${e==="dark"?"#e2e8f0":"#2d3748"};
z-index: 1;
}
.chronos-highlight-layer .line {
min-height: 1.5em;
}
/* Event indicators (-) */
.chronos-event-indicator {
color: ${e==="dark"?"#68d391":"#22863a"};
font-weight: 600;
}
/* Period indicators (@) */
.chronos-period-indicator {
color: ${e==="dark"?"#b794f6":"#6f42c1"};
font-weight: 600;
}
/* Point indicators (*) */
.chronos-point-indicator {
color: ${e==="dark"?"#63b3ed":"#005cc5"};
font-weight: 600;
}
/* Marker indicators (=) */
.chronos-marker-indicator {
color: ${e==="dark"?"#f6ad55":"#e36209"};
font-weight: 600;
}
/* Date brackets */
.chronos-bracket {
color: ${e==="dark"?"#4fd1c7":"#032f62"};
font-weight: 500;
}
/* Dates */
.chronos-date {
color: ${e==="dark"?"#63b3ed":"#005cc5"};
font-weight: 600;
}
/* Range separator */
.chronos-range-separator {
color: ${e==="dark"?"#fc8181":"#d73a49"};
font-weight: bold;
}
/* Colors */
.chronos-color {
color: ${e==="dark"?"#f6ad55":"#e36209"};
font-weight: 600;
}
/* Groups */
.chronos-group-bracket {
color: ${e==="dark"?"#b794f6":"#6f42c1"};
}
.chronos-group {
color: ${e==="dark"?"#b794f6":"#6f42c1"};
font-style: italic;
}
/* Descriptions */
.chronos-pipe {
color: ${e==="dark"?"#a0aec0":"#6a737d"};
}
.chronos-description {
color: ${e==="dark"?"#a0aec0":"#6a737d"};
font-style: italic;
}
/* Comments */
.chronos-comment {
color: ${e==="dark"?"#a0aec0":"#6a737d"};
font-style: italic;
}
/* Flags */
.chronos-flag-keyword {
color: ${e==="dark"?"#d69e2e":"#735c0f"};
font-weight: 600;
}
.chronos-flag-args {
color: ${e==="dark"?"#e2e8f0":"#2d3748"};
}
.chronos-flag-option {
color: ${e==="dark"?"#f6ad55":"#e36209"};
}
/* Wiki links */
.chronos-wiki-link {
color: ${e==="dark"?"#63b3ed":"#0366d6"};
}
.chronos-link-content {
color: ${e==="dark"?"#63b3ed":"#0366d6"};
text-decoration: underline;
}
/* Hover effects */
${this.options.enableHover?`
.chronos-color:hover,
.chronos-date:hover {
background-color: ${e==="dark"?"rgba(255, 212, 0, 0.2)":"rgba(255, 212, 0, 0.15)"};
border-radius: 2px;
}
.chronos-group:hover {
background-color: ${e==="dark"?"rgba(183, 148, 246, 0.2)":"rgba(111, 66, 193, 0.1)"};
border-radius: 2px;
}
`:""}
`}},dW={};mN(dW,{Color:()=>C6,DEFAULT_LOCALE:()=>BC,FLAGS_PREFIX:()=>dN,Opacity:()=>E6,SortingOrder:()=>Q3,chronosMoment:()=>rW,enDateStrToISO:()=>EL,isRtl:()=>tW,knownLocales:()=>Z_e,orderByFlagParser:()=>J3,orderFunctionBuilder:()=>Z3,smartDateRange:()=>YC,toPaddedISOZ:()=>ip,toUTCDate:()=>aa,validateUTCDate:()=>gN});function fW(e,a={}){let t=a.selectedLocale||BC,n={selectedLocale:t,align:"left",clickToUse:!1,roundRanges:!!a.roundRanges,useUtc:!0,useAI:!1};return new CL(t).parse(e,n)}function owe(e,a,t={}){let n={selectedLocale:BC,...t==null?void 0:t.settings},h=n==null?void 0:n.theme,d=t.cssVars||(h==null?void 0:h.cssVariables),p=h==null?void 0:h.disableDefaultStyles;vW(document,void 0,d,t.cssRootClass,p);let y=new kp({container:e,settings:n,callbacks:t==null?void 0:t.callbacks,cssRootClass:t==null?void 0:t.cssRootClass}),b=fW(a,t);return y.renderParsed(b),{timeline:y,parsed:b}}function vW(e=document,a=S_,t,n,h){if(h){if(t&&!e.querySelector('style[data-chronos-custom="1"]')){let w=e.createElement("style");w.setAttribute("data-chronos-custom","1");let $=Object.entries(t).map(([A,R])=>` --${A}: ${R};`).join(`
`);w.textContent=`:root {
${$}
}`,e.head.appendChild(w)}return}if(e.querySelector('style[data-chronos-core="1"]'))return;let p=e.createElement("style");p.setAttribute("data-chronos-core","1");let y=a!=null?a:S_;if(t&&(y=`:root {
${Object.entries(t).map(([w,$])=>` --${w}: ${$};`).join(`
`)}
}
`+y),p.textContent=y,e.head.appendChild(p),n){let b=e.createElement("style");b.setAttribute("data-chronos-core-scoped",n);let w=swe(y,n);b.textContent=w,e.head.appendChild(b)}}function swe(e,a){let t=`.${a}`,n=e.replace(/:root\s*\{/g,`${t} {`);return n=n.replace(/\.chronos-timeline-container/g,`${t}.chronos-timeline-container`),n}kp.version=twe.version;var DL=kp;function pW(e,a){return Array.from(e).map((t,n)=>(t.charCodeAt(0)^a.charCodeAt(n%a.length)).toString(16).padStart(2,"0")).join("")}function $L(e,a){let t=e.match(/.{2}/g);return t?t.map((n,h)=>String.fromCharCode(parseInt(n,16)^a.charCodeAt(h%a.length))).join(""):""}var gW=require("obsidian");var mW=`Generate timelines in Markdown using Chronos syntax, a simple line-by-line format for capturing events, periods, and markers.
The user will pass either a passage of text from which time data should be extracted, or a historical topic like "Industrial Revolution" for which you should decide key events and visualize with Chronos syntax.
### Chronos Syntax Overview:
1. **Events**: \`- [Date~Date] Event Name | Description\`
- The second Date, Event Name, and Description are optional.
2. **Periods**: \`@ [Date~Date] Period Name\`
- Requires both start and end Dates. Period Name is optional.
- Periods NEVER have descriptions
3. **Points**: \`* [Date] Event Name | Description\`
- Descriptions are optional
4. **Markers**: \`= [Date] Marker Name\`
- Requires a single Date.
### Rules:
- Important: the items should be wrapped in a codeblock with language "chronos"
- Important: keep Period Names and Event Names as brief as possible
- Important: DO NOT use groups if there is only one group
- assume that mention of today is today's date
- **Date format**: \`YYYY-MM-DDThh:mm:ss\`, with minimum granularity required (e.g., just year).
- Use \`#\` at the start of a line to add ignored comments.
- Events and Periods support optional modifiers:
- **Colors**: e.g., \`$red, #blue\`.
- **Groups**: \`{Group Name}\` (case-sensitive, can include spaces)
- modifers must be added in this order: \`- [Date~Date] #Color {Group Name} Event Name\`
- Possible colors: #red, #orange, #yellow, #green, #blue, #purple, #pink, #cyan
- BCE Dates: Represented with \`-\` (e.g., \`-10000\` for 10000 BCE).
- Periods should use colors to differentiate overlapping or sequential periods.
- Focus on simplicity; not all item types need to be used
### Example 1: Timeline of events in Cold War
\`\`\`chronos
- [1947-03-12] Truman Doctrine | Committing the U.S. to containing communism
- [1948-06-24~1949-05-12] Berlin Blockade | Soviet blockade and Allied airlift
@ [1947-01-01~1953-12-31] Early Cold War
- [1957-10-04] Sputnik launched | Start of the Space Race
@ [1963-01-01~1979-12-31] #red D\xE9tente Period
= [1991-12-26] End of the Cold War
\`\`\`
### Example 2: Timeline life and works of two authors
\`\`\`chronos
@ [1888-09-26~1965-01-04] {T.S. Eliot} Life: 1888-1965
- [1949] {T.S. Eliot} "The Cocktail Party" | A play
- [1920] {T.S. Eliot} "The Sacred Wood"
- [1922] {T.S. Eliot} "The Wasteland"
@ [1899-08-24~1986-06-14] #cyan {Jorge Luis Borges} Life: 1899-1986
- [1944] #cyan {Jorge Luis Borges} "Ficciones"
- [1949] #cyan {Jorge Luis Borges} "El Aleph"
- [1962] #cyan {Jorge Luis Borges} "Labyrinths"
\`\`\`
### Example 3: Tounement with games as Points
\`\`\`chronos
- [2024-02-26~2024-03-10] Tournament
* [2024-02-26] Game 1 | Austin
* [2024-02-28] Game 2 | Los Angeles
* [2024-03-06] Game 3 | Tokyo
* [2024-03-10] Game 4 | Jakarta
\`\`\`
`;var lwe={role:"system",content:mW},mE=class{constructor(a){this.apiKey=a}async toChronos(a){if(!this.apiKey)throw new Error("No API Key set - ensure you've set an API Key in Chronos Timeline plugin settings");let t=[lwe,{role:"user",content:a}];return await this._getResponse(t)}async _getResponse(a){let t={model:GF,messages:a,temperature:.8},n="https://api.openai.com/v1/chat/completions",h={Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},d={url:n,method:"POST",body:JSON.stringify(t),headers:h};return(await(0,gW.requestUrl)(d)).json.choices[0].message.content}};var bW,_W,ny=(_W=(bW=kp)!=null?bW:DL)!=null?_W:OL,yW={selectedLocale:ZM,align:"left",clickToUse:!1,roundRanges:!1,useUtc:!0,useAI:!0},gE=class extends rr.Plugin{async onload(){console.log("Loading Chronos Timeline Plugin...."),this.settings=await this.loadData()||yW,this.addSettingTab(new PL(this.app,this)),this.registerEvent(this.app.vault.on("rename",async(t,n)=>{await this._updateWikiLinks(n,t.path)})),this.registerMarkdownCodeBlockProcessor("chronos",this._renderChronosBlock.bind(this)),this.addCommand({id:"insert-timeline-blank",name:"Insert timeline (blank)",editorCallback:(t,n)=>{this._insertSnippet(t,ny.templates.blank)}}),this.addCommand({id:"insert-timeline-basic",name:"Insert timeline example (basic)",editorCallback:(t,n)=>{this._insertSnippet(t,ny.templates.basic)}}),this.addCommand({id:"insert-timeline-advanced",name:"Insert timeline example (advanced)",editorCallback:(t,n)=>{this._insertSnippet(t,ny.templates.advanced)}}),this.addCommand({id:"generate-timeline-ai",name:"Generate timeline with AI",editorCheckCallback:(t,n,h)=>{if(t)return this.settings.useAI;this._generateTimelineWithAi(n)}})}onunload(){}async loadSettings(){this.settings={...yW,...await this.loadData()}}async saveSettings(){await this.saveData(this.settings)}_insertSnippet(t,n){let h=t.getCursor();t.replaceRange(n,h)}_insertTextAfterSelection(t,n){let h=t.getCursor("to"),d=`
`;t.replaceRange(d+n,h)}_renderChronosBlock(t,n){var b;let h=0,d=500,p=n.createEl("div",{cls:"chronos-timeline-container"}),y=new ny({container:p,settings:this.settings,callbacks:{setTooltip:rr.setTooltip}});try{y.render(t),y.on("mouseDown",w=>{var A;let $=performance.now();if($-h<d){w.event.stopImmediatePropagation(),w.event.preventDefault();return}if(h=$,w.event instanceof MouseEvent){w.event.stopImmediatePropagation(),w.event.preventDefault();let R=w.item;if(!R)return;let Y=(A=y.items)==null?void 0:A.find(ve=>ve.id===R);if(!(Y!=null&&Y.cLink))return;let V=w.event.button===1,oe=w.event.metaKey&&w.event.button===0,G=w.event.shiftKey,ae=V||oe||G;this._openFileFromWikiLink(Y.cLink,ae)}}),y.on("itemover",async w=>{var A;let $=w.item;if($){let R=(A=y.items)==null?void 0:A.find(Y=>Y.id===$);if(R!=null&&R.cLink){let Y=w.event.target;this.app.workspace.trigger("hover-link",{event:w.event,source:"chronos-timeline",hoverParent:p,targetEl:Y,linktext:R.cLink})}}}),y.on("itemout",()=>{this.app.workspace.trigger("hover-link:close")}),this.settings.clickToUse&&p&&((b=y.timeline)==null||b.setOptions({clickToUse:this.settings.clickToUse}),y.on("mouseOver",w=>{this.settings.clickToUse&&!p.querySelectorAll(".vis-active").length?(0,rr.setTooltip)(p,"Click to use"):(0,rr.setTooltip)(p,"")}))}catch(w){console.log(w)}}async _openFileFromWikiLink(t,n=!1){let h=t.replace(/^\[\[|\]\]$/g,""),[d,p]=h.split("#"),[y,b]=h.split("|"),w=y.split("#")[0];try{let $=this.app.vault.getFiles().find(A=>A.path===w+".md"||A.path===w||A.basename===w)||this.app.vault.getFiles().find(A=>A.basename.toLowerCase()===(b==null?void 0:b.toLowerCase()))||null;if($){let A=this.app.workspace.getLeaf(!1);n&&(A=this.app.workspace.getLeaf("tab"));let R=p?await this._findLineForHeading($,p):0;await A.openFile($,{active:!0,state:{focus:!0,line:R}}),R&&setTimeout(()=>{var V;let Y=(V=this.app.workspace.getActiveViewOfType(rr.MarkdownView))==null?void 0:V.editor;Y&&R!=null&&Y.setCursor(R+30)},100)}else{let A=`Linked note not found: ${d}`;console.warn(A),new rr.Notice(A)}}catch($){let A=`Error opening file: ${$.message}`;console.error(A),new rr.Notice(A)}}async _findLineForHeading(t,n){let p=(await this.app.vault.read(t)).split(`
`).findIndex(y=>y.trim().replace("#","").trim().toLowerCase()===n.toLowerCase());return p!==-1?p:0}async _generateTimelineWithAi(t){t||new rr.Notice("Make sure you are highlighting text in your note to generate a timeline from");let n=this._getCurrentSelectedText(t);if(!n){new rr.Notice("Highlight some text you'd like to convert into a timeline, then run the generate command again");return}let h=new YT(this.app,"Working on it....");h.open();try{let d=await this._textToChronos(n);d&&this._insertTextAfterSelection(t,d)}catch(d){console.error(d),h.setText(d.message);return}h.close()}async _textToChronos(t){if(!this.settings.key){new rr.Notice("No API Key found. Please add an OpenAI API key in Chronos Timeline Plugin Settings");return}return await new mE(this._getApiKey()).toChronos(t)}_getCurrentSelectedText(t){return t?t.getSelection():""}_getApiKey(){return $L(this.settings.key||"",BT)}async _updateWikiLinks(t,n){let h=this.app.vault.getMarkdownFiles(),d=[];console.log(`Checking files for 'chronos' blocks to see whether there is a need to update links to ${this._normalizePath(n)}...`);for(let p of h){let y=await this.app.vault.read(p);if(/```(?:\s*)chronos/.test(y)){let w=this._updateLinksInChronosBlocks(y,t,n);w!==y&&(console.log("UPDATING ",p.path),d.push(p.path),await this.app.vault.modify(p,w))}}console.log("Done checking files with 'chronos' blocks."),d.length&&console.log(`Updated links to ${this._normalizePath(n)} in ${d.length} files: `,d)}_updateLinksInChronosBlocks(t,n,h){let d=/```(?:\s*)chronos([\s\S]*?)```/g,p,y=t;for(;(p=d.exec(t))!==null;){let b=p[0],w=p[1],$=this._normalizePath(n),A=this._normalizePath(h),R=w.replace(new RegExp(`\\[\\[${this._escapeRegExp($)}\\]\\]`,"g"),`[[${A}]]`);y=y.replace(b,`\`\`\`chronos${R}\`\`\``)}return y}_normalizePath(t){return t.replace(/(\|.+$)|(\.md$)/g,"")}_escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},PL=class extends rr.PluginSettingTab{constructor(t,n){super(t,n);this.plugin=n}display(){let{containerEl:t}=this;t.empty();let n=[],h=[];WF.forEach(b=>{Intl.DateTimeFormat.supportedLocalesOf(b).length&&n.push(b)}),n.forEach(b=>{let w=new Intl.DisplayNames([b],{type:"language"});h.push(w.of(b))});let d=t.createEl("a",{text:"Create and share Chronos Timelines outside of Obsidian \u2197"});d.setAttribute("href","https://clairefro.github.io/chronos-timeline-md/"),d.setAttribute("target","_blank"),d.setAttribute("rel","noopener noreferrer"),d.className="chronos-announcement-link",t.createEl("h2",{text:"Display settings",cls:"chronos-setting-header"}),new rr.Setting(t).setName("Select locale").setDesc("Choose a locale for displaying dates").addDropdown(b=>{n.forEach(($,A)=>{let Y=`${h[A]} (${$})`;b.addOption($,Y)});let w=this.plugin.settings.selectedLocale||ZM;b.setValue(w),b.onChange($=>{this.plugin.settings.selectedLocale=$,this.plugin.saveData(this.plugin.settings)})}),new rr.Setting(t).setName("Require click to use").setDesc("Require clicking on a timeline to activate features like zoom and scroll").addToggle(b=>b.setValue(this.plugin.settings.clickToUse).onChange(async w=>{new rr.Notice("Refresh rendering of timlines for change to take effect"),this.plugin.settings.clickToUse=w,await this.plugin.saveSettings()})),new rr.Setting(t).setName("Round endcaps on ranges").setDesc("Adds rounding to ranged events to make start and end clear").addToggle(b=>b.setValue(this.plugin.settings.roundRanges).onChange(async w=>{new rr.Notice("Refresh rendering of timlines for change to take effect"),this.plugin.settings.roundRanges=w,await this.plugin.saveSettings()})),new rr.Setting(t).setName("Use UTC time (recommended)").setDesc("If disabled, Chronos will use your system time to display the events and current time. Using local time is only recommended if you are using Chronos for tasks at the intra-day level, and may have unintended side effects like showing historical events one day off during certain times of day.").addToggle(b=>b.setValue(this.plugin.settings.useUtc).onChange(async w=>{new rr.Notice("Refresh rendering of timlines for change to take effect"),this.plugin.settings.useUtc=w,await this.plugin.saveSettings()})),new rr.Setting(t).setName("Item alignment").setDesc("Alignement of event boxes and item text (re-rerender timeline to see change)").addDropdown(b=>b.addOption("left","Left").addOption("center","Center").addOption("right","Right").setValue(this.plugin.settings.align).onChange(async w=>{this.plugin.settings.align=w,await this.plugin.saveSettings()})),t.createEl("h2",{text:"AI settings",cls:"chronos-setting-header"}),new rr.Setting(t).setName("Use AI Features").setDesc("Toggles commands and settings for AI timeline generation.").addToggle(b=>b.setValue(this.plugin.settings.useAI).onChange(async w=>{this.plugin.settings.useAI=w,await this.plugin.saveSettings(),this.display()})),new rr.Setting(t).setName("OpenAI API key").addText(b=>b.setPlaceholder("Enter your OpenAI API Key").setValue(this.plugin.settings.key?$L(this.plugin.settings.key,BT):"").onChange(async w=>{w.trim()?this.plugin.settings.key=pW(w.trim(),BT):this.plugin.settings.key="",await this.plugin.saveSettings()})).setClass("ai-setting").setDisabled(!this.plugin.settings.useAI),t.createEl("h2",{text:"Cheatsheet",cls:"chronos-setting-header"});let p=t.createEl("textarea",{cls:"chronos-settings-md-container",text:ny.cheatsheet});p.readOnly=!0,new rr.Setting(t).addButton(b=>{b.setButtonText("Copy cheatsheet").setCta().onClick(async()=>{try{await navigator.clipboard.writeText(ny.cheatsheet),new rr.Notice(`Cheatsheet copied to clipboard!
Paste it in a new Obsidian note to learn Chronos syntax`)}catch(w){console.error("Failed to copy cheatsheet:",w),new rr.Notice("Failed to copy cheatsheet")}})});let y=document.createElement("a");y.textContent="Learn more",y.href="https://github.com/clairefro/obsidian-plugin-chronos",y.target="_blank",y.style.textDecoration="underline",t.appendChild(y)}};
/*! Bundled license information:
chronos-timeline-md/dist/index.js:
(*! Bundled license information:
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
vis-data/peer/umd/vis-data.js:
(**
* vis-data
* http://visjs.org/
*
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
*
* @version 7.1.10
* @date 2025-07-06T08:42:20.006Z
*
* @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.
*)
(*! 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 *)
vis-timeline/peer/umd/vis-timeline-graph2d.min.js:
(**
* vis-timeline and vis-graph2d
* https://visjs.github.io/vis-timeline/
*
* Create a fully customizable, interactive timeline with items and ranges.
*
* @version 7.7.4
* @date 2025-05-10T16:52:31.441Z
*
* @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.
*)
(*! 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 *)
vis-timeline/standalone/esm/vis-timeline-graph2d.js:
(**
* vis-timeline and vis-graph2d
* https://visjs.github.io/vis-timeline/
*
* Create a fully customizable, interactive timeline with items and ranges.
*
* @version 7.7.4
* @date 2025-05-10T16:52:31.441Z
*
* @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.
*)
(*! moment.js *)
(*! moment.js locale configuration *)
(*! 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 *)
*)
*/
/* nosourcemap */