UNPKG

jalali-moment

Version:

Manipulate and convert Jalali and Gregorian date easily

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