/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ "use strict";var Af=Object.create;var Nr=Object.defineProperty;var Wf=Object.getOwnPropertyDescriptor;var $f=Object.getOwnPropertyNames;var Vf=Object.getPrototypeOf,jf=Object.prototype.hasOwnProperty;var Hf=(n,e,r)=>e in n?Nr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var Gf=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),zf=(n,e)=>{for(var r in e)Nr(n,r,{get:e[r],enumerable:!0})},$o=(n,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $f(e))!jf.call(n,o)&&o!==r&&Nr(n,o,{get:()=>e[o],enumerable:!(i=Wf(e,o))||i.enumerable});return n};var Ot=(n,e,r)=>(r=n!=null?Af(Vf(n)):{},$o(e||!n||!n.__esModule?Nr(r,"default",{value:n,enumerable:!0}):r,n)),Zf=n=>$o(Nr({},"__esModule",{value:!0}),n);var g=(n,e,r)=>Hf(n,typeof e!="symbol"?e+"":e,r);var xt=Gf((Ki,ur)=>{(function(n,e){typeof Ki=="object"&&typeof ur!="undefined"?ur.exports=e():typeof define=="function"&&define.amd?define(e):n.moment=e()})(Ki,function(){"use strict";var n;function e(){return n.apply(null,arguments)}function r(t){n=t}function i(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function o(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function l(t,s){return Object.prototype.hasOwnProperty.call(t,s)}function c(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var s;for(s in t)if(l(t,s))return!1;return!0}function d(t){return t===void 0}function m(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function h(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function y(t,s){var a=[],u,f=t.length;for(u=0;u>>0,u;for(u=0;u0)for(a=0;a=0;return(p?a?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+u}var Ri=/(\[[^\[]*\])|(\\)?([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,un=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ei={},er={};function Q(t,s,a,u){var f=u;typeof u=="string"&&(f=function(){return this[u]()}),t&&(er[t]=f),s&&(er[s[0]]=function(){return Ee(f.apply(this,arguments),s[1],s[2])}),a&&(er[a]=function(){return this.localeData().ordinal(f.apply(this,arguments),t)})}function jl(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Hl(t){var s=t.match(Ri),a,u;for(a=0,u=s.length;a=0&&un.test(t);)t=t.replace(un,u),un.lastIndex=0,a-=1;return t}var Gl={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 zl(t){var s=this._longDateFormat[t],a=this._longDateFormat[t.toUpperCase()];return s||!a?s:(this._longDateFormat[t]=a.match(Ri).map(function(u){return u==="MMMM"||u==="MM"||u==="DD"||u==="dddd"?u.slice(1):u}).join(""),this._longDateFormat[t])}var Zl="Invalid date";function Jl(){return this._invalidDate}var ql="%d",Kl=/\d{1,2}/;function Xl(t){return this._ordinal.replace("%d",t)}var eu={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 tu(t,s,a,u){var f=this._relativeTime[a];return ie(f)?f(t,s,a,u):f.replace(/%d/i,t)}function ru(t,s){var a=this._relativeTime[t>0?"future":"past"];return ie(a)?a(s):a.replace(/%s/i,s)}var Fr={};function Ue(t,s){var a=t.toLowerCase();Fr[a]=Fr[a+"s"]=Fr[s]=t}function qe(t){return typeof t=="string"?Fr[t]||Fr[t.toLowerCase()]:void 0}function Ui(t){var s={},a,u;for(u in t)l(t,u)&&(a=qe(u),a&&(s[a]=t[u]));return s}var Xs={};function Ye(t,s){Xs[t]=s}function nu(t){var s=[],a;for(a in t)l(t,a)&&s.push({unit:a,priority:Xs[a]});return s.sort(function(u,f){return u.priority-f.priority}),s}function cn(t){return t%4===0&&t%100!==0||t%400===0}function Ke(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function W(t){var s=+t,a=0;return s!==0&&isFinite(s)&&(a=Ke(s)),a}function tr(t,s){return function(a){return a!=null?(eo(this,t,a),e.updateOffset(this,s),this):fn(this,t)}}function fn(t,s){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+s]():NaN}function eo(t,s,a){t.isValid()&&!isNaN(a)&&(s==="FullYear"&&cn(t.year())&&t.month()===1&&t.date()===29?(a=W(a),t._d["set"+(t._isUTC?"UTC":"")+s](a,t.month(),vn(a,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+s](a))}function iu(t){return t=qe(t),ie(this[t])?this[t]():this}function su(t,s){if(typeof t=="object"){t=Ui(t);var a=nu(t),u,f=a.length;for(u=0;u68?1900:2e3)};var co=tr("FullYear",!0);function Du(){return cn(this.year())}function Su(t,s,a,u,f,p,v){var L;return t<100&&t>=0?(L=new Date(t+400,s,a,u,f,p,v),isFinite(L.getFullYear())&&L.setFullYear(t)):L=new Date(t,s,a,u,f,p,v),L}function Ur(t){var s,a;return t<100&&t>=0?(a=Array.prototype.slice.call(arguments),a[0]=t+400,s=new Date(Date.UTC.apply(null,a)),isFinite(s.getUTCFullYear())&&s.setUTCFullYear(t)):s=new Date(Date.UTC.apply(null,arguments)),s}function _n(t,s,a){var u=7+s-a,f=(7+Ur(t,0,u).getUTCDay()-s)%7;return-f+u-1}function fo(t,s,a,u,f){var p=(7+a-u)%7,v=_n(t,u,f),L=1+7*(s-1)+p+v,A,oe;return L<=0?(A=t-1,oe=Er(A)+L):L>Er(t)?(A=t+1,oe=L-Er(t)):(A=t,oe=L),{year:A,dayOfYear:oe}}function Yr(t,s,a){var u=_n(t.year(),s,a),f=Math.floor((t.dayOfYear()-u-1)/7)+1,p,v;return f<1?(v=t.year()-1,p=f+yt(v,s,a)):f>yt(t.year(),s,a)?(p=f-yt(t.year(),s,a),v=t.year()+1):(v=t.year(),p=f),{week:p,year:v}}function yt(t,s,a){var u=_n(t,s,a),f=_n(t+1,s,a);return(Er(t)-u+f)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),Ue("week","w"),Ue("isoWeek","W"),Ye("week",5),Ye("isoWeek",5),R("w",fe),R("ww",fe,je),R("W",fe),R("WW",fe,je),Rr(["w","ww","W","WW"],function(t,s,a,u){s[u.substr(0,1)]=W(t)});function Tu(t){return Yr(t,this._week.dow,this._week.doy).week}var Fu={dow:0,doy:6};function Mu(){return this._week.dow}function Ru(){return this._week.doy}function Eu(t){var s=this.localeData().week(this);return t==null?s:this.add((t-s)*7,"d")}function Uu(t){var s=Yr(this,1,4).week;return t==null?s:this.add((t-s)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),Ue("day","d"),Ue("weekday","e"),Ue("isoWeekday","E"),Ye("day",11),Ye("weekday",11),Ye("isoWeekday",11),R("d",fe),R("e",fe),R("E",fe),R("dd",function(t,s){return s.weekdaysMinRegex(t)}),R("ddd",function(t,s){return s.weekdaysShortRegex(t)}),R("dddd",function(t,s){return s.weekdaysRegex(t)}),Rr(["dd","ddd","dddd"],function(t,s,a,u){var f=a._locale.weekdaysParse(t,u,a._strict);f!=null?s.d=f:b(a).invalidWeekday=t}),Rr(["d","e","E"],function(t,s,a,u){s[u]=W(t)});function Yu(t,s){return typeof t!="string"?t:isNaN(t)?(t=s.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Ou(t,s){return typeof t=="string"?s.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Li(t,s){return t.slice(s,7).concat(t.slice(0,s))}var Qu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nu=Mr,Cu=Mr,Bu=Mr;function Iu(t,s){var a=i(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(s)?"format":"standalone"];return t===!0?Li(a,this._week.dow):t?a[t.day()]:a}function Pu(t){return t===!0?Li(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Au(t){return t===!0?Li(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Wu(t,s,a){var u,f,p,v=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],u=0;u<7;++u)p=_([2e3,1]).day(u),this._minWeekdaysParse[u]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[u]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[u]=this.weekdays(p,"").toLocaleLowerCase();return a?s==="dddd"?(f=ve.call(this._weekdaysParse,v),f!==-1?f:null):s==="ddd"?(f=ve.call(this._shortWeekdaysParse,v),f!==-1?f:null):(f=ve.call(this._minWeekdaysParse,v),f!==-1?f:null):s==="dddd"?(f=ve.call(this._weekdaysParse,v),f!==-1||(f=ve.call(this._shortWeekdaysParse,v),f!==-1)?f:(f=ve.call(this._minWeekdaysParse,v),f!==-1?f:null)):s==="ddd"?(f=ve.call(this._shortWeekdaysParse,v),f!==-1||(f=ve.call(this._weekdaysParse,v),f!==-1)?f:(f=ve.call(this._minWeekdaysParse,v),f!==-1?f:null)):(f=ve.call(this._minWeekdaysParse,v),f!==-1||(f=ve.call(this._weekdaysParse,v),f!==-1)?f:(f=ve.call(this._shortWeekdaysParse,v),f!==-1?f:null))}function $u(t,s,a){var u,f,p;if(this._weekdaysParseExact)return Wu.call(this,t,s,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),u=0;u<7;u++){if(f=_([2e3,1]).day(u),a&&!this._fullWeekdaysParse[u]&&(this._fullWeekdaysParse[u]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[u]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[u]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[u]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[u]=new RegExp(p.replace(".",""),"i")),a&&s==="dddd"&&this._fullWeekdaysParse[u].test(t))return u;if(a&&s==="ddd"&&this._shortWeekdaysParse[u].test(t))return u;if(a&&s==="dd"&&this._minWeekdaysParse[u].test(t))return u;if(!a&&this._weekdaysParse[u].test(t))return u}}function Vu(t){if(!this.isValid())return t!=null?this:NaN;var s=this._isUTC?this._d.getUTCDay():this._d.getDay();return t!=null?(t=Yu(t,this.localeData()),this.add(t-s,"d")):s}function ju(t){if(!this.isValid())return t!=null?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return t==null?s:this.add(t-s,"d")}function Hu(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var s=Ou(t,this.localeData());return this.day(this.day()%7?s:s-7)}else return this.day()||7}function Gu(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ni.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Nu),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function zu(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ni.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cu),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zu(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ni.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bu),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ni(){function t(Ie,wt){return wt.length-Ie.length}var s=[],a=[],u=[],f=[],p,v,L,A,oe;for(p=0;p<7;p++)v=_([2e3,1]).day(p),L=He(this.weekdaysMin(v,"")),A=He(this.weekdaysShort(v,"")),oe=He(this.weekdays(v,"")),s.push(L),a.push(A),u.push(oe),f.push(L),f.push(A),f.push(oe);s.sort(t),a.sort(t),u.sort(t),f.sort(t),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ci(){return this.hours()%12||12}function Ju(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,Ci),Q("k",["kk",2],0,Ju),Q("hmm",0,0,function(){return""+Ci.apply(this)+Ee(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+Ci.apply(this)+Ee(this.minutes(),2)+Ee(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+Ee(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+Ee(this.minutes(),2)+Ee(this.seconds(),2)});function ho(t,s){Q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}ho("a",!0),ho("A",!1),Ue("hour","h"),Ye("hour",13);function po(t,s){return s._meridiemParse}R("a",po),R("A",po),R("H",fe),R("h",fe),R("k",fe),R("HH",fe,je),R("hh",fe,je),R("kk",fe,je),R("hmm",no),R("hmmss",io),R("Hmm",no),R("Hmmss",io),se(["H","HH"],De),se(["k","kk"],function(t,s,a){var u=W(t);s[De]=u===24?0:u}),se(["a","A"],function(t,s,a){a._isPm=a._locale.isPM(t),a._meridiem=t}),se(["h","hh"],function(t,s,a){s[De]=W(t),b(a).bigHour=!0}),se("hmm",function(t,s,a){var u=t.length-2;s[De]=W(t.substr(0,u)),s[st]=W(t.substr(u)),b(a).bigHour=!0}),se("hmmss",function(t,s,a){var u=t.length-4,f=t.length-2;s[De]=W(t.substr(0,u)),s[st]=W(t.substr(u,2)),s[pt]=W(t.substr(f)),b(a).bigHour=!0}),se("Hmm",function(t,s,a){var u=t.length-2;s[De]=W(t.substr(0,u)),s[st]=W(t.substr(u))}),se("Hmmss",function(t,s,a){var u=t.length-4,f=t.length-2;s[De]=W(t.substr(0,u)),s[st]=W(t.substr(u,2)),s[pt]=W(t.substr(f))});function qu(t){return(t+"").toLowerCase().charAt(0)==="p"}var Ku=/[ap]\.?m?\.?/i,Xu=tr("Hours",!0);function ed(t,s,a){return t>11?a?"pm":"PM":a?"am":"AM"}var yo={calendar:Je,longDateFormat:Gl,invalidDate:Zl,ordinal:ql,dayOfMonthOrdinalParse:Kl,relativeTime:eu,months:hu,monthsShort:so,week:Fu,weekdays:Qu,weekdaysMin:Lu,weekdaysShort:mo,meridiemParse:Ku},pe={},Or={},Qr;function td(t,s){var a,u=Math.min(t.length,s.length);for(a=0;a0;){if(f=wn(p.slice(0,a).join("-")),f)return f;if(u&&u.length>=a&&td(p,u)>=a-1)break;a--}s++}return Qr}function nd(t){return t.match("^[^/\\\\]*$")!=null}function wn(t){var s=null,a;if(pe[t]===void 0&&typeof ur!="undefined"&&ur&&ur.exports&&nd(t))try{s=Qr._abbr,a=require,a("./locale/"+t),Et(s)}catch(u){pe[t]=null}return pe[t]}function Et(t,s){var a;return t&&(d(s)?a=gt(t):a=Bi(t,s),a?Qr=a:typeof console!="undefined"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qr._abbr}function Bi(t,s){if(s!==null){var a,u=yo;if(s.abbr=t,pe[t]!=null)ee("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."),u=pe[t]._config;else if(s.parentLocale!=null)if(pe[s.parentLocale]!=null)u=pe[s.parentLocale]._config;else if(a=wn(s.parentLocale),a!=null)u=a._config;else return Or[s.parentLocale]||(Or[s.parentLocale]=[]),Or[s.parentLocale].push({name:t,config:s}),null;return pe[t]=new le(te(u,s)),Or[t]&&Or[t].forEach(function(f){Bi(f.name,f.config)}),Et(t),pe[t]}else return delete pe[t],null}function id(t,s){if(s!=null){var a,u,f=yo;pe[t]!=null&&pe[t].parentLocale!=null?pe[t].set(te(pe[t]._config,s)):(u=wn(t),u!=null&&(f=u._config),s=te(f,s),u==null&&(s.abbr=t),a=new le(s),a.parentLocale=pe[t],pe[t]=a),Et(t)}else pe[t]!=null&&(pe[t].parentLocale!=null?(pe[t]=pe[t].parentLocale,t===Et()&&Et(t)):pe[t]!=null&&delete pe[t]);return pe[t]}function gt(t){var s;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qr;if(!i(t)){if(s=wn(t),s)return s;t=[t]}return rd(t)}function sd(){return C(pe)}function Ii(t){var s,a=t._a;return a&&b(t).overflow===-2&&(s=a[ht]<0||a[ht]>11?ht:a[lt]<1||a[lt]>vn(a[Oe],a[ht])?lt:a[De]<0||a[De]>24||a[De]===24&&(a[st]!==0||a[pt]!==0||a[Wt]!==0)?De:a[st]<0||a[st]>59?st:a[pt]<0||a[pt]>59?pt:a[Wt]<0||a[Wt]>999?Wt:-1,b(t)._overflowDayOfYear&&(slt)&&(s=lt),b(t)._overflowWeeks&&s===-1&&(s=cu),b(t)._overflowWeekday&&s===-1&&(s=fu),b(t).overflow=s),t}var od=/^\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)?)?$/,ad=/^\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)?)?$/,ld=/Z|[+-]\d\d(?::?\d\d)?/,xn=[["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]],Pi=[["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/]],ud=/^\/?Date\((-?\d+)/i,dd=/^(?:(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}))$/,cd={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 bo(t){var s,a,u=t._i,f=od.exec(u)||ad.exec(u),p,v,L,A,oe=xn.length,Ie=Pi.length;if(f){for(b(t).iso=!0,s=0,a=oe;sEr(v)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),a=Ur(v,0,t._dayOfYear),t._a[ht]=a.getUTCMonth(),t._a[lt]=a.getUTCDate()),s=0;s<3&&t._a[s]==null;++s)t._a[s]=u[s]=f[s];for(;s<7;s++)t._a[s]=u[s]=t._a[s]==null?s===2?1:0:t._a[s];t._a[De]===24&&t._a[st]===0&&t._a[pt]===0&&t._a[Wt]===0&&(t._nextDay=!0,t._a[De]=0),t._d=(t._useUTC?Ur:Su).apply(null,u),p=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[De]=24),t._w&&typeof t._w.d!="undefined"&&t._w.d!==p&&(b(t).weekdayMismatch=!0)}}function vd(t){var s,a,u,f,p,v,L,A,oe;s=t._w,s.GG!=null||s.W!=null||s.E!=null?(p=1,v=4,a=nr(s.GG,t._a[Oe],Yr(me(),1,4).year),u=nr(s.W,1),f=nr(s.E,1),(f<1||f>7)&&(A=!0)):(p=t._locale._week.dow,v=t._locale._week.doy,oe=Yr(me(),p,v),a=nr(s.gg,t._a[Oe],oe.year),u=nr(s.w,oe.week),s.d!=null?(f=s.d,(f<0||f>6)&&(A=!0)):s.e!=null?(f=s.e+p,(s.e<0||s.e>6)&&(A=!0)):f=p),u<1||u>yt(a,p,v)?b(t)._overflowWeeks=!0:A!=null?b(t)._overflowWeekday=!0:(L=fo(a,u,f,p,v),t._a[Oe]=L.year,t._dayOfYear=L.dayOfYear)}e.ISO_8601=function(){},e.RFC_2822=function(){};function Wi(t){if(t._f===e.ISO_8601){bo(t);return}if(t._f===e.RFC_2822){vo(t);return}t._a=[],b(t).empty=!0;var s=""+t._i,a,u,f,p,v,L=s.length,A=0,oe,Ie;for(f=Ks(t._f,t._locale).match(Ri)||[],Ie=f.length,a=0;a0&&b(t).unusedInput.push(v),s=s.slice(s.indexOf(u)+u.length),A+=u.length),er[p]?(u?b(t).empty=!1:b(t).unusedTokens.push(p),du(p,u,t)):t._strict&&!u&&b(t).unusedTokens.push(p);b(t).charsLeftOver=L-A,s.length>0&&b(t).unusedInput.push(s),t._a[De]<=12&&b(t).bigHour===!0&&t._a[De]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[De]=_d(t._locale,t._a[De],t._meridiem),oe=b(t).era,oe!==null&&(t._a[Oe]=t._locale.erasConvertYear(oe,t._a[Oe])),Ai(t),Ii(t)}function _d(t,s,a){var u;return a==null?s:t.meridiemHour!=null?t.meridiemHour(s,a):(t.isPM!=null&&(u=t.isPM(a),u&&s<12&&(s+=12),!u&&s===12&&(s=0)),s)}function wd(t){var s,a,u,f,p,v,L=!1,A=t._f.length;if(A===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(f=0;fthis?this:t:T()});function xo(t,s){var a,u;if(s.length===1&&i(s[0])&&(s=s[0]),!s.length)return me();for(a=s[0],u=1;uthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Wd(){if(!d(this._isDSTShifted))return this._isDSTShifted;var t={},s;return N(t,this),t=_o(t),t._a?(s=t._isUTC?_(t._a):me(t._a),this._isDSTShifted=this.isValid()&&Od(t._a,s.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $d(){return this.isValid()?!this._isUTC:!1}function Vd(){return this.isValid()?this._isUTC:!1}function Do(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jd=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ot(t,s){var a=t,u=null,f,p,v;return Dn(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:m(t)||!isNaN(+t)?(a={},s?a[s]=+t:a.milliseconds=+t):(u=jd.exec(t))?(f=u[1]==="-"?-1:1,a={y:0,d:W(u[lt])*f,h:W(u[De])*f,m:W(u[st])*f,s:W(u[pt])*f,ms:W($i(u[Wt]*1e3))*f}):(u=Hd.exec(t))?(f=u[1]==="-"?-1:1,a={y:$t(u[2],f),M:$t(u[3],f),w:$t(u[4],f),d:$t(u[5],f),h:$t(u[6],f),m:$t(u[7],f),s:$t(u[8],f)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(v=Gd(me(a.from),me(a.to)),a={},a.ms=v.milliseconds,a.M=v.months),p=new kn(a),Dn(t)&&l(t,"_locale")&&(p._locale=t._locale),Dn(t)&&l(t,"_isValid")&&(p._isValid=t._isValid),p}ot.fn=kn.prototype,ot.invalid=Yd;function $t(t,s){var a=t&&parseFloat(t.replace(",","."));return(isNaN(a)?0:a)*s}function So(t,s){var a={};return a.months=s.month()-t.month()+(s.year()-t.year())*12,t.clone().add(a.months,"M").isAfter(s)&&--a.months,a.milliseconds=+s-+t.clone().add(a.months,"M"),a}function Gd(t,s){var a;return t.isValid()&&s.isValid()?(s=ji(s,t),t.isBefore(s)?a=So(t,s):(a=So(s,t),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function To(t,s){return function(a,u){var f,p;return u!==null&&!isNaN(+u)&&(ee(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=a,a=u,u=p),f=ot(a,u),Fo(this,f,t),this}}function Fo(t,s,a,u){var f=s._milliseconds,p=$i(s._days),v=$i(s._months);t.isValid()&&(u=u==null?!0:u,v&&ao(t,fn(t,"Month")+v*a),p&&eo(t,"Date",fn(t,"Date")+p*a),f&&t._d.setTime(t._d.valueOf()+f*a),u&&e.updateOffset(t,p||v))}var zd=To(1,"add"),Zd=To(-1,"subtract");function Mo(t){return typeof t=="string"||t instanceof String}function Jd(t){return I(t)||h(t)||Mo(t)||m(t)||Kd(t)||qd(t)||t===null||t===void 0}function qd(t){var s=o(t)&&!c(t),a=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,v=u.length;for(f=0;fa.valueOf():a.valueOf()9999?dn(a,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ie(Date.prototype.toISOString)?s?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",dn(a,"Z")):dn(a,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function fc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",s="",a,u,f,p;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",s="Z"),a="["+t+'("]',u=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=s+'[")]',this.format(a+u+f+p)}function mc(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var s=dn(this,t);return this.localeData().postformat(s)}function hc(t,s){return this.isValid()&&(I(t)&&t.isValid()||me(t).isValid())?ot({to:this,from:t}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function pc(t){return this.from(me(),t)}function yc(t,s){return this.isValid()&&(I(t)&&t.isValid()||me(t).isValid())?ot({from:this,to:t}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function gc(t){return this.to(me(),t)}function Ro(t){var s;return t===void 0?this._locale._abbr:(s=gt(t),s!=null&&(this._locale=s),this)}var Eo=q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Uo(){return this._locale}var Tn=1e3,ir=60*Tn,Fn=60*ir,Yo=(365*400+97)*24*Fn;function sr(t,s){return(t%s+s)%s}function Oo(t,s,a){return t<100&&t>=0?new Date(t+400,s,a)-Yo:new Date(t,s,a).valueOf()}function Qo(t,s,a){return t<100&&t>=0?Date.UTC(t+400,s,a)-Yo:Date.UTC(t,s,a)}function bc(t){var s,a;if(t=qe(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Qo:Oo,t){case"year":s=a(this.year(),0,1);break;case"quarter":s=a(this.year(),this.month()-this.month()%3,1);break;case"month":s=a(this.year(),this.month(),1);break;case"week":s=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=a(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=sr(s+(this._isUTC?0:this.utcOffset()*ir),Fn);break;case"minute":s=this._d.valueOf(),s-=sr(s,ir);break;case"second":s=this._d.valueOf(),s-=sr(s,Tn);break}return this._d.setTime(s),e.updateOffset(this,!0),this}function vc(t){var s,a;if(t=qe(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Qo:Oo,t){case"year":s=a(this.year()+1,0,1)-1;break;case"quarter":s=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=a(this.year(),this.month()+1,1)-1;break;case"week":s=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=Fn-sr(s+(this._isUTC?0:this.utcOffset()*ir),Fn)-1;break;case"minute":s=this._d.valueOf(),s+=ir-sr(s,ir)-1;break;case"second":s=this._d.valueOf(),s+=Tn-sr(s,Tn)-1;break}return this._d.setTime(s),e.updateOffset(this,!0),this}function _c(){return this._d.valueOf()-(this._offset||0)*6e4}function wc(){return Math.floor(this.valueOf()/1e3)}function xc(){return new Date(this.valueOf())}function kc(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Dc(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Sc(){return this.isValid()?this.toISOString():null}function Tc(){return F(this)}function Fc(){return w({},b(this))}function Mc(){return b(this).overflow}function Rc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),R("N",Gi),R("NN",Gi),R("NNN",Gi),R("NNNN",Pc),R("NNNNN",Ac),se(["N","NN","NNN","NNNN","NNNNN"],function(t,s,a,u){var f=a._locale.erasParse(t,u,a._strict);f?b(a).era=f:b(a).invalidEra=t}),R("y",rr),R("yy",rr),R("yyy",rr),R("yyyy",rr),R("yo",Wc),se(["y","yy","yyy","yyyy"],Oe),se(["yo"],function(t,s,a,u){var f;a._locale._eraYearOrdinalRegex&&(f=t.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?s[Oe]=a._locale.eraYearOrdinalParse(t,f):s[Oe]=parseInt(t,10)});function Ec(t,s){var a,u,f,p=this._eras||gt("en")._eras;for(a=0,u=p.length;a=0)return p[u]}function Yc(t,s){var a=t.since<=t.until?1:-1;return s===void 0?e(t.since).year():e(t.since).year()+(s-t.offset)*a}function Oc(){var t,s,a,u=this.localeData().eras();for(t=0,s=u.length;tp&&(s=p),Zc.call(this,t,s,a,u,f))}function Zc(t,s,a,u,f){var p=fo(t,s,a,u,f),v=Ur(p.year,0,p.dayOfYear);return this.year(v.getUTCFullYear()),this.month(v.getUTCMonth()),this.date(v.getUTCDate()),this}Q("Q",0,"Qo","quarter"),Ue("quarter","Q"),Ye("quarter",7),R("Q",to),se("Q",function(t,s){s[ht]=(W(t)-1)*3});function Jc(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),Ue("date","D"),Ye("date",9),R("D",fe),R("DD",fe,je),R("Do",function(t,s){return t?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient}),se(["D","DD"],lt),se("Do",function(t,s){s[lt]=W(t.match(fe)[0])});var No=tr("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),Ue("dayOfYear","DDD"),Ye("dayOfYear",4),R("DDD",hn),R("DDDD",ro),se(["DDD","DDDD"],function(t,s,a){a._dayOfYear=W(t)});function qc(t){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?s:this.add(t-s,"d")}Q("m",["mm",2],0,"minute"),Ue("minute","m"),Ye("minute",14),R("m",fe),R("mm",fe,je),se(["m","mm"],st);var Kc=tr("Minutes",!1);Q("s",["ss",2],0,"second"),Ue("second","s"),Ye("second",15),R("s",fe),R("ss",fe,je),se(["s","ss"],pt);var Xc=tr("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ue("millisecond","ms"),Ye("millisecond",16),R("S",hn,to),R("SS",hn,je),R("SSS",hn,ro);var Ut,Co;for(Ut="SSSS";Ut.length<=9;Ut+="S")R(Ut,rr);function ef(t,s){s[Wt]=W(("0."+t)*1e3)}for(Ut="S";Ut.length<=9;Ut+="S")se(Ut,ef);Co=tr("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function tf(){return this._isUTC?"UTC":""}function rf(){return this._isUTC?"Coordinated Universal Time":""}var k=V.prototype;k.add=zd,k.calendar=tc,k.clone=rc,k.diff=uc,k.endOf=vc,k.format=mc,k.from=hc,k.fromNow=pc,k.to=yc,k.toNow=gc,k.get=iu,k.invalidAt=Mc,k.isAfter=nc,k.isBefore=ic,k.isBetween=sc,k.isSame=oc,k.isSameOrAfter=ac,k.isSameOrBefore=lc,k.isValid=Tc,k.lang=Eo,k.locale=Ro,k.localeData=Uo,k.max=Td,k.min=Sd,k.parsingFlags=Fc,k.set=su,k.startOf=bc,k.subtract=Zd,k.toArray=kc,k.toObject=Dc,k.toDate=xc,k.toISOString=cc,k.inspect=fc,typeof Symbol!="undefined"&&Symbol.for!=null&&(k[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),k.toJSON=Sc,k.toString=dc,k.unix=wc,k.valueOf=_c,k.creationData=Rc,k.eraName=Oc,k.eraNarrow=Qc,k.eraAbbr=Lc,k.eraYear=Nc,k.year=co,k.isLeapYear=Du,k.weekYear=$c,k.isoWeekYear=Vc,k.quarter=k.quarters=Jc,k.month=lo,k.daysInMonth=wu,k.week=k.weeks=Eu,k.isoWeek=k.isoWeeks=Uu,k.weeksInYear=Gc,k.weeksInWeekYear=zc,k.isoWeeksInYear=jc,k.isoWeeksInISOWeekYear=Hc,k.date=No,k.day=k.days=Vu,k.weekday=ju,k.isoWeekday=Hu,k.dayOfYear=qc,k.hour=k.hours=Xu,k.minute=k.minutes=Kc,k.second=k.seconds=Xc,k.millisecond=k.milliseconds=Co,k.utcOffset=Ld,k.utc=Cd,k.local=Bd,k.parseZone=Id,k.hasAlignedHourOffset=Pd,k.isDST=Ad,k.isLocal=$d,k.isUtcOffset=Vd,k.isUtc=Do,k.isUTC=Do,k.zoneAbbr=tf,k.zoneName=rf,k.dates=q("dates accessor is deprecated. Use date instead.",No),k.months=q("months accessor is deprecated. Use month instead",lo),k.years=q("years accessor is deprecated. Use year instead",co),k.zone=q("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Nd),k.isDSTShifted=q("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Wd);function nf(t){return me(t*1e3)}function sf(){return me.apply(null,arguments).parseZone()}function Bo(t){return t}var K=le.prototype;K.calendar=H,K.longDateFormat=zl,K.invalidDate=Jl,K.ordinal=Xl,K.preparse=Bo,K.postformat=Bo,K.relativeTime=tu,K.pastFuture=ru,K.set=E,K.eras=Ec,K.erasParse=Uc,K.erasConvertYear=Yc,K.erasAbbrRegex=Bc,K.erasNameRegex=Cc,K.erasNarrowRegex=Ic,K.months=gu,K.monthsShort=bu,K.monthsParse=_u,K.monthsRegex=ku,K.monthsShortRegex=xu,K.week=Tu,K.firstDayOfYear=Ru,K.firstDayOfWeek=Mu,K.weekdays=Iu,K.weekdaysMin=Au,K.weekdaysShort=Pu,K.weekdaysParse=$u,K.weekdaysRegex=Gu,K.weekdaysShortRegex=zu,K.weekdaysMinRegex=Zu,K.isPM=qu,K.meridiem=ed;function Rn(t,s,a,u){var f=gt(),p=_().set(u,s);return f[a](p,t)}function Io(t,s,a){if(m(t)&&(s=t,t=void 0),t=t||"",s!=null)return Rn(t,s,a,"month");var u,f=[];for(u=0;u<12;u++)f[u]=Rn(t,u,a,"month");return f}function Zi(t,s,a,u){typeof t=="boolean"?(m(s)&&(a=s,s=void 0),s=s||""):(s=t,a=s,t=!1,m(s)&&(a=s,s=void 0),s=s||"");var f=gt(),p=t?f._week.dow:0,v,L=[];if(a!=null)return Rn(s,(a+p)%7,u,"day");for(v=0;v<7;v++)L[v]=Rn(s,(v+p)%7,u,"day");return L}function of(t,s){return Io(t,s,"months")}function af(t,s){return Io(t,s,"monthsShort")}function lf(t,s,a){return Zi(t,s,a,"weekdays")}function uf(t,s,a){return Zi(t,s,a,"weekdaysShort")}function df(t,s,a){return Zi(t,s,a,"weekdaysMin")}Et("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var s=t%10,a=W(t%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return t+a}}),e.lang=q("moment.lang is deprecated. Use moment.locale instead.",Et),e.langData=q("moment.langData is deprecated. Use moment.localeData instead.",gt);var bt=Math.abs;function cf(){var t=this._data;return this._milliseconds=bt(this._milliseconds),this._days=bt(this._days),this._months=bt(this._months),t.milliseconds=bt(t.milliseconds),t.seconds=bt(t.seconds),t.minutes=bt(t.minutes),t.hours=bt(t.hours),t.months=bt(t.months),t.years=bt(t.years),this}function Po(t,s,a,u){var f=ot(s,a);return t._milliseconds+=u*f._milliseconds,t._days+=u*f._days,t._months+=u*f._months,t._bubble()}function ff(t,s){return Po(this,t,s,1)}function mf(t,s){return Po(this,t,s,-1)}function Ao(t){return t<0?Math.floor(t):Math.ceil(t)}function hf(){var t=this._milliseconds,s=this._days,a=this._months,u=this._data,f,p,v,L,A;return t>=0&&s>=0&&a>=0||t<=0&&s<=0&&a<=0||(t+=Ao(Ji(a)+s)*864e5,s=0,a=0),u.milliseconds=t%1e3,f=Ke(t/1e3),u.seconds=f%60,p=Ke(f/60),u.minutes=p%60,v=Ke(p/60),u.hours=v%24,s+=Ke(v/24),A=Ke(Wo(s)),a+=A,s-=Ao(Ji(A)),L=Ke(a/12),a%=12,u.days=s,u.months=a,u.years=L,this}function Wo(t){return t*4800/146097}function Ji(t){return t*146097/4800}function pf(t){if(!this.isValid())return NaN;var s,a,u=this._milliseconds;if(t=qe(t),t==="month"||t==="quarter"||t==="year")switch(s=this._days+u/864e5,a=this._months+Wo(s),t){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(s=this._days+Math.round(Ji(this._months)),t){case"week":return s/7+u/6048e5;case"day":return s+u/864e5;case"hour":return s*24+u/36e5;case"minute":return s*1440+u/6e4;case"second":return s*86400+u/1e3;case"millisecond":return Math.floor(s*864e5)+u;default:throw new Error("Unknown unit "+t)}}function yf(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+W(this._months/12)*31536e6:NaN}function vt(t){return function(){return this.as(t)}}var gf=vt("ms"),bf=vt("s"),vf=vt("m"),_f=vt("h"),wf=vt("d"),xf=vt("w"),kf=vt("M"),Df=vt("Q"),Sf=vt("y");function Tf(){return ot(this)}function Ff(t){return t=qe(t),this.isValid()?this[t+"s"]():NaN}function Vt(t){return function(){return this.isValid()?this._data[t]:NaN}}var Mf=Vt("milliseconds"),Rf=Vt("seconds"),Ef=Vt("minutes"),Uf=Vt("hours"),Yf=Vt("days"),Of=Vt("months"),Qf=Vt("years");function Lf(){return Ke(this.days()/7)}var _t=Math.round,or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Nf(t,s,a,u,f){return f.relativeTime(s||1,!!a,t,u)}function Cf(t,s,a,u){var f=ot(t).abs(),p=_t(f.as("s")),v=_t(f.as("m")),L=_t(f.as("h")),A=_t(f.as("d")),oe=_t(f.as("M")),Ie=_t(f.as("w")),wt=_t(f.as("y")),Yt=p<=a.ss&&["s",p]||p0,Yt[4]=u,Nf.apply(null,Yt)}function Bf(t){return t===void 0?_t:typeof t=="function"?(_t=t,!0):!1}function If(t,s){return or[t]===void 0?!1:s===void 0?or[t]:(or[t]=s,t==="s"&&(or.ss=s-1),!0)}function Pf(t,s){if(!this.isValid())return this.localeData().invalidDate();var a=!1,u=or,f,p;return typeof t=="object"&&(s=t,t=!1),typeof t=="boolean"&&(a=t),typeof s=="object"&&(u=Object.assign({},or,s),s.s!=null&&s.ss==null&&(u.ss=s.s-1)),f=this.localeData(),p=Cf(this,!a,u,f),a&&(p=f.pastFuture(+this,p)),f.postformat(p)}var qi=Math.abs;function ar(t){return(t>0)-(t<0)||+t}function En(){if(!this.isValid())return this.localeData().invalidDate();var t=qi(this._milliseconds)/1e3,s=qi(this._days),a=qi(this._months),u,f,p,v,L=this.asSeconds(),A,oe,Ie,wt;return L?(u=Ke(t/60),f=Ke(u/60),t%=60,u%=60,p=Ke(a/12),a%=12,v=t?t.toFixed(3).replace(/\.?0+$/,""):"",A=L<0?"-":"",oe=ar(this._months)!==ar(L)?"-":"",Ie=ar(this._days)!==ar(L)?"-":"",wt=ar(this._milliseconds)!==ar(L)?"-":"",A+"P"+(p?oe+p+"Y":"")+(a?oe+a+"M":"")+(s?Ie+s+"D":"")+(f||u||t?"T":"")+(f?wt+f+"H":"")+(u?wt+u+"M":"")+(t?wt+v+"S":"")):"P0D"}var J=kn.prototype;J.isValid=Ud,J.abs=cf,J.add=ff,J.subtract=mf,J.as=pf,J.asMilliseconds=gf,J.asSeconds=bf,J.asMinutes=vf,J.asHours=_f,J.asDays=wf,J.asWeeks=xf,J.asMonths=kf,J.asQuarters=Df,J.asYears=Sf,J.valueOf=yf,J._bubble=hf,J.clone=Tf,J.get=Ff,J.milliseconds=Mf,J.seconds=Rf,J.minutes=Ef,J.hours=Uf,J.days=Yf,J.weeks=Lf,J.months=Of,J.years=Qf,J.humanize=Pf,J.toISOString=En,J.toString=En,J.toJSON=En,J.locale=Ro,J.localeData=Uo,J.toIsoString=q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),J.lang=Eo,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),R("x",yn),R("X",au),se("X",function(t,s,a){a._d=new Date(parseFloat(t)*1e3)}),se("x",function(t,s,a){a._d=new Date(W(t))});return e.version="2.29.4",r(me),e.fn=k,e.min=Fd,e.max=Md,e.now=Rd,e.utc=_,e.unix=nf,e.months=of,e.isDate=h,e.locale=Et,e.invalid=T,e.duration=ot,e.isMoment=I,e.weekdays=lf,e.parseZone=sf,e.localeData=gt,e.isDuration=Dn,e.monthsShort=af,e.weekdaysMin=df,e.defineLocale=Bi,e.updateLocale=id,e.locales=sd,e.weekdaysShort=uf,e.normalizeUnits=qe,e.relativeTimeRounding=Bf,e.relativeTimeThreshold=If,e.calendarFormat=ec,e.prototype=k,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e})});var vh={};zf(vh,{default:()=>Mi});module.exports=Zf(vh);var Cr=class{constructor(e){this.plugin=e}startPeriodicTask(){let e=!0;this.periodicTask().finally(()=>{e=!1}),this.plugin.registerInterval(window.setInterval(()=>{if(e){console.log("Skip reminder interval task because task is already running.");return}e=!0,this.periodicTask().finally(()=>{e=!1})},this.plugin.settings.reminderCheckIntervalSec.value*1e3))}async periodicTask(){if(this.plugin.ui.reload(!1),this.plugin.data.scanned.value||this.plugin.fileSystem.reloadRemindersInAllFiles().then(()=>{this.plugin.data.scanned.value=!0,this.plugin.data.save()}),this.plugin.data.save(!1),this.plugin.ui.isEditing())return;let e=this.plugin.reminders.getExpiredReminders(this.plugin.settings.reminderTime.value),r;for(let i of e)if(this.plugin.app.workspace.layoutReady){if(i.muteNotification)continue;if(r)for(;r.beingDisplayed;)await this.sleep(100);this.plugin.ui.showReminder(i),r=i}}async sleep(e){return new Promise(r=>setTimeout(r,e))}};var At=require("obsidian");var Ja=require("obsidian");function Vo(n,e){return n||e.fileSystem.reloadRemindersInAllFiles(),!0}function jo(n,e){return n||e.showReminderList(),!0}var Ho=window.require?window.require("electron"):void 0;async function Go(n,e){return Ho&&(await Ho.remote.dialog.showMessageBox({type:"question",title:"Obsidian Reminder",message:n,detail:e,buttons:["OK","Cancel"],cancelId:1})).response===0?0:1}var Qt=class Qt{constructor(e,r,i,o,l){this.lineIndex=e;this.prefix=r;this.check=i;this.suffix=o;this.body=l}static parse(e,r){let i=Qt.regexp.exec(r);return i?new Qt(e,i.groups.prefix,i.groups.check,i.groups.suffix,i.groups.body):null}toMarkdown(){return`${this.prefix}${this.check}${this.suffix}${this.body}`}isChecked(){return Qt.checkedStatuses.some(e=>e===this.check)}setChecked(e){this.check=e?"x":" "}getHeaderLength(){return this.prefix.length+this.check.length+this.suffix.length}clone(){return Qt.parse(this.lineIndex,this.toMarkdown())}};g(Qt,"regexp",/^(?((> ?)*)?\s*[-*][ ]+\[)(?.)(?\]\s+)(?.*)$/),g(Qt,"checkedStatuses",["x","-"]);var Br=Qt,Ir=class{constructor(e,r){this.file=e;g(this,"lines",[]);g(this,"todos",[]);this.parse(r)}parse(e){this.lines=e.split(` `),this.todos=[],this.lines.forEach((r,i)=>{let o=Br.parse(i,r);o&&this.todos.push(o)})}getTodos(){return this.todos}insertTodo(e,r){r.lineIndex=e,this.lines.splice(e,0,r.toMarkdown());let i=-1;for(let o in this.todos){let l=this.todos[o];l.lineIndex>=e&&(i<0&&(i=parseInt(o)),l.lineIndex++)}i<=0?this.todos.splice(0,0,r):this.todos.splice(i,0,r)}getTodo(e){let r=this.todos.find(i=>i.lineIndex===e);return r==null?null:r}applyChanges(){this.todos.forEach(e=>{this.lines[e.lineIndex]=e.toMarkdown()})}toMarkdown(){return this.applyChanges(),this.lines.join(` `)}};var lr=class{constructor(e){this._value=e}get value(){return this._value}},jt=class{constructor(e){this._value=e;g(this,"onChangeFunctions",[])}onChanged(e){this.onChangeFunctions.push(e)}get value(){return this._value}set value(e){let r=this._value;this._value=e,this.onChangeFunctions.forEach(i=>{i(r,e)})}};var Xe=Ot(xt(),1);var G=class n{constructor(e,r){this.time=e;this._hasTimePart=r}static now(){return new n((0,Xe.default)(),!0)}static parse(e){return e.length>10?new n((0,Xe.default)(e,"YYYY-MM-DD HH:mm"),!0):new n((0,Xe.default)(e,"YYYY-MM-DD"),!1)}static duration(e,r,i,o){return r.fixedTime(o).diff(e.fixedTime(o),i)}getTimeInMillis(e){return this.fixedTime(e).valueOf()}format(e,r){return this.fixedTime(r).format(e)}toYYYYMMMM(e){return this.fixedTime(e).format("YYYY, MMMM")}toYYYYMMDD(e){return this.fixedTime(e).format("YYYY-MM-DD")}add(e,r,i){return new n(this.fixedTime(i).clone().add(e,r),this._hasTimePart)}fixedTime(e){return this._hasTimePart?this.time:e===void 0?this.time:this.time.clone().add(e.minutes,"minutes")}get hasTimePart(){return this._hasTimePart}moment(){return this.time}isValid(){return this.time.isValid()}clone(e){let r=e==null?this._hasTimePart:e,i=this.time.clone();return new n(i,r)}toString(){return this._hasTimePart?this.format("YYYY-MM-DD HH:mm"):this.format("YYYY-MM-DD")}equals(e){return this._hasTimePart===e._hasTimePart&&this.time.isSame(e.time)}},Un=class n{constructor(e,r){this.hour=e;this.minute=r}static parse(e){if(!e.match(/^\d{1,2}:\d{1,2}$/))throw`Unexpected format time(${e}). Time must be HH:mm.`;let r=e.split(":");if(r.length!==2)throw`Unexpected format time(${e}). time must be HH:mm.`;let i=parseInt(r[0]),o=parseInt(r[1]);if(i>23||i<0)throw"hour must be 0~23";if(o>59||o<0)throw"minute must be 0~59";return new n(i,o)}get minutes(){return this.hour*60+this.minute}toString(){let e=r=>r<10?"0"+r:""+r;return`${e(this.hour)}:${e(this.minute)}`}};function dr(n,e){return()=>new G((0,Xe.default)(),!0).add(n,e)}function zo(n){return dr(n,"minutes")}function Xi(n){return dr(n,"hours")}function Jf(n){return dr(n,"days")}function qf(n){return dr(n,"weeks")}function Kf(n){return dr(n,"months")}function Xf(n){return dr(n,"years")}function Ht(n){return()=>{let e=(0,Xe.default)();return e.isoWeekday()<=n?new G(e.isoWeekday(n),!1):new G(e.add(1,"weeks").isoWeekday(n),!1)}}function es(){return()=>new G((0,Xe.default)().add(1,"days"),!1)}function Zo(){return()=>new G((0,Xe.default)().add(1,"weeks"),!1)}function em(){return()=>new G((0,Xe.default)().add(1,"months"),!1)}function tm(){return()=>new G((0,Xe.default)().add(1,"years"),!1)}var he=class{constructor(e,r){this.label=e;this.later=r}};function Jo(n){return n.split(` `).map(e=>rm(e.trim()))}function rm(n){if(n=n.toLowerCase(),n.startsWith("in")){let e=n.split(" ");if(e.length!==3)throw"Unsupported format. Should be 'In N (minutes|hours)'";let r=e[1]==="a"||e[1]==="an"?1:parseInt(e[1]);switch(e[2]){case"minute":case"minutes":{let i=r==1?"minute":"minutes";return new he(`In ${r} ${i}`,zo(r))}case"hour":case"hours":{let i=r==1?"hour":"hours";return new he(`In ${r} ${i}`,Xi(r))}case"day":case"days":{let i=r==1?"day":"days";return new he(`In ${r} ${i}`,Jf(r))}case"week":case"weeks":{let i=r==1?"week":"weeks";return new he(`In ${r} ${i}`,qf(r))}case"month":case"months":{let i=r==1?"month":"months";return new he(`In ${r} ${i}`,Kf(r))}case"year":case"years":{let i=r==1?"year":"years";return new he(`In ${r} ${i}`,Xf(r))}}}else if(n.startsWith("next")){let e=n.substring(5);switch(e){case"sunday":return new he("Next Sunday",Ht(0));case"monday":return new he("Next Monday",Ht(1));case"tuesday":return new he("Next Tuesday",Ht(2));case"wednesday":return new he("Next Wednesday",Ht(3));case"thursday":return new he("Next Thursday",Ht(4));case"friday":return new he("Next Friday",Ht(5));case"saturday":return new he("Next Saturday",Ht(6));case"day":return new he("Tomorrow",es());case"week":return new he("Next week",Zo());case"month":return new he("Next month",em());case"year":return new he("Next year",tm());default:throw`Unsupported weekday: ${e}`}}else if(n==="tomorrow")return new he("Tomorrow",es());throw`Unsupported format: ${n}`}var Eh=[new he("In 30 minutes",zo(30)),new he("In 1 hours",Xi(1)),new he("In 3 hours",Xi(3)),new he("Tomorrow",es()),new he("Next week",Zo())],ts=class{constructor(){g(this,"dateFormat",new lr("YYYY-MM-DD"));g(this,"dateTimeFormat",new lr("YYYY-MM-DD HH:mm"));g(this,"strict",new lr(!1))}setTimeFormat(e,r,i){this.dateFormat=e,this.dateTimeFormat=r,this.strict=i}parse(e){let r=this.doParse(e,!0);return r!=null?r:this.strict.value?null:this.doParse(e,!1)}doParse(e,r){let i=(0,Xe.default)(e,this.dateTimeFormat.value,r);if(i.isValid())return new G(i,!0);let o=(0,Xe.default)(e,this.dateFormat.value,r);return o.isValid()?new G(o,!1):null}toString(e){return e.hasTimePart?e.format(this.dateTimeFormat.value):e.format(this.dateFormat.value)}},ut=new ts;var cr=class{constructor(e,r,i,o,l){this.file=e;this.title=r;this.time=i;this.rowNumber=o;this.done=l;g(this,"muteNotification",!1);g(this,"beingDisplayed",!1)}key(){return this.file+this.title+this.time.toString()}equals(e){return this.rowNumber===e.rowNumber&&this.title===e.title&&this.time.equals(e.time)&&this.file===e.file}getFileName(){let e=this.file.split(/[/\\]/);return e[e.length-1].replace(/^(.*?)(\..+)?$/,"$1")}static extractFileName(e){let r=e.split(/[/\\]/);return r[r.length-1].replace(/^(.*?)(\..+)?$/,"$1")}},Yn=class{constructor(e){this.onChange=e;g(this,"fileToReminders",new Map);g(this,"reminders",[]);g(this,"reminderTime")}getExpiredReminders(e){let r=new Date().getTime(),i=[];for(let o=0;or.time.toYYYYMMDD()===e.toYYYYMMDD())}removeReminder(e){console.debug("Remove reminder: %o",e),this.reminders.remove(e);let r=this.fileToReminders.get(e.file);r&&(r.remove(e),r.length===0&&this.fileToReminders.delete(e.file)),this.onChange()}clear(){this.fileToReminders.clear(),this.reminders=[],this.onChange()}removeByFile(e){return this.fileToReminders.delete(e)?(this.sortReminders(),!0):!1}replaceFile(e,r){let i=this.fileToReminders.get(e);if(i){if(this.equals(i,r))return!1;let o=new Map;for(let l of i)o.set(l.key(),l.muteNotification);for(let l of r){let c=o.get(l.key());o.set(l.key(),l.muteNotification),c!==void 0&&(l.muteNotification=c)}}return this.fileToReminders.set(e,r),this.sortReminders(),!0}equals(e,r){if(e.length!==r.length)return!1;this.sort(e),this.sort(r);for(let i in e){let o=e[i],l=r[i];if(o==null&&l!=null||l==null&&o!=null)return!1;if(!(o==null&&l==null)&&!o.equals(l))return!1}return!0}sortReminders(){let e=[];for(let r of this.fileToReminders.values())e.push(...r);this.sort(e),this.reminders=e,this.onChange()}sort(e){e.sort((r,i)=>{var l,c;let o=r.time.getTimeInMillis((l=this.reminderTime)==null?void 0:l.value)-i.time.getTimeInMillis((c=this.reminderTime)==null?void 0:c.value);return o>0?1:o<0?-1:0})}},Ko=[{name:"US Style (12h)",format:{yearMonthFormat:"MMMM YYYY",monthDayFormat:"MM/DD",shortDateWithWeekdayFormat:"M/DD (ddd)",timeFormat:"h:mm A"}},{name:"US Style (24h)",format:{yearMonthFormat:"MMMM YYYY",monthDayFormat:"MM/DD",shortDateWithWeekdayFormat:"M/DD (ddd)",timeFormat:"HH:mm"}},{name:"EU Style (24h)",format:{yearMonthFormat:"MMMM YYYY",monthDayFormat:"DD/MM",shortDateWithWeekdayFormat:"D/MM (ddd)",timeFormat:"HH:mm"}},{name:"EU Style (12h)",format:{yearMonthFormat:"MMMM YYYY",monthDayFormat:"DD/MM",shortDateWithWeekdayFormat:"D/MM (ddd)",timeFormat:"h:mm A"}},{name:"JP Style (24h)",format:{yearMonthFormat:"YYYY\u5E74MM\u6708",monthDayFormat:"MM/DD",shortDateWithWeekdayFormat:"M\u6708D\u65E5 (ddd)",timeFormat:"HH:mm"}},{name:"JP Style (12h)",format:{yearMonthFormat:"YYYY\u5E74MM\u6708",monthDayFormat:"MM/DD",shortDateWithWeekdayFormat:"M\u6708D\u65E5 (ddd)",timeFormat:"h:mm A"}}];function qo(n,e,r,i){let o=G.duration(e,n,"days",r);if(o>30)return new Lt(n.format(i.yearMonthFormat,r),l=>l.format(i.monthDayFormat,r));if(o>=7)return new Lt("Over 1 week",l=>l.format(i.monthDayFormat,r));if(n.toYYYYMMDD(r)===e.toYYYYMMDD(r)){let l=new Lt("Today",c=>c.format(i.timeFormat,r));return l.isToday=!0,l}return n.toYYYYMMDD(r)===e.add(1,"days",r).toYYYYMMDD()?new Lt("Tomorrow",l=>l.format(i.timeFormat,r)):new Lt(n.format(i.shortDateWithWeekdayFormat,r),l=>l.format(i.timeFormat,r))}var Lt=class{constructor(e,r){this.name=e;this.timeToStringFunc=r;g(this,"isToday",!1);g(this,"isOverdue",!1)}timeToString(e){return this.timeToStringFunc(e)}};function Xo(n,e,r){let i=G.now(),o=[],l=[],c=[],d=qo(i,i,e,r);for(let m=0;m0||d.isToday)&&o.push(new Pr(d,l)),l=[]),l.push(h),d=y}if(l.length>0&&o.push(new Pr(d,l)),c.length>0){let m=new Lt("Overdue",h=>h.format(r.timeFormat,e));m.isOverdue=!0,o.splice(0,0,new Pr(m,c)),console.log(m),console.log(o)}return o}var Pr=class{constructor(e,r){this.group=e;this.reminders=r}get name(){return this.group.name}get isOverdue(){return this.group.isOverdue}timeToString(e){return this.group.timeToString(e)}};var et=class et{constructor(e,r){this.key=e;this.defaultValue=r}};g(et,"now",new et("now",G.now())),g(et,"useCustomEmojiForTasksPlugin",new et("useCustomEmojiForTasksPlugin",!1)),g(et,"removeTagsForTasksPlugin",new et("removeTagsForTasksPlugin",!1)),g(et,"linkDatesToDailyNotes",new et("linkDatesToDailyNotes",!1)),g(et,"strictDateFormat",new et("strictDateFormat",!1));var Pe=et,Ar=class{constructor(){g(this,"parameters",new Map)}setParameter(e,r){this.parameters.set(e.key,()=>r.value)}setParameterFunc(e,r){this.parameters.set(e.key,r)}setParameterValue(e,r){this.parameters.set(e.key,()=>r)}getParameter(e){let r=this.parameters.get(e.key);return r==null?e.defaultValue:r()}},Nt=class{constructor(){g(this,"config",new Ar)}setConfig(e){this.config=e}parse(e){return e.getTodos().map(r=>{let i=this.parseValidReminder(r);if(i==null)return null;let o=i.getTitle();if(o==null)return null;let l=i.getTime();return l==null?null:new cr(e.file,o,l,r.lineIndex,r.isChecked())}).filter(r=>r!=null)}async modify(e,r,i){let o=e.getTodo(r.rowNumber);if(o===null)return console.warn("Not a todo: reminder=%o",r),!1;let l=this.parseValidReminder(o);return l===null||!this.modifyReminder(e,o,l,i)?!1:(o.body=l.toMarkdown(),!0)}parseValidReminder(e){let r=this.parseReminder(e);return r===null||!this.isValidReminder(r)?null:r}isValidReminder(e){return e.getTime()!==null}modifyReminder(e,r,i,o){if(o.rawTime!==void 0){if(!i.setRawTime(o.rawTime))return console.warn("The reminder doesn't support raw time: parsed=%o",i),!1}else o.time!==void 0&&i.setTime(o.time);return o.checked!==void 0&&r.setChecked(o.checked),!0}appendReminder(e,r,i){let o=Br.parse(0,e);if(o==null)return null;let l=this.parseReminder(o),c=o.getHeaderLength();return i!=null&&(i-=c),l!=null?l.setTime(r,i):(l=this.newReminder(o.body,r,i),l.setTime(r)),o.body=l.toMarkdown(),{insertedLine:o.toMarkdown(),caretPosition:c+l.getEndOfTimeTextIndex()}}isStrictDateFormat(){return this.config.getParameter(Pe.strictDateFormat)}},On=class{constructor(){g(this,"config");g(this,"formats",[])}setConfig(e){this.config=e,this.syncConfig()}parse(e){let r=[];for(let i of this.formats){let o=i.parse(e);o!=null&&r.push(...o)}return r}async modify(e,r,i){for(let o of this.formats)if(await o.modify(e,r,i))return!0;return!1}resetFormat(e){this.formats=e,this.syncConfig()}syncConfig(){this.config!=null&&this.formats.forEach(e=>e.setConfig(this.config))}appendReminder(e,r){return this.formats[0]==null?null:this.formats[0].appendReminder(e,r)}};var Wr=class Wr{constructor(e,r,i,o){this.linkDatesToDailyNotes=e;this.title1=r;this.time=i;this.title2=o}static parse(e,r){r==null&&(r=!1);let i=Wr.regexp.exec(e);if(i==null)return null;let o=i.groups.title1,l=i.groups.time;if(l==null)return null;let c=i.groups.title2;return r&&(l=l.replace("[[",""),l=l.replace("]]","")),new Wr(r,o,l,c)}getTitle(){return`${this.title1.trim()} ${this.title2.trim()}`.trim()}getTime(){return ut.parse(this.time)}setTime(e){this.time=ut.toString(e)}setRawTime(e){return this.time=e,!0}getEndOfTimeTextIndex(){return this.toMarkdown().length-this.title2.length}toMarkdown(){let e=`${this.title1}(@${this.time})${this.title2}`;if(!this.linkDatesToDailyNotes)return e;let r=ut.parse(this.time);if(!r)return e;let i=ut.toString(r.clone(!1));return e.replace(i,`[[${i}]]`)}};g(Wr,"regexp",/^(?.*?)\(@(?