UNPKG

@momentum-ui/react

Version:

Cisco Momentum UI framework for ReactJs applications

1 lines 817 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["momentum-ui-react"]=t(require("react"),require("react-dom")):e["momentum-ui-react"]=t(e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=382)}([function(e,t,n){(function(e){var t;!function(t,n){e.exports=n()}(0,function(){"use strict";function r(){return ra.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(i(e,t))return!1;return!0}function c(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function _(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=f()),e._pf}function h(e){if(null==e._isValid){var t=p(e),n=aa.call(t.parsedDateParts,function(e){return null!=e}),r=!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&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function y(e){var t=m(NaN);return null!=e?_(p(t),e):p(t).userInvalidated=!0,t}function v(e,t){var n,r,a,o=oa.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=p(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=oa[n],a=t[r],c(a)||(e[r]=a);return e}function g(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ia&&(ia=!0,r.updateOffset(this),ia=!1)}function b(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function M(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return _(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,o,s,c=[],l=arguments.length;for(o=0;o<l;o++){if(a="","object"==typeof arguments[o]){a+="\n["+o+"] ";for(s in arguments[0])i(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[o];c.push(a)}M(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}function w(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),sa[e]||(M(t),sa[e]=!0)}function L(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var t,n;for(n in e)i(e,n)&&(t=e[n],L(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n,r=_({},e);for(n in t)i(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},_(r[n],e[n]),_(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)i(e,n)&&!i(t,n)&&o(e[n])&&(r[n]=_({},r[n]));return r}function D(e){null!=e&&this.set(e)}function O(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r}function T(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}function j(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(fa[e]=a),t&&(fa[t[0]]=function(){return T(a.apply(this,arguments),t[1],t[2])}),n&&(fa[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function S(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function E(e){var t,n,r=e.match(da);for(t=0,n=r.length;t<n;t++)fa[r[t]]?r[t]=fa[r[t]]:r[t]=S(r[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=L(r[a])?r[a].call(t,e):r[a];return o}}function P(e,t){return e.isValid()?(t=N(t,e.localeData()),ma[t]=ma[t]||E(t),ma[t](e)):e.localeData().invalidDate()}function N(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(_a.lastIndex=0;r>=0&&_a.test(e);)e=e.replace(_a,n),_a.lastIndex=0,r-=1;return e}function C(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(da).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}function H(){return this._invalidDate}function A(e){return this._ordinal.replace("%d",e)}function F(e,t,n,r){var a=this._relativeTime[n];return L(a)?a(e,t,n,r):a.replace(/%d/i,e)}function I(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)}function W(e,t){var n=e.toLowerCase();va[n]=va[n+"s"]=va[t]=e}function R(e){return"string"==typeof e?va[e]||va[e.toLowerCase()]:void 0}function z(e){var t,n,r={};for(n in e)i(e,n)&&(t=R(n))&&(r[t]=e[n]);return r}function B(e,t){ga[e]=t}function K(e){var t,n=[];for(t in e)i(e,t)&&n.push({unit:t,priority:ga[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function U(e){return e%4==0&&e%100!=0||e%400==0}function $(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=$(t)),n}function J(e,t){return function(n){return null!=n?(G(this,e,n),r.updateOffset(this,t),this):V(this,e)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),se(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Z(e){return e=R(e),L(this[e])?this[e]():this}function Q(e,t){if("object"==typeof e){e=z(e);var n,r=K(e),a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=R(e),L(this[e]))return this[e](t);return this}function X(e,t,n){la[e]=L(t)?t:function(e,r){return e&&n?n:t}}function ee(e,t){return i(la,e)?la[e](t._strict,t._locale):new RegExp(te(e))}function te(e){return ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e,t){var n,r,a=t;for("string"==typeof e&&(e=[e]),l(t)&&(a=function(e,n){n[t]=q(e)}),r=e.length,n=0;n<r;n++)Fa[e[n]]=a}function ae(e,t){re(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function oe(e,t,n){null!=t&&i(Fa,e)&&Fa[e](t,n._a,n,e)}function ie(e,t){return(e%t+t)%t}function se(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ie(t,12);return e+=(t-n)/12,1===n?U(e)?29:28:31-n%7%2}function ce(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ga).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function le(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ga.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ue(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(a=Aa.call(this._shortMonthsParse,i),-1!==a?a:null):(a=Aa.call(this._longMonthsParse,i),-1!==a?a:null):"MMM"===t?-1!==(a=Aa.call(this._shortMonthsParse,i))?a:(a=Aa.call(this._longMonthsParse,i),-1!==a?a:null):-1!==(a=Aa.call(this._longMonthsParse,i))?a:(a=Aa.call(this._shortMonthsParse,i),-1!==a?a:null)}function de(e,t,n){var r,a,o;if(this._monthsParseExact)return ue.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function _e(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=q(t);else if(t=e.localeData().monthsParse(t),!l(t))return e;return n=Math.min(e.date(),se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function me(e){return null!=e?(_e(this,e),r.updateOffset(this,!0),this):V(this,"Month")}function fe(){return se(this.year(),this.month())}function pe(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=Za),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function he(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=Qa),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ye(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=ne(r[t]),a[t]=ne(a[t]);for(t=0;t<24;t++)o[t]=ne(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ve(e){return U(e)?366:365}function ge(){return U(this.year())}function be(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}function Me(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ke(e,t,n){var r=7+t-n;return-(7+Me(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,a){var o,i,s=(7+n-r)%7,c=ke(e,r,a),l=1+7*(t-1)+s+c;return l<=0?(o=e-1,i=ve(o)+l):l>ve(e)?(o=e+1,i=l-ve(e)):(o=e,i=l),{year:o,dayOfYear:i}}function Le(e,t,n){var r,a,o=ke(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?(a=e.year()-1,r=i+Ye(a,t,n)):i>Ye(e.year(),t,n)?(r=i-Ye(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Ye(e,t,n){var r=ke(e,t,n),a=ke(e+1,t,n);return(ve(e)-r+a)/7}function xe(e){return Le(e,this._week.dow,this._week.doy).week}function De(){return this._week.dow}function Oe(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function je(e){var t=Le(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Se(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ee(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pe(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Ne(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pe(n,this._week.dow):e?n[e.day()]:n}function Ce(e){return!0===e?Pe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function He(e){return!0===e?Pe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(a=Aa.call(this._weekdaysParse,i),-1!==a?a:null):"ddd"===t?(a=Aa.call(this._shortWeekdaysParse,i),-1!==a?a:null):(a=Aa.call(this._minWeekdaysParse,i),-1!==a?a:null):"dddd"===t?-1!==(a=Aa.call(this._weekdaysParse,i))?a:-1!==(a=Aa.call(this._shortWeekdaysParse,i))?a:(a=Aa.call(this._minWeekdaysParse,i),-1!==a?a:null):"ddd"===t?-1!==(a=Aa.call(this._shortWeekdaysParse,i))?a:-1!==(a=Aa.call(this._weekdaysParse,i))?a:(a=Aa.call(this._minWeekdaysParse,i),-1!==a?a:null):-1!==(a=Aa.call(this._minWeekdaysParse,i))?a:-1!==(a=Aa.call(this._weekdaysParse,i))?a:(a=Aa.call(this._shortWeekdaysParse,i),-1!==a?a:null)}function Fe(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Ae.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Se(e,this.localeData()),this.add(e-t,"d")):t}function We(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 Re(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ee(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function ze(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ao),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=io),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=ne(this.weekdaysMin(n,"")),a=ne(this.weekdaysShort(n,"")),o=ne(this.weekdays(n,"")),i.push(r),s.push(a),c.push(o),l.push(r),l.push(a),l.push(o);i.sort(e),s.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $e(){return this.hours()%12||12}function qe(){return this.hours()||24}function Je(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ve(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function et(e){for(var t,n,r,a,o=0;o<e.length;){for(a=Xe(e[o]).split("-"),t=a.length,n=Xe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=nt(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Qe(a,n)>=t-1)break;t--}o++}return so}function tt(e){return null!=e.match("^[^/\\\\]*$")}function nt(r){var a=null;if(void 0===_o[r]&&void 0!==e&&e&&e.exports&&tt(r))try{a=so._abbr,t,n(721)("./"+r),rt(a)}catch(e){_o[r]=null}return _o[r]}function rt(e,t){var n;return e&&(n=c(t)?it(e):at(e,t),n?so=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),so._abbr}function at(e,t){if(null!==t){var n,r=uo;if(t.abbr=e,null!=_o[e])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=_o[e]._config;else if(null!=t.parentLocale)if(null!=_o[t.parentLocale])r=_o[t.parentLocale]._config;else{if(null==(n=nt(t.parentLocale)))return mo[t.parentLocale]||(mo[t.parentLocale]=[]),mo[t.parentLocale].push({name:e,config:t}),null;r=n._config}return _o[e]=new D(x(r,t)),mo[e]&&mo[e].forEach(function(e){at(e.name,e.config)}),rt(e),_o[e]}return delete _o[e],null}function ot(e,t){if(null!=t){var n,r,a=uo;null!=_o[e]&&null!=_o[e].parentLocale?_o[e].set(x(_o[e]._config,t)):(r=nt(e),null!=r&&(a=r._config),t=x(a,t),null==r&&(t.abbr=e),n=new D(t),n.parentLocale=_o[e],_o[e]=n),rt(e)}else null!=_o[e]&&(null!=_o[e].parentLocale?(_o[e]=_o[e].parentLocale,e===rt()&&rt(e)):null!=_o[e]&&delete _o[e]);return _o[e]}function it(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return so;if(!a(e)){if(t=nt(e))return t;e=[e]}return et(e)}function st(){return ca(_o)}function ct(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[Wa]<0||n[Wa]>11?Wa:n[Ra]<1||n[Ra]>se(n[Ia],n[Wa])?Ra:n[za]<0||n[za]>24||24===n[za]&&(0!==n[Ba]||0!==n[Ka]||0!==n[Ua])?za:n[Ba]<0||n[Ba]>59?Ba:n[Ka]<0||n[Ka]>59?Ka:n[Ua]<0||n[Ua]>999?Ua:-1,p(e)._overflowDayOfYear&&(t<Ia||t>Ra)&&(t=Ra),p(e)._overflowWeeks&&-1===t&&(t=$a),p(e)._overflowWeekday&&-1===t&&(t=qa),p(e).overflow=t),e}function lt(e){var t,n,r,a,o,i,s=e._i,c=fo.exec(s)||po.exec(s),l=yo.length,u=vo.length;if(c){for(p(e).iso=!0,t=0,n=l;t<n;t++)if(yo[t][1].exec(c[1])){a=yo[t][0],r=!1!==yo[t][2];break}if(null==a)return void(e._isValid=!1);if(c[3]){for(t=0,n=u;t<n;t++)if(vo[t][1].exec(c[3])){o=(c[2]||" ")+vo[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(c[4]){if(!ho.exec(c[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Mt(e)}else e._isValid=!1}function ut(e,t,n,r,a,o){var i=[dt(e),Va.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&i.push(parseInt(o,10)),i}function dt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _t(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mt(e,t,n){if(e){if(no.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return p(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ft(e,t,n){if(e)return Mo[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function pt(e){var t,n=bo.exec(_t(e._i));if(n){if(t=ut(n[4],n[3],n[2],n[5],n[6],n[7]),!mt(n[1],t,e))return;e._a=t,e._tzm=ft(n[8],n[9],n[10]),e._d=Me.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function ht(e){var t=go.exec(e._i);if(null!==t)return void(e._d=new Date(+t[1]));lt(e),!1===e._isValid&&(delete e._isValid,pt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))}function yt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gt(e){var t,n,r,a,o,i=[];if(!e._d){for(r=vt(e),e._w&&null==e._a[Ra]&&null==e._a[Wa]&&bt(e),null!=e._dayOfYear&&(o=yt(e._a[Ia],r[Ia]),(e._dayOfYear>ve(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Me(o,0,e._dayOfYear),e._a[Wa]=n.getUTCMonth(),e._a[Ra]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[za]&&0===e._a[Ba]&&0===e._a[Ka]&&0===e._a[Ua]&&(e._nextDay=!0,e._a[za]=0),e._d=(e._useUTC?Me:be).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[za]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}function bt(e){var t,n,r,a,o,i,s,c,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,i=4,n=yt(t.GG,e._a[Ia],Le(Tt(),1,4).year),r=yt(t.W,1),((a=yt(t.E,1))<1||a>7)&&(c=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,l=Le(Tt(),o,i),n=yt(t.gg,e._a[Ia],l.year),r=yt(t.w,l.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(c=!0)):a=o),r<1||r>Ye(n,o,i)?p(e)._overflowWeeks=!0:null!=c?p(e)._overflowWeekday=!0:(s=we(n,r,a,o,i),e._a[Ia]=s.year,e._dayOfYear=s.dayOfYear)}function Mt(e){if(e._f===r.ISO_8601)return void lt(e);if(e._f===r.RFC_2822)return void pt(e);e._a=[],p(e).empty=!0;var t,n,a,o,i,s,c,l=""+e._i,u=l.length,d=0;for(a=N(e._f,e._locale).match(da)||[],c=a.length,t=0;t<c;t++)o=a[t],n=(l.match(ee(o,e))||[])[0],n&&(i=l.substr(0,l.indexOf(n)),i.length>0&&p(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),d+=n.length),fa[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),oe(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-d,l.length>0&&p(e).unusedInput.push(l),e._a[za]<=12&&!0===p(e).bigHour&&e._a[za]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[za]=kt(e._locale,e._a[za],e._meridiem),s=p(e).era,null!==s&&(e._a[Ia]=e._locale.erasConvertYear(s,e._a[Ia])),gt(e),ct(e)}function kt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function wt(e){var t,n,r,a,o,i,s=!1,c=e._f.length;if(0===c)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<c;a++)o=0,i=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Mt(t),h(t)&&(i=!0),o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(s=!0));_(e,n||t)}function Lt(e){if(!e._d){var t=z(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),gt(e)}}function Yt(e){var t=new g(ct(xt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||it(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new g(ct(t)):(u(t)?e._d=t:a(n)?wt(e):n?Mt(e):Dt(e),h(e)||(e._d=null),e))}function Dt(e){var t=e._i;c(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?ht(e):a(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),gt(e)):o(t)?Lt(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Ot(e,t,n,r,i){var c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||a(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=e,c._f=t,c._strict=r,Yt(c)}function Tt(e,t,n,r){return Ot(e,t,n,r,!1)}function jt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function St(){return jt("isBefore",[].slice.call(arguments,0))}function Et(){return jt("isAfter",[].slice.call(arguments,0))}function Pt(e){var t,n,r=!1,a=Yo.length;for(t in e)if(i(e,t)&&(-1===Aa.call(Yo,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[Yo[n]]){if(r)return!1;parseFloat(e[Yo[n]])!==q(e[Yo[n]])&&(r=!0)}return!0}function Nt(){return this._isValid}function Ct(){return tn(NaN)}function Ht(e){var t=z(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=Pt(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*s*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=it(),this._bubble()}function At(e){return e instanceof Ht}function Ft(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&q(e[r])!==q(t[r]))&&i++;return i+o}function Wt(e,t){j(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)})}function Rt(e,t){var n,r,a,o=(t||"").match(e);return null===o?null:(n=o[o.length-1]||[],r=(n+"").match(xo)||["-",0,0],a=60*r[1]+q(r[2]),0===a?0:"+"===r[0]?a:-a)}function zt(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(b(e)||u(e)?e.valueOf():Tt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Tt(e).local()}function Bt(e){return-Math.round(e._d.getTimezoneOffset())}function Kt(e,t,n){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Rt(Na,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=Bt(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!t||this._changeInProgress?sn(this,tn(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Bt(this)}function Ut(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function $t(e){return this.utcOffset(0,e)}function qt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Bt(this),"m")),this}function Jt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Rt(Pa,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Vt(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Gt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Zt(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),t=xt(t),t._a?(e=t._isUTC?m(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&It(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Qt(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function en(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function tn(e,t){var n,r,a,o=e,s=null;return At(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Do.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:q(s[Ra])*n,h:q(s[za])*n,m:q(s[Ba])*n,s:q(s[Ka])*n,ms:q(Ft(1e3*s[Ua]))*n}):(s=Oo.exec(e))?(n="-"===s[1]?-1:1,o={y:nn(s[2],n),M:nn(s[3],n),w:nn(s[4],n),d:nn(s[5],n),h:nn(s[6],n),m:nn(s[7],n),s:nn(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=an(Tt(o.from),Tt(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),r=new Ht(o),At(e)&&i(e,"_locale")&&(r._locale=e._locale),At(e)&&i(e,"_isValid")&&(r._isValid=e._isValid),r}function nn(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function rn(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function an(e,t){var n;return e.isValid()&&t.isValid()?(t=zt(t,e),e.isBefore(t)?n=rn(e,t):(n=rn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function on(e,t){return function(n,r){var a,o;return null===r||isNaN(+r)||(w(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."),o=n,n=r,r=o),a=tn(n,r),sn(this,a,e),this}}function sn(e,t,n,a){var o=t._milliseconds,i=Ft(t._days),s=Ft(t._months);e.isValid()&&(a=null==a||a,s&&_e(e,V(e,"Month")+s*n),i&&G(e,"Date",V(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),a&&r.updateOffset(e,i||s))}function cn(e){return"string"==typeof e||e instanceof String}function ln(e){return b(e)||u(e)||cn(e)||l(e)||dn(e)||un(e)||null===e||void 0===e}function un(e){var t,n,r=o(e)&&!s(e),a=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=c.length;for(t=0;t<l;t+=1)n=c[t],a=a||i(e,n);return r&&a}function dn(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!l(t)&&cn(e)}).length),t&&n}function _n(e){var t,n,r=o(e)&&!s(e),a=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<c.length;t+=1)n=c[t],a=a||i(e,n);return r&&a}function mn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function fn(e,t){1===arguments.length&&(arguments[0]?ln(arguments[0])?(e=arguments[0],t=void 0):_n(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Tt(),a=zt(n,this).startOf("day"),o=r.calendarFormat(this,a)||"sameElse",i=t&&(L(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Tt(n)))}function pn(){return new g(this)}function hn(e,t){var n=b(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=R(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function yn(e,t){var n=b(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=R(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function vn(e,t,n,r){var a=b(e)?e:Tt(e),o=b(t)?t:Tt(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function gn(e,t){var n,r=b(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&(t=R(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function bn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Mn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function kn(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(r=zt(e,this),!r.isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=R(t)){case"year":o=wn(this,r)/12;break;case"month":o=wn(this,r);break;case"quarter":o=wn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:$(o)}function wn(e,t){if(e.date()<t.date())return-wn(t,e);var n,r,a=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(a,"months");return t-o<0?(n=e.clone().add(a-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(a+1,"months"),r=(t-o)/(n-o)),-(a+r)||0}function Ln(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Yn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?P(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(n,"Z")):P(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",o="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function Dn(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=P(this,e);return this.localeData().postformat(t)}function On(e,t){return this.isValid()&&(b(e)&&e.isValid()||Tt(e).isValid())?tn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Tn(e){return this.from(Tt(),e)}function jn(e,t){return this.isValid()&&(b(e)&&e.isValid()||Tt(e).isValid())?tn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Sn(e){return this.to(Tt(),e)}function En(e){var t;return void 0===e?this._locale._abbr:(t=it(e),null!=t&&(this._locale=t),this)}function Pn(){return this._locale}function Nn(e,t){return(e%t+t)%t}function Cn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Co:new Date(e,t,n).valueOf()}function Hn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Co:Date.UTC(e,t,n)}function An(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Hn:Cn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Nn(t+(this._isUTC?0:this.utcOffset()*Po),No);break;case"minute":t=this._d.valueOf(),t-=Nn(t,Po);break;case"second":t=this._d.valueOf(),t-=Nn(t,Eo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function Fn(e){var t,n;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Hn:Cn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=No-Nn(t+(this._isUTC?0:this.utcOffset()*Po),No)-1;break;case"minute":t=this._d.valueOf(),t+=Po-Nn(t,Po)-1;break;case"second":t=this._d.valueOf(),t+=Eo-Nn(t,Eo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function In(){return this._d.valueOf()-6e4*(this._offset||0)}function Wn(){return Math.floor(this.valueOf()/1e3)}function Rn(){return new Date(this.valueOf())}function zn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Bn(){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 Kn(){return this.isValid()?this.toISOString():null}function Un(){return h(this)}function $n(){return _({},p(this))}function qn(){return p(this).overflow}function Jn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Vn(e,t){var n,a,o,i=this._eras||it("en")._eras;for(n=0,a=i.length;n<a;++n){switch(typeof i[n].since){case"string":o=r(i[n].since).startOf("day"),i[n].since=o.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=r(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}}return i}function Gn(e,t,n){var r,a,o,i,s,c=this.eras();for(e=e.toUpperCase(),r=0,a=c.length;r<a;++r)if(o=c[r].name.toUpperCase(),i=c[r].abbr.toUpperCase(),s=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return c[r];break;case"NNNN":if(o===e)return c[r];break;case"NNNNN":if(s===e)return c[r]}else if([o,i,s].indexOf(e)>=0)return c[r]}function Zn(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Qn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Xn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function er(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function tr(){var e,t,n,a,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function nr(e){return i(this,"_erasNameRegex")||lr.call(this),e?this._erasNameRegex:this._erasRegex}function rr(e){return i(this,"_erasAbbrRegex")||lr.call(this),e?this._erasAbbrRegex:this._erasRegex}function ar(e){return i(this,"_erasNarrowRegex")||lr.call(this),e?this._erasNarrowRegex:this._erasRegex}function or(e,t){return t.erasAbbrRegex(e)}function ir(e,t){return t.erasNameRegex(e)}function sr(e,t){return t.erasNarrowRegex(e)}function cr(e,t){return t._eraYearOrdinalRegex||Sa}function lr(){var e,t,n=[],r=[],a=[],o=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(ne(i[e].name)),n.push(ne(i[e].abbr)),a.push(ne(i[e].narrow)),o.push(ne(i[e].name)),o.push(ne(i[e].abbr)),o.push(ne(i[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function ur(e,t){j(0,[e,e.length],0,t)}function dr(e){return yr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function _r(e){return yr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function mr(){return Ye(this.year(),1,4)}function fr(){return Ye(this.isoWeekYear(),1,4)}function pr(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)}function hr(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)}function yr(e,t,n,r,a){var o;return null==e?Le(this,r,a).year:(o=Ye(e,r,a),t>o&&(t=o),vr.call(this,e,t,n,r,a))}function vr(e,t,n,r,a){var o=we(e,t,n,r,a),i=Me(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function gr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function br(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 Mr(e,t){t[Ua]=q(1e3*("0."+e))}function kr(){return this._isUTC?"UTC":""}function wr(){return this._isUTC?"Coordinated Universal Time":""}function Lr(e){return Tt(1e3*e)}function Yr(){return Tt.apply(null,arguments).parseZone()}function xr(e){return e}function Dr(e,t,n,r){var a=it(),o=m().set(r,t);return a[n](o,e)}function Or(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Dr(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Dr(e,r,n,"month");return a}function Tr(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var a,o=it(),i=e?o._week.dow:0,s=[];if(null!=n)return Dr(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=Dr(t,(a+i)%7,r,"day");return s}function jr(e,t){return Or(e,t,"months")}function Sr(e,t){return Or(e,t,"monthsShort")}function Er(e,t,n){return Tr(e,t,n,"weekdays")}function Pr(e,t,n){return Tr(e,t,n,"weekdaysShort")}function Nr(e,t,n){return Tr(e,t,n,"weekdaysMin")}function Cr(){var e=this._data;return this._milliseconds=Bo(this._milliseconds),this._days=Bo(this._days),this._months=Bo(this._months),e.milliseconds=Bo(e.milliseconds),e.seconds=Bo(e.seconds),e.minutes=Bo(e.minutes),e.hours=Bo(e.hours),e.months=Bo(e.months),e.years=Bo(e.years),this}function Hr(e,t,n,r){var a=tn(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Ar(e,t){return Hr(this,e,t,1)}function Fr(e,t){return Hr(this,e,t,-1)}function Ir(e){return e<0?Math.floor(e):Math.ceil(e)}function Wr(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,c=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*Ir(zr(s)+i),i=0,s=0),c.milliseconds=o%1e3,e=$(o/1e3),c.seconds=e%60,t=$(e/60),c.minutes=t%60,n=$(t/60),c.hours=n%24,i+=$(n/24),a=$(Rr(i)),s+=a,i-=Ir(zr(a)),r=$(s/12),s%=12,c.days=i,c.months=s,c.years=r,this}function Rr(e){return 4800*e/146097}function zr(e){return 146097*e/4800}function Br(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=R(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Rr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(zr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Kr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN}function Ur(e){return function(){return this.as(e)}}function $r(){return tn(this)}function qr(e){return e=R(e),this.isValid()?this[e+"s"]():NaN}function Jr(e){return function(){return this.isValid()?this._data[e]:NaN}}function Vr(){return $(this.days()/7)}function Gr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Zr(e,t,n,r){var a=tn(e).abs(),o=ii(a.as("s")),i=ii(a.as("m")),s=ii(a.as("h")),c=ii(a.as("d")),l=ii(a.as("M")),u=ii(a.as("w")),d=ii(a.as("y")),_=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(_=_||u<=1&&["w"]||u<n.w&&["ww",u]),_=_||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d],_[2]=t,_[3]=+e>0,_[4]=r,Gr.apply(null,_)}function Qr(e){return void 0===e?ii:"function"==typeof e&&(ii=e,!0)}function Xr(e,t){return void 0!==si[e]&&(void 0===t?si[e]:(si[e]=t,"s"===e&&(si.ss=t-1),!0))}function ea(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,o=si;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(o=Object.assign({},si,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=Zr(this,!a,o,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}function ta(e){return(e>0)-(e<0)||+e}function na(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,o,i,s,c=ci(this._milliseconds)/1e3,l=ci(this._days),u=ci(this._months),d=this.asSeconds();return d?(e=$(c/60),t=$(e/60),c%=60,e%=60,n=$(u/12),u%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",o=ta(this._months)!==ta(d)?"-":"",i=ta(this._days)!==ta(d)?"-":"",s=ta(this._milliseconds)!==ta(d)?"-":"",a+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(l?i+l+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var ra,aa;aa=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var oa=r.momentProperties=[],ia=!1,sa={};r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;var ca;ca=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var la,ua={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},da=/(\[[^\[]*\])|(\\)?([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,_a=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ma={},fa={},pa={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"},ha=/\d{1,2}/,ya={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"},va={},ga={},ba=/\d/,Ma=/\d\d/,ka=/\d{3}/,wa=/\d{4}/,La=/[+-]?\d{6}/,Ya=/\d\d?/,xa=/\d\d\d\d?/,Da=/\d\d\d\d\d\d?/,Oa=/\d{1,3}/,Ta=/\d{1,4}/,ja=/[+-]?\d{1,6}/,Sa=/\d+/,Ea=/[+-]?\d+/,Pa=/Z|[+-]\d\d:?\d\d/gi,Na=/Z|[+-]\d\d(?::?\d\d)?/gi,Ca=/[+-]?\d+(\.\d{1,3})?/,Ha=/[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;la={};var Aa,Fa={},Ia=0,Wa=1,Ra=2,za=3,Ba=4,Ka=5,Ua=6,$a=7,qa=8;Aa=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},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),j("MMMM",0,0,function(e){return this.localeData().months(this,e)}),W("month","M"),B("month",8),X("M",Ya),X("MM",Ya,Ma),X("MMM",function(e,t){return t.monthsShortRegex(e)}),X("MMMM",function(e,t){return t.monthsRegex(e)}),re(["M","MM"],function(e,t){t[Wa]=q(e)-1}),re(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[Wa]=a:p(n).invalidMonth=e});var Ja="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Va="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ga=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Za=Ha,Qa=Ha;j("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),W("year","y"),B("year",1),X("Y",Ea),X("YY",Ya,Ma),X("YYYY",Ta,wa),X("YYYYY",ja,La),X("YYYYYY",ja,La),re(["YYYYY","YYYYYY"],Ia),re("YYYY",function(e,t){t[Ia]=2===e.length?r.parseTwoDigitYear(e):q(e)}),re("YY",function(e,t){t[Ia]=r.parseTwoDigitYear(e)}),re("Y",function(e,t){t[Ia]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return q(e)+(q(e)>68?1900:2e3)};var Xa=J("FullYear",!0);j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),B("week",5),B("isoWeek",5),X("w",Ya),X("ww",Ya,Ma),X("W",Ya),X("WW",Ya,Ma),ae(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=q(e)});var eo={dow:0,doy:6};j("d",0,"do","day"),j("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),X("d",Ya),X("e",Ya),X("E",Ya),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),ae(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:p(n).invalidWeekday=e}),ae(["d","e","E"],function(e,t,n,r){t[r]=q(e)});var to="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),no="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ro="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ao=Ha,oo=Ha,io=Ha;j("H",["HH",2],0,"hour"),j("h",["hh",2],0,$e),j("k",["kk",2],0,qe),j("hmm",0,0,function(){return""+$e.apply(this)+T(this.minutes(),2)}),j("hmmss",0,0,function(){return""+$e.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Je("a",!0),Je("A",!1),W("hour","h"),B("hour",13),X("a",Ve),X("A",Ve),X("H",Ya),X("h",Ya),X("k",Ya),X("HH",Ya,Ma),X("hh",Ya,Ma),X("kk",Ya,Ma),X("hmm",xa),X("hmmss",Da),X("Hmm",xa),X("Hmmss",Da),re(["H","HH"],za),re(["k","kk"],function(e,t,n){var r=q(e);t[za]=24===r?0:r}),re(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),re(["h","hh"],function(e,t,n){t[za]=q(e),p(n).bigHour=!0}),re("hmm",function(e,t,n){var r=e.length-2;t[za]=q(e.substr(0,r)),t[Ba]=q(e.substr(r)),p(n).bigHour=!0}),re("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[za]=q(e.substr(0,r)),t[Ba]=q(e.substr(r,2)),t[Ka]=q(e.substr(a)),p(n).bigHour=!0}),re("Hmm",function(e,t,n){var r=e.length-2;