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