UNPKG

@parsonsnguyen/react-month-picker

Version:
6 lines 315 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactMonthPicker=t(require("react")):e.ReactMonthPicker=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(n){if(a[n])return a[n].exports;var s=a[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=138)}([function(e,t,a){(function(e){//! moment.js //! version : 2.29.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com !function(t,a){e.exports=function(){"use strict";function t(){return _t.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(r(e,t))return!1;return!0}function d(e){return void 0===e}function _(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function o(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){for(var a in t)r(t,a)&&(e[a]=t[a]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,a,n){return ke(e,t,a,n,!0).utc()}function c(e){return null==e._pf&&(e._pf={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}),e._pf}function h(e){if(null==e._isValid){var t=c(e),a=ot.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!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 M(e){var t=l(NaN);return null!=e?m(c(t),e):c(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=c(t)),d(t._locale)||(e._locale=t._locale),mt.length>0)for(a=0;a<mt.length;a++)d(s=t[n=mt[a]])||(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)),!1===lt&&(lt=!0,t.updateOffset(this),lt=!1)}function f(e){return e instanceof Y||null!=e&&null!=e._isAMomentObject}function y(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function p(e,a){var n=!0;return m(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var s,i,d,_=[];for(i=0;i<arguments.length;i++){if(s="","object"==typeof arguments[i]){for(d in s+="\n["+i+"] ",arguments[0])r(arguments[0],d)&&(s+=d+": "+arguments[0][d]+", ");s=s.slice(0,-2)}else s=arguments[i];_.push(s)}y(e+"\nArguments: "+Array.prototype.slice.call(_).join("")+"\n"+(new Error).stack),n=!1}return a.apply(this,arguments)},a)}function k(e,a){null!=t.deprecationHandler&&t.deprecationHandler(e,a),ct[e]||(y(a),ct[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function g(e,t){var a,n=m({},e);for(a in t)r(t,a)&&(s(e[a])&&s(t[a])?(n[a]={},m(n[a],e[a]),m(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)r(e,a)&&!r(t,a)&&s(e[a])&&(n[a]=m({},n[a]));return n}function T(e){null!=e&&this.set(e)}function w(e,t,a){var n=""+Math.abs(e),s=t-n.length;return(e>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function v(e,t,a,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(ft[e]=s),t&&(ft[t[0]]=function(){return w(s.apply(this,arguments),t[1],t[2])}),a&&(ft[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function b(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function S(e,t){return e.isValid()?(t=H(t,e.localeData()),Yt[t]=Yt[t]||function(e){var t,a,n=e.match(Mt);for(t=0,a=n.length;t<a;t++)ft[n[t]]?n[t]=ft[n[t]]:n[t]=b(n[t]);return function(t){var s,r="";for(s=0;s<a;s++)r+=D(n[s])?n[s].call(t,e):n[s];return r}}(t),Yt[t](e)):e.localeData().invalidDate()}function H(e,t){function a(e){return t.longDateFormat(e)||e}var n=5;for(Lt.lastIndex=0;n>=0&&Lt.test(e);)e=e.replace(Lt,a),Lt.lastIndex=0,n-=1;return e}function j(e,t){var a=e.toLowerCase();yt[a]=yt[a+"s"]=yt[t]=e}function x(e){return"string"==typeof e?yt[e]||yt[e.toLowerCase()]:void 0}function O(e){var t,a,n={};for(a in e)r(e,a)&&(t=x(a))&&(n[t]=e[a]);return n}function P(e,t){pt[e]=t}function W(e){return e%4==0&&e%100!=0||e%400==0}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function A(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=E(t)),a}function F(e,a){return function(n){return null!=n?(N(this,e,n),t.updateOffset(this,a),this):z(this,e)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function N(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(a=A(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),V(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function C(e,t,a){ht[e]=D(t)?t:function(e,n){return e&&a?a:t}}function R(e,t){return r(ht,e)?ht[e](t._strict,t._locale):new RegExp(function(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,s){return t||a||n||s}))}(e))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function I(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),_(t)&&(n=function(e,a){a[t]=A(e)}),a=0;a<e.length;a++)zt[e[a]]=n}function G(e,t){I(e,function(e,a,n,s){n._w=n._w||{},t(e,n._w,n,s)})}function U(e,t,a){null!=t&&r(zt,e)&&zt[e](t,a._a,a,e)}function V(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=function(e,t){return(e%12+12)%12}(t);return e+=(t-a)/12,1===a?W(e)?29:28:31-a%7%2}function B(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=A(t);else if(!_(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),V(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function q(e){return null!=e?(B(this,e),t.updateOffset(this,!0),this):z(this,"Month")}function K(){function e(e,t){return t.length-e.length}var t,a,n=[],s=[],r=[];for(t=0;t<12;t++)a=l([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]=J(n[t]),s[t]=J(s[t]);for(t=0;t<24;t++)r[t]=J(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 Z(e){return W(e)?366:365}function $(e){var t,a;return e<100&&e>=0?((a=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Q(e,t,a){var n=7+t-a;return-(7+$(e,0,n).getUTCDay()-t)%7+n-1}function X(e,t,a,n,s){var r,i,d=1+7*(t-1)+(7+a-n)%7+Q(e,n,s);return d<=0?i=Z(r=e-1)+d:d>Z(e)?(r=e+1,i=d-Z(e)):(r=e,i=d),{year:r,dayOfYear:i}}function ee(e,t,a){var n,s,r=Q(e.year(),t,a),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?n=i+te(s=e.year()-1,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=Q(e,t,a),s=Q(e+1,t,a);return(Z(e)-n+s)/7}function ae(e,t){return e.slice(t,7).concat(e.slice(0,t))}function ne(){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=l([2e3,1]).day(t),n=J(this.weekdaysMin(a,"")),s=J(this.weekdaysShort(a,"")),r=J(this.weekdays(a,"")),i.push(n),d.push(s),_.push(r),o.push(n),o.push(s),o.push(r);i.sort(e),d.sort(e),_.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function se(){return this.hours()%12||12}function re(e,t){v(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ie(e,t){return t._meridiemParse}function de(e,t){var a,n=Math.min(e.length,t.length);for(a=0;a<n;a+=1)if(e[a]!==t[a])return a;return n}function _e(e){return e?e.toLowerCase().replace("_","-"):e}function oe(t){var n=null;if(void 0===oa[t]&&void 0!==e&&e&&e.exports)try{n=ia._abbr,a(144)("./"+t),ue(n)}catch(e){oa[t]=null}return oa[t]}function ue(e,t){var a;return e&&((a=d(t)?le(e):me(e,t))?ia=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ia._abbr}function me(e,t){if(null!==t){var a,n=_a;if(t.abbr=e,null!=oa[e])k("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=oa[e]._config;else if(null!=t.parentLocale)if(null!=oa[t.parentLocale])n=oa[t.parentLocale]._config;else{if(null==(a=oe(t.parentLocale)))return ua[t.parentLocale]||(ua[t.parentLocale]=[]),ua[t.parentLocale].push({name:e,config:t}),null;n=a._config}return oa[e]=new T(g(n,t)),ua[e]&&ua[e].forEach(function(e){me(e.name,e.config)}),ue(e),oa[e]}return delete oa[e],null}function le(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ia;if(!n(e)){if(t=oe(e))return t;e=[e]}return function(e){for(var t,a,n,s,r=0;r<e.length;){for(t=(s=_e(e[r]).split("-")).length,a=(a=_e(e[r+1]))?a.split("-"):null;t>0;){if(n=oe(s.slice(0,t).join("-")))return n;if(a&&a.length>=t&&de(s,a)>=t-1)break;t--}r++}return ia}(e)}function ce(e){var t,a=e._a;return a&&-2===c(e).overflow&&(t=a[Ct]<0||a[Ct]>11?Ct:a[Rt]<1||a[Rt]>V(a[Nt],a[Ct])?Rt:a[Jt]<0||a[Jt]>24||24===a[Jt]&&(0!==a[It]||0!==a[Gt]||0!==a[Ut])?Jt:a[It]<0||a[It]>59?It:a[Gt]<0||a[Gt]>59?Gt:a[Ut]<0||a[Ut]>999?Ut:-1,c(e)._overflowDayOfYear&&(t<Nt||t>Rt)&&(t=Rt),c(e)._overflowWeeks&&-1===t&&(t=Vt),c(e)._overflowWeekday&&-1===t&&(t=Bt),c(e).overflow=t),e}function he(e){var t,a,n,s,r,i,d=e._i,_=ma.exec(d)||la.exec(d);if(_){for(c(e).iso=!0,t=0,a=ha.length;t<a;t++)if(ha[t][1].exec(_[1])){s=ha[t][0],n=!1!==ha[t][2];break}if(null==s)return void(e._isValid=!1);if(_[3]){for(t=0,a=Ma.length;t<a;t++)if(Ma[t][1].exec(_[3])){r=(_[2]||" ")+Ma[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(_[4]){if(!ca.exec(_[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),ye(e)}else e._isValid=!1}function Me(e,t,a,n,s,r){var i=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Kt.indexOf(t),parseInt(a,10),parseInt(n,10),parseInt(s,10)];return r&&i.push(parseInt(r,10)),i}function Le(e){var t,a=Ya.exec(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(a){if(t=Me(a[4],a[3],a[2],a[5],a[6],a[7]),!function(e,t,a){return!e||ta.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(c(a).weekdayMismatch=!0,a._isValid=!1,!1)}(a[1],t,e))return;e._a=t,e._tzm=function(e,t,a){if(e)return fa[e];if(t)return 0;var n=parseInt(a,10),s=n%100;return(n-s)/100*60+s}(a[8],a[9],a[10]),e._d=$.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),c(e).rfc2822=!0}else e._isValid=!1}function Ye(e,t,a){return null!=e?e:null!=t?t:a}function fe(e){var a,n,s,r,i,d=[];if(!e._d){for(s=function(e){var a=new Date(t.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}(e),e._w&&null==e._a[Rt]&&null==e._a[Ct]&&function(e){var t,a,n,s,r,i,d,_,o;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,i=4,a=Ye(t.GG,e._a[Nt],ee(De(),1,4).year),n=Ye(t.W,1),((s=Ye(t.E,1))<1||s>7)&&(_=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,o=ee(De(),r,i),a=Ye(t.gg,e._a[Nt],o.year),n=Ye(t.w,o.week),null!=t.d?((s=t.d)<0||s>6)&&(_=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(_=!0)):s=r),n<1||n>te(a,r,i)?c(e)._overflowWeeks=!0:null!=_?c(e)._overflowWeekday=!0:(d=X(a,n,s,r,i),e._a[Nt]=d.year,e._dayOfYear=d.dayOfYear)}(e),null!=e._dayOfYear&&(i=Ye(e._a[Nt],s[Nt]),(e._dayOfYear>Z(i)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),n=$(i,0,e._dayOfYear),e._a[Ct]=n.getUTCMonth(),e._a[Rt]=n.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=d[a]=s[a];for(;a<7;a++)e._a[a]=d[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[Jt]&&0===e._a[It]&&0===e._a[Gt]&&0===e._a[Ut]&&(e._nextDay=!0,e._a[Jt]=0),e._d=(e._useUTC?$:function(e,t,a,n,s,r,i){var d;return e<100&&e>=0?(d=new Date(e+400,t,a,n,s,r,i),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,a,n,s,r,i),d}).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Jt]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(c(e).weekdayMismatch=!0)}}function ye(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],c(e).empty=!0;var a,n,s,r,i,d,_=""+e._i,o=_.length,u=0;for(s=H(e._f,e._locale).match(Mt)||[],a=0;a<s.length;a++)r=s[a],(n=(_.match(R(r,e))||[])[0])&&((i=_.substr(0,_.indexOf(n))).length>0&&c(e).unusedInput.push(i),_=_.slice(_.indexOf(n)+n.length),u+=n.length),ft[r]?(n?c(e).empty=!1:c(e).unusedTokens.push(r),U(r,n,e)):e._strict&&!n&&c(e).unusedTokens.push(r);c(e).charsLeftOver=o-u,_.length>0&&c(e).unusedInput.push(_),e._a[Jt]<=12&&!0===c(e).bigHour&&e._a[Jt]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[Jt]=function(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?((n=e.isPM(a))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[Jt],e._meridiem),null!==(d=c(e).era)&&(e._a[Nt]=e._locale.erasConvertYear(d,e._a[Nt])),fe(e),ce(e)}else Le(e);else he(e)}function pe(e){var a=e._i,r=e._f;return e._locale=e._locale||le(e._l),null===a||void 0===r&&""===a?M({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),f(a)?new Y(ce(a)):(o(a)?e._d=a:n(r)?function(e){var t,a,n,s,r,i,d=!1;if(0===e._f.length)return c(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)r=0,i=!1,t=L({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],ye(t),h(t)&&(i=!0),r+=c(t).charsLeftOver,r+=10*c(t).unusedTokens.length,c(t).score=r,d?r<n&&(n=r,a=t):(null==n||r<n||i)&&(n=r,a=t,i&&(d=!0));m(e,a||t)}(e):r?ye(e):function(e){var a=e._i;d(a)?e._d=new Date(t.now()):o(a)?e._d=new Date(a.valueOf()):"string"==typeof a?function(e){var a=La.exec(e._i);null===a?(he(e),!1===e._isValid&&(delete e._isValid,Le(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))):e._d=new Date(+a[1])}(e):n(a)?(e._a=u(a.slice(0),function(e){return parseInt(e,10)}),fe(e)):s(a)?function(e){if(!e._d){var t=O(e._i),a=void 0===t.day?t.date:t.day;e._a=u([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),fe(e)}}(e):_(a)?e._d=new Date(a):t.createFromInputFallback(e)}(e),h(e)||(e._d=null),e))}function ke(e,t,a,r,d){var _={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==a&&!1!==a||(r=a,a=void 0),(s(e)&&i(e)||n(e)&&0===e.length)&&(e=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=d,_._l=a,_._i=e,_._f=t,_._strict=r,function(e){var t=new Y(ce(pe(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(_)}function De(e,t,a,n){return ke(e,t,a,n,!1)}function ge(e,t){var a,s;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return De();for(a=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](a)||(a=t[s]);return a}function Te(e){var t=O(e),a=t.year||0,n=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,d=t.day||0,_=t.hour||0,o=t.minute||0,u=t.second||0,m=t.millisecond||0;this._isValid=function(e){var t,a,n=!1;for(t in e)if(r(e,t)&&(-1===Ft.call(ka,t)||null!=e[t]&&isNaN(e[t])))return!1;for(a=0;a<ka.length;++a)if(e[ka[a]]){if(n)return!1;parseFloat(e[ka[a]])!==A(e[ka[a]])&&(n=!0)}return!0}(t),this._milliseconds=+m+1e3*u+6e4*o+1e3*_*60*60,this._days=+d+7*i,this._months=+s+3*n+12*a,this._data={},this._locale=le(),this._bubble()}function we(e){return e instanceof Te}function ve(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function be(e,t){v(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+w(~~(e/60),2)+t+w(~~e%60,2)})}function Se(e,t){var a,n,s=(t||"").match(e);return null===s?null:0===(n=60*(a=((s[s.length-1]||[])+"").match(Da)||["-",0,0])[1]+A(a[2]))?0:"+"===a[0]?n:-n}function He(e,a){var n,s;return a._isUTC?(n=a.clone(),s=(f(e)||o(e)?e.valueOf():De(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),t.updateOffset(n,!1),n):De(e).local()}function je(e){return-Math.round(e._d.getTimezoneOffset())}function xe(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Oe(e,t){var a,n,s,i=e,d=null;return we(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:_(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(d=ga.exec(e))?(a="-"===d[1]?-1:1,i={y:0,d:A(d[Rt])*a,h:A(d[Jt])*a,m:A(d[It])*a,s:A(d[Gt])*a,ms:A(ve(1e3*d[Ut]))*a}):(d=Ta.exec(e))?(a="-"===d[1]?-1:1,i={y:Pe(d[2],a),M:Pe(d[3],a),w:Pe(d[4],a),d:Pe(d[5],a),h:Pe(d[6],a),m:Pe(d[7],a),s:Pe(d[8],a)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=function(e,t){var a;return e.isValid()&&t.isValid()?(t=He(t,e),e.isBefore(t)?a=We(e,t):((a=We(t,e)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}(De(i.from),De(i.to)),(i={}).ms=s.milliseconds,i.M=s.months),n=new Te(i),we(e)&&r(e,"_locale")&&(n._locale=e._locale),we(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function Pe(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function We(e,t){var a={};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 Ee(e,t){return function(a,n){var s;return null===n||isNaN(+n)||(k(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."),s=a,a=n,n=s),Ae(this,Oe(a,n),e),this}}function Ae(e,a,n,s){var r=a._milliseconds,i=ve(a._days),d=ve(a._months);e.isValid()&&(s=null==s||s,d&&B(e,z(e,"Month")+d*n),i&&N(e,"Date",z(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&t.updateOffset(e,i||d))}function Fe(e){return"string"==typeof e||e instanceof String}function ze(e){return f(e)||o(e)||Fe(e)||_(e)||function(e){var t=n(e),a=!1;return t&&(a=0===e.filter(function(t){return!_(t)&&Fe(e)}).length),t&&a}(e)||function(e){var t,a=s(e)&&!i(e),n=!1,d=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<d.length;t+=1)n=n||r(e,d[t]);return a&&n}(e)||null===e||void 0===e}function Ne(e,t){if(e.date()<t.date())return-Ne(t,e);var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,"months");return-(a+(t-n<0?(t-n)/(n-e.clone().add(a-1,"months")):(t-n)/(e.clone().add(a+1,"months")-n)))||0}function Ce(e){var t;return void 0===e?this._locale._abbr:(null!=(t=le(e))&&(this._locale=t),this)}function Re(){return this._locale}function Je(e,t){return(e%t+t)%t}function Ie(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-Sa:new Date(e,t,a).valueOf()}function Ge(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-Sa:Date.UTC(e,t,a)}function Ue(e,t){return t.erasAbbrRegex(e)}function Ve(){var e,t,a=[],n=[],s=[],r=[],i=this.eras();for(e=0,t=i.length;e<t;++e)n.push(J(i[e].name)),a.push(J(i[e].abbr)),s.push(J(i[e].narrow)),r.push(J(i[e].name)),r.push(J(i[e].abbr)),r.push(J(i[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Be(e,t){v(0,[e,e.length],0,t)}function qe(e,t,a,n,s){var r;return null==e?ee(this,n,s).year:(t>(r=te(e,n,s))&&(t=r),function(e,t,a,n,s){var r=X(e,t,a,n,s),i=$(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,a,n,s))}function Ke(e,t){t[Ut]=A(1e3*("0."+e))}function Ze(e){return e}function $e(e,t,a,n){var s=le(),r=l().set(n,t);return s[a](r,e)}function Qe(e,t,a){if(_(e)&&(t=e,e=void 0),e=e||"",null!=t)return $e(e,t,a,"month");var n,s=[];for(n=0;n<12;n++)s[n]=$e(e,n,a,"month");return s}function Xe(e,t,a,n){"boolean"==typeof e?(_(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,_(t)&&(a=t,t=void 0),t=t||"");var s,r=le(),i=e?r._week.dow:0,d=[];if(null!=a)return $e(t,(a+i)%7,n,"day");for(s=0;s<7;s++)d[s]=$e(t,(s+i)%7,n,"day");return d}function et(e,t,a,n){var s=Oe(t,a);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function tt(e){return e<0?Math.floor(e):Math.ceil(e)}function at(e){return 4800*e/146097}function nt(e){return 146097*e/4800}function st(e){return function(){return this.as(e)}}function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}function it(e){return(e>0)-(e<0)||+e}function dt(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a,n,s,r,i,d,_=tn(this._milliseconds)/1e3,o=tn(this._days),u=tn(this._months),m=this.asSeconds();return m?(t=E((e=E(_/60))/60),_%=60,e%=60,a=E(u/12),u%=12,n=_?_.toFixed(3).replace(/\.?0+$/,""):"",s=m<0?"-":"",r=it(this._months)!==it(m)?"-":"",i=it(this._days)!==it(m)?"-":"",d=it(this._milliseconds)!==it(m)?"-":"",s+"P"+(a?r+a+"Y":"")+(u?r+u+"M":"")+(o?i+o+"D":"")+(t||e||_?"T":"")+(t?d+t+"H":"")+(e?d+e+"M":"")+(_?d+n+"S":"")):"P0D"}var _t,ot;ot=Array.prototype.some?Array.prototype.some:function(e){var t,a=Object(this),n=a.length>>>0;for(t=0;t<n;t++)if(t in a&&e.call(this,a[t],t,a))return!0;return!1};var ut,mt=t.momentProperties=[],lt=!1,ct={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,ut=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)r(e,t)&&a.push(t);return a};var ht,Mt=/(\[[^\[]*\])|(\\)?([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,Lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Yt={},ft={},yt={},pt={},kt=/\d/,Dt=/\d\d/,gt=/\d{3}/,Tt=/\d{4}/,wt=/[+-]?\d{6}/,vt=/\d\d?/,bt=/\d\d\d\d?/,St=/\d\d\d\d\d\d?/,Ht=/\d{1,3}/,jt=/\d{1,4}/,xt=/[+-]?\d{1,6}/,Ot=/\d+/,Pt=/[+-]?\d+/,Wt=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,At=/[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;ht={};var Ft,zt={},Nt=0,Ct=1,Rt=2,Jt=3,It=4,Gt=5,Ut=6,Vt=7,Bt=8;Ft=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},v("M",["MM",2],"Mo",function(){return this.month()+1}),v("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),v("MMMM",0,0,function(e){return this.localeData().months(this,e)}),j("month","M"),P("month",8),C("M",vt),C("MM",vt,Dt),C("MMM",function(e,t){return t.monthsShortRegex(e)}),C("MMMM",function(e,t){return t.monthsRegex(e)}),I(["M","MM"],function(e,t){t[Ct]=A(e)-1}),I(["MMM","MMMM"],function(e,t,a,n){var s=a._locale.monthsParse(e,n,a._strict);null!=s?t[Ct]=s:c(a).invalidMonth=e});var qt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Kt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,$t=At,Qt=At;v("Y",0,0,function(){var e=this.year();return e<=9999?w(e,4):"+"+e}),v(0,["YY",2],0,function(){return this.year()%100}),v(0,["YYYY",4],0,"year"),v(0,["YYYYY",5],0,"year"),v(0,["YYYYYY",6,!0],0,"year"),j("year","y"),P("year",1),C("Y",Pt),C("YY",vt,Dt),C("YYYY",jt,Tt),C("YYYYY",xt,wt),C("YYYYYY",xt,wt),I(["YYYYY","YYYYYY"],Nt),I("YYYY",function(e,a){a[Nt]=2===e.length?t.parseTwoDigitYear(e):A(e)}),I("YY",function(e,a){a[Nt]=t.parseTwoDigitYear(e)}),I("Y",function(e,t){t[Nt]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return A(e)+(A(e)>68?1900:2e3)};var Xt=F("FullYear",!0);v("w",["ww",2],"wo","week"),v("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),P("week",5),P("isoWeek",5),C("w",vt),C("ww",vt,Dt),C("W",vt),C("WW",vt,Dt),G(["w","ww","W","WW"],function(e,t,a,n){t[n.substr(0,1)]=A(e)}),v("d",0,"do","day"),v("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),v("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),v("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),v("e",0,0,"weekday"),v("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),C("d",vt),C("e",vt),C("E",vt),C("dd",function(e,t){return t.weekdaysMinRegex(e)}),C("ddd",function(e,t){return t.weekdaysShortRegex(e)}),C("dddd",function(e,t){return t.weekdaysRegex(e)}),G(["dd","ddd","dddd"],function(e,t,a,n){var s=a._locale.weekdaysParse(e,n,a._strict);null!=s?t.d=s:c(a).invalidWeekday=e}),G(["d","e","E"],function(e,t,a,n){t[n]=A(e)});var ea="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ta="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),aa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),na=At,sa=At,ra=At;v("H",["HH",2],0,"hour"),v("h",["hh",2],0,se),v("k",["kk",2],0,function(){return this.hours()||24}),v("hmm",0,0,function(){return""+se.apply(this)+w(this.minutes(),2)}),v("hmmss",0,0,function(){return""+se.apply(this)+w(this.minutes(),2)+w(this.seconds(),2)}),v("Hmm",0,0,function(){return""+this.hours()+w(this.minutes(),2)}),v("Hmmss",0,0,function(){return""+this.hours()+w(this.minutes(),2)+w(this.seconds(),2)}),re("a",!0),re("A",!1),j("hour","h"),P("hour",13),C("a",ie),C("A",ie),C("H",vt),C("h",vt),C("k",vt),C("HH",vt,Dt),C("hh",vt,Dt),C("kk",vt,Dt),C("hmm",bt),C("hmmss",St),C("Hmm",bt),C("Hmmss",St),I(["H","HH"],Jt),I(["k","kk"],function(e,t,a){var n=A(e);t[Jt]=24===n?0:n}),I(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),I(["h","hh"],function(e,t,a){t[Jt]=A(e),c(a).bigHour=!0}),I("hmm",function(e,t,a){var n=e.length-2;t[Jt]=A(e.substr(0,n)),t[It]=A(e.substr(n)),c(a).bigHour=!0}),I("hmmss",function(e,t,a){var n=e.length-4,s=e.length-2;t[Jt]=A(e.substr(0,n)),t[It]=A(e.substr(n,2)),t[Gt]=A(e.substr(s)),c(a).bigHour=!0}),I("Hmm",function(e,t,a){var n=e.length-2;t[Jt]=A(e.substr(0,n)),t[It]=A(e.substr(n))}),I("Hmmss",function(e,t,a){var n=e.length-4,s=e.length-2;t[Jt]=A(e.substr(0,n)),t[It]=A(e.substr(n,2)),t[Gt]=A(e.substr(s))});var ia,da=F("Hours",!0),_a={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:qt,monthsShort:Kt,week:{dow:0,doy:6},weekdays:ea,weekdaysMin:aa,weekdaysShort:ta,meridiemParse:/[ap]\.?m?\.?/i},oa={},ua={},ma=/^\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)?)?$/,la=/^\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)?)?$/,ca=/Z|[+-]\d\d(?::?\d\d)?/,ha=[["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]],Ma=[["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/]],La=/^\/?Date\((-?\d+)/i,Ya=/^(?:(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}))$/,fa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=p("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":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ya=p("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=De.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:M()}),pa=p("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=De.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:M()}),ka=["year","quarter","month","week","day","hour","minute","second","millisecond"];be("Z",":"),be("ZZ",""),C("Z",Et),C("ZZ",Et),I(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Se(Et,e)});var Da=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ga=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ta=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Oe.fn=Te.prototype,Oe.invalid=function(){return Oe(NaN)};var wa=Ee(1,"add"),va=Ee(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ba=p("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),Sa=126227808e5;v("N",0,0,"eraAbbr"),v("NN",0,0,"eraAbbr"),v("NNN",0,0,"eraAbbr"),v("NNNN",0,0,"eraName"),v("NNNNN",0,0,"eraNarrow"),v("y",["y",1],"yo","eraYear"),v("y",["yy",2],0,"eraYear"),v("y",["yyy",3],0,"eraYear"),v("y",["yyyy",4],0,"eraYear"),C("N",Ue),C("NN",Ue),C("NNN",Ue),C("NNNN",function(e,t){return t.erasNameRegex(e)}),C("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),I(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,n){var s=a._locale.erasParse(e,n,a._strict);s?c(a).era=s:c(a).invalidEra=e}),C("y",Ot),C("yy",Ot),C("yyy",Ot),C("yyyy",Ot),C("yo",function(e,t){return t._eraYearOrdinalRegex||Ot}),I(["y","yy","yyy","yyyy"],Nt),I(["yo"],function(e,t,a,n){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[Nt]=a._locale.eraYearOrdinalParse(e,s):t[Nt]=parseInt(e,10)}),v(0,["gg",2],0,function(){return this.weekYear()%100}),v(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Be("gggg","weekYear"),Be("ggggg","weekYear"),Be("GGGG","isoWeekYear"),Be("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),C("G",Pt),C("g",Pt),C("GG",vt,Dt),C("gg",vt,Dt),C("GGGG",jt,Tt),C("gggg",jt,Tt),C("GGGGG",xt,wt),C("ggggg",xt,wt),G(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,n){t[n.substr(0,2)]=A(e)}),G(["gg","GG"],function(e,a,n,s){a[s]=t.parseTwoDigitYear(e)}),v("Q",0,"Qo","quarter"),j("quarter","Q"),P("quarter",7),C("Q",kt),I("Q",function(e,t){t[Ct]=3*(A(e)-1)}),v("D",["DD",2],"Do","date"),j("date","D"),P("date",9),C("D",vt),C("DD",vt,Dt),C("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),I(["D","DD"],Rt),I("Do",function(e,t){t[Rt]=A(e.match(vt)[0])});var Ha=F("Date",!0);v("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),P("dayOfYear",4),C("DDD",Ht),C("DDDD",gt),I(["DDD","DDDD"],function(e,t,a){a._dayOfYear=A(e)}),v("m",["mm",2],0,"minute"),j("minute","m"),P("minute",14),C("m",vt),C("mm",vt,Dt),I(["m","mm"],It);var ja=F("Minutes",!1);v("s",["ss",2],0,"second"),j("second","s"),P("second",15),C("s",vt),C("ss",vt,Dt),I(["s","ss"],Gt);var xa,Oa,Pa=F("Seconds",!1);for(v("S",0,0,function(){return~~(this.millisecond()/100)}),v(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),v(0,["SSS",3],0,"millisecond"),v(0,["SSSS",4],0,function(){return 10*this.millisecond()}),v(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),v(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),v(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),v(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),v(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),P("millisecond",16),C("S",Ht,kt),C("SS",Ht,Dt),C("SSS",Ht,gt),xa="SSSS";xa.length<=9;xa+="S")C(xa,Ot);for(xa="S";xa.length<=9;xa+="S")I(xa,Ke);Oa=F("Milliseconds",!1),v("z",0,0,"zoneAbbr"),v("zz",0,0,"zoneName");var Wa=Y.prototype;Wa.add=wa,Wa.calendar=function(e,a){1===arguments.length&&(arguments[0]?ze(arguments[0])?(e=arguments[0],a=void 0):function(e){var t,a=s(e)&&!i(e),n=!1,d=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<d.length;t+=1)n=n||r(e,d[t]);return a&&n}(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var n=e||De(),d=He(n,this).startOf("day"),_=t.calendarFormat(this,d)||"sameElse",o=a&&(D(a[_])?a[_].call(this,n):a[_]);return this.format(o||this.localeData().calendar(_,this,De(n)))},Wa.clone=function(){return new Y(this)},Wa.diff=function(e,t,a){var n,s,r;if(!this.isValid())return NaN;if(!(n=He(e,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=x(t)){case"year":r=Ne(this,n)/12;break;case"month":r=Ne(this,n);break;case"quarter":r=Ne(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:E(r)},Wa.endOf=function(e){var a,n;if(void 0===(e=x(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Ge:Ie,e){case"year":a=n(this.year()+1,0,1)-1;break;case"quarter":a=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=n(this.year(),this.month()+1,1)-1;break;case"week":a=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=36e5-Je(a+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":a=this._d.valueOf(),a+=6e4-Je(a,6e4)-1;break;case"second":a=this._d.valueOf(),a+=1e3-Je(a,1e3)-1}return this._d.setTime(a),t.updateOffset(this,!0),this},Wa.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=S(this,e);return this.localeData().postformat(a)},Wa.from=function(e,t){return this.isValid()&&(f(e)&&e.isValid()||De(e).isValid())?Oe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Wa.fromNow=function(e){return this.from(De(),e)},Wa.to=function(e,t){return this.isValid()&&(f(e)&&e.isValid()||De(e).isValid())?Oe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Wa.toNow=function(e){return this.to(De(),e)},Wa.get=function(e){return D(this[e=x(e)])?this[e]():this},Wa.invalidAt=function(){return c(this).overflow},Wa.isAfter=function(e,t){var a=f(e)?e:De(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=x(t)||"millisecond")?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},Wa.isBefore=function(e,t){var a=f(e)?e:De(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=x(t)||"millisecond")?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},Wa.isBetween=function(e,t,a,n){var s=f(e)?e:De(e),r=f(t)?t:De(t);return!!(this.isValid()&&s.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(s,a):!this.isBefore(s,a))&&(")"===n[1]?this.isBefore(r,a):!this.isAfter(r,a))},Wa.isSame=function(e,t){var a,n=f(e)?e:De(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=x(t)||"millisecond")?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},Wa.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Wa.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Wa.isValid=function(){return h(this)},Wa.lang=ba,Wa.locale=Ce,Wa.localeData=Re,Wa.max=pa,Wa.min=ya,Wa.parsingFlags=function(){return m({},c(this))},Wa.set=function(e,t){if("object"==typeof e){var a,n=function(e){var t,a=[];for(t in e)r(e,t)&&a.push({unit:t,priority:pt[t]});return a.sort(function(e,t){return e.priority-t.priority}),a}(e=O(e));for(a=0;a<n.length;a++)this[n[a].unit](e[n[a].unit])}else if(D(this[e=x(e)]))return this[e](t);return this},Wa.startOf=function(e){var a,n;if(void 0===(e=x(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Ge:Ie,e){case"year":a=n(this.year(),0,1);break;case"quarter":a=n(this.year(),this.month()-this.month()%3,1);break;case"month":a=n(this.year(),this.month(),1);break;case"week":a=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=n(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Je(a+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":a=this._d.valueOf(),a-=Je(a,6e4);break;case"second":a=this._d.valueOf(),a-=Je(a,1e3)}return this._d.setTime(a),t.updateOffset(this,!0),this},Wa.subtract=va,Wa.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Wa.toObject=function(){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()}},Wa.toDate=function(){return new Date(this.valueOf())},Wa.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?S(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",S(a,"Z")):S(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Wa.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,a,n="moment",s="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=s+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+a)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Wa[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Wa.toJSON=function(){return this.isValid()?this.toISOString():null},Wa.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Wa.unix=function(){return Math.floor(this.valueOf()/1e3)},Wa.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Wa.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Wa.eraName=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].name;if(n[e].until<=a&&a<=n[e].since)return n[e].name}return""},Wa.eraNarrow=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].narrow;if(n[e].until<=a&&a<=n[e].since)return n[e].narrow}return""},Wa.eraAbbr=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].abbr;if(n[e].until<=a&&a<=n[e].since)return n[e].abbr}return""},Wa.eraYear=function(){var e,a,n,s,r=this.localeData().eras();for(e=0,a=r.length;e<a;++e)if(n=r[e].since<=r[e].until?1:-1,s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return(this.year()-t(r[e].since).year())*n+r[e].offset;return this.year()},Wa.year=Xt,Wa.isLeapYear=function(){return W(this.year())},Wa.weekYear=function(e){return qe.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Wa.isoWeekYear=function(e){return qe.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Wa.quarter=Wa.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Wa.month=q,Wa.daysInMonth=function(){return V(this.year(),this.month())},Wa.week=Wa.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Wa.isoWeek=Wa.isoWeeks=function(e){var t=ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Wa.weeksInYear=function(){var e=this.localeData()._week;return te(this.year(),e.dow,e.doy)},Wa.weeksInWeekYear=function(){var e=this.localeData()._week;return te(this.weekYear(),e.dow,e.doy)},Wa.isoWeeksInYear=function(){return te(this.year(),1,4)},Wa.isoWeeksInISOWeekYear=function(){return te(this.isoWeekYear(),1,4)},Wa.date=Ha,Wa.day=Wa.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Wa.weekday=function(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")},Wa.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Wa.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Wa.hour=Wa.hours=da,Wa.minute=Wa.minutes=ja,Wa.second=Wa.seconds=Pa,Wa.millisecond=Wa.milliseconds=Oa,Wa.utcOffset=function(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(null===(e=Se(Et,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&a&&(s=je(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),r!==e&&(!a||this._changeInProgress?Ae(this,Oe(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:je(this)},Wa.utc=function(e){return this.utcOffset(0,e)},Wa.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(je(this),"m")),this},Wa.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Se(Wt,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Wa.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?De(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Wa.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Wa.isLocal=function(){return!!this.isValid()&&!this._isUTC},Wa.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Wa.isUtc=xe,Wa.isUTC=xe,Wa.zoneAbbr=function(){return this._isUTC?"UTC":""},Wa.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Wa.dates=p("dates accessor is deprecated. Use date instead.",Ha),Wa.months=p("months accessor is deprecated. Use month instead",q),Wa.years=p("years accessor is deprecated. Use year instead",Xt),Wa.zone=p("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Wa.isDSTShifted=p("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return L(t,this),(t=pe(t))._a?(e=t._isUTC?l(t._a):De(t._a),this._isDSTShifted=this.isValid()&&function(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])!==A(t[n])&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Ea=T.prototype;Ea.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return D(n)?n.call(t,a):n},Ea.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Mt).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Ea.invalidDate=function(){return this._invalidDate},Ea.ordinal=function(e){return this._ordinal.replace("%d",e)},Ea.preparse=Ze,Ea.postformat=Ze,Ea.relativeTime=function(e,t,a,n){var s=this._relativeTime[a];return D(s)?s(e,t,a,n):s.replace(/%d/i,e)},Ea.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return D(a)?a(t):a.replace(/%s/i,t)},Ea.set=function(e){var t,a;for(a in e)r(e,a)&&(D(t=e[a])?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ea.eras=function(e,a){var n,s,r,i=this._eras||le("en")._eras;for(n=0,s=i.length;n<s;++n){switch(typeof i[n].since){case"string":r=t(i[n].since).startOf("day"),i[n].since=r.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=t(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf()}}return i},Ea.erasParse=function(e,t,a){var n,s,r,i,d,_=this.eras();for(e=e.toUpperCase(),n=0,s=_.length;n<s;++n)if(r=_[n].name.toUpperCase(),i=_[n].abbr.toUpperCase(),d=_[n].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(i===e)return _[n];break;case"NNNN":if(r===e)return _[n];break;case"NNNNN":if(d===e)return _[n]}else if([r,i,d].indexOf(e)>=0)return _[n]},Ea.erasConvertYear=function(e,a){var n=e.since<=e.until?1:-1;return void 0===a?t(e.since).year():t(e.since).year()+(a-e.offset)*n},Ea.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||Ve.call(this),e?this._erasAbbrRegex:this._erasRegex},Ea.erasNameRegex=function(e){return r(this,"_erasNameRegex")||Ve.call(this),e?this._erasNameRegex:this._erasRegex},Ea.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||Ve.call(this),e?this._erasNarrowRegex:this._erasRegex},Ea.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zt).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},Ea.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zt.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ea.monthsParse=function(e,t,a){var n,s,r;if(this._monthsParseExact)return function(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=l([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(s=Ft.call(this._shortMonthsParse,i))?s:null:-1!==(s=Ft.call(this._longMonthsParse,i))?s:null:"MMM"===t?-1!==(s=Ft.call(this._shortMonthsParse,i))?s:-1!==(s=Ft.call(this._longMonthsParse,i))?s:null:-1!==(s=Ft.call(this._longMonthsParse,i))?s:-1!==(s=Ft.call(this._shortMonthsParse,i))?s:null}.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=l([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}},Ea.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||K.call(this),e?this._monthsStrictRegex:this._months