!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,a;function g(){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 h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,i){return St(e,t,n,i,!0).utc()}function w(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 _(e){if(null==e._isValid){var t=w(e),n=a.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=m(NaN);return null!=e?f(w(t),e):w(t).userInvalidated=!0,t}a=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var s=g.momentProperties=[];function v(e,t){var n,i,a;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=w(t)),l(t._locale)||(e._locale=t._locale),0<s.length)for(n=0;n<s.length;n++)l(a=t[i=s[n]])||(e[i]=a);return e}var t=!1;function M(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,g.updateOffset(this),t=!1)}function k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function D(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!=t&&isFinite(t)&&(n=D(t)),n}function r(e,t,n){var i,a=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),r=0;for(i=0;i<a;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&r++;return r+s}function Y(){!1===g.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function n(a,s){var r=!0;return f(function(){if(null!=g.deprecationHandler&&g.deprecationHandler(null,a),r){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var i in e+="\n["+n+"] ",arguments[0])e+=i+": "+arguments[0][i]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}Y((Array.prototype.slice.call(t).join(""),(new Error).stack)),r=!1}return s.apply(this,arguments)},s)}var i,O={};function T(e,t){null!=g.deprecationHandler&&g.deprecationHandler(e,t),O[e]||(Y(),O[e]=!0)}function b(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var n,i=f({},e);for(n in t)p(t,n)&&(d(e[n])&&d(t[n])?(i[n]={},f(i[n],e[n]),f(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)p(e,n)&&!p(t,n)&&d(e[n])&&(i[n]=f({},i[n]));return i}function C(e){null!=e&&this.set(e)}g.suppressDeprecationWarnings=!1,g.deprecationHandler=null,i=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};var P={};function W(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function L(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)p(e,n)&&(t=L(n))&&(i[t]=e[n]);return i}var F={};function R(e,t){F[e]=t}function N(e,t,n){var i=""+Math.abs(e),a=t-i.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var U=/(\[[^\[]*\])|(\\)?([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,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},A={};function G(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(A[e]=a),t&&(A[t[0]]=function(){return N(a.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=j(t,e.localeData()),$[t]=$[t]||function(i){var e,a,t,s=i.match(U);for(e=0,a=s.length;e<a;e++)A[s[e]]?s[e]=A[s[e]]:s[e]=(t=s[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<a;t++)n+=b(s[t])?s[t].call(e,i):s[t];return n}}(t),$[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(E.lastIndex=0;0<=n&&E.test(e);)e=e.replace(E,i),E.lastIndex=0,n-=1;return e}var I=/\d/,z=/\d\d/,Z=/\d{3}/,q=/\d{4}/,J=/[+-]?\d{6}/,B=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[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,n,i){oe[e]=b(n)?n:function(e,t){return e&&i?i:n}}function le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function ue(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),h(n)&&(i=function(e,t){t[n]=S(e)}),t=0;t<e.length;t++)he[e[t]]=i}function ce(e,a){ue(e,function(e,t,n,i){n._w=n._w||{},a(e,n._w,n,i)})}var fe=0,me=1,_e=2,ye=3,ve=4,ge=5,pe=6,we=7,Me=8;function ke(e){return De(e)?366:365}function De(e){return e%4==0&&e%100!=0||e%400==0}G("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),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"),W("year","y"),R("year",1),de("Y",ie),de("YY",B,z),de("YYYY",ee,q),de("YYYYY",te,J),de("YYYYYY",te,J),ue(["YYYYY","YYYYYY"],fe),ue("YYYY",function(e,t){t[fe]=2===e.length?g.parseTwoDigitYear(e):S(e)}),ue("YY",function(e,t){t[fe]=g.parseTwoDigitYear(e)}),ue("Y",function(e,t){t[fe]=parseInt(e,10)}),g.parseTwoDigitYear=function(e){return S(e)+(68<S(e)?1900:2e3)};var Se,Ye=Oe("FullYear",!0);function Oe(t,n){return function(e){return null!=e?(be(this,t,e),g.updateOffset(this,n),this):Te(this,t)}}function Te(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function be(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&De(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1==n?De(e)?29:28:31-n%7%2}Se=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},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),G("MMMM",0,0,function(e){return this.localeData().months(this,e)}),W("month","M"),R("month",8),de("M",B),de("MM",B,z),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),ue(["M","MM"],function(e,t){t[me]=S(e)-1}),ue(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[me]=a:w(n).invalidMonth=e});var Ce=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),We="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function He(e){return null!=e?(Le(this,e),g.updateOffset(this,!0),this):Te(this,"Month")}var Fe=re,Re=re;function Ne(){function e(e,t){return t.length-e.length}var t,n,i=[],a=[],s=[];for(t=0;t<12;t++)n=m([2e3,t]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(e),a.sort(e),s.sort(e),t=0;t<12;t++)i[t]=le(i[t]),a[t]=le(a[t]);for(t=0;t<24;t++)s[t]=le(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ue(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,n){var i=7+t-n;return-(7+Ue(e,0,i).getUTCDay()-t)%7+i-1}function $e(e,t,n,i,a){var s,r,o=1+7*(t-1)+(7+n-i)%7+Ee(e,i,a);return r=o<=0?ke(s=e-1)+o:o>ke(e)?(s=e+1,o-ke(e)):(s=e,o),{year:s,dayOfYear:r}}function Ae(e,t,n){var i,a,s=Ee(e.year(),t,n),r=Math.floor((e.dayOfYear()-s-1)/7)+1;return r<1?i=r+Ge(a=e.year()-1,t,n):r>Ge(e.year(),t,n)?(i=r-Ge(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function Ge(e,t,n){var i=Ee(e,t,n),a=Ee(e+1,t,n);return(ke(e)-i+a)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),R("week",5),R("isoWeek",5),de("w",B),de("ww",B,z),de("W",B),de("WW",B,z),ce(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=S(e)}),G("d",0,"do","day"),G("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),G("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),G("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),de("d",B),de("e",B),de("E",B),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)}),ce(["dd","ddd","dddd"],function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);null!=a?t.d=a:w(n).invalidWeekday=e}),ce(["d","e","E"],function(e,t,n,i){t[i]=S(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=re,Ze=re,qe=re;function Je(){function e(e,t){return t.length-e.length}var t,n,i,a,s,r=[],o=[],d=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),i=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),s=this.weekdays(n,""),r.push(i),o.push(a),d.push(s),l.push(i),l.push(a),l.push(s);for(r.sort(e),o.sort(e),d.sort(e),l.sort(e),t=0;t<7;t++)o[t]=le(o[t]),d[t]=le(d[t]),l[t]=le(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("^("+r.join("|")+")","i")}function Be(){return this.hours()%12||12}function Qe(e,t){G(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Be),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+Be.apply(this)+N(this.minutes(),2)}),G("hmmss",0,0,function(){return""+Be.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),W("hour","h"),R("hour",13),de("a",Xe),de("A",Xe),de("H",B),de("h",B),de("k",B),de("HH",B,z),de("hh",B,z),de("kk",B,z),de("hmm",Q),de("hmmss",X),de("Hmm",Q),de("Hmmss",X),ue(["H","HH"],ye),ue(["k","kk"],function(e,t,n){var i=S(e);t[ye]=24===i?0:i}),ue(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ue(["h","hh"],function(e,t,n){t[ye]=S(e),w(n).bigHour=!0}),ue("hmm",function(e,t,n){var i=e.length-2;t[ye]=S(e.substr(0,i)),t[ve]=S(e.substr(i)),w(n).bigHour=!0}),ue("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[ye]=S(e.substr(0,i)),t[ve]=S(e.substr(i,2)),t[ge]=S(e.substr(a)),w(n).bigHour=!0}),ue("Hmm",function(e,t,n){var i=e.length-2;t[ye]=S(e.substr(0,i)),t[ve]=S(e.substr(i))}),ue("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[ye]=S(e.substr(0,i)),t[ve]=S(e.substr(i,2)),t[ge]=S(e.substr(a))});var Ke,et=Oe("Hours",!0),tt={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:We,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ie,weekdaysShort:je,meridiemParse:/[ap]\.?m?\.?/i},nt={},it={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!nt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Ke._abbr,require("./locale/"+e),rt(t)}catch(e){}return nt[e]}function rt(e,t){var n;return e&&((n=l(t)?dt(e):ot(e,t))?Ke=n:"undefined"!=typeof console&&console.warn),Ke._abbr}function ot(e,t){if(null===t)return delete nt[e],null;var n,i=tt;if(t.abbr=e,null!=nt[e])T("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."),i=nt[e]._config;else if(null!=t.parentLocale)if(null!=nt[t.parentLocale])i=nt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;i=n._config}return nt[e]=new C(x(i,t)),it[e]&&it[e].forEach(function(e){ot(e.name,e.config)}),rt(e),nt[e]}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ke;if(!o(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,i,a,s=0;s<e.length;){for(t=(a=at(e[s]).split("-")).length,n=(n=at(e[s+1]))?n.split("-"):null;0<t;){if(i=st(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&r(a,n,!0)>=t-1)break;t--}s++}return Ke}(e)}function lt(e){var t,n=e._a;return n&&-2===w(e).overflow&&(t=n[me]<0||11<n[me]?me:n[_e]<1||n[_e]>xe(n[fe],n[me])?_e:n[ye]<0||24<n[ye]||24===n[ye]&&(0!==n[ve]||0!==n[ge]||0!==n[pe])?ye:n[ve]<0||59<n[ve]?ve:n[ge]<0||59<n[ge]?ge:n[pe]<0||999<n[pe]?pe:-1,w(e)._overflowDayOfYear&&(t<fe||_e<t)&&(t=_e),w(e)._overflowWeeks&&-1===t&&(t=we),w(e)._overflowWeekday&&-1===t&&(t=Me),w(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t,n,i,a,s,r=[];if(!e._d){var o,d;for(o=e,d=new Date(g.now()),i=o._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[_e]&&null==e._a[me]&&function(e){var t,n,i,a,s,r,o,d;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)s=1,r=4,n=ht(t.GG,e._a[fe],Ae(Yt(),1,4).year),i=ht(t.W,1),((a=ht(t.E,1))<1||7<a)&&(d=!0);else{s=e._locale._week.dow,r=e._locale._week.doy;var l=Ae(Yt(),s,r);n=ht(t.gg,e._a[fe],l.year),i=ht(t.w,l.week),null!=t.d?((a=t.d)<0||6<a)&&(d=!0):null!=t.e?(a=t.e+s,(t.e<0||6<t.e)&&(d=!0)):a=s}i<1||i>Ge(n,s,r)?w(e)._overflowWeeks=!0:null!=d?w(e)._overflowWeekday=!0:(o=$e(n,i,a,s,r),e._a[fe]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(s=ht(e._a[fe],i[fe]),(e._dayOfYear>ke(s)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),n=Ue(s,0,e._dayOfYear),e._a[me]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ye]&&0===e._a[ve]&&0===e._a[ge]&&0===e._a[pe]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Ue:function(e,t,n,i,a,s,r){var o=new Date(e,t,n,i,a,s,r);return e<100&&0<=e&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(w(e).weekdayMismatch=!0)}}var 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=/^\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)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["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}/]],yt=[["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/]],vt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,i,a,s,r,o=e._i,d=ct.exec(o)||ft.exec(o);if(d){for(w(e).iso=!0,t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(d[1])){a=_t[t][0],i=!1!==_t[t][2];break}if(null==a)return void(e._isValid=!1);if(d[3]){for(t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(d[3])){s=(d[2]||" ")+yt[t][0];break}if(null==s)return void(e._isValid=!1)}if(!i&&null!=s)return void(e._isValid=!1);if(d[4]){if(!mt.exec(d[4]))return void(e._isValid=!1);r="Z"}e._f=a+(s||"")+(r||""),kt(e)}else e._isValid=!1}var pt=/^(?:(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}))$/;var wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(e){var t,n,i,a=pt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(a){var s=function(e,t,n,i,a,s){var r,o=[(r=parseInt(e,10),r<=49?2e3+r:r<=999?1900+r:r),We.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return s&&o.push(parseInt(s,10)),o}(a[4],a[3],a[2],a[5],a[6],a[7]);if(n=s,i=e,(t=a[1])&&je.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(w(i).weekdayMismatch=!0,!(i._isValid=!1)))return;e._a=s,e._tzm=function(e,t,n){if(e)return wt[e];if(t)return 0;var i=parseInt(n,10),a=i%100;return(i-a)/100*60+a}(a[8],a[9],a[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==g.ISO_8601)if(e._f!==g.RFC_2822){e._a=[],w(e).empty=!0;var t,n,i,a,s,r,o,d,l=""+e._i,h=l.length,u=0;for(i=j(e._f,e._locale).match(U)||[],t=0;t<i.length;t++)a=i[t],(n=(l.match((v=e,p(oe,y=a)?oe[y](v._strict,v._locale):new RegExp(le(y.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a})))))||[])[0])&&(0<(s=l.substr(0,l.indexOf(n))).length&&w(e).unusedInput.push(s),l=l.slice(l.indexOf(n)+n.length),u+=n.length),A[a]?(n?w(e).empty=!1:w(e).unusedTokens.push(a),r=a,d=e,null!=(o=n)&&p(he,r)&&he[r](o,d._a,d,r)):e._strict&&!n&&w(e).unusedTokens.push(a);w(e).charsLeftOver=h-u,0<l.length&&w(e).unusedInput.push(l),e._a[ye]<=12&&!0===w(e).bigHour&&0<e._a[ye]&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[ye]=(c=e._locale,f=e._a[ye],null==(m=e._meridiem)?f:null!=c.meridiemHour?c.meridiemHour(f,m):(null!=c.isPM&&((_=c.isPM(m))&&f<12&&(f+=12),_||12!==f||(f=0)),f)),ut(e),lt(e)}else Mt(e);else gt(e);var c,f,m,_,y,v}function Dt(e){var t,n,i,a,s=e._i,r=e._f;return e._locale=e._locale||dt(e._l),null===s||void 0===r&&""===s?y({nullInput:!0}):("string"==typeof s&&(e._i=s=e._locale.preparse(s)),k(s)?new M(lt(s)):(u(s)?e._d=s:o(r)?function(e){var t,n,i,a,s;if(0===e._f.length)return w(e).invalidFormat=!0,e._d=new Date(NaN);for(a=0;a<e._f.length;a++)s=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],kt(t),_(t)&&(s+=w(t).charsLeftOver,s+=10*w(t).unusedTokens.length,w(t).score=s,(null==i||s<i)&&(i=s,n=t));f(e,n||t)}(e):r?kt(e):l(n=(t=e)._i)?t._d=new Date(g.now()):u(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(i=t,null===(a=vt.exec(i._i))?(gt(i),!1===i._isValid&&(delete i._isValid,Mt(i),!1===i._isValid&&(delete i._isValid,g.createFromInputFallback(i)))):i._d=new Date(+a[1])):o(n)?(t._a=c(n.slice(0),function(e){return parseInt(e,10)}),ut(t)):d(n)?function(e){if(!e._d){var t=H(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}(t):h(n)?t._d=new Date(n):g.createFromInputFallback(t),_(e)||(e._d=null),e))}function St(e,t,n,i,a){var s,r={};return!0!==n&&!1!==n||(i=n,n=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),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=t,r._strict=i,(s=new M(lt(Dt(r))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Yt(e,t,n,i){return St(e,t,n,i,!1)}g.createFromInputFallback=n("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":""))}),g.ISO_8601=function(){},g.RFC_2822=function(){};var Ot=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Tt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Yt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:y()});function bt(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Yt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var t=H(e),n=t.year||0,i=t.quarter||0,a=t.month||0,s=t.week||0,r=t.day||0,o=t.hour||0,d=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Se.call(xt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<xt.length;++i)if(e[xt[i]]){if(n)return!1;parseFloat(e[xt[i]])!==S(e[xt[i]])&&(n=!0)}return!0}(t),this._milliseconds=+h+1e3*l+6e4*d+1e3*o*60*60,this._days=+r+7*s,this._months=+a+3*i+12*n,this._data={},this._locale=dt(),this._bubble()}function Pt(e){return e instanceof Ct}function Wt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,n){G(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+N(~~(e/60),2)+n+N(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),de("Z",se),de("ZZ",se),ue(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(se,e)});var Ht=/([\+\-]|\d\d)/gi;function Ft(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Ht)||["-",0,0],a=60*i[1]+S(i[2]);return 0===a?0:"+"===i[0]?a:-a}function Rt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(k(e)||u(e)?e.valueOf():Yt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),g.updateOffset(n,!1),n):Yt(e).local()}function Nt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}g.updateOffset=function(){};var Et=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function At(e,t){var n,i,a,s,r,o,d=e,l=null;return Pt(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:h(e)?(d={},t?d[t]=e:d.milliseconds=e):(l=Et.exec(e))?(n="-"===l[1]?-1:1,d={y:0,d:S(l[_e])*n,h:S(l[ye])*n,m:S(l[ve])*n,s:S(l[ge])*n,ms:S(Wt(1e3*l[pe]))*n}):(l=$t.exec(e))?(n="-"===l[1]?-1:(l[1],1),d={y:Gt(l[2],n),M:Gt(l[3],n),w:Gt(l[4],n),d:Gt(l[5],n),h:Gt(l[6],n),m:Gt(l[7],n),s:Gt(l[8],n)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(s=Yt(d.from),r=Yt(d.to),a=s.isValid()&&r.isValid()?(r=Rt(r,s),s.isBefore(r)?o=Vt(s,r):((o=Vt(r,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(d={}).ms=a.milliseconds,d.M=a.months),i=new Ct(d),Pt(e)&&p(e,"_locale")&&(i._locale=e._locale),i}function Gt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function jt(i,a){return function(e,t){var n;return null===t||isNaN(+t)||(T(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),It(this,At(e="string"==typeof e?+e:e,t),i),this}}function It(e,t,n,i){var a=t._milliseconds,s=Wt(t._days),r=Wt(t._months);e.isValid()&&(i=null==i||i,r&&Le(e,Te(e,"Month")+r*n),s&&be(e,"Date",Te(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&g.updateOffset(e,s||r))}At.fn=Ct.prototype,At.invalid=function(){return At(NaN)};var zt=jt(1,"add"),Zt=jt(-1,"subtract");function qt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(1+n,"months")-i)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Bt=n("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 Xt(e,t){G(0,[e,e.length],0,t)}function Kt(e,t,n,i,a){var s;return null==e?Ae(this,i,a).year:((s=Ge(e,i,a))<t&&(t=s),function(e,t,n,i,a){var s=$e(e,t,n,i,a),r=Ue(s.year,0,s.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,t,n,i,a))}G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Xt("gggg","weekYear"),Xt("ggggg","weekYear"),Xt("GGGG","isoWeekYear"),Xt("GGGGG","isoWeekYear"),W("weekYear","gg"),W("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),de("G",ie),de("g",ie),de("GG",B,z),de("gg",B,z),de("GGGG",ee,q),de("gggg",ee,q),de("GGGGG",te,J),de("ggggg",te,J),ce(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=S(e)}),ce(["gg","GG"],function(e,t,n,i){t[i]=g.parseTwoDigitYear(e)}),G("Q",0,"Qo","quarter"),W("quarter","Q"),R("quarter",7),de("Q",I),ue("Q",function(e,t){t[me]=3*(S(e)-1)}),G("D",["DD",2],"Do","date"),W("date","D"),R("date",9),de("D",B),de("DD",B,z),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ue(["D","DD"],_e),ue("Do",function(e,t){t[_e]=S(e.match(B)[0])});var en=Oe("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),W("dayOfYear","DDD"),R("dayOfYear",4),de("DDD",K),de("DDDD",Z),ue(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),G("m",["mm",2],0,"minute"),W("minute","m"),R("minute",14),de("m",B),de("mm",B,z),ue(["m","mm"],ve);var tn=Oe("Minutes",!1);G("s",["ss",2],0,"second"),W("second","s"),R("second",15),de("s",B),de("ss",B,z),ue(["s","ss"],ge);var nn,an=Oe("Seconds",!1);for(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()}),W("millisecond","ms"),R("millisecond",16),de("S",K,I),de("SS",K,z),de("SSS",K,Z),nn="SSSS";nn.length<=9;nn+="S")de(nn,ne);function sn(e,t){t[pe]=S(1e3*("0."+e))}for(nn="S";nn.length<=9;nn+="S")ue(nn,sn);var rn=Oe("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var on=M.prototype;function dn(e){return e}on.add=zt,on.calendar=function(e,t){var n=e||Yt(),i=Rt(n,this).startOf("day"),a=g.calendarFormat(this,i)||"sameElse",s=t&&(b(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Yt(n)))},on.clone=function(){return new M(this)},on.diff=function(e,t,n){var i,a,s;if(!this.isValid())return NaN;if(!(i=Rt(e,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),t=L(t)){case"year":s=qt(this,i)/12;break;case"month":s=qt(this,i);break;case"quarter":s=qt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-a)/864e5;break;case"week":s=(this-i-a)/6048e5;break;default:s=this-i}return n?s:D(s)},on.endOf=function(e){return void 0===(e=L(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},on.format=function(e){e=e||(this.isUtc()?g.defaultFormatUtc:g.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},on.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Yt(e).isValid())?At({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},on.fromNow=function(e){return this.from(Yt(),e)},on.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Yt(e).isValid())?At({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},on.toNow=function(e){return this.to(Yt(),e)},on.get=function(e){return b(this[e=L(e)])?this[e]():this},on.invalidAt=function(){return w(this).overflow},on.isAfter=function(e,t){var n=k(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(l(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},on.isBefore=function(e,t){var n=k(e)?e:Yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(l(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},on.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},on.isSame=function(e,t){var n,i=k(e)?e:Yt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=L(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},on.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},on.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},on.isValid=function(){return _(this)},on.lang=Bt,on.locale=Jt,on.localeData=Qt,on.max=Tt,on.min=Ot,on.parsingFlags=function(){return f({},w(this))},on.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:F[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=H(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(b(this[e=L(e)]))return this[e](t);return this},on.startOf=function(e){switch(e=L(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},on.subtract=Zt,on.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},on.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()}},on.toDate=function(){return new Date(this.valueOf())},on.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.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 n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+a)},on.toJSON=function(){return this.isValid()?this.toISOString():null},on.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.year=Ye,on.isLeapYear=function(){return De(this.year())},on.weekYear=function(e){return Kt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},on.isoWeekYear=function(e){return Kt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},on.quarter=on.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},on.month=He,on.daysInMonth=function(){return xe(this.year(),this.month())},on.week=on.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},on.isoWeek=on.isoWeeks=function(e){var t=Ae(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},on.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},on.isoWeeksInYear=function(){return Ge(this.year(),1,4)},on.date=en,on.day=on.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d")):i},on.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")},on.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,i=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?i:i-7)},on.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")},on.hour=on.hours=et,on.minute=on.minutes=tn,on.second=on.seconds=an,on.millisecond=on.milliseconds=rn,on.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?a:Nt(this);if("string"==typeof e){if(null===(e=Ft(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?It(this,At(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this},on.utc=function(e){return this.utcOffset(0,e)},on.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},on.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},on.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},on.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Ut,on.isUTC=Ut,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=n("dates accessor is deprecated. Use date instead.",en),on.months=n("months accessor is deprecated. Use month instead",He),on.years=n("years accessor is deprecated. Use year instead",Ye),on.zone=n("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()}),on.isDSTShifted=n("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(v(e,this),(e=Dt(e))._a){var t=e._isUTC?m(e._a):Yt(e._a);this._isDSTShifted=this.isValid()&&0<r(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var ln=C.prototype;function hn(e,t,n,i){var a=dt(),s=m().set(i,t);return a[n](s,e)}function un(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return hn(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=hn(e,i,n,"month");return a}function cn(e,t,n,i){"boolean"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t=t||"";var a,s=dt(),r=e?s._week.dow:0;if(null!=n)return hn(t,(n+r)%7,i,"day");var o=[];for(a=0;a<7;a++)o[a]=hn(t,(a+r)%7,i,"day");return o}ln.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return b(i)?i.call(t,n):i},ln.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},ln.invalidDate=function(){return this._invalidDate},ln.ordinal=function(e){return this._ordinal.replace("%d",e)},ln.preparse=dn,ln.postformat=dn,ln.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return b(a)?a(e,t,n,i):a.replace(/%d/i,e)},ln.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return b(n)?n(t):n.replace(/%s/i,t)},ln.set=function(e){var t,n;for(n in e)b(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ln.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},ln.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ln.monthsParse=function(e,t,n){var i,a,s;if(this._monthsParseExact)return function(e,t,n){var i,a,s,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=m([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Se.call(this._shortMonthsParse,r))?a:null:-1!==(a=Se.call(this._longMonthsParse,r))?a:null:"MMM"===t?-1!==(a=Se.call(this._shortMonthsParse,r))?a:-1!==(a=Se.call(this._longMonthsParse,r))?a:null:-1!==(a=Se.call(this._longMonthsParse,r))?a:-1!==(a=Se.call(this._shortMonthsParse,r))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=m([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},ln.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ln.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ln.week=function(e){return Ae(e,this._week.dow,this._week.doy).week},ln.firstDayOfYear=function(){return this._week.doy},ln.firstDayOfWeek=function(){return this._week.dow},ln.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},ln.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ln.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ln.weekdaysParse=function(e,t,n){var i,a,s;if(this._weekdaysParseExact)return function(e,t,n){var i,a,s,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=m([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Se.call(this._weekdaysParse,r))?a:null:"ddd"===t?-1!==(a=Se.call(this._shortWeekdaysParse,r))?a:null:-1!==(a=Se.call(this._minWeekdaysParse,r))?a:null:"dddd"===t?-1!==(a=Se.call(this._weekdaysParse,r))?a:-1!==(a=Se.call(this._shortWeekdaysParse,r))?a:-1!==(a=Se.call(this._minWeekdaysParse,r))?a:null:"ddd"===t?-1!==(a=Se.call(this._shortWeekdaysParse,r))?a:-1!==(a=Se.call(this._weekdaysParse,r))?a:-1!==(a=Se.call(this._minWeekdaysParse,r))?a:null:-1!==(a=Se.call(this._minWeekdaysParse,r))?a:-1!==(a=Se.call(this._weekdaysParse,r))?a:-1!==(a=Se.call(this._shortWeekdaysParse,r))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},ln.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ln.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ln.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ln.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ln.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},rt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),g.lang=n("moment.lang is deprecated. Use moment.locale instead.",rt),g.langData=n("moment.langData is deprecated. Use moment.localeData instead.",dt);var fn=Math.abs;function mn(e,t,n,i){var a=At(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function yn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function gn(e){return function(){return this.as(e)}}var pn=gn("ms"),wn=gn("s"),Mn=gn("m"),kn=gn("h"),Dn=gn("d"),Sn=gn("w"),Yn=gn("M"),On=gn("y");function Tn(e){return function(){return this.isValid()?this._data[e]:NaN}}var bn=Tn("milliseconds"),xn=Tn("seconds"),Cn=Tn("minutes"),Pn=Tn("hours"),Wn=Tn("days"),Ln=Tn("months"),Hn=Tn("years"),Fn=Math.round,Rn={ss:44,s:45,m:45,h:22,d:26,M:11},Nn=Math.abs;function Un(e){return(0<e)-(e<0)||+e}function En(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Nn(this._milliseconds)/1e3,i=Nn(this._days),a=Nn(this._months);t=D((e=D(n/60))/60),n%=60,e%=60;var s=D(a/12),r=a%=12,o=i,d=t,l=e,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var c=u<0?"-":"",f=Un(this._months)!==Un(u)?"-":"",m=Un(this._days)!==Un(u)?"-":"",_=Un(this._milliseconds)!==Un(u)?"-":"";return c+"P"+(s?f+s+"Y":"")+(r?f+r+"M":"")+(o?m+o+"D":"")+(d||l||h?"T":"")+(d?_+d+"H":"")+(l?_+l+"M":"")+(h?_+h+"S":"")}var $n=Ct.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},$n.add=function(e,t){return mn(this,e,t,1)},$n.subtract=function(e,t){return mn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=L(e))||"year"===e)return t=this._days+i/864e5,n=this._months+yn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=pn,$n.asSeconds=wn,$n.asMinutes=Mn,$n.asHours=kn,$n.asDays=Dn,$n.asWeeks=Sn,$n.asMonths=Yn,$n.asYears=On,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},$n._bubble=function(){var e,t,n,i,a,s=this._milliseconds,r=this._days,o=this._months,d=this._data;return 0<=s&&0<=r&&0<=o||s<=0&&r<=0&&o<=0||(s+=864e5*_n(vn(o)+r),o=r=0),d.milliseconds=s%1e3,e=D(s/1e3),d.seconds=e%60,t=D(e/60),d.minutes=t%60,n=D(t/60),d.hours=n%24,o+=a=D(yn(r+=D(n/24))),r-=_n(vn(a)),i=D(o/12),o%=12,d.days=r,d.months=o,d.years=i,this},$n.clone=function(){return At(this)},$n.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=bn,$n.seconds=xn,$n.minutes=Cn,$n.hours=Pn,$n.days=Wn,$n.weeks=function(){return D(this.days()/7)},$n.months=Ln,$n.years=Hn,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,a,s,r,o,d,l,h,u=this.localeData(),c=(t=!e,n=u,i=At(this).abs(),a=Fn(i.as("s")),s=Fn(i.as("m")),r=Fn(i.as("h")),o=Fn(i.as("d")),d=Fn(i.as("M")),l=Fn(i.as("y")),(h=a<=Rn.ss&&["s",a]||a<Rn.s&&["ss",a]||s<=1&&["m"]||s<Rn.m&&["mm",s]||r<=1&&["h"]||r<Rn.h&&["hh",r]||o<=1&&["d"]||o<Rn.d&&["dd",o]||d<=1&&["M"]||d<Rn.M&&["MM",d]||l<=1&&["y"]||["yy",l])[2]=t,h[3]=0<+this,h[4]=n,function(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}.apply(null,h));return e&&(c=u.pastFuture(+this,c)),u.postformat(c)},$n.toISOString=En,$n.toString=En,$n.toJSON=En,$n.locale=Jt,$n.localeData=Qt,$n.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),$n.lang=Bt,G("X",0,0,"unix"),G("x",0,0,"valueOf"),de("x",ie),de("X",/[+-]?\d+(\.\d{1,3})?/),ue("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ue("x",function(e,t,n){n._d=new Date(S(e))}),g.version="2.22.2",e=Yt,g.fn=on,g.min=function(){return bt("isBefore",[].slice.call(arguments,0))},g.max=function(){return bt("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=m,g.unix=function(e){return Yt(1e3*e)},g.months=function(e,t){return un(e,t,"months")},g.isDate=u,g.locale=rt,g.invalid=y,g.duration=At,g.isMoment=k,g.weekdays=function(e,t,n){return cn(e,t,n,"weekdays")},g.parseZone=function(){return Yt.apply(null,arguments).parseZone()},g.localeData=dt,g.isDuration=Pt,g.monthsShort=function(e,t){return un(e,t,"monthsShort")},g.weekdaysMin=function(e,t,n){return cn(e,t,n,"weekdaysMin")},g.defineLocale=ot,g.updateLocale=function(e,t){if(null!=t){var n,i,a=tt;null!=(i=st(e))&&(a=i._config),(n=new C(t=x(a,t))).parentLocale=nt[e],nt[e]=n,rt(e)}else null!=nt[e]&&(null!=nt[e].parentLocale?nt[e]=nt[e].parentLocale:null!=nt[e]&&delete nt[e]);return nt[e]},g.locales=function(){return i(nt)},g.weekdaysShort=function(e,t,n){return cn(e,t,n,"weekdaysShort")},g.normalizeUnits=L,g.relativeTimeRounding=function(e){return void 0===e?Fn:"function"==typeof e&&(Fn=e,!0)},g.relativeTimeThreshold=function(e,t){return void 0!==Rn[e]&&(void 0===t?Rn[e]:(Rn[e]=t,"s"===e&&(Rn.ss=t-1),!0))},g.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},g.prototype=on,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},g}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";function t(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week.
doy:4}})}),function(){var l,a,s,n,i,r,o,d,h,u,c,f=$(".module-calendar"),t=f.find(".calendar-filter"),m=f.find(".calendar-options input[type=checkbox]"),_=f.find(".calendar-filter-top input[type=checkbox]"),y=f.find(".calendar-paging"),v=f.find(".block"),g=f.find(".list"),p=f.find(".no-event"),w=f.find(".legend"),M=f.find(".calendar-view-toggle"),k=f.find(".details"),D=[],S=!1,Y="",O="",T="DD.MM.YYYY",b="DD.MM.",x=0,C=!1,P=999,W=[],L=[],H=!1;function F(){var n="",e=moment.weekdays(!0);$(window).width()<1030&&(e=moment.weekdaysMin(!0)),$(e).each(function(e,t){n+='<div class="day"><div>'+t+"</div></div>"}),f.find(".week-day-names").html(n),k.hide(),l.hide(),t.find(".form-row").removeClass("hidden"),$(window).width(),$(".backtotop").show(),C?($("body").hasClass("briq")&&y.show(),v.hide(),g.show(),w.hide(),$("body").hasClass("iza")&&t.find(".form-group .col-md-12:last-child").hide(),w.find(".deadlines").hide(),M.find(".list-link").addClass("active"),M.find(".calendar-link").removeClass("active")):(y.hide(),v.show(),g.hide(),w.show(),$("body").hasClass("iza")&&t.find(".form-group .col-md-12:last-child").show(),w.find(".deadlines").show(),M.find(".list-link").removeClass("active"),M.find(".calendar-link").addClass("active"))}function R(e){
// console.log( $(e.target).val(), $.inArray($(e.target).val(), visibleEventList) );
if("event-deadline"===$(e.target).val())S=!S;//  ? false : true;
else{var t=$.inArray($(e.target).val(),D);-1!==t?D.splice(t,1):D.push($(e.target).val())}}function N(){
// Clear calendar
k.hide(),$(".backtotop").show(),f.find(".month .day").removeAttr("event-id"),f.find(".month .day div").removeAttr("event-id"),f.find(".month .day").removeAttr("data-deadline"),f.find(".month .day").removeClass("deadline"),f.find(".month .day").removeClass().addClass("day"),f.find(".current-date").html(moment().add(x,"months").format("MMMM YYYY")),-1===(
// Calculate month data
n=moment().add(x,"months").startOf("month").day()-1)&&(n=6),
// calculate new Month data
a=moment().add(x,"months").month(),s=moment().add(x,"months").year(),r=moment().add(x-1,"months").month(),o=moment().add(x-1,"months").year(),h=moment().add(x+1,"months").month(),u=moment().add(x+1,"months").year(),i=moment().add(x,"months").daysInMonth(),d=moment().add(x-1,"months").daysInMonth(),0===n&&(d=moment().subtract(x,"months").daysInMonth()),c=i+n,
// console.log('firstDayOfMonth, monat, daysInMonth, currentMonth');
// console.log(firstDayOfMonth, moment().add(currentMonthDelta, 'months').format('MMMM'), daysInMonth);
// console.log('lastMonth,  daysInLastMonth');
// console.log(moment().add(currentMonthDelta - 1, 'months').format('MMMM'), daysInLastMonth);
35<n+i?$(".extra-week").show():$(".extra-week").hide();
// Set day number for last month
for(var e=n-1;0<=e;e--)f.find(".month .day").eq(e).find("div").html(d-(n-e-1)),f.find(".month .day").eq(e).addClass("other-month");
// Set selected month day numbers
for(e=0;e<i;e++)f.find(".month .day").eq(n+e).find("div").html(e+1);
// Fill calendar remainig days with numbers
var t=1;for(e=c;e<42;e++)f.find(".month .day").eq(e).find("div").html(t++),f.find(".month .day").eq(e).addClass("other-month");
// Add events (if any) to calendar
$(L).each(function(e,t){0!==D.length&&-1===$.inArray(t.className,D)||S&&void 0===t.deadline||(moment(t.start).year()===o&&moment(t.start).month()===r&&moment(t.start).date()-1>d-n?function(e){
// Look for events in last month and show appropriate
var t=f.find(".month .day").eq(n-1-(d-moment(e.start).date()));t.addClass(e.className),
// Add event class to current day
void 0!==t.attr("event-id")?(t.find("div").attr("event-id",t.attr("event-id")+","+e.id),t.attr("event-id",t.attr("event-id")+","+e.id)):(t.find("div").attr("event-id",e.id),t.attr("event-id",e.id))}(t):moment(t.start).year()===s&&moment(t.start).month()===a?function(e){var t=f.find(".month .day").eq(n+moment(e.start).date()-1);t.addClass(e.className),
// Add event class to current day
void 0!==t.attr("event-id")?(t.find("div").attr("event-id",t.attr("event-id")+","+e.id),t.attr("event-id",t.attr("event-id")+","+e.id)):(t.find("div").attr("event-id",e.id),t.attr("event-id",e.id))}(t):moment(t.start).year()===u&&moment(t.start).month()===h&&moment(t.start).date()<=42-c&&function(e){
// Look for events in last month and show appropriate
var t=f.find(".month .day").eq(c+moment(e.start).date()-1);t.addClass(e.className),
// Add event class to current day
void 0!==t.attr("event-id")?(t.find("div").attr("event-id",t.attr("event-id")+","+e.id),t.attr("event-id",t.attr("event-id")+","+e.id)):(t.find("div").attr("event-id",e.id),t.attr("event-id",e.id))}
/* Get event type, either mouse or touche event */(t))}),$(L).each(function(e,t){0!==D.length&&-1===$.inArray(t.className,D)||S&&void 0===t.deadline||void 0!==t.deadline&&function(e){var t=void 0;
// deadline in past
moment(e.deadline).year()===s&&moment(e.deadline).month()===a?t=f.find(".month .day").eq(n+moment(e.deadline).date()-1):moment(e.deadline).year()===o&&moment(e.deadline).month()===r&&moment(e.deadline).date()>d-n?t=f.find(".month .day").eq(n-1-(d-moment(e.deadline).date())):moment(e.deadline).year()===u&&moment(e.deadline).month()===h&&moment(e.deadline).date()<=42-c&&(t=f.find(".month .day").eq(c+moment(e.deadline).date()-1)),void 0!==t&&(t.hasClass("deadline")?void 0===t.attr("data-deadline")?-1===$.inArray(""+e.id,t.attr("deadline-id").split(","))&&(t.attr("data-deadline",2),t.find("div").attr("deadline-id",t.attr("deadline-id")+","+e.id),t.attr("deadline-id",t.attr("deadline-id")+","+e.id)):-1===$.inArray(""+e.id,t.attr("deadline-id").split(","))&&(t.find("div").attr("deadline-id",t.attr("deadline-id")+","+e.id),t.attr("deadline-id",t.attr("deadline-id")+","+e.id),t.attr("data-deadline",parseInt(t.attr("data-deadline"))+1)):(t.addClass("deadline"),void 0!==t.attr("deadline-id")?-1===$.inArray(""+e.id,t.attr("deadline-id").split(","))&&(t.find("div").attr("deadline-id",t.attr("deadline-id")+","+e.id),t.attr("deadline-id",t.attr("deadline-id")+","+e.id)):(t.find("div").attr("deadline-id",e.id),t.attr("deadline-id",e.id))))}(t)}),function(){var n=[],i=[];$(L).each(function(e,t){(0===D.length||-1!==$.inArray(t.className,D))&&moment(t.start).year()===s&&moment(t.start).month()===a?(t.joinEvents=!1,0===i.length?i.push(t):moment(t.start).month()===moment(i[i.length-1].start).month()&&moment(t.start).format("D")===moment(i[i.length-1].start).format("D")?(i.push(t),t.joinEvents=!0):i=[],n.push(t)):i=[]}),0===n.length?(w.hide(),p.show()):(w.show(),p.hide());
//Prevent to show the legend when toggleing between moths in the list mode:
(function(e){var s="",r=[];
// Fill details Layer
$(e).each(function(e,t){if(-1===$.inArray(t.id,r)&&e<P){r.push(t.id);var n=O;t.joinEvents&&(n=n.replace("event row","event row join-events")),n=(n=n.replace("[[type]]",t.className)).replace("[[title]]",t.title+(-1==top.location.search.indexOf("iodebug")?"":" "+t.id));var i=t.start;null!=t.oldStart&&(i=t.oldStart);var a=moment(i).format(T);void 0!==t.end&&(a=moment(i).format(b+" - ")+moment(t.end).format(T)),n=(n=(n=(n=(n=t.joinEvents?n.replace("[[start]]"," "):n.replace("[[start]]",a)).replace("[[location]]",t.location)).replace("[[deadline]]",moment(t.deadline).format(T))).replace("[[deadline-visible]]",t.deadline?"visible":"")).replace("[[href]]",t.detailsPage),s+=n}}),g.html(s)})(n),C?w.hide():w.show()}()}function U(e){return void 0!==e.originalEvent.touches||void 0!==e.originalEvent.changedTouches?e.originalEvent.touches[0]||e.originalEvent.changedTouches[0]:e}function E(e,t,n){var s="";
// Fill details Layer
$(W).each(function(e,a){$(t).each(function(e,t){if(a.id===parseInt(t)){var n=Y;n=(n=n.replace("[[type]]",a.className)).replace("[[title]]",a.title+" "+a.id);var i=moment(a.start).format(T);void 0!==a.end&&(i=moment(a.start).format(b+" - ")+moment(a.end).format(T)),n=(n=(n=(n=(n=n.replace("[[start]]",i)).replace("[[location]]",a.location)).replace("[[deadline]]",moment(a.deadline).format(T))).replace("[[deadline-visible]]",a.deadline?"visible":"")).replace("[[href]]",a.detailsPage),s+=n}})}),!n&&2<t.length?f.find(".details .data").addClass("scrollbar"):f.find(".details .data").removeClass("scrollbar"),f.find(".details .data").html(s),k.show(),$(".backtotop").hide(),f.find(".details .data").height("auto"),768<=$(window).width()?f.find(".details .data").height(k.height()+5):f.find(".details .data").height("230px");
// position detail layer
var i="top-left",a=e.width()/2-50,r=e.width()/2+25;n||(a=e.width()/2-50+(e.width()/2-20),r=45);var o=(e.width()+5)*(f.find(".month .day").index(e)%7)+a,d=Math.floor(f.find(".month .day").index(e)/7)*(e.width()+5)+r;13<f.find(".month .day").index(e)?(d=d-k.height()-40-50,// 40 padding .details, 50 space arrow number
i="bottom-left",4<f.find(".month .day").index(e)%7&&(i="bottom-right",o=o-k.width()+80)):4<f.find(".month .day").index(e)%7&&(o=o-k.width()+80,i="top-right"),768<=$(window).width()?(k.css({top:d,left:o}),l.hide()):(k.css({top:"",left:""}),l.show()),k.removeClass().addClass("details"),k.addClass(i)}"function"==typeof moment&&($("body").hasClass("briq")?(moment.locale("en"),T="MM/DD/YYYY",b="MM/DD"):moment.locale(document.documentElement.lang),f.find(".calendar-options input[type=checkbox]:checked").each(function(e,t){
// console.log(':checked', $(e).val());
D.push($(t).val())}),O=f.find(".event-list-template").html(),$("header").append('<div class="calendar-overlay"></div>'),l=$(".calendar-overlay"),F(),$(window).resize(F),function(){$.ajaxSetup({dataType:"json"});var e="/scripts/json-data/event_data.json";$("body").hasClass("briq")&&(e="/scripts/json-data/event_data-briq.json"),$.get(e).done(function(e){!function(e){$(e).each(function(e,t){if(t.id=e,L.push(t),void 0!==t.end){var n=moment(t.start).date(),i=moment(t.end).date(),a=i-n;
//console.log(eventLength);
a<0&&(a=moment(t.start).daysInMonth()-n+i);
//console.log('eventLength', eventLength, e.start, e.location);
for(var s=1;s<=a;s++){var r=JSON.parse(JSON.stringify(t)),o=moment.duration({days:s});r.start=moment(r.start).add(o).format("YYYY-MM-DD"),r.oldStart=t.start,L.push(r)}}}),
// console.log('Extpand events', events);
N()}((W=e).sort(function(e,t){return new Date(e.start).getTime()-new Date(t.start).getTime()}))}).fail(function(e){})}(),M.find(".list-link").click(function(e){e.preventDefault(),C=!0,$("body").hasClass("briq")&&y.show(),$(this).toggleClass("active"),M.find(".calendar-link").toggleClass("active"),F()}),M.find(".calendar-link").click(function(e){e.preventDefault(),C=!1,$(this).toggleClass("active"),y.hide(),M.find(".list-link").toggleClass("active"),F()}),f.find(".next-month").click(function(e){e.preventDefault(),x++,N()}),f.find(".previous-month").click(function(e){e.preventDefault(),x--,N()}),l.click(function(e){e.preventDefault(),k.hide(),l.hide(),t.find(".form-row").removeClass("hidden"),$(".backtotop").show()}),f.find(".close-icon").click(function(e){e.preventDefault(),k.hide(),l.hide(),$(".backtotop").show()}),f.find(".month .day").click(function(e){e.preventDefault(),k.hide(),$(".backtotop").show();var t=$(e.target);if(t.hasClass("day")||(t=t.parent()),959<$(window).width()&&t.hasClass("deadline")&&U(e).pageX-t.offset().left>t.width()-40&&U(e).pageY-t.offset().top<40){var n=t.attr("deadline-id").split(",");Y=f.find(".deadline-details-template").html(),E(t,n,!1)}else void 0!==t.attr("event-id")&&(n=t.attr("event-id").split(","),Y=f.find(".event-details-template").html(),E(t,n,!0))}),y.find("a").click(function(e){e.preventDefault(),y.find("a").removeClass("active"),$(this).addClass("active"),P=parseInt($(this).attr("data-calendar-paging")),N()}),t.find("h3").click(function(){$(window).width()<768&&
// $calendatOverlay.show();
// $calendarFilter.find('.form-row').addClass('hidden');
// $('.backtotop').hide();
t.find(".calendar-filter-list").toggle()}),t.find(".calendar-filter-header span").click(function(){l.hide(),t.find(".form-row").toggleClass("hidden"),$(".backtotop").show()}),m.change(function(e){if(e.preventDefault(),H)return H=!1;H=!0,R(e),f.find(".calendar-filter-top .filter-hint").eq(m.index(this)).toggle(),f.find(".calendar-filter-top input[type=checkbox]").eq(m.index(this)).click(),N()}),_.change(function(e){if(e.preventDefault(),H)return H=!1;H=!0,R(e),$(this).closest(".col-md-12").next(".filter-hint").toggle(),f.find(".calendar-options input[type=checkbox]").eq(_.index(this)).click(),N()}))}();