var KR=Object.create;var oA=Object.defineProperty,JR=Object.defineProperties,ZR=Object.getOwnPropertyDescriptor,QR=Object.getOwnPropertyDescriptors,tj=Object.getOwnPropertyNames,t$=Object.getOwnPropertySymbols,ej=Object.getPrototypeOf,r$=Object.prototype.hasOwnProperty,rj=Object.prototype.propertyIsEnumerable;var e$=(F,L,J)=>L in F?oA(F,L,{enumerable:!0,configurable:!0,writable:!0,value:J}):F[L]=J,m_=(F,L)=>{for(var J in L||(L={}))r$.call(L,J)&&e$(F,J,L[J]);if(t$)for(var J of t$(L))rj.call(L,J)&&e$(F,J,L[J]);return F},mC=(F,L)=>JR(F,QR(L));var n$=(F=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(F,{get:(L,J)=>(typeof require!="undefined"?require:L)[J]}):F)(function(F){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+F+'" is not supported')});var mI=(F,L)=>()=>(L||F((L={exports:{}}).exports,L),L.exports);var nj=(F,L,J,z)=>{if(L&&typeof L=="object"||typeof L=="function")for(let nt of tj(L))!r$.call(F,nt)&&nt!==J&&oA(F,nt,{get:()=>L[nt],enumerable:!(z=ZR(L,nt))||z.enumerable});return F};var i$=(F,L,J)=>(J=F!=null?KR(ej(F)):{},nj(L||!F||!F.__esModule?oA(J,"default",{value:F,enumerable:!0}):J,F));var o$=mI((aA,FT)=>{(function(F,L){typeof aA=="object"&&typeof FT!="undefined"?FT.exports=L():typeof define=="function"&&define.amd?define(L):F.moment=L()})(aA,function(){"use strict";var F;function L(){return F.apply(null,arguments)}function J(c){F=c}function z(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function nt(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function yt(c,b){return Object.prototype.hasOwnProperty.call(c,b)}function St(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var b;for(b in c)if(yt(c,b))return!1;return!0}function dt(c){return c===void 0}function Gt(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function Wt(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function In(c,b){var k=[],D,M=c.length;for(D=0;D>>0,D;for(D=0;D0)for(k=0;k=0;return(W?k?"+":"":"-")+Math.pow(10,Math.max(0,M)).toString().substr(1)+D}var je=/(\[[^\[]*\])|(\\)?([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,Ur=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pi={},Ue={};function Dt(c,b,k,D){var M=D;typeof D=="string"&&(M=function(){return this[D]()}),c&&(Ue[c]=M),b&&(Ue[b[0]]=function(){return Ae(M.apply(this,arguments),b[1],b[2])}),k&&(Ue[k]=function(){return this.localeData().ordinal(M.apply(this,arguments),c)})}function Mu(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function un(c){var b=c.match(je),k,D;for(k=0,D=b.length;k=0&&Ur.test(c);)c=c.replace(Ur,D),Ur.lastIndex=0,k-=1;return c}var sd={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 Kg(c){var b=this._longDateFormat[c],k=this._longDateFormat[c.toUpperCase()];return b||!k?b:(this._longDateFormat[c]=k.match(je).map(function(D){return D==="MMMM"||D==="MM"||D==="DD"||D==="dddd"?D.slice(1):D}).join(""),this._longDateFormat[c])}var gs="Invalid date";function No(){return this._invalidDate}var ac="%d",ba=/\d{1,2}/;function Ro(c){return this._ordinal.replace("%d",c)}var Jg={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 ys(c,b,k,D){var M=this._relativeTime[k];return Tr(M)?M(c,b,k,D):M.replace(/%d/i,c)}function ri(c,b){var k=this._relativeTime[c>0?"future":"past"];return Tr(k)?k(b):k.replace(/%s/i,b)}var ud={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 tr(c){return typeof c=="string"?ud[c]||ud[c.toLowerCase()]:void 0}function _e(c){var b={},k,D;for(D in c)yt(c,D)&&(k=tr(D),k&&(b[k]=c[D]));return b}var Ge={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 xr(c){var b=[],k;for(k in c)yt(c,k)&&b.push({unit:k,priority:Ge[k]});return b.sort(function(D,M){return D.priority-M.priority}),b}var we=/\d/,be=/\d\d/,Oe=/\d{3}/,wr=/\d{4}/,$e=/[+-]?\d{6}/,Xt=/\d\d?/,Le=/\d\d\d\d?/,er=/\d\d\d\d\d\d?/,bs=/\d{1,3}/,Fe=/\d{1,4}/,Pn=/[+-]?\d{1,6}/,fo=/\d+/,An=/[+-]?\d+/,sc=/Z|[+-]\d\d:?\d\d/gi,Ri=/Z|[+-]\d\d(?::?\d\d)?/gi,ld=/[+-]?\d+(\.\d{1,3})?/,vi=/[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,rr=/^[1-9]\d?/,wa=/^([1-9]\d|\d)/,po;po={};function Et(c,b,k){po[c]=Tr(b)?b:function(D,M){return D&&k?k:b}}function Zg(c,b){return yt(po,c)?po[c](b._strict,b._locale):new RegExp(Nu(c))}function Nu(c){return $n(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(b,k,D,M,W){return k||D||M||W}))}function $n(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function nr(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function qt(c){var b=+c,k=0;return b!==0&&isFinite(b)&&(k=nr(b)),k}var uc={};function Ee(c,b){var k,D=b,M;for(typeof c=="string"&&(c=[c]),Gt(b)&&(D=function(W,it){it[b]=qt(W)}),M=c.length,k=0;k68?1900:2e3)};var _s=cn("FullYear",!0);function Ru(){return lc(this.year())}function cn(c,b){return function(k){return k!=null?(Mp(this,c,k),L.updateOffset(this,b),this):jo(this,c)}}function jo(c,b){if(!c.isValid())return NaN;var k=c._d,D=c._isUTC;switch(b){case"Milliseconds":return D?k.getUTCMilliseconds():k.getMilliseconds();case"Seconds":return D?k.getUTCSeconds():k.getSeconds();case"Minutes":return D?k.getUTCMinutes():k.getMinutes();case"Hours":return D?k.getUTCHours():k.getHours();case"Date":return D?k.getUTCDate():k.getDate();case"Day":return D?k.getUTCDay():k.getDay();case"Month":return D?k.getUTCMonth():k.getMonth();case"FullYear":return D?k.getUTCFullYear():k.getFullYear();default:return NaN}}function Mp(c,b,k){var D,M,W,it,vt;if(!(!c.isValid()||isNaN(k))){switch(D=c._d,M=c._isUTC,b){case"Milliseconds":return void(M?D.setUTCMilliseconds(k):D.setMilliseconds(k));case"Seconds":return void(M?D.setUTCSeconds(k):D.setSeconds(k));case"Minutes":return void(M?D.setUTCMinutes(k):D.setMinutes(k));case"Hours":return void(M?D.setUTCHours(k):D.setHours(k));case"Date":return void(M?D.setUTCDate(k):D.setDate(k));case"FullYear":break;default:return}W=k,it=c.month(),vt=c.date(),vt=vt===29&&it===1&&!lc(W)?28:vt,M?D.setUTCFullYear(W,it,vt):D.setFullYear(W,it,vt)}}function yn(c){return c=tr(c),Tr(this[c])?this[c]():this}function bn(c,b){if(typeof c=="object"){c=_e(c);var k=xr(c),D,M=k.length;for(D=0;D=0?(vt=new Date(c+400,b,k,D,M,W,it),isFinite(vt.getFullYear())&&vt.setFullYear(c)):vt=new Date(c,b,k,D,M,W,it),vt}function ks(c){var b,k;return c<100&&c>=0?(k=Array.prototype.slice.call(arguments),k[0]=c+400,b=new Date(Date.UTC.apply(null,k)),isFinite(b.getUTCFullYear())&&b.setUTCFullYear(c)):b=new Date(Date.UTC.apply(null,arguments)),b}function dc(c,b,k){var D=7+b-k,M=(7+ks(c,0,D).getUTCDay()-b)%7;return-M+D-1}function jp(c,b,k,D,M){var W=(7+k-D)%7,it=dc(c,D,M),vt=1+7*(b-1)+W+it,Ft,oe;return vt<=0?(Ft=c-1,oe=ws(Ft)+vt):vt>ws(c)?(Ft=c+1,oe=vt-ws(c)):(Ft=c,oe=vt),{year:Ft,dayOfYear:oe}}function Lo(c,b,k){var D=dc(c.year(),b,k),M=Math.floor((c.dayOfYear()-D-1)/7)+1,W,it;return M<1?(it=c.year()-1,W=M+vo(it,b,k)):M>vo(c.year(),b,k)?(W=M-vo(c.year(),b,k),it=c.year()+1):(it=c.year(),W=M),{week:W,year:it}}function vo(c,b,k){var D=dc(c,b,k),M=dc(c+1,b,k);return(ws(c)-D+M)/7}Dt("w",["ww",2],"wo","week"),Dt("W",["WW",2],"Wo","isoWeek"),Et("w",Xt,rr),Et("ww",Xt,be),Et("W",Xt,rr),Et("WW",Xt,be),Or(["w","ww","W","WW"],function(c,b,k,D){b[D.substr(0,1)]=qt(c)});function ry(c){return Lo(c,this._week.dow,this._week.doy).week}var Lu={dow:0,doy:6};function Fu(){return this._week.dow}function fc(){return this._week.doy}function fd(c){var b=this.localeData().week(this);return c==null?b:this.add((c-b)*7,"d")}function Fo(c){var b=Lo(this,1,4).week;return c==null?b:this.add((c-b)*7,"d")}Dt("d",0,"do","day"),Dt("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),Dt("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),Dt("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),Dt("e",0,0,"weekday"),Dt("E",0,0,"isoWeekday"),Et("d",Xt),Et("e",Xt),Et("E",Xt),Et("dd",function(c,b){return b.weekdaysMinRegex(c)}),Et("ddd",function(c,b){return b.weekdaysShortRegex(c)}),Et("dddd",function(c,b){return b.weekdaysRegex(c)}),Or(["dd","ddd","dddd"],function(c,b,k,D){var M=k._locale.weekdaysParse(c,D,k._strict);M!=null?b.d=M:Nt(k).invalidWeekday=c}),Or(["d","e","E"],function(c,b,k,D){b[D]=qt(c)});function pc(c,b){return typeof c!="string"?c:isNaN(c)?(c=b.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Lp(c,b){return typeof c=="string"?b.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Ye(c,b){return c.slice(b,7).concat(c.slice(0,b))}var ny="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),iy=vi,oy=vi,ay=vi;function sy(c,b){var k=z(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(b)?"format":"standalone"];return c===!0?Ye(k,this._week.dow):c?k[c.day()]:k}function Yp(c){return c===!0?Ye(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function Bp(c){return c===!0?Ye(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function uy(c,b,k){var D,M,W,it=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],D=0;D<7;++D)W=zr([2e3,1]).day(D),this._minWeekdaysParse[D]=this.weekdaysMin(W,"").toLocaleLowerCase(),this._shortWeekdaysParse[D]=this.weekdaysShort(W,"").toLocaleLowerCase(),this._weekdaysParse[D]=this.weekdays(W,"").toLocaleLowerCase();return k?b==="dddd"?(M=Kt.call(this._weekdaysParse,it),M!==-1?M:null):b==="ddd"?(M=Kt.call(this._shortWeekdaysParse,it),M!==-1?M:null):(M=Kt.call(this._minWeekdaysParse,it),M!==-1?M:null):b==="dddd"?(M=Kt.call(this._weekdaysParse,it),M!==-1||(M=Kt.call(this._shortWeekdaysParse,it),M!==-1)?M:(M=Kt.call(this._minWeekdaysParse,it),M!==-1?M:null)):b==="ddd"?(M=Kt.call(this._shortWeekdaysParse,it),M!==-1||(M=Kt.call(this._weekdaysParse,it),M!==-1)?M:(M=Kt.call(this._minWeekdaysParse,it),M!==-1?M:null)):(M=Kt.call(this._minWeekdaysParse,it),M!==-1||(M=Kt.call(this._weekdaysParse,it),M!==-1)?M:(M=Kt.call(this._shortWeekdaysParse,it),M!==-1?M:null))}function ly(c,b,k){var D,M,W;if(this._weekdaysParseExact)return uy.call(this,c,b,k);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),D=0;D<7;D++){if(M=zr([2e3,1]).day(D),k&&!this._fullWeekdaysParse[D]&&(this._fullWeekdaysParse[D]=new RegExp("^"+this.weekdays(M,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[D]=new RegExp("^"+this.weekdaysShort(M,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[D]=new RegExp("^"+this.weekdaysMin(M,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[D]||(W="^"+this.weekdays(M,"")+"|^"+this.weekdaysShort(M,"")+"|^"+this.weekdaysMin(M,""),this._weekdaysParse[D]=new RegExp(W.replace(".",""),"i")),k&&b==="dddd"&&this._fullWeekdaysParse[D].test(c))return D;if(k&&b==="ddd"&&this._shortWeekdaysParse[D].test(c))return D;if(k&&b==="dd"&&this._minWeekdaysParse[D].test(c))return D;if(!k&&this._weekdaysParse[D].test(c))return D}}function Yo(c){if(!this.isValid())return c!=null?this:NaN;var b=jo(this,"Day");return c!=null?(c=pc(c,this.localeData()),this.add(c-b,"d")):b}function Yu(c){if(!this.isValid())return c!=null?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return c==null?b:this.add(c-b,"d")}function Hp(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var b=Lp(c,this.localeData());return this.day(this.day()%7?b:b-7)}else return this.day()||7}function vd(c){return this._weekdaysParseExact?(yt(this,"_weekdaysRegex")||md.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(yt(this,"_weekdaysRegex")||(this._weekdaysRegex=iy),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function cy(c){return this._weekdaysParseExact?(yt(this,"_weekdaysRegex")||md.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(yt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oy),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function vc(c){return this._weekdaysParseExact?(yt(this,"_weekdaysRegex")||md.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(yt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ay),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function md(){function c(pr,_i){return _i.length-pr.length}var b=[],k=[],D=[],M=[],W,it,vt,Ft,oe;for(W=0;W<7;W++)it=zr([2e3,1]).day(W),vt=$n(this.weekdaysMin(it,"")),Ft=$n(this.weekdaysShort(it,"")),oe=$n(this.weekdays(it,"")),b.push(vt),k.push(Ft),D.push(oe),M.push(vt),M.push(Ft),M.push(oe);b.sort(c),k.sort(c),D.sort(c),M.sort(c),this._weekdaysRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+D.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+b.join("|")+")","i")}function gd(){return this.hours()%12||12}function hy(){return this.hours()||24}Dt("H",["HH",2],0,"hour"),Dt("h",["hh",2],0,gd),Dt("k",["kk",2],0,hy),Dt("hmm",0,0,function(){return""+gd.apply(this)+Ae(this.minutes(),2)}),Dt("hmmss",0,0,function(){return""+gd.apply(this)+Ae(this.minutes(),2)+Ae(this.seconds(),2)}),Dt("Hmm",0,0,function(){return""+this.hours()+Ae(this.minutes(),2)}),Dt("Hmmss",0,0,function(){return""+this.hours()+Ae(this.minutes(),2)+Ae(this.seconds(),2)});function Li(c,b){Dt(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}Li("a",!0),Li("A",!1);function _r(c,b){return b._meridiemParse}Et("a",_r),Et("A",_r),Et("H",Xt,wa),Et("h",Xt,rr),Et("k",Xt,rr),Et("HH",Xt,be),Et("hh",Xt,be),Et("kk",Xt,be),Et("hmm",Le),Et("hmmss",er),Et("Hmm",Le),Et("Hmmss",er),Ee(["H","HH"],De),Ee(["k","kk"],function(c,b,k){var D=qt(c);b[De]=D===24?0:D}),Ee(["a","A"],function(c,b,k){k._isPm=k._locale.isPM(c),k._meridiem=c}),Ee(["h","hh"],function(c,b,k){b[De]=qt(c),Nt(k).bigHour=!0}),Ee("hmm",function(c,b,k){var D=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D)),Nt(k).bigHour=!0}),Ee("hmmss",function(c,b,k){var D=c.length-4,M=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D,2)),b[ji]=qt(c.substr(M)),Nt(k).bigHour=!0}),Ee("Hmm",function(c,b,k){var D=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D))}),Ee("Hmmss",function(c,b,k){var D=c.length-4,M=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D,2)),b[ji]=qt(c.substr(M))});function Nn(c){return(c+"").toLowerCase().charAt(0)==="p"}var Gp=/[ap]\.?m?\.?/i,dy=cn("Hours",!0);function fy(c,b,k){return c>11?k?"pm":"PM":k?"am":"AM"}var wn={calendar:Re,longDateFormat:sd,invalidDate:gs,ordinal:ac,dayOfMonthOrdinalParse:ba,relativeTime:Jg,months:ty,monthsShort:Np,week:Lu,weekdays:ny,weekdaysMin:Fp,weekdaysShort:pd,meridiemParse:Gp},de={},Bu={},Ts;function mc(c,b){var k,D=Math.min(c.length,b.length);for(k=0;k0;){if(M=Os(W.slice(0,k).join("-")),M)return M;if(D&&D.length>=k&&mc(W,D)>=k-1)break;k--}b++}return Ts}function ka(c){return!!(c&&c.match("^[^/\\\\]*$"))}function Os(c){var b=null,k;if(de[c]===void 0&&typeof FT!="undefined"&&FT&&FT.exports&&ka(c))try{b=Ts._abbr,k=n$,k("./locale/"+c),Fi(b)}catch(D){de[c]=null}return de[c]}function Fi(c,b){var k;return c&&(dt(b)?k=ni(c):k=Ta(c,b),k?Ts=k:typeof console!="undefined"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Ts._abbr}function Ta(c,b){if(b!==null){var k,D=wn;if(b.abbr=c,de[c]!=null)$u("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."),D=de[c]._config;else if(b.parentLocale!=null)if(de[b.parentLocale]!=null)D=de[b.parentLocale]._config;else if(k=Os(b.parentLocale),k!=null)D=k._config;else return Bu[b.parentLocale]||(Bu[b.parentLocale]=[]),Bu[b.parentLocale].push({name:c,config:b}),null;return de[c]=new Ni(Te(D,b)),Bu[c]&&Bu[c].forEach(function(M){Ta(M.name,M.config)}),Fi(c),de[c]}else return delete de[c],null}function Hu(c,b){if(b!=null){var k,D,M=wn;de[c]!=null&&de[c].parentLocale!=null?de[c].set(Te(de[c]._config,b)):(D=Os(c),D!=null&&(M=D._config),b=Te(M,b),D==null&&(b.abbr=c),k=new Ni(b),k.parentLocale=de[c],de[c]=k),Fi(c)}else de[c]!=null&&(de[c].parentLocale!=null?(de[c]=de[c].parentLocale,c===Fi()&&Fi(c)):de[c]!=null&&delete de[c]);return de[c]}function ni(c){var b;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Ts;if(!z(c)){if(b=Os(c),b)return b;c=[c]}return Wp(c)}function zp(){return ie(de)}function mi(c){var b,k=c._a;return k&&Nt(c).overflow===-2&&(b=k[Nr]<0||k[Nr]>11?Nr:k[mn]<1||k[mn]>Rr(k[Er],k[Nr])?mn:k[De]<0||k[De]>24||k[De]===24&&(k[Mn]!==0||k[ji]!==0||k[ln]!==0)?De:k[Mn]<0||k[Mn]>59?Mn:k[ji]<0||k[ji]>59?ji:k[ln]<0||k[ln]>999?ln:-1,Nt(c)._overflowDayOfYear&&(bmn)&&(b=mn),Nt(c)._overflowWeeks&&b===-1&&(b=gn),Nt(c)._overflowWeekday&&b===-1&&(b=$p),Nt(c).overflow=b),c}var mo=/^\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)?)?$/,gc=/^\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)?)?$/,Bo=/Z|[+-]\d\d(?::?\d\d)?/,jr=[["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]],yd=[["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/]],py=/^\/?Date\((-?\d+)/i,xa=/^(?:(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}))$/,Es={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 Oa(c){var b,k,D=c._i,M=mo.exec(D)||gc.exec(D),W,it,vt,Ft,oe=jr.length,pr=yd.length;if(M){for(Nt(c).iso=!0,b=0,k=oe;bws(it)||c._dayOfYear===0)&&(Nt(c)._overflowDayOfYear=!0),k=ks(it,0,c._dayOfYear),c._a[Nr]=k.getUTCMonth(),c._a[mn]=k.getUTCDate()),b=0;b<3&&c._a[b]==null;++b)c._a[b]=D[b]=M[b];for(;b<7;b++)c._a[b]=D[b]=c._a[b]==null?b===2?1:0:c._a[b];c._a[De]===24&&c._a[Mn]===0&&c._a[ji]===0&&c._a[ln]===0&&(c._nextDay=!0,c._a[De]=0),c._d=(c._useUTC?ks:dd).apply(null,D),W=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[De]=24),c._w&&typeof c._w.d!="undefined"&&c._w.d!==W&&(Nt(c).weekdayMismatch=!0)}}function Cs(c){var b,k,D,M,W,it,vt,Ft,oe;b=c._w,b.GG!=null||b.W!=null||b.E!=null?(W=1,it=4,k=Ds(b.GG,c._a[Er],Lo(We(),1,4).year),D=Ds(b.W,1),M=Ds(b.E,1),(M<1||M>7)&&(Ft=!0)):(W=c._locale._week.dow,it=c._locale._week.doy,oe=Lo(We(),W,it),k=Ds(b.gg,c._a[Er],oe.year),D=Ds(b.w,oe.week),b.d!=null?(M=b.d,(M<0||M>6)&&(Ft=!0)):b.e!=null?(M=b.e+W,(b.e<0||b.e>6)&&(Ft=!0)):M=W),D<1||D>vo(k,W,it)?Nt(c)._overflowWeeks=!0:Ft!=null?Nt(c)._overflowWeekday=!0:(vt=jp(k,D,M,W,it),c._a[Er]=vt.year,c._dayOfYear=vt.dayOfYear)}L.ISO_8601=function(){},L.RFC_2822=function(){};function Is(c){if(c._f===L.ISO_8601){Oa(c);return}if(c._f===L.RFC_2822){Da(c);return}c._a=[],Nt(c).empty=!0;var b=""+c._i,k,D,M,W,it,vt=b.length,Ft=0,oe,pr;for(M=ei(c._f,c._locale).match(je)||[],pr=M.length,k=0;k0&&Nt(c).unusedInput.push(it),b=b.slice(b.indexOf(D)+D.length),Ft+=D.length),Ue[W]?(D?Nt(c).empty=!1:Nt(c).unusedTokens.push(W),_a(W,D,c)):c._strict&&!D&&Nt(c).unusedTokens.push(W);Nt(c).charsLeftOver=vt-Ft,b.length>0&&Nt(c).unusedInput.push(b),c._a[De]<=12&&Nt(c).bigHour===!0&&c._a[De]>0&&(Nt(c).bigHour=void 0),Nt(c).parsedDateParts=c._a.slice(0),Nt(c).meridiem=c._meridiem,c._a[De]=Yi(c._locale,c._a[De],c._meridiem),oe=Nt(c).era,oe!==null&&(c._a[Er]=c._locale.erasConvertYear(oe,c._a[Er])),Gu(c),mi(c)}function Yi(c,b,k){var D;return k==null?b:c.meridiemHour!=null?c.meridiemHour(b,k):(c.isPM!=null&&(D=c.isPM(k),D&&b<12&&(b+=12),!D&&b===12&&(b=0)),b)}function vy(c){var b,k,D,M,W,it,vt=!1,Ft=c._f.length;if(Ft===0){Nt(c).invalidFormat=!0,c._d=new Date(NaN);return}for(M=0;Mthis?this:c:sn()});function zu(c,b){var k,D;if(b.length===1&&z(b[0])&&(b=b[0]),!b.length)return We();for(k=b[0],D=1;Dthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _y(){if(!dt(this._isDSTShifted))return this._isDSTShifted;var c={},b;return se(c,this),c=Sn(c),c._a?(b=c._isUTC?zr(c._a):We(c._a),this._isDSTShifted=this.isValid()&&Up(c._a,b.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Xu(){return this.isValid()?!this._isUTC:!1}function Sd(){return this.isValid()?this._isUTC:!1}function qp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Oc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,yo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ii(c,b){var k=c,D=null,M,W,it;return Ho(c)?k={ms:c._milliseconds,d:c._days,M:c._months}:Gt(c)||!isNaN(+c)?(k={},b?k[b]=+c:k.milliseconds=+c):(D=Oc.exec(c))?(M=D[1]==="-"?-1:1,k={y:0,d:qt(D[mn])*M,h:qt(D[De])*M,m:qt(D[Mn])*M,s:qt(D[ji])*M,ms:qt(Tc(D[ln]*1e3))*M}):(D=yo.exec(c))?(M=D[1]==="-"?-1:1,k={y:Hi(D[2],M),M:Hi(D[3],M),w:Hi(D[4],M),d:Hi(D[5],M),h:Hi(D[6],M),m:Hi(D[7],M),s:Hi(D[8],M)}):k==null?k={}:typeof k=="object"&&("from"in k||"to"in k)&&(it=Lr(We(k.from),We(k.to)),k={},k.ms=it.milliseconds,k.M=it.months),W=new kc(k),Ho(c)&&yt(c,"_locale")&&(W._locale=c._locale),Ho(c)&&yt(c,"_isValid")&&(W._isValid=c._isValid),W}ii.fn=kc.prototype,ii.invalid=yy;function Hi(c,b){var k=c&&parseFloat(c.replace(",","."));return(isNaN(k)?0:k)*b}function kd(c,b){var k={};return k.months=b.month()-c.month()+(b.year()-c.year())*12,c.clone().add(k.months,"M").isAfter(b)&&--k.months,k.milliseconds=+b-+c.clone().add(k.months,"M"),k}function Lr(c,b){var k;return c.isValid()&&b.isValid()?(b=Ca(b,c),c.isBefore(b)?k=kd(c,b):(k=kd(b,c),k.milliseconds=-k.milliseconds,k.months=-k.months),k):{milliseconds:0,months:0}}function Kp(c,b){return function(k,D){var M,W;return D!==null&&!isNaN(+D)&&($u(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),W=k,k=D,D=W),M=ii(k,D),Jp(this,M,c),this}}function Jp(c,b,k,D){var M=b._milliseconds,W=Tc(b._days),it=Tc(b._months);c.isValid()&&(D=D==null?!0:D,it&&Sa(c,jo(c,"Month")+it*k),W&&Mp(c,"Date",jo(c,"Date")+W*k),M&&c._d.setTime(c._d.valueOf()+M*k),D&&L.updateOffset(c,W||it))}var qu=Kp(1,"add"),bi=Kp(-1,"subtract");function Ku(c){return typeof c=="string"||c instanceof String}function Sy(c){return kr(c)||Wt(c)||Ku(c)||Gt(c)||Zp(c)||As(c)||c===null||c===void 0}function As(c){var b=nt(c)&&!St(c),k=!1,D=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],M,W,it=D.length;for(M=0;Mk.valueOf():k.valueOf()9999?ya(k,b?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Tr(Date.prototype.toISOString)?b?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ya(k,"Z")):ya(k,b?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",b="",k,D,M,W;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",b="Z"),k="["+c+'("]',D=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",M="-MM-DD[T]HH:mm:ss.SSS",W=b+'[")]',this.format(k+D+M+W)}function Dy(c){c||(c=this.isUtc()?L.defaultFormatUtc:L.defaultFormat);var b=ya(this,c);return this.localeData().postformat(b)}function ev(c,b){return this.isValid()&&(kr(c)&&c.isValid()||We(c).isValid())?ii({to:this,from:c}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function Aa(c){return this.from(We(),c)}function $a(c,b){return this.isValid()&&(kr(c)&&c.isValid()||We(c).isValid())?ii({from:this,to:c}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function rv(c){return this.to(We(),c)}function nv(c){var b;return c===void 0?this._locale._abbr:(b=ni(c),b!=null&&(this._locale=b),this)}var Od=fr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Go(){return this._locale}var Zu=1e3,Ms=60*Zu,Ns=60*Ms,Qu=(365*400+97)*24*Ns;function Rs(c,b){return(c%b+b)%b}function js(c,b,k){return c<100&&c>=0?new Date(c+400,b,k)-Qu:new Date(c,b,k).valueOf()}function Gi(c,b,k){return c<100&&c>=0?Date.UTC(c+400,b,k)-Qu:Date.UTC(c,b,k)}function Cc(c){var b,k;if(c=tr(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(k=this._isUTC?Gi:js,c){case"year":b=k(this.year(),0,1);break;case"quarter":b=k(this.year(),this.month()-this.month()%3,1);break;case"month":b=k(this.year(),this.month(),1);break;case"week":b=k(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":b=k(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":b=k(this.year(),this.month(),this.date());break;case"hour":b=this._d.valueOf(),b-=Rs(b+(this._isUTC?0:this.utcOffset()*Ms),Ns);break;case"minute":b=this._d.valueOf(),b-=Rs(b,Ms);break;case"second":b=this._d.valueOf(),b-=Rs(b,Zu);break}return this._d.setTime(b),L.updateOffset(this,!0),this}function tl(c){var b,k;if(c=tr(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(k=this._isUTC?Gi:js,c){case"year":b=k(this.year()+1,0,1)-1;break;case"quarter":b=k(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":b=k(this.year(),this.month()+1,1)-1;break;case"week":b=k(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":b=k(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":b=k(this.year(),this.month(),this.date()+1)-1;break;case"hour":b=this._d.valueOf(),b+=Ns-Rs(b+(this._isUTC?0:this.utcOffset()*Ms),Ns)-1;break;case"minute":b=this._d.valueOf(),b+=Ms-Rs(b,Ms)-1;break;case"second":b=this._d.valueOf(),b+=Zu-Rs(b,Zu)-1;break}return this._d.setTime(b),L.updateOffset(this,!0),this}function Ic(){return this._d.valueOf()-(this._offset||0)*6e4}function Ed(){return Math.floor(this.valueOf()/1e3)}function Dd(){return new Date(this.valueOf())}function Ls(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function Fs(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function iv(){return this.isValid()?this.toISOString():null}function Ys(){return Pe(this)}function Cy(){return Qe({},Nt(this))}function el(){return Nt(this).overflow}function Iy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Dt("N",0,0,"eraAbbr"),Dt("NN",0,0,"eraAbbr"),Dt("NNN",0,0,"eraAbbr"),Dt("NNNN",0,0,"eraName"),Dt("NNNNN",0,0,"eraNarrow"),Dt("y",["y",1],"yo","eraYear"),Dt("y",["yy",2],0,"eraYear"),Dt("y",["yyy",3],0,"eraYear"),Dt("y",["yyyy",4],0,"eraYear"),Et("N",At),Et("NN",At),Et("NNN",At),Et("NNNN",Se),Et("NNNNN",Id),Ee(["N","NN","NNN","NNNN","NNNNN"],function(c,b,k,D){var M=k._locale.erasParse(c,D,k._strict);M?Nt(k).era=M:Nt(k).invalidEra=c}),Et("y",fo),Et("yy",fo),Et("yyy",fo),Et("yyyy",fo),Et("yo",My),Ee(["y","yy","yyy","yyyy"],Er),Ee(["yo"],function(c,b,k,D){var M;k._locale._eraYearOrdinalRegex&&(M=c.match(k._locale._eraYearOrdinalRegex)),k._locale.eraYearOrdinalParse?b[Er]=k._locale.eraYearOrdinalParse(c,M):b[Er]=parseInt(c,10)});function ov(c,b){var k,D,M,W=this._eras||ni("en")._eras;for(k=0,D=W.length;k=0)return W[D]}function av(c,b){var k=c.since<=c.until?1:-1;return b===void 0?L(c.since).year():L(c.since).year()+(b-c.offset)*k}function Wi(){var c,b,k,D=this.localeData().eras();for(c=0,b=D.length;cW&&(b=W),ol.call(this,c,b,k,D,M))}function ol(c,b,k,D,M){var W=jp(c,b,k,D,M),it=ks(W.year,0,W.dayOfYear);return this.year(it.getUTCFullYear()),this.month(it.getUTCMonth()),this.date(it.getUTCDate()),this}Dt("Q",0,"Qo","quarter"),Et("Q",we),Ee("Q",function(c,b){b[Nr]=(qt(c)-1)*3});function Ny(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}Dt("D",["DD",2],"Do","date"),Et("D",Xt,rr),Et("DD",Xt,be),Et("Do",function(c,b){return c?b._dayOfMonthOrdinalParse||b._ordinalParse:b._dayOfMonthOrdinalParseLenient}),Ee(["D","DD"],mn),Ee("Do",function(c,b){b[mn]=qt(c.match(Xt)[0])});var Na=cn("Date",!0);Dt("DDD",["DDDD",3],"DDDo","dayOfYear"),Et("DDD",bs),Et("DDDD",Oe),Ee(["DDD","DDDD"],function(c,b,k){k._dayOfYear=qt(c)});function Pc(c){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?b:this.add(c-b,"d")}Dt("m",["mm",2],0,"minute"),Et("m",Xt,wa),Et("mm",Xt,be),Ee(["m","mm"],Mn);var Ac=cn("Minutes",!1);Dt("s",["ss",2],0,"second"),Et("s",Xt,wa),Et("ss",Xt,be),Ee(["s","ss"],ji);var Ad=cn("Seconds",!1);Dt("S",0,0,function(){return~~(this.millisecond()/100)}),Dt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Dt(0,["SSS",3],0,"millisecond"),Dt(0,["SSSS",4],0,function(){return this.millisecond()*10}),Dt(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Dt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Dt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Dt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Dt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Et("S",bs,we),Et("SS",bs,be),Et("SSS",bs,Oe);var zo,hv;for(zo="SSSS";zo.length<=9;zo+="S")Et(zo,fo);function bo(c,b){b[ln]=qt(("0."+c)*1e3)}for(zo="S";zo.length<=9;zo+="S")Ee(zo,bo);hv=cn("Milliseconds",!1),Dt("z",0,0,"zoneAbbr"),Dt("zz",0,0,"zoneName");function Ry(){return this._isUTC?"UTC":""}function Hs(){return this._isUTC?"Coordinated Universal Time":""}var ct=fi.prototype;ct.add=qu,ct.calendar=Ju,ct.clone=ky,ct.diff=Oy,ct.endOf=tl,ct.format=Dy,ct.from=ev,ct.fromNow=Aa,ct.to=$a,ct.toNow=rv,ct.get=yn,ct.invalidAt=el,ct.isAfter=Ty,ct.isBefore=Ec,ct.isBetween=Qp,ct.isSame=Td,ct.isSameOrAfter=Dc,ct.isSameOrBefore=xy,ct.isValid=Ys,ct.lang=Od,ct.locale=nv,ct.localeData=Go,ct.max=_c,ct.min=Rn,ct.parsingFlags=Cy,ct.set=bn,ct.startOf=Cc,ct.subtract=bi,ct.toArray=Ls,ct.toObject=Fs,ct.toDate=Dd,ct.toISOString=Ey,ct.inspect=xd,typeof Symbol!="undefined"&&Symbol.for!=null&&(ct[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ct.toJSON=iv,ct.toString=tv,ct.unix=Ed,ct.valueOf=Ic,ct.creationData=Iy,ct.eraName=Wi,ct.eraNarrow=sv,ct.eraAbbr=Ay,ct.eraYear=Cd,ct.year=_s,ct.isLeapYear=Ru,ct.weekYear=nl,ct.isoWeekYear=Pd,ct.quarter=ct.quarters=Ny,ct.month=ir,ct.daysInMonth=hd,ct.week=ct.weeks=fd,ct.isoWeek=ct.isoWeeks=Fo,ct.weeksInYear=il,ct.weeksInWeekYear=Wo,ct.isoWeeksInYear=lv,ct.isoWeeksInISOWeekYear=cv,ct.date=Na,ct.day=ct.days=Yo,ct.weekday=Yu,ct.isoWeekday=Hp,ct.dayOfYear=Pc,ct.hour=ct.hours=dy,ct.minute=ct.minutes=Ac,ct.second=ct.seconds=Ad,ct.millisecond=ct.milliseconds=hv,ct.utcOffset=Xp,ct.utc=Vu,ct.local=xc,ct.parseZone=Ia,ct.hasAlignedHourOffset=wy,ct.isDST=go,ct.isLocal=Xu,ct.isUtcOffset=Sd,ct.isUtc=qp,ct.isUTC=qp,ct.zoneAbbr=Ry,ct.zoneName=Hs,ct.dates=fr("dates accessor is deprecated. Use date instead.",Na),ct.months=fr("months accessor is deprecated. Use month instead",ir),ct.years=fr("years accessor is deprecated. Use year instead",_s),ct.zone=fr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",by),ct.isDSTShifted=fr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_y);function $d(c){return We(c*1e3)}function dv(){return We.apply(null,arguments).parseZone()}function wi(c){return c}var fe=Ni.prototype;fe.calendar=xe,fe.longDateFormat=Kg,fe.invalidDate=No,fe.ordinal=Ro,fe.preparse=wi,fe.postformat=wi,fe.relativeTime=ys,fe.pastFuture=ri,fe.set=ad,fe.eras=ov,fe.erasParse=Py,fe.erasConvertYear=av,fe.erasAbbrRegex=uv,fe.erasNameRegex=rl,fe.erasNarrowRegex=$y,fe.months=hc,fe.monthsShort=cd,fe.monthsParse=ey,fe.monthsRegex=cr,fe.monthsShortRegex=qe,fe.week=ry,fe.firstDayOfYear=fc,fe.firstDayOfWeek=Fu,fe.weekdays=sy,fe.weekdaysMin=Bp,fe.weekdaysShort=Yp,fe.weekdaysParse=ly,fe.weekdaysRegex=vd,fe.weekdaysShortRegex=cy,fe.weekdaysMinRegex=vc,fe.isPM=Nn,fe.meridiem=fy;function zi(c,b,k,D){var M=ni(),W=zr().set(D,b);return M[k](W,c)}function Md(c,b,k){if(Gt(c)&&(b=c,c=void 0),c=c||"",b!=null)return zi(c,b,k,"month");var D,M=[];for(D=0;D<12;D++)M[D]=zi(c,D,k,"month");return M}function Ra(c,b,k,D){typeof c=="boolean"?(Gt(b)&&(k=b,b=void 0),b=b||""):(b=c,k=b,c=!1,Gt(b)&&(k=b,b=void 0),b=b||"");var M=ni(),W=c?M._week.dow:0,it,vt=[];if(k!=null)return zi(b,(k+W)%7,D,"day");for(it=0;it<7;it++)vt[it]=zi(b,(it+W)%7,D,"day");return vt}function Gs(c,b){return Md(c,b,"months")}function jy(c,b){return Md(c,b,"monthsShort")}function wo(c,b,k){return Ra(c,b,k,"weekdays")}function al(c,b,k){return Ra(c,b,k,"weekdaysShort")}function $c(c,b,k){return Ra(c,b,k,"weekdaysMin")}Fi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var b=c%10,k=qt(c%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th";return c+k}}),L.lang=fr("moment.lang is deprecated. Use moment.locale instead.",Fi),L.langData=fr("moment.langData is deprecated. Use moment.localeData instead.",ni);var Ui=Math.abs;function sl(){var c=this._data;return this._milliseconds=Ui(this._milliseconds),this._days=Ui(this._days),this._months=Ui(this._months),c.milliseconds=Ui(c.milliseconds),c.seconds=Ui(c.seconds),c.minutes=Ui(c.minutes),c.hours=Ui(c.hours),c.months=Ui(c.months),c.years=Ui(c.years),this}function fv(c,b,k,D){var M=ii(b,k);return c._milliseconds+=D*M._milliseconds,c._days+=D*M._days,c._months+=D*M._months,c._bubble()}function Ly(c,b){return fv(this,c,b,1)}function ar(c,b){return fv(this,c,b,-1)}function Nd(c){return c<0?Math.floor(c):Math.ceil(c)}function Fy(){var c=this._milliseconds,b=this._days,k=this._months,D=this._data,M,W,it,vt,Ft;return c>=0&&b>=0&&k>=0||c<=0&&b<=0&&k<=0||(c+=Nd(ul(k)+b)*864e5,b=0,k=0),D.milliseconds=c%1e3,M=nr(c/1e3),D.seconds=M%60,W=nr(M/60),D.minutes=W%60,it=nr(W/60),D.hours=it%24,b+=nr(it/24),Ft=nr(pv(b)),k+=Ft,b-=Nd(ul(Ft)),vt=nr(k/12),k%=12,D.days=b,D.months=k,D.years=vt,this}function pv(c){return c*4800/146097}function ul(c){return c*146097/4800}function Ws(c){if(!this.isValid())return NaN;var b,k,D=this._milliseconds;if(c=tr(c),c==="month"||c==="quarter"||c==="year")switch(b=this._days+D/864e5,k=this._months+pv(b),c){case"month":return k;case"quarter":return k/3;case"year":return k/12}else switch(b=this._days+Math.round(ul(this._months)),c){case"week":return b/7+D/6048e5;case"day":return b+D/864e5;case"hour":return b*24+D/36e5;case"minute":return b*1440+D/6e4;case"second":return b*86400+D/1e3;case"millisecond":return Math.floor(b*864e5)+D;default:throw new Error("Unknown unit "+c)}}function _o(c){return function(){return this.as(c)}}var vv=_o("ms"),mv=_o("s"),gv=_o("m"),Yy=_o("h"),By=_o("d"),Hy=_o("w"),Rd=_o("M"),Dr=_o("Q"),ja=_o("y"),Mc=vv;function yv(){return ii(this)}function zs(c){return c=tr(c),this.isValid()?this[c+"s"]():NaN}function So(c){return function(){return this.isValid()?this._data[c]:NaN}}var bv=So("milliseconds"),jd=So("seconds"),Us=So("minutes"),Nc=So("hours"),Uo=So("days"),Vs=So("months"),Ld=So("years");function wv(){return nr(this.days()/7)}var Cr=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jn(c,b,k,D,M){return M.relativeTime(b||1,!!k,c,D)}function Gy(c,b,k,D){var M=ii(c).abs(),W=Cr(M.as("s")),it=Cr(M.as("m")),vt=Cr(M.as("h")),Ft=Cr(M.as("d")),oe=Cr(M.as("M")),pr=Cr(M.as("w")),_i=Cr(M.as("y")),Xo=W<=k.ss&&["s",W]||W0,Xo[4]=D,jn.apply(null,Xo)}function ll(c){return c===void 0?Cr:typeof c=="function"?(Cr=c,!0):!1}function Wy(c,b){return kn[c]===void 0?!1:b===void 0?kn[c]:(kn[c]=b,c==="s"&&(kn.ss=b-1),!0)}function Fd(c,b){if(!this.isValid())return this.localeData().invalidDate();var k=!1,D=kn,M,W;return typeof c=="object"&&(b=c,c=!1),typeof c=="boolean"&&(k=c),typeof b=="object"&&(D=Object.assign({},kn,b),b.s!=null&&b.ss==null&&(D.ss=b.s-1)),M=this.localeData(),W=Gy(this,!k,D,M),k&&(W=M.pastFuture(+this,W)),M.postformat(W)}var Vo=Math.abs;function La(c){return(c>0)-(c<0)||+c}function Tn(){if(!this.isValid())return this.localeData().invalidDate();var c=Vo(this._milliseconds)/1e3,b=Vo(this._days),k=Vo(this._months),D,M,W,it,vt=this.asSeconds(),Ft,oe,pr,_i;return vt?(D=nr(c/60),M=nr(D/60),c%=60,D%=60,W=nr(k/12),k%=12,it=c?c.toFixed(3).replace(/\.?0+$/,""):"",Ft=vt<0?"-":"",oe=La(this._months)!==La(vt)?"-":"",pr=La(this._days)!==La(vt)?"-":"",_i=La(this._milliseconds)!==La(vt)?"-":"",Ft+"P"+(W?oe+W+"Y":"")+(k?oe+k+"M":"")+(b?pr+b+"D":"")+(M||D||c?"T":"")+(M?_i+M+"H":"")+(D?_i+D+"M":"")+(c?_i+it+"S":"")):"P0D"}var Ut=kc.prototype;Ut.isValid=Mt,Ut.abs=sl,Ut.add=Ly,Ut.subtract=ar,Ut.as=Ws,Ut.asMilliseconds=vv,Ut.asSeconds=mv,Ut.asMinutes=gv,Ut.asHours=Yy,Ut.asDays=By,Ut.asWeeks=Hy,Ut.asMonths=Rd,Ut.asQuarters=Dr,Ut.asYears=ja,Ut.valueOf=Mc,Ut._bubble=Fy,Ut.clone=yv,Ut.get=zs,Ut.milliseconds=bv,Ut.seconds=jd,Ut.minutes=Us,Ut.hours=Nc,Ut.days=Uo,Ut.weeks=wv,Ut.months=Vs,Ut.years=Ld,Ut.humanize=Fd,Ut.toISOString=Tn,Ut.toString=Tn,Ut.toJSON=Tn,Ut.locale=nv,Ut.localeData=Go,Ut.toIsoString=fr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Tn),Ut.lang=Od,Dt("X",0,0,"unix"),Dt("x",0,0,"valueOf"),Et("x",An),Et("X",ld),Ee("X",function(c,b,k){k._d=new Date(parseFloat(c)*1e3)}),Ee("x",function(c,b,k){k._d=new Date(qt(c))});return L.version="2.30.1",J(We),L.fn=ct,L.min=Ps,L.max=gy,L.now=gi,L.utc=zr,L.unix=$d,L.months=Gs,L.isDate=Wt,L.locale=Fi,L.invalid=sn,L.duration=ii,L.isMoment=kr,L.weekdays=wo,L.parseZone=dv,L.localeData=ni,L.isDuration=Ho,L.monthsShort=jy,L.weekdaysMin=$c,L.defineLocale=Ta,L.updateLocale=Hu,L.locales=zp,L.weekdaysShort=al,L.normalizeUnits=tr,L.relativeTimeRounding=ll,L.relativeTimeThreshold=Wy,L.calendarFormat=$s,L.prototype=ct,L.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"},L})});var s$=mI((gI,a$)=>{(function(F,L){typeof gI=="object"&&typeof a$!="undefined"?L(gI):typeof define=="function"&&define.amd?define(["exports"],L):(F=typeof globalThis!="undefined"?globalThis:F||self,L(F.vis=F.vis||{}))})(gI,function(F){function L(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}var J=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function z(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var nt={exports:{}},yt=function(l){return l&&l.Math===Math&&l},St=yt(typeof globalThis=="object"&&globalThis)||yt(typeof window=="object"&&window)||yt(typeof self=="object"&&self)||yt(typeof J=="object"&&J)||function(){return this}()||J||Function("return this")(),dt=function(l){try{return!!l()}catch(h){return!0}},Gt=dt,Wt=!Gt(function(){var l=function(){}.bind();return typeof l!="function"||l.hasOwnProperty("prototype")}),In=Wt,Qe=Function.prototype,zr=Qe.apply,Mi=Qe.call,Nt=typeof Reflect=="object"&&Reflect.apply||(In?Mi.bind(zr):function(){return Mi.apply(zr,arguments)}),an=Wt,Pe=Function.prototype,sn=Pe.call,le=an&&Pe.bind.bind(sn,sn),ye=an?le:function(l){return function(){return sn.apply(l,arguments)}},se=ye,fi=se({}.toString),kr=se("".slice),ho=function(l){return kr(fi(l),8,-1)},fr=ho,oc=ye,$u=function(l){if(fr(l)==="Function")return oc(l)},Tr=typeof document=="object"&&document.all,ad=typeof Tr=="undefined"&&Tr!==void 0,Te={all:Tr,IS_HTMLDDA:ad},Ni=Te,ie=Ni.all,Re=Ni.IS_HTMLDDA?function(l){return typeof l=="function"||l===ie}:function(l){return typeof l=="function"},xe={},Ae=dt,je=!Ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ur=Wt,pi=Function.prototype.call,Ue=Ur?pi.bind(pi):function(){return pi.apply(pi,arguments)},Dt={},Mu={}.propertyIsEnumerable,un=Object.getOwnPropertyDescriptor,ya=un&&!Mu.call({1:2},1);Dt.f=ya?function(h){var g=un(this,h);return!!g&&g.enumerable}:Mu;var ei=function(l,h){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:h}},sd=ye,Kg=dt,gs=ho,No=Object,ac=sd("".split),ba=Kg(function(){return!No("z").propertyIsEnumerable(0)})?function(l){return gs(l)==="String"?ac(l,""):No(l)}:No,Ro=function(l){return l==null},Jg=Ro,ys=TypeError,ri=function(l){if(Jg(l))throw new ys("Can't call method on "+l);return l},ud=ba,tr=ri,_e=function(l){return ud(tr(l))},Ge=Re,xr=Te,we=xr.all,be=xr.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:Ge(l)||l===we}:function(l){return typeof l=="object"?l!==null:Ge(l)},Oe={},wr=Oe,$e=St,Xt=Re,Le=function(l){return Xt(l)?l:void 0},er=function(l,h){return arguments.length<2?Le(wr[l])||Le($e[l]):wr[l]&&wr[l][h]||$e[l]&&$e[l][h]},bs=ye,Fe=bs({}.isPrototypeOf),Pn=typeof navigator!="undefined"&&String(navigator.userAgent)||"",fo=St,An=Pn,sc=fo.process,Ri=fo.Deno,ld=sc&&sc.versions||Ri&&Ri.version,vi=ld&&ld.v8,rr,wa;vi&&(rr=vi.split("."),wa=rr[0]>0&&rr[0]<4?1:+(rr[0]+rr[1])),!wa&&An&&(rr=An.match(/Edge\/(\d+)/),(!rr||rr[1]>=74)&&(rr=An.match(/Chrome\/(\d+)/),rr&&(wa=+rr[1])));var po=wa,Et=po,Zg=dt,Nu=St,$n=Nu.String,nr=!!Object.getOwnPropertySymbols&&!Zg(function(){var l=Symbol("symbol detection");return!$n(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&Et&&Et<41}),qt=nr,uc=qt&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ee=er,Or=Re,_a=Fe,lc=uc,Er=Object,Nr=lc?function(l){return typeof l=="symbol"}:function(l){var h=Ee("Symbol");return Or(h)&&_a(h.prototype,Er(l))},mn=String,De=function(l){try{return mn(l)}catch(h){return"Object"}},Mn=Re,ji=De,ln=TypeError,gn=function(l){if(Mn(l))return l;throw new ln(ji(l)+" is not a function")},$p=gn,ws=Ro,_s=function(l,h){var g=l[h];return ws(g)?void 0:$p(g)},Ru=Ue,cn=Re,jo=be,Mp=TypeError,yn=function(l,h){var g,y;if(h==="string"&&cn(g=l.toString)&&!jo(y=Ru(g,l))||cn(g=l.valueOf)&&!jo(y=Ru(g,l))||h!=="string"&&cn(g=l.toString)&&!jo(y=Ru(g,l)))return y;throw new Mp("Can't convert object to primitive value")},bn={exports:{}},Qg=!0,Kt=St,Rr=Object.defineProperty,ty=function(l,h){try{Rr(Kt,l,{value:h,configurable:!0,writable:!0})}catch(g){Kt[l]=h}return h},Np=St,Rp=ty,ju="__core-js_shared__",cc=Np[ju]||Rp(ju,{}),hc=cc,cd=hc;(bn.exports=function(l,h){return cd[l]||(cd[l]=h!==void 0?h:{})})("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 Ss=bn.exports,ey=ri,Sa=Object,ir=function(l){return Sa(ey(l))},hd=ye,qe=ir,cr=hd({}.hasOwnProperty),or=Object.hasOwn||function(h,g){return cr(qe(h),g)},dd=ye,ks=0,dc=Math.random(),jp=dd(1 .toString),Lo=function(l){return"Symbol("+(l===void 0?"":l)+")_"+jp(++ks+dc,36)},vo=St,ry=Ss,Lu=or,Fu=Lo,fc=nr,fd=uc,Fo=vo.Symbol,pc=ry("wks"),Lp=fd?Fo.for||Fo:Fo&&Fo.withoutSetter||Fu,Ye=function(l){return Lu(pc,l)||(pc[l]=fc&&Lu(Fo,l)?Fo[l]:Lp("Symbol."+l)),pc[l]},ny=Ue,pd=be,Fp=Nr,iy=_s,oy=yn,ay=Ye,sy=TypeError,Yp=ay("toPrimitive"),Bp=function(l,h){if(!pd(l)||Fp(l))return l;var g=iy(l,Yp),y;if(g){if(h===void 0&&(h="default"),y=ny(g,l,h),!pd(y)||Fp(y))return y;throw new sy("Can't convert object to primitive value")}return h===void 0&&(h="number"),oy(l,h)},uy=Bp,ly=Nr,Yo=function(l){var h=uy(l,"string");return ly(h)?h:h+""},Yu=St,Hp=be,vd=Yu.document,cy=Hp(vd)&&Hp(vd.createElement),vc=function(l){return cy?vd.createElement(l):{}},md=je,gd=dt,hy=vc,Li=!md&&!gd(function(){return Object.defineProperty(hy("div"),"a",{get:function(){return 7}}).a!==7}),_r=je,Nn=Ue,Gp=Dt,dy=ei,fy=_e,wn=Yo,de=or,Bu=Li,Ts=Object.getOwnPropertyDescriptor;xe.f=_r?Ts:function(h,g){if(h=fy(h),g=wn(g),Bu)try{return Ts(h,g)}catch(y){}if(de(h,g))return dy(!Nn(Gp.f,h,g),h[g])};var mc=dt,xs=Re,Wp=/#|\.prototype\./,ka=function(l,h){var g=Fi[Os(l)];return g===Hu?!0:g===Ta?!1:xs(h)?mc(h):!!h},Os=ka.normalize=function(l){return String(l).replace(Wp,".").toLowerCase()},Fi=ka.data={},Ta=ka.NATIVE="N",Hu=ka.POLYFILL="P",ni=ka,zp=$u,mi=gn,mo=Wt,gc=zp(zp.bind),Bo=function(l,h){return mi(l),h===void 0?l:mo?gc(l,h):function(){return l.apply(h,arguments)}},jr={},yd=je,py=dt,xa=yd&&py(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Es=be,Oa=String,Ea=TypeError,_n=function(l){if(Es(l))return l;throw new Ea(Oa(l)+" is not an object")},Rt=je,Bt=Li,yc=xa,Da=_n,bd=Yo,Ds=TypeError,bc=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Cs="enumerable",Is="configurable",Yi="writable";jr.f=Rt?yc?function(h,g,y){if(Da(h),g=bd(g),Da(y),typeof h=="function"&&g==="prototype"&&"value"in y&&Yi in y&&!y[Yi]){var w=Gu(h,g);w&&w[Yi]&&(h[g]=y.value,y={configurable:Is in y?y[Is]:w[Is],enumerable:Cs in y?y[Cs]:w[Cs],writable:!1})}return bc(h,g,y)}:bc:function(h,g,y){if(Da(h),g=bd(g),Da(y),Bt)try{return bc(h,g,y)}catch(w){}if("get"in y||"set"in y)throw new Ds("Accessors not supported");return"value"in y&&(h[g]=y.value),h};var vy=je,wd=jr,my=ei,Sn=vy?function(l,h,g){return wd.f(l,h,my(1,g))}:function(l,h,g){return l[h]=g,l},Wu=St,wc=Nt,We=$u,Rn=Re,_c=xe.f,zu=ni,Ps=Oe,gy=Bo,gi=Sn,yi=or,Sc=function(l){var h=function(g,y,w){if(this instanceof h){switch(arguments.length){case 0:return new l;case 1:return new l(g);case 2:return new l(g,y)}return new l(g,y,w)}return wc(l,this,arguments)};return h.prototype=l.prototype,h},Mt=function(l,h){var g=l.target,y=l.global,w=l.stat,T=l.proto,I=y?Wu:w?Wu[g]:(Wu[g]||{}).prototype,R=y?Ps:Ps[g]||gi(Ps,g,{})[g],$=R.prototype,B,V,et,Z,rt,xt,Ht,zt,ae;for(Z in h)B=zu(y?Z:g+(w?".":"#")+Z,l.forced),V=!B&&I&&yi(I,Z),xt=R[Z],V&&(l.dontCallGetSet?(ae=_c(I,Z),Ht=ae&&ae.value):Ht=I[Z]),rt=V&&Ht?Ht:h[Z],!(V&&typeof xt==typeof rt)&&(l.bind&&V?zt=gy(rt,Wu):l.wrap&&V?zt=Sc(rt):T&&Rn(rt)?zt=We(rt):zt=rt,(l.sham||rt&&rt.sham||xt&&xt.sham)&&gi(zt,"sham",!0),gi(R,Z,zt),T&&(et=g+"Prototype",yi(Ps,et)||gi(Ps,et,{}),gi(Ps[et],Z,rt),l.real&&$&&(B||!$[Z])&&gi($,Z,rt)))},yy=Mt,kc=je,Ho=jr.f;yy({target:"Object",stat:!0,forced:Object.defineProperty!==Ho,sham:!kc},{defineProperty:Ho});var Tc=Oe,Up=Tc.Object,Vp=nt.exports=function(h,g,y){return Up.defineProperty(h,g,y)};Up.defineProperty.sham&&(Vp.sham=!0);var Bi=nt.exports,_d=Bi,Ca=_d,Uu=Ca,Xp=Uu,by=Xp,Vu=by,xc=Vu,Ia=z(xc),wy=ho,go=Array.isArray||function(h){return wy(h)==="Array"},_y=Math.ceil,Xu=Math.floor,Sd=Math.trunc||function(h){var g=+h;return(g>0?Xu:_y)(g)},qp=Sd,Oc=function(l){var h=+l;return h!==h||h===0?0:qp(h)},yo=Oc,ii=Math.min,Hi=function(l){return l>0?ii(yo(l),9007199254740991):0},kd=Hi,Lr=function(l){return kd(l.length)},Kp=TypeError,Jp=9007199254740991,qu=function(l){if(l>Jp)throw Kp("Maximum allowed index exceeded");return l},bi=Yo,Ku=jr,Sy=ei,As=function(l,h,g){var y=bi(h);y in l?Ku.f(l,y,Sy(0,g)):l[y]=g},Zp=Ye,Pa=Zp("toStringTag"),$s={};$s[Pa]="z";var Ju=String($s)==="[object z]",ky=Ju,Ty=Re,Ec=ho,Qp=Ye,Td=Qp("toStringTag"),Dc=Object,xy=Ec(function(){return arguments}())==="Arguments",Oy=function(l,h){try{return l[h]}catch(g){}},Vr=ky?Ec:function(l){var h,g,y;return l===void 0?"Undefined":l===null?"Null":typeof(g=Oy(h=Dc(l),Td))=="string"?g:xy?Ec(h):(y=Ec(h))==="Object"&&Ty(h.callee)?"Arguments":y},tv=ye,Ey=Re,xd=hc,Dy=tv(Function.toString);Ey(xd.inspectSource)||(xd.inspectSource=function(l){return Dy(l)});var ev=xd.inspectSource,Aa=ye,$a=dt,rv=Re,nv=Vr,Od=er,Go=ev,Zu=function(){},Ms=[],Ns=Od("Reflect","construct"),Qu=/^\s*(?:class|function)\b/,Rs=Aa(Qu.exec),js=!Qu.test(Zu),Gi=function(h){if(!rv(h))return!1;try{return Ns(Zu,Ms,h),!0}catch(g){return!1}},Cc=function(h){if(!rv(h))return!1;switch(nv(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return js||!!Rs(Qu,Go(h))}catch(g){return!0}};Cc.sham=!0;var tl=!Ns||$a(function(){var l;return Gi(Gi.call)||!Gi(Object)||!Gi(function(){l=!0})||l})?Cc:Gi,Ic=go,Ed=tl,Dd=be,Ls=Ye,Fs=Ls("species"),iv=Array,Ys=function(l){var h;return Ic(l)&&(h=l.constructor,Ed(h)&&(h===iv||Ic(h.prototype))?h=void 0:Dd(h)&&(h=h[Fs],h===null&&(h=void 0))),h===void 0?iv:h},Cy=Ys,el=function(l,h){return new(Cy(l))(h===0?0:h)},Iy=dt,ov=Ye,Py=po,av=ov("species"),Wi=function(l){return Py>=51||!Iy(function(){var h=[],g=h.constructor={};return g[av]=function(){return{foo:1}},h[l](Boolean).foo!==1})},sv=Mt,Ay=dt,Cd=go,rl=be,uv=ir,$y=Lr,At=qu,Se=As,Id=el,My=Wi,Ma=Ye,Bs=po,nl=Ma("isConcatSpreadable"),Pd=Bs>=51||!Ay(function(){var l=[];return l[nl]=!1,l.concat()[0]!==l}),lv=function(l){if(!rl(l))return!1;var h=l[nl];return h!==void 0?!!h:Cd(l)},cv=!Pd||!My("concat");sv({target:"Array",proto:!0,arity:1,forced:cv},{concat:function(h){var g=uv(this),y=Id(g,0),w=0,T,I,R,$,B;for(T=-1,R=arguments.length;TI;)if(R=w[I++],R!==R)return!0}else for(;T>I;I++)if((l||I in w)&&w[I]===g)return l||I||0;return!l&&-1}},Ry={includes:bo(!0),indexOf:bo(!1)},Hs={},ct=ye,$d=or,dv=_e,wi=Ry.indexOf,fe=Hs,zi=ct([].push),Md=function(l,h){var g=dv(l),y=0,w=[],T;for(T in g)!$d(fe,T)&&$d(g,T)&&zi(w,T);for(;h.length>y;)$d(g,T=h[y++])&&(~wi(w,T)||zi(w,T));return w},Ra=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gs=Md,jy=Ra,wo=Object.keys||function(h){return Gs(h,jy)},al=je,$c=xa,Ui=jr,sl=_n,fv=_e,Ly=wo;ol.f=al&&!$c?Object.defineProperties:function(h,g){sl(h);for(var y=fv(g),w=Ly(g),T=w.length,I=0,R;T>I;)Ui.f(h,R=w[I++],y[R]);return h};var ar=er,Nd=ar("document","documentElement"),Fy=Ss,pv=Lo,ul=Fy("keys"),Ws=function(l){return ul[l]||(ul[l]=pv(l))},_o=_n,vv=ol,mv=Ra,gv=Hs,Yy=Nd,By=vc,Hy=Ws,Rd=">",Dr="<",ja="prototype",Mc="script",yv=Hy("IE_PROTO"),zs=function(){},So=function(l){return Dr+Mc+Rd+l+Dr+"/"+Mc+Rd},bv=function(l){l.write(So("")),l.close();var h=l.parentWindow.Object;return l=null,h},jd=function(){var l=By("iframe"),h="java"+Mc+":",g;return l.style.display="none",Yy.appendChild(l),l.src=String(h),g=l.contentWindow.document,g.open(),g.write(So("document.F=Object")),g.close(),g.F},Us,Nc=function(){try{Us=new ActiveXObject("htmlfile")}catch(h){}Nc=typeof document!="undefined"?document.domain&&Us?bv(Us):jd():bv(Us);for(var l=mv.length;l--;)delete Nc[ja][mv[l]];return Nc()};gv[yv]=!0;var Uo=Object.create||function(h,g){var y;return h!==null?(zs[ja]=_o(h),y=new zs,zs[ja]=null,y[yv]=h):y=Nc(),g===void 0?y:vv.f(y,g)},Vs={},Ld=Md,wv=Ra,Cr=wv.concat("length","prototype");Vs.f=Object.getOwnPropertyNames||function(h){return Ld(h,Cr)};var kn={},jn=Ac,Gy=Lr,ll=As,Wy=Array,Fd=Math.max,Vo=function(l,h,g){for(var y=Gy(l),w=jn(h,y),T=jn(g===void 0?y:g,y),I=Wy(Fd(T-w,0)),R=0;wzt;zt++)if((R||zt in rt)&&(Qn=rt[zt],Gr=xt(Qn,zt,Z),l))if(h)he[zt]=Gr;else if(Gr)switch(l){case 3:return!0;case 5:return Qn;case 6:return zt;case 2:Ky(he,Qn)}else switch(l){case 4:return!1;case 7:Ky(he,Qn)}return T?-1:y||w?w:he}},hl={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},Fc=Mt,dl=St,Jy=Ue,O_=ye,fl=je,Yc=nr,Ov=dt,Fr=or,Ev=Fe,Zy=_n,Dv=_e,Qy=Yo,qT=oi,tb=ei,Bc=Uo,Hc=wo,Xr=Vs,Gc=kn,Wd=D,eb=xe,rb=jr,Xi=ol,Qs=Dt,Wc=W,E_=vt,zd=Ss,zc=Ws,Ya=Hs,Cv=Lo,D_=Ye,nb=Ft,Ba=Ve,Ud=Xs,KT=qs,xo=Js,Ha=hl.forEach,hn=zc("hidden"),pl="Symbol",vl="prototype",C_=xo.set,ib=xo.getterFor(pl),ki=Object[vl],Ga=dl.Symbol,ml=Ga&&Ga[vl],I_=dl.RangeError,JT=dl.TypeError,ob=dl.QObject,ab=eb.f,tu=rb.f,P_=Gc.f,sb=Qs.f,A_=O_([].push),Ln=zd("symbols"),Uc=zd("op-symbols"),$_=zd("wks"),ub=!ob||!ob[vl]||!ob[vl].findChild,gl=function(l,h,g){var y=ab(ki,h);y&&delete ki[h],tu(l,h,g),y&&l!==ki&&tu(ki,h,y)},Vc=fl&&Ov(function(){return Bc(tu({},"a",{get:function(){return tu(this,"a",{value:7}).a}})).a!==7})?gl:tu,Iv=function(l,h){var g=Ln[l]=Bc(ml);return C_(g,{type:pl,tag:l,description:h}),fl||(g.description=h),g},Vd=function(h,g,y){h===ki&&Vd(Uc,g,y),Zy(h);var w=Qy(g);return Zy(y),Fr(Ln,w)?(y.enumerable?(Fr(h,hn)&&h[hn][w]&&(h[hn][w]=!1),y=Bc(y,{enumerable:tb(0,!1)})):(Fr(h,hn)||tu(h,hn,tb(1,{})),h[hn][w]=!0),Vc(h,w,y)):tu(h,w,y)},Pv=function(h,g){Zy(h);var y=Dv(g),w=Hc(y).concat(fb(y));return Ha(w,function(T){(!fl||Jy(cb,y,T))&&Vd(h,T,y[T])}),h},lb=function(h,g){return g===void 0?Bc(h):Pv(Bc(h),g)},cb=function(h){var g=Qy(h),y=Jy(sb,this,g);return this===ki&&Fr(Ln,g)&&!Fr(Uc,g)?!1:y||!Fr(this,g)||!Fr(Ln,g)||Fr(this,hn)&&this[hn][g]?y:!0},hb=function(h,g){var y=Dv(h),w=Qy(g);if(!(y===ki&&Fr(Ln,w)&&!Fr(Uc,w))){var T=ab(y,w);return T&&Fr(Ln,w)&&!(Fr(y,hn)&&y[hn][w])&&(T.enumerable=!0),T}},db=function(h){var g=P_(Dv(h)),y=[];return Ha(g,function(w){!Fr(Ln,w)&&!Fr(Ya,w)&&A_(y,w)}),y},fb=function(l){var h=l===ki,g=P_(h?Uc:Dv(l)),y=[];return Ha(g,function(w){Fr(Ln,w)&&(!h||Fr(ki,w))&&A_(y,Ln[w])}),y};Yc||(Ga=function(){if(Ev(ml,this))throw new JT("Symbol is not a constructor");var h=!arguments.length||arguments[0]===void 0?void 0:qT(arguments[0]),g=Cv(h),y=function(w){var T=this===void 0?dl:this;T===ki&&Jy(y,Uc,w),Fr(T,hn)&&Fr(T[hn],g)&&(T[hn][g]=!1);var I=tb(1,w);try{Vc(T,g,I)}catch(R){if(!(R instanceof I_))throw R;gl(T,g,I)}};return fl&&ub&&Vc(ki,g,{configurable:!0,set:y}),Iv(g,h)},ml=Ga[vl],Wc(ml,"toString",function(){return ib(this).tag}),Wc(Ga,"withoutSetter",function(l){return Iv(Cv(l),l)}),Qs.f=cb,rb.f=Vd,Xi.f=Pv,eb.f=hb,Xr.f=Gc.f=db,Wd.f=fb,nb.f=function(l){return Iv(D_(l),l)},fl&&E_(ml,"description",{configurable:!0,get:function(){return ib(this).description}})),Fc({global:!0,constructor:!0,wrap:!0,forced:!Yc,sham:!Yc},{Symbol:Ga}),Ha(Hc($_),function(l){Ba(l)}),Fc({target:pl,stat:!0,forced:!Yc},{useSetter:function(){ub=!0},useSimple:function(){ub=!1}}),Fc({target:"Object",stat:!0,forced:!Yc,sham:!fl},{create:lb,defineProperty:Vd,defineProperties:Pv,getOwnPropertyDescriptor:hb}),Fc({target:"Object",stat:!0,forced:!Yc},{getOwnPropertyNames:db}),Ud(),KT(Ga,pl),Ya[hn]=!0;var ZT=nr,Xc=ZT&&!!Symbol.for&&!!Symbol.keyFor,pb=Mt,Av=er,M_=or,Xd=oi,N_=Ss,QT=Xc,vb=N_("string-to-symbol-registry"),eu=N_("symbol-to-string-registry");pb({target:"Symbol",stat:!0,forced:!QT},{for:function(l){var h=Xd(l);if(M_(vb,h))return vb[h];var g=Av("Symbol")(h);return vb[h]=g,eu[g]=h,g}});var qd=Mt,R_=or,mb=Nr,j_=De,tx=Ss,L_=Xc,gb=tx("symbol-to-string-registry");qd({target:"Symbol",stat:!0,forced:!L_},{keyFor:function(h){if(!mb(h))throw new TypeError(j_(h)+" is not a symbol");if(R_(gb,h))return gb[h]}});var F_=ye,qc=F_([].slice),Y_=ye,B_=go,ex=Re,yb=ho,rx=oi,H_=Y_([].push),nx=function(l){if(ex(l))return l;if(B_(l)){for(var h=l.length,g=[],y=0;y=h.length)return l.target=void 0,nh(void 0,!0);switch(l.kind){case"keys":return nh(g,!1);case"values":return nh(h[g],!1)}return nh([g,h[g]],!1)},"values"),rh.Arguments=rh.Array;var Ix={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},Px=Ix,T1=St,x1=Vr,Ce=Sn,me=bl,Bb=Ye,O1=Bb("toStringTag");for(var nf in Px){var E1=T1[nf],of=E1&&E1.prototype;of&&x1(of)!==O1&&Ce(of,O1,nf),me[nf]=me.Array}var ai=t1,D1=ai,Ax=Ye,Hb=jr.f,C1=Ax("metadata"),af=Function.prototype;af[C1]===void 0&&Hb(af,C1,{value:null});var $x=Ve;$x("asyncDispose");var Mx=Ve;Mx("dispose");var Gb=Ve;Gb("metadata");var Wb=D1,Nx=Wb,zb=er,Rx=ye,Zv=zb("Symbol"),Ub=Zv.keyFor,Pr=Rx(Zv.prototype.valueOf),I1=Zv.isRegisteredSymbol||function(h){try{return Ub(Pr(h))!==void 0}catch(g){return!1}},jx=Mt,Lx=I1;jx({target:"Symbol",stat:!0},{isRegisteredSymbol:Lx});for(var Qv=Ss,P1=er,Vb=ye,Fx=Nr,A1=Ye,ih=P1("Symbol"),si=ih.isWellKnownSymbol,ui=P1("Object","getOwnPropertyNames"),tm=Vb(ih.prototype.valueOf),$1=Qv("wks"),oh=0,M1=ui(ih),Yx=M1.length;oh=T?l?"":void 0:(I=Y1(y,w),I<55296||I>56319||w+1===T||(R=Y1(y,w+1))<56320||R>57343?l?F1(y,w):I:l?B1(y,w,w+2):(I-55296<<10)+(R-56320)+65536)}},H1={codeAt:t0(!1),charAt:t0(!0)},G1=H1.charAt,uf=oi,rm=Js,W1=Kv,ah=Yb,nm="String Iterator",z1=rm.set,Yn=rm.getterFor(nm);W1(String,"String",function(l){z1(this,{type:nm,string:uf(l),index:0})},function(){var h=Yn(this),g=h.string,y=h.index,w;return y>=g.length?ah(void 0,!0):(w=G1(g,y),h.index+=w.length,ah(w,!1))});var e0=Ft,Ux=e0.f("iterator"),Vx=Ux,ou=Vx,Xx=ou,U1=Xx,qx=U1,Kx=qx,V1=Kx,Jx=z(V1);function sh(l){"@babel/helpers - typeof";return sh=typeof iu=="function"&&typeof Jx=="symbol"?function(h){return typeof h}:function(h){return h&&typeof iu=="function"&&h.constructor===iu&&h!==iu.prototype?"symbol":typeof h},sh(l)}var lf=Ft,X1=lf.f("toPrimitive"),Zx=X1,Ot=Zx,Bn=Ot,r0=Bn,Qx=r0,q1=Qx,im=q1,n0=z(im);function tO(l,h){if(sh(l)!=="object"||l===null)return l;var g=l[n0];if(g!==void 0){var y=g.call(l,h||"default");if(sh(y)!=="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(l)}function K1(l){var h=tO(l,"string");return sh(h)==="symbol"?h:String(h)}function J1(l,h){for(var g=0;g=0:R>$;$+=B)$ in I&&(w=g(w,I[$],$,T));return w}},lm={left:tS(!1),right:tS(!0)},lO=dt,cm=function(l,h){var g=[][l];return!!g&&lO(function(){g.call(null,h||function(){return 1},1)})},cO=St,eS=ho,lh=eS(cO.process)==="process",c0=Mt,hO=lm.left,h0=cm,ea=po,d0=lh,dO=!d0&&ea>79&&ea<83,fO=dO||!h0("reduce");c0({target:"Array",proto:!0,forced:fO},{reduce:function(h){var g=arguments.length;return hO(this,h,g,g>1?arguments[1]:void 0)}});var rS=Yr,pO=rS("Array","reduce"),vO=Fe,f0=pO,vf=Array.prototype,nS=function(l){var h=l.reduce;return l===vf||vO(vf,l)&&h===vf.reduce?f0:h},Br=nS,hm=Br,mO=hm,p0=z(mO),gO=Mt,yO=hl.filter,bO=Wi,wO=bO("filter");gO({target:"Array",proto:!0,forced:!wO},{filter:function(h){return yO(this,h,arguments.length>1?arguments[1]:void 0)}});var iS=Yr,_O=iS("Array","filter"),SO=Fe,kO=_O,v0=Array.prototype,m0=function(l){var h=l.filter;return l===v0||SO(v0,l)&&h===v0.filter?kO:h},TO=m0,g0=TO,xO=g0,Kr=z(xO),oS=Mt,y0=hl.map,b0=Wi,aS=b0("map");oS({target:"Array",proto:!0,forced:!aS},{map:function(h){return y0(this,h,arguments.length>1?arguments[1]:void 0)}});var w0=Yr,OO=w0("Array","map"),Jr=Fe,_0=OO,Tl=Array.prototype,S0=function(l){var h=l.map;return l===Tl||Jr(Tl,l)&&h===Tl.map?_0:h},EO=S0,DO=EO,sS=DO,Zr=z(sS),k0=go,CO=Lr,IO=qu,uS=Bo,T0=function(l,h,g,y,w,T,I,R){for(var $=w,B=0,V=I?uS(I,R):!1,et,Z;B0&&k0(et)?(Z=CO(et),$=T0(l,h,et,Z,$,T-1)-1):(IO($+1),l[$]=et),$++),B++;return $},PO=T0,x0=Mt,AO=PO,lS=gn,$O=ir,cS=Lr,MO=el;x0({target:"Array",proto:!0},{flatMap:function(h){var g=$O(this),y=cS(g),w;return lS(h),w=MO(g,0),w.length=AO(w,g,g,y,0,1,h,arguments.length>1?arguments[1]:void 0),w}});var ch=Yr,NO=ch("Array","flatMap"),RO=Fe,jO=NO,O0=Array.prototype,LO=function(l){var h=l.flatMap;return l===O0||RO(O0,l)&&h===O0.flatMap?jO:h},hS=LO,E0=hS,FO=E0,YO=z(FO);function BO(l){return new GO(l)}var HO=function(){function l(h,g,y){var w,T,I;L(this,l),qi(this,"_listeners",{add:za(w=this._add).call(w,this),remove:za(T=this._remove).call(T,this),update:za(I=this._update).call(I,this)}),this._source=h,this._transformers=g,this._target=y}return kl(l,[{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(g){var y;return p0(y=this._transformers).call(y,function(w,T){return T(w)},g)}},{key:"_add",value:function(g,y){y!=null&&this._target.add(this._transformItems(this._source.get(y.items)))}},{key:"_update",value:function(g,y){y!=null&&this._target.update(this._transformItems(this._source.get(y.items)))}},{key:"_remove",value:function(g,y){y!=null&&this._target.remove(this._transformItems(y.oldData))}}]),l}(),GO=function(){function l(h){L(this,l),qi(this,"_transformers",[]),this._source=h}return kl(l,[{key:"filter",value:function(g){return this._transformers.push(function(y){return Kr(y).call(y,g)}),this}},{key:"map",value:function(g){return this._transformers.push(function(y){return Zr(y).call(y,g)}),this}},{key:"flatMap",value:function(g){return this._transformers.push(function(y){return YO(y).call(y,g)}),this}},{key:"to",value:function(g){return new HO(this._source,this._transformers,g)}}]),l}(),WO=Ue,dS=_n,fS=_s,D0=function(l,h,g){var y,w;dS(l);try{if(y=fS(l,"return"),!y){if(h==="throw")throw g;return g}y=WO(y,l)}catch(T){w=!0,y=T}if(h==="throw")throw g;if(w)throw y;return dS(y),g},zO=_n,C0=D0,I0=function(l,h,g,y){try{return y?h(zO(g)[0],g[1]):h(g)}catch(w){C0(l,"throw",w)}},pS=Ye,vS=bl,P0=pS("iterator"),UO=Array.prototype,A0=function(l){return l!==void 0&&(vS.Array===l||UO[P0]===l)},$0=Vr,au=_s,Ti=Ro,Ki=bl,hh=Ye,su=hh("iterator"),Qr=function(l){if(!Ti(l))return au(l,su)||au(l,"@@iterator")||Ki[$0(l)]},dm=Ue,VO=gn,uu=_n,xl=De,fm=Qr,dh=TypeError,pm=function(l,h){var g=arguments.length<2?fm(l):h;if(VO(g))return uu(dm(g,l));throw new dh(xl(l)+" is not iterable")},vm=Bo,mS=Ue,gS=ir,mm=I0,Ol=A0,mf=tl,fh=Lr,gf=As,yS=pm,XO=Qr,bS=Array,yf=function(h){var g=gS(h),y=mf(this),w=arguments.length,T=w>1?arguments[1]:void 0,I=T!==void 0;I&&(T=vm(T,w>2?arguments[2]:void 0));var R=XO(g),$=0,B,V,et,Z,rt,xt;if(R&&!(this===bS&&Ol(R)))for(Z=yS(g,R),rt=Z.next,V=y?new this:[];!(et=mS(rt,Z)).done;$++)xt=I?mm(Z,T,[et.value,$],!0):et.value,gf(V,$,xt);else for(B=fh(g),V=y?new this(B):bS(B);B>$;$++)xt=I?T(g[$],$):g[$],gf(V,$,xt);return V.length=$,V},M0=Ye,wS=M0("iterator"),tn=!1;try{var Ar=0,Wn={next:function(){return{done:!!Ar++}},return:function(){tn=!0}};Wn[wS]=function(){return this},Array.from(Wn,function(){throw 2})}catch(l){}var bf=function(l,h){try{if(!h&&!tn)return!1}catch(w){return!1}var g=!1;try{var y={};y[wS]=function(){return{next:function(){return{done:g=!0}}}},l(y)}catch(w){}return g},wf=Mt,El=yf,_f=bf,Dl=!_f(function(l){Array.from(l)});wf({target:"Array",stat:!0,forced:Dl},{from:El});var ra=Oe,Cl=ra.Array.from,gm=Cl,N0=gm,ph=N0,Ji=z(ph),Sf=Qr,Ua=Sf,R0=Ua,j0=R0,Zi=j0,ym=Zi,Oo=ym,kf=Oo,L0=kf,F0=z(L0),qO=L0,bm=z(qO),Il=Mt,Tf=go;Il({target:"Array",stat:!0},{isArray:Tf});var xf=Oe,Ke=xf.Array.isArray,lu=Ke,vr=lu,Y0=vr,KO=Y0,_S=KO,SS=_S,wm=SS,vh=z(wm);function B0(l){if(vh(l))return l}var kS=je,H0=go,JO=TypeError,xi=Object.getOwnPropertyDescriptor,Of=kS&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(l){return l instanceof TypeError}}(),TS=Of?function(l,h){if(H0(l)&&!xi(l,"length").writable)throw new JO("Cannot set read only .length");return l.length=h}:function(l,h){return l.length=h},xS=Mt,ZO=ir,QO=Lr,G0=TS,mh=qu,cu=dt,tE=cu(function(){return[].push.call({length:4294967296},1)!==4294967297}),gh=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(l){return l instanceof TypeError}},OS=tE||!gh();xS({target:"Array",proto:!0,arity:1,forced:OS},{push:function(h){var g=ZO(this),y=QO(g),w=arguments.length;mh(y+w);for(var T=0;Tl.length)&&(h=l.length);for(var g=0,y=new Array(h);g1?arguments[1]:void 0)},EE=Mt,Em=OE;EE({target:"Array",proto:!0,forced:[].forEach!==Em},{forEach:Em});var Nf=Yr,rk=Nf("Array","forEach"),nk=rk,ik=nk,DE=Vr,ok=or,ak=Fe,Oi=ik,Rf=Array.prototype,sk={DOMTokenList:!0,NodeList:!0},uk=function(l){var h=l.forEach;return l===Rf||ak(Rf,l)&&h===Rf.forEach||ok(sk,DE(l))?Oi:h},Dm=uk,qa=z(Dm),Ka=Mt,lk=ye,CE=go,IE=lk([].reverse),ck=[1,2];Ka({target:"Array",proto:!0,forced:String(ck)===String(ck.reverse())},{reverse:function(){return CE(this)&&(this.length=this.length),IE(this)}});var Sh=Yr,PE=Sh("Array","reverse"),hk=Fe,Ie=PE,Al=Array.prototype,AE=function(l){var h=l.reverse;return l===Al||hk(Al,l)&&h===Al.reverse?Ie:h},$E=AE,dk=$E,fk=dk,ME=z(fk),jf=De,NE=TypeError,$l=function(l,h){if(!delete l[h])throw new NE("Cannot delete property "+jf(h)+" of "+jf(l))},Lf=Mt,Ff=ir,kh=Ac,Cm=Oc,Yf=Lr,Im=TS,hw=qu,RE=el,Pm=As,Am=$l,jE=Wi,LE=jE("splice"),Un=Math.max,$m=Math.min;Lf({target:"Array",proto:!0,forced:!LE},{splice:function(h,g){var y=Ff(this),w=Yf(y),T=kh(h,w),I=arguments.length,R,$,B,V,et,Z;for(I===0?R=$=0:I===1?(R=0,$=w-T):(R=I-2,$=$m(Un(Cm(g),0),w-T)),hw(w+R-$),B=RE(y,$),V=0;V<$;V++)et=T+V,et in y&&Pm(B,V,y[et]);if(B.length=$,R<$){for(V=T;Vw-$+R;V--)Am(y,V-1)}else if(R>$)for(V=w-$;V>T;V--)et=V+$-1,Z=V+R-1,et in y?y[Z]=y[et]:Am(y,Z);for(V=0;VT;)for(var $=na(arguments[T++]),B=I?GE(Bf($),I($)):Bf($),V=B.length,et=0,Z;V>et;)Z=B[et++],(!dw||pw(R,$,Z))&&(y[Z]=$[Z]);return y}:to,xh=Mt,ia=gk;xh({target:"Object",stat:!0,arity:2,forced:Object.assign!==ia},{assign:ia});var Ml=Oe,Gf=Ml.Object.assign,Rm=Gf,jm=Rm,mw=jm,Lm=z(mw),Fm=Mt,fu=dt,oa=ir,pu=Hv,Oh=Qc,Ym=fu(function(){pu(1)});Fm({target:"Object",stat:!0,forced:Ym,sham:!Oh},{getPrototypeOf:function(h){return pu(oa(h))}});var yk=Oe,bk=yk.Object.getPrototypeOf,Wf=bk,gw=Wf,Nl=Mt,On=je,Rl=Uo;Nl({target:"Object",stat:!0,sham:!On},{create:Rl});var mr=Oe,hi=mr.Object,Bm=function(h,g){return hi.create(h,g)},zf=Bm,Eh=zf,jl=Eh,Ll=z(jl),Di=Oe,vu=Nt;Di.JSON||(Di.JSON={stringify:JSON.stringify});var Uf=function(h,g,y){return vu(Di.JSON.stringify,null,arguments)},yw=Uf,Dh=yw,eo=Dh,Fl=z(eo),Yl=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Bl=TypeError,aa=function(l,h){if(lg,I=Gm(y)?y:zE(y),R=T?Sk(arguments,g):[],$=T?function(){wk(I,this,R)}:I;return h?l($,w):l($)}:l},Gl=Mt,Wm=St,Ih=Ch,Ja=Ih(Wm.setInterval,!0);Gl({global:!0,bind:!0,forced:Wm.setInterval!==Ja},{setInterval:Ja});var kk=Mt,Tk=St,Ph=Ch,ro=Ph(Tk.setTimeout,!0);kk({global:!0,bind:!0,forced:Tk.setTimeout!==ro},{setTimeout:ro});var bw=Oe,Xf=bw.setTimeout,ww=Xf,_w=z(ww),Sw={exports:{}};(function(l){function h(y){if(y)return g(y);this._callbacks=new Map}function g(y){return Object.assign(y,h.prototype),y._callbacks=new Map,y}h.prototype.on=function(y,w){var I;let T=(I=this._callbacks.get(y))!=null?I:[];return T.push(w),this._callbacks.set(y,T),this},h.prototype.once=function(y,w){let T=(...I)=>{this.off(y,T),w.apply(this,I)};return T.fn=w,this.on(y,T),this},h.prototype.off=function(y,w){if(y===void 0&&w===void 0)return this._callbacks.clear(),this;if(w===void 0)return this._callbacks.delete(y),this;let T=this._callbacks.get(y);if(T){for(let[I,R]of T.entries())if(R===w||R.fn===w){T.splice(I,1);break}T.length===0?this._callbacks.delete(y):this._callbacks.set(y,T)}return this},h.prototype.emit=function(y,...w){let T=this._callbacks.get(y);if(T){let I=[...T];for(let R of I)R.apply(this,w)}return this},h.prototype.listeners=function(y){var w;return(w=this._callbacks.get(y))!=null?w:[]},h.prototype.listenerCount=function(y){if(y)return this.listeners(y).length;let w=0;for(let T of this._callbacks.values())w+=T.length;return w},h.prototype.hasListeners=function(y){return this.listenerCount(y)>0},h.prototype.addEventListener=h.prototype.on,h.prototype.removeListener=h.prototype.off,h.prototype.removeEventListener=h.prototype.off,h.prototype.removeAllListeners=h.prototype.off,l.exports=h})(Sw);var kw=Sw.exports,zm=z(kw);function en(){return en=Object.assign||function(l){for(var h=1;h-1}function Ok(l){if(ns(l,Ci))return Ci;var h=ns(l,Ul),g=ns(l,es);return h&&g?Ci:h||g?h?Ul:es:ns(l,Xm)?Xm:no}var Zm=function(){function l(g,y){this.manager=g,this.set(y)}var h=l.prototype;return h.set=function(y){y===gu&&(y=this.compute()),ts&&this.manager.element.style&&yu[y]&&(this.manager.element.style[zl]=y),this.actions=y.toLowerCase().trim()},h.update=function(){this.set(this.manager.options.touchAction)},h.compute=function(){var y=[];return ua(this.manager.recognizers,function(w){Qf(w.options.enable,[w])&&(y=y.concat(w.getTouchAction()))}),Ok(y.join(" "))},h.preventDefaults=function(y){var w=y.srcEvent,T=y.offsetDirection;if(this.manager.session.prevented){w.preventDefault();return}var I=this.actions,R=ns(I,Ci)&&!yu[Ci],$=ns(I,es)&&!yu[es],B=ns(I,Ul)&&!yu[Ul];if(R){var V=y.pointers.length===1,et=y.distance<2,Z=y.deltaTime<250;if(V&&et&&Z)return}if(!(B&&$)&&(R||$&&T&Xn||B&&T&io))return this.preventSrc(w)},h.preventSrc=function(y){this.manager.session.prevented=!0,y.preventDefault()},l}();function tp(l,h){for(;l;){if(l===h)return!0;l=l.parentNode}return!1}function ep(l){var h=l.length;if(h===1)return{x:Ah(l[0].clientX),y:Ah(l[0].clientY)};for(var g=0,y=0,w=0;w=mu(h)?l<0?Nh:Jf:h<0?ql:Kl}function VE(l,h){var g=h.center,y=l.offsetDelta||{},w=l.prevDelta||{},T=l.prevInput||{};(h.eventType===Dn||T.eventType===Sr)&&(w=l.prevDelta={x:T.deltaX||0,y:T.deltaY||0},y=l.offsetDelta={x:g.x,y:g.y}),h.deltaX=w.x+(g.x-y.x),h.deltaY=w.y+(g.y-y.y)}function Ek(l,h,g){return{x:h/l||0,y:g/l||0}}function XE(l,h){return rp(h[0],h[1],bu)/rp(l[0],l[1],bu)}function qE(l,h){return np(h[1],h[0],bu)+np(l[1],l[0],bu)}function KE(l,h){var g=l.lastInterval||h,y=h.timeStamp-g.timeStamp,w,T,I,R;if(h.eventType!==Vn&&(y>xk||g.velocity===void 0)){var $=h.deltaX-g.deltaX,B=h.deltaY-g.deltaY,V=Ek(y,$,B);T=V.x,I=V.y,w=mu(V.x)>mu(V.y)?V.x:V.y,R=Do($,B),l.lastInterval=h}else w=g.velocity,T=g.velocityX,I=g.velocityY,R=g.direction;h.velocity=w,h.velocityX=T,h.velocityY=I,h.direction=R}function ip(l,h){var g=l.session,y=h.pointers,w=y.length;g.firstInput||(g.firstInput=Ew(h)),w>1&&!g.firstMultiple?g.firstMultiple=Ew(h):w===1&&(g.firstMultiple=!1);var T=g.firstInput,I=g.firstMultiple,R=I?I.center:T.center,$=h.center=ep(y);h.timeStamp=Za(),h.deltaTime=h.timeStamp-T.timeStamp,h.angle=np(R,$),h.distance=rp(R,$),VE(g,h),h.offsetDirection=Do(h.deltaX,h.deltaY);var B=Ek(h.deltaTime,h.deltaX,h.deltaY);h.overallVelocityX=B.x,h.overallVelocityY=B.y,h.overallVelocity=mu(B.x)>mu(B.y)?B.x:B.y,h.scale=I?XE(I.pointers,y):1,h.rotation=I?qE(I.pointers,y):0,h.maxPointers=g.prevInput?h.pointers.length>g.prevInput.maxPointers?h.pointers.length:g.prevInput.maxPointers:h.pointers.length,KE(g,h);var V=l.element,et=h.srcEvent,Z;et.composedPath?Z=et.composedPath()[0]:et.path?Z=et.path[0]:Z=et.target,tp(Z,V)&&(V=Z),h.target=V}function di(l,h,g){var y=g.pointers.length,w=g.changedPointers.length,T=h&Dn&&y-w===0,I=h&(Sr|Vn)&&y-w===0;g.isFirst=!!T,g.isFinal=!!I,T&&(l.session={}),g.eventType=h,ip(l,g),l.emit("hammer.input",g),l.recognize(g),l.session.prevInput=g}function Jl(l){return l.trim().split(/\s+/g)}function Co(l,h,g){ua(Jl(h),function(y){l.addEventListener(y,g,!1)})}function op(l,h,g){ua(Jl(h),function(y){l.removeEventListener(y,g,!1)})}function Rh(l){var h=l.ownerDocument||l;return h.defaultView||h.parentWindow||window}var la=function(){function l(g,y){var w=this;this.manager=g,this.callback=y,this.element=g.element,this.target=g.options.inputTarget,this.domHandler=function(T){Qf(g.options.enable,[g])&&w.handler(T)},this.init()}var h=l.prototype;return h.handler=function(){},h.init=function(){this.evEl&&Co(this.element,this.evEl,this.domHandler),this.evTarget&&Co(this.target,this.evTarget,this.domHandler),this.evWin&&Co(Rh(this.element),this.evWin,this.domHandler)},h.destroy=function(){this.evEl&&op(this.element,this.evEl,this.domHandler),this.evTarget&&op(this.target,this.evTarget,this.domHandler),this.evWin&&op(Rh(this.element),this.evWin,this.domHandler)},l}();function Io(l,h,g){if(l.indexOf&&!g)return l.indexOf(h);for(var y=0;y$[h]}):y=y.sort()),y}var sp={touchstart:Dn,touchmove:rs,touchend:Sr,touchcancel:Vn},Dw="touchstart touchmove touchend touchcancel",tg=function(l){En(h,l);function h(){var y;return h.prototype.evTarget=Dw,y=l.apply(this,arguments)||this,y.targetIds={},y}var g=h.prototype;return g.handler=function(w){var T=sp[w.type],I=Cw.call(this,w,T);I&&this.callback(this.manager,T,{pointers:I[0],changedPointers:I[1],pointerType:Xl,srcEvent:w})},h}(la);function Cw(l,h){var g=ca(l.touches),y=this.targetIds;if(h&(Dn|rs)&&g.length===1)return y[g[0].identifier]=!0,[g,g];var w,T,I=ca(l.changedTouches),R=[],$=this.target;if(T=g.filter(function(B){return tp(B.target,$)}),h===Dn)for(w=0;w-1&&w.splice(R,1)};setTimeout(T,Pk)}}function Ak(l,h){l&Dn?(this.primaryTouch=h.changedPointers[0].identifier,Pw.call(this,h)):l&(Sr|Vn)&&Pw.call(this,h)}function ZE(l){for(var h=l.srcEvent.clientX,g=l.srcEvent.clientY,y=0;y-1&&this.requireFail.splice(w,1),this},h.hasRequireFailures=function(){return this.requireFail.length>0},h.canRecognizeWith=function(y){return!!this.simultaneous[y.id]},h.emit=function(y){var w=this,T=this.state;function I(R){w.manager.emit(R,y)}T<_u&&I(w.options.event+sr(T)),I(w.options.event),y.additionalEvent&&I(y.additionalEvent),T>=_u&&I(w.options.event+sr(T))},h.tryEmit=function(y){if(this.canEmit())return this.emit(y);this.state=hr},h.canEmit=function(){for(var y=0;yT.threshold&&$&T.direction},g.attrTest=function(w){return qn.prototype.attrTest.call(this,w)&&(this.state&oo||!(this.state&oo)&&this.directionTest(w))},g.emit=function(w){this.pX=w.deltaX,this.pY=w.deltaY;var T=$w(w.direction);T&&(w.additionalEvent=this.options.event+T),l.prototype.emit.call(this,w)},h}(qn),Yh=function(l){En(h,l);function h(y){return y===void 0&&(y={}),l.call(this,en({event:"swipe",threshold:10,velocity:.3,direction:Xn|io,pointers:1},y))||this}var g=h.prototype;return g.getTouchAction=function(){return Mw.prototype.getTouchAction.call(this)},g.attrTest=function(w){var T=this.options.direction,I;return T&(Xn|io)?I=w.overallVelocity:T&Xn?I=w.overallVelocityX:T&io&&(I=w.overallVelocityY),l.prototype.attrTest.call(this,w)&&T&w.offsetDirection&&w.distance>this.options.threshold&&w.maxPointers===this.options.pointers&&mu(I)>this.options.velocity&&w.eventType&Sr},g.emit=function(w){var T=$w(w.offsetDirection);T&&this.manager.emit(this.options.event+T,w),this.manager.emit(this.options.event,w)},h}(qn),Mk=function(l){En(h,l);function h(y){return y===void 0&&(y={}),l.call(this,en({event:"pinch",threshold:0,pointers:2},y))||this}var g=h.prototype;return g.getTouchAction=function(){return[Ci]},g.attrTest=function(w){return l.prototype.attrTest.call(this,w)&&(Math.abs(w.scale-1)>this.options.threshold||this.state&oo)},g.emit=function(w){if(w.scale!==1){var T=w.scale<1?"in":"out";w.additionalEvent=this.options.event+T}l.prototype.emit.call(this,w)},h}(qn),cp=function(l){En(h,l);function h(y){return y===void 0&&(y={}),l.call(this,en({event:"rotate",threshold:0,pointers:2},y))||this}var g=h.prototype;return g.getTouchAction=function(){return[Ci]},g.attrTest=function(w){return l.prototype.attrTest.call(this,w)&&(Math.abs(w.rotation)>this.options.threshold||this.state&oo)},h}(qn),Nk=function(l){En(h,l);function h(y){var w;return y===void 0&&(y={}),w=l.call(this,en({event:"press",pointers:1,time:251,threshold:9},y))||this,w._timer=null,w._input=null,w}var g=h.prototype;return g.getTouchAction=function(){return[no]},g.process=function(w){var T=this,I=this.options,R=w.pointers.length===I.pointers,$=w.distanceI.time;if(this._input=w,!$||!R||w.eventType&(Sr|Vn)&&!B)this.reset();else if(w.eventType&Dn)this.reset(),this._timer=setTimeout(function(){T.state=ao,T.tryEmit()},I.time);else if(w.eventType&Sr)return ao;return hr},g.reset=function(){clearTimeout(this._timer)},g.emit=function(w){this.state===ao&&(w&&w.eventType&Sr?this.manager.emit(this.options.event+"up",w):(this._input.timeStamp=Za(),this.manager.emit(this.options.event,this._input)))},h}(ha),hp={domEvents:!1,touchAction:gu,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Nw=[[cp,{enable:!1}],[Mk,{enable:!1},["rotate"]],[Yh,{direction:Xn}],[Mw,{direction:Xn},["swipe"]],[ag],[ag,{event:"doubletap",taps:2},["tap"]],[Nk]],Rk=1,sg=2;function ug(l,h){var g=l.element;if(g.style){var y;ua(l.options.cssProps,function(w,T){y=Qa(g.style,T),h?(l.oldCssProps[y]=g.style[y],g.style[y]=w):g.style[y]=l.oldCssProps[y]||""}),h||(l.oldCssProps={})}}function QE(l,h){var g=document.createEvent("Event");g.initEvent(l,!0,!0),g.gesture=h,h.target.dispatchEvent(g)}var Bh=function(){function l(g,y){var w=this;this.options=Wl({},hp,y||{}),this.options.inputTarget=this.options.inputTarget||g,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=g,this.input=Aw(this),this.touchAction=new Zm(this,this.options.touchAction),ug(this,!0),ua(this.options.recognizers,function(T){var I=w.add(new T[0](T[1]));T[2]&&I.recognizeWith(T[2]),T[3]&&I.requireFailure(T[3])},this)}var h=l.prototype;return h.set=function(y){return Wl(this.options,y),y.touchAction&&this.touchAction.update(),y.inputTarget&&(this.input.destroy(),this.input.target=y.inputTarget,this.input.init()),this},h.stop=function(y){this.session.stopped=y?sg:Rk},h.recognize=function(y){var w=this.session;if(!w.stopped){this.touchAction.preventDefaults(y);var T,I=this.recognizers,R=w.curRecognizer;(!R||R&&R.state&ao)&&(w.curRecognizer=null,R=null);for(var $=0;$\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",I=window.console&&(window.console.warn||window.console.log);return I&&I.call(window.console,y,T),l.apply(this,arguments)}}var Yk=Fk(function(l,h,g){for(var y=Object.keys(h),w=0;w=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}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 T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function Gk(l,h){var g;if(l){if(typeof l=="string")return jw(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return jw(l,h)}}function jw(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);g1?g-1:0),w=1;w2){var y;return dp.apply(void 0,If(y=[Lw(h[0],h[1])]).call(y,xn(Pl(h).call(h,2))))}var w=h[0],T=h[1];if(w instanceof Date&&T instanceof Date)return w.setTime(T.getTime()),w;var I=Rw(uw(T)),R;try{for(I.s();!(R=I.n()).done;){var $=R.value;Object.prototype.propertyIsEnumerable.call(T,$)&&(T[$]===hg?delete w[$]:w[$]!==null&&T[$]!==null&&typeof w[$]=="object"&&typeof T[$]=="object"&&!fn(w[$])&&!fn(T[$])?w[$]=dp(w[$],T[$]):w[$]=Fw(T[$]))}}catch(B){I.e(B)}finally{I.f()}return w}function Fw(l){return fn(l)?Zr(l).call(l,function(h){return Fw(h)}):typeof l=="object"&&l!==null?l instanceof Date?new Date(l.getTime()):dp({},l):l}function fp(l){for(var h=0,g=Mf(l);hI;)$=y(g,R=w[I++]),$!==void 0&&oT(T,R,$);return T}});var aT=Oe,Tu=aT.Object.getOwnPropertyDescriptors,sT=Tu,zw=sT,vD=zw,uT=z(vD),Zl={exports:{}},gg=Mt,mD=je,Uw=ol.f;gg({target:"Object",stat:!0,forced:Object.defineProperties!==Uw,sham:!mD},{defineProperties:Uw});var gD=Oe,Uh=gD.Object,Vw=Zl.exports=function(h,g){return Uh.defineProperties(h,g)};Uh.defineProperties.sham&&(Vw.sham=!0);var yD=Zl.exports,bD=yD,lT=bD,wD=lT,_D=z(wD),yg=Ca,cT=z(yg);function Vh(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}var xu=Eh,SD=xu,kD=SD,hT=kD,dT=hT,fT=z(dT),wp=Mt,TD=Wa;wp({target:"Object",stat:!0},{setPrototypeOf:TD});var xD=Oe,_p=xD.Object.setPrototypeOf,OD=_p,pT=OD,nn=pT,us=nn,vT=us,Xw=vT,qw=Xw,bg=z(qw),wg=l0,_g=wg,da=_g,mT=da,Kw=mT,Sp=z(Kw);function Sg(l,h){var g;return Sg=bg?Sp(g=bg).call(g):function(w,T){return w.__proto__=T,w},Sg(l,h)}function kg(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=fT(h&&h.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Ia(l,"prototype",{writable:!1}),h&&Sg(l,h)}function Mr(l,h){if(h&&(sh(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vh(l)}var Tg=gw,Xh=Tg,gT=Xh,Jw=gT,xg=Jw,Og=z(xg);function so(l){var h;return so=bg?Sp(h=Og).call(h):function(y){return y.__proto__||Og(y)},so(l)}var u={exports:{}},f={exports:{}};(function(l){var h=Zb,g=V1;function y(w){"@babel/helpers - typeof";return l.exports=y=typeof h=="function"&&typeof g=="symbol"?function(T){return typeof T}:function(T){return T&&typeof h=="function"&&T.constructor===h&&T!==h.prototype?"symbol":typeof T},l.exports.__esModule=!0,l.exports.default=l.exports,y(w)}l.exports=y,l.exports.__esModule=!0,l.exports.default=l.exports})(f);var v=f.exports,m=uk,S=m,E=S,P=E,A=P,N=or,U=Tm,K=xe,Q=jr,st=function(l,h,g){for(var y=U(h),w=Q.f,T=K.f,I=0;Iet;et++)if(rt=ae(l[et]),rt&&Jh(Op,rt))return rt;return new tc(!1)}B=yT(l,V)}for(xt=T?l.next:B.next;!(Ht=cs(xt,B)).done;){try{rt=ae(Ht.value)}catch(he){Qw(B,"throw",he)}if(typeof rt=="object"&&rt&&Jh(Op,rt))return rt}return new tc(!1)},mt=oi,ft=function(l,h){return l===void 0?arguments.length<2?"":h:mt(l)},Qt=Mt,$t=Fe,ge=Hv,gr=Wa,Jn=st,Cn=Uo,Eu=Sn,ec=ei,rc=Tt,kC=Eg,TC=lt,NI=ft,RI=Ye,jI=RI("toStringTag"),Dg=Error,LI=[].push,Cg=function(h,g){var y=$t(ED,this),w;gr?w=gr(new Dg,y?ge(this):ED):(w=y?this:Cn(ED),Eu(w,jI,"Error")),g!==void 0&&Eu(w,"message",NI(g)),kC(w,Cg,w.stack,1),arguments.length>2&&rc(w,arguments[2]);var T=[];return TC(h,LI,{that:T}),Eu(w,"errors",T),w};gr?gr(Cg,Dg):Jn(Cg,Dg,{name:!0});var ED=Cg.prototype=Cn(Dg.prototype,{constructor:ec(1,Cg),message:ec(1,""),name:ec(1,"AggregateError")});Qt({global:!0,constructor:!0,arity:2},{AggregateError:Cg});var DD=er,FI=vt,bT=Ye,YI=je,xC=bT("species"),OC=function(l){var h=DD(l);YI&&h&&!h[xC]&&FI(h,xC,{configurable:!0,get:function(){return this}})},BI=Fe,HI=TypeError,wT=function(l,h){if(BI(h,l))return l;throw new HI("Incorrect invocation")},t_=_n,GI=Yw,WI=Ro,zI=Ye,UI=zI("species"),EC=function(l,h){var g=t_(l).constructor,y;return g===void 0||WI(y=t_(g)[UI])?h:GI(y)},VI=Pn,_T=/(?:ipad|iphone|ipod).*applewebkit/i.test(VI),$o=St,DC=Nt,XI=Bo,ST=Re,qI=or,CD=dt,Du=Nd,KI=qc,kT=vc,JI=aa,ZI=_T,QI=lh,ID=$o.setImmediate,PD=$o.clearImmediate,tP=$o.process,AD=$o.Dispatch,CC=$o.Function,IC=$o.MessageChannel,eP=$o.String,TT=0,e_={},r_="onreadystatechange",Ig,Zh,$D,MD;CD(function(){Ig=$o.location});var xT=function(l){if(qI(e_,l)){var h=e_[l];delete e_[l],h()}},ND=function(l){return function(){xT(l)}},PC=function(l){xT(l.data)},AC=function(l){$o.postMessage(eP(l),Ig.protocol+"//"+Ig.host)};(!ID||!PD)&&(ID=function(h){JI(arguments.length,1);var g=ST(h)?h:CC(h),y=KI(arguments,1);return e_[++TT]=function(){DC(g,void 0,y)},Zh(TT),TT},PD=function(h){delete e_[h]},QI?Zh=function(l){tP.nextTick(ND(l))}:AD&&AD.now?Zh=function(l){AD.now(ND(l))}:IC&&!ZI?($D=new IC,MD=$D.port2,$D.port1.onmessage=PC,Zh=XI(MD.postMessage,MD)):$o.addEventListener&&ST($o.postMessage)&&!$o.importScripts&&Ig&&Ig.protocol!=="file:"&&!CD(AC)?(Zh=AC,$o.addEventListener("message",PC,!1)):r_ in kT("script")?Zh=function(l){Du.appendChild(kT("script"))[r_]=function(){Du.removeChild(this),xT(l)}}:Zh=function(l){setTimeout(ND(l),0)});var $C={set:ID,clear:PD},MC=function(){this.head=null,this.tail=null};MC.prototype={add:function(l){var h={item:l,next:null},g=this.tail;g?g.next=h:this.head=h,this.tail=h},get:function(){var l=this.head;if(l){var h=this.head=l.next;return h===null&&(this.tail=null),l.item}}};var NC=MC,rP=Pn,nP=/ipad|iphone|ipod/i.test(rP)&&typeof Pebble!="undefined",iP=Pn,oP=/web0s(?!.*chrome)/i.test(iP),Ep=St,RC=Bo,aP=xe.f,RD=$C.set,sP=NC,uP=_T,lP=nP,cP=oP,jD=lh,LD=Ep.MutationObserver||Ep.WebKitMutationObserver,jC=Ep.document,LC=Ep.process,n_=Ep.Promise,FC=aP(Ep,"queueMicrotask"),FD=FC&&FC.value,Pg,YD,BD,i_,YC;if(!FD){var Qh=new sP,o_=function(){var l,h;for(jD&&(l=LC.domain)&&l.exit();h=Qh.get();)try{h()}catch(g){throw Qh.head&&Pg(),g}l&&l.enter()};!uP&&!jD&&!cP&&LD&&jC?(YD=!0,BD=jC.createTextNode(""),new LD(o_).observe(BD,{characterData:!0}),Pg=function(){BD.data=YD=!YD}):!lP&&n_&&n_.resolve?(i_=n_.resolve(void 0),i_.constructor=n_,YC=RC(i_.then,i_),Pg=function(){YC(o_)}):jD?Pg=function(){LC.nextTick(o_)}:(RD=RC(RD,Ep),Pg=function(){RD(o_)}),FD=function(l){Qh.head||Pg(),Qh.add(l)}}var BC=FD,HD=function(l,h){try{arguments.length===1?console.error(l):console.error(l,h)}catch(g){}},Ag=function(l){try{return{error:!1,value:l()}}catch(h){return{error:!0,value:h}}},hP=St,$g=hP.Promise,a_=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",GD=a_,dP=lh,fP=!GD&&!dP&&typeof window=="object"&&typeof document=="object",pP=St,Mg=$g,HC=Re,vP=ni,mP=ev,gP=Ye,WD=fP,yP=a_,zD=po,GC=Mg&&Mg.prototype,bP=gP("species"),OT=!1,uo=HC(pP.PromiseRejectionEvent),WC=vP("Promise",function(){var l=mP(Mg),h=l!==String(Mg);if(!h&&zD===66||!(GC.catch&&GC.finally))return!0;if(!zD||zD<51||!/native code/.test(l)){var g=new Mg(function(T){T(1)}),y=function(T){T(function(){},function(){})},w=g.constructor={};if(w[bP]=y,OT=g.then(function(){})instanceof y,!OT)return!0}return!h&&(WD||yP)&&!uo}),Ng={CONSTRUCTOR:WC,REJECTION_EVENT:uo,SUBCLASSING:OT},pa={},UD=gn,zC=TypeError,UC=function(l){var h,g;this.promise=new l(function(y,w){if(h!==void 0||g!==void 0)throw new zC("Bad Promise constructor");h=y,g=w}),this.resolve=UD(h),this.reject=UD(g)};pa.f=function(l){return new UC(l)};var VD=Mt,Rg=lh,hs=St,s_=Ue,VC=W,ET=qs,wP=OC,XD=gn,qD=Re,XC=be,Dp=wT,_P=EC,KD=$C.set,JD=BC,qC=HD,SP=Ag,td=NC,KC=Js,Cu=$g,ZD=Ng,DT=pa,CT="Promise",JC=ZD.CONSTRUCTOR,kP=ZD.REJECTION_EVENT;ZD.SUBCLASSING;var QD=KC.getterFor(CT),TP=KC.set,tC=Cu&&Cu.prototype,jg=Cu,eC=tC,ZC=hs.TypeError,IT=hs.document,PT=hs.process,rC=DT.f,nC=rC,xP=!!(IT&&IT.createEvent&&hs.dispatchEvent),iC="unhandledrejection",OP="rejectionhandled",QC=0,ed=1,tI=2,oC=1,Cp=2,ds,Lg,eI,Fg=function(l){var h;return XC(l)&&qD(h=l.then)?h:!1},u_=function(l,h){var g=h.value,y=h.state===ed,w=y?l.ok:l.fail,T=l.resolve,I=l.reject,R=l.domain,$,B,V;try{w?(y||(h.rejection===Cp&&rI(h),h.rejection=oC),w===!0?$=g:(R&&R.enter(),$=w(g),R&&(R.exit(),V=!0)),$===l.promise?I(new ZC("Promise-chain cycle")):(B=Fg($))?s_(B,$,T,I):T($)):I(g)}catch(et){R&&!V&&R.exit(),I(et)}},aC=function(l,h){l.notified||(l.notified=!0,JD(function(){for(var g=l.reactions,y;y=g.get();)u_(y,l);l.notified=!1,h&&!l.rejection&&ee(l)}))},te=function(l,h,g){var y,w;xP?(y=IT.createEvent("Event"),y.promise=h,y.reason=g,y.initEvent(l,!1,!0),hs.dispatchEvent(y)):y={promise:h,reason:g},!kP&&(w=hs["on"+l])?w(y):l===iC&&qC("Unhandled promise rejection",g)},ee=function(l){s_(KD,hs,function(){var h=l.facade,g=l.value,y=Ze(l),w;if(y&&(w=SP(function(){Rg?PT.emit("unhandledRejection",g,h):te(iC,h,g)}),l.rejection=Rg||Ze(l)?Cp:oC,w.error))throw w.value})},Ze=function(l){return l.rejection!==oC&&!l.parent},rI=function(l){s_(KD,hs,function(){var h=l.facade;Rg?PT.emit("rejectionHandled",h):te(OP,h,l.value)})},fs=function(l,h,g){return function(y){l(h,y,g)}},ur=function(l,h,g){l.done||(l.done=!0,g&&(l=g),l.value=h,l.state=tI,aC(l,!0))},rd=function(l,h,g){if(!l.done){l.done=!0,g&&(l=g);try{if(l.facade===h)throw new ZC("Promise can't be resolved itself");var y=Fg(h);y?JD(function(){var w={done:!1};try{s_(y,h,fs(rd,w,l),fs(ur,w,l))}catch(T){ur(w,T,l)}}):(l.value=h,l.state=ed,aC(l,!1))}catch(w){ur({done:!1},w,l)}}};JC&&(jg=function(h){Dp(this,eC),XD(h),s_(ds,this);var g=QD(this);try{h(fs(rd,g),fs(ur,g))}catch(y){ur(g,y)}},eC=jg.prototype,ds=function(h){TP(this,{type:CT,done:!1,notified:!1,parent:!1,reactions:new td,rejection:!1,state:QC,value:void 0})},ds.prototype=VC(eC,"then",function(h,g){var y=QD(this),w=rC(_P(this,jg));return y.parent=!0,w.ok=qD(h)?h:!0,w.fail=qD(g)&&g,w.domain=Rg?PT.domain:void 0,y.state===QC?y.reactions.add(w):JD(function(){u_(w,y)}),w.promise}),Lg=function(){var l=new ds,h=QD(l);this.promise=l,this.resolve=fs(rd,h),this.reject=fs(ur,h)},DT.f=rC=function(l){return l===jg||l===eI?new Lg(l):nC(l)}),VD({global:!0,constructor:!0,wrap:!0,forced:JC},{Promise:jg}),ET(jg,CT,!1,!0),wP(CT);var EP=$g,DP=bf,CP=Ng.CONSTRUCTOR,AT=CP||!DP(function(l){EP.all(l).then(void 0,function(){})}),nI=Mt,IP=Ue,PP=gn,sC=pa,uC=Ag,iI=lt,nd=AT;nI({target:"Promise",stat:!0,forced:nd},{all:function(h){var g=this,y=sC.f(g),w=y.resolve,T=y.reject,I=uC(function(){var R=PP(g.resolve),$=[],B=0,V=1;iI(h,function(et){var Z=B++,rt=!1;V++,IP(R,g,et).then(function(xt){rt||(rt=!0,$[Z]=xt,--V||w($))},T)}),--V||w($)});return I.error&&T(I.value),y.promise}});var va=Mt,ps=Ng.CONSTRUCTOR,$T=$g;$T&&$T.prototype,va({target:"Promise",proto:!0,forced:ps,real:!0},{catch:function(l){return this.then(void 0,l)}});var Yg=Mt,lC=Ue,oI=gn,AP=pa,aI=Ag,$P=lt,cC=AT;Yg({target:"Promise",stat:!0,forced:cC},{race:function(h){var g=this,y=AP.f(g),w=y.reject,T=aI(function(){var I=oI(g.resolve);$P(h,function(R){lC(I,g,R).then(y.resolve,w)})});return T.error&&w(T.value),y.promise}});var l_=Mt,hC=Ue,Ii=pa,Zn=Ng.CONSTRUCTOR;l_({target:"Promise",stat:!0,forced:Zn},{reject:function(h){var g=Ii.f(this);return hC(g.reject,void 0,h),g.promise}});var nc=_n,lo=be,MT=pa,He=function(l,h){if(nc(l),lo(h)&&h.constructor===l)return h;var g=MT.f(l),y=g.resolve;return y(h),g.promise},ne=Mt,ke=er,Xe=Qg,Bg=$g,yr=Ng.CONSTRUCTOR,Hg=He,MP=ke("Promise"),NP=!yr;ne({target:"Promise",stat:!0,forced:Xe},{resolve:function(h){return Hg(NP&&this===MP?Bg:this,h)}});var Iu=Mt,RP=Ue,jP=gn,t=pa,e=Ag,n=lt,r=AT;Iu({target:"Promise",stat:!0,forced:r},{allSettled:function(h){var g=this,y=t.f(g),w=y.resolve,T=y.reject,I=e(function(){var R=jP(g.resolve),$=[],B=0,V=1;n(h,function(et){var Z=B++,rt=!1;V++,RP(R,g,et).then(function(xt){rt||(rt=!0,$[Z]={status:"fulfilled",value:xt},--V||w($))},function(xt){rt||(rt=!0,$[Z]={status:"rejected",reason:xt},--V||w($))})}),--V||w($)});return I.error&&T(I.value),y.promise}});var o=Mt,a=Ue,s=gn,d=er,p=pa,_=Ag,x=lt,O=AT,C="No one promise resolved";o({target:"Promise",stat:!0,forced:O},{any:function(h){var g=this,y=d("AggregateError"),w=p.f(g),T=w.resolve,I=w.reject,R=_(function(){var $=s(g.resolve),B=[],V=0,et=1,Z=!1;x(h,function(rt){var xt=V++,Ht=!1;et++,a($,g,rt).then(function(zt){Ht||Z||(Z=!0,T(zt))},function(zt){Ht||Z||(Ht=!0,B[xt]=zt,--et||I(new y(B,C)))})}),--et||I(new y(B,C))});return R.error&&I(R.value),w.promise}});var Y=Mt,j=$g,G=dt,X=er,q=Re,tt=EC,ot=He,wt=j&&j.prototype,It=!!j&&G(function(){wt.finally.call({then:function(){}},function(){})});Y({target:"Promise",proto:!0,real:!0,forced:It},{finally:function(l){var h=tt(this,X("Promise")),g=q(l);return this.then(g?function(y){return ot(h,l()).then(function(){return y})}:l,g?function(y){return ot(h,l()).then(function(){throw y})}:l)}});var pt=Oe,bt=pt.Promise,ut=bt,Lt=ut,re=Mt,lr=pa;re({target:"Promise",stat:!0},{withResolvers:function(){var h=lr.f(this);return{promise:h.promise,resolve:h.resolve,reject:h.reject}}});var dr=Lt,co=dr,Ip=Mt,Gg=pa,c_=Ag;Ip({target:"Promise",stat:!0,forced:!0},{try:function(l){var h=Gg.f(this),g=c_(l);return(g.error?h.reject:h.resolve)(g.value),h.promise}});var dC=co,sI=dC,Pi=sI,fC=dk,NT=fC,pC=NT,F$=pC,Y$=F$;(function(l){var h=v.default,g=xc,y=Zb,w=dT,T=xg,I=A,R=V0,$=qw,B=Pi,V=Y$,et=Q0;function Z(){l.exports=Z=function(){return xt},l.exports.__esModule=!0,l.exports.default=l.exports;var rt,xt={},Ht=Object.prototype,zt=Ht.hasOwnProperty,ae=g||function(Ct,gt,_t){Ct[gt]=_t.value},he=typeof y=="function"?y:{},Qn=he.iterator||"@@iterator",Gr=he.asyncIterator||"@@asyncIterator",$i=he.toStringTag||"@@toStringTag";function Wr(Ct,gt,_t){return g(Ct,gt,{value:_t,enumerable:!0,configurable:!0,writable:!0}),Ct[gt]}try{Wr({},"")}catch(Ct){Wr=function(_t,Yt,ue){return _t[Yt]=ue}}function Ap(Ct,gt,_t,Yt){var ue=gt&>.prototype instanceof jT?gt:jT,Zt=w(ue.prototype),vn=new nA(Yt||[]);return ae(Zt,"_invoke",{value:XR(Ct,_t,vn)}),Zt}function vs(Ct,gt,_t){try{return{type:"normal",arg:Ct.call(gt,_t)}}catch(Yt){return{type:"throw",arg:Yt}}}xt.wrap=Ap;var zg="suspendedStart",RT="suspendedYield",Ug="executing",od="completed",Pu={};function jT(){}function fI(){}function f_(){}var tA={};Wr(tA,Qn,function(){return this});var eA=T,pI=eA&&eA(eA(iA([])));pI&&pI!==Ht&&zt.call(pI,Qn)&&(tA=pI);var LT=f_.prototype=jT.prototype=w(tA);function ZA(Ct){var gt;I(gt=["next","throw","return"]).call(gt,function(_t){Wr(Ct,_t,function(Yt){return this._invoke(_t,Yt)})})}function vI(Ct,gt){function _t(ue,Zt,vn,Mo){var ga=vs(Ct[ue],Ct,Zt);if(ga.type!=="throw"){var p_=ga.arg,Vg=p_.value;return Vg&&h(Vg)=="object"&&zt.call(Vg,"__await")?gt.resolve(Vg.__await).then(function(v_){_t("next",v_,vn,Mo)},function(v_){_t("throw",v_,vn,Mo)}):gt.resolve(Vg).then(function(v_){p_.value=v_,vn(p_)},function(v_){return _t("throw",v_,vn,Mo)})}Mo(ga.arg)}var Yt;ae(this,"_invoke",{value:function(Zt,vn){function Mo(){return new gt(function(ga,p_){_t(Zt,vn,ga,p_)})}return Yt=Yt?Yt.then(Mo,Mo):Mo()}})}function XR(Ct,gt,_t){var Yt=zg;return function(ue,Zt){if(Yt===Ug)throw new Error("Generator is already running");if(Yt===od){if(ue==="throw")throw Zt;return{value:rt,done:!0}}for(_t.method=ue,_t.arg=Zt;;){var vn=_t.delegate;if(vn){var Mo=QA(vn,_t);if(Mo){if(Mo===Pu)continue;return Mo}}if(_t.method==="next")_t.sent=_t._sent=_t.arg;else if(_t.method==="throw"){if(Yt===zg)throw Yt=od,_t.arg;_t.dispatchException(_t.arg)}else _t.method==="return"&&_t.abrupt("return",_t.arg);Yt=Ug;var ga=vs(Ct,gt,_t);if(ga.type==="normal"){if(Yt=_t.done?od:RT,ga.arg===Pu)continue;return{value:ga.arg,done:_t.done}}ga.type==="throw"&&(Yt=od,_t.method="throw",_t.arg=ga.arg)}}}function QA(Ct,gt){var _t=gt.method,Yt=Ct.iterator[_t];if(Yt===rt)return gt.delegate=null,_t==="throw"&&Ct.iterator.return&&(gt.method="return",gt.arg=rt,QA(Ct,gt),gt.method==="throw")||_t!=="return"&&(gt.method="throw",gt.arg=new TypeError("The iterator does not provide a '"+_t+"' method")),Pu;var ue=vs(Yt,Ct.iterator,gt.arg);if(ue.type==="throw")return gt.method="throw",gt.arg=ue.arg,gt.delegate=null,Pu;var Zt=ue.arg;return Zt?Zt.done?(gt[Ct.resultName]=Zt.value,gt.next=Ct.nextLoc,gt.method!=="return"&&(gt.method="next",gt.arg=rt),gt.delegate=null,Pu):Zt:(gt.method="throw",gt.arg=new TypeError("iterator result is not an object"),gt.delegate=null,Pu)}function qR(Ct){var gt,_t={tryLoc:Ct[0]};1 in Ct&&(_t.catchLoc=Ct[1]),2 in Ct&&(_t.finallyLoc=Ct[2],_t.afterLoc=Ct[3]),R(gt=this.tryEntries).call(gt,_t)}function rA(Ct){var gt=Ct.completion||{};gt.type="normal",delete gt.arg,Ct.completion=gt}function nA(Ct){this.tryEntries=[{tryLoc:"root"}],I(Ct).call(Ct,qR,this),this.reset(!0)}function iA(Ct){if(Ct||Ct===""){var gt=Ct[Qn];if(gt)return gt.call(Ct);if(typeof Ct.next=="function")return Ct;if(!isNaN(Ct.length)){var _t=-1,Yt=function ue(){for(;++_t=0;--ue){var Zt=this.tryEntries[ue],vn=Zt.completion;if(Zt.tryLoc==="root")return Yt("end");if(Zt.tryLoc<=this.prev){var Mo=zt.call(Zt,"catchLoc"),ga=zt.call(Zt,"finallyLoc");if(Mo&&ga){if(this.prev=0;--Yt){var ue=this.tryEntries[Yt];if(ue.tryLoc<=this.prev&&zt.call(ue,"finallyLoc")&&this.prev=0;--_t){var Yt=this.tryEntries[_t];if(Yt.finallyLoc===gt)return this.complete(Yt.completion,Yt.afterLoc),rA(Yt),Pu}},catch:function(gt){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var Yt=this.tryEntries[_t];if(Yt.tryLoc===gt){var ue=Yt.completion;if(ue.type==="throw"){var Zt=ue.arg;rA(Yt)}return Zt}}throw new Error("illegal catch attempt")},delegateYield:function(gt,_t,Yt){return this.delegate={iterator:iA(gt),resultName:_t,nextLoc:Yt},this.method==="next"&&(this.arg=rt),Pu}},xt}l.exports=Z,l.exports.__esModule=!0,l.exports.default=l.exports})(u);var B$=u.exports,uI=B$(),H$=uI;try{regeneratorRuntime=uI}catch(l){typeof globalThis=="object"?globalThis.regeneratorRuntime=uI:Function("r","regeneratorRuntime = r")(uI)}var ma=z(H$),gA={exports:{}},G$=dt,W$=G$(function(){if(typeof ArrayBuffer=="function"){var l=new ArrayBuffer(8);Object.isExtensible(l)&&Object.defineProperty(l,"a",{value:8})}}),z$=dt,U$=be,V$=ho,yA=W$,lI=Object.isExtensible,X$=z$(function(){lI(1)}),q$=X$||yA?function(h){return!U$(h)||yA&&V$(h)==="ArrayBuffer"?!1:lI?lI(h):!0}:lI,K$=dt,J$=!K$(function(){return Object.isExtensible(Object.preventExtensions({}))}),Z$=Mt,Q$=ye,tM=Hs,eM=be,LP=or,rM=jr.f,bA=Vs,nM=kn,FP=q$,iM=Lo,oM=J$,wA=!1,Pp=iM("meta"),aM=0,YP=function(l){rM(l,Pp,{value:{objectID:"O"+aM++,weakData:{}}})},sM=function(l,h){if(!eM(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!LP(l,Pp)){if(!FP(l))return"F";if(!h)return"E";YP(l)}return l[Pp].objectID},uM=function(l,h){if(!LP(l,Pp)){if(!FP(l))return!0;if(!h)return!1;YP(l)}return l[Pp].weakData},lM=function(l){return oM&&wA&&FP(l)&&!LP(l,Pp)&&YP(l),l},cM=function(){hM.enable=function(){},wA=!0;var l=bA.f,h=Q$([].splice),g={};g[Pp]=1,l(g).length&&(bA.f=function(y){for(var w=l(y),T=0,I=w.length;T1?arguments[1]:void 0),rt;rt=rt?rt.next:et.first;)for(Z(rt.value,rt.key,this);rt&&rt.removed;)rt=rt.previous},has:function(V){return!!$(this,V)}}),TA(T,g?{get:function(V){var et=$(this,V);return et&&et.value},set:function(V,et){return R(this,V===0?0:V,et)}}:{add:function(V){return R(this,V=V===0?0:V,V)}}),vC&&PM(T,"size",{configurable:!0,get:function(){return I(this).size}}),w},setStrong:function(l,h,g){var y=h+" Iterator",w=BP(h),T=BP(y);RM(l,h,function(I,R){EA(this,{type:y,target:I,state:w(I),kind:R,last:void 0})},function(){for(var I=T(this),R=I.kind,$=I.last;$&&$.removed;)$=$.previous;return!I.target||!(I.last=$=$?$.next:I.state.first)?(I.target=void 0,cI(void 0,!0)):cI(R==="keys"?$.key:R==="values"?$.value:[$.key,$.value],!1)},g?"entries":"values",!g,!0),jM(h)}},LM=kA,FM=DA;LM("Map",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},FM);var YM=Oe,BM=YM.Map,HM=BM,GM=HM,WM=GM,CA=z(WM),zM=Mt,UM=hl.some,VM=cm,XM=VM("some");zM({target:"Array",proto:!0,forced:!XM},{some:function(h){return UM(this,h,arguments.length>1?arguments[1]:void 0)}});var qM=Yr,KM=qM("Array","some"),JM=Fe,ZM=KM,HP=Array.prototype,QM=function(l){var h=l.some;return l===HP||JM(HP,l)&&h===HP.some?ZM:h},tN=QM,eN=tN,rN=eN,nN=z(rN),iN=Yr,oN=iN("Array","keys"),aN=oN,sN=aN,uN=Vr,lN=or,cN=Fe,hN=sN,GP=Array.prototype,dN={DOMTokenList:!0,NodeList:!0},fN=function(l){var h=l.keys;return l===GP||cN(GP,l)&&h===GP.keys||lN(dN,uN(l))?hN:h},pN=fN,h_=z(pN),IA=Vo,vN=Math.floor,WP=function(l,h){var g=l.length,y=vN(g/2);return g<8?mN(l,h):gN(l,WP(IA(l,0,y),h),WP(IA(l,y),h),h)},mN=function(l,h){for(var g=l.length,y=1,w,T;y0;)l[T]=l[--T];T!==y++&&(l[T]=w)}return l},gN=function(l,h,g,y){for(var w=h.length,T=g.length,I=0,R=0;I3)){if(PN)return!0;if(LA)return LA<603;var l="",h,g,y,w;for(h=65;h<76;h++){switch(g=String.fromCharCode(h),h){case 66:case 69:case 70:case 72:y=3;break;case 68:case 71:y=4;break;default:y=2}for(w=0;w<47;w++)Wg.push({k:g+w,v:y})}for(Wg.sort(function(T,I){return I.v-T.v}),w=0;wNA(g)?1:-1}};xN({target:"Array",proto:!0,forced:RN},{sort:function(h){h!==void 0&&ON(h);var g=EN(this);if(YA)return h===void 0?FA(g):FA(g,h);var y=[],w=MA(g),T,I;for(I=0;Ithis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=_w(function(){g.flush()},this.delay))}},{key:"flush",value:function(){var g,y;qa(g=mk(y=this._queue).call(y,0)).call(g,function(w){w.fn.apply(w.context||w.fn,w.args||[])})}}],[{key:"extend",value:function(g,y){var w=new l(y);if(g.flush!==void 0)throw new Error("Target object already has a property flush");g.flush=function(){w.flush()};var T=[{name:"flush",original:void 0}];if(y&&y.replace)for(var I=0;I=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}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 T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function jR(l,h){var g;if(l){if(typeof l=="string")return zA(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return zA(l,h)}}function zA(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);gR&&(R=et,I=V)}return I}},{key:"min",value:function(y){var w=JP(this._pairs),T=w.next();if(T.done)return null;for(var I=T.value[1],R=y(T.value[1],T.value[0]);!(T=w.next()).done;){var $=ci(T.value,2),B=$[0],V=$[1],et=y(V,B);et=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}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 T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function LR(l,h){var g;if(l){if(typeof l=="string")return XA(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return XA(l,h)}}function XA(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);gV?1:BR)&&(I=V,R=et)}}catch(Z){$.e(Z)}finally{$.f()}return I||null}},{key:"min",value:function(w){var T,I=null,R=null,$=QP(BA(T=this._data).call(T)),B;try{for($.s();!(B=$.n()).done;){var V=B.value,et=V[w];typeof et=="number"&&(R==null||et=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}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 T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function GR(l,h){var g;if(l){if(typeof l=="string")return KA(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return KA(l,h)}}function KA(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);g{(function(F,L){typeof yI=="object"&&typeof u$!="undefined"?L(yI,o$(),s$()):typeof define=="function"&&define.amd?define(["exports","moment","vis-data/peer/umd/vis-data.js"],L):L((F=typeof globalThis!="undefined"?globalThis:F||self).vis=F.vis||{},F.moment,F.vis)})(yI,function(F,L,J){var z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yt={},St={get exports(){return yt},set exports(t){yt=t}},dt=function(t){return t&&t.Math==Math&&t},Gt=dt(typeof globalThis=="object"&&globalThis)||dt(typeof window=="object"&&window)||dt(typeof self=="object"&&self)||dt(typeof z=="object"&&z)||function(){return this}()||Function("return this")(),Wt=function(t){try{return!!t()}catch(e){return!0}},In=!Wt(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Qe=In,zr=Function.prototype,Mi=zr.apply,Nt=zr.call,an=typeof Reflect=="object"&&Reflect.apply||(Qe?Nt.bind(Mi):function(){return Nt.apply(Mi,arguments)}),Pe=In,sn=Function.prototype,le=sn.call,ye=Pe&&sn.bind.bind(le,le),se=Pe?ye:function(t){return function(){return le.apply(t,arguments)}},fi=se,kr=fi({}.toString),ho=fi("".slice),fr=function(t){return ho(kr(t),8,-1)},oc=fr,$u=se,Tr=function(t){if(oc(t)==="Function")return $u(t)},ad=typeof document=="object"&&document.all,Te={all:ad,IS_HTMLDDA:ad===void 0&&ad!==void 0},Ni=Te.all,ie=Te.IS_HTMLDDA?function(t){return typeof t=="function"||t===Ni}:function(t){return typeof t=="function"},Re={},xe=!Wt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ae=In,je=Function.prototype.call,Ur=Ae?je.bind(je):function(){return je.apply(je,arguments)},pi={},Ue={}.propertyIsEnumerable,Dt=Object.getOwnPropertyDescriptor,Mu=Dt&&!Ue.call({1:2},1);pi.f=Mu?function(t){var e=Dt(this,t);return!!e&&e.enumerable}:Ue;var un,ya,ei=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},sd=Wt,Kg=fr,gs=Object,No=se("".split),ac=sd(function(){return!gs("z").propertyIsEnumerable(0)})?function(t){return Kg(t)=="String"?No(t,""):gs(t)}:gs,ba=function(t){return t==null},Ro=ba,Jg=TypeError,ys=function(t){if(Ro(t))throw Jg("Can't call method on "+t);return t},ri=ac,ud=ys,tr=function(t){return ri(ud(t))},_e=ie,Ge=Te.all,xr=Te.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:_e(t)||t===Ge}:function(t){return typeof t=="object"?t!==null:_e(t)},we={},be=we,Oe=Gt,wr=ie,$e=function(t){return wr(t)?t:void 0},Xt=function(t,e){return arguments.length<2?$e(be[t])||$e(Oe[t]):be[t]&&be[t][e]||Oe[t]&&Oe[t][e]},Le=se({}.isPrototypeOf),er=typeof navigator!="undefined"&&String(navigator.userAgent)||"",bs=Gt,Fe=er,Pn=bs.process,fo=bs.Deno,An=Pn&&Pn.versions||fo&&fo.version,sc=An&&An.v8;sc&&(ya=(un=sc.split("."))[0]>0&&un[0]<4?1:+(un[0]+un[1])),!ya&&Fe&&(!(un=Fe.match(/Edge\/(\d+)/))||un[1]>=74)&&(un=Fe.match(/Chrome\/(\d+)/))&&(ya=+un[1]);var Ri=ya,ld=Ri,vi=Wt,rr=!!Object.getOwnPropertySymbols&&!vi(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ld&&ld<41}),wa=rr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",po=Xt,Et=ie,Zg=Le,Nu=Object,$n=wa?function(t){return typeof t=="symbol"}:function(t){var e=po("Symbol");return Et(e)&&Zg(e.prototype,Nu(t))},nr=String,qt=function(t){try{return nr(t)}catch(e){return"Object"}},uc=ie,Ee=qt,Or=TypeError,_a=function(t){if(uc(t))return t;throw Or(Ee(t)+" is not a function")},lc=_a,Er=ba,Nr=function(t,e){var n=t[e];return Er(n)?void 0:lc(n)},mn=Ur,De=ie,Mn=xr,ji=TypeError,ln={},gn={get exports(){return ln},set exports(t){ln=t}},$p=Gt,ws=Object.defineProperty,_s=function(t,e){try{ws($p,t,{value:e,configurable:!0,writable:!0})}catch(n){$p[t]=e}return e},Ru="__core-js_shared__",cn=Gt[Ru]||_s(Ru,{}),jo=cn;(gn.exports=function(t,e){return jo[t]||(jo[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Mp=ys,yn=Object,bn=function(t){return yn(Mp(t))},Qg=bn,Kt=se({}.hasOwnProperty),Rr=Object.hasOwn||function(t,e){return Kt(Qg(t),e)},ty=se,Np=0,Rp=Math.random(),ju=ty(1 .toString),cc=function(t){return"Symbol("+(t===void 0?"":t)+")_"+ju(++Np+Rp,36)},hc=ln,cd=Rr,Ss=cc,ey=rr,Sa=wa,ir=Gt.Symbol,hd=hc("wks"),qe=Sa?ir.for||ir:ir&&ir.withoutSetter||Ss,cr=function(t){return cd(hd,t)||(hd[t]=ey&&cd(ir,t)?ir[t]:qe("Symbol."+t)),hd[t]},or=Ur,dd=xr,ks=$n,dc=Nr,jp=function(t,e){var n,r;if(e==="string"&&De(n=t.toString)&&!Mn(r=mn(n,t))||De(n=t.valueOf)&&!Mn(r=mn(n,t))||e!=="string"&&De(n=t.toString)&&!Mn(r=mn(n,t)))return r;throw ji("Can't convert object to primitive value")},Lo=TypeError,vo=cr("toPrimitive"),ry=function(t,e){if(!dd(t)||ks(t))return t;var n,r=dc(t,vo);if(r){if(e===void 0&&(e="default"),n=or(r,t,e),!dd(n)||ks(n))return n;throw Lo("Can't convert object to primitive value")}return e===void 0&&(e="number"),jp(t,e)},Lu=$n,Fu=function(t){var e=ry(t,"string");return Lu(e)?e:e+""},fc=xr,fd=Gt.document,Fo=fc(fd)&&fc(fd.createElement),pc=function(t){return Fo?fd.createElement(t):{}},Lp=pc,Ye=!xe&&!Wt(function(){return Object.defineProperty(Lp("div"),"a",{get:function(){return 7}}).a!=7}),ny=xe,pd=Ur,Fp=pi,iy=ei,oy=tr,ay=Fu,sy=Rr,Yp=Ye,Bp=Object.getOwnPropertyDescriptor;Re.f=ny?Bp:function(t,e){if(t=oy(t),e=ay(e),Yp)try{return Bp(t,e)}catch(n){}if(sy(t,e))return iy(!pd(Fp.f,t,e),t[e])};var uy=Wt,ly=ie,Yo=/#|\.prototype\./,Yu=function(t,e){var n=vd[Hp(t)];return n==vc||n!=cy&&(ly(e)?uy(e):!!e)},Hp=Yu.normalize=function(t){return String(t).replace(Yo,".").toLowerCase()},vd=Yu.data={},cy=Yu.NATIVE="N",vc=Yu.POLYFILL="P",md=Yu,gd=_a,hy=In,Li=Tr(Tr.bind),_r=function(t,e){return gd(t),e===void 0?t:hy?Li(t,e):function(){return t.apply(e,arguments)}},Nn={},Gp=xe&&Wt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),dy=xr,fy=String,wn=TypeError,de=function(t){if(dy(t))return t;throw wn(fy(t)+" is not an object")},Bu=xe,Ts=Ye,mc=Gp,xs=de,Wp=Fu,ka=TypeError,Os=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Ta="enumerable",Hu="configurable",ni="writable";Nn.f=Bu?mc?function(t,e,n){if(xs(t),e=Wp(e),xs(n),typeof t=="function"&&e==="prototype"&&"value"in n&&ni in n&&!n[ni]){var r=Fi(t,e);r&&r[ni]&&(t[e]=n.value,n={configurable:Hu in n?n[Hu]:r[Hu],enumerable:Ta in n?n[Ta]:r[Ta],writable:!1})}return Os(t,e,n)}:Os:function(t,e,n){if(xs(t),e=Wp(e),xs(n),Ts)try{return Os(t,e,n)}catch(r){}if("get"in n||"set"in n)throw ka("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var zp=Nn,mi=ei,mo=xe?function(t,e,n){return zp.f(t,e,mi(1,n))}:function(t,e,n){return t[e]=n,t},gc=Gt,Bo=an,jr=Tr,yd=ie,py=Re.f,xa=md,Es=we,Oa=_r,Ea=mo,_n=Rr,Rt=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return Bo(t,this,arguments)};return e.prototype=t.prototype,e},Bt=function(t,e){var n,r,o,a,s,d,p,_,x,O=t.target,C=t.global,Y=t.stat,j=t.proto,G=C?gc:Y?gc[O]:(gc[O]||{}).prototype,X=C?Es:Es[O]||Ea(Es,O,{})[O],q=X.prototype;for(a in e)r=!(n=xa(C?a:O+(Y?".":"#")+a,t.forced))&&G&&_n(G,a),d=X[a],r&&(p=t.dontCallGetSet?(x=py(G,a))&&x.value:G[a]),s=r&&p?p:e[a],r&&typeof d==typeof s||(_=t.bind&&r?Oa(s,gc):t.wrap&&r?Rt(s):j&&yd(s)?jr(s):s,(t.sham||s&&s.sham||d&&d.sham)&&Ea(_,"sham",!0),Ea(X,a,_),j&&(_n(Es,o=O+"Prototype")||Ea(Es,o,{}),Ea(Es[o],a,s),t.real&&q&&(n||!q[a])&&Ea(q,a,s)))},yc=se([].slice),Da=se,bd=_a,Ds=xr,bc=Rr,Gu=yc,Cs=In,Is=Function,Yi=Da([].concat),vy=Da([].join),wd={},my=function(t,e,n){if(!bc(wd,e)){for(var r=[],o=0;o0?qp:Sd)(e)},yo=function(t){var e=+t;return e!=e||e===0?0:Oc(e)},ii=yo,Hi=Math.max,kd=Math.min,Lr=function(t,e){var n=ii(t);return n<0?Hi(n+e,0):kd(n,e)},Kp=yo,Jp=Math.min,qu=function(t){return t>0?Jp(Kp(t),9007199254740991):0},bi=function(t){return qu(t.length)},Ku=tr,Sy=Lr,As=bi,Zp=function(t){return function(e,n,r){var o,a=Ku(e),s=As(a),d=Sy(r,s);if(t&&n!=n){for(;s>d;)if((o=a[d++])!=o)return!0}else for(;s>d;d++)if((t||d in a)&&a[d]===n)return t||d||0;return!t&&-1}},Pa={includes:Zp(!0),indexOf:Zp(!1)},$s={},Ju=Rr,ky=tr,Ty=Pa.indexOf,Ec=$s,Qp=se([].push),Td=function(t,e){var n,r=ky(t),o=0,a=[];for(n in r)!Ju(Ec,n)&&Ju(r,n)&&Qp(a,n);for(;e.length>o;)Ju(r,n=e[o++])&&(~Ty(a,n)||Qp(a,n));return a},Dc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xy=Td,Oy=Dc,Vr=Object.keys||function(t){return xy(t,Oy)},tv=xe,Ey=Gp,xd=Nn,Dy=de,ev=tr,Aa=Vr;Xu.f=tv&&!Ey?Object.defineProperties:function(t,e){Dy(t);for(var n,r=ev(e),o=Aa(e),a=o.length,s=0;a>s;)xd.f(t,n=o[s++],r[n]);return t};var $a,rv=Xt("document","documentElement"),nv=cc,Od=ln("keys"),Go=function(t){return Od[t]||(Od[t]=nv(t))},Zu=de,Ms=Xu,Ns=Dc,Qu=$s,Rs=rv,js=pc,Gi="prototype",Cc="script",tl=Go("IE_PROTO"),Ic=function(){},Ed=function(t){return"<"+Cc+">"+t+""},Dd=function(t){t.write(Ed("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ls=function(){try{$a=new ActiveXObject("htmlfile")}catch(o){}var t,e,n;Ls=typeof document!="undefined"?document.domain&&$a?Dd($a):(e=js("iframe"),n="java"+Cc+":",e.style.display="none",Rs.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ed("document.F=Object")),t.close(),t.F):Dd($a);for(var r=Ns.length;r--;)delete Ls[Gi][Ns[r]];return Ls()};Qu[tl]=!0;var Fs=Object.create||function(t,e){var n;return t!==null?(Ic[Gi]=Zu(t),n=new Ic,Ic[Gi]=null,n[tl]=t):n=Ls(),e===void 0?n:Ms.f(n,e)},iv=Bt,Ys=an,Cy=Sn,el=function(t){if(wy(t))return t;throw _y(go(t)+" is not a constructor")},Iy=de,ov=xr,Py=Fs,av=Wt,Wi=Xt("Reflect","construct"),sv=Object.prototype,Ay=[].push,Cd=av(function(){function t(){}return!(Wi(function(){},[],t)instanceof t)}),rl=!av(function(){Wi(function(){})}),uv=Cd||rl;iv({target:"Reflect",stat:!0,forced:uv,sham:uv},{construct:function(t,e){el(t),Iy(e);var n=arguments.length<3?t:el(arguments[2]);if(rl&&!Cd)return Wi(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return Ys(Ay,r,e),new(Ys(Cy,t,r))}var o=n.prototype,a=Py(ov(o)?o:sv),s=Ys(t,a,e);return ov(s)?s:a}});var $y=we.Reflect.construct;(function(t){t.exports=$y})(St);var At=nt(yt);function Se(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Id={},My={get exports(){return Id},set exports(t){Id=t}},Ma={},Bs={get exports(){return Ma},set exports(t){Ma=t}},nl={},Pd={get exports(){return nl},set exports(t){nl=t}},lv=Bt,cv=xe,il=Nn.f;lv({target:"Object",stat:!0,forced:Object.defineProperty!==il,sham:!cv},{defineProperty:il});var Wo=we.Object,oi=Pd.exports=function(t,e,n){return Wo.defineProperty(t,e,n)};Wo.defineProperty.sham&&(oi.sham=!0);var ol=nl,Ny=ol;(function(t){t.exports=Ny})(Bs),function(t){t.exports=Ma}(My);var Na=nt(Id),Pc={},Ac={get exports(){return Pc},set exports(t){Pc=t}},Ad={},zo={get exports(){return Ad},set exports(t){Ad=t}},hv=fr,bo=Array.isArray||function(t){return hv(t)=="Array"},Ry=TypeError,Hs=function(t){if(t>9007199254740991)throw Ry("Maximum allowed index exceeded");return t},ct=Fu,$d=Nn,dv=ei,wi=function(t,e,n){var r=ct(e);r in t?$d.f(t,r,dv(0,n)):t[r]=n},fe=bo,zi=Ia,Md=xr,Ra=cr("species"),Gs=Array,jy=function(t){var e;return fe(t)&&(e=t.constructor,(zi(e)&&(e===Gs||fe(e.prototype))||Md(e)&&(e=e[Ra])===null)&&(e=void 0)),e===void 0?Gs:e},wo=function(t,e){return new(jy(t))(e===0?0:e)},al=Wt,$c=Ri,Ui=cr("species"),sl=function(t){return $c>=51||!al(function(){var e=[];return(e.constructor={})[Ui]=function(){return{foo:1}},e[t](Boolean).foo!==1})},fv=Bt,Ly=Wt,ar=bo,Nd=xr,Fy=bn,pv=bi,ul=Hs,Ws=wi,_o=wo,vv=sl,mv=Ri,gv=cr("isConcatSpreadable"),Yy=mv>=51||!Ly(function(){var t=[];return t[gv]=!1,t.concat()[0]!==t}),By=function(t){if(!Nd(t))return!1;var e=t[gv];return e!==void 0?!!e:ar(t)};fv({target:"Array",proto:!0,arity:1,forced:!Yy||!vv("concat")},{concat:function(t){var e,n,r,o,a,s=Fy(this),d=_o(s,0),p=0;for(e=-1,r=arguments.length;ett;tt++)if((d||tt in G)&&(Y=X(C=G[tt],tt,j),t))if(e)wt[tt]=Y;else if(Y)switch(t){case 3:return!0;case 5:return C;case 6:return tt;case 2:Ks(wt,C)}else switch(t){case 4:return!1;case 7:Ks(wt,C)}return a?-1:r||o?o:wt}},qo={forEach:ko(0),map:ko(1),filter:ko(2),some:ko(3),every:ko(4),find:ko(5),findIndex:ko(6),filterReject:ko(7)},Rc=Bt,Hd=Gt,cl=Ur,To=se,Ko=xe,jc=rr,x_=Wt,pe=Rr,Jo=Le,Js=de,Lc=tr,Tv=Fu,qy=Dr,Gd=ei,Zs=Fs,xv=Vr,Ky=ja,Zo=zs,hl=jn,Fc=Re,dl=Nn,Jy=Xu,O_=pi,fl=ll,Yc=Fd,Ov=ln,Fr=$s,Ev=cc,Zy=cr,Dv=Vo,Qy=W,qT=pr,tb=Xs,Bc=Ir,Hc=qo.forEach,Xr=Go("hidden"),Gc="Symbol",Wd="prototype",eb=Bc.set,rb=Bc.getterFor(Gc),Xi=Object[Wd],Qs=Hd.Symbol,Wc=Qs&&Qs[Wd],E_=Hd.TypeError,zd=Hd.QObject,zc=Fc.f,Ya=dl.f,Cv=Zo.f,D_=O_.f,nb=To([].push),Ba=Ov("symbols"),Ud=Ov("op-symbols"),KT=Ov("wks"),xo=!zd||!zd[Wd]||!zd[Wd].findChild,Ha=Ko&&x_(function(){return Zs(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=zc(Xi,e);r&&delete Xi[e],Ya(t,e,n),r&&t!==Xi&&Ya(Xi,e,r)}:Ya,hn=function(t,e){var n=Ba[t]=Zs(Wc);return eb(n,{type:Gc,tag:t,description:e}),Ko||(n.description=e),n},pl=function(t,e,n){t===Xi&&pl(Ud,e,n),Js(t);var r=Tv(e);return Js(n),pe(Ba,r)?(n.enumerable?(pe(t,Xr)&&t[Xr][r]&&(t[Xr][r]=!1),n=Zs(n,{enumerable:Gd(0,!1)})):(pe(t,Xr)||Ya(t,Xr,Gd(1,{})),t[Xr][r]=!0),Ha(t,r,n)):Ya(t,r,n)},vl=function(t,e){Js(t);var n=Lc(e),r=xv(n).concat(Ga(n));return Hc(r,function(o){Ko&&!cl(C_,n,o)||pl(t,o,n[o])}),t},C_=function(t){var e=Tv(t),n=cl(D_,this,e);return!(this===Xi&&pe(Ba,e)&&!pe(Ud,e))&&(!(n||!pe(this,e)||!pe(Ba,e)||pe(this,Xr)&&this[Xr][e])||n)},ib=function(t,e){var n=Lc(t),r=Tv(e);if(n!==Xi||!pe(Ba,r)||pe(Ud,r)){var o=zc(n,r);return!o||!pe(Ba,r)||pe(n,Xr)&&n[Xr][r]||(o.enumerable=!0),o}},ki=function(t){var e=Cv(Lc(t)),n=[];return Hc(e,function(r){pe(Ba,r)||pe(Fr,r)||nb(n,r)}),n},Ga=function(t){var e=t===Xi,n=Cv(e?Ud:Lc(t)),r=[];return Hc(n,function(o){!pe(Ba,o)||e&&!pe(Xi,o)||nb(r,Ba[o])}),r};jc||(Qs=function(){if(Jo(Wc,this))throw E_("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?qy(arguments[0]):void 0,e=Ev(t),n=function(r){this===Xi&&cl(n,Ud,r),pe(this,Xr)&&pe(this[Xr],e)&&(this[Xr][e]=!1),Ha(this,e,Gd(1,r))};return Ko&&xo&&Ha(Xi,e,{configurable:!0,set:n}),hn(e,t)},fl(Wc=Qs[Wd],"toString",function(){return rb(this).tag}),fl(Qs,"withoutSetter",function(t){return hn(Ev(t),t)}),O_.f=C_,dl.f=pl,Jy.f=vl,Fc.f=ib,Ky.f=Zo.f=ki,hl.f=Ga,Dv.f=function(t){return hn(Zy(t),t)},Ko&&Yc(Wc,"description",{configurable:!0,get:function(){return rb(this).description}})),Rc({global:!0,constructor:!0,wrap:!0,forced:!jc,sham:!jc},{Symbol:Qs}),Hc(xv(KT),function(t){Qy(t)}),Rc({target:Gc,stat:!0,forced:!jc},{useSetter:function(){xo=!0},useSimple:function(){xo=!1}}),Rc({target:"Object",stat:!0,forced:!jc,sham:!Ko},{create:function(t,e){return e===void 0?Zs(t):vl(Zs(t),e)},defineProperty:pl,defineProperties:vl,getOwnPropertyDescriptor:ib}),Rc({target:"Object",stat:!0,forced:!jc},{getOwnPropertyNames:ki}),qT(),tb(Qs,Gc),Fr[Xr]=!0;var ml=rr&&!!Symbol.for&&!!Symbol.keyFor,I_=Bt,JT=Xt,ob=Rr,ab=Dr,tu=ln,P_=ml,sb=tu("string-to-symbol-registry"),A_=tu("symbol-to-string-registry");I_({target:"Symbol",stat:!0,forced:!P_},{for:function(t){var e=ab(t);if(ob(sb,e))return sb[e];var n=JT("Symbol")(e);return sb[e]=n,A_[n]=e,n}});var Ln=Bt,Uc=Rr,$_=$n,ub=qt,gl=ml,Vc=ln("symbol-to-string-registry");Ln({target:"Symbol",stat:!0,forced:!gl},{keyFor:function(t){if(!$_(t))throw TypeError(ub(t)+" is not a symbol");if(Uc(Vc,t))return Vc[t]}});var Iv=bo,Vd=ie,Pv=fr,lb=Dr,cb=se([].push),hb=Bt,db=Xt,fb=an,ZT=Ur,Xc=se,pb=Wt,Av=ie,M_=$n,Xd=yc,N_=function(t){if(Vd(t))return t;if(Iv(t)){for(var e=t.length,n=[],r=0;r=e.length?(t.target=void 0,Bv(void 0,!0)):Bv(n=="keys"?r:n=="values"?e[r]:[r,e[r]],!1)},"values"),r1.Arguments=r1.Array;var Hv={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},Sx=Gt,kx=gi,i1=mo,o1=yl,Gv=cr("toStringTag");for(var $b in Hv){var a1=Sx[$b],th=a1&&a1.prototype;th&&kx(th)!==Gv&&i1(th,Gv,$b),o1[$b]=o1.Array}var Mb=Kc;W("dispose");var ta=Mb;W("asyncDispose");var Wv=Bt,Nb=se,s1=Xt("Symbol"),Rb=s1.keyFor,u1=Nb(s1.prototype.valueOf);Wv({target:"Symbol",stat:!0},{isRegistered:function(t){try{return Rb(u1(t))!==void 0}catch(e){return!1}}});for(var Tx=Bt,eh=ln,l1=Xt,c1=se,h1=$n,_l=cr,Fn=l1("Symbol"),jb=Fn.isWellKnown,d1=l1("Object","getOwnPropertyNames"),xx=c1(Fn.prototype.valueOf),f1=eh("wks"),zv=0,p1=d1(Fn),v1=p1.length;zv=d?t?"":void 0:(r=qv(a,s))<55296||r>56319||s+1===d||(o=qv(a,s+1))<56320||o>57343?t?Xv(a,s):r:t?Sl(a,s,s+2):o-56320+(r-55296<<10)+65536}},Lb={codeAt:tf(!1),charAt:tf(!0)}.charAt,b1=Dr,ef=Ir,w1=Yv,Fb=Qc,Kv="String Iterator",Yb=ef.set,Jv=ef.getterFor(Kv);w1(String,"String",function(t){Yb(this,{type:Kv,string:b1(t),index:0})},function(){var t,e=Jv(this),n=e.string,r=e.index;return r>=n.length?Fb(void 0,!0):(t=Lb(n,r),e.index+=t.length,Fb(t,!1))});var rh=Vo.f("iterator");(function(t){t.exports=rh})(Ex),function(t){t.exports=Vv}(g1);var _1=nt(Uv);function Jt(t){return Jt=typeof Wa=="function"&&typeof _1=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Wa=="function"&&e.constructor===Wa&&e!==Wa.prototype?"symbol":typeof e},Jt(t)}var nh={},S1={get exports(){return nh},set exports(t){nh=t}},rf={},k1={get exports(){return rf},set exports(t){rf=t}},Ix=Vo.f("toPrimitive");(function(t){t.exports=Ix})(k1),function(t){t.exports=rf}(S1);var Px=nt(nh);function T1(t){var e=function(n,r){if(Jt(n)!=="object"||n===null)return n;var o=n[Px];if(o!==void 0){var a=o.call(n,r||"default");if(Jt(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(t,"string");return Jt(e)==="symbol"?e:String(e)}function x1(t,e){for(var n=0;nn,s=zx(r)?r:B1(r),d=a?F1(arguments,n):[],p=a?function(){Qb(s,this,d)}:s;return e?t(p,o):t(p)}:t},G1=Bt,uf=Gt,rm=H1(uf.setInterval,!0);G1({global:!0,bind:!0,forced:uf.setInterval!==rm},{setInterval:rm});var W1=Bt,ah=Gt,nm=H1(ah.setTimeout,!0);W1({global:!0,bind:!0,forced:ah.setTimeout!==nm},{setTimeout:nm});var z1=we.setTimeout;(function(t){t.exports=z1})(Gx);var Yn=nt(Jb),e0={},Ux={get exports(){return e0},set exports(t){e0=t}},Vx=Wt,ou=function(t,e){var n=[][t];return!!n&&Vx(function(){n.call(null,e||function(){return 1},1)})},Xx=qo.forEach,U1=ou("forEach")?[].forEach:function(t){return Xx(this,t,arguments.length>1?arguments[1]:void 0)};Bt({target:"Array",proto:!0,forced:[].forEach!=U1},{forEach:U1});var qx=Pr("Array").forEach,Kx=gi,V1=Rr,Jx=Le,sh=qx,lf=Array.prototype,X1={DOMTokenList:!0,NodeList:!0},Zx=function(t){var e=t.forEach;return t===lf||Jx(lf,t)&&e===lf.forEach||V1(X1,Kx(t))?sh:e};(function(t){t.exports=Zx})(Ux);var Ot=nt(e0),Bn=typeof window!="undefined"&&window.moment||L,r0={},Qx={get exports(){return r0},set exports(t){r0=t}},q1=we.Object.getOwnPropertySymbols;(function(t){t.exports=q1})(Qx);var im=nt(r0),n0={},tO={get exports(){return n0},set exports(t){n0=t}},K1=qo.filter;Bt({target:"Array",proto:!0,forced:!sl("filter")},{filter:function(t){return K1(this,t,arguments.length>1?arguments[1]:void 0)}});var J1=Pr("Array").filter,kl=Le,qi=J1,uh=Array.prototype,eO=function(t){var e=t.filter;return t===uh||kl(uh,t)&&e===uh.filter?qi:e},rO=eO;(function(t){t.exports=rO})(tO);var ve=nt(n0),om={},i0={get exports(){return om},set exports(t){om=t}},cf={},Z1={get exports(){return cf},set exports(t){cf=t}},nO=Bt,am=Wt,o0=tr,sm=Re.f,Hn=xe;nO({target:"Object",stat:!0,forced:!Hn||am(function(){sm(1)}),sham:!Hn},{getOwnPropertyDescriptor:function(t,e){return sm(o0(t),e)}});var dn=we.Object,hf=Z1.exports=function(t,e){return dn.getOwnPropertyDescriptor(t,e)};dn.getOwnPropertyDescriptor.sham&&(hf.sham=!0);var iO=cf;(function(t){t.exports=iO})(i0);var Yr=nt(om),a0={},s0={get exports(){return a0},set exports(t){a0=t}},um=Xt,df=ja,u0=jn,oO=de,aO=se([].concat),l0=um("Reflect","ownKeys")||function(t){var e=df.f(oO(t)),n=u0.f;return n?aO(e,n(t)):e},sO=l0,za=tr,Q1=Re,Gn=wi;Bt({target:"Object",stat:!0,sham:!xe},{getOwnPropertyDescriptors:function(t){for(var e,n,r=za(t),o=Q1.f,a=sO(r),s={},d=0;a.length>d;)(n=o(r,e=a[d++]))!==void 0&&Gn(s,e,n);return s}});var uO=we.Object.getOwnPropertyDescriptors;(function(t){t.exports=uO})(s0);var ff=nt(a0),pf={},tS={get exports(){return pf},set exports(t){pf=t}},lm={},lO={get exports(){return lm},set exports(t){lm=t}},cm=Bt,cO=xe,eS=Xu.f;cm({target:"Object",stat:!0,forced:Object.defineProperties!==eS,sham:!cO},{defineProperties:eS});var lh=we.Object,c0=lO.exports=function(t,e){return lh.defineProperties(t,e)};lh.defineProperties.sham&&(c0.sham=!0);var hO=lm;(function(t){t.exports=hO})(tS);var h0=nt(pf);function ea(t,e,n){return(e=T1(e))in t?Na(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d0={},dO={get exports(){return d0},set exports(t){d0=t}},fO=qo.map;Bt({target:"Array",proto:!0,forced:!sl("map")},{map:function(t){return fO(this,t,arguments.length>1?arguments[1]:void 0)}});var rS=Pr("Array").map,pO=Le,vO=rS,f0=Array.prototype,vf=function(t){var e=t.map;return t===f0||pO(f0,t)&&e===f0.map?vO:e},nS=vf;(function(t){t.exports=nS})(dO);var Br=nt(d0),hm={},mO={get exports(){return hm},set exports(t){hm=t}},p0=_a,gO=bn,yO=ac,bO=bi,wO=TypeError,iS=function(t){return function(e,n,r,o){p0(n);var a=gO(e),s=yO(a),d=bO(a),p=t?d-1:0,_=t?-1:1;if(r<2)for(;;){if(p in s){o=s[p],p+=_;break}if(p+=_,t?p<0:d<=p)throw wO("Reduce of empty array with no initial value")}for(;t?p>=0:d>p;p+=_)p in s&&(o=n(o,s[p],p,a));return o}},_O={left:iS(!1),right:iS(!0)},SO=typeof process!="undefined"&&fr(process)=="process",kO=_O.left;Bt({target:"Array",proto:!0,forced:!SO&&Ri>79&&Ri<83||!ou("reduce")},{reduce:function(t){var e=arguments.length;return kO(this,t,e,e>1?arguments[1]:void 0)}});var v0=Pr("Array").reduce,m0=Le,TO=v0,g0=Array.prototype,xO=function(t){var e=t.reduce;return t===g0||m0(g0,t)&&e===g0.reduce?TO:e},Kr=xO;(function(t){t.exports=Kr})(mO);var oS=nt(hm),y0={},b0={get exports(){return y0},set exports(t){y0=t}},aS=bn,w0=Vr;Bt({target:"Object",stat:!0,forced:Wt(function(){w0(1)})},{keys:function(t){return w0(aS(t))}});var OO=we.Object.keys;(function(t){t.exports=OO})(b0);var Jr=nt(y0),_0={};(function(t){t.exports=ol})({get exports(){return _0},set exports(t){_0=t}});var Tl=nt(_0),S0={},EO={get exports(){return S0},set exports(t){S0=t}},DO=Ur,sS=de,Zr=Nr,k0=function(t,e,n){var r,o;sS(t);try{if(!(r=Zr(t,"return"))){if(e==="throw")throw n;return n}r=DO(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return sS(r),n},CO=de,IO=k0,uS=yl,T0=cr("iterator"),PO=Array.prototype,x0=function(t){return t!==void 0&&(uS.Array===t||PO[T0]===t)},AO=gi,lS=Nr,$O=ba,cS=yl,MO=cr("iterator"),ch=function(t){if(!$O(t))return lS(t,MO)||lS(t,"@@iterator")||cS[AO(t)]},NO=Ur,RO=_a,jO=de,O0=qt,LO=ch,hS=TypeError,E0=function(t,e){var n=arguments.length<2?LO(t):e;if(RO(n))return jO(NO(n,t));throw hS(O0(t)+" is not iterable")},FO=_r,YO=Ur,BO=bn,HO=function(t,e,n,r){try{return r?e(CO(n)[0],n[1]):e(n)}catch(o){IO(t,"throw",o)}},GO=x0,WO=Ia,dS=bi,fS=wi,D0=E0,zO=ch,C0=Array,I0=cr("iterator"),pS=!1;try{var vS=0,P0={next:function(){return{done:!!vS++}},return:function(){pS=!0}};P0[I0]=function(){return this},Array.from(P0,function(){throw 2})}catch(t){}var UO=function(t){var e=BO(t),n=WO(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=o!==void 0;a&&(o=FO(o,r>2?arguments[2]:void 0));var s,d,p,_,x,O,C=zO(e),Y=0;if(!C||this===C0&&GO(C))for(s=dS(e),d=n?new this(s):C0(s);s>Y;Y++)O=a?o(e[Y],Y):e[Y],fS(d,Y,O);else for(x=(_=D0(e,C)).next,d=n?new this:[];!(p=YO(x,_)).done;Y++)O=a?HO(_,o,[p.value,Y],!0):p.value,fS(d,Y,O);return d.length=Y,d},A0=function(t,e){if(!e&&!pS)return!1;var n=!1;try{var r={};r[I0]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n};Bt({target:"Array",stat:!0,forced:!A0(function(t){Array.from(t)})},{from:UO});var $0=we.Array.from;(function(t){t.exports=$0})(EO);var au=nt(S0),Ti={},Ki={get exports(){return Ti},set exports(t){Ti=t}},hh={},su=ch;(function(t){t.exports=su})({get exports(){return hh},set exports(t){hh=t}}),function(t){t.exports=hh}(Ki);var Qr=nt(Ti),dm={},VO={get exports(){return dm},set exports(t){dm=t}},uu={},xl=em;(function(t){t.exports=xl})({get exports(){return uu},set exports(t){uu=t}}),function(t){t.exports=uu}(VO);var fm=nt(dm),dh={},pm={get exports(){return dh},set exports(t){dh=t}},vm={},mS={get exports(){return vm},set exports(t){vm=t}},gS=Bt,mm=bo,Ol=Ia,mf=xr,fh=Lr,gf=bi,yS=tr,XO=wi,bS=cr,yf=yc,M0=sl("slice"),wS=bS("species"),tn=Array,Ar=Math.max;gS({target:"Array",proto:!0,forced:!M0},{slice:function(t,e){var n,r,o,a=yS(this),s=gf(a),d=fh(t,s),p=fh(e===void 0?s:e,s);if(mm(a)&&(n=a.constructor,(Ol(n)&&(n===tn||mm(n.prototype))||mf(n)&&(n=n[wS])===null)&&(n=void 0),n===tn||n===void 0))return yf(a,d,p);for(r=new(n===void 0?tn:n)(Ar(p-d,0)),o=0;dt.length)&&(e=t.length);for(var n=0,r=new Array(e);n_-r+n;a--)q0(p,a-1)}else if(n>r)for(a=_-r;a>x;a--)d=a+n-1,(s=a+r-1)in p?p[d]=p[s]:q0(p,d);for(a=0;ao;)for(var d,p=Q0(arguments[o++]),_=a?cE(Sm(p),a(p)):Sm(p),x=_.length,O=0;x>O;)d=_[O++],Cf&&!Z0(s,p,d)||(n[d]=p[d]);return n}:du,tw=GS;Bt({target:"Object",stat:!0,arity:2,forced:Object.assign!==tw},{assign:tw});var WS=we.Object.assign;(function(t){t.exports=WS})(aE);var zn=nt(J0),bh={},ew={get exports(){return bh},set exports(t){bh=t}},hE=Pa.includes;Bt({target:"Array",proto:!0,forced:Wt(function(){return!Array(1).includes()})},{includes:function(t){return hE(this,t,arguments.length>1?arguments[1]:void 0)}});var ci=Pr("Array").includes,dE=xr,zS=fr,US=cr("match"),xn=function(t){var e;return dE(t)&&((e=t[US])!==void 0?!!e:zS(t)=="RegExp")},fE=TypeError,wh=cr("match"),pE=Bt,vE=function(t){if(xn(t))throw fE("The method doesn't accept regular expressions");return t},mE=ys,VS=Dr,km=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wh]=!1,"/./"[t](e)}catch(r){}}return!1},XS=se("".indexOf);pE({target:"String",proto:!0,forced:!km("includes")},{includes:function(t){return!!~XS(VS(mE(this)),VS(vE(t)),arguments.length>1?arguments[1]:void 0)}});var gE=Pr("String").includes,qS=Le,KS=ci,If=gE,rw=Array.prototype,Pl=String.prototype,JS=function(t){var e=t.includes;return t===rw||qS(rw,t)&&e===rw.includes?KS:typeof t=="string"||t===Pl||qS(Pl,t)&&e===Pl.includes?If:e},Pf=JS;(function(t){t.exports=Pf})(ew);var Xa=nt(bh),nw={};(function(t){t.exports=N1})({get exports(){return nw},set exports(t){nw=t}});var iw=nt(nw),Af={},Tm={get exports(){return Af},set exports(t){Af=t}},ow=xe,aw=se,ZS=Vr,QS=tr,tk=aw(pi.f),_h=aw([].push),sw=function(t){return function(e){for(var n,r=QS(e),o=ZS(r),a=o.length,s=0,d=[];a>s;)n=o[s++],ow&&!tk(r,n)||_h(d,t?[n,r[n]]:r[n]);return d}},uw={entries:sw(!0),values:sw(!1)}.values;Bt({target:"Object",stat:!0},{values:function(t){return uw(t)}});var yE=we.Object.values;(function(t){t.exports=yE})(Tm);var fn=nt(Af),xm={},bE={get exports(){return xm},set exports(t){xm=t}},$f=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,wE=ys,_E=Dr,lw=$f,cw=se("".replace),SE=RegExp("^["+lw+"]+"),kE=RegExp("(^|[^"+lw+"])["+lw+"]+$"),Om=function(t){return function(e){var n=_E(wE(e));return 1&t&&(n=cw(n,SE,"")),2&t&&(n=cw(n,kE,"$1")),n}},Mf={start:Om(1),end:Om(2),trim:Om(3)},ek=Gt,TE=Wt,xE=se,OE=Dr,EE=Mf.trim,Em=$f,Nf=ek.parseInt,rk=ek.Symbol,nk=rk&&rk.iterator,ik=/^[+-]?0x/i,DE=xE(ik.exec),ok=Nf(Em+"08")!==8||Nf(Em+"0x16")!==22||nk&&!TE(function(){Nf(Object(nk))})?function(t,e){var n=EE(OE(t));return Nf(n,e>>>0||(DE(ik,n)?16:10))}:Nf;Bt({global:!0,forced:parseInt!=ok},{parseInt:ok});var ak=we.parseInt;(function(t){t.exports=ak})(bE);var Oi=nt(xm),Rf={},sk={get exports(){return Rf},set exports(t){Rf=t}},uk=Bt,Dm=Pa.indexOf,qa=ou,Ka=Tr([].indexOf),lk=!!Ka&&1/Ka([1],1,-0)<0;uk({target:"Array",proto:!0,forced:lk||!qa("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return lk?Ka(this,t,e)||0:Dm(this,t,e)}});var CE=Pr("Array").indexOf,IE=Le,ck=CE,Sh=Array.prototype,PE=function(t){var e=t.indexOf;return t===Sh||IE(Sh,t)&&e===Sh.indexOf?ck:e},hk=PE;(function(t){t.exports=hk})(sk);var Ie=nt(Rf),Al={},AE={get exports(){return Al},set exports(t){Al=t}},$E=Sb.PROPER,dk=Wt,fk=$f,ME=Mf.trim;Bt({target:"String",proto:!0,forced:function(t){return dk(function(){return!!fk[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||$E&&fk[t].name!==t})}("trim")},{trim:function(){return ME(this)}});var jf=Pr("String").trim,NE=Le,$l=jf,Lf=String.prototype,Ff=function(t){var e=t.trim;return typeof t=="string"||t===Lf||NE(Lf,t)&&e===Lf.trim?$l:e},kh=Ff;(function(t){t.exports=kh})(AE);var Cm=nt(Al),Yf={};(function(t){t.exports=ai})({get exports(){return Yf},set exports(t){Yf=t}});var Im=nt(Yf),hw={},RE={get exports(){return hw},set exports(t){hw=t}},Pm=we,Am=an;Pm.JSON||(Pm.JSON={stringify:JSON.stringify});var jE=function(t,e,n){return Am(Pm.JSON.stringify,null,arguments)},LE=jE;(function(t){t.exports=LE})(RE);var Un=nt(hw),$m={},FE={get exports(){return $m},set exports(t){$m=t}},YE=bn,pk=Lr,vk=bi,Mm=function(t){for(var e=YE(this),n=vk(e),r=arguments.length,o=pk(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,s=a===void 0?n:pk(a,n);s>o;)e[o++]=t;return e};Bt({target:"Array",proto:!0},{fill:Mm});var Ei=Pr("Array").fill,BE=Le,HE=Ei,Nm=Array.prototype,mk=function(t){var e=t.fill;return t===Nm||BE(Nm,t)&&e===Nm.fill?HE:e},dw=mk;(function(t){t.exports=dw})(FE);var fw=nt($m),pw={};(function(t){function e(n){if(n)return function(r){for(var o in e.prototype)r[o]=e.prototype[o];return r}(n)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this},e.prototype.once=function(n,r){function o(){this.off(n,o),r.apply(this,arguments)}return o.fn=r,this.on(n,o),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o,a=this._callbacks["$"+n];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s=0;s-1}var Bl=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(n){n===mw&&(n=this.compute()),jm&&this.manager.element.style&&Oh[n]&&(this.manager.element.style[Rm]=n),this.actions=n.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var n=[];return eo(this.manager.recognizers,function(r){Fl(r.options.enable,[r])&&(n=n.concat(r.getTouchAction()))}),function(r){if(Yl(r,fu))return fu;var o=Yl(r,oa),a=Yl(r,pu);return o&&a?fu:o||a?o?oa:pu:Yl(r,Fm)?Fm:Lm}(n.join(" "))},e.preventDefaults=function(n){var r=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented)r.preventDefault();else{var a=this.actions,s=Yl(a,fu)&&!Oh[fu],d=Yl(a,pu)&&!Oh[pu],p=Yl(a,oa)&&!Oh[oa];if(s){var _=n.pointers.length===1,x=n.distance<2,O=n.deltaTime<250;if(_&&x&&O)return}if(!p||!d)return s||d&&o&Di||p&&o&vu?this.preventSrc(r):void 0}},e.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function aa(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Hm(t){var e=t.length;if(e===1)return{x:xh(t[0].clientX),y:xh(t[0].clientY)};for(var n=0,r=0,o=0;o=ia(e)?t<0?zf:Eh:e<0?jl:Ll}function Sk(t,e,n){return{x:e/t||0,y:n/t||0}}function WE(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=wk(e)),o>1&&!n.firstMultiple?n.firstMultiple=wk(e):o===1&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,d=s?s.center:a.center,p=e.center=Hm(r);e.timeStamp=Ml(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=Hl(d,p),e.distance=Gm(d,p),function(G,X){var q=X.center,tt=G.offsetDelta||{},ot=G.prevDelta||{},wt=G.prevInput||{};X.eventType!==On&&wt.eventType!==mr||(ot=G.prevDelta={x:wt.deltaX||0,y:wt.deltaY||0},tt=G.offsetDelta={x:q.x,y:q.y}),X.deltaX=ot.x+(q.x-tt.x),X.deltaY=ot.y+(q.y-tt.y)}(n,e),e.offsetDirection=_k(e.deltaX,e.deltaY);var _,x,O=Sk(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=O.x,e.overallVelocityY=O.y,e.overallVelocity=ia(O.x)>ia(O.y)?O.x:O.y,e.scale=s?(_=s.pointers,Gm((x=r)[0],x[1],Dh)/Gm(_[0],_[1],Dh)):1,e.rotation=s?function(G,X){return Hl(X[1],X[0],Dh)+Hl(G[1],G[0],Dh)}(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(G,X){var q,tt,ot,wt,It=G.lastInterval||X,pt=X.timeStamp-It.timeStamp;if(X.eventType!==hi&&(pt>Nl||It.velocity===void 0)){var bt=X.deltaX-It.deltaX,ut=X.deltaY-It.deltaY,Lt=Sk(pt,bt,ut);tt=Lt.x,ot=Lt.y,q=ia(Lt.x)>ia(Lt.y)?Lt.x:Lt.y,wt=_k(bt,ut),G.lastInterval=X}else q=It.velocity,tt=It.velocityX,ot=It.velocityY,wt=It.direction;X.velocity=q,X.velocityX=tt,X.velocityY=ot,X.direction=wt}(n,e);var C,Y=t.element,j=e.srcEvent;aa(C=j.composedPath?j.composedPath()[0]:j.path?j.path[0]:j.target,Y)&&(Y=C),e.target=Y}function zE(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,a=e&On&&r-o==0,s=e&(mr|hi)&&r-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(t.session={}),n.eventType=e,WE(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Vf(t){return t.trim().split(/\s+/g)}function Ch(t,e,n){eo(Vf(e),function(r){t.addEventListener(r,n,!1)})}function Gl(t,e,n){eo(Vf(e),function(r){t.removeEventListener(r,n,!1)})}function Wm(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Ih=function(){function t(n,r){var o=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(a){Fl(n.options.enable,[n])&&o.handler(a)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Ch(this.element,this.evEl,this.domHandler),this.evTarget&&Ch(this.target,this.evTarget,this.domHandler),this.evWin&&Ch(Wm(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Gl(this.element,this.evEl,this.domHandler),this.evTarget&&Gl(this.target,this.evTarget,this.domHandler),this.evWin&&Gl(Wm(this.element),this.evWin,this.domHandler)},t}();function Ja(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rp[e]}):r.sort()),r}var _w={touchstart:On,touchmove:Rl,touchend:mr,touchcancel:hi},Sw="touchstart touchmove touchend touchcancel",kw=function(t){function e(){var n;return e.prototype.evTarget=Sw,(n=t.apply(this,arguments)||this).targetIds={},n}return Qi(e,t),e.prototype.handler=function(n){var r=_w[n.type],o=zm.call(this,n,r);o&&this.callback(this.manager,r,{pointers:o[0],changedPointers:o[1],pointerType:Wf,srcEvent:n})},e}(Ih);function zm(t,e){var n,r,o=Xf(t.touches),a=this.targetIds;if(e&(On|Rl)&&o.length===1)return a[o[0].identifier]=!0,[o,o];var s=Xf(t.changedTouches),d=[],p=this.target;if(r=o.filter(function(_){return aa(_.target,p)}),e===On)for(n=0;n-1&&r.splice(o,1)},Wl)}}function UE(t,e){t&On?(this.primaryTouch=e.changedPointers[0].identifier,Vm.call(this,e)):t&(mr|hi)&&Vm.call(this,e)}function Ah(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(r,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},e.emit=function(n){var r=this,o=this.state;function a(s){r.manager.emit(s,n)}o=ts&&a(r.options.event+Ul(o))},e.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=no},e.canEmit=function(){for(var n=0;no.threshold&&d&o.direction},n.attrTest=function(r){return $h.prototype.attrTest.call(this,r)&&(this.state&$r||!(this.state&$r)&&this.directionTest(r))},n.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var o=xw(r.direction);o&&(r.additionalEvent=this.options.event+o),t.prototype.emit.call(this,r)},e}($h),qm=function(t){function e(r){return r===void 0&&(r={}),t.call(this,Eo({event:"swipe",threshold:10,velocity:.3,direction:Di|vu,pointers:1},r))||this}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return Vl.prototype.getTouchAction.call(this)},n.attrTest=function(r){var o,a=this.options.direction;return a&(Di|vu)?o=r.overallVelocity:a&Di?o=r.overallVelocityX:a&vu&&(o=r.overallVelocityY),t.prototype.attrTest.call(this,r)&&a&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&ia(o)>this.options.velocity&&r.eventType&mr},n.emit=function(r){var o=xw(r.offsetDirection);o&&this.manager.emit(this.options.event+o,r),this.manager.emit(this.options.event,r)},e}($h),Xl=function(t){function e(r){return r===void 0&&(r={}),t.call(this,Eo({event:"pinch",threshold:0,pointers:2},r))||this}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[fu]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&$r)},n.emit=function(r){if(r.scale!==1){var o=r.scale<1?"in":"out";r.additionalEvent=this.options.event+o}t.prototype.emit.call(this,r)},e}($h),Km=function(t){function e(r){return r===void 0&&(r={}),t.call(this,Eo({event:"rotate",threshold:0,pointers:2},r))||this}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[fu]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&$r)},e}($h),Mh=function(t){function e(r){var o;return r===void 0&&(r={}),(o=t.call(this,Eo({event:"press",pointers:1,time:251,threshold:9},r))||this)._timer=null,o._input=null,o}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Lm]},n.process=function(r){var o=this,a=this.options,s=r.pointers.length===a.pointers,d=r.distancea.time;if(this._input=r,!d||!s||r.eventType&(mr|hi)&&!p)this.reset();else if(r.eventType&On)this.reset(),this._timer=setTimeout(function(){o.state=sa,o.tryEmit()},a.time);else if(r.eventType&mr)return sa;return no},n.reset=function(){clearTimeout(this._timer)},n.emit=function(r){this.state===sa&&(r&&r.eventType&mr?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=Ml(),this.manager.emit(this.options.event,this._input)))},e}(es),Jm={domEvents:!1,touchAction:mw,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},xk=[[Km,{enable:!1}],[Xl,{enable:!1},["rotate"]],[qm,{direction:Di}],[Vl,{direction:Di},["swipe"]],[yu],[yu,{event:"doubletap",taps:2},["tap"]],[Mh]];function Dn(t,e){var n,r=t.element;r.style&&(eo(t.options.cssProps,function(o,a){n=Gf(r.style,a),e?(t.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var rs=function(){function t(n,r){var o,a=this;this.options=to({},Jm,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=new((o=this).options.inputClass||(yk?bw:bk?kw:Ym?mu:qf))(o,zE),this.touchAction=new Bl(this,this.options.touchAction),Dn(this,!0),eo(this.options.recognizers,function(s){var d=a.add(new s[0](s[1]));s[2]&&d.recognizeWith(s[2]),s[3]&&d.requireFailure(s[3])},this)}var e=t.prototype;return e.set=function(n){return to(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},e.stop=function(n){this.session.stopped=n?2:1},e.recognize=function(n){var r=this.session;if(!r.stopped){var o;this.touchAction.preventDefaults(n);var a=this.recognizers,s=r.curRecognizer;(!s||s&&s.state&sa)&&(r.curRecognizer=null,s=null);for(var d=0;d\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=window.console&&(window.console.warn||window.console.log);return s&&s.call(window.console,r,a),t.apply(this,arguments)}}var Kl=ql(function(t,e,n){for(var r=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}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 a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function Ok(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)return ep.apply(void 0,Ke(r=[tp(e[0],e[1])]).call(r,Zi(vr(e).call(e,2))));var o,a=e[0],s=e[1],d=ns(SS(s));try{for(d.s();!(o=d.n()).done;){var p=o.value;Object.prototype.propertyIsEnumerable.call(s,p)&&(s[p]===Zm?delete a[p]:a[p]===null||s[p]===null||Jt(a[p])!=="object"||Jt(s[p])!=="object"||ce(a[p])||ce(s[p])?a[p]=Ew(s[p]):a[p]=ep(a[p],s[p]))}}catch(_){d.e(_)}finally{d.f()}return a}function Ew(t){return ce(t)?Br(t).call(t,function(e){return Ew(e)}):Jt(t)==="object"&&t!==null?ep({},t):t}function rp(t){for(var e=0,n=Jr(t);e2&&arguments[2]!==void 0&&arguments[2],r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||n===!0)if(Jt(e[o])==="object"&&e[o]!==null&&iw(e[o])===Object.prototype)t[o]===void 0?t[o]=Rh({},e[o],n):Jt(t[o])==="object"&&t[o]!==null&&iw(t[o])===Object.prototype?Rh(t[o],e[o],n):Co(t,e,o,r);else if(ce(e[o])){var a;t[o]=vr(a=e[o]).call(a)}else Co(t,e,o,r);return t}function la(t){var e=Jt(t);return e==="object"?t===null?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":ce(t)?"Array":t instanceof Date?"Date":"Object":e==="number"?"Number":e==="boolean"?"Boolean":e==="string"?"String":e===void 0?"undefined":e}function Io(t,e){var n;return Ke(n=[]).call(n,Zi(t),[e])}function Dk(t){return vr(t).call(t)}var JE=fn,Ck={asBoolean:function(t,e){return typeof t=="function"&&(t=t()),t!=null?t!=0:e||null},asNumber:function(t,e){return typeof t=="function"&&(t=t()),t!=null?Number(t)||e||null:e||null},asString:function(t,e){return typeof t=="function"&&(t=t()),t!=null?String(t):e||null},asSize:function(t,e){return typeof t=="function"&&(t=t()),di(t)?t:ip(t)?t+"px":e||null},asElement:function(t,e){return typeof t=="function"&&(t=t()),t||e||null}};function ap(t){var e;switch(t.length){case 3:case 4:return(e=XE.exec(t))?{r:Oi(e[1]+e[1],16),g:Oi(e[2]+e[2],16),b:Oi(e[3]+e[3],16)}:null;case 6:case 7:return(e=Ek.exec(t))?{r:Oi(e[1],16),g:Oi(e[2],16),b:Oi(e[3],16)}:null;default:return null}}function Qm(t,e,n){var r;return"#"+vr(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function ca(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),o=Math.max(t,Math.max(e,n));return r===o?{h:0,s:0,v:r}:{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(o-r))/360,s:(o-r)/o,v:o}}var wu={split:function(t){var e,n={};return Ot(e=t.split(";")).call(e,function(r){if(Cm(r).call(r)!=""){var o,a,s=r.split(":"),d=Cm(o=s[0]).call(o),p=Cm(a=s[1]).call(a);n[d]=p}}),n},join:function(t){var e;return Br(e=Jr(t)).call(e,function(n){return n+": "+t[n]}).join("; ")}};function sp(t,e,n){var r,o,a,s=Math.floor(6*t),d=6*t-s,p=n*(1-e),_=n*(1-d*e),x=n*(1-(1-d)*e);switch(s%6){case 0:r=n,o=x,a=p;break;case 1:r=_,o=n,a=p;break;case 2:r=p,o=n,a=x;break;case 3:r=p,o=_,a=n;break;case 4:r=x,o=p,a=n;break;case 5:r=n,o=p,a=_}return{r:Math.floor(255*r),g:Math.floor(255*o),b:Math.floor(255*a)}}function Dw(t,e,n){var r=sp(t,e,n);return Qm(r.r,r.g,r.b)}function tg(t){var e=ap(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return ca(e.r,e.g,e.b)}function Cw(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function eg(t){return qE.test(t)}function Ik(t){return KE.test(t)}function up(t){if(t===null||Jt(t)!=="object")return null;if(t instanceof Element)return t;var e=Im(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&Jt(t[n])=="object"&&(e[n]=up(t[n]));return e}var Iw={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"},Pk=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;Se(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Ce(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if(typeof e=="string")return Iw[e]}},{key:"setColor",value:function(e){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(e!=="none"){var r,o=this._isColorString(e);if(o!==void 0&&(e=o),di(e)===!0){if(eg(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");r={r:a[0],g:a[1],b:a[2],a:1}}else if(Ik(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");r={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(Cw(e)===!0){var d=ap(e);r={r:d.r,g:d.g,b:d.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var p=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:p}}if(r===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: "+Un(e));this._setColor(r,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 e=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=zn({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Yn(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.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(e){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=zn({},e)),this.color=e;var n=ca(e.r,e.g,e.b),r=2*Math.PI,o=this.r*n.s,a=this.centerCoordinates.x+o*Math.sin(r*n.h),s=this.centerCoordinates.y+o*Math.cos(r*n.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=ca(this.color.r,this.color.g,this.color.b);n.v=e/100;var r=sp(n.h,n.s,n.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=ca(e.r,e.g,e.b),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 o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,o,a),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-n.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fw(r).call(r),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*e.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 e,n,r,o;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 a=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var s=document.createElement("DIV");s.style.color="red",s.style.fontWeight="bold",s.style.padding="10px",s.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(s)}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(p){}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(p){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._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=at(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=at(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=at(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=at(o=this._loadLast).call(o,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 e=this;this.drag={},this.pinch={},this.hammer=new np(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n,r,o,a,s=this.colorPickerCanvas.clientWidth,d=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,s,d),this.centerCoordinates={x:.5*s,y:.5*d},this.r=.49*s;var p,_=2*Math.PI/360,x=1/this.r;for(o=0;o<360;o++)for(a=0;a3&&arguments[3]!==void 0?arguments[3]:1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};Se(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=a,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},zn(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Pk(o),this.wrapper=void 0}return Ce(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(ce(e))this.options.filter=e.join();else if(Jt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ve(e)!==void 0&&(this.options.filter=ve(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);ve(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,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 e=ve(this.options),n=0,r=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,r=!1,typeof e=="function"?r=(r=e(o,[]))||this._handleObject(this.configureOptions[o],[o],!0):e!==!0&&Ie(e).call(e,o)===-1||(r=!0),r!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),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 e=0;e1?r-1:0),a=1;a2&&arguments[2]!==void 0&&arguments[2],o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,r===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(rg("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,r){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&Ie(e).call(e,n)!==-1&&(a=Ie(e).call(e,n));for(var s=0;ss&&s!==1&&(p.max=Math.ceil(n*O),x=p.max,_="range increased"),p.value=n}else p.value=o;var C=document.createElement("input");C.className="vis-configuration vis-config-rangeinput",C.value=p.value;var Y=this;p.onchange=function(){C.value=this.value,Y._update(Number(this.value),r)},p.oninput=function(){C.value=this.value};var j=this._makeLabel(r[r.length-1],r),G=this._makeItem(r,j,p,C);_!==""&&this.popupHistory[G]!==x&&(this.popupHistory[G]=x,this._setupPopup(_,G))}},{key:"_makeButton",value:function(){var e=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(){e._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(e,n){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,a=ve(this.options),s=!1;for(var d in e)if(Object.prototype.hasOwnProperty.call(e,d)){o=!0;var p=e[d],_=Io(n,d);if(typeof a=="function"&&(o=a(d,n))===!1&&!ce(p)&&typeof p!="string"&&typeof p!="boolean"&&p instanceof Object&&(this.allowCreation=!1,o=this._handleObject(p,_,!0),this.allowCreation=r===!1),o!==!1){s=!0;var x=this._getValue(_);if(ce(p))this._handleArray(p,x,_);else if(typeof p=="string")this._makeTextInput(p,x,_);else if(typeof p=="boolean")this._makeCheckbox(p,x,_);else if(p instanceof Object){if(!this.hideOption(n,d,this.moduleOptions))if(p.enabled!==void 0){var O=Io(_,"enabled"),C=this._getValue(O);if(C===!0){var Y=this._makeLabel(d,_,!0);this._makeItem(_,Y),s=this._handleObject(p,_)||s}else this._makeCheckbox(p,C,_)}else{var j=this._makeLabel(d,_,!0);this._makeItem(_,j),s=this._handleObject(p,_)||s}}else console.error("dont know how to handle",p,d,_)}}return s}},{key:"_handleArray",value:function(e,n,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,r),e[1]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:Number(n)}))}},{key:"_update",value:function(e,n){var r=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r;e=(e=e==="true"||e)!=="false"&&e;for(var a=0;aa-this.padding&&(p=!0),s=p?this.x-r:this.x,d=_?this.y-n:this.y}else(d=this.y-n)+n+this.padding>o&&(d=o-n-this.padding),da&&(s=a-r-this.padding),ss.distance?" in "+t.printLocation(a.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):a.distance<=8?'. Did you mean "'+a.closestMatch+'"?'+t.printLocation(a.path,e):". Did you mean one of these: "+t.print(Jr(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+o,Aw),jh=!0}},{key:"findInOptions",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=1e9,s="",d=[],p=e.toLowerCase(),_=void 0;for(var x in n){var O=void 0;if(n[x].__type__!==void 0&&o===!0){var C=t.findInOptions(e,n[x],Io(r,x));a>C.distance&&(s=C.closestMatch,d=C.path,a=C.distance,_=C.indexMatch)}else{var Y;Ie(Y=x.toLowerCase()).call(Y,p)!==-1&&(_=x),a>(O=t.levenshteinDistance(e,x))&&(s=x,d=Dk(r),a=O)}}return{closestMatch:s,path:d,distance:a,indexMatch:_}}},{key:"printLocation",value:function(e,n){for(var r=` `+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `)+`options = { `,o=0;o>>0,X=(wt*=X)>>>0,X+=4294967296*(wt-=X)}return 23283064365386963e-26*(X>>>0)}}(),C=O(" "),Y=O(" "),j=O(" "),G=0;G0)return r=="before"?Math.max(0,p-1):p;if(o(s,e)<0&&o(d,e)>0)return r=="before"?p:Math.min(t.length-1,p+1);o(s,e)<0?x=p+1:O=p-1,_++}return-1},bridgeObject:up,copyAndExtendArray:Io,copyArray:Dk,deepExtend:Rh,deepObjectAssign:tp,easingFunctions:{linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},equalArray:function(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n2&&arguments[2]!==void 0&&arguments[2];for(var o in e)if(n[o]!==void 0)if(n[o]===null||Jt(n[o])!=="object")Co(e,n,o,r);else{var a=e[o],s=n[o];Jl(a)&&Jl(s)&&t(a,s,r)}},forEach:function(t,e){if(ce(t))for(var n=t.length,r=0;r0&&arguments[0]!==void 0?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(e.nodeType==null||e.nodeType!=3||(e=e.parentNode)instanceof Element)?e:null},getType:la,hasParent:function(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},hexToHSV:tg,hexToRGB:ap,insertSort:function(t,e){for(var n=0;n0&&e(r,t[o-1])<0;o--)t[o]=t[o-1];t[o]=r}return t},isDate:function(t){return!!(t instanceof Date||di(t)&&(VE.exec(t)||!isNaN(Date.parse(t))))},isNumber:ip,isObject:Jl,isString:di,isValidHex:Cw,isValidRGB:eg,isValidRGBA:Ik,mergeOptions:function(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=function(x){return x!=null},a=function(x){return x!==null&&Jt(x)==="object"};if(!a(t))throw new Error("Parameter mergeTarget must be an object");if(!a(e))throw new Error("Parameter options must be an object");if(!o(n))throw new Error("Parameter option must have a value");if(!a(r))throw new Error("Parameter globalOptions must be an object");var s=e[n],d=a(r)&&!function(x){for(var O in x)if(Object.prototype.hasOwnProperty.call(x,O))return!1;return!0}(r)?r[n]:void 0,p=d?d.enabled:void 0;if(s!==void 0){if(typeof s=="boolean")return a(t[n])||(t[n]={}),void(t[n].enabled=s);if(s===null&&!a(t[n])){if(!o(d))return;t[n]=Im(d)}if(a(s)){var _=!0;s.enabled!==void 0?_=s.enabled:p!==void 0&&(_=d.enabled),function(x,O,C){a(x[C])||(x[C]={});var Y=O[C],j=x[C];for(var G in Y)Object.prototype.hasOwnProperty.call(Y,G)&&(j[G]=Y[G])}(t,e,n),t[n].enabled=_}}},option:Ck,overrideOpacity:function(t,e){if(Xa(t).call(t,"rgba"))return t;if(Xa(t).call(t,"rgb")){var n=t.substr(Ie(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=ap(t);return r==null?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"},parseColor:function(t,e){if(di(t)){var n=t;if(eg(n)){var r,o=Br(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,function(x){return Oi(x)});n=Qm(o[0],o[1],o[2])}if(Cw(n)===!0){var a=tg(n),s={h:a.h,s:.8*a.s,v:Math.min(1,1.02*a.v)},d={h:a.h,s:Math.min(1,1.25*a.s),v:.8*a.v},p=Dw(d.h,d.s,d.v),_=Dw(s.h,s.s,s.v);return{background:n,border:p,highlight:{background:_,border:p},hover:{background:_,border:p}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:di(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:di(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:di(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:di(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o3&&arguments[3]!==void 0&&arguments[3];if(ce(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o2?n-2:0),o=2;o3&&arguments[3]!==void 0&&arguments[3];if(ce(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&!Xa(t).call(t,o))if(n[o]&&n[o].constructor===Object)e[o]===void 0&&(e[o]={}),e[o].constructor===Object?Rh(e[o],n[o]):Co(e,n,o,r);else if(ce(n[o])){e[o]=[];for(var a=0;a/g,Fk=/"/g,Yk=/"/g,eD=/&#([a-zA-Z0-9]*);?/gim,rD=/:?/gim,Bk=/&newline;?/gim,cg=/((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,Hk=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Rw=/u\s*r\s*l\s*\(.*/gi;function Gk(t){return t.replace(Fk,""")}function jw(t){return t.replace(Yk,'"')}function hg(t){return t.replace(eD,function(e,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function Wk(t){return t.replace(rD,":").replace(Bk," ")}function Lw(t){for(var e="",n=0,r=t.length;n",r);if(o===-1)break;n=o+3}return e},sr.stripBlankChar=function(t){var e=t.split("");return(e=e.filter(function(n){var r=n.charCodeAt(0);return r!==127&&(!(r<=31)||r===10||r===13)})).join("")},sr.cssFilter=jk,sr.getDefaultCSSWhiteList=QE;var fp={},os=sg;function nD(t){var e,n=os.spaceIndex(t);return e=n===-1?t.slice(1,-1):t.slice(1,n+1),(e=os.trim(e).toLowerCase()).slice(0,1)==="/"&&(e=e.slice(1)),e.slice(-1)==="/"&&(e=e.slice(0,-1)),e}function as(t){return t.slice(0,2)==="0;e--){var n=t[e];if(n!==" ")return n==="="?e:-1}}function Yw(t){return function(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}(t)?t.substr(1,t.length-2):t}fp.parseTag=function(t,e,n){var r="",o=0,a=!1,s=!1,d=0,p=t.length,_="",x="";t:for(d=0;d"||d===p-1){r+=n(t.slice(o,a)),_=nD(x=t.slice(a,d+1)),r+=e(a,r.length,_,x,as(x)),o=d+1,a=!1;continue}if(O==='"'||O==="'")for(var C=1,Y=t.charAt(d-C);Y.trim()===""||Y==="=";){if(Y==="="){s=O;continue t}Y=t.charAt(d-++C)}}else if(O===s){s=!1;continue}}return o";var ot=function(pt){var bt=vp.spaceIndex(pt);if(bt===-1)return{html:"",closing:pt[pt.length-2]==="/"};var ut=(pt=vp.trim(pt.slice(bt+1,-1)))[pt.length-1]==="/";return ut&&(pt=vp.trim(pt.slice(0,-1))),{html:pt,closing:ut}}(G),wt=n[j],It=Hh(ot.html,function(pt,bt){var ut=vp.indexOf(wt,pt)!==-1,Lt=a(j,pt,bt,ut);return Gh(Lt)?ut?(bt=d(j,pt,bt,_))?pt+'="'+bt+'"':pt:Gh(Lt=s(j,pt,bt,ut))?void 0:Lt:Lt});return G="<"+j,It&&(G+=" "+It),ot.closing&&(G+=" /"),G+=">"}return Gh(tt=o(j,G,q))?p(G):tt},p);return x&&(O=x.remove(O)),O};var Bw=dg;(function(t,e){var n=sr,r=fp,o=Bw;function a(s,d){return new o(d).process(s)}(e=t.exports=a).filterXSS=a,e.FilterXSS=o,function(){for(var s in n)e[s]=n[s];for(var d in r)e[d]=r[d]}(),typeof window!="undefined"&&(window.filterXSS=t.exports),typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)})(og,ig);var fg=ig;let pg,lD=new Uint8Array(16);function Uk(){if(!pg&&(pg=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pg(lD)}let rn=[];for(let t=0;t<256;++t)rn.push((t+256).toString(16).slice(1));var mp={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Wh(t,e,n){if(mp.randomUUID&&!e&&!t)return mp.randomUUID();let r=(t=t||{}).random||(t.rng||Uk)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let o=0;o<16;++o)e[n+o]=r[o];return e}return function(o,a=0){return(rn[o[a+0]]+rn[o[a+1]]+rn[o[a+2]]+rn[o[a+3]]+"-"+rn[o[a+4]]+rn[o[a+5]]+"-"+rn[o[a+6]]+rn[o[a+7]]+"-"+rn[o[a+8]]+rn[o[a+9]]+"-"+rn[o[a+10]]+rn[o[a+11]]+rn[o[a+12]]+rn[o[a+13]]+rn[o[a+14]]+rn[o[a+15]]).toLowerCase()}(r)}function Vk(t,e){var n=Jr(t);if(im){var r=im(t);e&&(r=ve(r).call(r,function(o){return Yr(t,o).enumerable})),n.push.apply(n,r)}return n}function Xk(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},p=t._idProp,_=new J.DataSet({fieldId:p}),x=Br(e=J.createNewDataPipeFrom(t)).call(e,function(O){var C;return oS(C=Jr(O)).call(C,function(Y,j){return Y[j]=gp(O[j],d[j]),Y},{})}).to(_);return x.all().start(),{add:function(){var O;return(O=t.getDataSet()).add.apply(O,arguments)},remove:function(){var O;return(O=t.getDataSet()).remove.apply(O,arguments)},update:function(){var O;return(O=t.getDataSet()).update.apply(O,arguments)},updateOnly:function(){var O;return(O=t.getDataSet()).updateOnly.apply(O,arguments)},clear:function(){var O;return(O=t.getDataSet()).clear.apply(O,arguments)},forEach:at(n=Ot(_)).call(n,_),get:at(r=_.get).call(r,_),getIds:at(o=_.getIds).call(o,_),off:at(a=_.off).call(a,_),on:at(s=_.on).call(s,_),get length(){return _.length},idProp:p,type:d,rawDS:t,coercedDS:_,dispose:function(){return x.stop()}}}var ku=function(t){var e=new fg.FilterXSS(t);return function(n){return e.process(n)}},qk=function(t){return t},Gw=ku(),H=Xk(Xk({},$k),{},{convert:gp,setupXSSProtection:function(t){t&&(t.disabled===!0?(Gw=qk,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(Gw=ku(t.filterOptions)))}});Tl(H,"xss",{get:function(){return Gw}});var vg={},cD={get exports(){return vg},set exports(t){vg=t}},Kk=Gt,Jk=Wt,Zk=Dr,Qk=Mf.trim,tT=$f,hD=se("".charAt),yp=Kk.parseFloat,Ww=Kk.Symbol,eT=Ww&&Ww.iterator,rT=1/yp(tT+"-0")!=-1/0||eT&&!Jk(function(){yp(Object(eT))})?function(t){var e=Qk(Zk(t)),n=yp(e);return n===0&&hD(e,0)=="-"?-0:n}:yp;Bt({global:!0,forced:parseFloat!=rT},{parseFloat:rT});var nT=we.parseFloat;(function(t){t.exports=nT})(cD);var mg=nt(vg),Ao=function(){function t(e,n){Se(this,t),this.options=null,this.props=null}return Ce(t,[{key:"setOptions",value:function(e){e&&H.extend(this.options,e)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var e=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,e}}]),t}(),bp={},dD={get exports(){return bp},set exports(t){bp=t}},fD=yo,iT=Dr,pD=ys,oT=RangeError;Bt({target:"String",proto:!0},{repeat:function(t){var e=iT(pD(this)),n="",r=fD(t);if(r<0||r==1/0)throw oT("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}});var aT=Pr("String").repeat,Tu=Le,sT=aT,zw=String.prototype,vD=function(t){var e=t.repeat;return typeof t=="string"||t===zw||Tu(zw,t)&&e===zw.repeat?sT:e},uT=vD;(function(t){t.exports=uT})(dD);var Zl=nt(bp),gg={},mD={get exports(){return gg},set exports(t){gg=t}},Uw=Uo,gD=Math.floor,Uh=function(t,e){var n=t.length,r=gD(n/2);return n<8?Vw(t,e):yD(t,Uh(Uw(t,0,r),e),Uh(Uw(t,r),e),e)},Vw=function(t,e){for(var n,r,o=t.length,a=1;a0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},yD=function(t,e,n,r){for(var o=e.length,a=n.length,s=0,d=0;s3)){if(OD)return!0;if(nn)return nn<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)us.push({k:e+r,v:n})}for(us.sort(function(a,s){return s.v-a.v}),r=0;rfT(p)?1:-1}}(t)),n=hT(o),r=0;r=4*a){var _=0,x=o.clone();switch(Zl(n[s])){case"daily":d.day()!=p.day()&&(_=1),d.dayOfYear(r.dayOfYear()),d.year(r.year()),d.subtract(7,"days"),p.dayOfYear(r.dayOfYear()),p.year(r.year()),p.subtract(7-_,"days"),x.add(1,"weeks");break;case"weekly":var O=p.diff(d,"days"),C=d.day();d.date(r.date()),d.month(r.month()),d.year(r.year()),p=d.clone(),d.day(C),p.day(C),p.add(O,"days"),d.subtract(1,"weeks"),p.subtract(1,"weeks"),x.add(1,"weeks");break;case"monthly":d.month()!=p.month()&&(_=1),d.month(r.month()),d.year(r.year()),d.subtract(1,"months"),p.month(r.month()),p.year(r.year()),p.subtract(1,"months"),p.add(_,"months"),x.add(1,"months");break;case"yearly":d.year()!=p.year()&&(_=1),d.year(r.year()),d.subtract(1,"years"),p.year(r.year()),p.subtract(1,"years"),p.add(_,"years"),x.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Zl(n[s]))}for(;d=n[o].start&&n[a].end<=n[o].end?n[a].remove=!0:n[a].start>=n[o].start&&n[a].start<=n[o].end?(n[o].end=n[a].end,n[a].remove=!0):n[a].end>=n[o].start&&n[a].end<=n[o].end&&(n[o].start=n[a].start,n[a].remove=!0));for(o=0;o=s&&ot.range.end){var d={start:t.range.start,end:e};return e=f(t.options.moment,t.body.hiddenDates,d,e),r=t.range.conversion(n,a),(e.valueOf()-r.offset)*r.scale}return e=f(t.options.moment,t.body.hiddenDates,t.range,e),r=t.range.conversion(n,a),(e.valueOf()-r.offset)*r.scale}function Og(t,e,n){if(t.body.hiddenDates.length==0){var r=t.range.conversion(n);return new Date(e/r.scale+r.offset)}var o=so(t.body.hiddenDates,t.range.start,t.range.end),a=(t.range.end-t.range.start-o)*e/n,s=m(t.body.hiddenDates,t.range,a);return new Date(s+a+t.range.start)}function so(t,e,n){for(var r=0,o=0;o=e&&s=e&&s<=n&&(r+=s-a)}return r}function f(t,e,n,r){return r=t(r).toDate().valueOf(),r-=v(t,e,n,r)}function v(t,e,n,r){var o=0;r=t(r).toDate().valueOf();for(var a=0;a=n.start&&d=d&&(o+=d-s)}return o}function m(t,e,n){for(var r=0,o=0,a=e.start,s=0;s=e.start&&p=n)break;r+=p-d}}return r}function S(t,e,n,r){var o=E(e,t);return o.hidden==1?n<0?r==1?o.startDate-(o.endDate-e)-1:o.startDate-1:r==1?o.endDate+(e-o.startDate)+1:o.endDate+1:e}function E(t,e){for(var n=0;n=r&&t1e3&&(a=1e3),r.body.dom.rollingModeBtn.style.visibility="hidden",r.currentTimeTimer=Yn(o,a)})()}},{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(r,o,a,s,d){a||(a={}),a.byUser!==!0&&(a.byUser=!1);var p=this,_=r!=null?H.convert(r,"Date").valueOf():null,x=o!=null?H.convert(o,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,a.animation){var O,C=this.start,Y=this.end,j=Jt(a.animation)==="object"&&"duration"in a.animation?a.animation.duration:500,G=Jt(a.animation)==="object"&&"easingFunction"in a.animation?a.animation.easingFunction:"easeInOutQuad",X=H.easingFunctions[G];if(!X)throw new Error(Ke(O="Unknown easing function ".concat(Un(G),". Choose from: ")).call(O,Jr(H.easingFunctions).join(", ")));var q=xi(),tt=!1;return function It(){if(!p.props.touch.dragging){var pt=xi()-q,bt=X(pt/j),ut=pt>j,Lt=ut||_===null?_:C+(_-C)*bt,re=ut||x===null?x:Y+(x-Y)*bt;ot=p._applyRange(Lt,re),Xh(p.options.moment,p.body,p.options.hiddenDates),tt=tt||ot;var lr={start:new Date(p.start),end:new Date(p.end),byUser:a.byUser,event:a.event};if(d&&d(bt,ot,ut),ot&&p.body.emitter.emit("rangechange",lr),ut){if(tt&&(p.body.emitter.emit("rangechanged",lr),s))return s()}else p.animationTimer=Yn(It,20)}}()}var ot=this._applyRange(_,x);if(Xh(this.options.moment,this.body,this.options.hiddenDates),ot){var wt={start:new Date(this.start),end:new Date(this.end),byUser:a.byUser,event:a.event};if(this.body.emitter.emit("rangechange",wt),clearTimeout(p.timeoutID),p.timeoutID=Yn(function(){p.body.emitter.emit("rangechanged",wt)},200),s)return s()}}},{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(r,o){var a,s=r!=null?H.convert(r,"Date").valueOf():this.start,d=o!=null?H.convert(o,"Date").valueOf():this.end,p=this.options.max!=null?H.convert(this.options.max,"Date").valueOf():null,_=this.options.min!=null?H.convert(this.options.min,"Date").valueOf():null;if(isNaN(s)||s===null)throw new Error('Invalid start "'.concat(r,'"'));if(isNaN(d)||d===null)throw new Error('Invalid end "'.concat(o,'"'));if(dp&&(d=p)),p!==null&&d>p&&(s-=a=d-p,d-=a,_!=null&&s<_&&(s=_)),this.options.zoomMin!==null){var x=mg(this.options.zoomMin);x<0&&(x=0),d-s=this.start-.5&&d<=this.end?(s=this.start,d=this.end):(s-=(a=x-(d-s))/2,d+=a/2))}if(this.options.zoomMax!==null){var O=mg(this.options.zoomMax);O<0&&(O=0),d-s>O&&(this.end-this.start===O&&sthis.end?(s=this.start,d=this.end):(s+=(a=d-s-O)/2,d-=a/2))}var C=this.start!=s||this.end!=d;return s>=this.start&&s<=this.end||d>=this.start&&d<=this.end||this.start>=s&&this.start<=d||this.end>=s&&this.end<=d||this.body.emitter.emit("checkRangedItems"),this.start=s,this.end=d,C}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(r,o){return n.conversion(this.start,this.end,r,o)}},{key:"_onDragStart",value:function(r){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(r)&&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(r){if(r&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var o=this.options.direction;U(o);var a=o=="horizontal"?r.deltaX:r.deltaY;a-=this.deltaDifference;var s=this.props.touch.end-this.props.touch.start;s-=so(this.body.hiddenDates,this.start,this.end);var d,p=o=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height;d=this.options.rtl?a/p*s:-a/p*s;var _=this.props.touch.start+d,x=this.props.touch.end+d,O=S(this.body.hiddenDates,_,this.previousDelta-a,!0),C=S(this.body.hiddenDates,x,this.previousDelta-a,!0);if(O!=_||C!=x)return this.deltaDifference+=a,this.props.touch.start=O,this.props.touch.end=C,void this._onDrag(r);this.previousDelta=a,this._applyRange(_,x);var Y=new Date(this.start),j=new Date(this.end);this.body.emitter.emit("rangechange",{start:Y,end:j,byUser:!0,event:r}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(r){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:r}))}},{key:"_onMouseWheel",value:function(r){var o=0;if(r.wheelDelta?o=r.wheelDelta/120:r.detail?o=-r.detail/3:r.deltaY&&(o=-r.deltaY/3),!(this.options.zoomKey&&!r[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(r)&&o){var a,s,d=this.options.zoomFriction||5;if(a=o<0?1-o/d:1/(1+o/d),this.rolling){var p=this.options.rollingMode&&this.options.rollingMode.offset||.5;s=this.start+(this.end-this.start)*p}else{var _=this.getPointer({x:r.clientX,y:r.clientY},this.body.dom.center);s=this._pointerToDate(_)}this.zoom(a,s,o,r),r.preventDefault()}}},{key:"_onTouch",value:function(r){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,H.preventDefault(r)}},{key:"_onPinch",value:function(r){if(this.options.zoomable&&this.options.moveable){H.preventDefault(r),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(r.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var o=1/(r.scale+this.scaleOffset),a=this.props.touch.centerDate,s=so(this.body.hiddenDates,this.start,this.end),d=v(this.options.moment,this.body.hiddenDates,this,a),p=s-d,_=a-d+(this.props.touch.start-(a-d))*o,x=a+p+(this.props.touch.end-(a+p))*o;this.startToFront=1-o<=0,this.endToFront=o-1<=0;var O=S(this.body.hiddenDates,_,1-o,!0),C=S(this.body.hiddenDates,x,o-1,!0);O==_&&C==x||(this.props.touch.start=O,this.props.touch.end=C,this.scaleOffset=1-r.scale,_=O,x=C);var Y={animation:!1,byUser:!0,event:r};this.setRange(_,x,Y),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(r){var o=r.center?r.center.x:r.clientX,a=this.body.dom.centerContainer.getBoundingClientRect(),s=this.options.rtl?o-a.left:a.right-o,d=this.body.util.toTime(s);return d>=this.start&&d<=this.end}},{key:"_pointerToDate",value:function(r){var o,a=this.options.direction;if(U(a),a=="horizontal")return this.body.util.toTime(r.x).valueOf();var s=this.body.domProps.center.height;return o=this.conversion(s),r.y/o.scale+o.offset}},{key:"getPointer",value:function(r,o){var a=o.getBoundingClientRect();return this.options.rtl?{x:a.right-r.x,y:r.y-a.top}:{x:r.x-a.left,y:r.y-a.top}}},{key:"zoom",value:function(r,o,a,s){o==null&&(o=(this.start+this.end)/2);var d=so(this.body.hiddenDates,this.start,this.end),p=v(this.options.moment,this.body.hiddenDates,this,o),_=d-p,x=o-p+(this.start-(o-p))*r,O=o+_+(this.end-(o+_))*r;this.startToFront=!(a>0),this.endToFront=!(-a>0);var C=S(this.body.hiddenDates,x,a,!0),Y=S(this.body.hiddenDates,O,-a,!0);C==x&&Y==O||(x=C,O=Y);var j={animation:!1,byUser:!0,event:s};this.setRange(x,O,j),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(r){var o=this.end-this.start,a=this.start+o*r,s=this.end+o*r;this.start=a,this.end=s}},{key:"moveTo",value:function(r){var o=(this.start+this.end)/2-r,a=this.start-o,s=this.end-o;this.setRange(a,s,{animation:!1,byUser:!0,event:null})}}],[{key:"conversion",value:function(r,o,a,s){return s===void 0&&(s=0),a!=0&&o-r!=0?{offset:r,scale:a/(o-r-s)}:{offset:0,scale:1}}}]),n}(Ao);function U(t){if(t!="horizontal"&&t!="vertical")throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var K={},Q={get exports(){return K},set exports(t){K=t}},st=qo.some;Bt({target:"Array",proto:!0,forced:!ou("some")},{some:function(t){return st(this,t,arguments.length>1?arguments[1]:void 0)}});var ht=Pr("Array").some,kt=Le,Tt=ht,Pt=Array.prototype,Vt=function(t){var e=t.some;return t===Pt||kt(Pt,t)&&e===Pt.some?Tt:e},jt=Vt;(function(t){t.exports=jt})(Q);var Me=nt(K),Ne={},Je=we.setInterval;(function(t){t.exports=Je})({get exports(){return Ne},set exports(t){Ne=t}});var Hr,fa=nt(Ne),pn=null;typeof window!="undefined"?Hr=function t(e,n){var r=n||{preventDefault:!1};if(e.Manager){var o=e,a=function(x,O){var C=Object.create(r);return O&&o.assign(C,O),t(new o(x,C),C)};return o.assign(a,o),a.Manager=function(x,O){var C=Object.create(r);return O&&o.assign(C,O),t(new o.Manager(x,C),C)},a}var s=Object.create(e),d=e.element;function p(x){return x.match(/[^ ]+/g)}function _(x){if(x.type!=="hammer.input"){if(x.srcEvent._handled||(x.srcEvent._handled={}),x.srcEvent._handled[x.type])return;x.srcEvent._handled[x.type]=!0}var O=!1;x.stopPropagation=function(){O=!0};var C=x.srcEvent.stopPropagation.bind(x.srcEvent);typeof C=="function"&&(x.srcEvent.stopPropagation=function(){C(),x.stopPropagation()}),x.firstTarget=pn;for(var Y=pn;Y&&!O;){var j=Y.hammer;if(j){for(var G,X=0;X0?s._handlers[C]=Y:(e.off(C,_),delete s._handlers[C]))}),s},s.emit=function(x,O){pn=O.target,e.emit(x,O)},s.destroy=function(){var x=e.element.hammer,O=x.indexOf(s);O!==-1&&x.splice(O,1),x.length||delete e.element.hammer,s._handlers={},e.destroy()},s}(window.Hammer||bu,{preventDefault:"mouse"}):Hr=function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}()};var ze=Hr;function ls(t,e){e.inputHandler=function(n){n.isFirst&&e(n)},t.on("hammer.input",e.inputHandler)}var Ou=function(){function t(e,n,r,o,a){Se(this,t),this.moment=a&&a.moment||Bn,this.options=a||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,n,r),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,ce(o)?this.hiddenDates=o:this.hiddenDates=o!=null?[o]:[],this.format=t.FORMAT}return Ce(t,[{key:"setMoment",value:function(e){this.moment=e,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(e){var n=H.deepExtend({},t.FORMAT);this.format=H.deepExtend(n,e)}},{key:"setRange",value:function(e,n,r){if(!(e instanceof Date&&n instanceof Date))throw"No legal start or end date in method setRange";this._start=e!=null?this.moment(e.valueOf()):xi(),this._end=n!=null?this.moment(n.valueOf()):xi(),this.autoScale&&this.setMinimumStep(r)}},{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.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(this.step!=1){var e=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}e.isSame(this.current)||(this.current=this.moment(S(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var e=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(this.current.weekday()!==0)this.current.weekday(0),this.current.add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current.add(this.step,"week");else{var n=this.current.clone();n.add(1,"week"),n.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(this.step!=1)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?e.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(e){this.autoScale=e}},{key:"setMinimumStep",value:function(e){if(e!=null){var n=31104e6,r=2592e6,o=864e5,a=36e5,s=6e4,d=1e3;1e3*n>e&&(this.scale="year",this.step=1e3),500*n>e&&(this.scale="year",this.step=500),100*n>e&&(this.scale="year",this.step=100),50*n>e&&(this.scale="year",this.step=50),10*n>e&&(this.scale="year",this.step=10),5*n>e&&(this.scale="year",this.step=5),n>e&&(this.scale="year",this.step=1),7776e6>e&&(this.scale="month",this.step=3),r>e&&(this.scale="month",this.step=1),6048e5>e&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>e&&(this.scale="day",this.step=2),o>e&&(this.scale="day",this.step=1),432e5>e&&(this.scale="weekday",this.step=1),144e5>e&&(this.scale="hour",this.step=4),a>e&&(this.scale="hour",this.step=1),9e5>e&&(this.scale="minute",this.step=15),6e5>e&&(this.scale="minute",this.step=10),3e5>e&&(this.scale="minute",this.step=5),s>e&&(this.scale="minute",this.step=1),15e3>e&&(this.scale="second",this.step=15),1e4>e&&(this.scale="second",this.step=10),5e3>e&&(this.scale="second",this.step=5),d>e&&(this.scale="second",this.step=1),200>e&&(this.scale="millisecond",this.step=200),100>e&&(this.scale="millisecond",this.step=100),50>e&&(this.scale="millisecond",this.step=50),10>e&&(this.scale="millisecond",this.step=10),5>e&&(this.scale="millisecond",this.step=5),1>e&&(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 e=this.moment(this.current);switch(this.scale){case"millisecond":return e.milliseconds()==0;case"second":return e.seconds()==0;case"minute":return e.hours()==0&&e.minutes()==0;case"hour":return e.hours()==0;case"weekday":case"day":return this.options.showWeekScale?e.isoWeekday()==1:e.date()==1;case"week":return e.date()==1;case"month":return e.month()==0;default:return!1}}},{key:"getLabelMinor",value:function(e){if(e==null&&(e=this.current),e instanceof Date&&(e=this.moment(e)),typeof this.format.minorLabels=="function")return this.format.minorLabels(e,this.scale,this.step);var n=this.format.minorLabels[this.scale];return this.scale==="week"&&e.date()===1&&e.weekday()!==0?"":n&&n.length>0?this.moment(e).format(n):""}},{key:"getLabelMajor",value:function(e){if(e==null&&(e=this.current),e instanceof Date&&(e=this.moment(e)),typeof this.format.majorLabels=="function")return this.format.majorLabels(e,this.scale,this.step);var n=this.format.majorLabels[this.scale];return n&&n.length>0?this.moment(e).format(n):""}},{key:"getClassName",value:function(){var e,n=this.moment,r=this.moment(this.current),o=r.locale?r.locale("en"):r.lang("en"),a=this.step,s=[];function d(O){return O/a%2==0?" vis-even":" vis-odd"}function p(O){return O.isSame(xi(),"day")?" vis-today":O.isSame(n().add(1,"day"),"day")?" vis-tomorrow":O.isSame(n().add(-1,"day"),"day")?" vis-yesterday":""}function _(O){return O.isSame(xi(),"week")?" vis-current-week":""}function x(O){return O.isSame(xi(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":s.push(p(o)),s.push(d(o.milliseconds()));break;case"second":s.push(p(o)),s.push(d(o.seconds()));break;case"minute":s.push(p(o)),s.push(d(o.minutes()));break;case"hour":s.push(Ke(e="vis-h".concat(o.hours())).call(e,this.step==4?"-h"+(o.hours()+4):"")),s.push(p(o)),s.push(d(o.hours()));break;case"weekday":s.push("vis-".concat(o.format("dddd").toLowerCase())),s.push(p(o)),s.push(_(o)),s.push(d(o.date()));break;case"day":s.push("vis-day".concat(o.date())),s.push("vis-".concat(o.format("MMMM").toLowerCase())),s.push(p(o)),s.push(x(o)),s.push(this.step<=2?p(o):""),s.push(this.step<=2?"vis-".concat(o.format("dddd").toLowerCase()):""),s.push(d(o.date()-1));break;case"week":s.push("vis-week".concat(o.format("w"))),s.push(_(o)),s.push(d(o.week()));break;case"month":s.push("vis-".concat(o.format("MMMM").toLowerCase())),s.push(x(o)),s.push(d(o.month()));break;case"year":s.push("vis-year".concat(o.year())),s.push(function(O){return O.isSame(xi(),"year")?" vis-current-year":""}(o)),s.push(d(o.year()))}return ve(s).call(s,String).join(" ")}}],[{key:"snap",value:function(e,n,r){var o=Bn(e);if(n=="year"){var a=o.year()+Math.round(o.month()/12);o.year(Math.round(a/r)*r),o.month(0),o.date(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0)}else if(n=="month")o.date()>15?(o.date(1),o.add(1,"month")):o.date(1),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if(n=="week")o.weekday()>2?(o.weekday(0),o.add(1,"week")):o.weekday(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if(n=="day"){switch(r){case 5:case 2:o.hours(24*Math.round(o.hours()/24));break;default:o.hours(12*Math.round(o.hours()/12))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if(n=="weekday"){switch(r){case 5:case 2:o.hours(12*Math.round(o.hours()/12));break;default:o.hours(6*Math.round(o.hours()/6))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if(n=="hour")r===4?o.minutes(60*Math.round(o.minutes()/60)):o.minutes(30*Math.round(o.minutes()/30)),o.seconds(0),o.milliseconds(0);else if(n=="minute"){switch(r){case 15:case 10:o.minutes(5*Math.round(o.minutes()/5)),o.seconds(0);break;case 5:o.seconds(60*Math.round(o.seconds()/60));break;default:o.seconds(30*Math.round(o.seconds()/30))}o.milliseconds(0)}else if(n=="second")switch(r){case 15:case 10:o.seconds(5*Math.round(o.seconds()/5)),o.milliseconds(0);break;case 5:o.milliseconds(1e3*Math.round(o.milliseconds()/1e3));break;default:o.milliseconds(500*Math.round(o.milliseconds()/500))}else if(n=="millisecond"){var s=r>5?r/2:1;o.milliseconds(Math.round(o.milliseconds()/s)*s)}return o}}]),t}();function qh(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}Ou.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 on=function(t){si(n,t);var e=qh(n);function n(r,o){var a;return Se(this,n),(a=e.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},a.props={range:{start:0,end:0,minimumStep:0},lineTop:0},a.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:H.extend({},Ou.FORMAT),moment:Bn,timeAxis:null},a.options=H.extend({},a.defaultOptions),a.body=r,a._create(),a.setOptions(o),a}return Ce(n,[{key:"setOptions",value:function(r){r&&(H.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,r),H.selectiveDeepExtend(["format"],this.options,r),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation.axis=r.orientation:Jt(r.orientation)==="object"&&"axis"in r.orientation&&(this.options.orientation.axis=r.orientation.axis)),"locale"in r&&(typeof Bn.locale=="function"?Bn.locale(r.locale):Bn.lang(r.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 r=this.props,o=this.dom.foreground,a=this.dom.background,s=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,d=o.parentNode!==s;this._calculateCharSize();var p=this.options.showMinorLabels&&this.options.orientation.axis!=="none",_=this.options.showMajorLabels&&this.options.orientation.axis!=="none";r.minorLabelHeight=p?r.minorCharHeight:0,r.majorLabelHeight=_?r.majorCharHeight:0,r.height=r.minorLabelHeight+r.majorLabelHeight,r.width=o.offsetWidth,r.minorLineHeight=this.body.domProps.root.height-r.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),r.minorLineWidth=1,r.majorLineHeight=r.minorLineHeight+r.majorLabelHeight,r.majorLineWidth=1;var x=o.nextSibling,O=a.nextSibling;return o.parentNode&&o.parentNode.removeChild(o),a.parentNode&&a.parentNode.removeChild(a),o.style.height="".concat(this.props.height,"px"),this._repaintLabels(),x?s.insertBefore(o,x):s.appendChild(o),O?this.body.dom.backgroundVertical.insertBefore(a,O):this.body.dom.backgroundVertical.appendChild(a),this._isResized()||d}},{key:"_repaintLabels",value:function(){var r=this.options.orientation.axis,o=H.convert(this.body.range.start,"Number"),a=H.convert(this.body.range.end,"Number"),s=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),d=s-v(this.options.moment,this.body.hiddenDates,this.body.range,s);d-=this.body.util.toTime(0).valueOf();var p=new Ou(new Date(o),new Date(a),d,this.body.hiddenDates,this.options);p.setMoment(this.options.moment),this.options.format&&p.setFormat(this.options.format),this.options.timeAxis&&p.setScale(this.options.timeAxis),this.step=p;var _,x,O,C,Y,j,G=this.dom;G.redundant.lines=G.lines,G.redundant.majorTexts=G.majorTexts,G.redundant.minorTexts=G.minorTexts,G.lines=[],G.majorTexts=[],G.minorTexts=[];var X,q,tt,ot=0,wt=void 0,It=0,pt=1e3;for(p.start(),x=p.getCurrent(),C=this.body.util.toScreen(x);p.hasNext()&&It=.4*X,this.options.showMinorLabels&&j){var bt=this._repaintMinorText(O,p.getLabelMinor(_),r,tt);bt.style.width="".concat(ot,"px")}Y&&this.options.showMajorLabels?(O>0&&(wt==null&&(wt=O),bt=this._repaintMajorText(O,p.getLabelMajor(_),r,tt)),q=this._repaintMajorLine(O,ot,r,tt)):j?q=this._repaintMinorLine(O,ot,r,tt):q&&(q.style.width="".concat(Oi(q.style.width)+ot,"px"))}if(It!==pt||Eg||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(pt," lines.")),Eg=!0),this.options.showMajorLabels){var ut=this.body.util.toTime(0),Lt=p.getLabelMajor(ut),re=Lt.length*(this.props.majorCharWidth||10)+10;(wt==null||re=Math.abs(tt)){var wt=this.props.scrollTop,It=wt+ot;this.isActive()&&this._setScrollTop(It)!==wt&&(this._redraw(),this.emit("scroll",q),q.preventDefault())}else if(this.options.horizontalScroll){var pt=(Math.abs(tt)>=Math.abs(ot)?tt:ot)/120*(this.range.end-this.range.start)/20,bt=this.range.start+pt,ut=this.range.end+pt,Lt={animation:!1,byUser:!0,event:q};this.range.setRange(bt,ut,Lt),q.preventDefault()}}}Ot(x).call(x,function(q){var tt=function(ot){s.isActive()&&s.emit(q,ot)};s.hammer.on(q,tt),s.timelineListeners[q]=tt}),ls(this.hammer,function(q){s.emit("touch",q)}),p=this.hammer,(_=function(q){s.emit("release",q)}).inputHandler=function(q){q.isFinal&&_(q)},p.on("hammer.input",_.inputHandler);var C="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function Y(q){if(s.options.verticalScroll&&(q.preventDefault(),s.isActive())){var tt=-q.target.scrollTop;s._setScrollTop(tt),s._redraw(),s.emit("scrollSide",q)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(C,at(O).call(O,this),!1),this.dom.top.addEventListener(C,at(O).call(O,this),!1),this.dom.bottom.addEventListener(C,at(O).call(O,this),!1),this.dom.left.parentNode.addEventListener("scroll",at(Y).call(Y,this)),this.dom.right.parentNode.addEventListener("scroll",at(Y).call(Y,this));var j=!1;function G(q){var tt;if(q.preventDefault&&(s.emit("dragover",s.getEventProperties(q)),q.preventDefault()),Ie(tt=q.target.className).call(tt,"timeline")>-1&&!j)return q.dataTransfer.dropEffect="move",j=!0,!1}function X(q){q.preventDefault&&q.preventDefault(),q.stopPropagation&&q.stopPropagation();try{var tt=JSON.parse(q.dataTransfer.getData("text"));if(!tt||!tt.content)return}catch(ot){return!1}return j=!1,q.center={x:q.clientX,y:q.clientY},tt.target!=="item"?s.itemSet._onAddItem(q):s.itemSet._onDropObjectOnItem(q),s.emit("drop",s.getEventProperties(q)),!1}if(this.dom.center.addEventListener("dragover",at(G).call(G,this),!1),this.dom.center.addEventListener("drop",at(X).call(X,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!e)throw new Error("No container provided");e.appendChild(this.dom.root),e.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(e){var n;if(e){if(H.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,e),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"),Jt(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in e&&(typeof e.orientation=="string"?this.options.orientation={item:e.orientation,axis:e.orientation}:Jt(e.orientation)==="object"&&("item"in e.orientation&&(this.options.orientation.item=e.orientation.item),"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var r=this.timeAxis2=new on(this.body);r.setOptions=function(_){var x=_?H.extend({},_):{};x.orientation="top",on.prototype.setOptions.call(r,x)},this.components.push(r)}}else if(this.timeAxis2){var o,a,s=Ie(o=this.components).call(o,this.timeAxis2);s!==-1&&li(a=this.components).call(a,s,1),this.timeAxis2.destroy(),this.timeAxis2=null}typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),"hiddenDates"in this.options&&Tg(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in e&&(e.clickToUse?this.activator||(this.activator=new Kn(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(Ot(n=this.components).call(n,function(_){return _.setOptions(e)}),"configure"in e){var d;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure);var p=H.deepExtend({},this.options);Ot(d=this.components).call(d,function(_){H.deepExtend(p,_.options)}),this.configurator.setModuleOptions({global:p})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var e;for(var n 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(n)&&delete this.timelineListeners[n];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,Ot(e=this.components).call(e,function(r){return r.destroy()}),this.body=null}},{key:"setCustomTime",value:function(e,n){var r,o=ve(r=this.customTimes).call(r,function(a){return n===a.options.id});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Un(n)));o.length>0&&o[0].setCustomTime(e)}},{key:"getCustomTime",value:function(e){var n,r=ve(n=this.customTimes).call(n,function(o){return o.options.id===e});if(r.length===0)throw new Error("No custom time bar found with id ".concat(Un(e)));return r[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(e,n,r){var o,a=ve(o=this.customTimes).call(o,function(s){return s.options.id===n});if(a.length===0)throw new Error("No custom time bar found with id ".concat(Un(n)));a.length>0&&a[0].setCustomMarker(e,r)}},{key:"setCustomTimeTitle",value:function(e,n){var r,o=ve(r=this.customTimes).call(r,function(a){return a.options.id===n});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Un(n)));if(o.length>0)return o[0].setCustomTitle(e)}},{key:"getEventProperties",value:function(e){return{event:e}}},{key:"addCustomTime",value:function(e,n){var r,o=e!==void 0?H.convert(e,"Date"):new Date,a=Me(r=this.customTimes).call(r,function(d){return d.options.id===n});if(a)throw new Error("A custom time with id ".concat(Un(n)," already exists"));var s=new $t(this.body,H.extend({},this.options,{time:o,id:n,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(s),this.components.push(s),this._redraw(),n}},{key:"removeCustomTime",value:function(e){var n,r=this,o=ve(n=this.customTimes).call(n,function(a){return a.options.id===e});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Un(e)));Ot(o).call(o,function(a){var s,d,p,_;li(s=r.customTimes).call(s,Ie(d=r.customTimes).call(d,a),1),li(p=r.components).call(p,Ie(_=r.components).call(_,a),1),a.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(e){return this.time=e,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(e,n){var r=this.getDataRange();if(r.min!==null||r.max!==null){var o=r.max-r.min,a=new Date(r.min.valueOf()-.01*o),s=new Date(r.max.valueOf()+.01*o),d=!e||e.animation===void 0||e.animation;this.range.setRange(a,s,{animation:d},n)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(e,n,r,o){var a,s;typeof arguments[2]=="function"&&(o=arguments[2],r={}),arguments.length==1?(a=(s=arguments[0]).animation===void 0||s.animation,this.range.setRange(s.start,s.end,{animation:a})):arguments.length==2&&typeof arguments[1]=="function"?(o=arguments[1],a=(s=arguments[0]).animation===void 0||s.animation,this.range.setRange(s.start,s.end,{animation:a},o)):(a=!r||r.animation===void 0||r.animation,this.range.setRange(e,n,{animation:a},o))}},{key:"moveTo",value:function(e,n,r){typeof arguments[1]=="function"&&(r=arguments[1],n={});var o=this.range.end-this.range.start,a=H.convert(e,"Date").valueOf(),s=a-o/2,d=a+o/2,p=!n||n.animation===void 0||n.animation;this.range.setRange(s,d,{animation:p},r)}},{key:"getWindow",value:function(){var e=this.range.getRange();return{start:new Date(e.start),end:new Date(e.end)}}},{key:"zoomIn",value:function(e,n,r){if(!(!e||e<0||e>1)){typeof arguments[1]=="function"&&(r=arguments[1],n={});var o=this.getWindow(),a=o.start.valueOf(),s=o.end.valueOf(),d=s-a,p=(d-d/(1+e))/2,_=a+p,x=s-p;this.setWindow(_,x,n,r)}}},{key:"zoomOut",value:function(e,n,r){if(!(!e||e<0||e>1)){typeof arguments[1]=="function"&&(r=arguments[1],n={});var o=this.getWindow(),a=o.start.valueOf(),s=o.end.valueOf(),d=s-a,p=a-d*e/2,_=s+d*e/2;this.setWindow(p,_,n,r)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var e;this.redrawCount++;var n=this.dom;if(n&&n.container&&n.root.offsetWidth!=0){var r=!1,o=this.options,a=this.props;Xh(this.options.moment,this.body,this.options.hiddenDates),o.orientation=="top"?(H.addClassName(n.root,"vis-top"),H.removeClassName(n.root,"vis-bottom")):(H.removeClassName(n.root,"vis-top"),H.addClassName(n.root,"vis-bottom")),o.rtl?(H.addClassName(n.root,"vis-rtl"),H.removeClassName(n.root,"vis-ltr")):(H.addClassName(n.root,"vis-ltr"),H.removeClassName(n.root,"vis-rtl")),n.root.style.maxHeight=H.option.asSize(o.maxHeight,""),n.root.style.minHeight=H.option.asSize(o.minHeight,""),n.root.style.width=H.option.asSize(o.width,"");var s=n.root.offsetWidth;a.border.left=1,a.border.right=1,a.border.top=1,a.border.bottom=1,a.center.height=n.center.offsetHeight,a.left.height=n.left.offsetHeight,a.right.height=n.right.offsetHeight,a.top.height=n.top.clientHeight||-a.border.top,a.bottom.height=Math.round(n.bottom.getBoundingClientRect().height)||n.bottom.clientHeight||-a.border.bottom;var d=Math.max(a.left.height,a.center.height,a.right.height),p=a.top.height+d+a.bottom.height+a.border.top+a.border.bottom;n.root.style.height=H.option.asSize(o.height,"".concat(p,"px")),a.root.height=n.root.offsetHeight,a.background.height=a.root.height;var _=a.root.height-a.top.height-a.bottom.height;a.centerContainer.height=_,a.leftContainer.height=_,a.rightContainer.height=a.leftContainer.height,a.root.width=s,a.background.width=a.root.width,this.initialDrawDone||(a.scrollbarWidth=H.getScrollBarWidth());var x=n.leftContainer.clientWidth,O=n.rightContainer.clientWidth;o.verticalScroll?o.rtl?(a.left.width=x||-a.border.left,a.right.width=O+a.scrollbarWidth||-a.border.right):(a.left.width=x+a.scrollbarWidth||-a.border.left,a.right.width=O||-a.border.right):(a.left.width=x||-a.border.left,a.right.width=O||-a.border.right),this._setDOM();var C=this._updateScrollTop();o.orientation.item!="top"&&(C+=Math.max(a.centerContainer.height-a.center.height-a.border.top-a.border.bottom,0)),n.center.style.transform="translateY(".concat(C,"px)");var Y=a.scrollTop==0?"hidden":"",j=a.scrollTop==a.scrollTopMin?"hidden":"";n.shadowTop.style.visibility=Y,n.shadowBottom.style.visibility=j,n.shadowTopLeft.style.visibility=Y,n.shadowBottomLeft.style.visibility=j,n.shadowTopRight.style.visibility=Y,n.shadowBottomRight.style.visibility=j,o.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"),(!o.verticalScroll||a.center.heighta.centerContainer.height;if(this.hammer.get("pan").set({direction:G?ze.DIRECTION_ALL:ze.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),Ot(e=this.components).call(e,function(X){r=X.redraw()||r}),r){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 e=this.props,n=this.dom;e.leftContainer.width=e.left.width,e.rightContainer.width=e.right.width;var r=e.root.width-e.left.width-e.right.width;e.center.width=r,e.centerContainer.width=r,e.top.width=r,e.bottom.width=r,n.background.style.height="".concat(e.background.height,"px"),n.backgroundVertical.style.height="".concat(e.background.height,"px"),n.backgroundHorizontal.style.height="".concat(e.centerContainer.height,"px"),n.centerContainer.style.height="".concat(e.centerContainer.height,"px"),n.leftContainer.style.height="".concat(e.leftContainer.height,"px"),n.rightContainer.style.height="".concat(e.rightContainer.height,"px"),n.background.style.width="".concat(e.background.width,"px"),n.backgroundVertical.style.width="".concat(e.centerContainer.width,"px"),n.backgroundHorizontal.style.width="".concat(e.background.width,"px"),n.centerContainer.style.width="".concat(e.center.width,"px"),n.top.style.width="".concat(e.top.width,"px"),n.bottom.style.width="".concat(e.bottom.width,"px"),n.background.style.left="0",n.background.style.top="0",n.backgroundVertical.style.left="".concat(e.left.width+e.border.left,"px"),n.backgroundVertical.style.top="0",n.backgroundHorizontal.style.left="0",n.backgroundHorizontal.style.top="".concat(e.top.height,"px"),n.centerContainer.style.left="".concat(e.left.width,"px"),n.centerContainer.style.top="".concat(e.top.height,"px"),n.leftContainer.style.left="0",n.leftContainer.style.top="".concat(e.top.height,"px"),n.rightContainer.style.left="".concat(e.left.width+e.center.width,"px"),n.rightContainer.style.top="".concat(e.top.height,"px"),n.top.style.left="".concat(e.left.width,"px"),n.top.style.top="0",n.bottom.style.left="".concat(e.left.width,"px"),n.bottom.style.top="".concat(e.top.height+e.centerContainer.height,"px"),n.center.style.left="0",n.left.style.left="0",n.right.style.left="0"}},{key:"setCurrentTime",value:function(e){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(e){return Og(this,e,this.props.center.width)}},{key:"_toGlobalTime",value:function(e){return Og(this,e,this.props.root.width)}},{key:"_toScreen",value:function(e){return xg(this,e,this.props.center.width)}},{key:"_toGlobalScreen",value:function(e){return xg(this,e,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==1?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var e=this;this._stopAutoResize(),this._onResize=function(){if(e.options.autoResize==1){if(e.dom.root){var n=e.dom.root.offsetHeight,r=e.dom.root.offsetWidth;r==e.props.lastWidth&&n==e.props.lastHeight||(e.props.lastWidth=r,e.props.lastHeight=n,e.props.scrollbarWidth=H.getScrollBarWidth(),e.body.emitter.emit("_change"))}}else e._stopAutoResize()},H.addEventListener(window,"resize",this._onResize),e.dom.root&&(e.props.lastWidth=e.dom.root.offsetWidth,e.props.lastHeight=e.dom.root.offsetHeight),this.watchTimer=fa(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(H.removeEventListener(window,"resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(e){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(e){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(e){if(e&&this.touch.allowDragging){var n=e.deltaY,r=this._getScrollTop(),o=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),o!=r&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(e){return this.props.scrollTop=e,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var e=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return e!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(this.props.scrollTop+=e-this.props.scrollTopMin),this.props.scrollTopMin=e),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop1e3&&(a=1e3),r.redraw(),r.body.emitter.emit("currentTimeTick"),r.currentTimeTimer=Yn(o,a)})()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(r){var o=H.convert(r,"Date").valueOf(),a=xi();this.offset=o-a,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(xi()+this.offset)}}]),n}(Ao),Cn={},Eu={get exports(){return Cn},set exports(t){Cn=t}},ec=Bt,rc=qo.find,kC="find",TC=!0;kC in[]&&Array(1)[kC](function(){TC=!1}),ec({target:"Array",proto:!0,forced:TC},{find:function(t){return rc(this,t,arguments.length>1?arguments[1]:void 0)}});var NI=Pr("Array").find,RI=Le,jI=NI,Dg=Array.prototype,LI=function(t){var e=t.find;return t===Dg||RI(Dg,t)&&e===Dg.find?jI:e},Cg=LI;(function(t){t.exports=Cg})(Eu);var ED=nt(Cn),DD={},FI={get exports(){return DD},set exports(t){DD=t}},bT={},YI={get exports(){return bT},set exports(t){bT=t}},xC=Wt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),OC=Wt,BI=xr,HI=fr,wT=xC,t_=Object.isExtensible,GI=OC(function(){t_(1)})||wT?function(t){return!!BI(t)&&(!wT||HI(t)!="ArrayBuffer")&&(!t_||t_(t))}:t_,WI=!Wt(function(){return Object.isExtensible(Object.preventExtensions({}))}),zI=Bt,UI=se,EC=$s,VI=xr,_T=Rr,$o=Nn.f,DC=ja,XI=zs,ST=GI,qI=WI,CD=!1,Du=cc("meta"),KI=0,kT=function(t){$o(t,Du,{value:{objectID:"O"+KI++,weakData:{}}})},JI=YI.exports={enable:function(){JI.enable=function(){},CD=!0;var t=DC.f,e=UI([].splice),n={};n[Du]=1,t(n).length&&(DC.f=function(r){for(var o=t(r),a=0,s=o.length;aa;a++)if((d=q(t[a]))&&CC(Ig,d))return d;return new r_(!1)}r=IC(t,o)}for(p=C?t.next:r.next;!(_=QI(p,r)).done;){try{d=q(_.value)}catch(tt){TT(r,"throw",tt)}if(typeof d=="object"&&d&&CC(Ig,d))return d}return new r_(!1)},$D=Le,MD=TypeError,xT=function(t,e){if($D(e,t))return t;throw MD("Incorrect invocation")},ND=Bt,PC=Gt,AC=bT,$C=Wt,MC=mo,NC=Zh,rP=xT,nP=ie,iP=xr,oP=Xs,Ep=Nn.f,RC=qo.forEach,aP=xe,RD=Ir.set,sP=Ir.getterFor,uP=ll,lP=Xt,cP=Fd,jD=xe,LD=cr("species"),jC=Fs,LC=Fd,n_=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:uP(t,r,e[r],n);return t},FC=_r,FD=xT,Pg=ba,YD=Zh,BD=Yv,i_=Qc,YC=function(t){var e=lP(t);jD&&e&&!e[LD]&&cP(e,LD,{configurable:!0,get:function(){return this}})},Qh=xe,o_=bT.fastKey,BC=Ir.set,HD=Ir.getterFor,Ag={getConstructor:function(t,e,n,r){var o=t(function(_,x){FD(_,a),BC(_,{type:e,index:jC(null),first:void 0,last:void 0,size:0}),Qh||(_.size=0),Pg(x)||YD(x,_[r],{that:_,AS_ENTRIES:n})}),a=o.prototype,s=HD(e),d=function(_,x,O){var C,Y,j=s(_),G=p(_,x);return G?G.value=O:(j.last=G={index:Y=o_(x,!0),key:x,value:O,previous:C=j.last,next:void 0,removed:!1},j.first||(j.first=G),C&&(C.next=G),Qh?j.size++:_.size++,Y!=="F"&&(j.index[Y]=G)),_},p=function(_,x){var O,C=s(_),Y=o_(x);if(Y!=="F")return C.index[Y];for(O=C.first;O;O=O.next)if(O.key==x)return O};return n_(a,{clear:function(){for(var _=s(this),x=_.index,O=_.first;O;)O.removed=!0,O.previous&&(O.previous=O.previous.next=void 0),delete x[O.index],O=O.next;_.first=_.last=void 0,Qh?_.size=0:this.size=0},delete:function(_){var x=this,O=s(x),C=p(x,_);if(C){var Y=C.next,j=C.previous;delete O.index[C.index],C.removed=!0,j&&(j.next=Y),Y&&(Y.previous=j),O.first==C&&(O.first=Y),O.last==C&&(O.last=j),Qh?O.size--:x.size--}return!!C},forEach:function(_){for(var x,O=s(this),C=FC(_,arguments.length>1?arguments[1]:void 0);x=x?x.next:O.first;)for(C(x.value,x.key,this);x&&x.removed;)x=x.previous},has:function(_){return!!p(this,_)}}),n_(a,n?{get:function(_){var x=p(this,_);return x&&x.value},set:function(_,x){return d(this,_===0?0:_,x)}}:{add:function(_){return d(this,_=_===0?0:_,_)}}),Qh&&LC(a,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=HD(e),a=HD(r);BD(t,e,function(s,d){BC(this,{type:r,target:s,state:o(s),kind:d,last:void 0})},function(){for(var s=a(this),d=s.kind,p=s.last;p&&p.removed;)p=p.previous;return s.target&&(s.last=p=p?p.next:s.state.first)?i_(d=="keys"?p.key:d=="values"?p.value:[p.key,p.value],!1):(s.target=void 0,i_(void 0,!0))},n?"entries":"values",!n,!0),YC(e)}},hP=function(t,e,n){var r,o=t.indexOf("Map")!==-1,a=t.indexOf("Weak")!==-1,s=o?"set":"add",d=PC[t],p=d&&d.prototype,_={};if(aP&&nP(d)&&(a||p.forEach&&!$C(function(){new d().entries().next()}))){var x=(r=e(function(C,Y){RD(rP(C,x),{type:t,collection:new d}),Y!=null&&NC(Y,C[s],{that:C,AS_ENTRIES:o})})).prototype,O=sP(t);RC(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(C){var Y=C=="add"||C=="set";!(C in p)||a&&C=="clear"||MC(x,C,function(j,G){var X=O(this).collection;if(!Y&&a&&!iP(j))return C=="get"&&void 0;var q=X[C](j===0?0:j,G);return Y?this:q})}),a||Ep(x,"size",{configurable:!0,get:function(){return O(this).collection.size}})}else r=n.getConstructor(e,t,o,s),AC.enable();return oP(r,t,!1,!0),_[t]=r,ND({global:!0,forced:!0},_),a||n.setStrong(r,t,o),r};hP("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ag);var $g=we.Set;(function(t){t.exports=$g})(FI);var a_=nt(DD),GD={},dP={get exports(){return GD},set exports(t){GD=t}},fP=Bt,pP=qo.findIndex,Mg="findIndex",HC=!0;Mg in[]&&Array(1)[Mg](function(){HC=!1}),fP({target:"Array",proto:!0,forced:HC},{findIndex:function(t){return pP(this,t,arguments.length>1?arguments[1]:void 0)}});var vP=Pr("Array").findIndex,mP=Le,gP=vP,WD=Array.prototype,yP=function(t){var e=t.findIndex;return t===WD||mP(WD,t)&&e===WD.findIndex?gP:e},zD=yP;(function(t){t.exports=zD})(dP);var GC=nt(GD);function bP(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return OT(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return OT(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}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 a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function OT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ns.index?1:a.indexn[d].index&&(n[a].top+=n[d].height);for(var p=t[a],_=0;_ut},j),li(C).call(C,j,0,bt),j++}};for(G.s();!(x=G.n()).done;)X()}catch(bt){G.e(bt)}finally{G.f()}Y=null;var q=null;j=0;for(var tt=0,ot=0,wt=0,It=function(){var bt,ut,Lt=O.shift();Lt.top=a(Lt);var re=d(Lt),lr=p(Lt);Y!==null&&relr&&(ot=function(Pi,fC,NT,pC){for(NT||(NT=0),pC||(pC=Pi.length),i=pC-1;i>=NT;i--)if(fC(Pi[i]))return i;return NT-1}(C,function(Pi){return lr+uo>=d(Pi)},tt,horizontalOVerlapEndIndex)+1);for(var dr,co,Ip,Gg=Mr(bt=ve(ut=vr(C).call(C,tt,ot)).call(ut,function(Pi){return red(Pi)})).call(bt,function(Pi,fC){return Pi.top-fC.top}),c_=0;c_co.top&&(Lt.top=dC.top+dC.height+e.vertical)}o(Lt)&&(j=hs(C,function(Pi){return d(Pi)-uo>re},j),li(C).call(C,j,0,Lt),j++);var sI=Lt.top+Lt.height;if(sI>wt&&(wt=sI),s&&s())return{v:null}};O.length>0;){var pt=It();if(Jt(pt)==="object")return pt.v}return wt}function hs(t,e,n){var r;n||(n=0);var o=GC(r=vr(t).call(t,n)).call(r,e);return o===-1?t.length:o+n}var s_=Object.freeze({__proto__:null,nostack:zC,orderByEnd:Ng,orderByStart:WC,stack:pa,stackSubgroups:UC,stackSubgroupsWithInnerStack:VD,substack:UD}),VC="__background__",ET=function(){function t(e,n,r){var o=this;if(Se(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=n&&n.subgroupOrder,this.itemSet=r,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],n&&n.nestedGroups&&(this.nestedGroups=n.nestedGroups,n.showNested==0?this.showNested=!1:this.showNested=!0),n&&n.subgroupStack)if(typeof n.subgroupStack=="boolean")this.doInnerStack=n.subgroupStack,this.subgroupStackAll=n.subgroupStack;else for(var a in n.subgroupStack)this.subgroupStack[a]=n.subgroupStack[a],this.doInnerStack=this.doInnerStack||n.subgroupStack[a];n&&n.heightMode?this.heightMode=n.heightMode:this.heightMode=r.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var s=function(){o.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",s),this._disposeCallbacks.push(function(){o.itemSet.body.emitter.off("checkRangedItems",s)}),this._create(),this.setData(n)}return Ce(t,[{key:"_create",value:function(){var e=document.createElement("div");this.itemSet.options.groupEditable.order?e.className="vis-label draggable":e.className="vis-label",this.dom.label=e;var n=document.createElement("div");n.className="vis-inner",e.appendChild(n),this.dom.inner=n;var r=document.createElement("div");r.className="vis-group",r["vis-group"]=this,this.dom.foreground=r,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(e){if(!this.itemSet.groupTouchParams.isDragging){var n,r,o;if(e&&e.subgroupVisibility)for(var a in e.subgroupVisibility)this.subgroupVisibility[a]=e.subgroupVisibility[a];if(this.itemSet.options&&this.itemSet.options.groupTemplate?n=(r=at(o=this.itemSet.options.groupTemplate).call(o,this))(e,this.dom.inner):n=e&&e.content,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?r(e,this.dom.inner):this.dom.inner.innerHTML=n!=null?H.xss(n):H.xss(this.groupId||""));this.dom.label.title=e&&e.title||"",this.dom.inner.firstChild?H.removeClassName(this.dom.inner,"vis-hidden"):H.addClassName(this.dom.inner,"vis-hidden"),e&&e.nestedGroups?(this.nestedGroups&&this.nestedGroups==e.nestedGroups||(this.nestedGroups=e.nestedGroups),e.showNested===void 0&&this.showNested!==void 0||(e.showNested==0?this.showNested=!1:this.showNested=!0),H.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(H.removeClassName(this.dom.label,"collapsed"),H.addClassName(this.dom.label,"expanded")):(H.removeClassName(this.dom.label,"expanded"),H.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,H.removeClassName(this.dom.label,"collapsed"),H.removeClassName(this.dom.label,"expanded"),H.removeClassName(this.dom.label,"vis-nesting-group")),e&&(e.treeLevel||e.nestedInGroup)?(H.addClassName(this.dom.label,"vis-nested-group"),e.treeLevel?H.addClassName(this.dom.label,"vis-group-level-"+e.treeLevel):H.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):H.addClassName(this.dom.label,"vis-group-level-0");var s=e&&e.className||null;s!=this.className&&(this.className&&(H.removeClassName(this.dom.label,this.className),H.removeClassName(this.dom.foreground,this.className),H.removeClassName(this.dom.background,this.className),H.removeClassName(this.dom.axis,this.className)),H.addClassName(this.dom.label,s),H.addClassName(this.dom.foreground,s),H.addClassName(this.dom.background,s),H.addClassName(this.dom.axis,s),this.className=s),this.style&&(H.removeCssText(this.dom.label,this.style),this.style=null),e&&e.style&&(H.addCssText(this.dom.label,e.style),this.style=e.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var e=this.dom.marker.clientHeight;if(e!=this.lastMarkerHeight){this.lastMarkerHeight=e;var n={},r=0;if(Ot(H).call(H,this.items,function(s,d){s.dirty=!0,s.displayed&&(n[d]=s.redraw(!0),r=n[d].length)}),r>0)for(var o=function(s){Ot(H).call(H,n,function(d){d[s]()})},a=0;ar.bailTimeMs&&(r.userBailFunction&&this.itemSet.userContinueNotBail==null?r.userBailFunction(function(a){e.itemSet.userContinueNotBail=a,o=!a}):o=e.itemSet.userContinueNotBail==0)}return o}},{key:"_redrawItems",value:function(e,n,r,o){var a=this;if(e||this.stackDirty||this.isVisible&&!n){var s,d,p,_,x,O,C={byEnd:ve(s=this.orderedItems.byEnd).call(s,function(ut){return!ut.isCluster}),byStart:ve(d=this.orderedItems.byStart).call(d,function(ut){return!ut.isCluster})},Y={byEnd:Zi(new a_(ve(p=Br(_=this.orderedItems.byEnd).call(_,function(ut){return ut.cluster})).call(p,function(ut){return!!ut}))),byStart:Zi(new a_(ve(x=Br(O=this.orderedItems.byStart).call(O,function(ut){return ut.cluster})).call(x,function(ut){return!!ut})))},j=function(){var ut,Lt,re,lr=a._updateItemsInRange(C,ve(ut=a.visibleItems).call(ut,function(co){return!co.isCluster}),o),dr=a._updateClustersInRange(Y,ve(Lt=a.visibleItems).call(Lt,function(co){return co.isCluster}),o);return Ke(re=[]).call(re,Zi(lr),Zi(dr))},G=function(ut){var Lt={},re=function(dr){var co,Ip=ve(co=a.visibleItems).call(co,function(Gg){return Gg.data.subgroup===dr});Lt[dr]=ut?Mr(Ip).call(Ip,function(Gg,c_){return ut(Gg.data,c_.data)}):Ip};for(var lr in a.subgroups)re(lr);return Lt};if(typeof this.itemSet.options.order=="function"){var X=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups)VD(G(this.itemSet.options.order),r,this.subgroups),this.visibleItems=j(),this._updateSubGroupHeights(r);else{var q,tt,ot,wt;this.visibleItems=j(),this._updateSubGroupHeights(r);var It=Mr(q=ve(tt=vr(ot=this.visibleItems).call(ot)).call(tt,function(ut){return ut.isCluster||!ut.isCluster&&!ut.cluster})).call(q,function(ut,Lt){return X.itemSet.options.order(ut.data,Lt.data)});this.shouldBailStackItems=pa(It,r,!0,at(wt=this._shouldBailItemsRedraw).call(wt,this))}}else{var pt;this.visibleItems=j(),this._updateSubGroupHeights(r),this.itemSet.options.stack?this.doInnerStack&&this.itemSet.options.stackSubgroups?VD(G(),r,this.subgroups):this.shouldBailStackItems=pa(this.visibleItems,r,!0,at(pt=this._shouldBailItemsRedraw).call(pt,this)):zC(this.visibleItems,r,this.subgroups,this.itemSet.options.stackSubgroups)}for(var bt=0;bt0){var r=this;this._resetSubgroups(),Ot(H).call(H,this.visibleItems,function(o){o.data.subgroup!==void 0&&(r.subgroups[o.data.subgroup].height=Math.max(r.subgroups[o.data.subgroup].height,o.height+e.item.vertical),r.subgroups[o.data.subgroup].visible=n.subgroupVisibility[o.data.subgroup]===void 0||!!n.subgroupVisibility[o.data.subgroup])})}}},{key:"_isGroupVisible",value:function(e,n){return this.top<=e.body.domProps.centerContainer.height-e.body.domProps.scrollTop+n.axis&&this.top+this.height+n.axis>=-e.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(e){var n,r;if((r=this.heightMode==="fixed"?H.toArray(this.items):this.visibleItems).length>0){var o=r[0].top,a=r[0].top+r[0].height;if(Ot(H).call(H,r,function(d){o=Math.min(o,d.top),a=Math.max(a,d.top+d.height)}),o>e.axis){var s=o-e.axis;a-=s,Ot(H).call(H,r,function(d){d.top-=s})}n=Math.ceil(a+e.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 e=this.dom.label;e.parentNode&&e.parentNode.removeChild(e);var n=this.dom.foreground;n.parentNode&&n.parentNode.removeChild(n);var r=this.dom.background;r.parentNode&&r.parentNode.removeChild(r);var o=this.dom.axis;o.parentNode&&o.parentNode.removeChild(o)}},{key:"add",value:function(e){var n;if(this.items[e.id]=e,e.setParent(this),this.stackDirty=!0,e.data.subgroup!==void 0&&(this._addToSubgroup(e),this.orderSubgroups()),!Xa(n=this.visibleItems).call(n,e)){var r=this.itemSet.body.range;this._checkIfVisible(e,this.visibleItems,r)}}},{key:"_addToSubgroup",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.data.subgroup;n!=null&&this.subgroups[n]===void 0&&(this.subgroups[n]={height:0,top:0,start:e.data.start,end:e.data.end||e.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[n]||!1},this.subgroupIndex++),new Date(e.data.start)new Date(this.subgroups[n].end)&&(this.subgroups[n].end=r),this.subgroups[n].items.push(e)}},{key:"_updateSubgroupsSizes",value:function(){var e=this;if(e.subgroups){var n=function(){var o,a=e.subgroups[r].items[0].data.end||e.subgroups[r].items[0].data.start,s=e.subgroups[r].items[0].data.start,d=a-1;Ot(o=e.subgroups[r].items).call(o,function(p){new Date(p.data.start)new Date(d)&&(d=_)}),e.subgroups[r].start=s,e.subgroups[r].end=new Date(d-1)};for(var r in e.subgroups)n()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var e=[];if(typeof this.subgroupOrderer=="string"){for(var n in this.subgroups)e.push({subgroup:n,sortField:this.subgroups[n].items[0].data[this.subgroupOrderer]});Mr(e).call(e,function(a,s){return a.sortField-s.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var r in this.subgroups)e.push(this.subgroups[r].items[0].data);Mr(e).call(e,this.subgroupOrderer)}if(e.length>0)for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:e.data.subgroup;if(n!=null){var r=this.subgroups[n];if(r){var o,a,s=Ie(o=r.items).call(o,e);s>=0&&(li(a=r.items).call(a,s,1),r.items.length?this._updateSubgroupsSizes():delete this.subgroups[n])}}}},{key:"removeFromDataSet",value:function(e){this.itemSet.removeItem(e.id)}},{key:"order",value:function(){for(var e=H.toArray(this.items),n=[],r=[],o=0;o0)for(var O=0;Ox}),this.checkRangedItems==1){this.checkRangedItems=!1;for(var Y=0;Yx})}for(var G={},X=0,q=0;q0)for(var ot=function(pt){Ot(H).call(H,G,function(bt){bt[pt]()})},wt=0;wt=0;s--){var d=n[s];if(a(d))break;d.isCluster&&!d.hasItems()||d.cluster||o[d.id]===void 0&&(o[d.id]=!0,r.push(d))}for(var p=e+1;p0)for(var s=0;s0)for(var Y=0;Y=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}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 a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function XC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var n=[];if(ce(this.options.dataAttributes))n=this.options.dataAttributes;else{if(this.options.dataAttributes!="all")return;n=Jr(this.data)}var r,o=qD(n);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.data[a];s!=null?e.setAttribute("data-".concat(a),s):e.removeAttribute("data-".concat(a))}}catch(d){o.e(d)}finally{o.f()}}}},{key:"_updateStyle",value:function(e){this.style&&(H.removeCssText(e,this.style),this.style=null),this.data.style&&(H.addCssText(e,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(e){return typeof e=="string"?e:e&&"outerHTML"in e?e.outerHTML:e}},{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}:Jt(this.options.editable)==="object"&&(this.editable={},H.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}:Jt(this.data.editable)==="object"&&(this.editable={},H.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 e;return this.options.tooltip&&this.options.tooltip.template?at(e=this.options.tooltip.template).call(e,this)(this._getItemData(),this.data):this.data.title}}]),t}();function _P(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}Dp.prototype.stack=!0;var KD=function(t){si(n,t);var e=_P(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={dot:{width:0,height:0},line:{width:0,height:0}},r&&r.start==null)throw new Error('Property "start" missing in item '.concat(r));return s}return Ce(n,[{key:"isVisible",value:function(r){if(this.cluster)return!1;var o,a=this.data.align||this.options.align,s=this.width*r.getMillisecondsPerPixel();return o=a=="right"?this.data.start.getTime()>r.start&&this.data.start.getTime()-sr.start&&this.data.start.getTime()r.start&&this.data.start.getTime()-s/23&&arguments[3]!==void 0&&arguments[3]?-1*s:s;a.style.transform=d!==void 0?s!==void 0?Ke(p="translate(".concat(_,"px, ")).call(p,d,"px)"):"translateY(".concat(d,"px)"):"translateX(".concat(_,"px)")}};o(this.dom.box,this.boxX,this.boxY,r),o(this.dom.dot,this.dotX,this.dotY,r),o(this.dom.line,this.lineX,this.lineY,r)}},{key:"repositionX",value:function(){var r=this.conversion.toScreen(this.data.start),o=this.data.align===void 0?this.options.align:this.data.align,a=this.props.line.width,s=this.props.dot.width;o=="right"?(this.boxX=r-this.width,this.lineX=r-a,this.dotX=r-a/2-s/2):o=="left"?(this.boxX=r,this.lineX=r,this.dotX=r+a/2-s/2):(this.boxX=r-this.width/2,this.lineX=this.options.rtl?r-a:r-a/2,this.dotX=r-s/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var r=this.options.orientation.item,o=this.dom.line.style;if(r=="top"){var a=this.parent.top+this.top+1;this.boxY=this.top||0,o.height="".concat(a,"px"),o.bottom="",o.top="0"}else{var s=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),o.height="".concat(s,"px"),o.top="",o.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}}]),n}(Dp);function JD(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var qC=function(t){si(n,t);var e=JD(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},r&&r.start==null)throw new Error('Property "start" missing in item '.concat(r));return s}return Ce(n,[{key:"isVisible",value:function(r){if(this.cluster)return!1;var o=this.width*r.getMillisecondsPerPixel();return this.data.start.getTime()+o>r.start&&this.data.start3&&arguments[3]!==void 0&&arguments[3]?-1*s:s;a.style.transform=d!==void 0?s!==void 0?Ke(p="translate(".concat(_,"px, ")).call(p,d,"px)"):"translateY(".concat(d,"px)"):"translateX(".concat(_,"px)")}};o(this.dom.point,this.pointX,this.pointY,r)}},{key:"show",value:function(r){if(!this.displayed)return this.redraw(r)}},{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 r=this.conversion.toScreen(this.data.start);this.pointX=r,this.options.rtl?this.right=r-this.props.dot.width:this.left=r-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var r=this.options.orientation.item;this.pointY=r=="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}}]),n}(Dp);function SP(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var td=function(t){si(n,t);var e=SP(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={content:{width:0}},s.overflow=!1,r){if(r.start==null)throw new Error('Property "start" missing in item '.concat(r.id));if(r.end==null)throw new Error('Property "end" missing in item '.concat(r.id))}return s}return Ce(n,[{key:"isVisible",value:function(r){return!this.cluster&&this.data.startr.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 r=this.parent.dom.foreground;if(!r)throw new Error("Cannot redraw item: parent has no foreground container element");r.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 r=this.editable.updateTime||this.editable.updateGroup,o=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(r?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+o,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(r){this.props.content.width=r.content.width,this.height=r.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(r){var o,a,s,d,p,_,x=this,O=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),function(){var C;x.dirty&&(p=at(C=x._getDomComponentsSizes).call(C,x)())},function(){var C;x.dirty&&at(C=x._updateDomComponentsSizes).call(C,x)(p)},at(d=this._repaintDomAdditionals).call(d,this)];return r?O:(Ot(O).call(O,function(C){_=C()}),_)}},{key:"show",value:function(r){if(!this.displayed)return this.redraw(r)}},{key:"hide",value:function(){if(this.displayed){var r=this.dom.box;r.parentNode&&r.parentNode.removeChild(r),this.displayed=!1}}},{key:"repositionX",value:function(r){var o,a,s=this.parent.width,d=this.conversion.toScreen(this.data.start),p=this.conversion.toScreen(this.data.end),_=this.data.align===void 0?this.options.align:this.data.align;this.data.limitSize===!1||r!==void 0&&r!==!0||(d<-s&&(d=-s),p>2*s&&(p=2*s));var x=Math.max(Math.round(1e3*(p-d))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=d:this.left=d,this.width=x+this.props.content.width,a=this.props.content.width):(this.options.rtl?this.right=d:this.left=d,this.width=x,a=Math.min(p-d,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(x,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),_){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var O=-1*Math.max(x-a,0);this.dom.content.style.transform="translateX(".concat(O,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(x-a,0),"px)");break;case"center":if(this.options.rtl){var C=-1*Math.max((x-a)/2,0);this.dom.content.style.transform="translateX(".concat(C,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((x-a)/2,0),"px)");break;default:if(o=this.overflow?p>0?Math.max(-d,0):-a:d<0?-d:0,this.options.rtl){var Y=-1*o;this.dom.content.style.transform="translateX(".concat(Y,"px)")}else this.dom.content.style.transform="translateX(".concat(o,"px)")}}},{key:"repositionY",value:function(){var r=this.options.orientation.item,o=this.dom.box;o.style.top="".concat(r=="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 r=document.createElement("div");r.className="vis-drag-left",r.dragLeftItem=this,this.dom.box.appendChild(r),this.dom.dragLeft=r}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 r=document.createElement("div");r.className="vis-drag-right",r.dragRightItem=this,this.dom.box.appendChild(r),this.dom.dragRight=r}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)}}]),n}(Dp);function KC(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}td.prototype.baseClassName="vis-item vis-range";var Cu=function(t){si(n,t);var e=KC(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={content:{width:0}},s.overflow=!1,r){if(r.start==null)throw new Error('Property "start" missing in item '.concat(r.id));if(r.end==null)throw new Error('Property "end" missing in item '.concat(r.id))}return s}return Ce(n,[{key:"isVisible",value:function(r){return this.data.startr.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 r=this.parent.dom.background;if(!r)throw new Error("Cannot redraw item: parent has no background container element");r.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 r=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+r}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(r){this.props.content.width=r.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(r){var o,a,s,d,p,_,x=this,O=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),function(){var C;x.dirty&&(p=at(C=x._getDomComponentsSizes).call(C,x)())},function(){var C;x.dirty&&at(C=x._updateDomComponentsSizes).call(C,x)(p)},at(d=this._repaintDomAdditionals).call(d,this)];return r?O:(Ot(O).call(O,function(C){_=C()}),_)}},{key:"repositionY",value:function(r){var o,a=this.options.orientation.item;if(this.data.subgroup!==void 0){var s=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[s].height,"px"),this.dom.box.style.top="".concat(a=="top"?this.parent.top+this.parent.subgroups[s].top:this.parent.top+this.parent.height-this.parent.subgroups[s].top-this.parent.subgroups[s].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof XD?(o=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=a=="bottom"?"0":"",this.dom.box.style.top=a=="top"?"0":""):(o=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(o,"px")}}]),n}(Dp);Cu.prototype.baseClassName="vis-item vis-background",Cu.prototype.stack=!1,Cu.prototype.show=td.prototype.show,Cu.prototype.hide=td.prototype.hide,Cu.prototype.repositionX=td.prototype.repositionX;var ZD=function(){function t(e,n){Se(this,t),this.container=e,this.overflowMethod=n||"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 Ce(t,[{key:"setPosition",value:function(e,n){this.x=Oi(e),this.y=Oi(n)}},{key:"setText",value:function(e){e instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(e)):this.frame.innerHTML=H.xss(e)}},{key:"show",value:function(e){if(e===void 0&&(e=!0),e===!0){var n=this.frame.clientHeight,r=this.frame.clientWidth,o=this.frame.parentNode.clientHeight,a=this.frame.parentNode.clientWidth,s=0,d=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){var p=!1,_=!0;this.overflowMethod=="flip"&&(this.y-na-this.padding&&(p=!0)),s=p?this.x-r:this.x,d=_?this.y-n:this.y}else(d=this.y-n)+n+this.padding>o&&(d=o-n-this.padding),da&&(s=a-r-this.padding),s1?arguments[1]:void 0)}});var kP=Pr("Array").every,QD=Le,TP=kP,tC=Array.prototype,jg=function(t){var e=t.every;return t===tC||QD(tC,t)&&e===tC.every?TP:e},eC=jg;(function(t){t.exports=eC})(CT);var ZC=nt(DT);function IT(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return PT(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return PT(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}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 a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function PT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nr.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(r){var o,a,s,d,p,_,x,O,C=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),at(d=function(){this.dirty&&(x=this._getDomComponentsSizes())}).call(d,this),at(p=function(){var Y;this.dirty&&at(Y=this._updateDomComponentsSizes).call(Y,this)(x)}).call(p,this),at(_=this._repaintDomAdditionals).call(_,this)];return r?C:(Ot(C).call(C,function(Y){O=Y()}),O)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var r=this.dom;r.box.parentNode&&r.box.parentNode.removeChild(r.box),this.options.showStipes&&(r.line.parentNode&&r.line.parentNode.removeChild(r.line),r.dot.parentNode&&r.dot.parentNode.removeChild(r.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var r=this.conversion.toScreen(this.data.start),o=this.data.end?this.conversion.toScreen(this.data.end):0;if(o)this.repositionXWithRanges(r,o);else{var a=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(r,a)}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(r,o))}},{key:"repositionStype",value:function(r,o){this.dom.line.style.display="block",this.dom.dot.style.display="block";var a=this.dom.line.offsetWidth,s=this.dom.dot.offsetWidth;if(o){var d=a+r+(o-r)/2,p=d-s/2,_=this.options.rtl?-1*d:d,x=this.options.rtl?-1*p:p;this.dom.line.style.transform="translateX(".concat(_,"px)"),this.dom.dot.style.transform="translateX(".concat(x,"px)")}else{var O=this.options.rtl?-1*r:r,C=this.options.rtl?-1*(r-s/2):r-s/2;this.dom.line.style.transform="translateX(".concat(O,"px)"),this.dom.dot.style.transform="translateX(".concat(C,"px)")}}},{key:"repositionXWithoutRanges",value:function(r,o){o=="right"?this.options.rtl?(this.right=r-this.width,this.dom.box.style.right=this.right+"px"):(this.left=r-this.width,this.dom.box.style.left=this.left+"px"):o=="left"?this.options.rtl?(this.right=r,this.dom.box.style.right=this.right+"px"):(this.left=r,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=r-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=r-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(r,o){var a=Math.round(Math.max(o-r+.5,1));this.options.rtl?this.right=r:this.left=r,this.width=Math.max(a,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=a+"px"}},{key:"repositionY",value:function(){var r=this.options.orientation.item,o=this.dom.box;if(o.style.top=r=="top"?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(r=="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 a=this.parent.itemSet.props.height,s=a-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=a-s+"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 r,o,a=IT(this.data.uiItems);try{for(a.s();!(o=a.n()).done;)o.value.cluster=this}catch(s){a.e(s)}finally{a.f()}this.data.items=Br(r=this.data.uiItems).call(r,function(s){return s.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.hasItems()){var o,a=IT(this.data.uiItems);try{for(a.s();!(o=a.n()).done;)delete o.value.cluster}catch(s){a.e(s)}finally{a.f()}this.attached=!1,r&&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 r,o,a,s=Br(r=this.data.uiItems).call(r,function(_){return{start:_.data.start.valueOf(),end:_.data.end?_.data.end.valueOf():_.data.start.valueOf()}});this.data.min=Math.min.apply(Math,Zi(Br(s).call(s,function(_){return Math.min(_.start,_.end||_.start)}))),this.data.max=Math.max.apply(Math,Zi(Br(s).call(s,function(_){return Math.max(_.start,_.end||_.start)})));var d=Br(o=this.data.uiItems).call(o,function(_){return _.center}),p=oS(d).call(d,function(_,x){return _+x},0)/this.data.uiItems.length;Me(a=this.data.uiItems).call(a,function(_){return _.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(p),this.data.end=null)}},{key:"_getUiItems",value:function(){var r,o=this;return this.data.uiItems&&this.data.uiItems.length?ve(r=this.data.uiItems).call(r,function(a){return a.cluster===o}):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var r;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=at(r=n.prototype._onDoubleClick).call(r,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 r=this.parent.dom.foreground;if(!r)throw new Error("Cannot redraw item: parent has no foreground container element");r.appendChild(this.dom.box)}var o=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!o)throw new Error("Cannot redraw item: parent has no background container element");o.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var a=this.parent.dom.axis;if(!o)throw new Error("Cannot redraw item: parent has no axis container element");a.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 r=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+r,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 r={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&&(r.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},r.line={width:this.dom.line.offsetWidth}),r}},{key:"_updateDomComponentsSizes",value:function(r){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=r.box.width:this.width=r.box.width,this.height=r.box.height,this.options.rtl?this.dom.box.style.right=r.previous.right:this.dom.box.style.left=r.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 r=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-r,fitEnd:this.data.max+r}}},{key:"_fit",value:function(){if(this.emitter){var r=this._getFitRange(),o=r.fitStart,a=r.fitEnd,s={start:new Date(o),end:new Date(a),animation:!0};this.emitter.emit("fit",s)}}},{key:"_getItemData",value:function(){return this.data}}]),n}(Dp);function xP(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return iC(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return iC(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}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 a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function iC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){if(n>=1)return[];d=Math.abs(Math.round(Math.log(100/n)/Math.log(2))),p=Math.abs(Math.pow(2,d))}if(this.dataChanged){var _=d!=this.cacheLevel;(!this.applyOnChangedLevel||_)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=d;var x=this.cache[d];if(!x){for(var O in x=[],this.groups)if(this.groups.hasOwnProperty(O))for(var C=this.groups[O],Y=C.length,j=0;j=0&&G.center-C[q].center

=0&&G.center-x[ot].centera){for(var wt=X-a+1,It=[],pt=j;It.length'+e.length+"",G=zn({},o,this.itemSet.options),X={content:j,title:Y,group:n,uiItems:e,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return s=this.createClusterItem(X,C,G),n&&(n.add(s),s.group=n),s.attach(),s}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}();function ed(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return tI(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return tI(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}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 a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function tI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var x,O=s.groupsData.getDataSet();Ot(x=O.get()).call(x,function(C){if(C.nestedGroups){var Y;C.showNested!=0&&(C.showNested=!0);var j=[];Ot(Y=C.nestedGroups).call(Y,function(G){var X=O.get(G);X&&(X.nestedInGroup=C.id,C.showNested==0&&(X.visible=!1),j=Ke(j).call(j,X))}),O.update(j,_)}})}},update:function(d,p,_){s._onUpdateGroups(p.items)},remove:function(d,p,_){s._onRemoveGroups(p.items)}},a.items={},a.groups={},a.groupIds=[],a.selection=[],a.popup=null,a.popupTimer=null,a.touchParams={},a.groupTouchParams={group:null,isDragging:!1},a._create(),a.setOptions(o),a.clusters=[],a}return Ce(n,[{key:"_create",value:function(){var r,o,a,s,d,p,_,x,O,C,Y,j,G,X,q,tt=this,ot=document.createElement("div");ot.className="vis-itemset",ot["vis-itemset"]=this,this.dom.frame=ot;var wt=document.createElement("div");wt.className="vis-background",ot.appendChild(wt),this.dom.background=wt;var It=document.createElement("div");It.className="vis-foreground",ot.appendChild(It),this.dom.foreground=It;var pt=document.createElement("div");pt.className="vis-axis",this.dom.axis=pt;var bt=document.createElement("div");bt.className="vis-labelset",this.dom.labelSet=bt,this._updateUngrouped();var ut=new XD(ds,null,this);ut.show(),this.groups[ds]=ut,this.hammer=new ze(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(Lt){Lt.isFirst&&tt._onTouch(Lt)}),this.hammer.on("panstart",at(r=this._onDragStart).call(r,this)),this.hammer.on("panmove",at(o=this._onDrag).call(o,this)),this.hammer.on("panend",at(a=this._onDragEnd).call(a,this)),this.hammer.get("pan").set({threshold:5,direction:ze.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",at(s=this._onSelectItem).call(s,this)),this.hammer.on("press",at(d=this._onMultiSelectItem).call(d,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",at(p=this._onAddItem).call(p,this)),this.options.rtl?this.groupHammer=new ze(this.body.dom.rightContainer):this.groupHammer=new ze(this.body.dom.leftContainer),this.groupHammer.on("tap",at(_=this._onGroupClick).call(_,this)),this.groupHammer.on("panstart",at(x=this._onGroupDragStart).call(x,this)),this.groupHammer.on("panmove",at(O=this._onGroupDrag).call(O,this)),this.groupHammer.on("panend",at(C=this._onGroupDragEnd).call(C,this)),this.groupHammer.get("pan").set({threshold:5,direction:ze.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",at(Y=this._onMouseOver).call(Y,this)),this.body.dom.centerContainer.addEventListener("mouseout",at(j=this._onMouseOut).call(j,this)),this.body.dom.centerContainer.addEventListener("mousemove",at(G=this._onMouseMove).call(G,this)),this.body.dom.centerContainer.addEventListener("contextmenu",at(X=this._onDragEnd).call(X,this)),this.body.dom.centerContainer.addEventListener("mousewheel",at(q=this._onMouseWheel).call(q,this)),this.show()}},{key:"setOptions",value:function(r){var o=this;if(r){var a,s;H.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,r),"itemsAlwaysDraggable"in r&&(typeof r.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=r.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):Jt(r.itemsAlwaysDraggable)==="object"&&(H.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,r.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in r&&typeof r.sequentialSelection=="boolean"&&(this.options.sequentialSelection=r.sequentialSelection),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation.item=r.orientation==="top"?"top":"bottom":Jt(r.orientation)==="object"&&"item"in r.orientation&&(this.options.orientation.item=r.orientation.item)),"margin"in r&&(typeof r.margin=="number"?(this.options.margin.axis=r.margin,this.options.margin.item.horizontal=r.margin,this.options.margin.item.vertical=r.margin):Jt(r.margin)==="object"&&(H.selectiveExtend(["axis"],this.options.margin,r.margin),"item"in r.margin&&(typeof r.margin.item=="number"?(this.options.margin.item.horizontal=r.margin.item,this.options.margin.item.vertical=r.margin.item):Jt(r.margin.item)==="object"&&H.selectiveExtend(["horizontal","vertical"],this.options.margin.item,r.margin.item)))),Ot(a=["locale","locales"]).call(a,function(d){d in r&&(o.options[d]=r[d])}),"editable"in r&&(typeof r.editable=="boolean"?(this.options.editable.updateTime=r.editable,this.options.editable.updateGroup=r.editable,this.options.editable.add=r.editable,this.options.editable.remove=r.editable,this.options.editable.overrideItems=!1):Jt(r.editable)==="object"&&H.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,r.editable)),"groupEditable"in r&&(typeof r.groupEditable=="boolean"?(this.options.groupEditable.order=r.groupEditable,this.options.groupEditable.add=r.groupEditable,this.options.groupEditable.remove=r.groupEditable):Jt(r.groupEditable)==="object"&&H.selectiveExtend(["order","add","remove"],this.options.groupEditable,r.groupEditable)),Ot(s=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(s,function(d){var p=r[d];if(p){var _;if(typeof p!="function")throw new Error(Ke(_="option ".concat(d," must be a function ")).call(_,d,"(item, callback)"));o.options[d]=p}}),r.cluster?(zn(this.options,{cluster:r.cluster}),this.clusterGenerator||(this.clusterGenerator=new QC(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(r){this.groupIds=[],r&&(r.refreshItems&&Ot(H).call(H,this.items,function(o){o.dirty=!0,o.displayed&&o.redraw()}),r.restackGroups&&Ot(H).call(H,this.groups,function(o,a){a!==ds&&(o.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(r){if(this.clearPopupTimer(),r){var o=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=Yn(function(){r.show()},o)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(r){var o;r==null&&(r=[]),ce(r)||(r=[r]);var a,s=ve(o=this.selection).call(o,function(j){return Ie(r).call(r,j)===-1}),d=ed(s);try{for(d.s();!(a=d.n()).done;){var p=a.value,_=this.getItemById(p);_&&_.unselect()}}catch(j){d.e(j)}finally{d.f()}this.selection=Zi(r);var x,O=ed(r);try{for(O.s();!(x=O.n()).done;){var C=x.value,Y=this.getItemById(C);Y&&Y.select()}}catch(j){O.e(j)}finally{O.f()}}},{key:"getSelection",value:function(){var r;return Ke(r=this.selection).call(r,[])}},{key:"getVisibleItems",value:function(){var r,o,a=this.body.range.getRange();this.options.rtl?(r=this.body.util.toScreen(a.start),o=this.body.util.toScreen(a.end)):(o=this.body.util.toScreen(a.start),r=this.body.util.toScreen(a.end));var s=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var p,_=this.groups[d],x=ed(_.isVisible?_.visibleItems:[]);try{for(x.s();!(p=x.n()).done;){var O=p.value;this.options.rtl?O.rightr&&s.push(O.id):O.lefto&&s.push(O.id)}}catch(C){x.e(C)}finally{x.f()}}return s}},{key:"getItemsAtCurrentTime",value:function(r){var o,a;this.options.rtl?(o=this.body.util.toScreen(r),a=this.body.util.toScreen(r)):(a=this.body.util.toScreen(r),o=this.body.util.toScreen(r));var s=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var p,_=this.groups[d],x=ed(_.isVisible?_.visibleItems:[]);try{for(x.s();!(p=x.n()).done;){var O=p.value;this.options.rtl?O.righto&&s.push(O.id):O.lefta&&s.push(O.id)}}catch(C){x.e(C)}finally{x.f()}}return s}},{key:"getVisibleGroups",value:function(){var r=[];for(var o in this.groups)this.groups.hasOwnProperty(o)&&this.groups[o].isVisible&&r.push(o);return r}},{key:"getItemById",value:function(r){var o;return this.items[r]||ED(o=this.clusters).call(o,function(a){return a.id===r})}},{key:"_deselect",value:function(r){for(var o=this.selection,a=0,s=o.length;a0){for(var bt={},ut=function(re){Ot(H).call(H,It,function(lr,dr){bt[dr]=lr[re]()})},Lt=0;Lt1&&arguments[1]!==void 0?arguments[1]:void 0;if(r&&r.nestedGroups){var a=this.groupsData.getDataSet();r.showNested=o!=null?!!o:!r.showNested;var s=a.get(r.groupId);s.showNested=r.showNested;for(var d,p=r.nestedGroups,_=p;_.length>0;){var x=_;_=[];for(var O=0;O0&&(p=Ke(p).call(p,_))}if(s.showNested){for(var Y=a.get(s.nestedGroups),j=0;j0&&(G.showNested==null||G.showNested==1)&&Y.push.apply(Y,Zi(a.get(G.nestedGroups)))}d=Br(Y).call(Y,function(q){return q.visible==null&&(q.visible=!0),q.visible=!!s.showNested,q})}else{var X;d=Br(X=a.get(p)).call(X,function(q){return q.visible==null&&(q.visible=!0),q.visible=!!s.showNested,q})}a.update(Ke(d).call(d,s)),s.showNested?(H.removeClassName(r.dom.label,"collapsed"),H.addClassName(r.dom.label,"expanded")):(H.removeClassName(r.dom.label,"expanded"),H.addClassName(r.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(r){r.dom.label.classList.toggle("vis-group-is-dragging"),r.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(r){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(r),this.groupTouchParams.group&&(r.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(r){if(this.options.groupEditable.order&&this.groupTouchParams.group){r.stopPropagation();var o=this.groupsData.getDataSet(),a=this.groupFromTarget(r);if(a&&a.height!=this.groupTouchParams.group.height){var s=a.topd)return}}if(a&&a!=this.groupTouchParams.group){var O=o.get(a.groupId),C=o.get(this.groupTouchParams.group.groupId);C&&O&&(this.options.groupOrderSwap(C,O,o),o.update(C),o.update(O));var Y=o.getIds({order:this.options.groupOrder});if(!H.equalArray(Y,this.groupTouchParams.originalOrder))for(var j=this.groupTouchParams.originalOrder,G=this.groupTouchParams.group.groupId,X=Math.min(j.length,Y.length),q=0,tt=0,ot=0;q=X)break;if(Y[q+tt]==G)tt=1;else if(j[q+ot]==G)ot=1;else{var wt=Ie(Y).call(Y,j[q+ot]),It=o.get(Y[q+tt]),pt=o.get(j[q+ot]);this.options.groupOrderSwap(It,pt,o),o.update(It),o.update(pt);var bt=Y[q+tt];Y[q+tt]=j[q+ot],Y[wt]=bt,q++}}}}}},{key:"_onGroupDragEnd",value:function(r){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){r.stopPropagation();var o=this,a=o.groupTouchParams.group.groupId,s=o.groupsData.getDataSet(),d=H.extend({},s.get(a));o.options.onMoveGroup(d,function(p){if(p)p[s._idProp]=a,s.update(p);else{var _=s.getIds({order:o.options.groupOrder});if(!H.equalArray(_,o.groupTouchParams.originalOrder))for(var x=o.groupTouchParams.originalOrder,O=Math.min(x.length,_.length),C=0;C=O)break;var Y=Ie(_).call(_,x[C]),j=s.get(_[C]),G=s.get(x[C]);o.options.groupOrderSwap(j,G,s),s.update(j),s.update(G);var X=_[C];_[C]=x[C],_[Y]=X,C++}}}),o.body.emitter.emit("groupDragged",{groupId:a}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(r){if(this.options.selectable){var o=r.srcEvent&&(r.srcEvent.ctrlKey||r.srcEvent.metaKey),a=r.srcEvent&&r.srcEvent.shiftKey;if(o||a)this._onMultiSelectItem(r);else{var s=this.getSelection(),d=this.itemFromTarget(r),p=d&&d.selectable?[d.id]:[];this.setSelection(p);var _=this.getSelection();(_.length>0||s.length>0)&&this.body.emitter.emit("select",{items:_,event:r})}}}},{key:"_onMouseOver",value:function(r){var o=this.itemFromTarget(r);if(o&&o!==this.itemFromRelatedTarget(r)){var a=o.getTitle();if(this.options.showTooltips&&a){this.popup==null&&(this.popup=new ZD(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(a);var s=this.body.dom.centerContainer,d=s.getBoundingClientRect();this.popup.setPosition(r.clientX-d.left+s.offsetLeft,r.clientY-d.top+s.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:o.id,event:r})}}},{key:"_onMouseOut",value:function(r){var o=this.itemFromTarget(r);o&&o!==this.itemFromRelatedTarget(r)&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:o.id,event:r}))}},{key:"_onMouseMove",value:function(r){if(this.itemFromTarget(r)&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var o=this.body.dom.centerContainer,a=o.getBoundingClientRect();this.popup.setPosition(r.clientX-a.left+o.offsetLeft,r.clientY-a.top+o.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(r){this.touchParams.itemIsDragging&&this._onDragEnd(r)}},{key:"_onUpdateItem",value:function(r){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var o=this;if(r){var a=o.itemsData.get(r.id);this.options.onUpdate(a,function(s){s&&o.itemsData.update(s)})}}}},{key:"_onDropObjectOnItem",value:function(r){var o=this.itemFromTarget(r),a=JSON.parse(r.dataTransfer.getData("text"));this.options.onDropObjectOnItem(a,o)}},{key:"_onAddItem",value:function(r){if(this.options.selectable&&this.options.editable.add){var o,a,s=this,d=this.options.snap||null,p=this.dom.frame.getBoundingClientRect(),_=this.options.rtl?p.right-r.center.x:r.center.x-p.left,x=this.body.util.toTime(_),O=this.body.util.getScale(),C=this.body.util.getStep();r.type=="drop"?((a=JSON.parse(r.dataTransfer.getData("text"))).content=a.content?a.content:"new item",a.start=a.start?a.start:d?d(x,O,C):x,a.type=a.type||"box",a[this.itemsData.idProp]=a.id||Wh(),a.type!="range"||a.end||(o=this.body.util.toTime(_+this.props.width/5),a.end=d?d(o,O,C):o)):((a={start:d?d(x,O,C):x,content:"new item"})[this.itemsData.idProp]=Wh(),this.options.type==="range"&&(o=this.body.util.toTime(_+this.props.width/5),a.end=d?d(o,O,C):o));var Y=this.groupFromTarget(r);Y&&(a.group=Y.groupId),a=this._cloneItemData(a),this.options.onAdd(a,function(j){j&&(s.itemsData.add(j),r.type=="drop"&&s.setSelection([j.id]))})}}},{key:"_onMultiSelectItem",value:function(r){var o=this;if(this.options.selectable){var a=this.itemFromTarget(r);if(a){var s=this.options.multiselect?this.getSelection():[];if((r.srcEvent&&r.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var d=this.itemsData.get(a.id).group,p=void 0;this.options.multiselectPerGroup&&s.length>0&&(p=this.itemsData.get(s[0]).group),this.options.multiselectPerGroup&&p!=null&&p!=d||s.push(a.id);var _=n._getItemRange(this.itemsData.get(s));if(!this.options.multiselectPerGroup||p==d){for(var x in s=[],this.items)if(this.items.hasOwnProperty(x)){var O=this.items[x],C=O.data.start,Y=O.data.end!==void 0?O.data.end:C;!(C>=_.min&&Y<=_.max)||this.options.multiselectPerGroup&&p!=this.itemsData.get(O.id).group||O instanceof Cu||s.push(O.id)}}}else{var j=Ie(s).call(s,a.id);j==-1?s.push(a.id):li(s).call(s,j,1)}var G=ve(s).call(s,function(X){return o.getItemById(X).selectable});this.setSelection(G),this.body.emitter.emit("select",{items:this.getSelection(),event:r})}}}},{key:"itemFromElement",value:function(r){for(var o=r;o;){if(o.hasOwnProperty("vis-item"))return o["vis-item"];o=o.parentNode}return null}},{key:"itemFromTarget",value:function(r){return this.itemFromElement(r.target)}},{key:"itemFromRelatedTarget",value:function(r){return this.itemFromElement(r.relatedTarget)}},{key:"groupFromTarget",value:function(r){var o=r.center?r.center.y:r.clientY,a=this.groupIds;a.length<=0&&this.groupsData&&(a=this.groupsData.getIds({order:this.options.groupOrder}));for(var s=0;s=x.top&&ox.top)return p}else if(s===0&&oo)&&(o=s.end):(o==null||s.start>o)&&(o=s.start)}),{min:a,max:o}}},{key:"itemSetFromTarget",value:function(r){for(var o=r.target;o;){if(o.hasOwnProperty("vis-itemset"))return o["vis-itemset"];o=o.parentNode}return null}}]),n}(Ao);Lg.types={background:Cu,box:KD,range:td,point:qC},Lg.prototype._onAdd=Lg.prototype._onUpdate;var eI,Fg=!1,u_="background: #FFeeee; color: #dd0000",aC=function(){function t(){Se(this,t)}return Ce(t,null,[{key:"validate",value:function(e,n,r){Fg=!1,eI=n;var o=n;return r!==void 0&&(o=n[r]),t.parse(e,o,[]),Fg}},{key:"parse",value:function(e,n,r){for(var o in e)e.hasOwnProperty(o)&&t.check(o,e,n,r)}},{key:"check",value:function(e,n,r,o){if(r[e]!==void 0||r.__any__!==void 0){var a=e,s=!0;r[e]===void 0&&r.__any__!==void 0&&(a="__any__",s=t.getType(n[e])==="object");var d=r[a];s&&d.__type__!==void 0&&(d=d.__type__),t.checkFields(e,n,r,a,d,o)}else t.getSuggestion(e,r,o)}},{key:"checkFields",value:function(e,n,r,o,a,s){var d=function(x){console.log("%c"+x+t.printLocation(s,e),u_)},p=t.getType(n[e]),_=a[p];_!==void 0?t.getType(_)==="array"&&Ie(_).call(_,n[e])===-1?(d('Invalid option detected in "'+e+'". Allowed values are:'+t.print(_)+' not "'+n[e]+'". '),Fg=!0):p==="object"&&o!=="__any__"&&(s=H.copyAndExtendArray(s,e),t.parse(n[e],r[o],s)):a.any===void 0&&(d('Invalid type received for "'+e+'". Expected: '+t.print(Jr(a))+". Received ["+p+'] "'+n[e]+'"'),Fg=!0)}},{key:"getType",value:function(e){var n=Jt(e);return n==="object"?e===null?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":ce(e)?"array":e instanceof Date?"date":e.nodeType!==void 0?"dom":e._isAMomentObject===!0?"moment":"object":n==="number"?"number":n==="boolean"?"boolean":n==="string"?"string":n===void 0?"undefined":n}},{key:"getSuggestion",value:function(e,n,r){var o,a=t.findInOptions(e,n,r,!1),s=t.findInOptions(e,eI,[],!0);o=a.indexMatch!==void 0?" in "+t.printLocation(a.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+a.indexMatch+`"? `:s.distance<=4&&a.distance>s.distance?" in "+t.printLocation(a.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):a.distance<=8?'. Did you mean "'+a.closestMatch+'"?'+t.printLocation(a.path,e):". Did you mean one of these: "+t.print(Jr(n))+t.printLocation(r,e),console.log('%cUnknown option detected: "'+e+'"'+o,u_),Fg=!0}},{key:"findInOptions",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=1e9,s="",d=[],p=e.toLowerCase(),_=void 0;for(var x in n){var O=void 0;if(n[x].__type__!==void 0&&o===!0){var C=t.findInOptions(e,n[x],H.copyAndExtendArray(r,x));a>C.distance&&(s=C.closestMatch,d=C.path,a=C.distance,_=C.indexMatch)}else{var Y;Ie(Y=x.toLowerCase()).call(Y,p)!==-1&&(_=x),a>(O=t.levenshteinDistance(e,x))&&(s=x,d=H.copyArray(r),a=O)}}return{closestMatch:s,path:d,distance:a,indexMatch:_}}},{key:"printLocation",value:function(e,n){for(var r=` `+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `)+`options = { `,o=0;o0&&arguments[0]!==void 0?arguments[0]:1;Se(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Ce(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if(typeof e=="string")return CP[e]}},{key:"setColor",value:function(e){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(e!=="none"){var r,o=this._isColorString(e);if(o!==void 0&&(e=o),H.isString(e)===!0){if(H.isValidRGB(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");r={r:a[0],g:a[1],b:a[2],a:1}}else if(H.isValidRGBA(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");r={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(H.isValidHex(e)===!0){var d=H.hexToRGB(e);r={r:d.r,g:d.g,b:d.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var p=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:p}}if(r===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: "+Un(e));this._setColor(r,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 e=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=H.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Yn(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.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(e){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=H.extend({},e)),this.color=e;var n=H.RGBToHSV(e.r,e.g,e.b),r=2*Math.PI,o=this.r*n.s,a=this.centerCoordinates.x+o*Math.sin(r*n.h),s=this.centerCoordinates.y+o*Math.cos(r*n.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=H.RGBToHSV(this.color.r,this.color.g,this.color.b);n.v=e/100;var r=H.HSVToRGB(n.h,n.s,n.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=H.RGBToHSV(e.r,e.g,e.b),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 o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,o,a),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-n.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fw(r).call(r),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*e.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 e,n,r,o;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 a=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var s=document.createElement("DIV");s.style.color="red",s.style.fontWeight="bold",s.style.padding="10px",s.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(s)}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(p){}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(p){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._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=at(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=at(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=at(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=at(o=this._loadLast).call(o,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 e=this;this.drag={},this.pinch={},this.hammer=new ze(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),ls(this.hammer,function(n){e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n,r,o,a,s=this.colorPickerCanvas.clientWidth,d=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,s,d),this.centerCoordinates={x:.5*s,y:.5*d},this.r=.49*s;var p,_=2*Math.PI/360,x=1/this.r;for(o=0;o<360;o++)for(a=0;a3&&arguments[3]!==void 0?arguments[3]:1;Se(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},H.extend(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new AT(o),this.wrapper=void 0}return Ce(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(ce(e))this.options.filter=e.join();else if(Jt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ve(e)!==void 0&&(this.options.filter=ve(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);ve(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,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 e=ve(this.options),n=0,r=!1;for(var o in this.configureOptions)this.configureOptions.hasOwnProperty(o)&&(this.allowCreation=!1,r=!1,typeof e=="function"?r=(r=e(o,[]))||this._handleObject(this.configureOptions[o],[o],!0):e!==!0&&Ie(e).call(e,o)===-1||(r=!0),r!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),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 e=0;e1?r-1:0),a=1;a2&&arguments[2]!==void 0&&arguments[2],o=document.createElement("div");return o.className="vis-configuration vis-config-label vis-config-s"+n.length,o.innerHTML=r===!0?H.xss(""+e+":"):H.xss(e+":"),o}},{key:"_makeDropdown",value:function(e,n,r){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&Ie(e).call(e,n)!==-1&&(a=Ie(e).call(e,n));for(var s=0;ss&&s!==1&&(p.max=Math.ceil(n*O),x=p.max,_="range increased"),p.value=n}else p.value=o;var C=document.createElement("input");C.className="vis-configuration vis-config-rangeinput",C.value=Number(p.value);var Y=this;p.onchange=function(){C.value=this.value,Y._update(Number(this.value),r)},p.oninput=function(){C.value=this.value};var j=this._makeLabel(r[r.length-1],r),G=this._makeItem(r,j,p,C);_!==""&&this.popupHistory[G]!==x&&(this.popupHistory[G]=x,this._setupPopup(_,G))}},{key:"_makeButton",value:function(){var e=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(){e._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(e,n){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,a=ve(this.options),s=!1;for(var d in e)if(e.hasOwnProperty(d)){o=!0;var p=e[d],_=H.copyAndExtendArray(n,d);if(typeof a=="function"&&(o=a(d,n))===!1&&!ce(p)&&typeof p!="string"&&typeof p!="boolean"&&p instanceof Object&&(this.allowCreation=!1,o=this._handleObject(p,_,!0),this.allowCreation=r===!1),o!==!1){s=!0;var x=this._getValue(_);if(ce(p))this._handleArray(p,x,_);else if(typeof p=="string")this._makeTextInput(p,x,_);else if(typeof p=="boolean")this._makeCheckbox(p,x,_);else if(p instanceof Object){var O=!0;if(Ie(n).call(n,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(O=!1),O===!0)if(p.enabled!==void 0){var C=H.copyAndExtendArray(_,"enabled"),Y=this._getValue(C);if(Y===!0){var j=this._makeLabel(d,_,!0);this._makeItem(_,j),s=this._handleObject(p,_)||s}else this._makeCheckbox(p,Y,_)}else{var G=this._makeLabel(d,_,!0);this._makeItem(_,G),s=this._handleObject(p,_)||s}}else console.error("dont know how to handle",p,d,_)}}return s}},{key:"_handleArray",value:function(e,n,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,r),e[1]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:Number(n)}))}},{key:"_update",value:function(e,n){var r=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r;e=(e=e==="true"||e)!=="false"&&e;for(var a=0;avar options = "+Un(e,null,2)+""}},{key:"getOptions",value:function(){for(var e={},n=0;np)&&(p=wt)}),d!==null&&p!==null){var _=this,x=this.itemSet.items[a[0]],O=-1*this._getScrollTop(),C=null,Y=function(){var tt=iI(_,x);tt.shouldScroll&&tt.itemTop!=C.itemTop&&(_._setScrollTop(-tt.scrollOffset),_._redraw())},j=!o||o.zoom===void 0||o.zoom,G=(d+p)/2,X=j?1.1*(p-d):Math.max(this.range.end-this.range.start,1.1*(p-d)),q=!o||o.animation===void 0||o.animation;q||(C={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(G-X/2,G+X/2,{animation:q},function(){Y(),Yn(Y,100)},function(tt,ot,wt){var It=iI(_,x);if(It!==!1&&(C||(C=It),C.itemTop!=It.itemTop||C.shouldScroll)){C.itemTop!=It.itemTop&&It.shouldScroll&&(C=It,O=-1*_._getScrollTop());var pt=O,bt=C.scrollOffset,ut=wt?bt:pt+(bt-pt)*tt;_._setScrollTop(-ut),ot||_._redraw()}})}}}},{key:"fit",value:function(r,o){var a,s=!r||r.animation===void 0||r.animation;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(a=this.getDataRange(),this.moveTo(a.min.valueOf(),{animation:s},o)):(a=this.getItemRange(),this.range.setRange(a.min,a.max,{animation:s},o))}},{key:"getItemRange",value:function(){var r=this,o=this.getDataRange(),a=o.min!==null?o.min.valueOf():null,s=o.max!==null?o.max.valueOf():null,d=null,p=null;if(a!=null&&s!=null){var _=s-a;_<=0&&(_=10);var x=_/this.props.center.width,O={},C=0;if(Ot(H).call(H,this.itemSet.items,function(tt,ot){tt.groupShowing&&(O[ot]=tt.redraw(!0),C=O[ot].length)}),C>0)for(var Y=function(tt){Ot(H).call(H,O,function(ot){ot[tt]()})},j=0;js&&(s=wt,p=tt)}),d&&p){var G=d.getWidthLeft()+10,X=p.getWidthRight()+10,q=this.props.center.width-G-X;q>0&&(this.options.rtl?(a=sC(d)-X*_/q,s=uC(p)+G*_/q):(a=sC(d)-G*_/q,s=uC(p)+X*_/q))}}return{min:a!=null?new Date(a):null,max:s!=null?new Date(s):null}}},{key:"getDataRange",value:function(){var r,o=null,a=null;return this.itemsData&&Ot(r=this.itemsData).call(r,function(s){var d=H.convert(s.start,"Date").valueOf(),p=H.convert(s.end!=null?s.end:s.start,"Date").valueOf();(o===null||da)&&(a=p)}),{min:o!=null?new Date(o):null,max:a!=null?new Date(a):null}}},{key:"getEventProperties",value:function(r){var o=r.center?r.center.x:r.clientX,a=r.center?r.center.y:r.clientY,s=this.dom.centerContainer.getBoundingClientRect(),d=this.options.rtl?s.right-o:o-s.left,p=a-s.top,_=this.itemSet.itemFromTarget(r),x=this.itemSet.groupFromTarget(r),O=$t.customTimeFromTarget(r),C=this.itemSet.options.snap||null,Y=this.body.util.getScale(),j=this.body.util.getStep(),G=this._toTime(d),X=C?C(G,Y,j):G,q=H.getTarget(r),tt=null;return _!=null?tt="item":O!=null?tt="custom-time":H.hasParent(q,this.timeAxis.dom.foreground)||this.timeAxis2&&H.hasParent(q,this.timeAxis2.dom.foreground)?tt="axis":H.hasParent(q,this.itemSet.dom.labelSet)?tt="group-label":H.hasParent(q,this.currentTime.bar)?tt="current-time":H.hasParent(q,this.dom.center)&&(tt="background"),{event:r,item:_?_.id:null,isCluster:!!_&&!!_.isCluster,items:_?_.items||[]:null,group:x?x.groupId:null,customTime:O?O.options.id:null,what:tt,pageX:r.srcEvent?r.srcEvent.pageX:r.pageX,pageY:r.srcEvent?r.srcEvent.pageY:r.pageY,x:d,y:p,time:G,snappedTime:X}}},{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(){ge.prototype._redraw.call(this)}},{key:"_onFit",value:function(r){var o=r.start,a=r.end,s=r.animation;a?this.range.setRange(o,a,{animation:s}):this.moveTo(o.valueOf(),{animation:s})}}]),n}(ge);function sC(t){return H.convert(t.data.start,"Date").valueOf()}function uC(t){var e=t.data.end!=null?t.data.end:t.data.start;return H.convert(e,"Date").valueOf()}function iI(t,e){if(!e.parent)return!1;var n=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,r=t.props.center.height,o=e.parent,a=o.top,s=!0,d=t.timeAxis.options.orientation.axis,p=function(){return d=="bottom"?o.height-e.top-e.height:e.top},_=-1*t._getScrollTop(),x=a+p(),O=e.height;return x<_?a+n<=a+p()+O&&(a+=p()-t.itemSet.options.margin.item.vertical):x+O>_+n?a+=p()+O-n+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:a=Math.min(a,r-n),itemTop:x}}function nd(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function va(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var n=0;n0?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(r)):(r=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(r)),e[t].used.push(r),r}function $T(t,e,n,r){var o;return e.hasOwnProperty(t)?e[t].redundant.length>0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElement(t),r!==void 0?n.insertBefore(o,r):n.appendChild(o)):(o=document.createElement(t),e[t]={used:[],redundant:[]},r!==void 0?n.insertBefore(o,r):n.appendChild(o)),e[t].used.push(o),o}function Yg(t,e,n,r,o,a){var s;if(n.style=="circle"?((s=ps("circle",r,o)).setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*n.size)):((s=ps("rect",r,o)).setAttributeNS(null,"x",t-.5*n.size),s.setAttributeNS(null,"y",e-.5*n.size),s.setAttributeNS(null,"width",n.size),s.setAttributeNS(null,"height",n.size)),n.styles!==void 0&&s.setAttributeNS(null,"style",n.styles),s.setAttributeNS(null,"class",n.className+" vis-point"),a){var d=ps("text",r,o);a.xOffset&&(t+=a.xOffset),a.yOffset&&(e+=a.yOffset),a.content&&(d.textContent=a.content),a.className&&d.setAttributeNS(null,"class",a.className+" vis-label"),d.setAttributeNS(null,"x",t),d.setAttributeNS(null,"y",e)}return s}function lC(t,e,n,r,o,a,s,d){if(r!=0){r<0&&(e-=r*=-1);var p=ps("rect",a,s);p.setAttributeNS(null,"x",t-.5*n),p.setAttributeNS(null,"y",e),p.setAttributeNS(null,"width",n),p.setAttributeNS(null,"height",r),p.setAttributeNS(null,"class",o),d&&p.setAttributeNS(null,"style",d)}}var oI=function(){function t(e,n,r,o,a,s){var d=arguments.length>6&&arguments[6]!==void 0&&arguments[6],p=arguments.length>7&&arguments[7]!==void 0&&arguments[7];if(Se(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=a,this.majorCharHeight=s,this._start=e,this._end=n,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=d,this.autoScaleStart=r,this.autoScaleEnd=o,this.formattingFunction=p,r||o){var _=this,x=function(O){var C=O-O%(_.magnitudefactor*_.minorSteps[_.minorStepIdx]);return O%(_.magnitudefactor*_.minorSteps[_.minorStepIdx])>_.magnitudefactor*_.minorSteps[_.minorStepIdx]*.5?C+_.magnitudefactor*_.minorSteps[_.minorStepIdx]:C};r&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=x(this._start)),o&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=x(this._end)),this.determineScale()}}return Ce(t,[{key:"setCharHeight",value:function(e){this.majorCharHeight=e}},{key:"setHeight",value:function(e){this.containerHeight=e}},{key:"determineScale",value:function(){var e=this._end-this._start;this.scale=this.containerHeight/e;var n=this.majorCharHeight/this.scale,r=e>0?Math.round(Math.log(e)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,r);var o=0;r<0&&(o=r);for(var a=!1,s=o;Math.abs(s)<=Math.abs(r);s++){this.magnitudefactor=Math.pow(10,s);for(var d=0;d=n){a=!0,this.minorStepIdx=d;break}if(a===!0)break}}},{key:"is_major",value:function(e){return e%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var e=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(e-this._start%e)%e)}},{key:"formatValue",value:function(e){var n=e.toPrecision(5);return typeof this.formattingFunction=="function"&&(n=this.formattingFunction(e)),typeof n=="number"?"".concat(n):typeof n=="string"?n:e.toPrecision(5)}},{key:"getLines",value:function(){for(var e=[],n=this.getStep(),r=(n-this._start%n)%n,o=this._start+r;this._end-o>1e-5;o+=n)o!=this._start&&e.push({major:this.is_major(o),y:this.convertValue(o),val:this.formatValue(o)});return e}},{key:"followScale",value:function(e){var n=this.minorStepIdx,r=this._start,o=this._end,a=this,s=function(){a.magnitudefactor*=2},d=function(){a.magnitudefactor/=2};e.minorStepIdx<=1&&this.minorStepIdx<=1||e.minorStepIdx>1&&this.minorStepIdx>1||(e.minorStepIdxo+1e-5)d(),x=!1;else{if(!this.autoScaleStart&&this._start=0)){d(),x=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&C=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}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 a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function aI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&r._redrawLabel(Y-2,C.val,a,"vis-y-axis vis-major",r.props.majorCharHeight),r.master===!0&&(j?r._redrawLine(Y,a,"vis-grid vis-horizontal vis-major",r.options.majorLinesOffset,r.props.majorLineWidth):r._redrawLine(Y,a,"vis-grid vis-horizontal vis-minor",r.options.minorLinesOffset,r.props.minorLineWidth))});var x=0;this.options[a].title!==void 0&&this.options[a].title.text!==void 0&&(x=this.props.titleCharHeight);var O=this.options.icons===!0?Math.max(this.options.iconWidth,x)+this.options.labelOffsetX+15:x+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-O&&this.options.visible===!0?(this.width=this.maxLabelSize+O,this.options.width="".concat(this.width,"px"),va(this.DOMelements.lines),va(this.DOMelements.labels),this.redraw(),o=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+O),this.options.width="".concat(this.width,"px"),va(this.DOMelements.lines),va(this.DOMelements.labels),this.redraw(),o=!0):(va(this.DOMelements.lines),va(this.DOMelements.labels),o=!1),o}},{key:"convertValue",value:function(r){return this.scale.convertValue(r)}},{key:"screenToValue",value:function(r){return this.scale.screenToValue(r)}},{key:"_redrawLabel",value:function(r,o,a,s,d){var p=$T("div",this.DOMelements.labels,this.dom.frame);p.className=s,p.innerHTML=H.xss(o),a==="left"?(p.style.left="-".concat(this.options.labelOffsetX,"px"),p.style.textAlign="right"):(p.style.right="-".concat(this.options.labelOffsetX,"px"),p.style.textAlign="left"),p.style.top="".concat(r-.5*d+this.options.labelOffsetY,"px"),o+="";var _=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize0&&(n=Math.min(n,Math.abs(e[r-1].screen_x-e[r].screen_x))),n===0&&(t[e[r].screen_x]===void 0&&(t[e[r].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[r].screen_x].amount+=1)},Ii._getSafeDrawData=function(t,e,n){var r,o;return t0?(r=t0){Mr(t).call(t,function(s,d){return s.screen_x===d.screen_x?s.groupIde[a].screen_y?e[a].screen_y:r,o=ot[s].accumulatedNegative?t[s].accumulatedNegative:r)>t[s].accumulatedPositive?t[s].accumulatedPositive:r,o=(o=o0)return e.options.interpolation.enabled==1?Zn._catmullRom(t,e):Zn._linear(t)},Zn.drawIcon=function(t,e,n,r,o,a){var s,d,p=.5*o,_=ps("rect",a.svgElements,a.svg);_.setAttributeNS(null,"x",e),_.setAttributeNS(null,"y",n-p),_.setAttributeNS(null,"width",r),_.setAttributeNS(null,"height",2*p),_.setAttributeNS(null,"class","vis-outline"),(s=ps("path",a.svgElements,a.svg)).setAttributeNS(null,"class",t.className),t.style!==void 0&&s.setAttributeNS(null,"style",t.style),s.setAttributeNS(null,"d","M"+e+","+n+" L"+(e+r)+","+n),t.options.shaded.enabled==1&&(d=ps("path",a.svgElements,a.svg),t.options.shaded.orientation=="top"?d.setAttributeNS(null,"d","M"+e+", "+(n-p)+"L"+e+","+n+" L"+(e+r)+","+n+" L"+(e+r)+","+(n-p)):d.setAttributeNS(null,"d","M"+e+","+n+" L"+e+","+(n+p)+" L"+(e+r)+","+(n+p)+"L"+(e+r)+","+n),d.setAttributeNS(null,"class",t.className+" vis-icon-fill"),t.options.shaded.style!==void 0&&t.options.shaded.style!==""&&d.setAttributeNS(null,"style",t.options.shaded.style)),t.options.drawPoints.enabled==1&&Yg(e+.5*r,n,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},a.svgElements,a.svg)},Zn.drawShading=function(t,e,n,r){if(e.options.shaded.enabled==1){var o,a=Number(r.svg.style.height.replace("px","")),s=ps("path",r.svgElements,r.svg),d="L";e.options.interpolation.enabled==1&&(d="C");var p=0;p=e.options.shaded.orientation=="top"?0:e.options.shaded.orientation=="bottom"?a:Math.min(Math.max(0,e.zeroPosition),a),o=e.options.shaded.orientation=="group"&&n!=null&&n!=null?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,d,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,d,!0)+n[0][0]+","+n[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,d,!1)+" V"+p+" H"+t[0][0]+" Z",s.setAttributeNS(null,"class",e.className+" vis-fill"),e.options.shaded.style!==void 0&&s.setAttributeNS(null,"style",e.options.shaded.style),s.setAttributeNS(null,"d",o)}},Zn.draw=function(t,e,n){if(t!=null&&t!=null){var r=ps("path",n.svgElements,n.svg);r.setAttributeNS(null,"class",e.className),e.style!==void 0&&r.setAttributeNS(null,"style",e.style);var o="L";e.options.interpolation.enabled==1&&(o="C"),r.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,o,!1))}},Zn.serializePath=function(t,e,n){if(t.length<2)return"";var r,o=e;if(n)for(r=t.length-2;r>0;r--)o+=t[r][0]+","+t[r][1]+" ";else for(r=1;r0&&(j=1/j),(G=3*X*(X+q))>0&&(G=1/G),d={screen_x:(-ot*r.screen_x+C*o.screen_x+wt*a.screen_x)*j,screen_y:(-ot*r.screen_y+C*o.screen_y+wt*a.screen_y)*j},p={screen_x:(tt*o.screen_x+Y*a.screen_x-ot*s.screen_x)*G,screen_y:(tt*o.screen_y+Y*a.screen_y-ot*s.screen_y)*G},d.screen_x==0&&d.screen_y==0&&(d=o),p.screen_x==0&&p.screen_y==0&&(p=a),pt.push([d.screen_x,d.screen_y]),pt.push([p.screen_x,p.screen_y]),pt.push([a.screen_x,a.screen_y]);return pt},Zn._linear=function(t){for(var e=[],n=0;nn.x?1:-1})):this.itemsData=[]},nc.prototype.getItems=function(){return this.itemsData},nc.prototype.setZeroPosition=function(t){this.zeroPosition=t},nc.prototype.setOptions=function(t){t!==void 0&&(H.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),typeof t.drawPoints=="function"&&(t.drawPoints={onRender:t.drawPoints}),H.mergeOptions(this.options,t,"interpolation"),H.mergeOptions(this.options,t,"drawPoints"),H.mergeOptions(this.options,t,"shaded"),t.interpolation&&Jt(t.interpolation)=="object"&&t.interpolation.parametrization&&(t.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:t.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)))},nc.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=t.visible===void 0||t.visible,this.style=t.style,this.setOptions(t.options)},nc.prototype.getLegend=function(t,e,n,r,o){switch(n!=null&&n!=null||(n={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),r!=null&&r!=null||(r=0),o!=null&&o!=null||(o=.5*e),this.options.style){case"line":Zn.drawIcon(this,r,o,t,e,n);break;case"points":case"point":l_.drawIcon(this,r,o,t,e,n);break;case"bar":Ii.drawIcon(this,r,o,t,e,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},nc.prototype.getYRange=function(t){for(var e=t[0].y,n=t[0].y,r=0;rt[r].y?t[r].y:e,n=n");this.dom.textArea.innerHTML=H.xss(a),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},lo.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=Jr(this.groups);Mr(t).call(t,function(x,O){return x0){var s={};for(this._getRelevantData(a,s,r,o),this._applySampling(a,s),e=0;e0)switch(t.options.style){case"line":p.hasOwnProperty(a[e])||(p[a[e]]=Zn.calcPath(s[a[e]],t)),Zn.draw(p[a[e]],t,this.framework);case"point":case"points":t.options.style!="point"&&t.options.style!="points"&&t.options.drawPoints.enabled!=1||l_.draw(s[a[e]],t,this.framework)}}}return va(this.svgElements),!1},He.prototype._stack=function(t,e){var n,r,o,a,s;n=0;for(var d=0;dt[d].x){s=e[p],a=p==0?s:e[p-1],n=p;break}}s===void 0&&(a=e[e.length-1],s=e[e.length-1]),r=s.x-a.x,o=s.y-a.y,t[d].y=r==0?t[d].orginalY+s.y:t[d].orginalY+o/r*(t[d].x-a.x)+a.y}},He.prototype._getRelevantData=function(t,e,n,r){var o,a,s,d;if(t.length>0)for(a=0;a0){for(var n=0;n0){var o,a=r.length,s=a/(this.body.util.toGlobalScreen(r[r.length-1].x)-this.body.util.toGlobalScreen(r[0].x));o=Math.min(Math.ceil(.2*a),Math.max(1,Math.round(s)));for(var d=new Array(a),p=0;p0){for(a=0;a0&&(o=this.groups[t[a]],s.stack===!0&&s.style==="bar"?s.yAxisOrientation==="left"?d=Ke(d).call(d,r):p=Ke(p).call(p,r):n[t[a]]=o.getYRange(r,t[a]));Ii.getStackedYRange(d,n,t,"__barStackLeft","left"),Ii.getStackedYRange(p,n,t,"__barStackRight","right")}},He.prototype._updateYAxis=function(t,e){var n,r,o=!1,a=!1,s=!1,d=1e9,p=1e9,_=-1e9,x=-1e9;if(t.length>0){for(var O=0;On?n:d,_=_n?n:p,x=xa?a:t,e=e==null||e0&&_.push(x.screenToValue(o)),!O.hidden&&this.itemsData.length>0&&_.push(O.screenToValue(o)),{event:t,customTime:s?s.options.id:null,what:p,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:r,y:o,time:a,value:_}},Iu.prototype._createConfigurator=function(){return new nI(this,this.dom.container,NP)};var RP=function(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(t){return"en"}}();L.locale(RP);var jP={Core:ge,DateUtil:P,Range:N,stack:s_,TimeStep:Ou,components:{items:{Item:Dp,BackgroundItem:Cu,BoxItem:KD,ClusterItem:nC,PointItem:qC,RangeItem:td},BackgroundGroup:XD,Component:Ao,CurrentTime:Jn,CustomTime:$t,DataAxis:cC,DataScale:oI,GraphGroup:nc,Group:ET,ItemSet:Lg,Legend:lo,LineGraph:He,TimeAxis:on}};F.Graph2d=Iu,F.Timeline=PP,F.timeline=jP})});var h$=mI((bI,c$)=>{(function(F,L){typeof bI=="object"&&typeof c$!="undefined"?L(bI):typeof define=="function"&&define.amd?define(["exports"],L):L((F=typeof globalThis!="undefined"?globalThis:F||self).vis=F.vis||{})})(bI,function(F){function L(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var J=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function z(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var nt={exports:{}},yt=function(u){return u&&u.Math===Math&&u},St=yt(typeof globalThis=="object"&&globalThis)||yt(typeof window=="object"&&window)||yt(typeof self=="object"&&self)||yt(typeof J=="object"&&J)||function(){return this}()||J||Function("return this")(),dt=function(u){try{return!!u()}catch(f){return!0}},Gt=!dt(function(){var u=function(){}.bind();return typeof u!="function"||u.hasOwnProperty("prototype")}),Wt=Gt,In=Function.prototype,Qe=In.apply,zr=In.call,Mi=typeof Reflect=="object"&&Reflect.apply||(Wt?zr.bind(Qe):function(){return zr.apply(Qe,arguments)}),Nt=Gt,an=Function.prototype,Pe=an.call,sn=Nt&&an.bind.bind(Pe,Pe),le=Nt?sn:function(u){return function(){return Pe.apply(u,arguments)}},ye=le,se=ye({}.toString),fi=ye("".slice),kr=function(u){return fi(se(u),8,-1)},ho=kr,fr=le,oc=function(u){if(ho(u)==="Function")return fr(u)},$u=typeof document=="object"&&document.all,Tr={all:$u,IS_HTMLDDA:$u===void 0&&$u!==void 0},ad=Tr.all,Te=Tr.IS_HTMLDDA?function(u){return typeof u=="function"||u===ad}:function(u){return typeof u=="function"},Ni={},ie=!dt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Re=Gt,xe=Function.prototype.call,Ae=Re?xe.bind(xe):function(){return xe.apply(xe,arguments)},je={},Ur={}.propertyIsEnumerable,pi=Object.getOwnPropertyDescriptor,Ue=pi&&!Ur.call({1:2},1);je.f=Ue?function(u){var f=pi(this,u);return!!f&&f.enumerable}:Ur;var Dt,Mu,un=function(u,f){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:f}},ya=dt,ei=kr,sd=Object,Kg=le("".split),gs=ya(function(){return!sd("z").propertyIsEnumerable(0)})?function(u){return ei(u)==="String"?Kg(u,""):sd(u)}:sd,No=function(u){return u==null},ac=No,ba=TypeError,Ro=function(u){if(ac(u))throw new ba("Can't call method on "+u);return u},Jg=gs,ys=Ro,ri=function(u){return Jg(ys(u))},ud=Te,tr=Tr.all,_e=Tr.IS_HTMLDDA?function(u){return typeof u=="object"?u!==null:ud(u)||u===tr}:function(u){return typeof u=="object"?u!==null:ud(u)},Ge={},xr=Ge,we=St,be=Te,Oe=function(u){return be(u)?u:void 0},wr=function(u,f){return arguments.length<2?Oe(xr[u])||Oe(we[u]):xr[u]&&xr[u][f]||we[u]&&we[u][f]},$e=le({}.isPrototypeOf),Xt=typeof navigator!="undefined"&&String(navigator.userAgent)||"",Le=St,er=Xt,bs=Le.process,Fe=Le.Deno,Pn=bs&&bs.versions||Fe&&Fe.version,fo=Pn&&Pn.v8;fo&&(Mu=(Dt=fo.split("."))[0]>0&&Dt[0]<4?1:+(Dt[0]+Dt[1])),!Mu&&er&&(!(Dt=er.match(/Edge\/(\d+)/))||Dt[1]>=74)&&(Dt=er.match(/Chrome\/(\d+)/))&&(Mu=+Dt[1]);var An=Mu,sc=An,Ri=dt,ld=St.String,vi=!!Object.getOwnPropertySymbols&&!Ri(function(){var u=Symbol("symbol detection");return!ld(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&sc&&sc<41}),rr=vi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wa=wr,po=Te,Et=$e,Zg=Object,Nu=rr?function(u){return typeof u=="symbol"}:function(u){var f=wa("Symbol");return po(f)&&Et(f.prototype,Zg(u))},$n=String,nr=function(u){try{return $n(u)}catch(f){return"Object"}},qt=Te,uc=nr,Ee=TypeError,Or=function(u){if(qt(u))return u;throw new Ee(uc(u)+" is not a function")},_a=Or,lc=No,Er=function(u,f){var v=u[f];return lc(v)?void 0:_a(v)},Nr=Ae,mn=Te,De=_e,Mn=TypeError,ji={exports:{}},ln=St,gn=Object.defineProperty,$p=function(u,f){try{gn(ln,u,{value:f,configurable:!0,writable:!0})}catch(v){ln[u]=f}return f},ws="__core-js_shared__",_s=St[ws]||$p(ws,{}),Ru=_s;(ji.exports=function(u,f){return Ru[u]||(Ru[u]=f!==void 0?f:{})})("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 cn=ji.exports,jo=Ro,Mp=Object,yn=function(u){return Mp(jo(u))},bn=yn,Qg=le({}.hasOwnProperty),Kt=Object.hasOwn||function(u,f){return Qg(bn(u),f)},Rr=le,ty=0,Np=Math.random(),Rp=Rr(1 .toString),ju=function(u){return"Symbol("+(u===void 0?"":u)+")_"+Rp(++ty+Np,36)},cc=cn,hc=Kt,cd=ju,Ss=vi,ey=rr,Sa=St.Symbol,ir=cc("wks"),hd=ey?Sa.for||Sa:Sa&&Sa.withoutSetter||cd,qe=function(u){return hc(ir,u)||(ir[u]=Ss&&hc(Sa,u)?Sa[u]:hd("Symbol."+u)),ir[u]},cr=Ae,or=_e,dd=Nu,ks=Er,dc=function(u,f){var v,m;if(f==="string"&&mn(v=u.toString)&&!De(m=Nr(v,u))||mn(v=u.valueOf)&&!De(m=Nr(v,u))||f!=="string"&&mn(v=u.toString)&&!De(m=Nr(v,u)))return m;throw new Mn("Can't convert object to primitive value")},jp=TypeError,Lo=qe("toPrimitive"),vo=function(u,f){if(!or(u)||dd(u))return u;var v,m=ks(u,Lo);if(m){if(f===void 0&&(f="default"),v=cr(m,u,f),!or(v)||dd(v))return v;throw new jp("Can't convert object to primitive value")}return f===void 0&&(f="number"),dc(u,f)},ry=Nu,Lu=function(u){var f=vo(u,"string");return ry(f)?f:f+""},Fu=_e,fc=St.document,fd=Fu(fc)&&Fu(fc.createElement),Fo=function(u){return fd?fc.createElement(u):{}},pc=Fo,Lp=!ie&&!dt(function(){return Object.defineProperty(pc("div"),"a",{get:function(){return 7}}).a!==7}),Ye=ie,ny=Ae,pd=je,Fp=un,iy=ri,oy=Lu,ay=Kt,sy=Lp,Yp=Object.getOwnPropertyDescriptor;Ni.f=Ye?Yp:function(u,f){if(u=iy(u),f=oy(f),sy)try{return Yp(u,f)}catch(v){}if(ay(u,f))return Fp(!ny(pd.f,u,f),u[f])};var Bp=dt,uy=Te,ly=/#|\.prototype\./,Yo=function(u,f){var v=Hp[Yu(u)];return v===cy||v!==vd&&(uy(f)?Bp(f):!!f)},Yu=Yo.normalize=function(u){return String(u).replace(ly,".").toLowerCase()},Hp=Yo.data={},vd=Yo.NATIVE="N",cy=Yo.POLYFILL="P",vc=Yo,md=Or,gd=Gt,hy=oc(oc.bind),Li=function(u,f){return md(u),f===void 0?u:gd?hy(u,f):function(){return u.apply(f,arguments)}},_r={},Nn=ie&&dt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Gp=_e,dy=String,fy=TypeError,wn=function(u){if(Gp(u))return u;throw new fy(dy(u)+" is not an object")},de=ie,Bu=Lp,Ts=Nn,mc=wn,xs=Lu,Wp=TypeError,ka=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,Fi="enumerable",Ta="configurable",Hu="writable";_r.f=de?Ts?function(u,f,v){if(mc(u),f=xs(f),mc(v),typeof u=="function"&&f==="prototype"&&"value"in v&&Hu in v&&!v[Hu]){var m=Os(u,f);m&&m[Hu]&&(u[f]=v.value,v={configurable:Ta in v?v[Ta]:m[Ta],enumerable:Fi in v?v[Fi]:m[Fi],writable:!1})}return ka(u,f,v)}:ka:function(u,f,v){if(mc(u),f=xs(f),mc(v),Bu)try{return ka(u,f,v)}catch(m){}if("get"in v||"set"in v)throw new Wp("Accessors not supported");return"value"in v&&(u[f]=v.value),u};var ni=_r,zp=un,mi=ie?function(u,f,v){return ni.f(u,f,zp(1,v))}:function(u,f,v){return u[f]=v,u},mo=St,gc=Mi,Bo=oc,jr=Te,yd=Ni.f,py=vc,xa=Ge,Es=Li,Oa=mi,Ea=Kt,_n=function(u){var f=function(v,m,S){if(this instanceof f){switch(arguments.length){case 0:return new u;case 1:return new u(v);case 2:return new u(v,m)}return new u(v,m,S)}return gc(u,this,arguments)};return f.prototype=u.prototype,f},Rt=function(u,f){var v,m,S,E,P,A,N,U,K,Q=u.target,st=u.global,ht=u.stat,kt=u.proto,Tt=st?mo:ht?mo[Q]:(mo[Q]||{}).prototype,Pt=st?xa:xa[Q]||Oa(xa,Q,{})[Q],Vt=Pt.prototype;for(E in f)m=!(v=py(st?E:Q+(ht?".":"#")+E,u.forced))&&Tt&&Ea(Tt,E),A=Pt[E],m&&(N=u.dontCallGetSet?(K=yd(Tt,E))&&K.value:Tt[E]),P=m&&N?N:f[E],m&&typeof A==typeof P||(U=u.bind&&m?Es(P,mo):u.wrap&&m?_n(P):kt&&jr(P)?Bo(P):P,(u.sham||P&&P.sham||A&&A.sham)&&Oa(U,"sham",!0),Oa(Pt,E,U),kt&&(Ea(xa,S=Q+"Prototype")||Oa(xa,S,{}),Oa(xa[S],E,P),u.real&&Vt&&(v||!Vt[E])&&Oa(Vt,E,P)))},Bt=Rt,yc=ie,Da=_r.f;Bt({target:"Object",stat:!0,forced:Object.defineProperty!==Da,sham:!yc},{defineProperty:Da});var bd=Ge.Object,Ds=nt.exports=function(u,f,v){return bd.defineProperty(u,f,v)};bd.defineProperty.sham&&(Ds.sham=!0);var bc=nt.exports,Gu=bc,Cs=z(Gu),Is=kr,Yi=Array.isArray||function(u){return Is(u)==="Array"},vy=Math.ceil,wd=Math.floor,my=Math.trunc||function(u){var f=+u;return(f>0?wd:vy)(f)},Sn=function(u){var f=+u;return f!=f||f===0?0:my(f)},Wu=Sn,wc=Math.min,We=function(u){return u>0?wc(Wu(u),9007199254740991):0},Rn=function(u){return We(u.length)},_c=TypeError,zu=function(u){if(u>9007199254740991)throw _c("Maximum allowed index exceeded");return u},Ps=Lu,gy=_r,gi=un,yi=function(u,f,v){var m=Ps(f);m in u?gy.f(u,m,gi(0,v)):u[m]=v},Sc={};Sc[qe("toStringTag")]="z";var Mt=String(Sc)==="[object z]",yy=Mt,kc=Te,Ho=kr,Tc=qe("toStringTag"),Up=Object,Vp=Ho(function(){return arguments}())==="Arguments",Bi=yy?Ho:function(u){var f,v,m;return u===void 0?"Undefined":u===null?"Null":typeof(v=function(S,E){try{return S[E]}catch(P){}}(f=Up(u),Tc))=="string"?v:Vp?Ho(f):(m=Ho(f))==="Object"&&kc(f.callee)?"Arguments":m},_d=Te,Ca=_s,Uu=le(Function.toString);_d(Ca.inspectSource)||(Ca.inspectSource=function(u){return Uu(u)});var Xp=Ca.inspectSource,by=le,Vu=dt,xc=Te,Ia=Bi,wy=Xp,go=function(){},_y=[],Xu=wr("Reflect","construct"),Sd=/^\s*(?:class|function)\b/,qp=by(Sd.exec),Oc=!Sd.test(go),yo=function(u){if(!xc(u))return!1;try{return Xu(go,_y,u),!0}catch(f){return!1}},ii=function(u){if(!xc(u))return!1;switch(Ia(u)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Oc||!!qp(Sd,wy(u))}catch(f){return!0}};ii.sham=!0;var Hi=!Xu||Vu(function(){var u;return yo(yo.call)||!yo(Object)||!yo(function(){u=!0})||u})?ii:yo,kd=Yi,Lr=Hi,Kp=_e,Jp=qe("species"),qu=Array,bi=function(u){var f;return kd(u)&&(f=u.constructor,(Lr(f)&&(f===qu||kd(f.prototype))||Kp(f)&&(f=f[Jp])===null)&&(f=void 0)),f===void 0?qu:f},Ku=function(u,f){return new(bi(u))(f===0?0:f)},Sy=dt,As=An,Zp=qe("species"),Pa=function(u){return As>=51||!Sy(function(){var f=[];return(f.constructor={})[Zp]=function(){return{foo:1}},f[u](Boolean).foo!==1})},$s=Rt,Ju=dt,ky=Yi,Ty=_e,Ec=yn,Qp=Rn,Td=zu,Dc=yi,xy=Ku,Oy=Pa,Vr=An,tv=qe("isConcatSpreadable"),Ey=Vr>=51||!Ju(function(){var u=[];return u[tv]=!1,u.concat()[0]!==u}),xd=function(u){if(!Ty(u))return!1;var f=u[tv];return f!==void 0?!!f:ky(u)};$s({target:"Array",proto:!0,arity:1,forced:!Ey||!Oy("concat")},{concat:function(u){var f,v,m,S,E,P=Ec(this),A=xy(P,0),N=0;for(f=-1,m=arguments.length;fA;)if((S=E[A++])!=S)return!0}else for(;P>A;A++)if((u||A in E)&&E[A]===v)return u||A||0;return!u&&-1}},Rs={includes:Qu(!0),indexOf:Qu(!1)},js={},Gi=Kt,Cc=ri,tl=Rs.indexOf,Ic=js,Ed=le([].push),Dd=function(u,f){var v,m=Cc(u),S=0,E=[];for(v in m)!Gi(Ic,v)&&Gi(m,v)&&Ed(E,v);for(;f.length>S;)Gi(m,v=f[S++])&&(~tl(E,v)||Ed(E,v));return E},Ls=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fs=Dd,iv=Ls,Ys=Object.keys||function(u){return Fs(u,iv)},Cy=ie,el=Nn,Iy=_r,ov=wn,Py=ri,av=Ys;$a.f=Cy&&!el?Object.defineProperties:function(u,f){ov(u);for(var v,m=Py(f),S=av(f),E=S.length,P=0;E>P;)Iy.f(u,v=S[P++],m[v]);return u};var Wi,sv=wr("document","documentElement"),Ay=ju,Cd=cn("keys"),rl=function(u){return Cd[u]||(Cd[u]=Ay(u))},uv=wn,$y=$a,At=Ls,Se=js,Id=sv,My=Fo,Ma="prototype",Bs="script",nl=rl("IE_PROTO"),Pd=function(){},lv=function(u){return"<"+Bs+">"+u+""},cv=function(u){u.write(lv("")),u.close();var f=u.parentWindow.Object;return u=null,f},il=function(){try{Wi=new ActiveXObject("htmlfile")}catch(S){}var u,f,v;il=typeof document!="undefined"?document.domain&&Wi?cv(Wi):(f=My("iframe"),v="java"+Bs+":",f.style.display="none",Id.appendChild(f),f.src=String(v),(u=f.contentWindow.document).open(),u.write(lv("document.F=Object")),u.close(),u.F):cv(Wi);for(var m=At.length;m--;)delete il[Ma][At[m]];return il()};Se[nl]=!0;var Wo=Object.create||function(u,f){var v;return u!==null?(Pd[Ma]=uv(u),v=new Pd,Pd[Ma]=null,v[nl]=u):v=il(),f===void 0?v:$y.f(v,f)},oi={},ol=Dd,Ny=Ls.concat("length","prototype");oi.f=Object.getOwnPropertyNames||function(u){return ol(u,Ny)};var Na={},Pc=Go,Ac=Rn,Ad=yi,zo=Array,hv=Math.max,bo=function(u,f,v){for(var m=Ac(u),S=Pc(f,m),E=Pc(v===void 0?m:v,m),P=zo(hv(E-S,0)),A=0;Sjt;jt++)if((A||jt in Tt)&&(ht=Pt(st=Tt[jt],jt,kt),u))if(f)Ne[jt]=ht;else if(ht)switch(u){case 3:return!0;case 5:return st;case 6:return jt;case 2:La(Ne,st)}else switch(u){case 4:return!1;case 7:La(Ne,st)}return E?-1:m||S?S:Ne}},Ut={forEach:Tn(0),map:Tn(1),filter:Tn(2),some:Tn(3),every:Tn(4),find:Tn(5),findIndex:Tn(6),filterReject:Tn(7)},c=Rt,b=St,k=Ae,D=le,M=ie,W=vi,it=dt,vt=Kt,Ft=$e,oe=wn,pr=ri,_i=Lu,Xo=Aa,zy=un,Ve=Wo,y_=Ys,WT=oi,b_=Na,w_=wi,Xs=Ni,__=_r,S_=$a,k_=je,Uy=zi,zT=Ra,Vy=cn,_v=js,Sv=ju,UT=qe,T_=Gs,qs=ar,Xy=Ws,VT=Dr,Vi=jn,Fa=Ut.forEach,Ir=rl("hidden"),Yd="Symbol",Bd="prototype",XT=Vi.set,kv=Vi.getterFor(Yd),Si=Object[Bd],Ks=b.Symbol,ko=Ks&&Ks[Bd],qo=b.RangeError,Rc=b.TypeError,Hd=b.QObject,cl=Xs.f,To=__.f,Ko=b_.f,jc=k_.f,x_=D([].push),pe=Vy("symbols"),Jo=Vy("op-symbols"),Js=Vy("wks"),Lc=!Hd||!Hd[Bd]||!Hd[Bd].findChild,Tv=function(u,f,v){var m=cl(Si,f);m&&delete Si[f],To(u,f,v),m&&u!==Si&&To(Si,f,m)},qy=M&&it(function(){return Ve(To({},"a",{get:function(){return To(this,"a",{value:7}).a}})).a!==7})?Tv:To,Gd=function(u,f){var v=pe[u]=Ve(ko);return XT(v,{type:Yd,tag:u,description:f}),M||(v.description=f),v},Zs=function(u,f,v){u===Si&&Zs(Jo,f,v),oe(u);var m=_i(f);return oe(v),vt(pe,m)?(v.enumerable?(vt(u,Ir)&&u[Ir][m]&&(u[Ir][m]=!1),v=Ve(v,{enumerable:zy(0,!1)})):(vt(u,Ir)||To(u,Ir,zy(1,{})),u[Ir][m]=!0),qy(u,m,v)):To(u,m,v)},xv=function(u,f){oe(u);var v=pr(f),m=y_(v).concat(Fc(v));return Fa(m,function(S){M&&!k(Ky,v,S)||Zs(u,S,v[S])}),u},Ky=function(u){var f=_i(u),v=k(jc,this,f);return!(this===Si&&vt(pe,f)&&!vt(Jo,f))&&(!(v||!vt(this,f)||!vt(pe,f)||vt(this,Ir)&&this[Ir][f])||v)},Zo=function(u,f){var v=pr(u),m=_i(f);if(v!==Si||!vt(pe,m)||vt(Jo,m)){var S=cl(v,m);return!S||!vt(pe,m)||vt(v,Ir)&&v[Ir][m]||(S.enumerable=!0),S}},hl=function(u){var f=Ko(pr(u)),v=[];return Fa(f,function(m){vt(pe,m)||vt(_v,m)||x_(v,m)}),v},Fc=function(u){var f=u===Si,v=Ko(f?Jo:pr(u)),m=[];return Fa(v,function(S){!vt(pe,S)||f&&!vt(Si,S)||x_(m,pe[S])}),m};W||(Ks=function(){if(Ft(ko,this))throw new Rc("Symbol is not a constructor");var u=arguments.length&&arguments[0]!==void 0?Xo(arguments[0]):void 0,f=Sv(u),v=function(m){var S=this===void 0?b:this;S===Si&&k(v,Jo,m),vt(S,Ir)&&vt(S[Ir],f)&&(S[Ir][f]=!1);var E=zy(1,m);try{qy(S,f,E)}catch(P){if(!(P instanceof qo))throw P;Tv(S,f,E)}};return M&&Lc&&qy(Si,f,{configurable:!0,set:v}),Gd(f,u)},Uy(ko=Ks[Bd],"toString",function(){return kv(this).tag}),Uy(Ks,"withoutSetter",function(u){return Gd(Sv(u),u)}),k_.f=Ky,__.f=Zs,S_.f=xv,Xs.f=Zo,WT.f=b_.f=hl,w_.f=Fc,T_.f=function(u){return Gd(UT(u),u)},M&&zT(ko,"description",{configurable:!0,get:function(){return kv(this).description}})),c({global:!0,constructor:!0,wrap:!0,forced:!W,sham:!W},{Symbol:Ks}),Fa(y_(Js),function(u){qs(u)}),c({target:Yd,stat:!0,forced:!W},{useSetter:function(){Lc=!0},useSimple:function(){Lc=!1}}),c({target:"Object",stat:!0,forced:!W,sham:!M},{create:function(u,f){return f===void 0?Ve(u):xv(Ve(u),f)},defineProperty:Zs,defineProperties:xv,getOwnPropertyDescriptor:Zo}),c({target:"Object",stat:!0,forced:!W},{getOwnPropertyNames:hl}),Xy(),VT(Ks,Yd),_v[Ir]=!0;var dl=vi&&!!Symbol.for&&!!Symbol.keyFor,Jy=Rt,O_=wr,fl=Kt,Yc=Aa,Ov=cn,Fr=dl,Ev=Ov("string-to-symbol-registry"),Zy=Ov("symbol-to-string-registry");Jy({target:"Symbol",stat:!0,forced:!Fr},{for:function(u){var f=Yc(u);if(fl(Ev,f))return Ev[f];var v=O_("Symbol")(f);return Ev[f]=v,Zy[v]=f,v}});var Dv=Rt,Qy=Kt,qT=Nu,tb=nr,Bc=dl,Hc=cn("symbol-to-string-registry");Dv({target:"Symbol",stat:!0,forced:!Bc},{keyFor:function(u){if(!qT(u))throw new TypeError(tb(u)+" is not a symbol");if(Qy(Hc,u))return Hc[u]}});var Xr=le([].slice),Gc=Yi,Wd=Te,eb=kr,rb=Aa,Xi=le([].push),Qs=Rt,Wc=wr,E_=Mi,zd=Ae,zc=le,Ya=dt,Cv=Te,D_=Nu,nb=Xr,Ba=function(u){if(Wd(u))return u;if(Gc(u)){for(var f=u.length,v=[],m=0;m=f.length)return u.target=void 0,Zc(void 0,!0);switch(u.kind){case"keys":return Zc(v,!1);case"values":return Zc(f[v],!1)}return Zc([v,f[v]],!1)},"values"),U_.Arguments=U_.Array;var lx={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},cx=St,hx=Bi,dx=mi,X_=gl,q_=qe("toStringTag");for(var Eb in lx){var K_=cx[Eb],Db=K_&&K_.prototype;Db&&hx(Db)!==q_&&dx(Db,q_,Eb),X_[Eb]=X_.Array}var J_=ub,fx=qe,px=_r.f,Z_=fx("metadata"),Q_=Function.prototype;Q_[Z_]===void 0&&px(Q_,Z_,{value:null}),ar("asyncDispose"),ar("dispose"),ar("metadata");var vx=J_,mx=le,Cb=wr("Symbol"),gx=Cb.keyFor,yx=mx(Cb.prototype.valueOf),t1=Cb.isRegisteredSymbol||function(u){try{return gx(yx(u))!==void 0}catch(f){return!1}};Rt({target:"Symbol",stat:!0},{isRegisteredSymbol:t1});for(var bl=cn,Kd=wr,bx=le,Jd=Nu,Ib=qe,wl=Kd("Symbol"),Zd=wl.isWellKnownSymbol,Pb=Kd("Object","getOwnPropertyNames"),wx=bx(wl.prototype.valueOf),Yv=bl("wks"),Qc=0,e1=Pb(wl),r1=e1.length;Qc=A?u?"":void 0:(m=i1(E,P))<55296||m>56319||P+1===A||(S=i1(E,P+1))<56320||S>57343?u?kx(E,P):m:u?o1(E,P,P+2):S-56320+(m-55296<<10)+65536}},$b={codeAt:Gv(!1),charAt:Gv(!0)}.charAt,a1=Aa,th=jn,Mb=jv,ta=Lv,Wv="String Iterator",Nb=th.set,s1=th.getterFor(Wv);Mb(String,"String",function(u){Nb(this,{type:Wv,string:a1(u),index:0})},function(){var u,f=s1(this),v=f.string,m=f.index;return m>=v.length?ta(void 0,!0):(u=$b(v,m),f.index+=u.length,ta(u,!1))});var Rb=Gs.f("iterator"),u1=Rb,Tx=z(u1);function eh(u){return eh=typeof nu=="function"&&typeof Tx=="symbol"?function(f){return typeof f}:function(f){return f&&typeof nu=="function"&&f.constructor===nu&&f!==nu.prototype?"symbol":typeof f},eh(u)}var l1=z(Gs.f("toPrimitive"));function c1(u){var f=function(v,m){if(eh(v)!=="object"||v===null)return v;var S=v[l1];if(S!==void 0){var E=S.call(v,m||"default");if(eh(E)!=="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(v)}(u,"string");return eh(f)==="symbol"?f:String(f)}function h1(u,f){for(var v=0;v=0:A>N;N+=U)N in P&&(S=v(S,P[N],N,E));return S}},Kv={left:Fb(!1),right:Fb(!0)},Yb=dt,Jv=function(u,f){var v=[][u];return!!v&&Yb(function(){v.call(null,f||function(){return 1},1)})},rh=kr(St.process)==="process",_1=Kv.left;Rt({target:"Array",proto:!0,forced:!rh&&An>79&&An<83||!Jv("reduce")},{reduce:function(u){var f=arguments.length;return _1(this,u,f,f>1?arguments[1]:void 0)}});var Jt=qr("Array","reduce"),nh=$e,S1=Jt,rf=Array.prototype,k1=z(function(u){var f=u.reduce;return u===rf||nh(rf,u)&&f===rf.reduce?S1:f}),Ix=Ut.filter;Rt({target:"Array",proto:!0,forced:!Pa("filter")},{filter:function(u){return Ix(this,u,arguments.length>1?arguments[1]:void 0)}});var Px=qr("Array","filter"),T1=$e,x1=Px,Ce=Array.prototype,me=z(function(u){var f=u.filter;return u===Ce||T1(Ce,u)&&f===Ce.filter?x1:f}),Bb=Ut.map;Rt({target:"Array",proto:!0,forced:!Pa("map")},{map:function(u){return Bb(this,u,arguments.length>1?arguments[1]:void 0)}});var O1=qr("Array","map"),nf=$e,E1=O1,of=Array.prototype,ai=z(function(u){var f=u.map;return u===of||nf(of,u)&&f===of.map?E1:f}),D1=Yi,Ax=Rn,Hb=zu,C1=Li,af=function(u,f,v,m,S,E,P,A){for(var N,U,K=S,Q=0,st=!!P&&C1(P,A);Q0&&D1(N)?(U=Ax(N),K=af(u,f,N,U,K,E-1)-1):(Hb(K+1),u[K]=N),K++),Q++;return K},$x=af,Mx=Or,Gb=yn,Wb=Rn,Nx=Ku;Rt({target:"Array",proto:!0},{flatMap:function(u){var f,v=Gb(this),m=Wb(v);return Mx(u),(f=Nx(v,0)).length=$x(f,v,v,m,0,1,u,arguments.length>1?arguments[1]:void 0),f}});var zb=qr("Array","flatMap"),Rx=$e,Zv=zb,Ub=Array.prototype,Pr=z(function(u){var f=u.flatMap;return u===Ub||Rx(Ub,u)&&f===Ub.flatMap?Zv:f}),I1=function(){function u(f,v,m){var S,E,P;L(this,u),Fn(this,"_listeners",{add:Sl(S=this._add).call(S,this),remove:Sl(E=this._remove).call(E,this),update:Sl(P=this._update).call(P,this)}),this._source=f,this._transformers=v,this._target=m}return _l(u,[{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(f){var v;return k1(v=this._transformers).call(v,function(m,S){return S(m)},f)}},{key:"_add",value:function(f,v){v!=null&&this._target.add(this._transformItems(this._source.get(v.items)))}},{key:"_update",value:function(f,v){v!=null&&this._target.update(this._transformItems(this._source.get(v.items)))}},{key:"_remove",value:function(f,v){v!=null&&this._target.remove(this._transformItems(v.oldData))}}]),u}(),jx=function(){function u(f){L(this,u),Fn(this,"_transformers",[]),this._source=f}return _l(u,[{key:"filter",value:function(f){return this._transformers.push(function(v){return me(v).call(v,f)}),this}},{key:"map",value:function(f){return this._transformers.push(function(v){return ai(v).call(v,f)}),this}},{key:"flatMap",value:function(f){return this._transformers.push(function(v){return Pr(v).call(v,f)}),this}},{key:"to",value:function(f){return new I1(this._source,this._transformers,f)}}]),u}(),Lx=Ae,Qv=wn,P1=Er,Vb=function(u,f,v){var m,S;Qv(u);try{if(!(m=P1(u,"return"))){if(f==="throw")throw v;return v}m=Lx(m,u)}catch(E){S=!0,m=E}if(f==="throw")throw v;if(S)throw m;return Qv(m),v},Fx=wn,A1=Vb,ih=gl,si=qe("iterator"),ui=Array.prototype,tm=function(u){return u!==void 0&&(ih.Array===u||ui[si]===u)},$1=Bi,oh=Er,M1=No,Yx=gl,Xb=qe("iterator"),sf=function(u){if(!M1(u))return oh(u,Xb)||oh(u,"@@iterator")||Yx[$1(u)]},N1=Ae,Bx=Or,R1=wn,Be=nr,qb=sf,Hx=TypeError,em=function(u,f){var v=arguments.length<2?qb(u):f;if(Bx(v))return R1(N1(v,u));throw new Hx(Be(u)+" is not iterable")},ce=Li,Kb=Ae,at=yn,Jb=function(u,f,v,m){try{return m?f(Fx(v)[0],v[1]):f(v)}catch(S){A1(u,"throw",S)}},Gx=tm,Wx=Hi,Zb=Rn,iu=yi,Qb=em,zx=sf,j1=Array,L1=qe("iterator"),F1=!1;try{var Y1=0,B1={next:function(){return{done:!!Y1++}},return:function(){F1=!0}};B1[L1]=function(){return this},Array.from(B1,function(){throw 2})}catch(u){}var t0=function(u,f){try{if(!f&&!F1)return!1}catch(S){return!1}var v=!1;try{var m={};m[L1]=function(){return{next:function(){return{done:v=!0}}}},u(m)}catch(S){}return v},H1=function(u){var f=at(u),v=Wx(this),m=arguments.length,S=m>1?arguments[1]:void 0,E=S!==void 0;E&&(S=ce(S,m>2?arguments[2]:void 0));var P,A,N,U,K,Q,st=zx(f),ht=0;if(!st||this===j1&&Gx(st))for(P=Zb(f),A=v?new this(P):j1(P);P>ht;ht++)Q=E?S(f[ht],ht):f[ht],iu(A,ht,Q);else for(K=(U=Qb(f,st)).next,A=v?new this:[];!(N=Kb(K,U)).done;ht++)Q=E?Jb(U,S,[N.value,ht],!0):N.value,iu(A,ht,Q);return A.length=ht,A};Rt({target:"Array",stat:!0,forced:!t0(function(u){Array.from(u)})},{from:H1});var G1=Ge.Array.from,uf=z(G1),rm=sf,W1=z(rm),ah=z(rm);Rt({target:"Array",stat:!0},{isArray:Yi});var nm=Ge.Array.isArray,z1=z(nm),Yn=ie,e0=Yi,Ux=TypeError,Vx=Object.getOwnPropertyDescriptor,ou=Yn&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}()?function(u,f){if(e0(u)&&!Vx(u,"length").writable)throw new Ux("Cannot set read only .length");return u.length=f}:function(u,f){return u.length=f},Xx=yn,U1=Rn,qx=ou,Kx=zu;Rt({target:"Array",proto:!0,arity:1,forced:dt(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(u){return u instanceof TypeError}}()},{push:function(u){var f=Xx(this),v=U1(f),m=arguments.length;Kx(v+m);for(var S=0;Su.length)&&(f=u.length);for(var v=0,m=new Array(f);v1?arguments[1]:void 0)};Rt({target:"Array",proto:!0,forced:[].forEach!==lm},{forEach:lm});var lO=qr("Array","forEach"),cm=Bi,cO=Kt,eS=$e,lh=lO,c0=Array.prototype,hO={DOMTokenList:!0,NodeList:!0},h0=function(u){var f=u.forEach;return u===c0||eS(c0,u)&&f===c0.forEach||cO(hO,cm(u))?lh:f},ea=z(h0),d0=Rt,dO=Yi,fO=le([].reverse),rS=[1,2];d0({target:"Array",proto:!0,forced:String(rS)===String(rS.reverse())},{reverse:function(){return dO(this)&&(this.length=this.length),fO(this)}});var pO=qr("Array","reverse"),vO=$e,f0=pO,vf=Array.prototype,nS=function(u){var f=u.reverse;return u===vf||vO(vf,u)&&f===vf.reverse?f0:f},Br=z(nS),hm=nr,mO=TypeError,p0=function(u,f){if(!delete u[f])throw new mO("Cannot delete property "+hm(f)+" of "+hm(u))},gO=Rt,yO=yn,bO=Go,wO=Sn,iS=Rn,_O=ou,SO=zu,kO=Ku,v0=yi,m0=p0,TO=Pa("splice"),g0=Math.max,xO=Math.min;gO({target:"Array",proto:!0,forced:!TO},{splice:function(u,f){var v,m,S,E,P,A,N=yO(this),U=iS(N),K=bO(u,U),Q=arguments.length;for(Q===0?v=m=0:Q===1?(v=0,m=U-K):(v=Q-2,m=xO(g0(wO(f),0),U-K)),SO(U+v-m),S=kO(N,m),E=0;EU-m+v;E--)m0(N,E-1)}else if(v>m)for(E=U-m;E>K;E--)A=E+v-1,(P=E+m-1)in N?N[A]=N[P]:m0(N,A);for(E=0;ES;)for(var A,N=sS(arguments[S++]),U=E?CO(Tl(N),E(N)):Tl(N),K=U.length,Q=0;K>Q;)A=U[Q++],w0&&!Jr(P,N,A)||(v[A]=N[A]);return v}:Zr,uS=IO;Rt({target:"Object",stat:!0,arity:2,forced:Object.assign!==uS},{assign:uS});var T0=z(Ge.Object.assign),PO=yn,x0=Xd,AO=hb;Rt({target:"Object",stat:!0,forced:dt(function(){x0(1)}),sham:!AO},{getPrototypeOf:function(u){return x0(PO(u))}});var lS=Ge.Object.getPrototypeOf;Rt({target:"Object",stat:!0,sham:!ie},{create:Wo});var $O=Ge.Object,cS=function(u,f){return $O.create(u,f)},MO=z(cS),ch=Ge,NO=Mi;ch.JSON||(ch.JSON={stringify:JSON.stringify});var RO=function(u,f,v){return NO(ch.JSON.stringify,null,arguments)},jO=z(RO),O0=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",LO=TypeError,hS=function(u,f){if(uv,P=YO(m)?m:dS(m),A=E?GO(arguments,v):[],N=E?function(){FO(P,this,A)}:P;return f?u(N,S):u(N)}:u},zO=Rt,C0=St,I0=D0(C0.setInterval,!0);zO({global:!0,bind:!0,forced:C0.setInterval!==I0},{setInterval:I0});var pS=Rt,vS=St,P0=D0(vS.setTimeout,!0);pS({global:!0,bind:!0,forced:vS.setTimeout!==P0},{setTimeout:P0});var UO=z(Ge.setTimeout),A0={exports:{}};(function(u){function f(v){if(v)return function(m){return Object.assign(m,f.prototype),m._callbacks=new Map,m}(v);this._callbacks=new Map}f.prototype.on=function(v,m){var E;let S=(E=this._callbacks.get(v))!=null?E:[];return S.push(m),this._callbacks.set(v,S),this},f.prototype.once=function(v,m){let S=(...E)=>{this.off(v,S),m.apply(this,E)};return S.fn=m,this.on(v,S),this},f.prototype.off=function(v,m){if(v===void 0&&m===void 0)return this._callbacks.clear(),this;if(m===void 0)return this._callbacks.delete(v),this;let S=this._callbacks.get(v);if(S){for(let[E,P]of S.entries())if(P===m||P.fn===m){S.splice(E,1);break}S.length===0?this._callbacks.delete(v):this._callbacks.set(v,S)}return this},f.prototype.emit=function(v,...m){let S=this._callbacks.get(v);if(S){let E=[...S];for(let P of E)P.apply(this,m)}return this},f.prototype.listeners=function(v){var m;return(m=this._callbacks.get(v))!=null?m:[]},f.prototype.listenerCount=function(v){if(v)return this.listeners(v).length;let m=0;for(let S of this._callbacks.values())m+=S.length;return m},f.prototype.hasListeners=function(v){return this.listenerCount(v)>0},f.prototype.addEventListener=f.prototype.on,f.prototype.removeListener=f.prototype.off,f.prototype.removeEventListener=f.prototype.off,f.prototype.removeAllListeners=f.prototype.off,u.exports=f})(A0);var $0,au=z(A0.exports);function Ti(){return Ti=Object.assign||function(u){for(var f=1;f-1}var R0=function(){function u(v,m){this.manager=v,this.set(m)}var f=u.prototype;return f.set=function(v){v===mS&&(v=this.compute()),vm&&this.manager.element.style&&gf[v]&&(this.manager.element.style[pm]=v),this.actions=v.toLowerCase().trim()},f.update=function(){this.set(this.manager.options.touchAction)},f.compute=function(){var v=[];return Ji(this.manager.recognizers,function(m){Sf(m.options.enable,[m])&&(v=v.concat(m.getTouchAction()))}),function(m){if(Ua(m,Ol))return Ol;var S=Ua(m,mf),E=Ua(m,fh);return S&&E?Ol:S||E?S?mf:fh:Ua(m,mm)?mm:gS}(v.join(" "))},f.preventDefaults=function(v){var m=v.srcEvent,S=v.offsetDirection;if(this.manager.session.prevented)m.preventDefault();else{var E=this.actions,P=Ua(E,Ol)&&!gf[Ol],A=Ua(E,fh)&&!gf[fh],N=Ua(E,mf)&&!gf[mf];if(P){var U=v.pointers.length===1,K=v.distance<2,Q=v.deltaTime<250;if(U&&K&&Q)return}if(!N||!A)return P||A&&S&ra||N&&S&Cl?this.preventSrc(m):void 0}},f.preventSrc=function(v){this.manager.session.prevented=!0,v.preventDefault()},u}();function j0(u,f){for(;u;){if(u===f)return!0;u=u.parentNode}return!1}function Zi(u){var f=u.length;if(f===1)return{x:uu(u[0].clientX),y:uu(u[0].clientY)};for(var v=0,m=0,S=0;S=xl(f)?u<0?wf:El:f<0?_f:Dl}function F0(u,f,v){return{x:f/u||0,y:v/u||0}}function qO(u,f){var v=u.session,m=f.pointers,S=m.length;v.firstInput||(v.firstInput=ym(f)),S>1&&!v.firstMultiple?v.firstMultiple=ym(f):S===1&&(v.firstMultiple=!1);var E=v.firstInput,P=v.firstMultiple,A=P?P.center:E.center,N=f.center=Zi(m);f.timeStamp=fm(),f.deltaTime=f.timeStamp-E.timeStamp,f.angle=kf(A,N),f.distance=Oo(A,N),function(Tt,Pt){var Vt=Pt.center,jt=Tt.offsetDelta||{},Me=Tt.prevDelta||{},Ne=Tt.prevInput||{};Pt.eventType!==tn&&Ne.eventType!==Ar||(Me=Tt.prevDelta={x:Ne.deltaX||0,y:Ne.deltaY||0},jt=Tt.offsetDelta={x:Vt.x,y:Vt.y}),Pt.deltaX=Me.x+(Vt.x-jt.x),Pt.deltaY=Me.y+(Vt.y-jt.y)}(v,f),f.offsetDirection=L0(f.deltaX,f.deltaY);var U,K,Q=F0(f.deltaTime,f.deltaX,f.deltaY);f.overallVelocityX=Q.x,f.overallVelocityY=Q.y,f.overallVelocity=xl(Q.x)>xl(Q.y)?Q.x:Q.y,f.scale=P?(U=P.pointers,Oo((K=m)[0],K[1],ph)/Oo(U[0],U[1],ph)):1,f.rotation=P?function(Tt,Pt){return kf(Pt[1],Pt[0],ph)+kf(Tt[1],Tt[0],ph)}(P.pointers,m):0,f.maxPointers=v.prevInput?f.pointers.length>v.prevInput.maxPointers?f.pointers.length:v.prevInput.maxPointers:f.pointers.length,function(Tt,Pt){var Vt,jt,Me,Ne,Je=Tt.lastInterval||Pt,Hr=Pt.timeStamp-Je.timeStamp;if(Pt.eventType!==Wn&&(Hr>wS||Je.velocity===void 0)){var fa=Pt.deltaX-Je.deltaX,pn=Pt.deltaY-Je.deltaY,ze=F0(Hr,fa,pn);jt=ze.x,Me=ze.y,Vt=xl(ze.x)>xl(ze.y)?ze.x:ze.y,Ne=L0(fa,pn),Tt.lastInterval=Pt}else Vt=Je.velocity,jt=Je.velocityX,Me=Je.velocityY,Ne=Je.direction;Pt.velocity=Vt,Pt.velocityX=jt,Pt.velocityY=Me,Pt.direction=Ne}(v,f);var st,ht=u.element,kt=f.srcEvent;j0(st=kt.composedPath?kt.composedPath()[0]:kt.path?kt.path[0]:kt.target,ht)&&(ht=st),f.target=ht}function bm(u,f,v){var m=v.pointers.length,S=v.changedPointers.length,E=f&tn&&m-S==0,P=f&(Ar|Wn)&&m-S==0;v.isFirst=!!E,v.isFinal=!!P,E&&(u.session={}),v.eventType=f,qO(u,v),u.emit("hammer.input",v),u.recognize(v),u.session.prevInput=v}function Il(u){return u.trim().split(/\s+/g)}function Tf(u,f,v){Ji(Il(f),function(m){u.addEventListener(m,v,!1)})}function xf(u,f,v){Ji(Il(f),function(m){u.removeEventListener(m,v,!1)})}function Ke(u){var f=u.ownerDocument||u;return f.defaultView||f.parentWindow||window}var lu=function(){function u(v,m){var S=this;this.manager=v,this.callback=m,this.element=v.element,this.target=v.options.inputTarget,this.domHandler=function(E){Sf(v.options.enable,[v])&&S.handler(E)},this.init()}var f=u.prototype;return f.handler=function(){},f.init=function(){this.evEl&&Tf(this.element,this.evEl,this.domHandler),this.evTarget&&Tf(this.target,this.evTarget,this.domHandler),this.evWin&&Tf(Ke(this.element),this.evWin,this.domHandler)},f.destroy=function(){this.evEl&&xf(this.element,this.evEl,this.domHandler),this.evTarget&&xf(this.target,this.evTarget,this.domHandler),this.evWin&&xf(Ke(this.element),this.evWin,this.domHandler)},u}();function vr(u,f,v){if(u.indexOf&&!v)return u.indexOf(f);for(var m=0;mN[f]}):m.sort()),m}var kS={touchstart:tn,touchmove:2,touchend:Ar,touchcancel:Wn},H0=function(u){function f(){var v;return f.prototype.evTarget="touchstart touchmove touchend touchcancel",(v=u.apply(this,arguments)||this).targetIds={},v}return Ki(f,u),f.prototype.handler=function(v){var m=kS[v.type],S=JO.call(this,v,m);S&&this.callback(this.manager,m,{pointers:S[0],changedPointers:S[1],pointerType:yf,srcEvent:v})},f}(lu);function JO(u,f){var v,m,S=vh(u.touches),E=this.targetIds;if(f&(2|tn)&&S.length===1)return E[S[0].identifier]=!0,[S,S];var P=vh(u.changedTouches),A=[],N=this.target;if(m=S.filter(function(U){return j0(U.target,N)}),f===tn)for(v=0;v-1&&m.splice(S,1)},TS)}}function ZO(u,f){u&tn?(this.primaryTouch=f.changedPointers[0].identifier,xS.call(this,f)):u&(Ar|Wn)&&xS.call(this,f)}function QO(u){for(var f=u.srcEvent.clientX,v=u.srcEvent.clientY,m=0;m-1&&this.requireFail.splice(m,1),this},f.hasRequireFailures=function(){return this.requireFail.length>0},f.canRecognizeWith=function(v){return!!this.simultaneous[v.id]},f.emit=function(v){var m=this,S=this.state;function E(P){m.manager.emit(P,v)}S<8&&E(m.options.event+OS(S)),E(m.options.event),v.additionalEvent&&E(v.additionalEvent),S>=8&&E(m.options.event+OS(S))},f.tryEmit=function(v){if(this.canEmit())return this.emit(v);this.state=cu},f.canEmit=function(){for(var v=0;vS.threshold&&A&S.direction},v.attrTest=function(m){return hu.prototype.attrTest.call(this,m)&&(2&this.state||!(2&this.state)&&this.directionTest(m))},v.emit=function(m){this.pX=m.deltaX,this.pY=m.deltaY;var S=ES(m.direction);S&&(m.additionalEvent=this.options.event+S),u.prototype.emit.call(this,m)},f}(hu),DS=function(u){function f(m){return m===void 0&&(m={}),u.call(this,Ti({event:"swipe",threshold:10,velocity:.3,direction:ra|Cl,pointers:1},m))||this}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return Df.prototype.getTouchAction.call(this)},v.attrTest=function(m){var S,E=this.options.direction;return E&(ra|Cl)?S=m.overallVelocity:E&ra?S=m.overallVelocityX:E&Cl&&(S=m.overallVelocityY),u.prototype.attrTest.call(this,m)&&E&m.offsetDirection&&m.distance>this.options.threshold&&m.maxPointers===this.options.pointers&&xl(S)>this.options.velocity&&m.eventType&Ar},v.emit=function(m){var S=ES(m.offsetDirection);S&&this.manager.emit(this.options.event+S,m),this.manager.emit(this.options.event,m)},f}(hu),CS=function(u){function f(m){return m===void 0&&(m={}),u.call(this,Ti({event:"pinch",threshold:0,pointers:2},m))||this}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return[Ol]},v.attrTest=function(m){return u.prototype.attrTest.call(this,m)&&(Math.abs(m.scale-1)>this.options.threshold||2&this.state)},v.emit=function(m){if(m.scale!==1){var S=m.scale<1?"in":"out";m.additionalEvent=this.options.event+S}u.prototype.emit.call(this,m)},f}(hu),IS=function(u){function f(m){return m===void 0&&(m={}),u.call(this,Ti({event:"rotate",threshold:0,pointers:2},m))||this}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return[Ol]},v.attrTest=function(m){return u.prototype.attrTest.call(this,m)&&(Math.abs(m.rotation)>this.options.threshold||2&this.state)},f}(hu),PS=function(u){function f(m){var S;return m===void 0&&(m={}),(S=u.call(this,Ti({event:"press",pointers:1,time:251,threshold:9},m))||this)._timer=null,S._input=null,S}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return[gS]},v.process=function(m){var S=this,E=this.options,P=m.pointers.length===E.pointers,A=m.distanceE.time;if(this._input=m,!A||!P||m.eventType&(Ar|Wn)&&!N)this.reset();else if(m.eventType&tn)this.reset(),this._timer=setTimeout(function(){S.state=8,S.tryEmit()},E.time);else if(m.eventType&Ar)return 8;return cu},v.reset=function(){clearTimeout(this._timer)},v.emit=function(m){this.state===8&&(m&&m.eventType&Ar?this.manager.emit(this.options.event+"up",m):(this._input.timeStamp=fm(),this.manager.emit(this.options.event,this._input)))},f}(Ef),z0={domEvents:!1,touchAction:mS,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},AS=[[IS,{enable:!1}],[CS,{enable:!1},["rotate"]],[DS,{direction:ra}],[Df,{direction:ra},["swipe"]],[W0],[W0,{event:"doubletap",taps:2},["tap"]],[PS]];function U0(u,f){var v,m=u.element;m.style&&(Ji(u.options.cssProps,function(S,E){v=dh(m.style,E),f?(u.oldCssProps[v]=m.style[v],m.style[v]=S):m.style[v]=u.oldCssProps[v]||""}),f||(u.oldCssProps={}))}var V0=function(){function u(v,m){var S,E=this;this.options=Qr({},z0,m||{}),this.options.inputTarget=this.options.inputTarget||v,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=v,this.input=new((S=this).options.inputClass||(XO?wm:bS?H0:yS?G0:Of))(S,bm),this.touchAction=new R0(this,this.options.touchAction),U0(this,!0),Ji(this.options.recognizers,function(P){var A=E.add(new P[0](P[1]));P[2]&&A.recognizeWith(P[2]),P[3]&&A.requireFailure(P[3])},this)}var f=u.prototype;return f.set=function(v){return Qr(this.options,v),v.touchAction&&this.touchAction.update(),v.inputTarget&&(this.input.destroy(),this.input.target=v.inputTarget,this.input.init()),this},f.stop=function(v){this.session.stopped=v?2:1},f.recognize=function(v){var m=this.session;if(!m.stopped){var S;this.touchAction.preventDefaults(v);var E=this.recognizers,P=m.curRecognizer;(!P||P&&8&P.state)&&(m.curRecognizer=null,P=null);for(var A=0;A\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",P=window.console&&(window.console.warn||window.console.log);return P&&P.call(window.console,m,E),u.apply(this,arguments)}}var $S=X0(function(u,f,v){for(var m=Object.keys(f),S=0;S=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}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 E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function jS(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v2)return _m.apply(void 0,um(m=[LS(f[0],f[1])]).call(m,dn(df(f).call(f,2))));var S=f[0],E=f[1];if(S instanceof Date&&E instanceof Date)return S.setTime(E.getTime()),S;var P,A=RS(Q1(E));try{for(A.s();!(P=A.n()).done;){var N=P.value;Object.prototype.propertyIsEnumerable.call(E,N)&&(E[N]===K0?delete S[N]:S[N]===null||E[N]===null||typeof S[N]!="object"||typeof E[N]!="object"||Gn(S[N])||Gn(E[N])?S[N]=FS(E[N]):S[N]=_m(S[N],E[N]))}}catch(U){A.e(U)}finally{A.f()}return S}function FS(u){return Gn(u)?ai(u).call(u,function(f){return FS(f)}):typeof u=="object"&&u!==null?u instanceof Date?new Date(u.getTime()):_m({},u):u}function yh(u){for(var f=0,v=pf(u);f({set:u})}}()};function Va(u){var f,v=this;this._cleanupQueue=[],this.active=!1,this._dom={container:u,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){v._dom.overlay.parentNode.removeChild(v._dom.overlay)});var m=oE(this._dom.overlay);m.on("tap",Sl(f=this._onTapOverlay).call(f,this)),this._cleanupQueue.push(function(){m.destroy()});var S=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];ea(S).call(S,function(E){m.on(E,function(P){P.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(E){(function(P,A){for(;P;){if(P===A)return!0;P=P.parentNode}return!1})(E.target,u)||v.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",v._onClick)})),this._escListener=function(E){("key"in E?E.key==="Escape":E.keyCode===27)&&v.deactivate()}}au(Va.prototype),Va.current=null,Va.prototype.destroy=function(){var u,f;this.deactivate();var v,m=RS(Br(u=aS(f=this._cleanupQueue).call(f,0)).call(u));try{for(m.s();!(v=m.n()).done;)(0,v.value)()}catch(S){m.e(S)}finally{m.f()}},Va.prototype.activate=function(){Va.current&&Va.current.deactivate(),Va.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)},Va.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")},Va.prototype._onTapOverlay=function(u){this.activate(),u.srcEvent.stopPropagation()};var li=Hi,J0=nr,aE=TypeError,Cf=function(u){if(li(u))return u;throw new aE(J0(u)+" is not a constructor")},sE=Rt,Z0=Mi,YS=Uv,Sm=Cf,uE=wn,BS=_e,lE=Wo,Q0=dt,du=wr("Reflect","construct"),HS=Object.prototype,cE=[].push,GS=Q0(function(){function u(){}return!(du(function(){},[],u)instanceof u)}),tw=!Q0(function(){du(function(){})}),WS=GS||tw;sE({target:"Reflect",stat:!0,forced:WS,sham:WS},{construct:function(u,f){Sm(u),uE(f);var v=arguments.length<3?u:Sm(arguments[2]);if(tw&&!GS)return du(u,f,v);if(u===v){switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3])}var m=[null];return Z0(cE,m,f),new(Z0(YS,u,m))}var S=v.prototype,E=lE(BS(S)?S:HS),P=Z0(u,E,f);return BS(P)?P:E}});var zn=z(Ge.Reflect.construct),bh=z(Ge.Object.getOwnPropertySymbols),ew={exports:{}},hE=Rt,ci=dt,dE=ri,zS=Ni.f,US=ie;hE({target:"Object",stat:!0,forced:!US||ci(function(){zS(1)}),sham:!US},{getOwnPropertyDescriptor:function(u,f){return zS(dE(u),f)}});var xn=Ge.Object,fE=ew.exports=function(u,f){return xn.getOwnPropertyDescriptor(u,f)};xn.getOwnPropertyDescriptor.sham&&(fE.sham=!0);var wh=z(ew.exports),pE=za,vE=ri,mE=Ni,VS=yi;Rt({target:"Object",stat:!0,sham:!ie},{getOwnPropertyDescriptors:function(u){for(var f,v,m=vE(u),S=mE.f,E=pE(m),P={},A=0;E.length>A;)(v=S(m,f=E[A++]))!==void 0&&VS(P,f,v);return P}});var km=z(Ge.Object.getOwnPropertyDescriptors),XS={exports:{}},gE=Rt,qS=ie,KS=$a.f;gE({target:"Object",stat:!0,forced:Object.defineProperties!==KS,sham:!qS},{defineProperties:KS});var If=Ge.Object,rw=XS.exports=function(u,f){return If.defineProperties(u,f)};If.defineProperties.sham&&(rw.sham=!0);var Pl=z(XS.exports),JS=z(bc);function Pf(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}var Xa=cS,nw=z(Xa);Rt({target:"Object",stat:!0},{setPrototypeOf:Kc});var iw=Ge.Object.setPrototypeOf,Af=z(iw),Tm=z(qv);function ow(u,f){var v;return ow=Af?Tm(v=Af).call(v):function(m,S){return m.__proto__=S,m},ow(u,f)}function aw(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=nw(f&&f.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Cs(u,"prototype",{writable:!1}),f&&ow(u,f)}function ZS(u,f){if(f&&(eh(f)==="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pf(u)}var QS=lS,tk=z(QS);function _h(u){var f;return _h=Af?Tm(f=tk).call(f):function(v){return v.__proto__||tk(v)},_h(u)}var sw={exports:{}},uw={exports:{}};(function(u){var f=Bv,v=u1;function m(S){return u.exports=m=typeof f=="function"&&typeof v=="symbol"?function(E){return typeof E}:function(E){return E&&typeof f=="function"&&E.constructor===f&&E!==f.prototype?"symbol":typeof E},u.exports.__esModule=!0,u.exports.default=u.exports,m(S)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports})(uw);var yE=uw.exports,fn=h0,xm=Kt,bE=za,$f=Ni,wE=_r,_E=_e,lw=mi,cw=Error,SE=le("".replace),kE=String(new cw("zxcasd").stack),Om=/\n\s*at [^:]*:[^\n]*/,Mf=Om.test(kE),ek=un,TE=!dt(function(){var u=new Error("a");return!("stack"in u)||(Object.defineProperty(u,"stack",ek(1,7)),u.stack!==7)}),xE=mi,OE=function(u,f){if(Mf&&typeof u=="string"&&!cw.prepareStackTrace)for(;f--;)u=SE(u,Om,"");return u},EE=TE,Em=Error.captureStackTrace,Nf=Li,rk=Ae,nk=wn,ik=nr,DE=tm,ok=Rn,ak=$e,Oi=em,Rf=sf,sk=Vb,uk=TypeError,Dm=function(u,f){this.stopped=u,this.result=f},qa=Dm.prototype,Ka=function(u,f,v){var m,S,E,P,A,N,U,K=v&&v.that,Q=!(!v||!v.AS_ENTRIES),st=!(!v||!v.IS_RECORD),ht=!(!v||!v.IS_ITERATOR),kt=!(!v||!v.INTERRUPTED),Tt=Nf(f,K),Pt=function(jt){return m&&sk(m,"normal",jt),new Dm(!0,jt)},Vt=function(jt){return Q?(nk(jt),kt?Tt(jt[0],jt[1],Pt):Tt(jt[0],jt[1])):kt?Tt(jt,Pt):Tt(jt)};if(st)m=u.iterator;else if(ht)m=u;else{if(!(S=Rf(u)))throw new uk(ik(u)+" is not iterable");if(DE(S)){for(E=0,P=ok(u);P>E;E++)if((A=Vt(u[E]))&&ak(qa,A))return A;return new Dm(!1)}m=Oi(u,S)}for(N=st?u.next:m.next;!(U=rk(N,m)).done;){try{A=Vt(U.value)}catch(jt){sk(m,"throw",jt)}if(typeof A=="object"&&A&&ak(qa,A))return A}return new Dm(!1)},lk=Aa,CE=Rt,IE=$e,ck=Xd,Sh=Kc,PE=function(u,f,v){for(var m=bE(f),S=wE.f,E=$f.f,P=0;P2&&AE(v,arguments[2]);var S=[];return dk(u,NE,{that:S}),Ie(v,"errors",S),v};Sh?Sh($l,jf):PE($l,jf,{name:!0});var Lf=$l.prototype=hk(jf.prototype,{constructor:Al(1,$l),message:Al(1,""),name:Al(1,"AggregateError")});CE({global:!0,constructor:!0,arity:2},{AggregateError:$l});var Ff,kh,Cm,Yf,Im=wr,hw=Ra,RE=ie,Pm=qe("species"),Am=function(u){var f=Im(u);RE&&f&&!f[Pm]&&hw(f,Pm,{configurable:!0,get:function(){return this}})},jE=$e,LE=TypeError,Un=function(u,f){if(jE(f,u))return u;throw new LE("Incorrect invocation")},$m=wn,FE=Cf,YE=No,pk=qe("species"),vk=function(u,f){var v,m=$m(u).constructor;return m===void 0||YE(v=$m(m)[pk])?f:FE(v)},Mm=/(?:ipad|iphone|ipod).*applewebkit/i.test(Xt),Ei=St,BE=Mi,HE=Li,Nm=Te,mk=Kt,dw=dt,fw=sv,pw=Xr,vw=Fo,Bf=hS,Eo=Mm,Qi=rh,Th=Ei.setImmediate,na=Ei.clearImmediate,to=Ei.process,Hf=Ei.Dispatch,GE=Ei.Function,gk=Ei.MessageChannel,xh=Ei.String,ia=0,Ml={},Gf="onreadystatechange";dw(function(){Ff=Ei.location});var Rm=function(u){if(mk(Ml,u)){var f=Ml[u];delete Ml[u],f()}},jm=function(u){return function(){Rm(u)}},mw=function(u){Rm(u.data)},Lm=function(u){Ei.postMessage(xh(u),Ff.protocol+"//"+Ff.host)};Th&&na||(Th=function(u){Bf(arguments.length,1);var f=Nm(u)?u:GE(u),v=pw(arguments,1);return Ml[++ia]=function(){BE(f,void 0,v)},kh(ia),ia},na=function(u){delete Ml[u]},Qi?kh=function(u){to.nextTick(jm(u))}:Hf&&Hf.now?kh=function(u){Hf.now(jm(u))}:gk&&!Eo?(Yf=(Cm=new gk).port2,Cm.port1.onmessage=mw,kh=HE(Yf.postMessage,Yf)):Ei.addEventListener&&Nm(Ei.postMessage)&&!Ei.importScripts&&Ff&&Ff.protocol!=="file:"&&!dw(Lm)?(kh=Lm,Ei.addEventListener("message",mw,!1)):kh=Gf in vw("script")?function(u){fw.appendChild(vw("script"))[Gf]=function(){fw.removeChild(this),Rm(u)}}:function(u){setTimeout(jm(u),0)});var Fm={set:Th,clear:na},fu=function(){this.head=null,this.tail=null};fu.prototype={add:function(u){var f={item:u,next:null},v=this.tail;v?v.next=f:this.head=f,this.tail=f},get:function(){var u=this.head;if(u)return(this.head=u.next)===null&&(this.tail=null),u.item}};var oa,pu,Oh,Ym,yk,bk=fu,Wf=/ipad|iphone|ipod/i.test(Xt)&&typeof Pebble!="undefined",gw=/web0s(?!.*chrome)/i.test(Xt),Nl=St,On=Li,Rl=Ni.f,mr=Fm.set,hi=bk,Bm=Mm,zf=Wf,Eh=gw,jl=rh,Ll=Nl.MutationObserver||Nl.WebKitMutationObserver,Di=Nl.document,vu=Nl.process,Uf=Nl.Promise,yw=Rl(Nl,"queueMicrotask"),Dh=yw&&yw.value;if(!Dh){var eo=new hi,Fl=function(){var u,f;for(jl&&(u=vu.domain)&&u.exit();f=eo.get();)try{f()}catch(v){throw eo.head&&oa(),v}u&&u.enter()};Bm||jl||Eh||!Ll||!Di?!zf&&Uf&&Uf.resolve?((Ym=Uf.resolve(void 0)).constructor=Uf,yk=On(Ym.then,Ym),oa=function(){yk(Fl)}):jl?oa=function(){vu.nextTick(Fl)}:(mr=On(mr,Nl),oa=function(){mr(Fl)}):(pu=!0,Oh=Di.createTextNode(""),new Ll(Fl).observe(Oh,{characterData:!0}),oa=function(){Oh.data=pu=!pu}),Dh=function(u){eo.head||oa(),eo.add(u)}}var Yl=Dh,Bl=function(u){try{return{error:!1,value:u()}}catch(f){return{error:!0,value:f}}},aa=St.Promise,Hm=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",wk=!Hm&&!rh&&typeof window=="object"&&typeof document=="object",Gm=St,Hl=aa,_k=Te,Sk=vc,WE=Xp,zE=qe,Vf=wk,Ch=Hm,Gl=An,Wm=Hl&&Hl.prototype,Ih=zE("species"),Ja=!1,kk=_k(Gm.PromiseRejectionEvent),Tk=Sk("Promise",function(){var u=WE(Hl),f=u!==String(Hl);if(!f&&Gl===66||!Wm.catch||!Wm.finally)return!0;if(!Gl||Gl<51||!/native code/.test(u)){var v=new Hl(function(S){S(1)}),m=function(S){S(function(){},function(){})};if((v.constructor={})[Ih]=m,!(Ja=v.then(function(){})instanceof m))return!0}return!f&&(Vf||Ch)&&!kk}),Ph={CONSTRUCTOR:Tk,REJECTION_EVENT:kk,SUBCLASSING:Ja},ro={},bw=Or,Xf=TypeError,ww=function(u){var f,v;this.promise=new u(function(m,S){if(f!==void 0||v!==void 0)throw new Xf("Bad Promise constructor");f=m,v=S}),this.resolve=bw(f),this.reject=bw(v)};ro.f=function(u){return new ww(u)};var _w,Sw,kw=Rt,zm=rh,en=St,En=Ae,Um=zi,qf=Dr,Wl=Am,Tw=Or,Vm=Te,UE=_e,Ah=Un,mu=vk,Za=Fm.set,Qa=Yl,$r=function(u,f){try{arguments.length===1?console.error(u):console.error(u,f)}catch(v){}},zl=Bl,ts=bk,sa=jn,gu=aa,no=Ph,Xm=ro,Ci="Promise",Ul=no.CONSTRUCTOR,es=no.REJECTION_EVENT,yu=sa.getterFor(Ci),$h=sa.set,xw=gu&&gu.prototype,Vl=gu,qm=xw,Xl=en.TypeError,Km=en.document,Mh=en.process,Jm=Xm.f,xk=Jm,Dn=!!(Km&&Km.createEvent&&en.dispatchEvent),rs="unhandledrejection",Sr=function(u){var f;return!(!UE(u)||!Vm(f=u.then))&&f},Vn=function(u,f){var v,m,S,E=f.value,P=f.state===1,A=P?u.ok:u.fail,N=u.resolve,U=u.reject,K=u.domain;try{A?(P||(f.rejection===2&&Kl(f),f.rejection=1),A===!0?v=E:(K&&K.enter(),v=A(E),K&&(K.exit(),S=!0)),v===u.promise?U(new Xl("Promise-chain cycle")):(m=Sr(v))?En(m,v,N,U):N(v)):U(E)}catch(Q){K&&!S&&K.exit(),U(Q)}},Kf=function(u,f){u.notified||(u.notified=!0,Qa(function(){for(var v,m=u.reactions;v=m.get();)Vn(v,u);u.notified=!1,f&&!u.rejection&&Jf(u)}))},Nh=function(u,f,v){var m,S;Dn?((m=Km.createEvent("Event")).promise=f,m.reason=v,m.initEvent(u,!1,!0),en.dispatchEvent(m)):m={promise:f,reason:v},!es&&(S=en["on"+u])?S(m):u===rs&&$r("Unhandled promise rejection",v)},Jf=function(u){En(Za,en,function(){var f,v=u.facade,m=u.value;if(ql(u)&&(f=zl(function(){zm?Mh.emit("unhandledRejection",m,v):Nh(rs,v,m)}),u.rejection=zm||ql(u)?2:1,f.error))throw f.value})},ql=function(u){return u.rejection!==1&&!u.parent},Kl=function(u){En(Za,en,function(){var f=u.facade;zm?Mh.emit("rejectionHandled",f):Nh("rejectionhandled",f,u.value)})},Xn=function(u,f,v){return function(m){u(f,m,v)}},io=function(u,f,v){u.done||(u.done=!0,v&&(u=v),u.value=f,u.state=2,Kf(u,!0))},Zf=function(u,f,v){if(!u.done){u.done=!0,v&&(u=v);try{if(u.facade===f)throw new Xl("Promise can't be resolved itself");var m=Sr(f);m?Qa(function(){var S={done:!1};try{En(m,f,Xn(Zf,S,u),Xn(io,S,u))}catch(E){io(S,E,u)}}):(u.value=f,u.state=1,Kf(u,!1))}catch(S){io({done:!1},S,u)}}};Ul&&(qm=(Vl=function(u){Ah(this,qm),Tw(u),En(_w,this);var f=yu(this);try{u(Xn(Zf,f),Xn(io,f))}catch(v){io(f,v)}}).prototype,(_w=function(u){$h(this,{type:Ci,done:!1,notified:!1,parent:!1,reactions:new ts,rejection:!1,state:0,value:void 0})}).prototype=Um(qm,"then",function(u,f){var v=yu(this),m=Jm(mu(this,Vl));return v.parent=!0,m.ok=!Vm(u)||u,m.fail=Vm(f)&&f,m.domain=zm?Mh.domain:void 0,v.state===0?v.reactions.add(m):Qa(function(){Vn(m,v)}),m.promise}),Sw=function(){var u=new _w,f=yu(u);this.promise=u,this.resolve=Xn(Zf,f),this.reject=Xn(io,f)},Xm.f=Jm=function(u){return u===Vl||u===void 0?new Sw(u):xk(u)}),kw({global:!0,constructor:!0,wrap:!0,forced:Ul},{Promise:Vl}),qf(Vl,Ci,!1,!0),Wl(Ci);var Ow=aa,bu=Ph.CONSTRUCTOR||!t0(function(u){Ow.all(u).then(void 0,function(){})}),ua=Ae,Qf=Or,ns=ro,Ok=Bl,Zm=Ka;Rt({target:"Promise",stat:!0,forced:bu},{all:function(u){var f=this,v=ns.f(f),m=v.resolve,S=v.reject,E=Ok(function(){var P=Qf(f.resolve),A=[],N=0,U=1;Zm(u,function(K){var Q=N++,st=!1;U++,ua(P,f,K).then(function(ht){st||(st=!0,A[Q]=ht,--U||m(A))},S)}),--U||m(A)});return E.error&&S(E.value),v.promise}});var tp=Rt,ep=Ph.CONSTRUCTOR;aa&&aa.prototype,tp({target:"Promise",proto:!0,forced:ep,real:!0},{catch:function(u){return this.then(void 0,u)}});var Ew=Ae,rp=Or,np=ro,Do=Bl,VE=Ka;Rt({target:"Promise",stat:!0,forced:bu},{race:function(u){var f=this,v=np.f(f),m=v.reject,S=Do(function(){var E=rp(f.resolve);VE(u,function(P){Ew(E,f,P).then(v.resolve,m)})});return S.error&&m(S.value),v.promise}});var Ek=Ae,XE=ro;Rt({target:"Promise",stat:!0,forced:Ph.CONSTRUCTOR},{reject:function(u){var f=XE.f(this);return Ek(f.reject,void 0,u),f.promise}});var qE=wn,KE=_e,ip=ro,di=function(u,f){if(qE(u),KE(f)&&f.constructor===u)return f;var v=ip.f(u);return(0,v.resolve)(f),v.promise},Jl=Rt,Co=aa,op=Ph.CONSTRUCTOR,Rh=di,la=wr("Promise"),Io=!op;Jl({target:"Promise",stat:!0,forced:!0},{resolve:function(u){return Rh(Io&&this===la?Co:this,u)}});var Dk=Ae,JE=Or,Ck=ro,ap=Bl,Qm=Ka;Rt({target:"Promise",stat:!0,forced:bu},{allSettled:function(u){var f=this,v=Ck.f(f),m=v.resolve,S=v.reject,E=ap(function(){var P=JE(f.resolve),A=[],N=0,U=1;Qm(u,function(K){var Q=N++,st=!1;U++,Dk(P,f,K).then(function(ht){st||(st=!0,A[Q]={status:"fulfilled",value:ht},--U||m(A))},function(ht){st||(st=!0,A[Q]={status:"rejected",reason:ht},--U||m(A))})}),--U||m(A)});return E.error&&S(E.value),v.promise}});var ca=Ae,wu=Or,sp=wr,Dw=ro,tg=Bl,Cw=Ka,eg="No one promise resolved";Rt({target:"Promise",stat:!0,forced:bu},{any:function(u){var f=this,v=sp("AggregateError"),m=Dw.f(f),S=m.resolve,E=m.reject,P=tg(function(){var A=wu(f.resolve),N=[],U=0,K=1,Q=!1;Cw(u,function(st){var ht=U++,kt=!1;K++,ca(A,f,st).then(function(Tt){kt||Q||(Q=!0,S(Tt))},function(Tt){kt||Q||(kt=!0,N[ht]=Tt,--K||E(new v(N,eg)))})}),--K||E(new v(N,eg))});return P.error&&E(P.value),m.promise}});var Ik=Rt,up=aa,Iw=dt,Pk=wr,rg=Te,Pw=vk,Ak=di,ZE=up&&up.prototype;Ik({target:"Promise",proto:!0,real:!0,forced:!!up&&Iw(function(){ZE.finally.call({then:function(){}},function(){})})},{finally:function(u){var f=Pw(this,Pk("Promise")),v=rg(u);return this.then(v?function(m){return Ak(f,u()).then(function(){return m})}:u,v?function(m){return Ak(f,u()).then(function(){throw m})}:u)}});var jh=Ge.Promise,Aw=ro;Rt({target:"Promise",stat:!0},{withResolvers:function(){var u=Aw.f(this);return{promise:u.promise,resolve:u.resolve,reject:u.reject}}});var Lh=jh,ng=ro,oo=Bl;Rt({target:"Promise",stat:!0,forced:!0},{try:function(u){var f=ng.f(this),v=oo(u);return(v.error?f.reject:f.resolve)(v.value),f.promise}});var Fh=Lh,_u=nS;(function(u){var f=yE.default,v=Gu,m=Bv,S=Xa,E=QS,P=fn,A=X1,N=iw,U=Fh,K=_u,Q=Z1;function st(){u.exports=st=function(){return kt},u.exports.__esModule=!0,u.exports.default=u.exports;var ht,kt={},Tt=Object.prototype,Pt=Tt.hasOwnProperty,Vt=v||function(lt,mt,ft){lt[mt]=ft.value},jt=typeof m=="function"?m:{},Me=jt.iterator||"@@iterator",Ne=jt.asyncIterator||"@@asyncIterator",Je=jt.toStringTag||"@@toStringTag";function Hr(lt,mt,ft){return v(lt,mt,{value:ft,enumerable:!0,configurable:!0,writable:!0}),lt[mt]}try{Hr({},"")}catch(lt){Hr=function(mt,ft,Qt){return mt[ft]=Qt}}function fa(lt,mt,ft,Qt){var $t=mt&&mt.prototype instanceof Eg?mt:Eg,ge=S($t.prototype),gr=new tc(Qt||[]);return Vt(ge,"_invoke",{value:yT(lt,ft,gr)}),ge}function pn(lt,mt,ft){try{return{type:"normal",arg:lt.call(mt,ft)}}catch(Qt){return{type:"throw",arg:Qt}}}kt.wrap=fa;var ze="suspendedStart",ls="suspendedYield",Ou="executing",qh="completed",on={};function Eg(){}function Kn(){}function cs(){}var kp={};Hr(kp,Me,function(){return this});var Kh=E&&E(E(Op([])));Kh&&Kh!==Tt&&Pt.call(Kh,Me)&&(kp=Kh);var Ql=cs.prototype=Eg.prototype=S(kp);function Tp(lt){var mt;P(mt=["next","throw","return"]).call(mt,function(ft){Hr(lt,ft,function(Qt){return this._invoke(ft,Qt)})})}function Jh(lt,mt){function ft($t,ge,gr,Jn){var Cn=pn(lt[$t],lt,ge);if(Cn.type!=="throw"){var Eu=Cn.arg,ec=Eu.value;return ec&&f(ec)=="object"&&Pt.call(ec,"__await")?mt.resolve(ec.__await).then(function(rc){ft("next",rc,gr,Jn)},function(rc){ft("throw",rc,gr,Jn)}):mt.resolve(ec).then(function(rc){Eu.value=rc,gr(Eu)},function(rc){return ft("throw",rc,gr,Jn)})}Jn(Cn.arg)}var Qt;Vt(this,"_invoke",{value:function($t,ge){function gr(){return new mt(function(Jn,Cn){ft($t,ge,Jn,Cn)})}return Qt=Qt?Qt.then(gr,gr):gr()}})}function yT(lt,mt,ft){var Qt=ze;return function($t,ge){if(Qt===Ou)throw new Error("Generator is already running");if(Qt===qh){if($t==="throw")throw ge;return{value:ht,done:!0}}for(ft.method=$t,ft.arg=ge;;){var gr=ft.delegate;if(gr){var Jn=Zw(gr,ft);if(Jn){if(Jn===on)continue;return Jn}}if(ft.method==="next")ft.sent=ft._sent=ft.arg;else if(ft.method==="throw"){if(Qt===ze)throw Qt=qh,ft.arg;ft.dispatchException(ft.arg)}else ft.method==="return"&&ft.abrupt("return",ft.arg);Qt=Ou;var Cn=pn(lt,mt,ft);if(Cn.type==="normal"){if(Qt=ft.done?qh:ls,Cn.arg===on)continue;return{value:Cn.arg,done:ft.done}}Cn.type==="throw"&&(Qt=qh,ft.method="throw",ft.arg=Cn.arg)}}}function Zw(lt,mt){var ft=mt.method,Qt=lt.iterator[ft];if(Qt===ht)return mt.delegate=null,ft==="throw"&<.iterator.return&&(mt.method="return",mt.arg=ht,Zw(lt,mt),mt.method==="throw")||ft!=="return"&&(mt.method="throw",mt.arg=new TypeError("The iterator does not provide a '"+ft+"' method")),on;var $t=pn(Qt,lt.iterator,mt.arg);if($t.type==="throw")return mt.method="throw",mt.arg=$t.arg,mt.delegate=null,on;var ge=$t.arg;return ge?ge.done?(mt[lt.resultName]=ge.value,mt.next=lt.nextLoc,mt.method!=="return"&&(mt.method="next",mt.arg=ht),mt.delegate=null,on):ge:(mt.method="throw",mt.arg=new TypeError("iterator result is not an object"),mt.delegate=null,on)}function Qw(lt){var mt,ft={tryLoc:lt[0]};1 in lt&&(ft.catchLoc=lt[1]),2 in lt&&(ft.finallyLoc=lt[2],ft.afterLoc=lt[3]),A(mt=this.tryEntries).call(mt,ft)}function xp(lt){var mt=lt.completion||{};mt.type="normal",delete mt.arg,lt.completion=mt}function tc(lt){this.tryEntries=[{tryLoc:"root"}],P(lt).call(lt,Qw,this),this.reset(!0)}function Op(lt){if(lt||lt===""){var mt=lt[Me];if(mt)return mt.call(lt);if(typeof lt.next=="function")return lt;if(!isNaN(lt.length)){var ft=-1,Qt=function $t(){for(;++ft=0;--Qt){var $t=this.tryEntries[Qt],ge=$t.completion;if($t.tryLoc==="root")return ft("end");if($t.tryLoc<=this.prev){var gr=Pt.call($t,"catchLoc"),Jn=Pt.call($t,"finallyLoc");if(gr&&Jn){if(this.prev<$t.catchLoc)return ft($t.catchLoc,!0);if(this.prev<$t.finallyLoc)return ft($t.finallyLoc)}else if(gr){if(this.prev<$t.catchLoc)return ft($t.catchLoc,!0)}else{if(!Jn)throw new Error("try statement without catch or finally");if(this.prev<$t.finallyLoc)return ft($t.finallyLoc)}}}},abrupt:function(lt,mt){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var Qt=this.tryEntries[ft];if(Qt.tryLoc<=this.prev&&Pt.call(Qt,"finallyLoc")&&this.prev=0;--mt){var ft=this.tryEntries[mt];if(ft.finallyLoc===lt)return this.complete(ft.completion,ft.afterLoc),xp(ft),on}},catch:function(lt){for(var mt=this.tryEntries.length-1;mt>=0;--mt){var ft=this.tryEntries[mt];if(ft.tryLoc===lt){var Qt=ft.completion;if(Qt.type==="throw"){var $t=Qt.arg;xp(ft)}return $t}}throw new Error("illegal catch attempt")},delegateYield:function(lt,mt,ft){return this.delegate={iterator:Op(lt),resultName:mt,nextLoc:ft},this.method==="next"&&(this.arg=ht),on}},kt}u.exports=st,u.exports.__esModule=!0,u.exports.default=u.exports})(sw);var ao=(0,sw.exports)(),lp=ao;try{regeneratorRuntime=ao}catch(u){typeof globalThis=="object"?globalThis.regeneratorRuntime=ao:Function("r","regeneratorRuntime = r")(ao)}var hr=z(lp),$k={exports:{}},ig=dt(function(){if(typeof ArrayBuffer=="function"){var u=new ArrayBuffer(8);Object.isExtensible(u)&&Object.defineProperty(u,"a",{value:8})}}),og=dt,sr=_e,ha=kr,ag=ig,qn=Object.isExtensible,$w=og(function(){qn(1)})||ag?function(u){return!!sr(u)&&(!ag||ha(u)!=="ArrayBuffer")&&(!qn||qn(u))}:qn,Mw=!dt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Yh=Rt,Mk=le,cp=js,Nk=_e,hp=Kt,Nw=_r.f,Rk=oi,sg=Na,ug=$w,QE=Mw,Bh=!1,is=ju("meta"),jk=0,lg=function(u){Nw(u,is,{value:{objectID:"O"+jk++,weakData:{}}})},tD=$k.exports={enable:function(){tD.enable=function(){},Bh=!0;var u=Rk.f,f=Mk([].splice),v={};v[is]=1,u(v).length&&(Rk.f=function(m){for(var S=u(m),E=0,P=S.length;E1?arguments[1]:void 0);K=K?K.next:Q.first;)for(st(K.value,K.key,this);K&&K.removed;)K=K.previous},has:function(U){return!!N(this,U)}}),zk(E,v?{get:function(U){var K=N(this,U);return K&&K.value},set:function(U,K){return A(this,U===0?0:U,K)}}:{add:function(U){return A(this,U=U===0?0:U,U)}}),Hh&&iD(E,"size",{configurable:!0,get:function(){return P(this).size}}),S},setStrong:function(u,f,v){var m=f+" Iterator",S=dg(f),E=dg(m);Po(u,f,function(P,A){Gh(this,{type:m,target:P,state:S(P),kind:A,last:void 0})},function(){for(var P=E(this),A=P.kind,N=P.last;N&&N.removed;)N=N.previous;return P.target&&(P.last=N=N?N.next:P.state.first)?pp(A==="keys"?N.key:A==="values"?N.value:[N.key,N.value],!1):(P.target=void 0,pp(void 0,!0))},v?"entries":"values",!v,!0),uD(f)}};os("Map",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},Bw);var fg=z(Ge.Map),pg=Ut.some;Rt({target:"Array",proto:!0,forced:!Jv("some")},{some:function(u){return pg(this,u,arguments.length>1?arguments[1]:void 0)}});var lD=qr("Array","some"),Uk=$e,rn=lD,mp=Array.prototype,Wh=z(function(u){var f=u.some;return u===mp||Uk(mp,u)&&f===mp.some?rn:f}),Vk=qr("Array","keys"),Xk=Bi,ss=Kt,Hw=$e,Su=Vk,gp=Array.prototype,zh={DOMTokenList:!0,NodeList:!0},ku=z(function(u){var f=u.keys;return u===gp||Hw(gp,u)&&f===gp.keys||ss(zh,Xk(u))?Su:f}),qk=bo,Gw=Math.floor,H=function(u,f){var v=u.length,m=Gw(v/2);return v<8?vg(u,f):cD(u,H(qk(u,0,m),f),H(qk(u,m),f),f)},vg=function(u,f){for(var v,m,S=u.length,E=1;E0;)u[m]=u[--m];m!==E++&&(u[m]=v)}return u},cD=function(u,f,v,m){for(var S=f.length,E=v.length,P=0,A=0;P3)){if(pD)return!0;if(aT)return aT<603;var u,f,v,m,S="";for(u=65;u<76;u++){switch(f=String.fromCharCode(u),u){case 66:case 69:case 70:case 72:v=3;break;case 68:case 71:v=4;break;default:v=2}for(m=0;m<47;m++)Tu.push({k:f+m,v})}for(Tu.sort(function(E,P){return P.v-E.v}),m=0;mAo(N)?1:-1}}(u)),v=nT(S),m=0;mthis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=UO(function(){f.flush()},this.delay))}},{key:"flush",value:function(){var f,v;ea(f=aS(v=this._queue).call(v,0)).call(f,function(m){m.fn.apply(m.context||m.fn,m.args||[])})}}],[{key:"extend",value:function(f,v){var m=new u(v);if(f.flush!==void 0)throw new Error("Target object already has a property flush");f.flush=function(){m.flush()};var S=[{name:"flush",original:void 0}];if(v&&v.replace)for(var E=0;E=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}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 E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function mT(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);vhr.mark(function S(){var E,P,A,N,U;return hr.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:E=da(m),K.prev=1,E.s();case 3:if((P=E.n()).done){K.next=10;break}if(A=Hn(P.value,2),N=A[0],U=A[1],!v(U,N)){K.next=8;break}return K.next=8,[N,U];case 8:K.next=3;break;case 10:K.next=15;break;case 12:K.prev=12,K.t0=K.catch(1),E.e(K.t0);case 15:return K.prev=15,E.f(),K.finish(15);case 18:case"end":return K.stop()}},S,null,[[1,12,15,18]])})()})}},{key:"forEach",value:function(v){var m,S=da(this._pairs);try{for(S.s();!(m=S.n()).done;){var E=Hn(m.value,2),P=E[0];v(E[1],P)}}catch(A){S.e(A)}finally{S.f()}}},{key:"map",value:function(v){var m=this._pairs;return new f({[xu]:()=>hr.mark(function S(){var E,P,A,N,U;return hr.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:E=da(m),K.prev=1,E.s();case 3:if((P=E.n()).done){K.next=9;break}return A=Hn(P.value,2),N=A[0],U=A[1],K.next=7,[N,v(U,N)];case 7:K.next=3;break;case 9:K.next=14;break;case 11:K.prev=11,K.t0=K.catch(1),E.e(K.t0);case 14:return K.prev=14,E.f(),K.finish(14);case 17:case"end":return K.stop()}},S,null,[[1,11,14,17]])})()})}},{key:"max",value:function(v){var m=_g(this._pairs),S=m.next();if(S.done)return null;for(var E=S.value[1],P=v(S.value[1],S.value[0]);!(S=m.next()).done;){var A=Hn(S.value,2),N=A[0],U=A[1],K=v(U,N);K>P&&(P=K,E=U)}return E}},{key:"min",value:function(v){var m=_g(this._pairs),S=m.next();if(S.done)return null;for(var E=S.value[1],P=v(S.value[1],S.value[0]);!(S=m.next()).done;){var A=Hn(S.value,2),N=A[0],U=A[1],K=v(U,N);K=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}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 E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function Mr(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v1?Pt-1:0),jt=1;jtU?1:NA)&&(P=U,A=K)}}catch(Q){N.e(Q)}finally{N.f()}return P||null}},{key:"min",value:function(m){var S,E,P=null,A=null,N=kg(Vh(S=this._data).call(S));try{for(N.s();!(E=N.n()).done;){var U=E.value,K=U[m];typeof K=="number"&&(A==null||Khr.mark(function P(){var A,N,U,K;return hr.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:A=kg(m),Q.prev=1,A.s();case 3:if((N=A.n()).done){Q.next=11;break}if(U=N.value,(K=S.get(U))==null){Q.next=9;break}return Q.next=9,[U,K];case 9:Q.next=3;break;case 11:Q.next=16;break;case 13:Q.prev=13,Q.t0=Q.catch(1),A.e(Q.t0);case 16:return Q.prev=16,A.f(),Q.finish(16);case 19:case"end":return Q.stop()}},P,null,[[1,13,16,19]])})()})}var E;return new Kw({[xu]:Sl(E=xD(this._data)).call(E,this._data)})}}]),v}(bg);function gT(u,f){var v=hf!==void 0&&ah(u)||u["@@iterator"];if(!v){if(Gn(u)||(v=function(N,U){var K;if(N){if(typeof N=="string")return Jw(N,U);var Q=df(K=Object.prototype.toString.call(N)).call(K,8,-1);if(Q==="Object"&&N.constructor&&(Q=N.constructor.name),Q==="Map"||Q==="Set")return uf(N);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Jw(N,U)}}(u))||f&&u&&typeof u.length=="number"){v&&(u=v);var m=0,S=function(){};return{s:S,n:function(){return m>=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}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 E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function Jw(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v{m$(F,!0)}),new MutationObserver(oj).observe(document,{attributeFilter:["data-tr"],childList:!0,subtree:!0})}function sj(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||"en-US"}function y$(F){gC=F,document.documentElement.lang=F,document.querySelectorAll("[data-tr-org]").forEach(L=>{let J=L.getAttribute("data-tr-org");if(!J){L.textContent="";return}let z;v$===gC?z=J:z=ti(J),L.textContent=z})}function uj(F){var J;return v$===gC?F:((J=f$[F])==null?void 0:J[gC])||F}function ti(F,...L){let J=uj(F),z={};L.forEach((nt,yt)=>{if(typeof nt=="object"){for(let St in nt)z[St]=nt[St];return}z[""+yt.toString()]=nt});try{return new Function(...Object.keys(z),`return \`${J}\`;`)(...Object.values(z))}catch(nt){return console.error("webtr: tr error: ",nt),J}}function sA(F,L,J){console.error(J,F,L),alert(J||F)}function SI(F,L,J,z,nt){let yt=`${nt?"":"lib/"}screen.html?screen=${L}&lang=${J}&theme=${z}`;br(F).src=yt}function yC(F){return document.getElementById(F)}function w$(F){return br("topic_"+F)}function br(F){let L=document.getElementById(F);if(!L)throw new Error(`Cannot find element '${F}'`);return L}var wI=null;function bC(F){wI&&clearTimeout(wI),wI=setTimeout(()=>{wI=null,F()},100)}function kI(F){var L;(L=yC(F))==null||L.style.setProperty("display","none")}function uA(F,L){var J;(J=yC(F))==null||J.style.setProperty("display",L||"block")}function _$(F,L){let J=br("screens"),z=F===0?J.offsetWidth:J.offsetWidth/F,nt=J.offsetHeight,yt=br(L),St=nt*b$;if(z>St){let dt=Math.min(z,(z-St)/2);yt.style.paddingTop="0",yt.style.paddingBottom="0",yt.style.paddingLeft=dt+"px",yt.style.paddingRight=dt+"px"}else{let dt=z/b$;if(nt>dt){let Gt=Math.min(nt,(nt-dt)/2);yt.style.paddingTop=Gt+"px",yt.style.paddingBottom=Gt+"px",yt.style.paddingLeft="0",yt.style.paddingRight="0"}}}var b$=16/9;function _I(F){return F*100+"%"}function lj(F,L,J,z,nt){let yt=F.style,St=z<2e-4||nt<2e-4;yt.left=_I(L),yt.top=_I(J),yt.width=_I(St?1:z),yt.height=_I(St?1:nt)}function S$(F){var z,nt,yt;let L="topic_"+F.id;if(yC(L)!==null){console.error("!!! element for topic already exists: "+F.id);return}let J=document.createElement(F.element);if(J.setAttribute("data-topic-type",F.type.toString()),J.setAttribute("data-topic-start",F.start.toString()),J.setAttribute("data-topic-duration",F.duration.toString()),J.setAttribute("data-topic-x",F.x.toString()),J.setAttribute("data-topic-y",F.y.toString()),J.setAttribute("data-topic-w",F.w.toString()),J.setAttribute("data-topic-h",F.h.toString()),J.setAttribute("data-topic-channel",F.channel.toString()),J.setAttribute("data-topic-filter",(nt=(z=F.filter)==null?void 0:z.toString())!=null?nt:"(null)"),J.setAttribute("data-topic-description",(yt=F.description)!=null?yt:""),J.addEventListener("error",St=>{console.error(`Topic ${F.id}# (${F.description||" - "}) error:`,St)}),["audio"].includes(F.element))J.setAttribute("hidden","");else{J.style.setProperty("z-index",""+(F.id+(F.filter?F.filter*1e4:0))),J.style.setProperty("position","fixed");let{x:St,y:dt,w:Gt,h:Wt}=F;lj(J,St,dt,Gt,Wt)}return J.classList.add("topic"),J.id=L,br("screen").appendChild(J),J}var DI=null;globalThis.addEventListener("error",F=>{DI||(DI="error"),console.error("DOM error: ",F),alert(ti('Failed to load THP: \n"${e.message}"\nat ${e.filename}:${e.lineno}:${e.colno}',{e:F})),uA("error","flex"),kI("loading")});var CI=[];function TI(F,L){let J=[];for(let z in F){let nt=F[z];L&&nt===null||nt!==void 0&&typeof nt=="number"||J.push(z)}if(J.length>0){let z=J.join(", ");throw L?new Error(ti("Value for keys '${keys}' is not of type number or null",{keys:z})):new Error(ti("Value for keys '${keys}' is not of type number",{keys:z}))}}function YT(F,L){let J=[];for(let z in F){let nt=F[z];(L||nt.length>0)&&nt!=null&&typeof nt=="string"||J.push(z)}if(J.length>0){let z=J.join(", ");throw L?new Error(ti("Value for keys '${keys}' is not of type string or empty string",{keys:z})):new Error(ti("Value for keys '${keys}' is not of type string or is an empty string",{keys:z}))}}function cj(F){let{id:L,type:J,description:z,channel:nt,filter:yt,start:St,duration:dt,element:Gt,x:Wt,y:In,w:Qe,h:zr}=F;if(TI({id:L,type:J,channel:nt,start:St,duration:dt,x:Wt,y:In,w:Qe,h:zr}),TI({filter:yt},!0),YT({element:Gt}),YT({description:z},!0),yt&&yt<1)throw new Error(ti("If 'filter' is not null, it must be greater than 0, but was '${filter}'",{filter:yt}));let Mi=(Pe=>{if(Pe===1)return 1;if(Pe===2)return 2;if(Pe===3)return 3;if(Pe===4)return 4;throw new Error(ti("'channel' must be either 1 .. 4, but was '${channel}'",{channel:nt}))})(nt);function Nt(Pe,...sn){let le=[],ye=Pe,se={};if(sn.forEach(fi=>{if(!(fi in Pe)){le.push(fi.toString());return}se[fi]=ye[fi]}),le.length>0)throw new Error(`Missing key(s) in topic: ${le.join(", ")}`);return se}let an={id:L,type:J,description:z,channel:Mi,filter:yt,start:St,duration:dt,element:Gt,x:Wt,y:In,w:Qe,h:zr};switch(Gt){case"video":{let{src:Pe}=Nt(F,"src");return YT({src:Pe}),mC(m_({},an),{element:"video",src:Pe})}case"object":{let{filename:Pe,page:sn,zoom:le}=Nt(F,"filename","page","zoom");return YT({filename:Pe}),TI({page:sn}),TI({zoom:le},!0),mC(m_({},an),{element:"object",filename:Pe,page:sn,zoom:le})}case"img":{let{src:Pe}=Nt(F,"src");return YT({src:Pe}),mC(m_({},an),{element:"img",src:Pe})}case"audio":{let{src:Pe}=Nt(F,"src");return YT({src:Pe}),mC(m_({},an),{element:"audio",src:Pe})}case"marker":return m_({},an);default:throw new Error(ti("Unknown element: '${element}'",{element:F.element}))}}function hj(){let F=[],L=0;if(!("topicsJs"in globalThis))throw new Error("File 'topic.js' is missing!");let J=globalThis.topicsJs;console.debug("topicsJs",J);for(let z of J)try{F.push(cj(z))}catch(nt){console.error("Could not add topic:",nt),L++}return L>0&&alert(ti("${num} topic(s) could not be loaded.",{num:L})),F}function D$(F){let L=ic-F.start;Pj(F.id,L),qg&&vA(F.id,L)}function dj(F){if(!MI)for(let L of Au){let J=GT(L);if(J.channel===F+2)try{D$(J)}catch(z){console.error("initAndPlayTopic failed",z)}}}function k$(F){kI("screen"+F),br("frame-screen"+F).src="about:blank",AI[F-1]=window.open("lib/popout.html?screen="+F,"screen"+F,"location=no,toolbar=no,height=480,width=600"),bC(wC)}var AI=[null,null];function T$(F){let L=AI.filter(J=>!J).length;_$(L,F)}function wC(){T$("screen1"),T$("screen2")}var lA=["light","dark"];function cA(F){return F&&lA.includes(F.toLowerCase())?F:null}function fj(){let F=br("theme-switch"),L=cA(localStorage.getItem("theme"))||cA(document.documentElement.getAttribute("data-theme"))||lA[0];document.documentElement.setAttribute("data-theme",L),F.checked=L==="dark";function J(z){document.documentElement.classList.add("transitions"),setTimeout(()=>document.documentElement.classList.remove("transitions"),2e3);let nt=lA[z.target&&"checked"in z.target&&!z.target.checked?0:1];document.documentElement.setAttribute("data-theme",nt),localStorage.setItem("theme",nt);let yt={changeTheme:nt};HT(1).postMessage(yt,"*"),HT(2).postMessage(yt,"*")}return F.addEventListener("change",J,!1),L}function pj(){let F=cA(document.documentElement.getAttribute("data-theme"));if(!F)throw new Error("No theme active!");return F}globalThis.addEventListener("load",()=>{let F=fj();SI("frame-screen1",1,document.documentElement.lang,F),SI("frame-screen2",2,document.documentElement.lang,F)});globalThis.addEventListener("DOMContentLoaded",()=>{var L;if(DI)return;DI="load",p$(d$),br("popout1").addEventListener("click",()=>BT(k$,1)),br("popout2").addEventListener("click",()=>BT(k$,2)),br("pp").addEventListener("click",()=>BT(Mj)),br("stop").addEventListener("click",()=>BT(M$)),br("changeLang_DE").addEventListener("click",()=>BT(O$,"de-DE")),br("changeLang_EN").addEventListener("click",()=>BT(O$,"en-US"));try{for(let J of hj())CI.push(J)}catch(J){sA(ti("Error while loading topics."),J)}if(xj(),CI.length==0){alert(ti("This take home package cannot be used as it doesn't contain any topics."));return}globalThis.addEventListener("resize",()=>bC(wC));let F=new ResizeObserver(()=>bC(wC));F.observe(br("main")),F.observe(br("timeline")),(L=yC("pp"))==null||L.removeAttribute("disabled"),wC(),setTimeout(()=>kI("loading"),1e3)});function C$(F){for(let L of Au){let J=GT(L);(F===void 0||R$(J.channel)===F)&&$j(L,ic-J.start)}}function xI(F,L){if(!(L in F))throw new Error(`Key '${L}' not found in object`);let J=F[L];if(typeof J!="number")throw new Error(`Value for key '${L}' is not of type number`);if(isNaN(J))throw new Error(`Value for key '${L}' is not a number`);return J}globalThis.addEventListener("message",function(F){let L=F.data;if("activated"in L){let J=xI(L,"activated");if(C$(J),!qg)return;for(let z of Au){let nt=GT(z);R$(nt.channel)===J&&vA(z,ic-nt.start)}}else if("popoutLoaded"in L){let J=xI(L,"popoutLoaded"),z={init:{lang:document.documentElement.lang,theme:document.documentElement.getAttribute("data-theme")}};HT(J).postMessage(z,"*")}else if("screenLoaded"in L){let J=xI(L,"screenLoaded");dj(J)}else if("closed"in L){let J=xI(L,"closed");SI("frame-screen"+J,J,document.documentElement.lang,pj()),uA("screen"+J),AI[J-1]=null,bC(wC)}else console.debug("script.ts: unknown msg type")});function Xg(F){return new Date(F*1e3)}var vj=[{typeId:1,name:"SituationMap",color:"#B1CBBB"},{typeId:2,name:"SituationReplay",color:"#C94C4C"},{typeId:3,name:"Image",color:"#FEFBD8"},{typeId:4,name:"Text",color:"#91A8D1"},{typeId:5,name:"Pdf",color:"#80CED6"},{typeId:6,name:"Xml",color:"#EEA29A"},{typeId:7,name:"TacticalPlan",color:"#DAC292"},{typeId:8,name:"MSOffice",color:"#F7CAC9"},{typeId:9,name:"OpenOffice",color:"#B2B2B2"},{typeId:10,name:"Audio",color:"#034F84"},{typeId:11,name:"Video",color:"#618685"},{typeId:12,name:"Building",color:"#C6BCB6"},{typeId:13,name:"SituationMapFilter",color:"#36486B"},{typeId:14,name:"Snapshot",color:"#F18973"},{typeId:15,name:"Evaluation",color:"#D6CBD3"},{typeId:16,name:"Report",color:"#FEB236"},{typeId:17,name:"Situation",color:"#B1C1CB"},{typeId:999,name:"Marker",color:"#80CED6"}];function I$(F){let L=vj.find(J=>J.typeId===F);if(!L)throw new Error(ti("No topic type found for topic type id ${typeId}",{typeId:F}));return L}function mj(F){let L=yt=>(yt=yt/255,yt<=.03928?yt/12.92:Math.pow((yt+.055)/1.055,2.4)),J=L(F.r),z=L(F.g),nt=L(F.b);return .2126*J+.7152*z+.0722*nt}function gj(F,L){let J=yj(F),z=P$(J),nt={r:Math.round(z.r*(1-L/100)),g:Math.round(z.g*(1-L/100)),b:Math.round(z.b*(1-L/100))};return`rgb(${nt.r}, ${nt.g}, ${nt.b})`}function yj(F){let L=F.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return L?`#${(1<<24|Number(L[1])<<16|Number(L[2])<<8|Number(L[3])).toString(16).slice(1)}`:F}function P$(F){let L=parseInt(F.slice(1),16);return{r:L>>16&255,g:L>>8&255,b:L&255}}function bj(F){let L=P$(F);return mj(L)>.5}function wj(F){let J=I$(F).color,z=gj(J,20);return`background-color: ${J}; border-color: ${z};`}var $I=new pA.DataSet,EI=0,ms;function _j(F,L){if(!L)return F;if(F<3)throw new Error("Filters are only allowed for channel 3 or 4 (screen 1 or screen 2)");let J=_C.get(F);if(!J)throw new Error("Group for channel doesn't exist! Channel was: "+F);let z=J.nestedGroups||[],nt=z.length;if(nt>=L){let Qe=z[L-1];if(!Qe)throw new Error("No filterGroupId for filter at: "+(L-1));return Qe}let yt=300,St=[],dt=L-nt;for(;dt>0&&yt-- >0;){let Qe=Tj++;St.push(Qe),dt--}let Gt=J.id,Wt=[...z,...St];try{_C.update({id:Gt,showNested:!0,nestedGroups:Wt})}catch(Qe){console.error("groupsDataSet update failed:",Qe)}St.forEach(Qe=>{_C.add({id:Qe,content:"Filter",showNested:!1,treeLevel:1})});let In=St[St.length-1];if(!In)throw new Error(`No new filter at 'newIds[${St.length-1}]`);return In}function Sj(F){let J=I$(F).color;return bj(J)?"text-dark":"text-light"}function kj(F){let{id:L,type:J,description:z,channel:nt,filter:yt,start:St,duration:dt}=F,Gt=St+dt;$I.add({id:L,content:z+"
",start:Xg(St),end:Xg(Gt),group:_j(nt,yt||void 0),type:"range",style:wj(J),className:Sj(J),typeId:J,topicInfo:F}),Gt>EI&&(EI=Gt,ms.setOptions({max:Xg(EI+1)}))}var _C=new pA.DataSet,Tj=5,II=1;function xj(){let F=br("timeline"),L={min:Xg(0),max:Xg(3600),autoResize:!0,horizontalScroll:!0,zoomKey:"shiftKey",moveable:!0,showCurrentTime:!0,showMajorLabels:!1,stack:!1,stackSubgroups:!1,snap:function(z,nt,yt){let St=z.getMilliseconds();return z.setSeconds(z.getSeconds()+(St>=500?1:0)),z.setMilliseconds(0),z},tooltip:{followMouse:!0},format:{minorLabels:{millisecond:"mm:ss",second:"mm:ss",minute:"mm:ss",hour:"mm:ss",weekday:"mm:ss",day:"mm:ss",week:"mm:ss",month:"mm:ss",year:"mm:ss"},majorLabels:{millisecond:"mm:ss",second:"mm:ss",minute:"mm:ss",hour:"mm:ss",weekday:"mm:ss",day:"mm:ss",week:"mm:ss",month:"mm:ss",year:"mm:ss"}}};function J(z){let nt=document.createElement("span");return nt.setAttribute("data-tr",""),nt.classList.add("transitions"),nt.textContent=z,nt}_C.add([{id:1,content:J("Audio"),showNested:!1},{id:2,content:J("Playback"),showNested:!1},{id:3,content:J("Screen 1"),showNested:!1},{id:4,content:J("Screen 2"),showNested:!1}]),ms=new E$.Timeline(F,$I,_C,L);for(let z of CI)kj(z);ms.addCustomTime(Xg(0),1),ms.setCustomTimeMarker("Position",II,!1),ms.setCustomTimeTitle(()=>ti("Current position of playback in seconds"),II),ms.on("select",z=>{if(!("items"in z)){console.error("Selected data has no 'items' array in properties!",z);return}let nt=z.items;for(let yt of nt){Ej(yt);break}setTimeout(()=>{ms.setSelection([])},100)}),ms.on("timechanged",z=>{if(!(!("id"in z)||z.id!==1)){if(!("time"in z)||!(z.time instanceof Date)){console.error("'props.time' not an instace of Date!",z,z.time);return}hA(PI(z.time)),OI&&(L$(),OI=!1)}}),ms.on("timechange",z=>{if(!(!("id"in z)||z.id!==1)){if(!("time"in z)||!(z.time instanceof Date)){console.error("'props.time' not an instace of Date!",z,z.time);return}qg&&!OI&&(OI=!0),mA(),hA(PI(z.time))}})}function Oj(F){if(!(F instanceof Date)||typeof F.getMonth!="function")throw new Error("'date' is not of type Date or is invalid: "+typeof F+", "+JSON.stringify(F));return F}function PI(F){return Oj(F).getTime()/1e3}var OI=!1;function hA(F){MI=!1,br("stop").removeAttribute("disabled"),A$(F)}function A$(F){if(ic!==F)try{ic=F,$$()&&C$()}catch(L){console.error(L)}}function Ej(F){let L=$I.get(F);if(!L){console.error("Item with id "+F+" not found!");return}let J=L.start.getTime()/1e3;hA(J)}var Au=[];function $$(){if(ic>EI+1)return M$(),!1;let F=Xg(ic);ms.setCustomTime(F,II),ms.moveTo(F);let L=$I.get({filter:J=>ic>=PI(J.start)&&ic<=PI(J.end)});for(let J of L)if(!Au.includes(J.id))try{D$(GT(J.id)),Au.push(J.id)}catch(z){console.error("initAndPlayTopic failed",z)}for(let J of Au)L.find(z=>z.id===J)||(Au=Au.filter(z=>z!=J),j$(J));return!0}var dA=null,ic=0,qg=!1,MI=!0;function M$(){MI=!0,mA(),br("stop").setAttribute("disabled",""),ms.setCustomTime(Xg(0),II),A$(0);for(let F of Au)j$(F);Au=[]}function GT(F){let L=CI.find(J=>J.id===F);if(!L)throw new Error(ti("Cannot find topic info for id ${id}",{id:F}));return L}function HT(F){let L=AI[F-1];if(L!==null)return L;let z=br("frame-screen"+F).contentWindow;if(!z)throw new Error(`Frame '${"frame-screen"+F}' not ready yet!`);return z}function x$(F){fA(1,F),fA(2,F)}function fA(F,L){HT(F).postMessage({commandMessage:m_({},L)},"*")}function Dj(F,L,J,z){fA(N$(F),{controlType:L,topic:J,pos:z})}function N$(F){if(F<3||F>4)throw new Error("channel not on a screen: "+F+" - must be channel 3 or 4!");return F-2}function R$(F){try{return N$(F)}catch(L){return null}}function Cj(F){let L=S$(F);return L.src=`topics/${F.src}`,L.controls=!1,L.muted=!1,L}var g_=0;function Ij(){return{init:function(F,L){let J=Cj(F);J.currentTime=L,g_===0&&x$({controlType:5}),g_++},playbackPlay:function(F,L){let J=w$(F.id);J.currentTime=L,setTimeout(()=>J.play(),1)},playbackPause:function(F){br("topic_"+F.id).pause()},playbackStop:function(F){br("topic_"+F.id).remove(),g_--,g_<0&&(console.error("AUDIO TOPIC COUNT UNDERFLOW! "+g_+" < 0 !"),g_=0),g_===0&&x$({controlType:6})},setPlaybackPosition:function(F,L){let J=br("topic_"+F.id);J.currentTime=L}}}function SC(F,L,J){let z=GT(L);if(z.element!=="marker"){if(z.type===10){let nt=Ij();switch(F){case 0:{if(J===void 0)throw new Error("pos === undefined");nt.init(z,J);break}case 1:{nt.playbackPause(z);break}case 2:{if(J===void 0)throw new Error("pos === undefined");nt.playbackPlay(z,J);break}case 3:{nt.playbackStop(z);break}case 4:{if(J===void 0)throw new Error("pos === undefined");nt.setPlaybackPosition(z,J);break}default:throw new Error("Unknown control type "+F)}return}Dj(z.channel,F,z,J)}}function Pj(F,L){SC(0,F,L)}function Aj(F){SC(1,F)}function vA(F,L){SC(2,F,L)}function j$(F){SC(3,F)}function $j(F,L){SC(4,F,L)}function BT(F,...L){try{let J=F(...L);J&&console.debug("tryCall: function returned a value",J)}catch(J){sA("tryCall exception",J,ti("The selected operation has failed."))}}function O$(F){y$(F),ms.redraw();let L={changeLang:F};[HT(1),HT(2)].forEach(z=>z.postMessage(L,"*"))}function mA(){if(qg){dA&&clearInterval(dA),br("pp").setAttribute("data-tr","Play");for(let F of Au)Aj(F);qg=!1}}function L$(){if(MI=!1,!qg){dA=setInterval(()=>{ic++;try{$$()}catch(F){console.error("ERROR WHILE TICKING:",F)}},1e3),br("pp").setAttribute("data-tr","Pause"),br("stop").removeAttribute("disabled");for(let F of Au){let L=GT(F).start,J=ic-L;vA(F,J)}qg=!0}}function Mj(){qg?mA():L$()} /*! 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.9 * @date 2023-11-24T17:53:34.179Z * * @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.2 * @date 2023-03-22T11:14:31.874Z * * @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-data/peer/umd/vis-data.min.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.9 * @date 2023-11-24T17:53:34.179Z * * @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 *) webtr/dist/webtr.js: (** * @file webtr.ts * @copyright Mike Wille * @license MIT *) */