@0devco/chart
Version:
0devco javascript data charting with chartjs
1 lines • 420 kB
JavaScript
var chart=function(a){var n={};function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=a,i.c=n,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=135)}([function(e,t,Ba){(function(Na){var e;e=function(){"use strict";var e,i;function m(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function d(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function _(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var a in t)c(t,a)&&(e[a]=t[a]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function M(e,t,a,n){return wt(e,t,a,n,!0).utc()}function p(e){return null==e._pf&&(e._pf={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}),e._pf}function y(e){if(null==e._isValid){var t=p(e),a=i.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function g(e){var t=M(NaN);return null!=e?f(p(t),e):p(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),a=t.length>>>0,n=0;n<a;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var r=m.momentProperties=[];function L(e,t){var a,n,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=p(t)),l(t._locale)||(e._locale=t._locale),0<r.length)for(a=0;a<r.length;a++)l(i=t[n=r[a]])||(e[n]=i);return e}var t=!1;function Y(e){L(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,m.updateOffset(this),t=!1)}function v(e){return e instanceof Y||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=k(t)),a}function s(e,t,a){var n,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(n=0;n<i;n++)(a&&e[n]!==t[n]||!a&&b(e[n])!==b(t[n]))&&s++;return s+r}function D(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function a(i,r){var s=!0;return f(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,i),s){for(var e,t=[],a=0;a<arguments.length;a++){if(e="","object"==typeof arguments[a]){for(var n in e+="\n["+a+"] ",arguments[0])e+=n+": "+arguments[0][n]+", ";e=e.slice(0,-2)}else e=arguments[a];t.push(e)}D(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),s=!1}return r.apply(this,arguments)},r)}var n,w={};function x(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),w[e]||(D(t),w[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e,t){var a,n=f({},e);for(a in t)c(t,a)&&(d(e[a])&&d(t[a])?(n[a]={},f(n[a],e[a]),f(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)c(e,a)&&!c(t,a)&&d(e[a])&&(n[a]=f({},n[a]));return n}function H(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null,n=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)c(e,t)&&a.push(t);return a};var j={};function P(e,t){var a=e.toLowerCase();j[a]=j[a+"s"]=j[t]=e}function O(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function A(e){var t,a,n={};for(a in e)c(e,a)&&(t=O(a))&&(n[t]=e[a]);return n}var C={};function F(e,t){C[e]=t}function W(e,t,a){var n=""+Math.abs(e),i=t-n.length;return(0<=e?a?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var I=/(\[[^\[]*\])|(\\)?([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,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},R={};function N(e,t,a,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return W(i.apply(this,arguments),t[1],t[2])}),a&&(R[a]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e,t){return e.isValid()?(t=V(t,e.localeData()),E[t]=E[t]||function(n){var e,i,t,r=n.match(I);for(e=0,i=r.length;e<i;e++)R[r[e]]?r[e]=R[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,a="";for(t=0;t<i;t++)a+=T(r[t])?r[t].call(e,n):r[t];return a}}(t),E[t](e)):e.localeData().invalidDate()}function V(e,t){var a=5;function n(e){return t.longDateFormat(e)||e}for(z.lastIndex=0;0<=a&&z.test(e);)e=e.replace(z,n),z.lastIndex=0,a-=1;return e}var J=/\d/,U=/\d\d/,G=/\d{3}/,q=/\d{4}/,K=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ae=/\d+/,ne=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[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,oe={};function de(e,a,n){oe[e]=T(a)?a:function(e,t){return e&&n?n:a}}function le(e,t){return c(oe,e)?oe[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,i){return t||a||n||i})))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var _e={};function me(e,a){var t,n=a;for("string"==typeof e&&(e=[e]),u(a)&&(n=function(e,t){t[a]=b(e)}),t=0;t<e.length;t++)_e[e[t]]=n}function he(e,i){me(e,function(e,t,a,n){a._w=a._w||{},i(e,a._w,a,n)})}var ce=0,fe=1,Me=2,pe=3,ye=4,ge=5,Le=6,Ye=7,ve=8;function ke(e){return be(e)?366:365}function be(e){return e%4==0&&e%100!=0||e%400==0}N("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),P("year","y"),F("year",1),de("Y",ne),de("YY",Z,U),de("YYYY",ee,q),de("YYYYY",te,K),de("YYYYYY",te,K),me(["YYYYY","YYYYYY"],ce),me("YYYY",function(e,t){t[ce]=2===e.length?m.parseTwoDigitYear(e):b(e)}),me("YY",function(e,t){t[ce]=m.parseTwoDigitYear(e)}),me("Y",function(e,t){t[ce]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return b(e)+(68<b(e)?1900:2e3)};var De,we=xe("FullYear",!0);function xe(t,a){return function(e){return null!=e?(Se(this,t,e),m.updateOffset(this,a),this):Te(this,t)}}function Te(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Se(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&be(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),He(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function He(e,t){if(isNaN(e)||isNaN(t))return NaN;var a,n=(t%(a=12)+a)%a;return e+=(t-n)/12,1===n?be(e)?29:28:31-n%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),F("month",8),de("M",Z),de("MM",Z,U),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),me(["M","MM"],function(e,t){t[fe]=b(e)-1}),me(["MMM","MMMM"],function(e,t,a,n){var i=a._locale.monthsParse(e,n,a._strict);null!=i?t[fe]=i:p(a).invalidMonth=e});var je=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ae(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),He(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function Ce(e){return null!=e?(Ae(this,e),m.updateOffset(this,!0),this):Te(this,"Month")}var Fe=se;var We=se;function Ie(){function e(e,t){return t.length-e.length}var t,a,n=[],i=[],r=[];for(t=0;t<12;t++)a=M([2e3,t]),n.push(this.monthsShort(a,"")),i.push(this.months(a,"")),r.push(this.months(a,"")),r.push(this.monthsShort(a,""));for(n.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)n[t]=ue(n[t]),i[t]=ue(i[t]);for(t=0;t<24;t++)r[t]=ue(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ee(e,t,a){var n=7+t-a;return-((7+ze(e,0,n).getUTCDay()-t)%7)+n-1}function Re(e,t,a,n,i){var r,s,o=1+7*(t-1)+(7+a-n)%7+Ee(e,n,i);return s=o<=0?ke(r=e-1)+o:o>ke(e)?(r=e+1,o-ke(e)):(r=e,o),{year:r,dayOfYear:s}}function Ne(e,t,a){var n,i,r=Ee(e.year(),t,a),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?n=s+Be(i=e.year()-1,t,a):s>Be(e.year(),t,a)?(n=s-Be(e.year(),t,a),i=e.year()+1):(i=e.year(),n=s),{week:n,year:i}}function Be(e,t,a){var n=Ee(e,t,a),i=Ee(e+1,t,a);return(ke(e)-n+i)/7}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),F("week",5),F("isoWeek",5),de("w",Z),de("ww",Z,U),de("W",Z),de("WW",Z,U),he(["w","ww","W","WW"],function(e,t,a,n){t[n.substr(0,1)]=b(e)});N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),de("d",Z),de("e",Z),de("E",Z),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),he(["dd","ddd","dddd"],function(e,t,a,n){var i=a._locale.weekdaysParse(e,n,a._strict);null!=i?t.d=i:p(a).invalidWeekday=e}),he(["d","e","E"],function(e,t,a,n){t[n]=b(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ge=se;var qe=se;var Ke=se;function Ze(){function e(e,t){return t.length-e.length}var t,a,n,i,r,s=[],o=[],d=[],l=[];for(t=0;t<7;t++)a=M([2e3,1]).day(t),n=this.weekdaysMin(a,""),i=this.weekdaysShort(a,""),r=this.weekdays(a,""),s.push(n),o.push(i),d.push(r),l.push(n),l.push(i),l.push(r);for(s.sort(e),o.sort(e),d.sort(e),l.sort(e),t=0;t<7;t++)o[t]=ue(o[t]),d[t]=ue(d[t]),l[t]=ue(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function $e(){return this.hours()%12||12}function Xe(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qe(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,$e),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)}),N("hmmss",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),P("hour","h"),F("hour",13),de("a",Qe),de("A",Qe),de("H",Z),de("h",Z),de("k",Z),de("HH",Z,U),de("hh",Z,U),de("kk",Z,U),de("hmm",$),de("hmmss",X),de("Hmm",$),de("Hmmss",X),me(["H","HH"],pe),me(["k","kk"],function(e,t,a){var n=b(e);t[pe]=24===n?0:n}),me(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),me(["h","hh"],function(e,t,a){t[pe]=b(e),p(a).bigHour=!0}),me("hmm",function(e,t,a){var n=e.length-2;t[pe]=b(e.substr(0,n)),t[ye]=b(e.substr(n)),p(a).bigHour=!0}),me("hmmss",function(e,t,a){var n=e.length-4,i=e.length-2;t[pe]=b(e.substr(0,n)),t[ye]=b(e.substr(n,2)),t[ge]=b(e.substr(i)),p(a).bigHour=!0}),me("Hmm",function(e,t,a){var n=e.length-2;t[pe]=b(e.substr(0,n)),t[ye]=b(e.substr(n))}),me("Hmmss",function(e,t,a){var n=e.length-4,i=e.length-2;t[pe]=b(e.substr(0,n)),t[ye]=b(e.substr(n,2)),t[ge]=b(e.substr(i))});var et,tt=xe("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Pe,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ue,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},nt={},it={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!nt[e]&&void 0!==Na&&Na&&Na.exports)try{t=et._abbr;Ba(166)("./"+e),ot(t)}catch(e){}return nt[e]}function ot(e,t){var a;return e&&((a=l(t)?lt(e):dt(e,t))?et=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function dt(e,t){if(null===t)return delete nt[e],null;var a,n=at;if(t.abbr=e,null!=nt[e])x("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=nt[e]._config;else if(null!=t.parentLocale)if(null!=nt[t.parentLocale])n=nt[t.parentLocale]._config;else{if(null==(a=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;n=a._config}return nt[e]=new H(S(n,t)),it[e]&&it[e].forEach(function(e){dt(e.name,e.config)}),ot(e),nt[e]}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!o(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,a,n,i,r=0;r<e.length;){for(t=(i=rt(e[r]).split("-")).length,a=(a=rt(e[r+1]))?a.split("-"):null;0<t;){if(n=st(i.slice(0,t).join("-")))return n;if(a&&a.length>=t&&s(i,a,!0)>=t-1)break;t--}r++}return et}(e)}function ut(e){var t,a=e._a;return a&&-2===p(e).overflow&&(t=a[fe]<0||11<a[fe]?fe:a[Me]<1||a[Me]>He(a[ce],a[fe])?Me:a[pe]<0||24<a[pe]||24===a[pe]&&(0!==a[ye]||0!==a[ge]||0!==a[Le])?pe:a[ye]<0||59<a[ye]?ye:a[ge]<0||59<a[ge]?ge:a[Le]<0||999<a[Le]?Le:-1,p(e)._overflowDayOfYear&&(t<ce||Me<t)&&(t=Me),p(e)._overflowWeeks&&-1===t&&(t=Ye),p(e)._overflowWeekday&&-1===t&&(t=ve),p(e).overflow=t),e}function _t(e,t,a){return null!=e?e:null!=t?t:a}function mt(e){var t,a,n,i,r,s=[];if(!e._d){var o,d;for(o=e,d=new Date(m.now()),n=o._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[Me]&&null==e._a[fe]&&function(e){var t,a,n,i,r,s,o,d;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,s=4,a=_t(t.GG,e._a[ce],Ne(xt(),1,4).year),n=_t(t.W,1),((i=_t(t.E,1))<1||7<i)&&(d=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var l=Ne(xt(),r,s);a=_t(t.gg,e._a[ce],l.year),n=_t(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(d=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(d=!0)):i=r}n<1||n>Be(a,r,s)?p(e)._overflowWeeks=!0:null!=d?p(e)._overflowWeekday=!0:(o=Re(a,n,i,r,s),e._a[ce]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=_t(e._a[ce],n[ce]),(e._dayOfYear>ke(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),a=ze(r,0,e._dayOfYear),e._a[fe]=a.getUTCMonth(),e._a[Me]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[pe]&&0===e._a[ye]&&0===e._a[ge]&&0===e._a[Le]&&(e._nextDay=!0,e._a[pe]=0),e._d=(e._useUTC?ze:function(e,t,a,n,i,r,s){var o=new Date(e,t,a,n,i,r,s);return e<100&&0<=e&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pe]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}var ht=/^\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)?)?$/,ct=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["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}/]],pt=[["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/]],yt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,a,n,i,r,s,o=e._i,d=ht.exec(o)||ct.exec(o);if(d){for(p(e).iso=!0,t=0,a=Mt.length;t<a;t++)if(Mt[t][1].exec(d[1])){i=Mt[t][0],n=!1!==Mt[t][2];break}if(null==i)return void(e._isValid=!1);if(d[3]){for(t=0,a=pt.length;t<a;t++)if(pt[t][1].exec(d[3])){r=(d[2]||" ")+pt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(d[4]){if(!ft.exec(d[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),bt(e)}else e._isValid=!1}var Lt=/^(?:(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}))$/;function Yt(e,t,a,n,i,r){var s=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(e),Oe.indexOf(t),parseInt(a,10),parseInt(n,10),parseInt(i,10)];return r&&s.push(parseInt(r,10)),s}var vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,a,n,i=Lt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var r=Yt(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],a=r,n=e,t&&Je.indexOf(t)!==new Date(a[0],a[1],a[2]).getDay()&&(p(n).weekdayMismatch=!0,!(n._isValid=!1)))return;e._a=r,e._tzm=function(e,t,a){if(e)return vt[e];if(t)return 0;var n=parseInt(a,10),i=n%100;return(n-i)/100*60+i}(i[8],i[9],i[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function bt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],p(e).empty=!0;var t,a,n,i,r,s,o,d,l=""+e._i,u=l.length,_=0;for(n=V(e._f,e._locale).match(I)||[],t=0;t<n.length;t++)i=n[t],(a=(l.match(le(i,e))||[])[0])&&(0<(r=l.substr(0,l.indexOf(a))).length&&p(e).unusedInput.push(r),l=l.slice(l.indexOf(a)+a.length),_+=a.length),R[i]?(a?p(e).empty=!1:p(e).unusedTokens.push(i),s=i,d=e,null!=(o=a)&&c(_e,s)&&_e[s](o,d._a,d,s)):e._strict&&!a&&p(e).unusedTokens.push(i);p(e).charsLeftOver=u-_,0<l.length&&p(e).unusedInput.push(l),e._a[pe]<=12&&!0===p(e).bigHour&&0<e._a[pe]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[pe]=function(e,t,a){var n;if(null==a)return t;return null!=e.meridiemHour?e.meridiemHour(t,a):(null!=e.isPM&&((n=e.isPM(a))&&t<12&&(t+=12),n||12!==t||(t=0)),t)}(e._locale,e._a[pe],e._meridiem),mt(e),ut(e)}else kt(e);else gt(e)}function Dt(e){var t,a,n,i,r=e._i,s=e._f;return e._locale=e._locale||lt(e._l),null===r||void 0===s&&""===r?g({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),v(r)?new Y(ut(r)):(_(r)?e._d=r:o(s)?function(e){var t,a,n,i,r;if(0===e._f.length)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,t=L({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],bt(t),y(t)&&(r+=p(t).charsLeftOver,r+=10*p(t).unusedTokens.length,p(t).score=r,(null==n||r<n)&&(n=r,a=t));f(e,a||t)}(e):s?bt(e):l(a=(t=e)._i)?t._d=new Date(m.now()):_(a)?t._d=new Date(a.valueOf()):"string"==typeof a?(n=t,null===(i=yt.exec(n._i))?(gt(n),!1===n._isValid&&(delete n._isValid,kt(n),!1===n._isValid&&(delete n._isValid,m.createFromInputFallback(n)))):n._d=new Date(+i[1])):o(a)?(t._a=h(a.slice(0),function(e){return parseInt(e,10)}),mt(t)):d(a)?function(e){if(!e._d){var t=A(e._i);e._a=h([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),mt(e)}}(t):u(a)?t._d=new Date(a):m.createFromInputFallback(t),y(e)||(e._d=null),e))}function wt(e,t,a,n,i){var r,s={};return!0!==a&&!1!==a||(n=a,a=void 0),(d(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=a,s._i=e,s._f=t,s._strict=n,(r=new Y(ut(Dt(s))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function xt(e,t,a,n){return wt(e,t,a,n,!1)}m.createFromInputFallback=a("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":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var Tt=a("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),St=a("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:g()});function Ht(e,t){var a,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return xt();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}var jt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=A(e),a=t.year||0,n=t.quarter||0,i=t.month||0,r=t.week||0,s=t.day||0,o=t.hour||0,d=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===De.call(jt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,n=0;n<jt.length;++n)if(e[jt[n]]){if(a)return!1;parseFloat(e[jt[n]])!==b(e[jt[n]])&&(a=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*d+1e3*o*60*60,this._days=+s+7*r,this._months=+i+3*n+12*a,this._data={},this._locale=lt(),this._bubble()}function Ot(e){return e instanceof Pt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ct(e,a){N(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+W(~~(e/60),2)+a+W(~~e%60,2)})}Ct("Z",":"),Ct("ZZ",""),de("Z",re),de("ZZ",re),me(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Wt(re,e)});var Ft=/([\+\-]|\d\d)/gi;function Wt(e,t){var a=(t||"").match(e);if(null===a)return null;var n=((a[a.length-1]||[])+"").match(Ft)||["-",0,0],i=60*n[1]+b(n[2]);return 0===i?0:"+"===n[0]?i:-i}function It(e,t){var a,n;return t._isUTC?(a=t.clone(),n=(v(e)||_(e)?e.valueOf():xt(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),m.updateOffset(a,!1),a):xt(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Et(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}m.updateOffset=function(){};var Rt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Nt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Bt(e,t){var a,n,i,r=e,s=null;return Ot(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(r={},t?r[t]=e:r.milliseconds=e):(s=Rt.exec(e))?(a="-"===s[1]?-1:1,r={y:0,d:b(s[Me])*a,h:b(s[pe])*a,m:b(s[ye])*a,s:b(s[ge])*a,ms:b(At(1e3*s[Le]))*a}):(s=Nt.exec(e))?(a="-"===s[1]?-1:(s[1],1),r={y:Vt(s[2],a),M:Vt(s[3],a),w:Vt(s[4],a),d:Vt(s[5],a),h:Vt(s[6],a),m:Vt(s[7],a),s:Vt(s[8],a)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=function(e,t){var a;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=It(t,e),e.isBefore(t)?a=Jt(e,t):((a=Jt(t,e)).milliseconds=-a.milliseconds,a.months=-a.months);return a}(xt(r.from),xt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),n=new Pt(r),Ot(e)&&c(e,"_locale")&&(n._locale=e._locale),n}function Vt(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Jt(e,t){var a={milliseconds:0,months:0};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Ut(n,i){return function(e,t){var a;return null===t||isNaN(+t)||(x(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=e,e=t,t=a),Gt(this,Bt(e="string"==typeof e?+e:e,t),n),this}}function Gt(e,t,a,n){var i=t._milliseconds,r=At(t._days),s=At(t._months);e.isValid()&&(n=null==n||n,s&&Ae(e,Te(e,"Month")+s*a),r&&Se(e,"Date",Te(e,"Date")+r*a),i&&e._d.setTime(e._d.valueOf()+i*a),n&&m.updateOffset(e,r||s))}Bt.fn=Pt.prototype,Bt.invalid=function(){return Bt(NaN)};var qt=Ut(1,"add"),Kt=Ut(-1,"subtract");function Zt(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,"months");return-(a+(t-n<0?(t-n)/(n-e.clone().add(a-1,"months")):(t-n)/(e.clone().add(a+1,"months")-n)))||0}function $t(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xt=a("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)});function Qt(){return this._locale}function ea(e,t){N(0,[e,e.length],0,t)}function ta(e,t,a,n,i){var r;return null==e?Ne(this,n,i).year:((r=Be(e,n,i))<t&&(t=r),function(e,t,a,n,i){var r=Re(e,t,a,n,i),s=ze(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,a,n,i))}N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ea("gggg","weekYear"),ea("ggggg","weekYear"),ea("GGGG","isoWeekYear"),ea("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),de("G",ne),de("g",ne),de("GG",Z,U),de("gg",Z,U),de("GGGG",ee,q),de("gggg",ee,q),de("GGGGG",te,K),de("ggggg",te,K),he(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,n){t[n.substr(0,2)]=b(e)}),he(["gg","GG"],function(e,t,a,n){t[n]=m.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),P("quarter","Q"),F("quarter",7),de("Q",J),me("Q",function(e,t){t[fe]=3*(b(e)-1)}),N("D",["DD",2],"Do","date"),P("date","D"),F("date",9),de("D",Z),de("DD",Z,U),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(["D","DD"],Me),me("Do",function(e,t){t[Me]=b(e.match(Z)[0])});var aa=xe("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),F("dayOfYear",4),de("DDD",Q),de("DDDD",G),me(["DDD","DDDD"],function(e,t,a){a._dayOfYear=b(e)}),N("m",["mm",2],0,"minute"),P("minute","m"),F("minute",14),de("m",Z),de("mm",Z,U),me(["m","mm"],ye);var na=xe("Minutes",!1);N("s",["ss",2],0,"second"),P("second","s"),F("second",15),de("s",Z),de("ss",Z,U),me(["s","ss"],ge);var ia,ra=xe("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),F("millisecond",16),de("S",Q,J),de("SS",Q,U),de("SSS",Q,G),ia="SSSS";ia.length<=9;ia+="S")de(ia,ae);function sa(e,t){t[Le]=b(1e3*("0."+e))}for(ia="S";ia.length<=9;ia+="S")me(ia,sa);var oa=xe("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var da=Y.prototype;function la(e){return e}da.add=qt,da.calendar=function(e,t){var a=e||xt(),n=It(a,this).startOf("day"),i=m.calendarFormat(this,n)||"sameElse",r=t&&(T(t[i])?t[i].call(this,a):t[i]);return this.format(r||this.localeData().calendar(i,this,xt(a)))},da.clone=function(){return new Y(this)},da.diff=function(e,t,a){var n,i,r;if(!this.isValid())return NaN;if(!(n=It(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=O(t)){case"year":r=Zt(this,n)/12;break;case"month":r=Zt(this,n);break;case"quarter":r=Zt(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-i)/864e5;break;case"week":r=(this-n-i)/6048e5;break;default:r=this-n}return a?r:k(r)},da.endOf=function(e){return void 0===(e=O(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},da.format=function(e){e||(e=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)},da.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?Bt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},da.fromNow=function(e){return this.from(xt(),e)},da.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?Bt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},da.toNow=function(e){return this.to(xt(),e)},da.get=function(e){return T(this[e=O(e)])?this[e]():this},da.invalidAt=function(){return p(this).overflow},da.isAfter=function(e,t){var a=v(e)?e:xt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=O(l(t)?"millisecond":t))?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},da.isBefore=function(e,t){var a=v(e)?e:xt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=O(l(t)?"millisecond":t))?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},da.isBetween=function(e,t,a,n){return("("===(n=n||"()")[0]?this.isAfter(e,a):!this.isBefore(e,a))&&(")"===n[1]?this.isBefore(t,a):!this.isAfter(t,a))},da.isSame=function(e,t){var a,n=v(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=O(t||"millisecond"))?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},da.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},da.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},da.isValid=function(){return y(this)},da.lang=Xt,da.locale=$t,da.localeData=Qt,da.max=St,da.min=Tt,da.parsingFlags=function(){return f({},p(this))},da.set=function(e,t){if("object"==typeof e)for(var a=function(e){var t=[];for(var a in e)t.push({unit:a,priority:C[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=A(e)),n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit]);else if(T(this[e=O(e)]))return this[e](t);return this},da.startOf=function(e){switch(e=O(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},da.subtract=Kt,da.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},da.toObject=function(){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()}},da.toDate=function(){return new Date(this.valueOf())},da.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||9999<a.year()?B(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(a,"Z")):B(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},da.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var a="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(a+n+"-MM-DD[T]HH:mm:ss.SSS"+i)},da.toJSON=function(){return this.isValid()?this.toISOString():null},da.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},da.unix=function(){return Math.floor(this.valueOf()/1e3)},da.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},da.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},da.year=we,da.isLeapYear=function(){return be(this.year())},da.weekYear=function(e){return ta.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},da.isoWeekYear=function(e){return ta.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},da.quarter=da.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},da.month=Ce,da.daysInMonth=function(){return He(this.year(),this.month())},da.week=da.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},da.isoWeek=da.isoWeeks=function(e){var t=Ne(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},da.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},da.isoWeeksInYear=function(){return Be(this.year(),1,4)},da.date=aa,da.day=da.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,a,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,a=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=a.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},da.weekday=function(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")},da.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,a,n=(t=e,a=this.localeData(),"string"==typeof t?a.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?n:n-7)},da.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},da.hour=da.hours=tt,da.minute=da.minutes=na,da.second=da.seconds=ra,da.millisecond=da.milliseconds=oa,da.utcOffset=function(e,t,a){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:zt(this);if("string"==typeof e){if(null===(e=Wt(re,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(n=zt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Gt(this,Bt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},da.utc=function(e){return this.utcOffset(0,e)},da.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},da.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},da.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},da.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},da.isLocal=function(){return!!this.isValid()&&!this._isUTC},da.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},da.isUtc=Et,da.isUTC=Et,da.zoneAbbr=function(){return this._isUTC?"UTC":""},da.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},da.dates=a("dates accessor is deprecated. Use date instead.",aa),da.months=a("months accessor is deprecated. Use month instead",Ce),da.years=a("years accessor is deprecated. Use year instead",we),da.zone=a("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),da.isDSTShifted=a("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(L(e,this),(e=Dt(e))._a){var t=e._isUTC?M(e._a):xt(e._a);this._isDSTShifted=this.isValid()&&0<s(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var ua=H.prototype;function _a(e,t,a,n){var i=lt(),r=M().set(n,t);return i[a](r,e)}function ma(e,t,a){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return _a(e,t,a,"month");var n,i=[];for(n=0;n<12;n++)i[n]=_a(e,n,a,"month");return i}function ha(e,t,a,n){t=("boolean"==typeof e?u(t)&&(a=t,t=void 0):(t=e,e=!1,u(a=t)&&(a=t,t=void 0)),t||"");var i,r=lt(),s=e?r._week.dow:0;if(null!=a)return _a(t,(a+s)%7,n,"day");var o=[];for(i=0;i<7;i++)o[i]=_a(t,(i+s)%7,n,"day");return o}ua.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(t,a):n},ua.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},ua.invalidDate=function(){return this._invalidDate},ua.ordinal=function(e){return this._ordinal.replace("%d",e)},ua.preparse=la,ua.postformat=la,ua.relativeTime=function(e,t,a,n){var i=this._relativeTime[a];return T(i)?i(e,t,a,n):i.replace(/%d/i,e)},ua.pastFuture=function(e,t){var a=this._relativeTime[0<e?"future":"past"];return T(a)?a(t):a.replace(/%s/i,t)},ua.set=function(e){var t,a;for(a in e)T(t=e[a])?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ua.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||je).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},ua.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[je.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ua.monthsParse=function(e,t,a){var n,i,r;if(this._monthsParseExact)return function(e,t,a){var n,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=M([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,s))?i:null:-1!==(i=De.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,s))?i:-1!==(i=De.call(this._longMonthsParse,s))?i:null:-1!==(i=De.call(this._longMonthsParse,s))?i:-1!==(i=De.call(this._shortMonthsParse,s))?i:null}.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=M([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}},ua.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ua.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ua.week=function(e){return Ne(e,this._week.dow,this._week.doy).week},ua.firstDayOfYear=function(){return this._week.doy},ua.firstDayOfWeek=function(){return this._week.dow},ua.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},ua.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ua.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ua.weekdaysParse=function(e,t,a){var n,i,r;if(this._weekdaysParseExact)return function(e,t,a){var n,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=M([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._shortWeekdaysParse,s))?i:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))?i:-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))?i:-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null}.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=M([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}},ua.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ua.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ua.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ua.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ua.meridiem=function(e,t,a){return 11<e?a?"pm":"PM":a?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),m.lang=a("moment.lang is deprecated. Use moment.locale instead.",ot),m.langData=a("moment.langData is deprecated. Use moment.localeData instead.",lt);var ca=Math.abs;function fa(e,t,a,n){var i=Bt(t,a);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function pa(e){return 4800*e/146097}function ya(e){return 146097*e/4800}function ga(e){return function(){return this.as(e)}}var La=ga("ms"),Ya=ga("s"),va=ga("m"),ka=ga("h"),ba=ga("d"),Da=ga("w"),wa=ga("M"),xa=ga("y");function Ta(e){return function(){return this.isValid()?this._data[e]:NaN}}var Sa=Ta("milliseconds"),Ha=Ta("seconds"),ja=Ta("minutes"),Pa=Ta("hours"),Oa=Ta("days"),Aa=Ta("months"),Ca=Ta("years");var Fa=Math.round,Wa={ss:44,s:45,m:45,h:22,d:26,M:11};var Ia=Math.abs;function za(e){return(0<e)-(e<0)||+e}function Ea(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a=Ia(this._milliseconds)/1e3,n=Ia(this._days),i=Ia(this._months);t=k((e=k(a/60))/60),a%=60,e%=60;var r=k(i/12),s=i%=12,o=n,d=t,l=e,u=a?a.toFixed(3).replace(/\.?0+$/,""):"",_=this.asSeconds();if(!_)return"P0D";var m=_<0?"-":"",h=za(this._months)!==za(_)?"-":"",c=za(this._days)!==za(_)?"-":"",f=za(this._milliseconds)!==za(_)?"-":"";return m+"P"+(r?h+r+"Y":"")+(s?h+s+"M":"")+(o?c+o+"D":"")+(d||l||u?"T":"")+(d?f+d+"H":"")+(l?f+l+"M":"")+(u?f+u+"S":"")}var Ra=Pt.prototype;return Ra.isValid=function(){return this._isValid},Ra.abs=function(){var e=this._data;return this._milliseconds=ca(this._milliseconds),this._days=ca(this._days),this._months=ca(this._months),e.milliseconds=ca(e.milliseconds),e.seconds=ca(e.seconds),e.minutes=ca(e.minutes),e.hours=ca(e.hours),e.months=ca(e.months),e.years=ca(e.years),this},Ra.add=function(e,t){return fa(this,e,t,1)},Ra.subtract=function(e,t){return fa(this,e,t,-1)},Ra.as=function(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if("month"===(e=O(e))||"year"===e)return t=this._days+n/864e5,a=this._months+pa(t),"month"===e?a:a/12;switch(t=this._days+Math.round(ya(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},Ra.asMilliseconds=La,Ra.asSeconds=Ya,Ra.asMinutes=va,Ra.asHours=ka,Ra.asDays=ba,Ra.asWeeks=Da,Ra.asMonths=wa,Ra.asYears=xa,Ra.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},Ra._bubble=function(){var e,t,a,n,i,r=this._milliseconds,s=this._days,o=this._months,d=this._data;return 0<=r&&0<=s&&0<=o||r<=0&&s<=0&&o<=0||(r+=864e5*Ma(ya(o)+s),o=s=0),d.milliseconds=r%1e3,e=k(r/1e3),d.seconds=e%60,t=k(e/60),d.minutes=t%60,a=k(t/60),d.hours=a%24,o+=i=k(pa(s+=k(a/24))),s-=Ma(ya(i)),n=k(o/12),o%=12,d.days=s,d.months=o,d.years=n,this},Ra.clone=function(){return Bt(this)},Ra.get=function(e){return e=O(e),this.isValid()?this[e+"s"]():NaN},Ra.milliseconds=Sa,Ra.seconds=Ha,Ra.minutes=ja,Ra.hours=Pa,Ra.days=Oa,Ra.weeks=function(){return k(this.days()/7)},Ra.months=Aa,Ra.years=Ca,Ra.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,a,n,i,r,s,o,d,l,u,_,m=this.localeData(),h=(a=!e,n=m,i=Bt(t=this).abs(),r=Fa(i.as("s")),s=Fa(i.as("m")),o=Fa(i.as("h")),d=Fa(i.as("d")),l=Fa(i.as("M")),u=Fa(i.as("y")),(_=r<=Wa.ss&&["s",r]||r<Wa.s&&["ss",r]||s<=1&&["m"]||s<Wa.m&&["mm",s]||o<=1&&["h"]||o<Wa.h&&["hh",o]||d<=1&&["d"]||d<Wa.d&&["dd",d]||l<=1&&["M"]||l<Wa.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=a,_[3]=0<+t,_[4]=n,function(e,t,a,n,i){return i.relativeTime(t||1,!!a,e,n)}.apply(null,_));return e&&(h=m.pastFuture(+this,h)),m.postformat(h)},Ra.toISOString=Ea,Ra.toString=Ea,Ra.toJSON=Ea,Ra.lo