@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
4 lines • 62.6 kB
JavaScript
var Li=Object.create;var qe=Object.defineProperty;var Ui=Object.getOwnPropertyDescriptor;var Ii=Object.getOwnPropertyNames;var Hi=Object.getPrototypeOf,Ei=Object.prototype.hasOwnProperty;var bs=(f,o)=>()=>(o||f((o={exports:{}}).exports,o),o.exports),Ai=(f,o)=>{for(var P in o)qe(f,P,{get:o[P],enumerable:!0})},xs=(f,o,P,v)=>{if(o&&typeof o=="object"||typeof o=="function")for(let b of Ii(o))!Ei.call(f,b)&&b!==P&&qe(f,b,{get:()=>o[b],enumerable:!(v=Ui(o,b))||v.enumerable});return f};var Vi=(f,o,P)=>(P=f!=null?Li(Hi(f)):{},xs(o||!f||!f.__esModule?qe(P,"default",{value:f,enumerable:!0}):P,f)),Gi=f=>xs(qe({},"__esModule",{value:!0}),f);var Ns=bs((xt,_e)=>{(function(f,o){typeof xt=="object"&&typeof _e<"u"?_e.exports=o():typeof define=="function"&&define.amd?define(o):f.moment=o()})(xt,function(){"use strict";var f;function o(){return f.apply(null,arguments)}function P(e){f=e}function v(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function b(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Je(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(k(e,t))return!1;return!0}function N(e){return e===void 0}function G(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ye(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Pt(e,t){var s=[],r,a=e.length;for(r=0;r<a;++r)s.push(t(e[r],r));return s}function K(e,t){for(var s in t)k(t,s)&&(e[s]=t[s]);return k(t,"toString")&&(e.toString=t.toString),k(t,"valueOf")&&(e.valueOf=t.valueOf),e}function H(e,t,s,r){return ns(e,t,s,r,!0).utc()}function Ls(){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 m(e){return e._pf==null&&(e._pf=Ls()),e._pf}var Qe;Array.prototype.some?Qe=Array.prototype.some:Qe=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Xe(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=m(e),s=Qe.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Te(e){var t=H(NaN);return e!=null?K(m(t),e):m(t).userInvalidated=!0,t}var Rt=o.momentProperties=[],Ke=!1;function et(e,t){var s,r,a,n=Rt.length;if(N(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),N(t._i)||(e._i=t._i),N(t._f)||(e._f=t._f),N(t._l)||(e._l=t._l),N(t._strict)||(e._strict=t._strict),N(t._tzm)||(e._tzm=t._tzm),N(t._isUTC)||(e._isUTC=t._isUTC),N(t._offset)||(e._offset=t._offset),N(t._pf)||(e._pf=m(t)),N(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=Rt[s],a=t[r],N(a)||(e[r]=a);return e}function we(e){et(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ke===!1&&(Ke=!0,o.updateOffset(this),Ke=!1)}function L(e){return e instanceof we||e!=null&&e._isAMomentObject!=null}function Ft(e){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function R(e,t){var s=!0;return K(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,e),s){var r=[],a,n,i,u=arguments.length;for(n=0;n<u;n++){if(a="",typeof arguments[n]=="object"){a+=`
[`+n+"] ";for(i in arguments[0])k(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}Ft(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var Ct={};function Lt(e,t){o.deprecationHandler!=null&&o.deprecationHandler(e,t),Ct[e]||(Ft(t),Ct[e]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function E(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Us(e){var t,s;for(s in e)k(e,s)&&(t=e[s],E(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function tt(e,t){var s=K({},e),r;for(r in t)k(t,r)&&(b(e[r])&&b(t[r])?(s[r]={},K(s[r],e[r]),K(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)k(e,r)&&!k(t,r)&&b(e[r])&&(s[r]=K({},s[r]));return s}function st(e){e!=null&&this.set(e)}var rt;Object.keys?rt=Object.keys:rt=function(e){var t,s=[];for(t in e)k(e,t)&&s.push(t);return s};var Is={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Hs(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,s):r}function A(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var at=/(\[[^\[]*\])|(\\)?([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,be=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,nt={},ie={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(ie[e]=a),t&&(ie[t[0]]=function(){return A(a.apply(this,arguments),t[1],t[2])}),s&&(ie[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Es(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function As(e){var t=e.match(at),s,r;for(s=0,r=t.length;s<r;s++)ie[t[s]]?t[s]=ie[t[s]]:t[s]=Es(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=E(t[i])?t[i].call(a,e):t[i];return n}}function xe(e,t){return e.isValid()?(t=Ut(t,e.localeData()),nt[t]=nt[t]||As(t),nt[t](e)):e.localeData().invalidDate()}function Ut(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(be.lastIndex=0;s>=0&&be.test(e);)e=e.replace(be,r),be.lastIndex=0,s-=1;return e}var Vs={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 Gs(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(at).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var js="Invalid date";function zs(){return this._invalidDate}var Zs="%d",$s=/\d{1,2}/;function qs(e){return this._ordinal.replace("%d",e)}var Bs={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 Js(e,t,s,r){var a=this._relativeTime[s];return E(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Qs(e,t){var s=this._relativeTime[e>0?"future":"past"];return E(s)?s(t):s.replace(/%s/i,t)}var It={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return typeof e=="string"?It[e]||It[e.toLowerCase()]:void 0}function it(e){var t={},s,r;for(r in e)k(e,r)&&(s=F(r),s&&(t[s]=e[r]));return t}var Xs={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 Ks(e){var t=[],s;for(s in e)k(e,s)&&t.push({unit:s,priority:Xs[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Ht=/\d/,W=/\d\d/,Et=/\d{3}/,ot=/\d{4}/,Ne=/[+-]?\d{6}/,S=/\d\d?/,At=/\d\d\d\d?/,Vt=/\d\d\d\d\d\d?/,We=/\d{1,3}/,lt=/\d{1,4}/,Pe=/[+-]?\d{1,6}/,oe=/\d+/,Re=/[+-]?\d+/,er=/Z|[+-]\d\d:?\d\d/gi,Fe=/Z|[+-]\d\d(?::?\d\d)?/gi,tr=/[+-]?\d+(\.\d{1,3})?/,ke=/[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,le=/^[1-9]\d?/,ut=/^([1-9]\d|\d)/,Ce;Ce={};function d(e,t,s){Ce[e]=E(t)?t:function(r,a){return r&&s?s:t}}function sr(e,t){return k(Ce,e)?Ce[e](t._strict,t._locale):new RegExp(rr(e))}function rr(e){return j(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function j(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=C(t)),s}var dt={};function g(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),G(t)&&(r=function(n,i){i[t]=_(n)}),a=e.length,s=0;s<a;s++)dt[e[s]]=r}function Me(e,t){g(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function ar(e,t,s){t!=null&&k(dt,e)&&dt[e](t,s._a,s,e)}function Le(e){return e%4===0&&e%100!==0||e%400===0}var T=0,z=1,V=2,O=3,U=4,Z=5,re=6,nr=7,ir=8;h("Y",0,0,function(){var e=this.year();return e<=9999?A(e,4):"+"+e}),h(0,["YY",2],0,function(){return this.year()%100}),h(0,["YYYY",4],0,"year"),h(0,["YYYYY",5],0,"year"),h(0,["YYYYYY",6,!0],0,"year"),d("Y",Re),d("YY",S,W),d("YYYY",lt,ot),d("YYYYY",Pe,Ne),d("YYYYYY",Pe,Ne),g(["YYYYY","YYYYYY"],T),g("YYYY",function(e,t){t[T]=e.length===2?o.parseTwoDigitYear(e):_(e)}),g("YY",function(e,t){t[T]=o.parseTwoDigitYear(e)}),g("Y",function(e,t){t[T]=parseInt(e,10)});function ge(e){return Le(e)?366:365}o.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Gt=ue("FullYear",!0);function or(){return Le(this.year())}function ue(e,t){return function(s){return s!=null?(jt(this,e,s),o.updateOffset(this,t),this):Se(this,e)}}function Se(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function jt(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!Le(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function lr(e){return e=F(e),E(this[e])?this[e]():this}function ur(e,t){if(typeof e=="object"){e=it(e);var s=Ks(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=F(e),E(this[e]))return this[e](t);return this}function dr(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ht(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=dr(t,12);return e+=(t-s)/12,s===1?Le(e)?29:28:31-s%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1}),h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),h("MMMM",0,0,function(e){return this.localeData().months(this,e)}),d("M",S,le),d("MM",S,W),d("MMM",function(e,t){return t.monthsShortRegex(e)}),d("MMMM",function(e,t){return t.monthsRegex(e)}),g(["M","MM"],function(e,t){t[z]=_(e)-1}),g(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[z]=a:m(s).invalidMonth=e});var hr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fr=ke,cr=ke;function mr(e,t){return e?v(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zt).test(t)?"format":"standalone"][e.month()]:v(this._months)?this._months:this._months.standalone}function _r(e,t){return e?v(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zt.test(t)?"format":"standalone"][e.month()]:v(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function yr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=H([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=Y.call(this._shortMonthsParse,i),a!==-1?a:null):(a=Y.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=Y.call(this._shortMonthsParse,i),a!==-1?a:(a=Y.call(this._longMonthsParse,i),a!==-1?a:null)):(a=Y.call(this._longMonthsParse,i),a!==-1?a:(a=Y.call(this._shortMonthsParse,i),a!==-1?a:null))}function wr(e,t,s){var r,a,n;if(this._monthsParseExact)return yr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=H([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function $t(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!G(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,ht(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function qt(e){return e!=null?($t(this,e),o.updateOffset(this,!0),this):Se(this,"Month")}function kr(){return ht(this.year(),this.month())}function Mr(e){return this._monthsParseExact?(k(this,"_monthsRegex")||Bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=fr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gr(e){return this._monthsParseExact?(k(this,"_monthsRegex")||Bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=cr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Bt(){function e(c,y){return y.length-c.length}var t=[],s=[],r=[],a,n,i,u;for(a=0;a<12;a++)n=H([2e3,a]),i=j(this.monthsShort(n,"")),u=j(this.months(n,"")),t.push(i),s.push(u),r.push(u),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Sr(e,t,s,r,a,n,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function De(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ue(e,t,s){var r=7+t-s,a=(7+De(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Jt(e,t,s,r,a){var n=(7+s-r)%7,i=Ue(e,r,a),u=1+7*(t-1)+n+i,c,y;return u<=0?(c=e-1,y=ge(c)+u):u>ge(e)?(c=e+1,y=u-ge(e)):(c=e,y=u),{year:c,dayOfYear:y}}function pe(e,t,s){var r=Ue(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+$(i,t,s)):a>$(e.year(),t,s)?(n=a-$(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function $(e,t,s){var r=Ue(e,t,s),a=Ue(e+1,t,s);return(ge(e)-r+a)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),d("w",S,le),d("ww",S,W),d("W",S,le),d("WW",S,W),Me(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=_(e)});function Dr(e){return pe(e,this._week.dow,this._week.doy).week}var pr={dow:0,doy:6};function Yr(){return this._week.dow}function vr(){return this._week.doy}function Or(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Tr(e){var t=pe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),d("d",S),d("e",S),d("E",S),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:m(s).invalidWeekday=e}),Me(["d","e","E"],function(e,t,s,r){t[r]=_(e)});function br(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function xr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Nr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pr=ke,Rr=ke,Fr=ke;function Cr(e,t){var s=v(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ft(s,this._week.dow):e?s[e.day()]:s}function Lr(e){return e===!0?ft(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ur(e){return e===!0?ft(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ir(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=H([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1||(a=Y.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=Y.call(this._minWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Hr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Ir.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=H([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Er(e){if(!this.isValid())return e!=null?this:NaN;var t=Se(this,"Day");return e!=null?(e=br(e,this.localeData()),this.add(e-t,"d")):t}function Ar(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Vr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=xr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Gr(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=Pr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function jr(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function zr(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ct(){function e(x,X){return X.length-x.length}var t=[],s=[],r=[],a=[],n,i,u,c,y;for(n=0;n<7;n++)i=H([2e3,1]).day(n),u=j(this.weekdaysMin(i,"")),c=j(this.weekdaysShort(i,"")),y=j(this.weekdays(i,"")),t.push(u),s.push(c),r.push(y),a.push(u),a.push(c),a.push(y);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mt(){return this.hours()%12||12}function Zr(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,mt),h("k",["kk",2],0,Zr),h("hmm",0,0,function(){return""+mt.apply(this)+A(this.minutes(),2)}),h("hmmss",0,0,function(){return""+mt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)});function Xt(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Xt("a",!0),Xt("A",!1);function Kt(e,t){return t._meridiemParse}d("a",Kt),d("A",Kt),d("H",S,ut),d("h",S,le),d("k",S,le),d("HH",S,W),d("hh",S,W),d("kk",S,W),d("hmm",At),d("hmmss",Vt),d("Hmm",At),d("Hmmss",Vt),g(["H","HH"],O),g(["k","kk"],function(e,t,s){var r=_(e);t[O]=r===24?0:r}),g(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),g(["h","hh"],function(e,t,s){t[O]=_(e),m(s).bigHour=!0}),g("hmm",function(e,t,s){var r=e.length-2;t[O]=_(e.substr(0,r)),t[U]=_(e.substr(r)),m(s).bigHour=!0}),g("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[O]=_(e.substr(0,r)),t[U]=_(e.substr(r,2)),t[Z]=_(e.substr(a)),m(s).bigHour=!0}),g("Hmm",function(e,t,s){var r=e.length-2;t[O]=_(e.substr(0,r)),t[U]=_(e.substr(r))}),g("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[O]=_(e.substr(0,r)),t[U]=_(e.substr(r,2)),t[Z]=_(e.substr(a))});function $r(e){return(e+"").toLowerCase().charAt(0)==="p"}var qr=/[ap]\.?m?\.?/i,Br=ue("Hours",!0);function Jr(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var es={calendar:Is,longDateFormat:Vs,invalidDate:js,ordinal:Zs,dayOfMonthOrdinalParse:$s,relativeTime:Bs,months:hr,monthsShort:zt,week:pr,weekdays:Nr,weekdaysMin:Wr,weekdaysShort:Qt,meridiemParse:qr},p={},Ye={},ve;function Qr(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function ts(e){return e&&e.toLowerCase().replace("_","-")}function Xr(e){for(var t=0,s,r,a,n;t<e.length;){for(n=ts(e[t]).split("-"),s=n.length,r=ts(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=Ie(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Qr(n,r)>=s-1)break;s--}t++}return ve}function Kr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ie(e){var t=null,s;if(p[e]===void 0&&typeof _e<"u"&&_e&&_e.exports&&Kr(e))try{t=ve._abbr,s=require,s("./locale/"+e),ee(t)}catch{p[e]=null}return p[e]}function ee(e,t){var s;return e&&(N(t)?s=q(e):s=_t(e,t),s?ve=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ve._abbr}function _t(e,t){if(t!==null){var s,r=es;if(t.abbr=e,p[e]!=null)Lt("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."),r=p[e]._config;else if(t.parentLocale!=null)if(p[t.parentLocale]!=null)r=p[t.parentLocale]._config;else if(s=Ie(t.parentLocale),s!=null)r=s._config;else return Ye[t.parentLocale]||(Ye[t.parentLocale]=[]),Ye[t.parentLocale].push({name:e,config:t}),null;return p[e]=new st(tt(r,t)),Ye[e]&&Ye[e].forEach(function(a){_t(a.name,a.config)}),ee(e),p[e]}else return delete p[e],null}function ea(e,t){if(t!=null){var s,r,a=es;p[e]!=null&&p[e].parentLocale!=null?p[e].set(tt(p[e]._config,t)):(r=Ie(e),r!=null&&(a=r._config),t=tt(a,t),r==null&&(t.abbr=e),s=new st(t),s.parentLocale=p[e],p[e]=s),ee(e)}else p[e]!=null&&(p[e].parentLocale!=null?(p[e]=p[e].parentLocale,e===ee()&&ee(e)):p[e]!=null&&delete p[e]);return p[e]}function q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ve;if(!v(e)){if(t=Ie(e),t)return t;e=[e]}return Xr(e)}function ta(){return rt(p)}function yt(e){var t,s=e._a;return s&&m(e).overflow===-2&&(t=s[z]<0||s[z]>11?z:s[V]<1||s[V]>ht(s[T],s[z])?V:s[O]<0||s[O]>24||s[O]===24&&(s[U]!==0||s[Z]!==0||s[re]!==0)?O:s[U]<0||s[U]>59?U:s[Z]<0||s[Z]>59?Z:s[re]<0||s[re]>999?re:-1,m(e)._overflowDayOfYear&&(t<T||t>V)&&(t=V),m(e)._overflowWeeks&&t===-1&&(t=nr),m(e)._overflowWeekday&&t===-1&&(t=ir),m(e).overflow=t),e}var sa=/^\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)?)?$/,ra=/^\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)?)?$/,aa=/Z|[+-]\d\d(?::?\d\d)?/,He=[["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]],wt=[["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/]],na=/^\/?Date\((-?\d+)/i,ia=/^(?:(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}))$/,oa={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 ss(e){var t,s,r=e._i,a=sa.exec(r)||ra.exec(r),n,i,u,c,y=He.length,x=wt.length;if(a){for(m(e).iso=!0,t=0,s=y;t<s;t++)if(He[t][1].exec(a[1])){i=He[t][0],n=He[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,s=x;t<s;t++)if(wt[t][1].exec(a[3])){u=(a[2]||" ")+wt[t][0];break}if(u==null){e._isValid=!1;return}}if(!n&&u!=null){e._isValid=!1;return}if(a[4])if(aa.exec(a[4]))c="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(c||""),Mt(e)}else e._isValid=!1}function la(e,t,s,r,a,n){var i=[ua(e),zt.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function ua(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function da(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ha(e,t,s){if(e){var r=Qt.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return m(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function fa(e,t,s){if(e)return oa[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function rs(e){var t=ia.exec(da(e._i)),s;if(t){if(s=la(t[4],t[3],t[2],t[5],t[6],t[7]),!ha(t[1],s,e))return;e._a=s,e._tzm=fa(t[8],t[9],t[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function ca(e){var t=na.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ss(e),e._isValid===!1)delete e._isValid;else return;if(rs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:o.createFromInputFallback(e)}o.createFromInputFallback=R("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function de(e,t,s){return e??t??s}function ma(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function kt(e){var t,s,r=[],a,n,i;if(!e._d){for(a=ma(e),e._w&&e._a[V]==null&&e._a[z]==null&&_a(e),e._dayOfYear!=null&&(i=de(e._a[T],a[T]),(e._dayOfYear>ge(i)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),s=De(i,0,e._dayOfYear),e._a[z]=s.getUTCMonth(),e._a[V]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[O]===24&&e._a[U]===0&&e._a[Z]===0&&e._a[re]===0&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?De:Sr).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(m(e).weekdayMismatch=!0)}}function _a(e){var t,s,r,a,n,i,u,c,y;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=de(t.GG,e._a[T],pe(D(),1,4).year),r=de(t.W,1),a=de(t.E,1),(a<1||a>7)&&(c=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,y=pe(D(),n,i),s=de(t.gg,e._a[T],y.year),r=de(t.w,y.week),t.d!=null?(a=t.d,(a<0||a>6)&&(c=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(c=!0)):a=n),r<1||r>$(s,n,i)?m(e)._overflowWeeks=!0:c!=null?m(e)._overflowWeekday=!0:(u=Jt(s,r,a,n,i),e._a[T]=u.year,e._dayOfYear=u.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Mt(e){if(e._f===o.ISO_8601){ss(e);return}if(e._f===o.RFC_2822){rs(e);return}e._a=[],m(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,c=0,y,x;for(a=Ut(e._f,e._locale).match(at)||[],x=a.length,s=0;s<x;s++)n=a[s],r=(t.match(sr(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&m(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ie[n]?(r?m(e).empty=!1:m(e).unusedTokens.push(n),ar(n,r,e)):e._strict&&!r&&m(e).unusedTokens.push(n);m(e).charsLeftOver=u-c,t.length>0&&m(e).unusedInput.push(t),e._a[O]<=12&&m(e).bigHour===!0&&e._a[O]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[O]=ya(e._locale,e._a[O],e._meridiem),y=m(e).era,y!==null&&(e._a[T]=e._locale.erasConvertYear(y,e._a[T])),kt(e),yt(e)}function ya(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function wa(e){var t,s,r,a,n,i,u=!1,c=e._f.length;if(c===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<c;a++)n=0,i=!1,t=et({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Mt(t),Xe(t)&&(i=!0),n+=m(t).charsLeftOver,n+=m(t).unusedTokens.length*10,m(t).score=n,u?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(u=!0));K(e,s||t)}function ka(e){if(!e._d){var t=it(e._i),s=t.day===void 0?t.date:t.day;e._a=Pt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),kt(e)}}function Ma(e){var t=new we(yt(as(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function as(e){var t=e._i,s=e._f;return e._locale=e._locale||q(e._l),t===null||s===void 0&&t===""?Te({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),L(t)?new we(yt(t)):(ye(t)?e._d=t:v(s)?wa(e):s?Mt(e):ga(e),Xe(e)||(e._d=null),e))}function ga(e){var t=e._i;N(t)?e._d=new Date(o.now()):ye(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ca(e):v(t)?(e._a=Pt(t.slice(0),function(s){return parseInt(s,10)}),kt(e)):b(t)?ka(e):G(t)?e._d=new Date(t):o.createFromInputFallback(e)}function ns(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(b(e)&&Je(e)||v(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,Ma(n)}function D(e,t,s,r){return ns(e,t,s,r,!1)}var Sa=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Te()}),Da=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Te()});function is(e,t){var s,r;if(t.length===1&&v(t[0])&&(t=t[0]),!t.length)return D();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function pa(){var e=[].slice.call(arguments,0);return is("isBefore",e)}function Ya(){var e=[].slice.call(arguments,0);return is("isAfter",e)}var va=function(){return Date.now?Date.now():+new Date},Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Oa(e){var t,s=!1,r,a=Oe.length;for(t in e)if(k(e,t)&&!(Y.call(Oe,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[Oe[r]]){if(s)return!1;parseFloat(e[Oe[r]])!==_(e[Oe[r]])&&(s=!0)}return!0}function Ta(){return this._isValid}function ba(){return I(NaN)}function Ee(e){var t=it(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,c=t.minute||0,y=t.second||0,x=t.millisecond||0;this._isValid=Oa(t),this._milliseconds=+x+y*1e3+c*6e4+u*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=q(),this._bubble()}function Ae(e){return e instanceof Ee}function gt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function xa(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(s&&e[i]!==t[i]||!s&&_(e[i])!==_(t[i]))&&n++;return n+a}function os(e,t){h(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+A(~~(s/60),2)+t+A(~~s%60,2)})}os("Z",":"),os("ZZ",""),d("Z",Fe),d("ZZ",Fe),g(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=St(Fe,e)});var Na=/([\+\-]|\d\d)/gi;function St(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(Na)||["-",0,0],n=+(a[1]*60)+_(a[2]),n===0?0:a[0]==="+"?n:-n)}function Dt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(L(e)||ye(e)?e.valueOf():D(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),o.updateOffset(s,!1),s):D(e).local()}function pt(e){return-Math.round(e._d.getTimezoneOffset())}o.updateOffset=function(){};function Wa(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=St(Fe,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=pt(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?hs(this,I(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:pt(this)}function Pa(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ra(e){return this.utcOffset(0,e)}function Fa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pt(this),"m")),this}function Ca(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=St(er,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function La(e){return this.isValid()?(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ua(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ia(){if(!N(this._isDSTShifted))return this._isDSTShifted;var e={},t;return et(e,this),e=as(e),e._a?(t=e._isUTC?H(e._a):D(e._a),this._isDSTShifted=this.isValid()&&xa(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ha(){return this.isValid()?!this._isUTC:!1}function Ea(){return this.isValid()?this._isUTC:!1}function ls(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Aa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Va=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function I(e,t){var s=e,r=null,a,n,i;return Ae(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:G(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Aa.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:_(r[V])*a,h:_(r[O])*a,m:_(r[U])*a,s:_(r[Z])*a,ms:_(gt(r[re]*1e3))*a}):(r=Va.exec(e))?(a=r[1]==="-"?-1:1,s={y:ae(r[2],a),M:ae(r[3],a),w:ae(r[4],a),d:ae(r[5],a),h:ae(r[6],a),m:ae(r[7],a),s:ae(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Ga(D(s.from),D(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ee(s),Ae(e)&&k(e,"_locale")&&(n._locale=e._locale),Ae(e)&&k(e,"_isValid")&&(n._isValid=e._isValid),n}I.fn=Ee.prototype,I.invalid=ba;function ae(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function us(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Ga(e,t){var s;return e.isValid()&&t.isValid()?(t=Dt(t,e),e.isBefore(t)?s=us(e,t):(s=us(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function ds(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Lt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=I(s,r),hs(this,a,e),this}}function hs(e,t,s,r){var a=t._milliseconds,n=gt(t._days),i=gt(t._months);e.isValid()&&(r=r??!0,i&&$t(e,Se(e,"Month")+i*s),n&&jt(e,"Date",Se(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&o.updateOffset(e,n||i))}var ja=ds(1,"add"),za=ds(-1,"subtract");function fs(e){return typeof e=="string"||e instanceof String}function Za(e){return L(e)||ye(e)||fs(e)||G(e)||qa(e)||$a(e)||e===null||e===void 0}function $a(e){var t=b(e)&&!Je(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||k(e,n);return t&&s}function qa(e){var t=v(e),s=!1;return t&&(s=e.filter(function(r){return!G(r)&&fs(e)}).length===0),t&&s}function Ba(e){var t=b(e)&&!Je(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||k(e,n);return t&&s}function Ja(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Qa(e,t){arguments.length===1&&(arguments[0]?Za(arguments[0])?(e=arguments[0],t=void 0):Ba(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||D(),r=Dt(s,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",n=t&&(E(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,D(s)))}function Xa(){return new we(this)}function Ka(e,t){var s=L(e)?e:D(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function en(e,t){var s=L(e)?e:D(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function tn(e,t,s,r){var a=L(e)?e:D(e),n=L(t)?t:D(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function sn(e,t){var s=L(e)?e:D(e),r;return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function rn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function an(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nn(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=Dt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=F(t),t){case"year":n=Ve(this,r)/12;break;case"month":n=Ve(this,r);break;case"quarter":n=Ve(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:C(n)}function Ve(e,t){if(e.date()<t.date())return-Ve(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function on(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ln(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?xe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xe(s,"Z")):xe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function un(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function dn(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=xe(this,e);return this.localeData().postformat(t)}function hn(e,t){return this.isValid()&&(L(e)&&e.isValid()||D(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.from(D(),e)}function cn(e,t){return this.isValid()&&(L(e)&&e.isValid()||D(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(D(),e)}function cs(e){var t;return e===void 0?this._locale._abbr:(t=q(e),t!=null&&(this._locale=t),this)}var ms=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function _s(){return this._locale}var Ge=1e3,he=60*Ge,je=60*he,ys=(365*400+97)*24*je;function fe(e,t){return(e%t+t)%t}function ws(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-ys:new Date(e,t,s).valueOf()}function ks(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-ys:Date.UTC(e,t,s)}function _n(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ks:ws,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fe(t+(this._isUTC?0:this.utcOffset()*he),je);break;case"minute":t=this._d.valueOf(),t-=fe(t,he);break;case"second":t=this._d.valueOf(),t-=fe(t,Ge);break}return this._d.setTime(t),o.updateOffset(this,!0),this}function yn(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ks:ws,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=je-fe(t+(this._isUTC?0:this.utcOffset()*he),je)-1;break;case"minute":t=this._d.valueOf(),t+=he-fe(t,he)-1;break;case"second":t=this._d.valueOf(),t+=Ge-fe(t,Ge)-1;break}return this._d.setTime(t),o.updateOffset(this,!0),this}function wn(){return this._d.valueOf()-(this._offset||0)*6e4}function kn(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function gn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Sn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dn(){return this.isValid()?this.toISOString():null}function pn(){return Xe(this)}function Yn(){return K({},m(this))}function vn(){return m(this).overflow}function On(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),d("N",Yt),d("NN",Yt),d("NNN",Yt),d("NNNN",Un),d("NNNNN",In),g(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?m(s).era=a:m(s).invalidEra=e}),d("y",oe),d("yy",oe),d("yyy",oe),d("yyyy",oe),d("yo",Hn),g(["y","yy","yyy","yyyy"],T),g(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[T]=s._locale.eraYearOrdinalParse(e,a):t[T]=parseInt(e,10)});function Tn(e,t){var s,r,a,n=this._eras||q("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=o(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=o(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function bn(e,t,s){var r,a,n=this.eras(),i,u,c;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),u=n[r].abbr.toUpperCase(),c=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(u===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(c===e)return n[r];break}else if([i,u,c].indexOf(e)>=0)return n[r]}function xn(e,t){var s=e.since<=e.until?1:-1;return t===void 0?o(e.since).year():o(e.since).year()+(t-e.offset)*s}function Nn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Wn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Pn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Rn(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-o(a[e].since).year())*s+a[e].offset;return this.year()}function Fn(e){return k(this,"_erasNameRegex")||vt.call(this),e?this._erasNameRegex:this._erasRegex}function Cn(e){return k(this,"_erasAbbrRegex")||vt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ln(e){return k(this,"_erasNarrowRegex")||vt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Yt(e,t){return t.erasAbbrRegex(e)}function Un(e,t){return t.erasNameRegex(e)}function In(e,t){return t.erasNarrowRegex(e)}function Hn(e,t){return t._eraYearOrdinalRegex||oe}function vt(){var e=[],t=[],s=[],r=[],a,n,i,u,c,y=this.eras();for(a=0,n=y.length;a<n;++a)i=j(y[a].name),u=j(y[a].abbr),c=j(y[a].narrow),t.push(i),e.push(u),s.push(c),r.push(i),r.push(u),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.