UNPKG

tinper-bee

Version:

React Components living for enterprise-class pc backend application

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