UNPKG

material-design-for-react

Version:

A React package that implements Google Material Design Web Components

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