UNPKG

mermaid

Version:

Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.

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