UNPKG

vue-date-range

Version:

A vue component for choosing dates and date ranges. Uses Moment.js for date operations. Support Chinese lunar.

2 lines 314 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.daterange=t():e.daterange=t()}(this,function(){return function(e){function t(n){if(a[n])return a[n].exports;var s=a[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var a={};return t.m=e,t.c=a,t.p="",t(0)}([function(e,t,a){"use strict";t.Calendar=a(2),t.DateRange=a(181)},,function(e,t,a){a(3);var n=a(8)(a(9),a(180),null,null);e.exports=n.exports},function(e,t,a){var n=a(4);"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);a(6)("600e932d",n,!0)},function(e,t,a){t=e.exports=a(5)(),t.push([e.id,".v-date-cell{display:inline-block;font-size:1rem;text-align:center;position:relative}.v-date-cell:hover{cursor:pointer}.v-date-cell .v-date-cell-text{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.v-date-selected{background-color:#23d160;color:#fff}.v-date-fade-enter-active,.v-date-fade-leave-active{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.v-date-fade-leave-to{-webkit-transform:scale(0);transform:scale(0)}.v-date-calendar{background-color:#fff;height:500px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.v-date-calendar,.v-date-calendar .v-date-month-year{display:-webkit-box;display:-webkit-flex;display:flex}.v-date-calendar .v-date-month-year{text-align:center;font-size:1.4rem;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.v-date-calendar .v-date-month-year .v-date-arrow-button{display:inline-block;box-sizing:border-box;width:2rem;padding:0;margin:0 .7rem;border:none;outline:none;background-color:#fff}.v-date-calendar .v-date-month-year .v-date-arrow{display:inline-block;height:100%;line-height:100%;border-top:1px solid #23d160;width:10px;height:10px}.v-date-calendar .v-date-month-year .v-date-arrow.v-date-prev{border-left:1px solid #23d160;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.v-date-calendar .v-date-month-year .v-date-arrow.v-date-next{border-right:1px solid #23d160;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.v-date-calendar .v-date-wrapper{-webkit-box-flex:4;-webkit-flex:4;flex:4;font-size:0;position:relative;overflow:hidden}.v-date-calendar .v-date-wrapper .v-date-week-days{height:10%}.v-date-calendar .v-date-wrapper .v-date-week-days span{display:inline-block;width:14.28%;font-size:1rem;text-align:center}.v-date-calendar .v-date-wrapper .v-date-days{height:90%;font-size:0}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var a=this[t];a[2]?e.push("@media "+a[2]+"{"+a[1]+"}"):e.push(a[1])}return e.join("")},e.i=function(t,a){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},s=0;s<this.length;s++){var r=this[s][0];"number"==typeof r&&(n[r]=!0)}for(s=0;s<t.length;s++){var i=t[s];"number"==typeof i[0]&&n[i[0]]||(a&&!i[2]?i[2]=a:a&&(i[2]="("+i[2]+") and ("+a+")"),e.push(i))}},e}},function(e,t,a){function n(e){for(var t=0;t<e.length;t++){var a=e[t],n=u[a.id];if(n){n.refs++;for(var s=0;s<n.parts.length;s++)n.parts[s](a.parts[s]);for(;s<a.parts.length;s++)n.parts.push(r(a.parts[s]));n.parts.length>a.parts.length&&(n.parts.length=a.parts.length)}else{for(var i=[],s=0;s<a.parts.length;s++)i.push(r(a.parts[s]));u[a.id]={id:a.id,refs:1,parts:i}}}}function s(){var e=document.createElement("style");return e.type="text/css",m.appendChild(e),e}function r(e){var t,a,n=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(n){if(h)return f;n.parentNode.removeChild(n)}if(M){var r=c++;n=l||(l=s()),t=i.bind(null,n,r,!1),a=i.bind(null,n,r,!0)}else n=s(),t=d.bind(null,n),a=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else a()}}function i(e,t,a,n){var s=a?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,s);else{var r=document.createTextNode(s),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(r,i[t]):e.appendChild(r)}}function d(e,t){var a=t.css,n=t.media,s=t.sourceMap;if(n&&e.setAttribute("media",n),s&&(a+="\n/*# sourceURL="+s.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var o="undefined"!=typeof document,_=a(7),u={},m=o&&(document.head||document.getElementsByTagName("head")[0]),l=null,c=0,h=!1,f=function(){},M="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,a){h=a;var s=_(e,t);return n(s),function(t){for(var a=[],r=0;r<s.length;r++){var i=s[r],d=u[i.id];d.refs--,a.push(d)}t?(s=_(e,t),n(s)):s=[];for(var r=0;r<a.length;r++){var d=a[r];if(0===d.refs){for(var o=0;o<d.parts.length;o++)d.parts[o]();delete u[d.id]}}}};var y=function(){var e=[];return function(t,a){return e[t]=a,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var a=[],n={},s=0;s<t.length;s++){var r=t[s],i=r[0],d=r[1],o=r[2],_=r[3],u={id:e+":"+s,css:d,media:o,sourceMap:_};n[i]?n[i].parts.push(u):a.push(n[i]={id:i,parts:[u]})}return a}},function(e,t){e.exports=function(e,t,a,n){var s,r=e=e||{},i=typeof e.default;"object"!==i&&"function"!==i||(s=e,r=e.default);var d="function"==typeof r?r.options:r;if(t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns),a&&(d._scopeId=a),n){var o=Object.create(d.computed||null);Object.keys(n).forEach(function(e){var t=n[e];o[e]=function(){return t}}),d.computed=o}return{esModule:s,exports:r,options:d}}},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=a(10),r=n(s),i=a(136),d=n(i),o=a(164),_=n(o),u=a(170),m=n(u),l=a(175),c=n(l),h=a(168),f=n(h),M=a(162);t.default={components:{DayCell:d.default,MonthCell:_.default,PageTransition:c.default,YearCell:m.default},props:{openTransition:{type:Boolean,default:!0},dayClassFunc:{type:Function,default:null},showLunar:{type:Boolean,default:!1},firstDayOfWeek:{type:Number,default:function(){return r.default.localeData().firstDayOfWeek()}},dayOfMonthProp:{type:Object,default:null},disableDaysBeforeToday:{type:Boolean},daysDisabledStart:{type:Object,default:null},daysDisabledEnd:{type:Object,default:null},disabledFunc:{type:Function,default:null},range:{type:Object,default:null},lang:{type:String,default:"zh"},syncDate:{type:Object},value:{type:Object},monthYearFormat:{default:"MM - YYYY",type:String}},data:function(){var e=void 0;return e=this.$options.propsData.hasOwnProperty("value")?this.value.clone():this.syncDate?this.syncDate.clone():this.range&&this.range.startDate?this.range.startDate.clone():(0,r.default)(),{locals:f.default,displayLevel:1,weekDays:[],dayOfMonth:this.dayOfMonthProp&&this.dayOfMonthProp.clone()||e.clone(),date:e.clone(),toggleShow:!0,moveDirection:"move-right"}},watch:{range:function(e){this.date=e.startDate,this.resetDayOfMonth()},syncDate:function(e){this.date=e,this.resetDayOfMonth()},value:function(e){this.date=e,this.resetDayOfMonth()}},computed:{formatMonthYear:function(){var e=this.displayLevel,t=this.dayOfMonth,a=this.monthYearFormat,n=this.yearList;switch(e){case 1:return t.format(a);case 2:return t.format("YYYY");case 3:return n[0]+"-"+n[11]}},monthList:function(){for(var e=[],t=0;t<12;t++){var a=this.dayOfMonth.clone().month(t);e.push(a)}return e},yearList:function(){for(var e=this.dayOfMonth.year(),t=10*Math.floor((e-M.START_YEAR)/10)+M.START_YEAR,a=[],n=0;n<12;n++)a.push(t+n);return a},dayList:function(){for(var e=[],t=this.firstDayOfWeek,a=this.dayOfMonth.startOf("month").isoWeekday(),n=this.dayOfMonth.month(),s=this.dayOfMonth.daysInMonth(),r=this.dayOfMonth.clone().month(n-1),i=r.daysInMonth(),d=this.dayOfMonth.clone().month(n+1),o=Math.abs(t-(a+7))%7,_=o-1;_>=0;_--){var u=r.clone().date(i-_);e.push({dayMoment:u,isPassive:!0,isCurrentMonth:!1})}for(var m=1;m<=s;m++){var l=this.dayOfMonth.clone().date(m),c=this.isPassive(l);e.push({dayMoment:l,isPassive:c,isCurrentMonth:!0})}for(var h=42-e.length,f=1;f<=h;f++){var M=d.clone().date(f);e.push({dayMoment:M,isPassive:!0,isCurrentMonth:!1})}return e}},created:function(){this.initWeekDays()},mounted:function(){},methods:{dayKey:function(e){return e.unix?e.unix():e.dayMoment.unix()},isPassive:function(e){var t=this.disableDaysBeforeToday,a=this.daysDisabledStart,n=this.daysDisabledEnd,s=this.disabledFunc;if(s)return s(e);if(a&&n){if(Number(e.diff(a,"days"))>=0&&Number(e.diff(n,"days"))<0)return!0}else if(a){if(Number(e.diff(a,"days"))>=0)return!0}else if(this.daysDisabledEnd&&Number(e.diff(n,"days"))<0)return!0;var i=(0,r.default)();return!!(t&&Number(e.diff(i,"days"))<=-1)||void 0},resetDayOfMonth:function(){var e=this.date,t=this.dayOfMonth;if(e&&(0,M.formatter)(e,"YYYY-MM")!==(0,M.formatter)(t,"YYYY-MM")){var a=Number(e.diff(t,"months"));a=a<=0?a-1:a,t.add(a,"months"),this.dayOfMonth=t.clone()}},initWeekDays:function(){for(var e=this.firstDayOfWeek,t=e;t<7+e;t++){var a=t%7;this.weekDays.push(f.default[this.lang].days[a])}},emitVal:function(){var e=this.date;this.$emit("update:syncDate",e),this.$emit("input",e),this.$emit("change",e)},handleDayClick:function(e){this.date=e.dayMoment,this.emitVal()},handleMonthClick:function(e){this.dayOfMonth.year(e.year()).month(e.month()),this.dayOfMonth=this.dayOfMonth.clone(),this.displayLevel--},handleYearClick:function(e){this.dayOfMonth.year(e),this.dayOfMonth=this.dayOfMonth.clone(),this.displayLevel--},handleMonthYearClick:function(){3!==this.displayLevel&&this.displayLevel++},changeMonthYear:function(e){this.toggleShow=!this.toggleShow,e>0?this.moveDirection="move-left":this.moveDirection="move-right";var t=this.displayLevel;switch(t){case 1:return void this.change(e,"months");case 2:return void this.change(e,"years");case 3:return void this.change(10*e,"years")}},change:function(e,t){this.dayOfMonth.add(e,t),this.dayOfMonth=this.dayOfMonth.clone()}}}},function(e,t,a){(function(e){!function(t,a){e.exports=a()}(this,function(){"use strict";function t(){return Hn.apply(null,arguments)}function n(e){Hn=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function d(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function _(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var a in t)m(t,a)&&(e[a]=t[a]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,a,n){return Tt(e,t,a,n,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=h()),e._pf}function M(e){if(null==e._isValid){var t=f(e),a=jn.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function y(e){var t=c(NaN);return null!=e?l(f(t),e):f(t).userInvalidated=!0,t}function L(e,t){var a,n,s;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=f(t)),d(t._locale)||(e._locale=t._locale),xn.length>0)for(a=0;a<xn.length;a++)n=xn[a],s=t[n],d(s)||(e[n]=s);return e}function Y(e){L(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),On===!1&&(On=!0,t.updateOffset(this),On=!1)}function p(e){return e instanceof Y||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=b(t)),a}function D(e,t,a){var n,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(n=0;n<s;n++)(a&&e[n]!==t[n]||!a&&k(e[n])!==k(t[n]))&&i++;return i+r}function g(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function v(e,a){var n=!0;return l(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){for(var s,r=[],i=0;i<arguments.length;i++){if(s="","object"==typeof arguments[i]){s+="\n["+i+"] ";for(var d in arguments[0])s+=d+": "+arguments[0][d]+", ";s=s.slice(0,-2)}else s=arguments[i];r.push(s)}g(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return a.apply(this,arguments)},a)}function T(e,a){null!=t.deprecationHandler&&t.deprecationHandler(e,a),Pn[e]||(g(a),Pn[e]=!0)}function w(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e){var t,a;for(a in e)t=e[a],w(t)?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function H(e,t){var a,n=l({},e);for(a in t)m(t,a)&&(r(e[a])&&r(t[a])?(n[a]={},l(n[a],e[a]),l(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)m(e,a)&&!m(t,a)&&r(e[a])&&(n[a]=l({},n[a]));return n}function j(e){null!=e&&this.set(e)}function x(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return w(n)?n.call(t,a):n}function O(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function P(){return this._invalidDate}function W(e){return this._ordinal.replace("%d",e)}function F(e,t,a,n){var s=this._relativeTime[a];return w(s)?s(e,t,a,n):s.replace(/%d/i,e)}function A(e,t){var a=this._relativeTime[e>0?"future":"past"];return w(a)?a(t):a.replace(/%s/i,t)}function E(e,t){var a=e.toLowerCase();Nn[a]=Nn[a+"s"]=Nn[t]=e}function z(e){return"string"==typeof e?Nn[e]||Nn[e.toLowerCase()]:void 0}function J(e){var t,a,n={};for(a in e)m(e,a)&&(t=z(a),t&&(n[t]=e[a]));return n}function C(e,t){Rn[e]=t}function N(e){var t=[];for(var a in e)t.push({unit:a,priority:Rn[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}function R(e,t,a){var n=""+Math.abs(e),s=t-n.length,r=e>=0;return(r?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function I(e,t,a,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(Vn[e]=s),t&&(Vn[t[0]]=function(){return R(s.apply(this,arguments),t[1],t[2])}),a&&(Vn[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,a,n=e.match(In);for(t=0,a=n.length;t<a;t++)Vn[n[t]]?n[t]=Vn[n[t]]:n[t]=G(n[t]);return function(t){var s,r="";for(s=0;s<a;s++)r+=w(n[s])?n[s].call(t,e):n[s];return r}}function V(e,t){return e.isValid()?(t=B(t,e.localeData()),Un[t]=Un[t]||U(t),Un[t](e)):e.localeData().invalidDate()}function B(e,t){function a(e){return t.longDateFormat(e)||e}var n=5;for(Gn.lastIndex=0;n>=0&&Gn.test(e);)e=e.replace(Gn,a),Gn.lastIndex=0,n-=1;return e}function $(e,t,a){us[e]=w(t)?t:function(e,n){return e&&a?a:t}}function K(e,t){return m(us,e)?us[e](t._strict,t._locale):new RegExp(Z(e))}function Z(e){return q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,s){return t||a||n||s}))}function q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),o(t)&&(n=function(e,a){a[t]=k(e)}),a=0;a<e.length;a++)ms[e[a]]=n}function X(e,t){Q(e,function(e,a,n,s){n._w=n._w||{},t(e,n._w,n,s)})}function ee(e,t,a){null!=t&&m(ms,e)&&ms[e](t,a._a,a,e)}function te(e){return ae(e)?366:365}function ae(e){return e%4===0&&e%100!==0||e%400===0}function ne(){return ae(this.year())}function se(e,a){return function(n){return null!=n?(ie(this,e,n),t.updateOffset(this,a),this):re(this,e)}}function re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ie(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&ae(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),ue(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function de(e){return e=z(e),w(this[e])?this[e]():this}function oe(e,t){if("object"==typeof e){e=J(e);for(var a=N(e),n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(e=z(e),w(this[e]))return this[e](t);return this}function _e(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=_e(t,12);return e+=(t-a)/12,1===a?ae(e)?29:28:31-a%7%2}function me(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ds).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function le(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ds.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?(s=bs.call(this._shortMonthsParse,i),s!==-1?s:null):(s=bs.call(this._longMonthsParse,i),s!==-1?s:null):"MMM"===t?(s=bs.call(this._shortMonthsParse,i),s!==-1?s:(s=bs.call(this._longMonthsParse,i),s!==-1?s:null)):(s=bs.call(this._longMonthsParse,i),s!==-1?s:(s=bs.call(this._shortMonthsParse,i),s!==-1?s:null))}function he(e,t,a){var n,s,r;if(this._monthsParseExact)return ce.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=c([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}}function fe(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(t=e.localeData().monthsParse(t),!o(t))return e;return a=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function Me(e){return null!=e?(fe(this,e),t.updateOffset(this,!0),this):re(this,"Month")}function ye(){return ue(this.year(),this.month())}function Le(e){return this._monthsParseExact?(m(this,"_monthsRegex")||pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Ts),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ye(e){return this._monthsParseExact?(m(this,"_monthsRegex")||pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=ws),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pe(){function e(e,t){return t.length-e.length}var t,a,n=[],s=[],r=[];for(t=0;t<12;t++)a=c([2e3,t]),n.push(this.monthsShort(a,"")),s.push(this.months(a,"")),r.push(this.months(a,"")),r.push(this.monthsShort(a,""));for(n.sort(e),s.sort(e),r.sort(e),t=0;t<12;t++)n[t]=q(n[t]),s[t]=q(s[t]);for(t=0;t<24;t++)r[t]=q(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function be(e,t,a,n,s,r,i){var d=new Date(e,t,a,n,s,r,i);return e<100&&e>=0&&isFinite(d.getFullYear())&&d.setFullYear(e),d}function ke(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function De(e,t,a){var n=7+t-a,s=(7+ke(e,0,n).getUTCDay()-t)%7;return-s+n-1}function ge(e,t,a,n,s){var r,i,d=(7+a-n)%7,o=De(e,n,s),_=1+7*(t-1)+d+o;return _<=0?(r=e-1,i=te(r)+_):_>te(e)?(r=e+1,i=_-te(e)):(r=e,i=_),{year:r,dayOfYear:i}}function ve(e,t,a){var n,s,r=De(e.year(),t,a),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?(s=e.year()-1,n=i+Te(s,t,a)):i>Te(e.year(),t,a)?(n=i-Te(e.year(),t,a),s=e.year()+1):(s=e.year(),n=i),{week:n,year:s}}function Te(e,t,a){var n=De(e,t,a),s=De(e+1,t,a);return(te(e)-n+s)/7}function we(e){return ve(e,this._week.dow,this._week.doy).week}function Se(){return this._week.dow}function He(){return this._week.doy}function je(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xe(e){var t=ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Oe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Pe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function We(e,t){return e?s(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:s(this._weekdays)?this._weekdays:this._weekdays.standalone}function Fe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ae(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ee(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return a?"dddd"===t?(s=bs.call(this._weekdaysParse,i),s!==-1?s:null):"ddd"===t?(s=bs.call(this._shortWeekdaysParse,i),s!==-1?s:null):(s=bs.call(this._minWeekdaysParse,i),s!==-1?s:null):"dddd"===t?(s=bs.call(this._weekdaysParse,i),s!==-1?s:(s=bs.call(this._shortWeekdaysParse,i),s!==-1?s:(s=bs.call(this._minWeekdaysParse,i),s!==-1?s:null))):"ddd"===t?(s=bs.call(this._shortWeekdaysParse,i),s!==-1?s:(s=bs.call(this._weekdaysParse,i),s!==-1?s:(s=bs.call(this._minWeekdaysParse,i),s!==-1?s:null))):(s=bs.call(this._minWeekdaysParse,i),s!==-1?s:(s=bs.call(this._weekdaysParse,i),s!==-1?s:(s=bs.call(this._shortWeekdaysParse,i),s!==-1?s:null)))}function ze(e,t,a){var n,s,r;if(this._weekdaysParseExact)return Ee.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=c([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}}function Je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Oe(e,this.localeData()),this.add(e-t,"d")):t}function Ce(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ne(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Re(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=Os),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ie(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ps),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ge(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ws),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,a,n,s,r,i=[],d=[],o=[],_=[];for(t=0;t<7;t++)a=c([2e3,1]).day(t),n=this.weekdaysMin(a,""),s=this.weekdaysShort(a,""),r=this.weekdays(a,""),i.push(n),d.push(s),o.push(r),_.push(n),_.push(s),_.push(r);for(i.sort(e),d.sort(e),o.sort(e),_.sort(e),t=0;t<7;t++)d[t]=q(d[t]),o[t]=q(o[t]),_[t]=q(_[t]);this._weekdaysRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ve(){return this.hours()%12||12}function Be(){return this.hours()||24}function $e(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}function Ze(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,a,n,s,r=0;r<e.length;){for(s=Qe(e[r]).split("-"),t=s.length,a=Qe(e[r+1]),a=a?a.split("-"):null;t>0;){if(n=et(s.slice(0,t).join("-")))return n;if(a&&a.length>=t&&D(s,a,!0)>=t-1)break;t--}r++}return Fs}function et(t){var n=null;if(!Js[t]&&"undefined"!=typeof e&&e&&e.exports)try{n=Fs._abbr;a(12)("./"+t),tt(n)}catch(e){}return Js[t]}function tt(e,t){var a;return e&&(a=d(t)?st(e):at(e,t),a?Fs=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Fs._abbr}function at(e,t){if(null!==t){var a,n=zs;if(t.abbr=e,null!=Js[e])T("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."),n=Js[e]._config;else if(null!=t.parentLocale)if(null!=Js[t.parentLocale])n=Js[t.parentLocale]._config;else{if(a=et(t.parentLocale),null==a)return Cs[t.parentLocale]||(Cs[t.parentLocale]=[]),Cs[t.parentLocale].push({name:e,config:t}),null;n=a._config}return Js[e]=new j(H(n,t)),Cs[e]&&Cs[e].forEach(function(e){at(e.name,e.config)}),tt(e),Js[e]}return delete Js[e],null}function nt(e,t){if(null!=t){var a,n,s=zs;n=et(e),null!=n&&(s=n._config),t=H(s,t),a=new j(t),a.parentLocale=Js[e],Js[e]=a,tt(e)}else null!=Js[e]&&(null!=Js[e].parentLocale?Js[e]=Js[e].parentLocale:null!=Js[e]&&delete Js[e]);return Js[e]}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Fs;if(!s(e)){if(t=et(e))return t;e=[e]}return Xe(e)}function rt(){return Wn(Js)}function it(e){var t,a=e._a;return a&&f(e).overflow===-2&&(t=a[cs]<0||a[cs]>11?cs:a[hs]<1||a[hs]>ue(a[ls],a[cs])?hs:a[fs]<0||a[fs]>24||24===a[fs]&&(0!==a[Ms]||0!==a[ys]||0!==a[Ls])?fs:a[Ms]<0||a[Ms]>59?Ms:a[ys]<0||a[ys]>59?ys:a[Ls]<0||a[Ls]>999?Ls:-1,f(e)._overflowDayOfYear&&(t<ls||t>hs)&&(t=hs),f(e)._overflowWeeks&&t===-1&&(t=Ys),f(e)._overflowWeekday&&t===-1&&(t=ps),f(e).overflow=t),e}function dt(e,t,a){return null!=e?e:null!=t?t:a}function ot(e){var a=new Date(t.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function _t(e){var t,a,n,s,r,i=[];if(!e._d){for(n=ot(e),e._w&&null==e._a[hs]&&null==e._a[cs]&&ut(e),null!=e._dayOfYear&&(r=dt(e._a[ls],n[ls]),(e._dayOfYear>te(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),a=ke(r,0,e._dayOfYear),e._a[cs]=a.getUTCMonth(),e._a[hs]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[fs]&&0===e._a[Ms]&&0===e._a[ys]&&0===e._a[Ls]&&(e._nextDay=!0,e._a[fs]=0),e._d=(e._useUTC?ke:be).apply(null,i),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[fs]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==s&&(f(e).weekdayMismatch=!0)}}function ut(e){var t,a,n,s,r,i,d,o;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,i=4,a=dt(t.GG,e._a[ls],ve(wt(),1,4).year),n=dt(t.W,1),s=dt(t.E,1),(s<1||s>7)&&(o=!0);else{r=e._locale._week.dow,i=e._locale._week.doy;var _=ve(wt(),r,i);a=dt(t.gg,e._a[ls],_.year),n=dt(t.w,_.week),null!=t.d?(s=t.d,(s<0||s>6)&&(o=!0)):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(o=!0)):s=r}n<1||n>Te(a,r,i)?f(e)._overflowWeeks=!0:null!=o?f(e)._overflowWeekday=!0:(d=ge(a,n,s,r,i),e._a[ls]=d.year,e._dayOfYear=d.dayOfYear)}function mt(e){var t,a,n,s,r,i,d=e._i,o=Ns.exec(d)||Rs.exec(d);if(o){for(f(e).iso=!0,t=0,a=Gs.length;t<a;t++)if(Gs[t][1].exec(o[1])){s=Gs[t][0],n=Gs[t][2]!==!1;break}if(null==s)return void(e._isValid=!1);if(o[3]){for(t=0,a=Us.length;t<a;t++)if(Us[t][1].exec(o[3])){r=(o[2]||" ")+Us[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(o[4]){if(!Is.exec(o[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),Yt(e)}else e._isValid=!1}function lt(e,t,a,n,s,r){var i=[ct(e),vs.indexOf(t),parseInt(a,10),parseInt(n,10),parseInt(s,10)];return r&&i.push(parseInt(r,10)),i}function ct(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ht(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ft(e,t,a){if(e){var n=js.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return f(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function Mt(e,t,a){if(e)return $s[e];if(t)return 0;var n=parseInt(a,10),s=n%100,r=(n-s)/100;return 60*r+s}function yt(e){var t=Bs.exec(ht(e._i));if(t){var a=lt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ft(t[1],a,e))return;e._a=a,e._tzm=Mt(t[8],t[9],t[10]),e._d=ke.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Lt(e){var a=Vs.exec(e._i);return null!==a?void(e._d=new Date(+a[1])):(mt(e),void(e._isValid===!1&&(delete e._isValid,yt(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function Yt(e){if(e._f===t.ISO_8601)return void mt(e);if(e._f===t.RFC_2822)return void yt(e);e._a=[],f(e).empty=!0;var a,n,s,r,i,d=""+e._i,o=d.length,_=0; for(s=B(e._f,e._locale).match(In)||[],a=0;a<s.length;a++)r=s[a],n=(d.match(K(r,e))||[])[0],n&&(i=d.substr(0,d.indexOf(n)),i.length>0&&f(e).unusedInput.push(i),d=d.slice(d.indexOf(n)+n.length),_+=n.length),Vn[r]?(n?f(e).empty=!1:f(e).unusedTokens.push(r),ee(r,n,e)):e._strict&&!n&&f(e).unusedTokens.push(r);f(e).charsLeftOver=o-_,d.length>0&&f(e).unusedInput.push(d),e._a[fs]<=12&&f(e).bigHour===!0&&e._a[fs]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[fs]=pt(e._locale,e._a[fs],e._meridiem),_t(e),it(e)}function pt(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?(n=e.isPM(a),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function bt(e){var t,a,n,s,r;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)r=0,t=L({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Yt(t),M(t)&&(r+=f(t).charsLeftOver,r+=10*f(t).unusedTokens.length,f(t).score=r,(null==n||r<n)&&(n=r,a=t));l(e,a||t)}function kt(e){if(!e._d){var t=J(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),_t(e)}}function Dt(e){var t=new Y(it(gt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function gt(e){var t=e._i,a=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===a&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),p(t)?new Y(it(t)):(_(t)?e._d=t:s(a)?bt(e):a?Yt(e):vt(e),M(e)||(e._d=null),e))}function vt(e){var a=e._i;d(a)?e._d=new Date(t.now()):_(a)?e._d=new Date(a.valueOf()):"string"==typeof a?Lt(e):s(a)?(e._a=u(a.slice(0),function(e){return parseInt(e,10)}),_t(e)):r(a)?kt(e):o(a)?e._d=new Date(a):t.createFromInputFallback(e)}function Tt(e,t,a,n,d){var o={};return a!==!0&&a!==!1||(n=a,a=void 0),(r(e)&&i(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=d,o._l=a,o._i=e,o._f=t,o._strict=n,Dt(o)}function wt(e,t,a,n){return Tt(e,t,a,n,!1)}function St(e,t){var a,n;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return wt();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}function Ht(){var e=[].slice.call(arguments,0);return St("isBefore",e)}function jt(){var e=[].slice.call(arguments,0);return St("isAfter",e)}function xt(e){for(var t in e)if(bs.call(Qs,t)===-1||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,n=0;n<Qs.length;++n)if(e[Qs[n]]){if(a)return!1;parseFloat(e[Qs[n]])!==k(e[Qs[n]])&&(a=!0)}return!0}function Ot(){return this._isValid}function Pt(){return Qt(NaN)}function Wt(e){var t=J(e),a=t.year||0,n=t.quarter||0,s=t.month||0,r=t.week||0,i=t.day||0,d=t.hour||0,o=t.minute||0,_=t.second||0,u=t.millisecond||0;this._isValid=xt(t),this._milliseconds=+u+1e3*_+6e4*o+1e3*d*60*60,this._days=+i+7*r,this._months=+s+3*n+12*a,this._data={},this._locale=st(),this._bubble()}function Ft(e){return e instanceof Wt}function At(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Et(e,t){I(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+R(~~(e/60),2)+t+R(~~e%60,2)})}function zt(e,t){var a=(t||"").match(e);if(null===a)return null;var n=a[a.length-1]||[],s=(n+"").match(Xs)||["-",0,0],r=+(60*s[1])+k(s[2]);return 0===r?0:"+"===s[0]?r:-r}function Jt(e,a){var n,s;return a._isUTC?(n=a.clone(),s=(p(e)||_(e)?e.valueOf():wt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),t.updateOffset(n,!1),n):wt(e).local()}function Ct(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Nt(e,a,n){var s,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=zt(ds,e),null===e)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&a&&(s=Ct(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),r!==e&&(!a||this._changeInProgress?na(this,Qt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ct(this)}function Rt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function It(e){return this.utcOffset(0,e)}function Gt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ct(this),"m")),this}function Ut(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=zt(is,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Vt(e){return!!this.isValid()&&(e=e?wt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Bt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $t(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e={};if(L(e,this),e=gt(e),e._a){var t=e._isUTC?c(e._a):wt(e._a);this._isDSTShifted=this.isValid()&&D(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Kt(){return!!this.isValid()&&!this._isUTC}function Zt(){return!!this.isValid()&&this._isUTC}function qt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var a,n,s,r=e,i=null;return Ft(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(r={},t?r[t]=e:r.milliseconds=e):(i=er.exec(e))?(a="-"===i[1]?-1:1,r={y:0,d:k(i[hs])*a,h:k(i[fs])*a,m:k(i[Ms])*a,s:k(i[ys])*a,ms:k(At(1e3*i[Ls]))*a}):(i=tr.exec(e))?(a="-"===i[1]?-1:("+"===i[1],1),r={y:Xt(i[2],a),M:Xt(i[3],a),w:Xt(i[4],a),d:Xt(i[5],a),h:Xt(i[6],a),m:Xt(i[7],a),s:Xt(i[8],a)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(s=ta(wt(r.from),wt(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),n=new Wt(r),Ft(e)&&m(e,"_locale")&&(n._locale=e._locale),n}function Xt(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function ea(e,t){var a={milliseconds:0,months:0};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function ta(e,t){var a;return e.isValid()&&t.isValid()?(t=Jt(t,e),e.isBefore(t)?a=ea(e,t):(a=ea(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function aa(e,t){return function(a,n){var s,r;return null===n||isNaN(+n)||(T(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."),r=a,a=n,n=r),a="string"==typeof a?+a:a,s=Qt(a,n),na(this,s,e),this}}function na(e,a,n,s){var r=a._milliseconds,i=At(a._days),d=At(a._months);e.isValid()&&(s=null==s||s,d&&fe(e,re(e,"Month")+d*n),i&&ie(e,"Date",re(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&t.updateOffset(e,i||d))}function sa(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function ra(e,a){var n=e||wt(),s=Jt(n,this).startOf("day"),r=t.calendarFormat(this,s)||"sameElse",i=a&&(w(a[r])?a[r].call(this,n):a[r]);return this.format(i||this.localeData().calendar(r,this,wt(n)))}function ia(){return new Y(this)}function da(e,t){var a=p(e)?e:wt(e);return!(!this.isValid()||!a.isValid())&&(t=z(d(t)?"millisecond":t),"millisecond"===t?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())}function oa(e,t){var a=p(e)?e:wt(e);return!(!this.isValid()||!a.isValid())&&(t=z(d(t)?"millisecond":t),"millisecond"===t?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())}function _a(e,t,a,n){return n=n||"()",("("===n[0]?this.isAfter(e,a):!this.isBefore(e,a))&&(")"===n[1]?this.isBefore(t,a):!this.isAfter(t,a))}function ua(e,t){var a,n=p(e)?e:wt(e);return!(!this.isValid()||!n.isValid())&&(t=z(t||"millisecond"),"millisecond"===t?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))}function ma(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function la(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ca(e,t,a){var n,s,r;if(!this.isValid())return NaN;if(n=Jt(e,this),!n.isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=z(t)){case"year":r=ha(this,n)/12;break;case"month":r=ha(this,n);break;case"quarter":r=ha(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return a?r:b(r)}function ha(e,t){var a,n,s=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(s,"months");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}function fa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ma(e){if(!this.isValid())return null;var t=e!==!0,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?V(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):w(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(a,"Z")):V(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ya(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var a="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]';return this.format(a+n+s+r)}function La(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=V(this,e);return this.localeData().postformat(a)}function Ya(e,t){return this.isValid()&&(p(e)&&e.isValid()||wt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pa(e){return this.from(wt(),e)}function ba(e,t){return this.isValid()&&(p(e)&&e.isValid()||wt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ka(e){return this.to(wt(),e)}function Da(e){var t;return void 0===e?this._locale._abbr:(t=st(e),null!=t&&(this._locale=t),this)}function ga(){return this._locale}function va(e){switch(e=z(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Ta(e){return e=z(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function wa(){return this._d.valueOf()-6e4*(this._offset||0)}function Sa(){return Math.floor(this.valueOf()/1e3)}function Ha(){return new Date(this.valueOf())}function ja(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xa(){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 Oa(){return this.isValid()?this.toISOString():null}function Pa(){return M(this)}function Wa(){return l({},f(this))}function Fa(){return f(this).overflow}function Aa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ea(e,t){I(0,[e,e.length],0,t)}function za(e){return Ra.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ja(e){return Ra.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ca(){return Te(this.year(),1,4)}function Na(){var e=this.localeData()._week;return Te(this.year(),e.dow,e.doy)}function Ra(e,t,a,n,s){var r;return null==e?ve(this,n,s).year:(r=Te(e,n,s),t>r&&(t=r),Ia.call(this,e,t,a,n,s))}function Ia(e,t,a,n,s){var r=ge(e,t,a,n,s),i=ke(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Ga(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ua(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Va(e,t){t[Ls]=k(1e3*("0."+e))}function Ba(){return this._isUTC?"UTC":""}function $a(){return this._isUTC?"Coordinated Universal Time":""}function Ka(e){return wt(1e3*e)}function Za(){return wt.apply(null,arguments).parseZone()}function qa(e){return e}function Qa(e,t,a,n){var s=st(),r=c().set(n,t);return s[a](r,e)}function Xa(e,t,a){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return Qa(e,t,a,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Qa(e,n,a,"month");return s}function en(e,t,a,n){"boolean"==typeof e?(o(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,o(t)&&(a=t,t=void 0),t=t||"");var s=st(),r=e?s._week.dow:0;if(null!=a)return Qa(t,(a+r)%7,n,"day");var i,d=[];for(i=0;i<7;i++)d[i]=Qa(t,(i+r)%7,n,"day");return d}function tn(e,t){return Xa(e,t,"months")}function an(e,t){return Xa(e,t,"monthsShort")}function nn(e,t,a){return en(e,t,a,"weekdays")}function sn(e,t,a){return en(e,t,a,"weekdaysShort")}function rn(e,t,a){return en(e,t,a,"weekdaysMin")}function dn(){var e=this._data;return this._milliseconds=lr(this._milliseconds),this._days=lr(this._days),this._months=lr(this._months),e.milliseconds=lr(e.milliseconds),e.seconds=lr(e.seconds),e.minutes=lr(e.minutes),e.hours=lr(e.hours),e.months=lr(e.months),e.years=lr(e.years),this}function on(e,t,a,n){var s=Qt(t,a);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function _n(e,t){return on(this,e,t,1)}function un(e,t){return on(this,e,t,-1)}function mn(e){return e<0?Math.floor(e):Math.ceil(e)}function ln(){var e,t,a,n,s,r=this._milliseconds,i=this._days,d=this._months,o=this._data;return r>=0&&i>=0&&d>=0||r<=0&&i<=0&&d<=0||(r+=864e5*mn(hn(d)+i),i=0,d=0),o.milliseconds=r%1e3,e=b(r/1e3),o.seconds=e%60,t=b(e/60),o.minutes=t%60,a=b(t/60),o.hours=a%24,i+=b(a/24),s=b(cn(i)),d+=s,i-=mn(hn(s)),n=b(d/12),d%=12,o.days=i,o.months=d,o.years=n,this}function cn(e){return 4800*e/146097}function hn(e){return 146097*e/4800}function fn(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if(e=z(e),"month"===e||"year"===e)return t=this._days+n/864e5,a=this._months+cn(t),"month"===e?a:a/12;switch(t=this._days+Math.round(hn(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Mn(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN}function yn(e){return function(){return this.as(e)}}function Ln(){return Qt(this)}function Yn(e){return e=z(e),this.isValid()?this[e+"s"]():NaN}function pn(e){return function(){return this.isValid()?this._data[e]:NaN}}function bn(){return b(this.days()/7)}function kn(e,t,a,n,s){return s.relativeTime(t||1,!!a,e,n)}function Dn(e,t,a){var n=Qt(e).abs(),s=Sr(n.as("s")),r=Sr(n.as("m")),i=Sr(n.as("h")),d=Sr(n.as("d")),o=Sr(n.as("M")),_=Sr(n.as("y")),u=s<=Hr.ss&&["s",s]||s<Hr.s&&["ss",s]||r<=1&&["m"]||r<Hr.m&&["mm",r]||i<=1&&["h"]||i<Hr.h&&["hh",i]||d<=1&&["d"]||d<Hr.d&&["dd",d]||o<=1&&["M"]||o<Hr.M&&["MM",o]||_<=1&&["y"]||["yy",_];return u[2]=t,u[3]=+e>0,u[4]=a,kn.apply(null,u)}function gn(e){return void 0===e?Sr:"function"==typeof e&&(Sr=e,!0)}function vn(e,t){return void 0!==Hr[e]&&(void 0===t?Hr[e]:(Hr[e]=t,"s"===e&&(Hr.ss=t-1),!0))}function Tn(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),a=Dn(this,!e,t);return e&&(a=t.pastFuture(+this,a)),t.postformat(a)}function wn(e){return(e>0)-(e<0)||+e}function Sn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a,n=jr(this._milliseconds)/1e3,s=jr(this._days),r=jr(this._months);e=b(n/60),t=b(e/60),n%=60,e%=60,a=b(r/12),r%=12;var i=a,d=r,o=s,_=t,u=e,m=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=this.asSeconds();if(!l)return"P0D";var c=l<0?"-":"",h=wn(this._months)!==wn(l)?"-":"",f=wn(this._days)!==wn(l)?"-":"",M=wn(this._milliseconds)!==wn(l)?"-":"";return c+"P"+(i?h+i+"Y":"")+(d?h+d+"M":"")+(o?f+o+"D":"")+(_||u||m?"T":"")+(_?M+_+"H":"")+(u?M+u+"M":"")+(m?M+m+"S":"")}var Hn,jn;jn=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),a=t.length>>>0,n=0;n<a;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var xn=t.momentProperties=[],On=!1,Pn={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Wn;Wn=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)m(e,t)&&a.push(t);return a};var Fn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},An={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"},En="Invalid date",zn="%d",Jn=/\d{1,2}/,Cn={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Nn={},Rn={},In=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Gn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Un={},Vn={},Bn=/\d/,$n=/\d\d/,Kn=/\d{3}/,Zn=/\d{4}/,qn=/[+-]?\d{6}/,Qn=/\d\d?/,Xn=/\d\d\d\d?/,es=/\d\d\d\d\d\d?/,ts=/\d{1,3}/,as=/\d{1,4}/,ns=/[+-]?\d{1,6}/,ss=/\d+/,rs=/[+-]?\d+/,is=/Z|[+-]\d\d:?\d\d/gi,ds=/Z|[+-]\d\d(?::?\d\d)?/gi,os=/[+-]?\d+(\.\d{1,3})?/,_s=/[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,us={},ms={},ls=0,cs=1,hs=2,fs=3,Ms=4,ys=5,Ls=6,Ys=7,ps=8;I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["Y