UNPKG

periodicjs.ext.reactadmin

Version:

An authentication extension for periodicjs that uses passport to authenticate user sessions.

2 lines 2.75 MB
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/extensions/periodicjs.ext.reactadmin/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){n(1692),e.exports=n(936)},[2118,1723],function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){"use strict";function t(){return Er.apply(null,arguments)}function r(e){Er=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(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 s(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 c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Ot(e,t,n,r,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=h()),e._pf}function _(e){if(null==e._isValid){var t=m(e),n=Cr.call(t.parsedDateParts,function(e){return null!=e}),r=!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&&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=p(NaN);return null!=e?d(m(t),e):m(t).userInvalidated=!0,t}function b(e,t){var n,r,o;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=m(t)),s(t._locale)||(e._locale=t._locale),Dr.length>0)for(n=0;n<Dr.length;n++)r=Dr[n],o=t[r],s(o)||(e[r]=o);return e}function g(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Lr===!1&&(Lr=!0,t.updateOffset(this),Lr=!1)}function v(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function k(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&x(e[r])!==x(t[r]))&&a++;return a+i}function T(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function P(e,n){var r=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var o,i=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){o+="\n["+a+"] ";for(var s in arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];i.push(o)}T(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function O(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),jr[e]||(T(n),jr[e]=!0)}function M(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e){var t,n;for(n in e)t=e[n],M(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 E(e,t){var n,r=d({},e);for(n in t)f(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&i(e[n])&&(r[n]=d({},r[n]));return r}function C(e){null!=e&&this.set(e)}function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return M(r)?r.call(t,n):r}function L(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function j(){return this._invalidDate}function A(e){return this._ordinal.replace("%d",e)}function R(e,t,n,r){var o=this._relativeTime[n];return M(o)?o(e,t,n,r):o.replace(/%d/i,e)}function N(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();zr[n]=zr[n+"s"]=zr[t]=e}function F(e){return"string"==typeof e?zr[e]||zr[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)f(e,n)&&(t=F(n),t&&(r[t]=e[n]));return r}function H(e,t){Br[e]=t}function z(e){var t=[];for(var n in e)t.push({unit:n,priority:Br[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}function W(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(qr[e]=o),t&&(qr[t[0]]=function(){return B(o.apply(this,arguments),t[1],t[2])}),n&&(qr[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(Wr);for(t=0,n=r.length;t<n;t++)qr[r[t]]?r[t]=qr[r[t]]:r[t]=U(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=M(r[o])?r[o].call(t,e):r[o];return i}}function q(e,t){return e.isValid()?(t=G(t,e.localeData()),Vr[t]=Vr[t]||V(t),Vr[t](e)):e.localeData().invalidDate()}function G(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Ur.lastIndex=0;r>=0&&Ur.test(e);)e=e.replace(Ur,n),Ur.lastIndex=0,r-=1;return e}function K(e,t,n){co[e]=M(t)?t:function(e,r){return e&&n?n:t}}function $(e,t){return f(co,e)?co[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n<e.length;n++)fo[e[n]]=r}function Z(e,t){Q(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function ee(e,t,n){null!=t&&f(fo,e)&&fo[e](t,n._a,n,e)}function te(e){return ne(e)?366:365}function ne(e){return e%4===0&&e%100!==0||e%400===0}function re(){return ne(this.year())}function oe(e,n){return function(r){return null!=r?(ae(this,e,r),t.updateOffset(this,n),this):ie(this,e)}}function ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ae(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ne(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ce(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function se(e){return e=F(e),M(this[e])?this[e]():this}function le(e,t){if("object"==typeof e){e=Y(e);for(var n=z(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=F(e),M(this[e]))return this[e](t);return this}function ue(e,t){return(e%t+t)%t}function ce(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ue(t,12);return e+=(t-n)/12,1===n?ne(e)?29:28:31-n%7%2}function fe(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||To).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function de(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[To.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(o=xo.call(this._shortMonthsParse,a),o!==-1?o:null):(o=xo.call(this._longMonthsParse,a),o!==-1?o:null):"MMM"===t?(o=xo.call(this._shortMonthsParse,a),o!==-1?o:(o=xo.call(this._longMonthsParse,a),o!==-1?o:null)):(o=xo.call(this._longMonthsParse,a),o!==-1?o:(o=xo.call(this._shortMonthsParse,a),o!==-1?o:null))}function he(e,t,n){var r,o,i;if(this._monthsParseExact)return pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.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 me(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(t=e.localeData().monthsParse(t),!l(t))return e;return n=Math.min(e.date(),ce(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function _e(e){return null!=e?(me(this,e),t.updateOffset(this,!0),this):ie(this,"Month")}function ye(){return ce(this.year(),this.month())}function be(e){return this._monthsParseExact?(f(this,"_monthsRegex")||ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Mo),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ge(e){return this._monthsParseExact?(f(this,"_monthsRegex")||ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=So),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ve(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=J(r[t]),o[t]=J(o[t]);for(t=0;t<24;t++)i[t]=J(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function we(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function xe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ke(e,t,n){var r=7+t-n,o=(7+xe(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Te(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=ke(e,r,o),u=1+7*(t-1)+s+l;return u<=0?(i=e-1,a=te(i)+u):u>te(e)?(i=e+1,a=u-te(e)):(i=e,a=u),{year:i,dayOfYear:a}}function Pe(e,t,n){var r,o,i=ke(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Oe(o,t,n)):a>Oe(e.year(),t,n)?(r=a-Oe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Oe(e,t,n){var r=ke(e,t,n),o=ke(e+1,t,n);return(te(e)-r+o)/7}function Me(e){return Pe(e,this._week.dow,this._week.doy).week}function Se(){return this._week.dow}function Ee(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function De(e){var t=Pe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Le(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function je(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone}function Re(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ne(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ie(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(o=xo.call(this._weekdaysParse,a),o!==-1?o:null):"ddd"===t?(o=xo.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=xo.call(this._minWeekdaysParse,a),o!==-1?o:null):"dddd"===t?(o=xo.call(this._weekdaysParse,a),o!==-1?o:(o=xo.call(this._shortWeekdaysParse,a),o!==-1?o:(o=xo.call(this._minWeekdaysParse,a),o!==-1?o:null))):"ddd"===t?(o=xo.call(this._shortWeekdaysParse,a),o!==-1?o:(o=xo.call(this._weekdaysParse,a),o!==-1?o:(o=xo.call(this._minWeekdaysParse,a),o!==-1?o:null))):(o=xo.call(this._minWeekdaysParse,a),o!==-1?o:(o=xo.call(this._weekdaysParse,a),o!==-1?o:(o=xo.call(this._shortWeekdaysParse,a),o!==-1?o:null)))}function Fe(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ie.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.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 Ye(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Le(e,this.localeData()),this.add(e-t,"d")):t}function He(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 ze(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=je(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=jo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function We(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ao),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ue(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ro),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ve(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=J(s[t]),l[t]=J(l[t]),u[t]=J(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ge(){return this.hours()||24}function Ke(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function $e(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Je(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,o,i=0;i<e.length;){for(o=Qe(e[i]).split("-"),t=o.length,n=Qe(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=et(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&k(o,n,!0)>=t-1)break;t--}i++}return null}function et(t){var r=null;if(!Ho[t]&&"undefined"!=typeof e&&e&&e.exports)try{r=No._abbr;n(1483)("./"+t),tt(r)}catch(e){}return Ho[t]}function tt(e,t){var n;return e&&(n=s(t)?ot(e):nt(e,t),n&&(No=n)),No._abbr}function nt(e,t){if(null!==t){var n=Yo;if(t.abbr=e,null!=Ho[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ho[e]._config;else if(null!=t.parentLocale){if(null==Ho[t.parentLocale])return zo[t.parentLocale]||(zo[t.parentLocale]=[]),zo[t.parentLocale].push({name:e,config:t}),null;n=Ho[t.parentLocale]._config}return Ho[e]=new C(E(n,t)),zo[e]&&zo[e].forEach(function(e){nt(e.name,e.config)}),tt(e),Ho[e]}return delete Ho[e],null}function rt(e,t){if(null!=t){var n,r,o=Yo;r=et(e),null!=r&&(o=r._config),t=E(o,t),n=new C(t),n.parentLocale=Ho[e],Ho[e]=n,tt(e)}else null!=Ho[e]&&(null!=Ho[e].parentLocale?Ho[e]=Ho[e].parentLocale:null!=Ho[e]&&delete Ho[e]);return Ho[e]}function ot(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return No;if(!o(e)){if(t=et(e))return t;e=[e]}return Ze(e)}function it(){return Ar(Ho)}function at(e){var t,n=e._a;return n&&m(e).overflow===-2&&(t=n[ho]<0||n[ho]>11?ho:n[mo]<1||n[mo]>ce(n[po],n[ho])?mo:n[_o]<0||n[_o]>24||24===n[_o]&&(0!==n[yo]||0!==n[bo]||0!==n[go])?_o:n[yo]<0||n[yo]>59?yo:n[bo]<0||n[bo]>59?bo:n[go]<0||n[go]>999?go:-1,m(e)._overflowDayOfYear&&(t<po||t>mo)&&(t=mo),m(e)._overflowWeeks&&t===-1&&(t=vo),m(e)._overflowWeekday&&t===-1&&(t=wo),m(e).overflow=t),e}function st(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,o,i=[];if(!e._d){for(r=lt(e),e._w&&null==e._a[mo]&&null==e._a[ho]&&ct(e),null!=e._dayOfYear&&(o=st(e._a[po],r[po]),(e._dayOfYear>te(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=xe(o,0,e._dayOfYear),e._a[ho]=n.getUTCMonth(),e._a[mo]=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[_o]&&0===e._a[yo]&&0===e._a[bo]&&0===e._a[go]&&(e._nextDay=!0,e._a[_o]=0),e._d=(e._useUTC?xe:we).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_o]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==e._d.getDay()&&(m(e).weekdayMismatch=!0)}}function ct(e){var t,n,r,o,i,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,a=4,n=st(t.GG,e._a[po],Pe(Mt(),1,4).year),r=st(t.W,1),o=st(t.E,1),(o<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Pe(Mt(),i,a);n=st(t.gg,e._a[po],u.year),r=st(t.w,u.week),null!=t.d?(o=t.d,(o<0||o>6)&&(l=!0)):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Oe(n,i,a)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(s=Te(n,r,o,i,a),e._a[po]=s.year,e._dayOfYear=s.dayOfYear)}function ft(e){var t,n,r,o,i,a,s=e._i,l=Bo.exec(s)||Wo.exec(s);if(l){for(m(e).iso=!0,t=0,n=Vo.length;t<n;t++)if(Vo[t][1].exec(l[1])){o=Vo[t][0],r=Vo[t][2]!==!1;break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=qo.length;t<n;t++)if(qo[t][1].exec(l[3])){i=(l[2]||" ")+qo[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Uo.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),gt(e)}else e._isValid=!1}function dt(e,t,n,r,o,i){var a=[pt(e),Oo.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function pt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ht(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function mt(e,t,n){if(e){var r=Do.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function _t(e,t,n){if(e)return $o[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return 60*i+o}function yt(e){var t=Ko.exec(ht(e._i));if(t){var n=dt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!mt(t[1],n,e))return;e._a=n,e._tzm=_t(t[8],t[9],t[10]),e._d=xe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function bt(e){var n=Go.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(ft(e),void(e._isValid===!1&&(delete e._isValid,yt(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function gt(e){if(e._f===t.ISO_8601)return void ft(e);if(e._f===t.RFC_2822)return void yt(e);e._a=[],m(e).empty=!0;var n,r,o,i,a,s=""+e._i,l=s.length,u=0;for(o=G(e._f,e._locale).match(Wr)||[],n=0;n<o.length;n++)i=o[n],r=(s.match($(i,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&m(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),u+=r.length),qr[i]?(r?m(e).empty=!1:m(e).unusedTokens.push(i),ee(i,r,e)):e._strict&&!r&&m(e).unusedTokens.push(i);m(e).charsLeftOver=l-u,s.length>0&&m(e).unusedInput.push(s),e._a[_o]<=12&&m(e).bigHour===!0&&e._a[_o]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[_o]=vt(e._locale,e._a[_o],e._meridiem),ut(e),at(e)}function vt(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,o,i;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],gt(t),_(t)&&(i+=m(t).charsLeftOver,i+=10*m(t).unusedTokens.length,m(t).score=i,(null==r||i<r)&&(r=i,n=t));d(e,n||t)}function xt(e){if(!e._d){var t=Y(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}function kt(e){var t=new g(at(Tt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||ot(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new g(at(t)):(u(t)?e._d=t:o(n)?wt(e):n?gt(e):Pt(e),_(e)||(e._d=null),e))}function Pt(e){var n=e._i;s(n)?e._d=new Date(t.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?bt(e):o(n)?(e._a=c(n.slice(0),function(e){return parseInt(e,10)}),ut(e)):i(n)?xt(e):l(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Ot(e,t,n,r,s){var l={};return n!==!0&&n!==!1||(r=n,n=void 0),(i(e)&&a(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=r,kt(l)}function Mt(e,t,n,r){return Ot(e,t,n,r,!1)}function St(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Mt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Et(){var e=[].slice.call(arguments,0);return St("isBefore",e)}function Ct(){var e=[].slice.call(arguments,0);return St("isAfter",e)}function Dt(e){for(var t in e)if(xo.call(Zo,t)===-1||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Zo.length;++r)if(e[Zo[r]]){if(n)return!1;parseFloat(e[Zo[r]])!==x(e[Zo[r]])&&(n=!0)}return!0}function Lt(){return this._isValid}function jt(){return Qt(NaN)}function At(e){var t=Y(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=Dt(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=ot(),this._bubble()}function Rt(e){return e instanceof At}function Nt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function It(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function Ft(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],o=(r+"").match(ei)||["-",0,0],i=+(60*o[1])+x(o[2]);return 0===i?0:"+"===o[0]?i:-i}function Yt(e,n){var r,o;return n._isUTC?(r=n.clone(),o=(v(e)||u(e)?e.valueOf():Mt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+o),t.updateOffset(r,!1),r):Mt(e).local()}function Ht(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function zt(e,n,r){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=Ft(so,e),null===e)return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(o=Ht(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!n||this._changeInProgress?rn(this,Qt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ht(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wt(e){return this.utcOffset(0,e)}function Ut(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this}function Vt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ao,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qt(e){return!!this.isValid()&&(e=e?Mt(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 Kt(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),e=Tt(e),e._a){var t=e._isUTC?p(e._a):Mt(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function $t(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Jt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var n,r,o,i=e,a=null;return Rt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(i={},t?i[t]=e:i.milliseconds=e):(a=ti.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:x(a[mo])*n,h:x(a[_o])*n,m:x(a[yo])*n,s:x(a[bo])*n,ms:x(Nt(1e3*a[go]))*n}):(a=ni.exec(e))?(n="-"===a[1]?-1:("+"===a[1],1),i={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=tn(Mt(i.from),Mt(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),r=new At(i),Rt(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function en(e,t){var n={milliseconds:0,months:0};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 tn(e,t){var n;return e.isValid()&&t.isValid()?(t=Yt(t,e),e.isBefore(t)?n=en(e,t):(n=en(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function nn(e,t){return function(n,r){var o,i;return null===r||isNaN(+r)||(O(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=n,n=r,r=i),n="string"==typeof n?+n:n,o=Qt(n,r),rn(this,o,e),this}}function rn(e,n,r,o){var i=n._milliseconds,a=Nt(n._days),s=Nt(n._months);e.isValid()&&(o=null==o||o,s&&me(e,ie(e,"Month")+s*r),a&&ae(e,"Date",ie(e,"Date")+a*r),i&&e._d.setTime(e._d.valueOf()+i*r),o&&t.updateOffset(e,a||s))}function on(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 an(e,n){var r=e||Mt(),o=Yt(r,this).startOf("day"),i=t.calendarFormat(this,o)||"sameElse",a=n&&(M(n[i])?n[i].call(this,r):n[i]);return this.format(a||this.localeData().calendar(i,this,Mt(r)))}function sn(){return new g(this)}function ln(e,t){var n=v(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&(t=F(s(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function un(e,t){var n=v(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&(t=F(s(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function cn(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function fn(e,t){var n,r=v(e)?e:Mt(e);return!(!this.isValid()||!r.isValid())&&(t=F(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function dn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function pn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function hn(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=Yt(e,this),!r.isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":i=mn(this,r)/12;break;case"month":i=mn(this,r);break;case"quarter":i=mn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:w(i)}function mn(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return t-i<0?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)||0}function _n(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function yn(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):M(Date.prototype.toISOString)?this.toDate().toISOString():q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function bn(){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 n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]';return this.format(n+r+o+i)}function gn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=q(this,e);return this.localeData().postformat(n)}function vn(e,t){return this.isValid()&&(v(e)&&e.isValid()||Mt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wn(e){return this.from(Mt(),e)}function xn(e,t){return this.isValid()&&(v(e)&&e.isValid()||Mt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kn(e){return this.to(Mt(),e)}function Tn(e){var t;return void 0===e?this._locale._abbr:(t=ot(e),null!=t&&(this._locale=t),this)}function Pn(){return this._locale}function On(e){switch(e=F(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0); case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Mn(e){return e=F(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Sn(){return this._d.valueOf()-6e4*(this._offset||0)}function En(){return Math.floor(this.valueOf()/1e3)}function Cn(){return new Date(this.valueOf())}function Dn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ln(){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 jn(){return this.isValid()?this.toISOString():null}function An(){return _(this)}function Rn(){return d({},m(this))}function Nn(){return m(this).overflow}function In(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Fn(e,t){W(0,[e,e.length],0,t)}function Yn(e){return Wn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Hn(e){return Wn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zn(){return Oe(this.year(),1,4)}function Bn(){var e=this.localeData()._week;return Oe(this.year(),e.dow,e.doy)}function Wn(e,t,n,r,o){var i;return null==e?Pe(this,r,o).year:(i=Oe(e,r,o),t>i&&(t=i),Un.call(this,e,t,n,r,o))}function Un(e,t,n,r,o){var i=Te(e,t,n,r,o),a=xe(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Vn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function qn(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 Gn(e,t){t[go]=x(1e3*("0."+e))}function Kn(){return this._isUTC?"UTC":""}function $n(){return this._isUTC?"Coordinated Universal Time":""}function Xn(e){return Mt(1e3*e)}function Jn(){return Mt.apply(null,arguments).parseZone()}function Qn(e){return e}function Zn(e,t,n,r){var o=ot(),i=p().set(r,t);return o[n](i,e)}function er(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Zn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Zn(e,r,n,"month");return o}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 o=ot(),i=e?o._week.dow:0;if(null!=n)return Zn(t,(n+i)%7,r,"day");var a,s=[];for(a=0;a<7;a++)s[a]=Zn(t,(a+i)%7,r,"day");return s}function nr(e,t){return er(e,t,"months")}function rr(e,t){return er(e,t,"monthsShort")}function or(e,t,n){return tr(e,t,n,"weekdays")}function ir(e,t,n){return tr(e,t,n,"weekdaysShort")}function ar(e,t,n){return tr(e,t,n,"weekdaysMin")}function sr(){var e=this._data;return this._milliseconds=pi(this._milliseconds),this._days=pi(this._days),this._months=pi(this._months),e.milliseconds=pi(e.milliseconds),e.seconds=pi(e.seconds),e.minutes=pi(e.minutes),e.hours=pi(e.hours),e.months=pi(e.months),e.years=pi(e.years),this}function lr(e,t,n,r){var o=Qt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function ur(e,t){return lr(this,e,t,1)}function cr(e,t){return lr(this,e,t,-1)}function fr(e){return e<0?Math.floor(e):Math.ceil(e)}function dr(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*fr(hr(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=w(i/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,a+=w(n/24),o=w(pr(a)),s+=o,a-=fr(hr(o)),r=w(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function pr(e){return 4800*e/146097}function hr(e){return 146097*e/4800}function mr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=F(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+pr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(hr(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 _r(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function yr(e){return function(){return this.as(e)}}function br(){return Qt(this)}function gr(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function vr(e){return function(){return this.isValid()?this._data[e]:NaN}}function wr(){return w(this.days()/7)}function xr(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function kr(e,t,n){var r=Qt(e).abs(),o=Ei(r.as("s")),i=Ei(r.as("m")),a=Ei(r.as("h")),s=Ei(r.as("d")),l=Ei(r.as("M")),u=Ei(r.as("y")),c=o<=Ci.ss&&["s",o]||o<Ci.s&&["ss",o]||i<=1&&["m"]||i<Ci.m&&["mm",i]||a<=1&&["h"]||a<Ci.h&&["hh",a]||s<=1&&["d"]||s<Ci.d&&["dd",s]||l<=1&&["M"]||l<Ci.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,xr.apply(null,c)}function Tr(e){return void 0===e?Ei:"function"==typeof e&&(Ei=e,!0)}function Pr(e,t){return void 0!==Ci[e]&&(void 0===t?Ci[e]:(Ci[e]=t,"s"===e&&(Ci.ss=t-1),!0))}function Or(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=kr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Mr(e){return(e>0)-(e<0)||+e}function Sr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Di(this._milliseconds)/1e3,o=Di(this._days),i=Di(this._months);e=w(r/60),t=w(e/60),r%=60,e%=60,n=w(i/12),i%=12;var a=n,s=i,l=o,u=t,c=e,f=r?r.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var p=d<0?"-":"",h=Mr(this._months)!==Mr(d)?"-":"",m=Mr(this._days)!==Mr(d)?"-":"",_=Mr(this._milliseconds)!==Mr(d)?"-":"";return p+"P"+(a?h+a+"Y":"")+(s?h+s+"M":"")+(l?m+l+"D":"")+(u||c||f?"T":"")+(u?_+u+"H":"")+(c?_+c+"M":"")+(f?_+f+"S":"")}var Er,Cr;Cr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var Dr=t.momentProperties=[],Lr=!1,jr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Ar;Ar=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var Rr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Nr={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"},Ir="Invalid date",Fr="%d",Yr=/\d{1,2}/,Hr={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"},zr={},Br={},Wr=/(\[[^\[]*\])|(\\)?([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,Ur=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vr={},qr={},Gr=/\d/,Kr=/\d\d/,$r=/\d{3}/,Xr=/\d{4}/,Jr=/[+-]?\d{6}/,Qr=/\d\d?/,Zr=/\d\d\d\d?/,eo=/\d\d\d\d\d\d?/,to=/\d{1,3}/,no=/\d{1,4}/,ro=/[+-]?\d{1,6}/,oo=/\d+/,io=/[+-]?\d+/,ao=/Z|[+-]\d\d:?\d\d/gi,so=/Z|[+-]\d\d(?::?\d\d)?/gi,lo=/[+-]?\d+(\.\d{1,3})?/,uo=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,co={},fo={},po=0,ho=1,mo=2,_o=3,yo=4,bo=5,go=6,vo=7,wo=8;W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),I("year","y"),H("year",1),K("Y",io),K("YY",Qr,Kr),K("YYYY",no,Xr),K("YYYYY",ro,Jr),K("YYYYYY",ro,Jr),Q(["YYYYY","YYYYYY"],po),Q("YYYY",function(e,n){n[po]=2===e.length?t.parseTwoDigitYear(e):x(e)}),Q("YY",function(e,n){n[po]=t.parseTwoDigitYear(e)}),Q("Y",function(e,t){t[po]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var xo,ko=oe("FullYear",!0);xo=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},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),H("month",8),K("M",Qr),K("MM",Qr,Kr),K("MMM",function(e,t){return t.monthsShortRegex(e)}),K("MMMM",function(e,t){return t.monthsRegex(e)}),Q(["M","MM"],function(e,t){t[ho]=x(e)-1}),Q(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ho]=o:m(n).invalidMonth=e});var To=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Po="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Mo=uo,So=uo;W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),H("week",5),H("isoWeek",5),K("w",Qr),K("ww",Qr,Kr),K("W",Qr),K("WW",Qr,Kr),Z(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)});var Eo={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),K("d",Qr),K("e",Qr),K("E",Qr),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:m(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var Co="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Do="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jo=uo,Ao=uo,Ro=uo;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,qe),W("k",["kk",2],0,Ge),W("hmm",0,0,function(){return""+qe.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+qe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),I("hour","h"),H("hour",13),K("a",$e),K("A",$e),K("H",Qr),K("h",Qr),K("k",Qr),K("HH",Qr,Kr),K("hh",Qr,Kr),K("kk",Qr,Kr),K("hmm",Zr),K("hmmss",eo),K("Hmm",Zr),K("Hmmss",eo),Q(["H","HH"],_o),Q(["k","kk"],function(e,t,n){var r=x(e);t[_o]=24===r?0:r}),Q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Q(["h","hh"],function(e,t,n){t[_o]=x(e),m(n).bigHour=!0}),Q("hmm",function(e,t,n){var r=e.length-2;t[_o]=x(e.substr(0,r)),t[yo]=x(e.substr(r)),m(n).bigHour=!0}),Q("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_o]=x(e.substr(0,r)),t[yo]=x(e.substr(r,2)),t[bo]=x(e.substr(o)),m(n).bigHour=!0}),Q("Hmm",function(e,t,n){var r=e.length-2;t[_o]=x(e.substr(0,r)),t[yo]=x(e.substr(r))}),Q("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_o]=x(e.substr(0,r)),t[yo]=x(e.substr(r,2)),t[bo]=x(e.substr(o))});var No,Io=/[ap]\.?m?\.?/i,Fo=oe("Hours",!0),Yo={calendar:Rr,longDateFormat:Nr,invalidDate:Ir,ordinal:Fr,dayOfMonthOrdinalParse:Yr,relativeTime:Hr,months:Po,monthsShort:Oo,week:Eo,weekdays:Co,weekdaysMin:Lo,weekdaysShort:Do,meridiemParse:Io},Ho={},zo={},Bo=/^\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)?)?$/,Wo=/^\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)?)?$/,Uo=/Z|[+-]\d\d(?::?\d\d)?/,Vo=[["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}/]],qo=[["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/]],Go=/^\/?Date\((\-?\d+)/i,Ko=/^(?:(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}))$/,$o={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=P("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged 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 Xo=P("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Jo=P("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}),Qo=function(){return Date.now?Date.now():+new Date},Zo=["year","quarter","month","week","day","hour","minute","second","millisecond"];It("Z",":"),It("ZZ",""),K("Z",so),K("ZZ",so),Q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(so,e)});var ei=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ti=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ni=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qt.fn=At.prototype,Qt.invalid=jt;var ri=nn(1,"add"),oi=nn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ii=P("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Fn("gggg","weekYear"),Fn("ggggg","weekYear"),Fn("GGGG","isoWeekYear"),Fn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),K("G",io),K("g",io),K("GG",Qr,Kr),K("gg",Qr,Kr),K("GGGG",no,Xr),K("gggg",no,Xr),K("GGGGG",ro,Jr),K("ggggg",ro,Jr),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),Z(["gg","GG"],function(e,n,r,o){n[o]=t.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),I("quarter","Q"),H("quarter",7),K("Q",Gr),Q("Q",function(e,t){t[ho]=3*(x(e)-1)}),W("D",["DD",2],"Do","date"),I("date","D"),H("date",9),K("D",Qr),K("DD",Qr,Kr),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],mo),Q("Do",function(e,t){t[mo]=x(e.match(Qr)[0],10)});var ai=oe("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),H("dayOfYear",4),K("DDD",to),K("DDDD",$r),Q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),W("m",["mm",2],0,"minute"),I("minute","m"),H("minute",14),K("m",Qr),K("mm",Qr,Kr),Q(["m","mm"],yo);var si=oe("Minutes",!1);W("s",["ss",2],0,"second"),I("second","s"),H("second",15),K("s",Qr),K("ss",Qr,Kr),Q(["s","ss"],bo);var li=oe("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),H("millisecond",16),K("S",to,Gr),K("SS",to,Kr),K("SSS",to,$r);var ui;for(ui="SSSS";ui.length<=9;ui+="S")K(ui,oo);for(ui="S";ui.length<=9;ui+="S")Q(ui,Gn);var ci=oe("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var fi=g.prototype;fi.add=ri,fi.calendar=an,fi.clone=sn,fi.diff=hn,fi.endOf=Mn,fi.format=gn,fi.from=vn,fi.fromNow=wn,fi.to=xn,fi.toNow=kn,fi.get=se,fi.invalidAt=Nn,fi.isAfter=ln,fi.isBefore=un,fi.isBetween=cn,fi.isSame=fn,fi.isSameOrAfter=dn,fi.isSameOrBefore=pn,fi.isValid=An,fi.lang=ii,fi.locale=Tn,fi.localeData=Pn,fi.max=Jo,fi.min=Xo,fi.parsingFlags=Rn,fi.set=le,fi.startOf=On,fi.subtract=oi,fi.toArray=Dn,fi.toObject=Ln,fi.toDate=Cn,fi.toISOString=yn,fi.inspect=bn,fi.toJSON=jn,fi.toString=_n,fi.unix=En,fi.valueOf=Sn,fi.creationData=In,fi.year=ko,fi.isLeapYear=re,fi.weekYear=Yn,fi.isoWeekYear=Hn,fi.quarter=fi.quarters=Vn,fi.month=_e,fi.daysInMonth=ye,fi.week=fi.weeks=Ce,fi.isoWeek=fi.isoWeeks=De,fi.weeksInYear=Bn,fi.isoWeeksInYear=zn,fi.date=ai,fi.day=fi.days=Ye,fi.weekday=He,fi.isoWeekday=ze,fi.dayOfYear=qn,fi.hour=fi.hours=Fo,fi.minute=fi.minutes=si,fi.second=fi.seconds=li,fi.millisecond=fi.milliseconds=ci,fi.utcOffset=zt,fi.utc=Wt,fi.local=Ut,fi.parseZone=Vt,fi.hasAlignedHourOffset=qt,fi.isDST=Gt,fi.isLocal=$t,fi.isUtcOffset=Xt,fi.isUtc=Jt,fi.isUTC=Jt,fi.zoneAbbr=Kn,fi.zoneName=$n,fi.dates=P("dates accessor is deprecated. Use date instead.",ai),fi.months=P("months accessor is deprecated. Use month i