UNPKG

react-weekly-day-picker

Version:
1 lines 269 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactWeeklyDayPicker=t(require("react"),require("react-dom")):e.ReactWeeklyDayPicker=t(e.react,e["react-dom"])}(this,function(e,t){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=119)}([function(e,t,a){(function(e){!function(t,a){e.exports=function(){"use strict";function t(){return Sn.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){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function i(e){return void 0===e}function d(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 o(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function m(e,t){for(var a in t)u(t,a)&&(e[a]=t[a]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,a,n){return gt(e,t,a,n,!0).utc()}function c(){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 h(e){return null==e._pf&&(e._pf=c()),e._pf}function M(e){if(null==e._isValid){var t=h(e),a=Hn.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 L(e){var t=l(NaN);return null!=e?m(h(t),e):h(t).userInvalidated=!0,t}function f(e,t){var a,n,s;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=h(t)),i(t._locale)||(e._locale=t._locale),jn.length>0)for(a=0;a<jn.length;a++)n=jn[a],s=t[n],i(s)||(e[n]=s);return e}function y(e){f(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===xn&&(xn=!0,t.updateOffset(this),xn=!1)}function Y(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function p(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=p(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 w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,a){var n=!0;return m(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)}w(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return a.apply(this,arguments)},a)}function g(e,a){null!=t.deprecationHandler&&t.deprecationHandler(e,a),Pn[e]||(w(a),Pn[e]=!0)}function v(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function b(e){var t,a;for(a in e)t=e[a],v(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 S(e,t){var a,n=m({},e);for(a in t)u(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)u(e,a)&&!u(t,a)&&s(e[a])&&(n[a]=m({},n[a]));return n}function H(e){null!=e&&this.set(e)}function j(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return v(n)?n.call(t,a):n}function x(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 O(e){return this._ordinal.replace("%d",e)}function W(e,t,a,n){var s=this._relativeTime[a];return v(s)?s(e,t,a,n):s.replace(/%d/i,e)}function E(e,t){var a=this._relativeTime[e>0?"future":"past"];return v(a)?a(t):a.replace(/%s/i,t)}function A(e,t){var a=e.toLowerCase();zn[a]=zn[a+"s"]=zn[t]=e}function F(e){return"string"==typeof e?zn[e]||zn[e.toLowerCase()]:void 0}function z(e){var t,a,n={};for(a in e)u(e,a)&&(t=F(a))&&(n[t]=e[a]);return n}function C(e,t){Cn[e]=t}function J(e){var t=[];for(var a in e)t.push({unit:a,priority:Cn[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}function N(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 R(e,t,a,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(Un[e]=s),t&&(Un[t[0]]=function(){return N(s.apply(this,arguments),t[1],t[2])}),a&&(Un[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I(e){var t,a,n=e.match(Jn);for(t=0,a=n.length;t<a;t++)Un[n[t]]?n[t]=Un[n[t]]:n[t]=U(n[t]);return function(t){var s,r="";for(s=0;s<a;s++)r+=v(n[s])?n[s].call(t,e):n[s];return r}}function G(e,t){return e.isValid()?(t=V(t,e.localeData()),Rn[t]=Rn[t]||I(t),Rn[t](e)):e.localeData().invalidDate()}function V(e,t){function a(e){return t.longDateFormat(e)||e}var n=5;for(Nn.lastIndex=0;n>=0&&Nn.test(e);)e=e.replace(Nn,a),Nn.lastIndex=0,n-=1;return e}function B(e,t,a){ds[e]=v(t)?t:function(e,n){return e&&a?a:t}}function $(e,t){return u(ds,e)?ds[e](t._strict,t._locale):new RegExp(K(e))}function K(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 Z(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),d(t)&&(n=function(e,a){a[t]=k(e)}),a=0;a<e.length;a++)_s[e[a]]=n}function Q(e,t){Z(e,function(e,a,n,s){n._w=n._w||{},t(e,n._w,n,s)})}function X(e,t,a){null!=t&&u(_s,e)&&_s[e](t,a._a,a,e)}function ee(e){return te(e)?366:365}function te(e){return e%4==0&&e%100!=0||e%400==0}function ae(){return te(this.year())}function ne(e,a){return function(n){return null!=n?(re(this,e,n),t.updateOffset(this,a),this):se(this,e)}}function se(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function re(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),oe(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function ie(e){return e=F(e),v(this[e])?this[e]():this}function de(e,t){if("object"==typeof e){e=z(e);for(var a=J(e),n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(e=F(e),v(this[e]))return this[e](t);return this}function _e(e,t){return(e%t+t)%t}function oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=_e(t,12);return e+=(t-a)/12,1===a?te(e)?29:28:31-a%7%2}function ue(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ps).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone}function me(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ps.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(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?(s=ys.call(this._shortMonthsParse,i),-1!==s?s:null):(s=ys.call(this._longMonthsParse,i),-1!==s?s:null):"MMM"===t?-1!==(s=ys.call(this._shortMonthsParse,i))?s:(s=ys.call(this._longMonthsParse,i),-1!==s?s:null):-1!==(s=ys.call(this._longMonthsParse,i))?s:(s=ys.call(this._shortMonthsParse,i),-1!==s?s:null)}function ce(e,t,a){var n,s,r;if(this._monthsParseExact)return le.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}}function he(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),!d(t))return e;return a=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function Me(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):se(this,"Month")}function Le(){return oe(this.year(),this.month())}function fe(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ws),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ye(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Ts),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ye(){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]=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 pe(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;return-(7+ke(e,0,n).getUTCDay()-t)%7+n-1}function we(e,t,a,n,s){var r,i,d=(7+a-n)%7,_=De(e,n,s),o=1+7*(t-1)+d+_;return o<=0?(r=e-1,i=ee(r)+o):o>ee(e)?(r=e+1,i=o-ee(e)):(r=e,i=o),{year:r,dayOfYear:i}}function Te(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+ge(s,t,a)):i>ge(e.year(),t,a)?(n=i-ge(e.year(),t,a),s=e.year()+1):(s=e.year(),n=i),{week:n,year:s}}function ge(e,t,a){var n=De(e,t,a),s=De(e+1,t,a);return(ee(e)-n+s)/7}function ve(e){return Te(e,this._week.dow,this._week.doy).week}function be(){return this._week.dow}function Se(){return this._week.doy}function He(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function je(e){var t=Te(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function xe(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 Oe(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function We(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ee(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(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=l([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=ys.call(this._weekdaysParse,i),-1!==s?s:null):"ddd"===t?(s=ys.call(this._shortWeekdaysParse,i),-1!==s?s:null):(s=ys.call(this._minWeekdaysParse,i),-1!==s?s:null):"dddd"===t?-1!==(s=ys.call(this._weekdaysParse,i))?s:-1!==(s=ys.call(this._shortWeekdaysParse,i))?s:(s=ys.call(this._minWeekdaysParse,i),-1!==s?s:null):"ddd"===t?-1!==(s=ys.call(this._shortWeekdaysParse,i))?s:-1!==(s=ys.call(this._weekdaysParse,i))?s:(s=ys.call(this._minWeekdaysParse,i),-1!==s?s:null):-1!==(s=ys.call(this._minWeekdaysParse,i))?s:-1!==(s=ys.call(this._weekdaysParse,i))?s:(s=ys.call(this._shortWeekdaysParse,i),-1!==s?s:null)}function Fe(e,t,a){var n,s,r;if(this._weekdaysParseExact)return Ae.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=l([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 ze(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=xe(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 Je(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 Ne(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Hs),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Re(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=js),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ue(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xs),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ie(){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=this.weekdaysMin(a,""),s=this.weekdaysShort(a,""),r=this.weekdays(a,""),i.push(n),d.push(s),_.push(r),o.push(n),o.push(s),o.push(r);for(i.sort(e),d.sort(e),_.sort(e),o.sort(e),t=0;t<7;t++)d[t]=q(d[t]),_[t]=q(_[t]),o[t]=q(o[t]);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 Ge(){return this.hours()%12||12}function Ve(){return this.hours()||24}function Be(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function $e(e,t){return t._meridiemParse}function Ke(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}function Ze(e){return e?e.toLowerCase().replace("_","-"):e}function Qe(e){for(var t,a,n,s,r=0;r<e.length;){for(s=Ze(e[r]).split("-"),t=s.length,a=Ze(e[r+1]),a=a?a.split("-"):null;t>0;){if(n=Xe(s.slice(0,t).join("-")))return n;if(a&&a.length>=t&&D(s,a,!0)>=t-1)break;t--}r++}return null}function Xe(t){var n=null;if(!As[t]&&void 0!==e&&e&&e.exports)try{n=Ps._abbr,a(123)("./"+t),et(n)}catch(e){}return As[t]}function et(e,t){var a;return e&&(a=i(t)?nt(e):tt(e,t))&&(Ps=a),Ps._abbr}function tt(e,t){if(null!==t){var a=Es;if(t.abbr=e,null!=As[e])g("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."),a=As[e]._config;else if(null!=t.parentLocale){if(null==As[t.parentLocale])return Fs[t.parentLocale]||(Fs[t.parentLocale]=[]),Fs[t.parentLocale].push({name:e,config:t}),null;a=As[t.parentLocale]._config}return As[e]=new H(S(a,t)),Fs[e]&&Fs[e].forEach(function(e){tt(e.name,e.config)}),et(e),As[e]}return delete As[e],null}function at(e,t){if(null!=t){var a,n,s=Es;n=Xe(e),null!=n&&(s=n._config),t=S(s,t),a=new H(t),a.parentLocale=As[e],As[e]=a,et(e)}else null!=As[e]&&(null!=As[e].parentLocale?As[e]=As[e].parentLocale:null!=As[e]&&delete As[e]);return As[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ps;if(!n(e)){if(t=Xe(e))return t;e=[e]}return Qe(e)}function st(){return On(As)}function rt(e){var t,a=e._a;return a&&-2===h(e).overflow&&(t=a[us]<0||a[us]>11?us:a[ms]<1||a[ms]>oe(a[os],a[us])?ms:a[ls]<0||a[ls]>24||24===a[ls]&&(0!==a[cs]||0!==a[hs]||0!==a[Ms])?ls:a[cs]<0||a[cs]>59?cs:a[hs]<0||a[hs]>59?hs:a[Ms]<0||a[Ms]>999?Ms:-1,h(e)._overflowDayOfYear&&(t<os||t>ms)&&(t=ms),h(e)._overflowWeeks&&-1===t&&(t=Ls),h(e)._overflowWeekday&&-1===t&&(t=fs),h(e).overflow=t),e}function it(e,t,a){return null!=e?e:null!=t?t:a}function dt(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=[];if(!e._d){for(n=dt(e),e._w&&null==e._a[ms]&&null==e._a[us]&&ot(e),null!=e._dayOfYear&&(s=it(e._a[os],n[os]),(e._dayOfYear>ee(s)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),a=ke(s,0,e._dayOfYear),e._a[us]=a.getUTCMonth(),e._a[ms]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=n[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ls]&&0===e._a[cs]&&0===e._a[hs]&&0===e._a[Ms]&&(e._nextDay=!0,e._a[ls]=0),e._d=(e._useUTC?ke:pe).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ls]=24),e._w&&void 0!==e._w.d&&e._w.d!==e._d.getDay()&&(h(e).weekdayMismatch=!0)}}function ot(e){var t,a,n,s,r,i,d,_;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,i=4,a=it(t.GG,e._a[os],Te(vt(),1,4).year),n=it(t.W,1),((s=it(t.E,1))<1||s>7)&&(_=!0);else{r=e._locale._week.dow,i=e._locale._week.doy;var o=Te(vt(),r,i);a=it(t.gg,e._a[os],o.year),n=it(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>ge(a,r,i)?h(e)._overflowWeeks=!0:null!=_?h(e)._overflowWeekday=!0:(d=we(a,n,s,r,i),e._a[os]=d.year,e._dayOfYear=d.dayOfYear)}function ut(e){var t,a,n,s,r,i,d=e._i,_=zs.exec(d)||Cs.exec(d);if(_){for(h(e).iso=!0,t=0,a=Ns.length;t<a;t++)if(Ns[t][1].exec(_[1])){s=Ns[t][0],n=!1!==Ns[t][2];break}if(null==s)return void(e._isValid=!1);if(_[3]){for(t=0,a=Rs.length;t<a;t++)if(Rs[t][1].exec(_[3])){r=(_[2]||" ")+Rs[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(_[4]){if(!Js.exec(_[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),yt(e)}else e._isValid=!1}function mt(e,t,a,n,s,r){var i=[lt(e),Ds.indexOf(t),parseInt(a,10),parseInt(n,10),parseInt(s,10)];return r&&i.push(parseInt(r,10)),i}function lt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ct(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ht(e,t,a){return!e||bs.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(a).weekdayMismatch=!0,a._isValid=!1,!1)}function Mt(e,t,a){if(e)return Gs[e];if(t)return 0;var n=parseInt(a,10),s=n%100;return(n-s)/100*60+s}function Lt(e){var t=Is.exec(ct(e._i));if(t){var a=mt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ht(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),h(e).rfc2822=!0}else e._isValid=!1}function ft(e){var a=Us.exec(e._i);if(null!==a)return void(e._d=new Date(+a[1]));ut(e),!1===e._isValid&&(delete e._isValid,Lt(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function yt(e){if(e._f===t.ISO_8601)return void ut(e);if(e._f===t.RFC_2822)return void Lt(e);e._a=[],h(e).empty=!0;var a,n,s,r,i,d=""+e._i,_=d.length,o=0;for(s=V(e._f,e._locale).match(Jn)||[],a=0;a<s.length;a++)r=s[a],n=(d.match($(r,e))||[])[0],n&&(i=d.substr(0,d.indexOf(n)),i.length>0&&h(e).unusedInput.push(i),d=d.slice(d.indexOf(n)+n.length),o+=n.length),Un[r]?(n?h(e).empty=!1:h(e).unusedTokens.push(r),X(r,n,e)):e._strict&&!n&&h(e).unusedTokens.push(r);h(e).charsLeftOver=_-o,d.length>0&&h(e).unusedInput.push(d),e._a[ls]<=12&&!0===h(e).bigHour&&e._a[ls]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ls]=Yt(e._locale,e._a[ls],e._meridiem),_t(e),rt(e)}function Yt(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 pt(e){var t,a,n,s,r;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)r=0,t=f({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],yt(t),M(t)&&(r+=h(t).charsLeftOver,r+=10*h(t).unusedTokens.length,h(t).score=r,(null==n||r<n)&&(n=r,a=t));m(e,a||t)}function kt(e){if(!e._d){var t=z(e._i);e._a=o([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(rt(wt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wt(e){var t=e._i,a=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===a&&""===t?L({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),Y(t)?new y(rt(t)):(_(t)?e._d=t:n(a)?pt(e):a?yt(e):Tt(e),M(e)||(e._d=null),e))}function Tt(e){var a=e._i;i(a)?e._d=new Date(t.now()):_(a)?e._d=new Date(a.valueOf()):"string"==typeof a?ft(e):n(a)?(e._a=o(a.slice(0),function(e){return parseInt(e,10)}),_t(e)):s(a)?kt(e):d(a)?e._d=new Date(a):t.createFromInputFallback(e)}function gt(e,t,a,i,d){var _={};return!0!==a&&!1!==a||(i=a,a=void 0),(s(e)&&r(e)||n(e)&&0===e.length)&&(e=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=d,_._l=a,_._i=e,_._f=t,_._strict=i,Dt(_)}function vt(e,t,a,n){return gt(e,t,a,n,!1)}function bt(e,t){var a,s;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return vt();for(a=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](a)||(a=t[s]);return a}function St(){return bt("isBefore",[].slice.call(arguments,0))}function Ht(){return bt("isAfter",[].slice.call(arguments,0))}function jt(e){for(var t in e)if(-1===ys.call(Ks,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,n=0;n<Ks.length;++n)if(e[Ks[n]]){if(a)return!1;parseFloat(e[Ks[n]])!==k(e[Ks[n]])&&(a=!0)}return!0}function xt(){return this._isValid}function Pt(){return Zt(NaN)}function Ot(e){var t=z(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,_=t.minute||0,o=t.second||0,u=t.millisecond||0;this._isValid=jt(t),this._milliseconds=+u+1e3*o+6e4*_+1e3*d*60*60,this._days=+i+7*r,this._months=+s+3*n+12*a,this._data={},this._locale=nt(),this._bubble()}function Wt(e){return e instanceof Ot}function Et(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function At(e,t){R(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+N(~~(e/60),2)+t+N(~~e%60,2)})}function Ft(e,t){var a=(t||"").match(e);if(null===a)return null;var n=a[a.length-1]||[],s=(n+"").match(qs)||["-",0,0],r=60*s[1]+k(s[2]);return 0===r?0:"+"===s[0]?r:-r}function zt(e,a){var n,s;return a._isUTC?(n=a.clone(),s=(Y(e)||_(e)?e.valueOf():vt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),t.updateOffset(n,!1),n):vt(e).local()}function Ct(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Jt(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=Ft(ss,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?aa(this,Zt(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 Nt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Rt(e){return this.utcOffset(0,e)}function Ut(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ct(this),"m")),this}function It(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ns,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Gt(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Vt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(f(e,this),e=wt(e),e._a){var t=e._isUTC?l(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&D(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function $t(){return!!this.isValid()&&!this._isUTC}function Kt(){return!!this.isValid()&&this._isUTC}function qt(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Zt(e,t){var a,n,s,r=e,i=null;return Wt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:d(e)?(r={},t?r[t]=e:r.milliseconds=e):(i=Zs.exec(e))?(a="-"===i[1]?-1:1,r={y:0,d:k(i[ms])*a,h:k(i[ls])*a,m:k(i[cs])*a,s:k(i[hs])*a,ms:k(Et(1e3*i[Ms]))*a}):(i=Qs.exec(e))?(a="-"===i[1]?-1:(i[1],1),r={y:Qt(i[2],a),M:Qt(i[3],a),w:Qt(i[4],a),d:Qt(i[5],a),h:Qt(i[6],a),m:Qt(i[7],a),s:Qt(i[8],a)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(s=ea(vt(r.from),vt(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),n=new Ot(r),Wt(e)&&u(e,"_locale")&&(n._locale=e._locale),n}function Qt(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Xt(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 ea(e,t){var a;return e.isValid()&&t.isValid()?(t=zt(t,e),e.isBefore(t)?a=Xt(e,t):(a=Xt(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function ta(e,t){return function(a,n){var s,r;return null===n||isNaN(+n)||(g(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=Zt(a,n),aa(this,s,e),this}}function aa(e,a,n,s){var r=a._milliseconds,i=Et(a._days),d=Et(a._months);e.isValid()&&(s=null==s||s,d&&he(e,se(e,"Month")+d*n),i&&re(e,"Date",se(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&t.updateOffset(e,i||d))}function na(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 sa(e,a){var n=e||vt(),s=zt(n,this).startOf("day"),r=t.calendarFormat(this,s)||"sameElse",i=a&&(v(a[r])?a[r].call(this,n):a[r]);return this.format(i||this.localeData().calendar(r,this,vt(n)))}function ra(){return new y(this)}function ia(e,t){var a=Y(e)?e:vt(e);return!(!this.isValid()||!a.isValid())&&(t=F(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())}function da(e,t){var a=Y(e)?e:vt(e);return!(!this.isValid()||!a.isValid())&&(t=F(i(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 oa(e,t){var a,n=Y(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&(t=F(t||"millisecond"),"millisecond"===t?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))}function ua(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ma(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function la(e,t,a){var n,s,r;if(!this.isValid())return NaN;if(n=zt(e,this),!n.isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=F(t)){case"year":r=ca(this,n)/12;break;case"month":r=ca(this,n);break;case"quarter":r=ca(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:p(r)}function ca(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 ha(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ma(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?G(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):v(Date.prototype.toISOString)?this.toDate().toISOString():G(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function La(){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=t+'[")]';return this.format(a+n+"-MM-DD[T]HH:mm:ss.SSS"+s)}function fa(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=G(this,e);return this.localeData().postformat(a)}function ya(e,t){return this.isValid()&&(Y(e)&&e.isValid()||vt(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ya(e){return this.from(vt(),e)}function pa(e,t){return this.isValid()&&(Y(e)&&e.isValid()||vt(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ka(e){return this.to(vt(),e)}function Da(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function wa(){return this._locale}function Ta(e){switch(e=F(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 ga(e){return void 0===(e=F(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function va(){return this._d.valueOf()-6e4*(this._offset||0)}function ba(){return Math.floor(this.valueOf()/1e3)}function Sa(){return new Date(this.valueOf())}function Ha(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ja(){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 xa(){return this.isValid()?this.toISOString():null}function Pa(){return M(this)}function Oa(){return m({},h(this))}function Wa(){return h(this).overflow}function Ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Aa(e,t){R(0,[e,e.length],0,t)}function Fa(e){return Na.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function za(e){return Na.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ca(){return ge(this.year(),1,4)}function Ja(){var e=this.localeData()._week;return ge(this.year(),e.dow,e.doy)}function Na(e,t,a,n,s){var r;return null==e?Te(this,n,s).year:(r=ge(e,n,s),t>r&&(t=r),Ra.call(this,e,t,a,n,s))}function Ra(e,t,a,n,s){var r=we(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 Ua(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ia(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 Ga(e,t){t[Ms]=k(1e3*("0."+e))}function Va(){return this._isUTC?"UTC":""}function Ba(){return this._isUTC?"Coordinated Universal Time":""}function $a(e){return vt(1e3*e)}function Ka(){return vt.apply(null,arguments).parseZone()}function qa(e){return e}function Za(e,t,a,n){var s=nt(),r=l().set(n,t);return s[a](r,e)}function Qa(e,t,a){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Za(e,t,a,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Za(e,n,a,"month");return s}function Xa(e,t,a,n){"boolean"==typeof e?(d(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,d(t)&&(a=t,t=void 0),t=t||"");var s=nt(),r=e?s._week.dow:0;if(null!=a)return Za(t,(a+r)%7,n,"day");var i,_=[];for(i=0;i<7;i++)_[i]=Za(t,(i+r)%7,n,"day");return _}function en(e,t){return Qa(e,t,"months")}function tn(e,t){return Qa(e,t,"monthsShort")}function an(e,t,a){return Xa(e,t,a,"weekdays")}function nn(e,t,a){return Xa(e,t,a,"weekdaysShort")}function sn(e,t,a){return Xa(e,t,a,"weekdaysMin")}function rn(){var e=this._data;return this._milliseconds=or(this._milliseconds),this._days=or(this._days),this._months=or(this._months),e.milliseconds=or(e.milliseconds),e.seconds=or(e.seconds),e.minutes=or(e.minutes),e.hours=or(e.hours),e.months=or(e.months),e.years=or(e.years),this}function dn(e,t,a,n){var s=Zt(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 dn(this,e,t,1)}function on(e,t){return dn(this,e,t,-1)}function un(e){return e<0?Math.floor(e):Math.ceil(e)}function mn(){var e,t,a,n,s,r=this._milliseconds,i=this._days,d=this._months,_=this._data;return r>=0&&i>=0&&d>=0||r<=0&&i<=0&&d<=0||(r+=864e5*un(cn(d)+i),i=0,d=0),_.milliseconds=r%1e3,e=p(r/1e3),_.seconds=e%60,t=p(e/60),_.minutes=t%60,a=p(t/60),_.hours=a%24,i+=p(a/24),s=p(ln(i)),d+=s,i-=un(cn(s)),n=p(d/12),d%=12,_.days=i,_.months=d,_.years=n,this}function ln(e){return 4800*e/146097}function cn(e){return 146097*e/4800}function hn(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if("month"===(e=F(e))||"year"===e)return t=this._days+n/864e5,a=this._months+ln(t),"month"===e?a:a/12;switch(t=this._days+Math.round(cn(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 Ln(e){return function(){return this.as(e)}}function fn(){return Zt(this)}function yn(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function Yn(e){return function(){return this.isValid()?this._data[e]:NaN}}function pn(){return p(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=Zt(e).abs(),s=gr(n.as("s")),r=gr(n.as("m")),i=gr(n.as("h")),d=gr(n.as("d")),_=gr(n.as("M")),o=gr(n.as("y")),u=s<=vr.ss&&["s",s]||s<vr.s&&["ss",s]||r<=1&&["m"]||r<vr.m&&["mm",r]||i<=1&&["h"]||i<vr.h&&["hh",i]||d<=1&&["d"]||d<vr.d&&["dd",d]||_<=1&&["M"]||_<vr.M&&["MM",_]||o<=1&&["y"]||["yy",o];return u[2]=t,u[3]=+e>0,u[4]=a,kn.apply(null,u)}function wn(e){return void 0===e?gr:"function"==typeof e&&(gr=e,!0)}function Tn(e,t){return void 0!==vr[e]&&(void 0===t?vr[e]:(vr[e]=t,"s"===e&&(vr.ss=t-1),!0))}function gn(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 vn(e){return(e>0)-(e<0)||+e}function bn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a,n=br(this._milliseconds)/1e3,s=br(this._days),r=br(this._months);e=p(n/60),t=p(e/60),n%=60,e%=60,a=p(r/12),r%=12;var i=a,d=r,_=s,o=t,u=e,m=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=this.asSeconds();if(!l)return"P0D";var c=l<0?"-":"",h=vn(this._months)!==vn(l)?"-":"",M=vn(this._days)!==vn(l)?"-":"",L=vn(this._milliseconds)!==vn(l)?"-":"";return c+"P"+(i?h+i+"Y":"")+(d?h+d+"M":"")+(_?M+_+"D":"")+(o||u||m?"T":"")+(o?L+o+"H":"")+(u?L+u+"M":"")+(m?L+m+"S":"")}var Sn,Hn;Hn=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 jn=t.momentProperties=[],xn=!1,Pn={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var On;On=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)u(e,t)&&a.push(t);return a};var Wn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},En={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"},An=/\d{1,2}/,Fn={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"},zn={},Cn={},Jn=/(\[[^\[]*\])|(\\)?([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,Nn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Rn={},Un={},In=/\d/,Gn=/\d\d/,Vn=/\d{3}/,Bn=/\d{4}/,$n=/[+-]?\d{6}/,Kn=/\d\d?/,qn=/\d\d\d\d?/,Zn=/\d\d\d\d\d\d?/,Qn=/\d{1,3}/,Xn=/\d{1,4}/,es=/[+-]?\d{1,6}/,ts=/\d+/,as=/[+-]?\d+/,ns=/Z|[+-]\d\d:?\d\d/gi,ss=/Z|[+-]\d\d(?::?\d\d)?/gi,rs=/[+-]?\d+(\.\d{1,3})?/,is=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ds={},_s={},os=0,us=1,ms=2,ls=3,cs=4,hs=5,Ms=6,Ls=7,fs=8;R("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),A("year","y"),C("year",1),B("Y",as),B("YY",Kn,Gn),B("YYYY",Xn,Bn),B("YYYYY",es,$n),B("YYYYYY",es,$n),Z(["YYYYY","YYYYYY"],os),Z("YYYY",function(e,a){a[os]=2===e.length?t.parseTwoDigitYear(e):k(e)}),Z("YY",function(e,a){a[os]=t.parseTwoDigitYear(e)}),Z("Y",function(e,t){t[os]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var ys,Ys=ne("FullYear",!0);ys=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},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),R("MMMM",0,0,function(e){return this.localeData().months(this,e)}),A("month","M"),C("month",8),B("M",Kn),B("MM",Kn,Gn),B("MMM",function(e,t){return t.monthsShortRegex(e)}),B("MMMM",function(e,t){return t.monthsRegex(e)}),Z(["M","MM"],function(e,t){t[us]=k(e)-1}),Z(["MMM","MMMM"],function(e,t,a,n){var s=a._locale.monthsParse(e,n,a._strict);null!=s?t[us]=s:h(a).invalidMonth=e});var ps=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ks="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ds="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ws=is,Ts=is;R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),C("week",5),C("isoWeek",5),B("w",Kn),B("ww",Kn,Gn),B("W",Kn),B("WW",Kn,Gn),Q(["w","ww","W","WW"],function(e,t,a,n){t[n.substr(0,1)]=k(e)});var gs={dow:0,doy:6};R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),B("d",Kn),B("e",Kn),B("E",Kn),B("dd",function(e,t){return t.weekdaysMinRegex(e)}),B("ddd",function(e,t){return t.weekdaysShortRegex(e)}),B("dddd",function(e,t){return t.weekdaysRegex(e)}),Q(["dd","ddd","dddd"],function(e,t,a,n){var s=a._locale.weekdaysParse(e,n,a._strict);null!=s?t.d=s:h(a).invalidWeekday=e}),Q(["d","e","E"],function(e,t,a,n){t[n]=k(e)});var vs="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ss="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Hs=is,js=is,xs=is;R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Ge),R("k",["kk",2],0,Ve),R("hmm",0,0,function(){return""+Ge.apply(this)+N(this.minutes(),2)}),R("hmmss",0,0,function(){return""+Ge.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),Be("a",!0),Be("A",!1),A("hour","h"),C("hour",13),B("a",$e),B("A",$e),B("H",Kn),B("h",Kn),B("k",Kn),B("HH",Kn,Gn),B("hh",Kn,Gn),B("kk",Kn,Gn),B("hmm",qn),B("hmmss",Zn),B("Hmm",qn),B("Hmmss",Zn),Z(["H","HH"],ls),Z(["k","kk"],function(e,t,a){var n=k(e);t[ls]=24===n?0:n}),Z(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),Z(["h","hh"],function(e,t,a){t[ls]=k(e),h(a).bigHour=!0}),Z("hmm",function(e,t,a){var n=e.length-2;t[ls]=k(e.substr(0,n)),t[cs]=k(e.substr(n)),h(a).bigHour=!0}),Z("hmmss",function(e,t,a){var n=e.length-4,s=e.length-2;t[ls]=k(e.substr(0,n)),t[cs]=k(e.substr(n,2)),t[hs]=k(e.substr(s)),h(a).bigHour=!0}),Z("Hmm",function(e,t,a){var n=e.length-2;t[ls]=k(e.substr(0,n)),t[cs]=k(e.substr(n))}),Z("Hmmss",function(e,t,a){var n=e.length-4,s=e.length-2;t[ls]=k(e.substr(0,n)),t[cs]=k(e.substr(n,2)),t[hs]=k(e.substr(s))});var Ps,Os=/[ap]\.?m?\.?/i,Ws=ne("Hours",!0),Es={calendar:Wn,longDateFormat:En,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:An,relativeTime:Fn,months:ks,monthsShort:Ds,week:gs,weekdays:vs,weekdaysMin:Ss,weekdaysShort:bs,meridiemParse:Os},As={},Fs={},zs=/^\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)?)?$/,Cs=/^\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)?)?$/,Js=/Z|[+-]\d\d(?::?\d\d)?/,Ns=[["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}/]],Rs=[["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/]],Us=/^\/?Date\((\-?\d+)/i,Is=/^(?:(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}))$/,Gs={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=T("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 and will be removed in an upcoming major release. 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 Vs=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:L()}),Bs=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:L()}),$s=function(){return Date.now?Date.now():+new Date},Ks=["year","quarter","month","week","day","hour","minute","second","millisecond"];At("Z",":"),At("ZZ",""),B("Z",ss),B("ZZ",ss),Z(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Ft(ss,e)});var qs=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Zs=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Zt.fn=Ot.prototype,Zt.invalid=Pt;var Xs=ta(1,"add"),er=ta(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=T("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)});R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Aa("gggg","weekYear"),Aa("ggggg","weekYear"),Aa("GGGG","isoWeekYear"),Aa("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),B("G",as),B("g",as),B("GG",Kn,Gn),B("gg",Kn,Gn),B("GGGG",Xn,Bn),B("gggg",Xn,Bn),B("GGGGG",es,$n),B("ggggg",es,$n),Q(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,n){t[n.substr(0,2)]=k(e)}),Q(["gg","GG"],function(e,a,n,s){a[s]=t.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),A("quarter","Q"),C("quarter",7),B("Q",In),Z("Q",function(e,t){t[us]=3*(k(e)-1)}),R("D",["DD",2],"Do","date"),A("date","D"),C("date",9),B("D",Kn),B("DD",Kn,Gn),B("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Z(["D","DD"],ms),Z("Do",function(e,t){t[ms]=k(e.match(Kn)[0],10)});var ar=ne("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),C("dayOfYear",4),B("DDD",Qn),B("DDDD",Vn),Z(["DDD","DDDD"],function(e,t,a){a._dayOfYear=k(e)}),R("m",["mm",2],0,"minute"),A("minute","m"),C("minute",14),B("m",Kn),B("mm",Kn,Gn),Z(["m","mm"],cs);var nr=ne("Minutes",!1);R("s",["ss",2],0,"second"),A("second","s"),C("second",15),B("s",Kn),B("ss",Kn,Gn),Z(["s","ss"],hs);var sr=ne("Seconds",!1);R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),C("millisecond",16),B("S",Qn,In),B("SS",Qn,Gn),B("SSS",Qn,Vn);var rr;for(rr="SSSS";rr.length<=9;rr+="S")B(rr,ts);for(rr="S";rr.length<=9;rr+="S")Z(rr,Ga);var ir=ne("Milliseconds",!1);R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var dr=y.prototype;dr.add=Xs,dr.calendar=sa,dr.clone=ra,dr.diff=la,dr.endOf=ga,dr.format=fa,dr.from=ya,dr.fromNow=Ya,dr.to=pa,dr.toNow=ka,dr.get=ie,dr.invalidAt=Wa,dr.isAfter=ia,dr.isBefore=da,dr.isBetween=_a,dr.isSame=oa,dr.isSameOrAfter=ua,dr.isSameOrBefore=ma,dr.isValid=Pa,dr.lang=tr,dr.locale=Da,dr.localeData=wa,dr.max=Bs,dr.min=Vs,dr.parsingFlags=Oa,dr.set=de,dr.startOf=Ta,dr.subtract=er,dr.toArray=Ha,dr.toObject=ja,dr.toDate=Sa,dr.toISOString=Ma,dr.inspect=La,dr.toJSON=xa,dr.toString=ha,dr.unix=ba,dr.valueOf=va,dr.creationData=Ea,dr.year=Ys,dr.isLeapYear=ae,dr.weekYear=Fa,dr.isoWeekYear=za,dr.quarter=dr.quarters=Ua,dr.month=Me,dr.daysInMonth=Le,dr.week=dr.weeks=He,dr.isoWeek=dr.isoWeeks=je,dr.weeksInYear=Ja,dr.isoWeeksInYear=Ca,dr.date=ar,dr.day=dr.days=ze,dr.weekday=Ce,dr.isoWeekday=Je,dr.dayOfYear=Ia,dr.hour=dr.hours=Ws,dr.minute=dr.minutes=nr,dr.second=dr.seconds=sr,dr.millisecond=dr.milliseconds=ir,dr.utcOffset=Jt,dr.utc=Rt,dr.local=Ut,dr.parseZone=It,dr.hasAlignedHourOffset=Gt,dr.isDST=Vt,dr.isLocal=$t,dr.isUtcOffset=Kt,dr.isUtc=qt,dr.isUTC=qt,dr.zoneAbbr=Va,dr.zoneName=Ba,dr.dates=T("dates