database-mcp
Version:
Model Context Protocol server for multi-database access (PostgreSQL, MySQL, SQLite, Snowflake) with comprehensive introspection and analysis tools
5 lines • 4.58 MB
JavaScript
#!/usr/bin/env node
"use strict";var Alt=Object.create;var Lw=Object.defineProperty;var vlt=Object.getOwnPropertyDescriptor;var _lt=Object.getOwnPropertyNames;var qlt=Object.getPrototypeOf,xlt=Object.prototype.hasOwnProperty;var Elt=(e,t,r)=>t in e?Lw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Slt=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rlt=(e,t)=>{for(var r in t)Lw(e,r,{get:t[r],enumerable:!0})},wlt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _lt(t))!xlt.call(e,i)&&i!==r&&Lw(e,i,{get:()=>t[i],enumerable:!(n=vlt(t,i))||n.enumerable});return e};var fs=(e,t,r)=>(r=e!=null?Alt(qlt(e)):{},wlt(t||!e||!e.__esModule?Lw(r,"default",{value:e,enumerable:!0}):r,e));var zU=(e,t,r)=>Elt(e,typeof t!="symbol"?t+"":t,r);var Bw=O((xU,SO)=>{(function(e,t){typeof xU=="object"&&typeof SO<"u"?SO.exports=t():typeof define=="function"&&define.amd?define(t):e.moment=t()})(xU,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function r(m){e=m}function n(m){return m instanceof Array||Object.prototype.toString.call(m)==="[object Array]"}function i(m){return m!=null&&Object.prototype.toString.call(m)==="[object Object]"}function a(m,y){return Object.prototype.hasOwnProperty.call(m,y)}function s(m){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(m).length===0;var y;for(y in m)if(a(m,y))return!1;return!0}function o(m){return m===void 0}function c(m){return typeof m=="number"||Object.prototype.toString.call(m)==="[object Number]"}function p(m){return m instanceof Date||Object.prototype.toString.call(m)==="[object Date]"}function l(m,y){var I=[],F,te=m.length;for(F=0;F<te;++F)I.push(y(m[F],F));return I}function d(m,y){for(var I in y)a(y,I)&&(m[I]=y[I]);return a(y,"toString")&&(m.toString=y.toString),a(y,"valueOf")&&(m.valueOf=y.valueOf),m}function u(m,y,I,F){return ze(m,y,I,F,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(m){return m._pf==null&&(m._pf=f()),m._pf}var g;Array.prototype.some?g=Array.prototype.some:g=function(m){var y=Object(this),I=y.length>>>0,F;for(F=0;F<I;F++)if(F in y&&m.call(this,y[F],F,y))return!0;return!1};function A(m){var y=null,I=!1,F=m._d&&!isNaN(m._d.getTime());if(F&&(y=h(m),I=g.call(y.parsedDateParts,function(te){return te!=null}),F=y.overflow<0&&!y.empty&&!y.invalidEra&&!y.invalidMonth&&!y.invalidWeekday&&!y.weekdayMismatch&&!y.nullInput&&!y.invalidFormat&&!y.userInvalidated&&(!y.meridiem||y.meridiem&&I),m._strict&&(F=F&&y.charsLeftOver===0&&y.unusedTokens.length===0&&y.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(m))m._isValid=F;else return F;return m._isValid}function z(m){var y=u(NaN);return m!=null?d(h(y),m):h(y).userInvalidated=!0,y}var E=t.momentProperties=[],R=!1;function H(m,y){var I,F,te,Se=E.length;if(o(y._isAMomentObject)||(m._isAMomentObject=y._isAMomentObject),o(y._i)||(m._i=y._i),o(y._f)||(m._f=y._f),o(y._l)||(m._l=y._l),o(y._strict)||(m._strict=y._strict),o(y._tzm)||(m._tzm=y._tzm),o(y._isUTC)||(m._isUTC=y._isUTC),o(y._offset)||(m._offset=y._offset),o(y._pf)||(m._pf=h(y)),o(y._locale)||(m._locale=y._locale),Se>0)for(I=0;I<Se;I++)F=E[I],te=y[F],o(te)||(m[F]=te);return m}function V(m){H(this,m),this._d=new Date(m._d!=null?m._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),R===!1&&(R=!0,t.updateOffset(this),R=!1)}function Q(m){return m instanceof V||m!=null&&m._isAMomentObject!=null}function ae(m){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+m)}function re(m,y){var I=!0;return d(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,m),I){var F=[],te,Se,Ze,t0=arguments.length;for(Se=0;Se<t0;Se++){if(te="",typeof arguments[Se]=="object"){te+=`
[`+Se+"] ";for(Ze in arguments[0])a(arguments[0],Ze)&&(te+=Ze+": "+arguments[0][Ze]+", ");te=te.slice(0,-2)}else te=arguments[Se];F.push(te)}ae(m+`
Arguments: `+Array.prototype.slice.call(F).join("")+`
`+new Error().stack),I=!1}return y.apply(this,arguments)},y)}var ne={};function $(m,y){t.deprecationHandler!=null&&t.deprecationHandler(m,y),ne[m]||(ae(y),ne[m]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function v(m){return typeof Function<"u"&&m instanceof Function||Object.prototype.toString.call(m)==="[object Function]"}function B(m){var y,I;for(I in m)a(m,I)&&(y=m[I],v(y)?this[I]=y:this["_"+I]=y);this._config=m,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function N(m,y){var I=d({},m),F;for(F in y)a(y,F)&&(i(m[F])&&i(y[F])?(I[F]={},d(I[F],m[F]),d(I[F],y[F])):y[F]!=null?I[F]=y[F]:delete I[F]);for(F in m)a(m,F)&&!a(y,F)&&i(m[F])&&(I[F]=d({},I[F]));return I}function M(m){m!=null&&this.set(m)}var x;Object.keys?x=Object.keys:x=function(m){var y,I=[];for(y in m)a(m,y)&&I.push(y);return I};var S={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(m,y,I){var F=this._calendar[m]||this._calendar.sameElse;return v(F)?F.call(y,I):F}function C(m,y,I){var F=""+Math.abs(m),te=y-F.length,Se=m>=0;return(Se?I?"+":"":"-")+Math.pow(10,Math.max(0,te)).toString().substr(1)+F}var _=/(\[[^\[]*\])|(\\)?([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,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},L={};function W(m,y,I,F){var te=F;typeof F=="string"&&(te=function(){return this[F]()}),m&&(L[m]=te),y&&(L[y[0]]=function(){return C(te.apply(this,arguments),y[1],y[2])}),I&&(L[I]=function(){return this.localeData().ordinal(te.apply(this,arguments),m)})}function _e(m){return m.match(/\[[\s\S]/)?m.replace(/^\[|\]$/g,""):m.replace(/\\/g,"")}function Re(m){var y=m.match(_),I,F;for(I=0,F=y.length;I<F;I++)L[y[I]]?y[I]=L[y[I]]:y[I]=_e(y[I]);return function(te){var Se="",Ze;for(Ze=0;Ze<F;Ze++)Se+=v(y[Ze])?y[Ze].call(te,m):y[Ze];return Se}}function Ne(m,y){return m.isValid()?(y=Ke(y,m.localeData()),Y[y]=Y[y]||Re(y),Y[y](m)):m.localeData().invalidDate()}function Ke(m,y){var I=5;function F(te){return y.longDateFormat(te)||te}for(D.lastIndex=0;I>=0&&D.test(m);)m=m.replace(D,F),D.lastIndex=0,I-=1;return m}var $e={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 G(m){var y=this._longDateFormat[m],I=this._longDateFormat[m.toUpperCase()];return y||!I?y:(this._longDateFormat[m]=I.match(_).map(function(F){return F==="MMMM"||F==="MM"||F==="DD"||F==="dddd"?F.slice(1):F}).join(""),this._longDateFormat[m])}var ue="Invalid date";function le(){return this._invalidDate}var K="%d",ce=/\d{1,2}/;function ie(m){return this._ordinal.replace("%d",m)}var me={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 Oe(m,y,I,F){var te=this._relativeTime[I];return v(te)?te(m,y,I,F):te.replace(/%d/i,m)}function Me(m,y){var I=this._relativeTime[m>0?"future":"past"];return v(I)?I(y):I.replace(/%s/i,y)}var ye={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 qe(m){return typeof m=="string"?ye[m]||ye[m.toLowerCase()]:void 0}function Te(m){var y={},I,F;for(F in m)a(m,F)&&(I=qe(F),I&&(y[I]=m[F]));return y}var st={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 at(m){var y=[],I;for(I in m)a(m,I)&&y.push({unit:I,priority:st[I]});return y.sort(function(F,te){return F.priority-te.priority}),y}var At=/\d/,X=/\d\d/,Z=/\d{3}/,pe=/\d{4}/,fe=/[+-]?\d{6}/,Pe=/\d\d?/,xe=/\d\d\d\d?/,ke=/\d\d\d\d\d\d?/,Je=/\d{1,3}/,je=/\d{1,4}/,lt=/[+-]?\d{1,6}/,e0=/\d+/,k=/[+-]?\d+/,j=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,ge=/[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,Ce=/^[1-9]\d?/,Be=/^([1-9]\d|\d)/,Le;Le={};function We(m,y,I){Le[m]=v(y)?y:function(F,te){return F&&I?I:y}}function et(m,y){return a(Le,m)?Le[m](y._strict,y._locale):new RegExp(ht(m))}function ht(m){return It(m.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(y,I,F,te,Se){return I||F||te||Se}))}function It(m){return m.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Mt(m){return m<0?Math.ceil(m)||0:Math.floor(m)}function ot(m){var y=+m,I=0;return y!==0&&isFinite(y)&&(I=Mt(y)),I}var L0={};function vt(m,y){var I,F=y,te;for(typeof m=="string"&&(m=[m]),c(y)&&(F=function(Se,Ze){Ze[y]=ot(Se)}),te=m.length,I=0;I<te;I++)L0[m[I]]=F}function l0(m,y){vt(m,function(I,F,te,Se){te._w=te._w||{},y(I,te._w,te,Se)})}function ei(m,y,I){y!=null&&a(L0,m)&&L0[m](y,I._a,I,m)}function S0(m){return m%4===0&&m%100!==0||m%400===0}var b0=0,tn=1,z0=2,d0=3,rn=4,E0=5,x0=6,ac=7,Dr=8;W("Y",0,0,function(){var m=this.year();return m<=9999?C(m,4):"+"+m}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),We("Y",k),We("YY",Pe,X),We("YYYY",je,pe),We("YYYYY",lt,fe),We("YYYYYY",lt,fe),vt(["YYYYY","YYYYYY"],b0),vt("YYYY",function(m,y){y[b0]=m.length===2?t.parseTwoDigitYear(m):ot(m)}),vt("YY",function(m,y){y[b0]=t.parseTwoDigitYear(m)}),vt("Y",function(m,y){y[b0]=parseInt(m,10)});function Tr(m){return S0(m)?366:365}t.parseTwoDigitYear=function(m){return ot(m)+(ot(m)>68?1900:2e3)};var Xs=xi("FullYear",!0);function Pa(){return S0(this.year())}function xi(m,y){return function(I){return I!=null?($s(this,m,I),t.updateOffset(this,y),this):ti(this,m)}}function ti(m,y){if(!m.isValid())return NaN;var I=m._d,F=m._isUTC;switch(y){case"Milliseconds":return F?I.getUTCMilliseconds():I.getMilliseconds();case"Seconds":return F?I.getUTCSeconds():I.getSeconds();case"Minutes":return F?I.getUTCMinutes():I.getMinutes();case"Hours":return F?I.getUTCHours():I.getHours();case"Date":return F?I.getUTCDate():I.getDate();case"Day":return F?I.getUTCDay():I.getDay();case"Month":return F?I.getUTCMonth():I.getMonth();case"FullYear":return F?I.getUTCFullYear():I.getFullYear();default:return NaN}}function $s(m,y,I){var F,te,Se,Ze,t0;if(!(!m.isValid()||isNaN(I))){switch(F=m._d,te=m._isUTC,y){case"Milliseconds":return void(te?F.setUTCMilliseconds(I):F.setMilliseconds(I));case"Seconds":return void(te?F.setUTCSeconds(I):F.setSeconds(I));case"Minutes":return void(te?F.setUTCMinutes(I):F.setMinutes(I));case"Hours":return void(te?F.setUTCHours(I):F.setHours(I));case"Date":return void(te?F.setUTCDate(I):F.setDate(I));case"FullYear":break;default:return}Se=I,Ze=m.month(),t0=m.date(),t0=t0===29&&Ze===1&&!S0(Se)?28:t0,te?F.setUTCFullYear(Se,Ze,t0):F.setFullYear(Se,Ze,t0)}}function oa(m){return m=qe(m),v(this[m])?this[m]():this}function Ro(m,y){if(typeof m=="object"){m=Te(m);var I=at(m),F,te=I.length;for(F=0;F<te;F++)this[I[F].unit](m[I[F].unit])}else if(m=qe(m),v(this[m]))return this[m](y);return this}function La(m,y){return(m%y+y)%y}var Pr;Array.prototype.indexOf?Pr=Array.prototype.indexOf:Pr=function(m){var y;for(y=0;y<this.length;++y)if(this[y]===m)return y;return-1};function Wa(m,y){if(isNaN(m)||isNaN(y))return NaN;var I=La(y,12);return m+=(y-I)/12,I===1?S0(m)?29:28:31-I%7%2}W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(m){return this.localeData().monthsShort(this,m)}),W("MMMM",0,0,function(m){return this.localeData().months(this,m)}),We("M",Pe,Ce),We("MM",Pe,X),We("MMM",function(m,y){return y.monthsShortRegex(m)}),We("MMMM",function(m,y){return y.monthsRegex(m)}),vt(["M","MM"],function(m,y){y[tn]=ot(m)-1}),vt(["MMM","MMMM"],function(m,y,I,F){var te=I._locale.monthsParse(m,F,I._strict);te!=null?y[tn]=te:h(I).invalidMonth=m});var wo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ei="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ps=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Vs=ge,ls=ge;function No(m,y){return m?n(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||ps).test(y)?"format":"standalone"][m.month()]:n(this._months)?this._months:this._months.standalone}function sc(m,y){return m?n(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[ps.test(y)?"format":"standalone"][m.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function xp(m,y,I){var F,te,Se,Ze=m.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],F=0;F<12;++F)Se=u([2e3,F]),this._shortMonthsParse[F]=this.monthsShort(Se,"").toLocaleLowerCase(),this._longMonthsParse[F]=this.months(Se,"").toLocaleLowerCase();return I?y==="MMM"?(te=Pr.call(this._shortMonthsParse,Ze),te!==-1?te:null):(te=Pr.call(this._longMonthsParse,Ze),te!==-1?te:null):y==="MMM"?(te=Pr.call(this._shortMonthsParse,Ze),te!==-1?te:(te=Pr.call(this._longMonthsParse,Ze),te!==-1?te:null)):(te=Pr.call(this._longMonthsParse,Ze),te!==-1?te:(te=Pr.call(this._shortMonthsParse,Ze),te!==-1?te:null))}function Cl(m,y,I){var F,te,Se;if(this._monthsParseExact)return xp.call(this,m,y,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),F=0;F<12;F++){if(te=u([2e3,F]),I&&!this._longMonthsParse[F]&&(this._longMonthsParse[F]=new RegExp("^"+this.months(te,"").replace(".","")+"$","i"),this._shortMonthsParse[F]=new RegExp("^"+this.monthsShort(te,"").replace(".","")+"$","i")),!I&&!this._monthsParse[F]&&(Se="^"+this.months(te,"")+"|^"+this.monthsShort(te,""),this._monthsParse[F]=new RegExp(Se.replace(".",""),"i")),I&&y==="MMMM"&&this._longMonthsParse[F].test(m))return F;if(I&&y==="MMM"&&this._shortMonthsParse[F].test(m))return F;if(!I&&this._monthsParse[F].test(m))return F}}function Mb(m,y){if(!m.isValid())return m;if(typeof y=="string"){if(/^\d+$/.test(y))y=ot(y);else if(y=m.localeData().monthsParse(y),!c(y))return m}var I=y,F=m.date();return F=F<29?F:Math.min(F,Wa(m.year(),I)),m._isUTC?m._d.setUTCMonth(I,F):m._d.setMonth(I,F),m}function Tl(m){return m!=null?(Mb(this,m),t.updateOffset(this,!0),this):ti(this,"Month")}function bO(){return Wa(this.year(),this.month())}function Ob(m){return this._monthsParseExact?(a(this,"_monthsRegex")||zb.call(this),m?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Vs),this._monthsShortStrictRegex&&m?this._monthsShortStrictRegex:this._monthsShortRegex)}function gb(m){return this._monthsParseExact?(a(this,"_monthsRegex")||zb.call(this),m?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ls),this._monthsStrictRegex&&m?this._monthsStrictRegex:this._monthsRegex)}function zb(){function m(B0,Sr){return Sr.length-B0.length}var y=[],I=[],F=[],te,Se,Ze,t0;for(te=0;te<12;te++)Se=u([2e3,te]),Ze=It(this.monthsShort(Se,"")),t0=It(this.months(Se,"")),y.push(Ze),I.push(t0),F.push(t0),F.push(Ze);y.sort(m),I.sort(m),F.sort(m),this._monthsRegex=new RegExp("^("+F.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+y.join("|")+")","i")}function yb(m,y,I,F,te,Se,Ze){var t0;return m<100&&m>=0?(t0=new Date(m+400,y,I,F,te,Se,Ze),isFinite(t0.getFullYear())&&t0.setFullYear(m)):t0=new Date(m,y,I,F,te,Se,Ze),t0}function Pl(m){var y,I;return m<100&&m>=0?(I=Array.prototype.slice.call(arguments),I[0]=m+400,y=new Date(Date.UTC.apply(null,I)),isFinite(y.getUTCFullYear())&&y.setUTCFullYear(m)):y=new Date(Date.UTC.apply(null,arguments)),y}function F2(m,y,I){var F=7+y-I,te=(7+Pl(m,0,F).getUTCDay()-y)%7;return-te+F-1}function H2(m,y,I,F,te){var Se=(7+I-F)%7,Ze=F2(m,F,te),t0=1+7*(y-1)+Se+Ze,B0,Sr;return t0<=0?(B0=m-1,Sr=Tr(B0)+t0):t0>Tr(m)?(B0=m+1,Sr=t0-Tr(m)):(B0=m,Sr=t0),{year:B0,dayOfYear:Sr}}function oc(m,y,I){var F=F2(m.year(),y,I),te=Math.floor((m.dayOfYear()-F-1)/7)+1,Se,Ze;return te<1?(Ze=m.year()-1,Se=te+Gs(Ze,y,I)):te>Gs(m.year(),y,I)?(Se=te-Gs(m.year(),y,I),Ze=m.year()+1):(Ze=m.year(),Se=te),{week:Se,year:Ze}}function Gs(m,y,I){var F=F2(m,y,I),te=F2(m+1,y,I);return(Tr(m)-F+te)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),We("w",Pe,Ce),We("ww",Pe,X),We("W",Pe,Ce),We("WW",Pe,X),l0(["w","ww","W","WW"],function(m,y,I,F){y[F.substr(0,1)]=ot(m)});function T(m){return oc(m,this._week.dow,this._week.doy).week}var Gt={dow:0,doy:6};function cc(){return this._week.dow}function Ll(){return this._week.doy}function ou(m){var y=this.localeData().week(this);return m==null?y:this.add((m-y)*7,"d")}function cu(m){var y=oc(this,1,4).week;return m==null?y:this.add((m-y)*7,"d")}W("d",0,"do","day"),W("dd",0,0,function(m){return this.localeData().weekdaysMin(this,m)}),W("ddd",0,0,function(m){return this.localeData().weekdaysShort(this,m)}),W("dddd",0,0,function(m){return this.localeData().weekdays(this,m)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),We("d",Pe),We("e",Pe),We("E",Pe),We("dd",function(m,y){return y.weekdaysMinRegex(m)}),We("ddd",function(m,y){return y.weekdaysShortRegex(m)}),We("dddd",function(m,y){return y.weekdaysRegex(m)}),l0(["dd","ddd","dddd"],function(m,y,I,F){var te=I._locale.weekdaysParse(m,F,I._strict);te!=null?y.d=te:h(I).invalidWeekday=m}),l0(["d","e","E"],function(m,y,I,F){y[F]=ot(m)});function pt(m,y){return typeof m!="string"?m:isNaN(m)?(m=y.weekdaysParse(m),typeof m=="number"?m:null):parseInt(m,10)}function ut(m,y){return typeof m=="string"?y.weekdaysParse(m)%7||7:isNaN(m)?null:m}function Wl(m,y){return m.slice(y,7).concat(m.slice(0,y))}var F_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),H_="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),An=ge,hO=ge,X_=ge;function Il(m,y){var I=n(this._weekdays)?this._weekdays:this._weekdays[m&&m!==!0&&this._weekdays.isFormat.test(y)?"format":"standalone"];return m===!0?Wl(I,this._week.dow):m?I[m.day()]:I}function qt(m){return m===!0?Wl(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort}function X2(m){return m===!0?Wl(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin}function Ab(m,y,I){var F,te,Se,Ze=m.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],F=0;F<7;++F)Se=u([2e3,1]).day(F),this._minWeekdaysParse[F]=this.weekdaysMin(Se,"").toLocaleLowerCase(),this._shortWeekdaysParse[F]=this.weekdaysShort(Se,"").toLocaleLowerCase(),this._weekdaysParse[F]=this.weekdays(Se,"").toLocaleLowerCase();return I?y==="dddd"?(te=Pr.call(this._weekdaysParse,Ze),te!==-1?te:null):y==="ddd"?(te=Pr.call(this._shortWeekdaysParse,Ze),te!==-1?te:null):(te=Pr.call(this._minWeekdaysParse,Ze),te!==-1?te:null):y==="dddd"?(te=Pr.call(this._weekdaysParse,Ze),te!==-1||(te=Pr.call(this._shortWeekdaysParse,Ze),te!==-1)?te:(te=Pr.call(this._minWeekdaysParse,Ze),te!==-1?te:null)):y==="ddd"?(te=Pr.call(this._shortWeekdaysParse,Ze),te!==-1||(te=Pr.call(this._weekdaysParse,Ze),te!==-1)?te:(te=Pr.call(this._minWeekdaysParse,Ze),te!==-1?te:null)):(te=Pr.call(this._minWeekdaysParse,Ze),te!==-1||(te=Pr.call(this._weekdaysParse,Ze),te!==-1)?te:(te=Pr.call(this._shortWeekdaysParse,Ze),te!==-1?te:null))}function MO(m,y,I){var F,te,Se;if(this._weekdaysParseExact)return Ab.call(this,m,y,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),F=0;F<7;F++){if(te=u([2e3,1]).day(F),I&&!this._fullWeekdaysParse[F]&&(this._fullWeekdaysParse[F]=new RegExp("^"+this.weekdays(te,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[F]=new RegExp("^"+this.weekdaysShort(te,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[F]=new RegExp("^"+this.weekdaysMin(te,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[F]||(Se="^"+this.weekdays(te,"")+"|^"+this.weekdaysShort(te,"")+"|^"+this.weekdaysMin(te,""),this._weekdaysParse[F]=new RegExp(Se.replace(".",""),"i")),I&&y==="dddd"&&this._fullWeekdaysParse[F].test(m))return F;if(I&&y==="ddd"&&this._shortWeekdaysParse[F].test(m))return F;if(I&&y==="dd"&&this._minWeekdaysParse[F].test(m))return F;if(!I&&this._weekdaysParse[F].test(m))return F}}function $2(m){if(!this.isValid())return m!=null?this:NaN;var y=ti(this,"Day");return m!=null?(m=pt(m,this.localeData()),this.add(m-y,"d")):y}function V2(m){if(!this.isValid())return m!=null?this:NaN;var y=(this.day()+7-this.localeData()._week.dow)%7;return m==null?y:this.add(m-y,"d")}function G2(m){if(!this.isValid())return m!=null?this:NaN;if(m!=null){var y=ut(m,this.localeData());return this.day(this.day()%7?y:y-7)}else return this.day()||7}function $_(m){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||lu.call(this),m?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=An),this._weekdaysStrictRegex&&m?this._weekdaysStrictRegex:this._weekdaysRegex)}function pu(m){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||lu.call(this),m?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=hO),this._weekdaysShortStrictRegex&&m?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function OO(m){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||lu.call(this),m?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=X_),this._weekdaysMinStrictRegex&&m?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function lu(){function m(us,bu){return bu.length-us.length}var y=[],I=[],F=[],te=[],Se,Ze,t0,B0,Sr;for(Se=0;Se<7;Se++)Ze=u([2e3,1]).day(Se),t0=It(this.weekdaysMin(Ze,"")),B0=It(this.weekdaysShort(Ze,"")),Sr=It(this.weekdays(Ze,"")),y.push(t0),I.push(B0),F.push(Sr),te.push(t0),te.push(B0),te.push(Sr);y.sort(m),I.sort(m),F.sort(m),te.sort(m),this._weekdaysRegex=new RegExp("^("+te.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+F.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+y.join("|")+")","i")}function K2(){return this.hours()%12||12}function du(){return this.hours()||24}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,K2),W("k",["kk",2],0,du),W("hmm",0,0,function(){return""+K2.apply(this)+C(this.minutes(),2)}),W("hmmss",0,0,function(){return""+K2.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)});function Ep(m,y){W(m,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),y)})}Ep("a",!0),Ep("A",!1);function pc(m,y){return y._meridiemParse}We("a",pc),We("A",pc),We("H",Pe,Be),We("h",Pe,Ce),We("k",Pe,Ce),We("HH",Pe,X),We("hh",Pe,X),We("kk",Pe,X),We("hmm",xe),We("hmmss",ke),We("Hmm",xe),We("Hmmss",ke),vt(["H","HH"],d0),vt(["k","kk"],function(m,y,I){var F=ot(m);y[d0]=F===24?0:F}),vt(["a","A"],function(m,y,I){I._isPm=I._locale.isPM(m),I._meridiem=m}),vt(["h","hh"],function(m,y,I){y[d0]=ot(m),h(I).bigHour=!0}),vt("hmm",function(m,y,I){var F=m.length-2;y[d0]=ot(m.substr(0,F)),y[rn]=ot(m.substr(F)),h(I).bigHour=!0}),vt("hmmss",function(m,y,I){var F=m.length-4,te=m.length-2;y[d0]=ot(m.substr(0,F)),y[rn]=ot(m.substr(F,2)),y[E0]=ot(m.substr(te)),h(I).bigHour=!0}),vt("Hmm",function(m,y,I){var F=m.length-2;y[d0]=ot(m.substr(0,F)),y[rn]=ot(m.substr(F))}),vt("Hmmss",function(m,y,I){var F=m.length-4,te=m.length-2;y[d0]=ot(m.substr(0,F)),y[rn]=ot(m.substr(F,2)),y[E0]=ot(m.substr(te))});function gO(m){return(m+"").toLowerCase().charAt(0)==="p"}var zO=/[ap]\.?m?\.?/i,yO=xi("Hours",!0);function AO(m,y,I){return m>11?I?"pm":"PM":I?"am":"AM"}var Y2={calendar:S,longDateFormat:$e,invalidDate:ue,ordinal:K,dayOfMonthOrdinalParse:ce,relativeTime:me,months:wo,monthsShort:Ei,week:Gt,weekdays:F_,weekdaysMin:yn,weekdaysShort:H_,meridiemParse:zO},i1={},Ks={},Sp;function V_(m,y){var I,F=Math.min(m.length,y.length);for(I=0;I<F;I+=1)if(m[I]!==y[I])return I;return F}function Q2(m){return m&&m.toLowerCase().replace("_","-")}function G_(m){for(var y=0,I,F,te,Se;y<m.length;){for(Se=Q2(m[y]).split("-"),I=Se.length,F=Q2(m[y+1]),F=F?F.split("-"):null;I>0;){if(te=ee(Se.slice(0,I).join("-")),te)return te;if(F&&F.length>=I&&V_(Se,F)>=I-1)break;I--}y++}return Sp}function oe(m){return!!(m&&m.match("^[^/\\\\]*$"))}function ee(m){var y=null,I;if(i1[m]===void 0&&typeof SO<"u"&&SO&&SO.exports&&oe(m))try{y=Sp._abbr,I=require,I("./locale/"+m),se(y)}catch{i1[m]=null}return i1[m]}function se(m,y){var I;return m&&(o(y)?I=Ue(m):I=Ee(m,y),I?Sp=I:typeof console<"u"&&console.warn&&console.warn("Locale "+m+" not found. Did you forget to load it?")),Sp._abbr}function Ee(m,y){if(y!==null){var I,F=Y2;if(y.abbr=m,i1[m]!=null)$("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."),F=i1[m]._config;else if(y.parentLocale!=null)if(i1[y.parentLocale]!=null)F=i1[y.parentLocale]._config;else if(I=ee(y.parentLocale),I!=null)F=I._config;else return Ks[y.parentLocale]||(Ks[y.parentLocale]=[]),Ks[y.parentLocale].push({name:m,config:y}),null;return i1[m]=new M(N(F,y)),Ks[m]&&Ks[m].forEach(function(te){Ee(te.name,te.config)}),se(m),i1[m]}else return delete i1[m],null}function Fe(m,y){if(y!=null){var I,F,te=Y2;i1[m]!=null&&i1[m].parentLocale!=null?i1[m].set(N(i1[m]._config,y)):(F=ee(m),F!=null&&(te=F._config),y=N(te,y),F==null&&(y.abbr=m),I=new M(y),I.parentLocale=i1[m],i1[m]=I),se(m)}else i1[m]!=null&&(i1[m].parentLocale!=null?(i1[m]=i1[m].parentLocale,m===se()&&se(m)):i1[m]!=null&&delete i1[m]);return i1[m]}function Ue(m){var y;if(m&&m._locale&&m._locale._abbr&&(m=m._locale._abbr),!m)return Sp;if(!n(m)){if(y=ee(m),y)return y;m=[m]}return G_(m)}function Qe(){return x(i1)}function Ye(m){var y,I=m._a;return I&&h(m).overflow===-2&&(y=I[tn]<0||I[tn]>11?tn:I[z0]<1||I[z0]>Wa(I[b0],I[tn])?z0:I[d0]<0||I[d0]>24||I[d0]===24&&(I[rn]!==0||I[E0]!==0||I[x0]!==0)?d0:I[rn]<0||I[rn]>59?rn:I[E0]<0||I[E0]>59?E0:I[x0]<0||I[x0]>999?x0:-1,h(m)._overflowDayOfYear&&(y<b0||y>z0)&&(y=z0),h(m)._overflowWeeks&&y===-1&&(y=ac),h(m)._overflowWeekday&&y===-1&&(y=Dr),h(m).overflow=y),m}var dt=/^\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)?)?$/,u0=/^\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)?)?$/,tr=/Z|[+-]\d\d(?::?\d\d)?/,rr=[["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]],nr=[["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/]],Ia=/^\/?Date\((-?\d+)/i,Bl=/^(?:(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}))$/,Dt={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 Bn(m){var y,I,F=m._i,te=dt.exec(F)||u0.exec(F),Se,Ze,t0,B0,Sr=rr.length,us=nr.length;if(te){for(h(m).iso=!0,y=0,I=Sr;y<I;y++)if(rr[y][1].exec(te[1])){Ze=rr[y][0],Se=rr[y][2]!==!1;break}if(Ze==null){m._isValid=!1;return}if(te[3]){for(y=0,I=us;y<I;y++)if(nr[y][1].exec(te[3])){t0=(te[2]||" ")+nr[y][0];break}if(t0==null){m._isValid=!1;return}}if(!Se&&t0!=null){m._isValid=!1;return}if(te[4])if(tr.exec(te[4]))B0="Z";else{m._isValid=!1;return}m._f=Ze+(t0||"")+(B0||""),Dn(m)}else m._isValid=!1}function ur(m,y,I,F,te,Se){var Ze=[y0(m),Ei.indexOf(y),parseInt(I,10),parseInt(F,10),parseInt(te,10)];return Se&&Ze.push(parseInt(Se,10)),Ze}function y0(m){var y=parseInt(m,10);return y<=49?2e3+y:y<=999?1900+y:y}function Bt(m){return m.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ct(m,y,I){if(m){var F=H_.indexOf(m),te=new Date(y[0],y[1],y[2]).getDay();if(F!==te)return h(I).weekdayMismatch=!0,I._isValid=!1,!1}return!0}function or(m,y,I){if(m)return Dt[m];if(y)return 0;var F=parseInt(I,10),te=F%100,Se=(F-te)/100;return Se*60+te}function jr(m){var y=Bl.exec(Bt(m._i)),I;if(y){if(I=ur(y[4],y[3],y[2],y[5],y[6],y[7]),!Ct(y[1],I,m))return;m._a=I,m._tzm=or(y[8],y[9],y[10]),m._d=Pl.apply(null,m._a),m._d.setUTCMinutes(m._d.getUTCMinutes()-m._tzm),h(m).rfc2822=!0}else m._isValid=!1}function ln(m){var y=Ia.exec(m._i);if(y!==null){m._d=new Date(+y[1]);return}if(Bn(m),m._isValid===!1)delete m._isValid;else return;if(jr(m),m._isValid===!1)delete m._isValid;else return;m._strict?m._isValid=!1:t.createFromInputFallback(m)}t.createFromInputFallback=re("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(m){m._d=new Date(m._i+(m._useUTC?" UTC":""))});function kn(m,y,I){return m??y??I}function Rp(m){var y=new Date(t.now());return m._useUTC?[y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate()]:[y.getFullYear(),y.getMonth(),y.getDate()]}function Co(m){var y,I,F=[],te,Se,Ze;if(!m._d){for(te=Rp(m),m._w&&m._a[z0]==null&&m._a[tn]==null&&wp(m),m._dayOfYear!=null&&(Ze=kn(m._a[b0],te[b0]),(m._dayOfYear>Tr(Ze)||m._dayOfYear===0)&&(h(m)._overflowDayOfYear=!0),I=Pl(Ze,0,m._dayOfYear),m._a[tn]=I.getUTCMonth(),m._a[z0]=I.getUTCDate()),y=0;y<3&&m._a[y]==null;++y)m._a[y]=F[y]=te[y];for(;y<7;y++)m._a[y]=F[y]=m._a[y]==null?y===2?1:0:m._a[y];m._a[d0]===24&&m._a[rn]===0&&m._a[E0]===0&&m._a[x0]===0&&(m._nextDay=!0,m._a[d0]=0),m._d=(m._useUTC?Pl:yb).apply(null,F),Se=m._useUTC?m._d.getUTCDay():m._d.getDay(),m._tzm!=null&&m._d.setUTCMinutes(m._d.getUTCMinutes()-m._tzm),m._nextDay&&(m._a[d0]=24),m._w&&typeof m._w.d<"u"&&m._w.d!==Se&&(h(m).weekdayMismatch=!0)}}function wp(m){var y,I,F,te,Se,Ze,t0,B0,Sr;y=m._w,y.GG!=null||y.W!=null||y.E!=null?(Se=1,Ze=4,I=kn(y.GG,m._a[b0],oc(Ie(),1,4).year),F=kn(y.W,1),te=kn(y.E,1),(te<1||te>7)&&(B0=!0)):(Se=m._locale._week.dow,Ze=m._locale._week.doy,Sr=oc(Ie(),Se,Ze),I=kn(y.gg,m._a[b0],Sr.year),F=kn(y.w,Sr.week),y.d!=null?(te=y.d,(te<0||te>6)&&(B0=!0)):y.e!=null?(te=y.e+Se,(y.e<0||y.e>6)&&(B0=!0)):te=Se),F<1||F>Gs(I,Se,Ze)?h(m)._overflowWeeks=!0:B0!=null?h(m)._overflowWeekday=!0:(t0=H2(I,F,te,Se,Ze),m._a[b0]=t0.year,m._dayOfYear=t0.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Dn(m){if(m._f===t.ISO_8601){Bn(m);return}if(m._f===t.RFC_2822){jr(m);return}m._a=[],h(m).empty=!0;var y=""+m._i,I,F,te,Se,Ze,t0=y.length,B0=0,Sr,us;for(te=Ke(m._f,m._locale).match(_)||[],us=te.length,I=0;I<us;I++)Se=te[I],F=(y.match(et(Se,m))||[])[0],F&&(Ze=y.substr(0,y.indexOf(F)),Ze.length>0&&h(m).unusedInput.push(Ze),y=y.slice(y.indexOf(F)+F.length),B0+=F.length),L[Se]?(F?h(m).empty=!1:h(m).unusedTokens.push(Se),ei(Se,F,m)):m._strict&&!F&&h(m).unusedTokens.push(Se);h(m).charsLeftOver=t0-B0,y.length>0&&h(m).unusedInput.push(y),m._a[d0]<=12&&h(m).bigHour===!0&&m._a[d0]>0&&(h(m).bigHour=void 0),h(m).parsedDateParts=m._a.slice(0),h(m).meridiem=m._meridiem,m._a[d0]=lU(m._locale,m._a[d0],m._meridiem),Sr=h(m).era,Sr!==null&&(m._a[b0]=m._locale.erasConvertYear(Sr,m._a[b0])),Co(m),Ye(m)}function lU(m,y,I){var F;return I==null?y:m.meridiemHour!=null?m.meridiemHour(y,I):(m.isPM!=null&&(F=m.isPM(I),F&&y<12&&(y+=12),!F&&y===12&&(y=0)),y)}function dU(m){var y,I,F,te,Se,Ze,t0=!1,B0=m._f.length;if(B0===0){h(m).invalidFormat=!0,m._d=new Date(NaN);return}for(te=0;te<B0;te++)Se=0,Ze=!1,y=H({},m),m._useUTC!=null&&(y._useUTC=m._useUTC),y._f=m._f[te],Dn(y),A(y)&&(Ze=!0),Se+=h(y).charsLeftOver,Se+=h(y).unusedTokens.length*10,h(y).score=Se,t0?Se<F&&(F=Se,I=y):(F==null||Se<F||Ze)&&(F=Se,I=y,Ze&&(t0=!0));d(m,I||y)}function q(m){if(!m._d){var y=Te(m._i),I=y.day===void 0?y.date:y.day;m._a=l([y.year,y.month,I,y.hour,y.minute,y.second,y.millisecond],function(F){return F&&parseInt(F,10)}),Co(m)}}function U(m){var y=new V(Ye(J(m)));return y._nextDay&&(y.add(1,"d"),y._nextDay=void 0),y}function J(m){var y=m._i,I=m._f;return m._locale=m._locale||Ue(m._l),y===null||I===void 0&&y===""?z({nullInput:!0}):(typeof y=="string"&&(m._i=y=m._locale.preparse(y)),Q(y)?new V(Ye(y)):(p(y)?m._d=y:n(I)?dU(m):I?Dn(m):de(m),A(m)||(m._d=null),m))}function de(m){var y=m._i;o(y)?m._d=new Date(t.now()):p(y)?m._d=new Date(y.valueOf()):typeof y=="string"?ln(m):n(y)?(m._a=l(y.slice(0),function(I){return parseInt(I,10)}),Co(m)):i(y)?q(m):c(y)?m._d=new Date(y):t.createFromInputFallback(m)}function ze(m,y,I,F,te){var Se={};return(y===!0||y===!1)&&(F=y,y=void 0),(I===!0||I===!1)&&(F=I,I=void 0),(i(m)&&s(m)||n(m)&&m.length===0)&&(m=void 0),Se._isAMomentObject=!0,Se._useUTC=Se._isUTC=te,Se._l=I,Se._i=m,Se._f=y,Se._strict=F,U(Se)}function Ie(m,y,I,F){return ze(m,y,I,F,!1)}var rt=re("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var m=Ie.apply(null,arguments);return this.isValid()&&m.isValid()?m<this?this:m:z()}),jt=re("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var m=Ie.apply(null,arguments);return this.isValid()&&m.isValid()?m>this?this:m:z()});function C0(m,y){var I,F;if(y.length===1&&n(y[0])&&(y=y[0]),!y.length)return Ie();for(I=y[0],F=1;F<y.length;++F)(!y[F].isValid()||y[F][m](I))&&(I=y[F]);return I}function Kr(){var m=[].slice.call(arguments,0);return C0("isBefore",m)}function Lr(){var m=[].slice.call(arguments,0);return C0("isAfter",m)}var G1=function(){return Date.now?Date.now():+new Date},M1=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ds(m){var y,I=!1,F,te=M1.length;for(y in m)if(a(m,y)&&!(Pr.call(M1,y)!==-1&&(m[y]==null||!isNaN(m[y]))))return!1;for(F=0;F<te;++F)if(m[M1[F]]){if(I)return!1;parseFloat(m[M1[F]])!==ot(m[M1[F]])&&(I=!0)}return!0}function J2(){return this._isValid}function kl(){return Np(NaN)}function Si(m){var y=Te(m),I=y.year||0,F=y.quarter||0,te=y.month||0,Se=y.week||y.isoWeek||0,Ze=y.day||0,t0=y.hour||0,B0=y.minute||0,Sr=y.second||0,us=y.millisecond||0;this._isValid=ds(y),this._milliseconds=+us+Sr*1e3+B0*6e4+t0*1e3*60*60,this._days=+Ze+Se*7,this._months=+te+F*3+I*12,this._data={},this._locale=Ue(),this._bubble()}function vb(m){return m instanceof Si}function _b(m){return m<0?Math.round(-1*m)*-1:Math.round(m)}function hct(m,y,I){var F=Math.min(m.length,y.length),te=Math.abs(m.length-y.length),Se=0,Ze;for(Ze=0;Ze<F;Ze++)(I&&m[Ze]!==y[Ze]||!I&&ot(m[Ze])!==ot(y[Ze]))&&Se++;return Se+te}function Bpe(m,y){W(m,0,0,function(){var I=this.utcOffset(),F="+";return I<0&&(I=-I,F="-"),F+C(~~(I/60),2)+y+C(~~I%60,2)})}Bpe("Z",":"),Bpe("ZZ",""),We("Z",he),We("ZZ",he),vt(["Z","ZZ"],function(m,y,I){I._useUTC=!0,I._tzm=uU(he,m)});var Mct=/([\+\-]|\d\d)/gi;function uU(m,y){var I=(y||"").match(m),F,te,Se;return I===null?null:(F=I[I.length-1]||[],te=(F+"").match(Mct)||["-",0,0],Se=+(te[1]*60)+ot(te[2]),Se===0?0:te[0]==="+"?Se:-Se)}function fU(m,y){var I,F;return y._isUTC?(I=y.clone(),F=(Q(m)||p(m)?m.valueOf():Ie(m).valueOf())-I.valueOf(),I._d.setTime(I._d.valueOf()+F),t.updateOffset(I,!1),I):Ie(m).local()}function mU(m){return-Math.round(m._d.getTimezoneOffset())}t.updateOffset=function(){};function Oct(m,y,I){var F=this._offset||0,te;if(!this.isValid())return m!=null?this:NaN;if(m!=null){if(typeof m=="string"){if(m=uU(he,m),m===null)return this}else Math.abs(m)<16&&!I&&(m=m*60);return!this._isUTC&&y&&(te=mU(this)),this._offset=m,this._isUTC=!0,te!=null&&this.add(te,"m"),F!==m&&(!y||this._changeInProgress?Upe(this,Np(m-F,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?F:mU(this)}function gct(m,y){return m!=null?(typeof m!="string"&&(m=-m),this.utcOffset(m,y),this):-this.utcOffset()}function zct(m){return this.utcOffset(0,m)}function yct(m){return this._isUTC&&(this.utcOffset(0,m),this._isUTC=!1,m&&this.subtract(mU(this),"m")),this}function Act(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var m=uU(j,this._i);m!=null?this.utcOffset(m):this.utcOffset(0,!0)}return this}function vct(m){return this.isValid()?(m=m?Ie(m).utcOffset():0,(this.utcOffset()-m)%60===0):!1}function _ct(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qct(){if(!o(this._isDSTShifted))return this._isDSTShifted;var m={},y;return H(m,this),m=J(m),m._a?(y=m._isUTC?u(m._a):Ie(m._a),this._isDSTShifted=this.isValid()&&hct(m._a,y.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xct(){return this.isValid()?!this._isUTC:!1}function Ect(){return this.isValid()?this._isUTC:!1}function kpe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Sct=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rct=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Np(m,y){var I=m,F=null,te,Se,Ze;return vb(m)?I={ms:m._milliseconds,d:m._days,M:m._months}:c(m)||!isNaN(+m)?(I={},y?I[y]=+m:I.milliseconds=+m):(F=Sct.exec(m))?(te=F[1]==="-"?-1:1,I={y:0,d:ot(F[z0])*te,h:ot(F[d0])*te,m:ot(F[rn])*te,s:ot(F[E0])*te,ms:ot(_b(F[x0]*1e3))*te}):(F=Rct.exec(m))?(te=F[1]==="-"?-1:1,I={y:qb(F[2],te),M:qb(F[3],te),w:qb(F[4],te),d:qb(F[5],te),h:qb(F[6],te),m:qb(F[7],te),s:qb(F[8],te)}):I==null?I={}:typeof I=="object"&&("from"in I||"to"in I)&&(Ze=wct(Ie(I.from),Ie(I.to)),I={},I.ms=Ze.milliseconds,I.M=Ze.months),Se=new Si(I),vb(m)&&a(m,"_locale")&&(Se._locale=m._locale),vb(m)&&a(m,"_isValid")&&(Se._isValid=m._isValid),Se}Np.fn=Si.prototype,Np.invalid=kl;function qb(m,y){var I=m&&parseFloat(m.replace(",","."));return(isNaN(I)?0:I)*y}function Dpe(m,y){var I={};return I.months=y.month()-m.month()+(y.year()-m.year())*12,m.clone().add(I.months,"M").isAfter(y)&&--I.months,I.milliseconds=+y-+m.clone().add(I.months,"M"),I}function wct(m,y){var I;return m.isValid()&&y.isValid()?(y=fU(y,m),m.isBefore(y)?I=Dpe(m,y):(I=Dpe(y,m),I.milliseconds=-I.milliseconds,I.months=-I.months),I):{milliseconds:0,months:0}}function jpe(m,y){return function(I,F){var te,Se;return F!==null&&!isNaN(+F)&&($(y,"moment()."+y+"(period, number) is deprecated. Please use moment()."+y+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Se=I,I=F,F=Se),te=Np(I,F),Upe(this,te,m),this}}function Upe(m,y,I,F){var te=y._milliseconds,Se=_b(y._days),Ze=_b(y._months);m.isValid()&&(F=F??!0,Ze&&Mb(m,ti(m,"Month")+Ze*I),Se&&$s(m,"Date",ti(m,"Date")+Se*I),te&&m._d.setTime(m._d.valueOf()+te*I),F&&t.updateOffset(m,Se||Ze))}var Nct=jpe(1,"add"),Cct=jpe(-1,"subtract");function Fpe(m){return typeof m=="string"||m instanceof String}function Tct(m){return Q(m)||p(m)||Fpe(m)||c(m)||Lct(m)||Pct(m)||m===null||m===void 0}function Pct(m){var y=i(m)&&!s(m),I=!1,F=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],te,Se,Ze=F.length;for(te=0;te<Ze;te+=1)Se=F[te],I=I||a(m,Se);return y&&I}function Lct(m){var y=n(m),I=!1;return y&&(I=m.filter(function(F){return!c(F)&&Fpe(m)}).length===0),y&&I}function Wct(m){var y=i(m)&&!s(m),I=!1,F=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],te,Se;for(te=0;te<F.length;te+=1)Se=F[te],I=I||a(m,Se);return y&&I}function Ict(m,y){var I=m.diff(y,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"}function Bct(m,y){arguments.length===1&&(arguments[0]?Tct(arguments[0])?(m=arguments[0],y=void 0):Wct(arguments[0])&&(y=arguments[0],m=void 0):(m=void 0,y=void 0));var I=m||Ie(),F=fU(I,this).startOf("day"),te=t.calendarFormat(this,F)||"sameElse",Se=y&&(v(y[te])?y[te].call(this,I):y[te]);return this.format(Se||this.localeData().calendar(te,this,Ie(I)))}function kct(){return new V(this)}function Dct(m,y){var I=Q(m)?m:Ie(m);return this.isValid()&&I.isValid()?(y=qe(y)||"millisecond",y==="millisecond"?this.valueOf()>I.valueOf():I.valueOf()<this.clone().startOf(y).valueOf()):!1}function jct(m,y){var I=Q(m)?m:Ie(m);return this.isValid()&&I.isValid()?(y=qe(y)||"millisecond",y==="millisecond"?this.valueOf()<I.valueOf():this.clone().endOf(y).valueOf()<I.valueOf()):!1}function Uct(m,y,I,F){var te=Q(m)?m:Ie(m),Se=Q(y)?y:Ie(y);return this.isValid()&&te.isValid()&&Se.isValid()?(F=F||"()",(F[0]==="("?this.isAfter(te,I):!this.isBefore(te,I))&&(F[1]===")"?this.isBefore(Se,I):!this.isAfter(Se,I))):!1}function Fct(m,y){var I=Q(m)?m:Ie(m),F;return this.isValid()&&I.isValid()?(y=qe(y)||"millisecond",y==="millisecond"?this.valueOf()===I.valueOf():(F=I.valueOf(),this.clone().startOf(y).valueOf()<=F&&F<=this.clone().endOf(y).valueOf())):!1}function Hct(m,y){return this.isSame(m,y)||this.isAfter(m,y)}function Xct(m,y){return this.isSame(m,y)||this.isBefore(m,y)}function $ct(m,y,I){var F,te,Se;if(!this.isValid())return NaN;if(F=fU(m,this),!F.isValid())return NaN;switch(te=(F.utcOffset()-this.utcOffset())*6e4,y=qe(y),y){case"year":Se=Rw(this,F)/12;break;case"month":Se=Rw(this,F);break;case"quarter":Se=Rw(this,F)/3;break;case"second":Se=(this-F)/1e3;break;case"minute":Se=(this-F)/6e4;break;case"hour":Se=(this-F)/36e5;break;case"day":Se=(this-F-te)/864e5;break;case"week":Se=(this-F-te)/6048e5;break;default:Se=this-F}return I?Se:Mt(Se)}function Rw(m,y){if(m.date()<y.date())return-Rw(y,m);var I=(y.year()-m.year())*12+(y.month()-m.month()),F=m.clone().add(I,"months"),te,Se;return y-F<0?(te=m.clone().add(I-1,"months"),Se=(y-F)/(F-te)):(te=m.clone().add(I+1,"months"),Se=(y-F)/(te-F)),-(I+Se)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vct(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gct(m){if(!this.isValid())return null;var y=m!==!0,I=y?this.clone().utc():this;return I.year()<0||I.year()>9999?Ne(I,y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):v(Date.prototype.toISOString)?y?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ne(I,"Z")):Ne(I,y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Kct(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var m="moment",y="",I,F,te,Se;return this.isLocal()||(m=this.utcOffset()===0?"moment.utc":"moment.parseZone",y="Z"),I="["+m+'("]',F=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",te="-MM-DD[T]HH:mm:ss.SSS",Se=y+'[")]',this.format(I+F+te+Se)}function Yct(m){m||(m=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var y=Ne(this,m);return this.localeData().postformat(y)}function Qct(m,y){return this.isValid()&&(Q(m)&&m.isValid()||Ie(m).isValid())?Np({to:this,from:m}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()}function Jct(m){return this.from(Ie(),m)}function Zct(m,y){return this.isValid()&&(Q(m)&&m.isValid()||Ie(m).isValid())?Np({from:this,to:m}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()}function ept(m){return this.to(Ie(),m)}function Hpe(m){var y;return m===void 0?this._locale._abbr:(y=Ue(m),y!=null&&(this._locale=y),this)}var Xpe=re("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(m){return m===void 0?this.localeData():this.locale(m)});function $pe(){return this._locale}var ww=1e3,vO=60*ww,Nw=60*vO,Vpe=(365*400+97)*24*Nw;function _O(m,y){return(m%y+y)%y}function Gpe(m,y,I){return m<100&&m>=0?new Date(m+400,y,I)-Vpe:new Date(m,y,I).valueOf()}function Kpe(m,y,I){return m<100&&m>=0?Date.UTC(m+400,y,I)-Vpe:Date.UTC(m,y,I)}function tpt(m){var y,I;if(m=qe(m),m===void 0||m==="millisecond"||!this.isValid())return this;switch(I=this._isUTC?Kpe:Gpe,m){case"year":y=I(this.year(),0,1);break;case"quarter":y=I(this.year(),this.month()-this.month()%3,1);break;case"month":y=I(this.year(),this.month(),1);break;case"week":y=I(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":y=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":y=I(this.year(),this.month(),this.date());break;case"hour":y=this._d.valueOf(),y-=_O(y+(this._isUTC?0:this.utcOffset()*vO),Nw);break;case"minute":y=this._d.valueOf(),y-=_O(y,vO);break;case"second":y=this._d.valueOf(),y-=_O(y,ww);break}return this._d.setTime(y),t.updateOffset(this,!0),this}function rpt(m){var y,I;if(m=qe(m),m===void 0||m==="millisecond"||!this.isValid())return this;switch(I=this._isUTC?Kpe:Gpe,m){case"year":y=I(this.year()+1,0,1)-1;break;case"quarter":y=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":y=I(this.year(),this.month()+1,1)-1;break;case"week":y=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":y=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":y=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":y=this._d.valueOf(),y+=Nw-_O(y+(this._isUTC?0:this.utcOffset()*vO),Nw)-1;break;case"minute":y=this._d.valueOf(),y+=vO-_O(y,vO)-1;break;case"second":y=this._d.valueOf(),y+=ww-_O(y,ww)-1;break}return this._d.setTime(y),t.updateOffset(this,!0),this}function npt(){return this._d.valueOf()-(this._offset||0)*6e4}function ipt(){return Math.floor(this.valueOf()/1e3)}function apt(){return new Date(this.valueOf())}function spt(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]}function opt(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}}function cpt(){return this.isValid()?this.toISOString():null}function ppt(){return A(this)}function lpt(){return d({},h(this))}function dpt(){return h(this).overflow}function upt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}W("N",0,0,"eraAbbr"),W("NN",0,0,"eraAbbr"),W("NNN",0,0,"eraAbbr"),W("NNNN",0,0,"eraName"),W("NNNNN",0,0,"eraNarrow"),W("y",["y",1],"yo","eraYear"),W("y",["yy",2],0,"eraYear"),W("y",["yyy",3],0,"eraYear"),W("y",["yyyy",4],0,"eraYear"),We("N",bU),We("NN",bU),We("NNN",bU),We("NNNN",vpt),We("NNNNN",_pt),vt(["N","NN","NNN","NNNN","NNNNN"],function(m,y,I,F){var te=I._locale.erasParse(m,F,I._strict);te?h(I).era=te:h(I).invalidEra=m}),We("y",e0),We("yy",e0),We("yyy",e0),We("yyyy",e0),We("yo",qpt),vt(["y","yy","yyy","yyyy"],b0),vt(["yo"],function(m,y,I,F){var te;I._locale._eraYearOrdinalRegex&&(te=m.match(I._locale._eraYearOrdinalRegex)),I._locale.eraYearOrdinalParse?y[b0]=I._locale.eraYearOrdinalParse(m,te):y[b0]=parseInt(m,10)});function fpt(m,y){var I,F,te,Se=this._eras||Ue("en")._eras;for(I=0,F=Se.length;I<F;++I){switch(typeof Se[I].since){case"string":te=t(Se[I].since).startOf("day"),Se[I].since=te.valueOf();break}switch(typeof Se[I].until){case"undefined":Se[I].until=1/0;break;case"string":te=t(Se[I].until).startOf("day").valueOf(),Se[I].until=te.valueOf();break}}return Se}function mpt(m,y,I){var F,te,Se=this.eras(),Ze,t0,B0;for(m=m.toUpperCase(),F=0,te=Se.length;F<te;++F)if(Ze=Se[F].name.toUpperCase(),t0=Se[F].abbr.toUpperCase(),B0=Se[F].narrow.toUpperCase(),I)switch(y){case"N":case"NN":case"NNN":if(t0===m)return Se[F];break;case"NNNN":if(Ze===m)return Se[F];break;case"NNNNN":if(B0===m)return Se[F];break}else if([Ze,t0,B0].indexOf(m)>=0)return Se[F]}function bpt(m,y){var I=m.since<=m.until?1:-1;return y===void 0?t(m.since).year():t(m.since).year()+(y-m.offset)*I}function hpt(){var m,y,I,F=this.localeData().eras();for(m=0,y=F.length;m<y;++m)if(I=this.clone().startOf("day").valueOf(),F[m].since<=I&&I<=F[m].until||F[m].until<=I&&I<=F[m].since)return F[m].name;return""}function Mpt(){var m,y,I,F=this.localeData().eras();for(m=0,y=F.length;m<y;++m)if(I=this.clone().startOf("day").valueOf(),F[m].since<=I&&I<=F[m].until||F[m].until<=I&&I<=F[m].since)return F[m].narrow;return""}function Opt(){var m,y,I,F=this.localeData().eras();for(m=0,y=F.length;m<y;++m)if(I=this.clone().startOf("day").valueOf(),F[m].since<=I&&I<=F[m].until||F[m].until<=I&&I<=F[m].since)return F[m].abbr;return""}