UNPKG

reactjs-datetime-range-picker

Version:

ReactJS datetime range picker with daily, weekly, monthly, quarterly & yearly levels

30 lines 102 kB
(function(Te,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Q):(Te=typeof globalThis<"u"?globalThis:Te||self,Q(Te["reactjs-datetime-range-picker"]={},Te.React))})(this,function(Te,Q){"use strict";var Da={exports:{}},dt={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ur;function Es(){if(ur)return dt;ur=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,s,n){var i=null;if(n!==void 0&&(i=""+n),s.key!==void 0&&(i=""+s.key),"key"in s){n={};for(var o in s)o!=="key"&&(n[o]=s[o])}else n=s;return s=n.ref,{$$typeof:e,type:r,key:i,ref:s!==void 0?s:null,props:n}}return dt.Fragment=t,dt.jsx=a,dt.jsxs=a,dt}var ct={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var dr;function Ps(){return dr||(dr=1,process.env.NODE_ENV!=="production"&&function(){function e(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Je?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case I:return"Fragment";case te:return"Profiler";case V:return"StrictMode";case oe:return"Suspense";case B:return"SuspenseList";case $e:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case k:return"Portal";case K:return(c.displayName||"Context")+".Provider";case ae:return(c._context.displayName||"Context")+".Consumer";case re:var Y=c.render;return c=c.displayName,c||(c=Y.displayName||Y.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case ee:return Y=c.displayName||null,Y!==null?Y:e(c.type)||"Memo";case se:Y=c._payload,c=c._init;try{return e(c(Y))}catch{}}return null}function t(c){return""+c}function a(c){try{t(c);var Y=!1}catch{Y=!0}if(Y){Y=console;var A=Y.error,Z=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return A.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),t(c)}}function r(c){if(c===I)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===se)return"<...>";try{var Y=e(c);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function s(){var c=ot.A;return c===null?null:c.getOwner()}function n(){return Error("react-stack-top-frame")}function i(c){if(Mt.call(c,"key")){var Y=Object.getOwnPropertyDescriptor(c,"key").get;if(Y&&Y.isReactWarning)return!1}return c.key!==void 0}function o(c,Y){function A(){gt||(gt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}A.isReactWarning=!0,Object.defineProperty(c,"key",{get:A,configurable:!0})}function d(){var c=e(this.type);return Yt[c]||(Yt[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function h(c,Y,A,Z,Me,he,J,we){return A=he.ref,c={$$typeof:y,type:c,key:Y,props:he,_owner:Me},(A!==void 0?A:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:d}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function m(c,Y,A,Z,Me,he,J,we){var q=Y.children;if(q!==void 0)if(Z)if(ca(q)){for(Z=0;Z<q.length;Z++)D(q[Z]);Object.freeze&&Object.freeze(q)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else D(q);if(Mt.call(Y,"key")){q=e(c);var Ue=Object.keys(Y).filter(function(ar){return ar!=="key"});Z=0<Ue.length?"{key: someKey, "+Ue.join(": ..., ")+": ...}":"{key: someKey}",Nt[q+Z]||(Ue=0<Ue.length?"{"+Ue.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,Z,q,Ue,q),Nt[q+Z]=!0)}if(q=null,A!==void 0&&(a(A),q=""+A),i(Y)&&(a(Y.key),q=""+Y.key),"key"in Y){A={};for(var Rt in Y)Rt!=="key"&&(A[Rt]=Y[Rt])}else A=Y;return q&&o(A,typeof c=="function"?c.displayName||c.name||"Unknown":c),h(c,q,he,Me,s(),A,J,we)}function D(c){typeof c=="object"&&c!==null&&c.$$typeof===y&&c._store&&(c._store.validated=1)}var v=Q,y=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),K=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),$e=Symbol.for("react.activity"),Je=Symbol.for("react.client.reference"),ot=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mt=Object.prototype.hasOwnProperty,ca=Array.isArray,ut=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(c){return c()}};var gt,Yt={},bt=v["react-stack-bottom-frame"].bind(v,n)(),xt=ut(r(n)),Nt={};ct.Fragment=I,ct.jsx=function(c,Y,A,Z,Me){var he=1e4>ot.recentlyCreatedOwnerStacks++;return m(c,Y,A,!1,Z,Me,he?Error("react-stack-top-frame"):bt,he?ut(r(c)):xt)},ct.jsxs=function(c,Y,A,Z,Me){var he=1e4>ot.recentlyCreatedOwnerStacks++;return m(c,Y,A,!0,Z,Me,he?Error("react-stack-top-frame"):bt,he?ut(r(c)):xt)}}()),ct}process.env.NODE_ENV==="production"?Da.exports=Es():Da.exports=Ps();var w=Da.exports;//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var cr;function l(){return cr.apply(null,arguments)}function Cs(e){cr=e}function me(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ge(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function va(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(C(e,t))return!1;return!0}function ne(e){return e===void 0}function ge(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ft(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function fr(e,t){var a=[],r,s=e.length;for(r=0;r<s;++r)a.push(t(e[r],r));return a}function We(e,t){for(var a in t)C(t,a)&&(e[a]=t[a]);return C(t,"toString")&&(e.toString=t.toString),C(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _e(e,t,a,r){return jr(e,t,a,r,!0).utc()}function Fs(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return e._pf==null&&(e._pf=Fs()),e._pf}var pa;Array.prototype.some?pa=Array.prototype.some:pa=function(e){var t=Object(this),a=t.length>>>0,r;for(r=0;r<a;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function wa(e){var t=null,a=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=g(e),a=pa.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Ft(e){var t=_e(NaN);return e!=null?We(g(t),e):g(t).userInvalidated=!0,t}var hr=l.momentProperties=[],Ta=!1;function _a(e,t){var a,r,s,n=hr.length;if(ne(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ne(t._i)||(e._i=t._i),ne(t._f)||(e._f=t._f),ne(t._l)||(e._l=t._l),ne(t._strict)||(e._strict=t._strict),ne(t._tzm)||(e._tzm=t._tzm),ne(t._isUTC)||(e._isUTC=t._isUTC),ne(t._offset)||(e._offset=t._offset),ne(t._pf)||(e._pf=g(t)),ne(t._locale)||(e._locale=t._locale),n>0)for(a=0;a<n;a++)r=hr[a],s=t[r],ne(s)||(e[r]=s);return e}function ht(e){_a(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ta===!1&&(Ta=!0,l.updateOffset(this),Ta=!1)}function ye(e){return e instanceof ht||e!=null&&e._isAMomentObject!=null}function mr(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ue(e,t){var a=!0;return We(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),a){var r=[],s,n,i,o=arguments.length;for(n=0;n<o;n++){if(s="",typeof arguments[n]=="object"){s+=` [`+n+"] ";for(i in arguments[0])C(arguments[0],i)&&(s+=i+": "+arguments[0][i]+", ");s=s.slice(0,-2)}else s=arguments[n];r.push(s)}mr(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),a=!1}return t.apply(this,arguments)},t)}var yr={};function Dr(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),yr[e]||(mr(t),yr[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function ke(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function As(e){var t,a;for(a in e)C(e,a)&&(t=e[a],ke(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ka(e,t){var a=We({},e),r;for(r in t)C(t,r)&&(Ge(e[r])&&Ge(t[r])?(a[r]={},We(a[r],e[r]),We(a[r],t[r])):t[r]!=null?a[r]=t[r]:delete a[r]);for(r in e)C(e,r)&&!C(t,r)&&Ge(e[r])&&(a[r]=We({},a[r]));return a}function Sa(e){e!=null&&this.set(e)}var Oa;Object.keys?Oa=Object.keys:Oa=function(e){var t,a=[];for(t in e)C(e,t)&&a.push(t);return a};var Ws={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Is(e,t,a){var r=this._calendar[e]||this._calendar.sameElse;return ke(r)?r.call(t,a):r}function Se(e,t,a){var r=""+Math.abs(e),s=t-r.length,n=e>=0;return(n?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var Ma=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,At=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ga={},Qe={};function S(e,t,a,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(Qe[e]=s),t&&(Qe[t[0]]=function(){return Se(s.apply(this,arguments),t[1],t[2])}),a&&(Qe[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function js(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ls(e){var t=e.match(Ma),a,r;for(a=0,r=t.length;a<r;a++)Qe[t[a]]?t[a]=Qe[t[a]]:t[a]=js(t[a]);return function(s){var n="",i;for(i=0;i<r;i++)n+=ke(t[i])?t[i].call(s,e):t[i];return n}}function Wt(e,t){return e.isValid()?(t=vr(t,e.localeData()),ga[t]=ga[t]||Ls(t),ga[t](e)):e.localeData().invalidDate()}function vr(e,t){var a=5;function r(s){return t.longDateFormat(s)||s}for(At.lastIndex=0;a>=0&&At.test(e);)e=e.replace(At,r),At.lastIndex=0,a-=1;return e}var $s={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"};function Us(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Ma).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Hs="Invalid date";function Vs(){return this._invalidDate}var Gs="%d",zs=/\d{1,2}/;function Zs(e){return this._ordinal.replace("%d",e)}var qs={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Bs(e,t,a,r){var s=this._relativeTime[a];return ke(s)?s(e,t,a,r):s.replace(/%d/i,e)}function Js(e,t){var a=this._relativeTime[e>0?"future":"past"];return ke(a)?a(t):a.replace(/%s/i,t)}var pr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function de(e){return typeof e=="string"?pr[e]||pr[e.toLowerCase()]:void 0}function Ya(e){var t={},a,r;for(r in e)C(e,r)&&(a=de(r),a&&(t[a]=e[r]));return t}var Qs={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Xs(e){var t=[],a;for(a in e)C(e,a)&&t.push({unit:a,priority:Qs[a]});return t.sort(function(r,s){return r.priority-s.priority}),t}var wr=/\d/,ie=/\d\d/,Tr=/\d{3}/,ba=/\d{4}/,It=/[+-]?\d{6}/,j=/\d\d?/,_r=/\d\d\d\d?/,kr=/\d\d\d\d\d\d?/,jt=/\d{1,3}/,xa=/\d{1,4}/,Lt=/[+-]?\d{1,6}/,Xe=/\d+/,$t=/[+-]?\d+/,Ks=/Z|[+-]\d\d:?\d\d/gi,Ut=/Z|[+-]\d\d(?::?\d\d)?/gi,en=/[+-]?\d+(\.\d{1,3})?/,mt=/[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,Ke=/^[1-9]\d?/,Na=/^([1-9]\d|\d)/,Ht;Ht={};function p(e,t,a){Ht[e]=ke(t)?t:function(r,s){return r&&a?a:t}}function tn(e,t){return C(Ht,e)?Ht[e](t._strict,t._locale):new RegExp(an(e))}function an(e){return Ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,a,r,s,n){return a||r||s||n}))}function Ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function R(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=ce(t)),a}var Ra={};function W(e,t){var a,r=t,s;for(typeof e=="string"&&(e=[e]),ge(t)&&(r=function(n,i){i[t]=R(n)}),s=e.length,a=0;a<s;a++)Ra[e[a]]=r}function yt(e,t){W(e,function(a,r,s,n){s._w=s._w||{},t(a,s._w,s,n)})}function rn(e,t,a){t!=null&&C(Ra,e)&&Ra[e](t,a._a,a,e)}function Vt(e){return e%4===0&&e%100!==0||e%400===0}var X=0,be=1,Oe=2,G=3,De=4,xe=5,ze=6,sn=7,nn=8;S("Y",0,0,function(){var e=this.year();return e<=9999?Se(e,4):"+"+e}),S(0,["YY",2],0,function(){return this.year()%100}),S(0,["YYYY",4],0,"year"),S(0,["YYYYY",5],0,"year"),S(0,["YYYYYY",6,!0],0,"year"),p("Y",$t),p("YY",j,ie),p("YYYY",xa,ba),p("YYYYY",Lt,It),p("YYYYYY",Lt,It),W(["YYYYY","YYYYYY"],X),W("YYYY",function(e,t){t[X]=e.length===2?l.parseTwoDigitYear(e):R(e)}),W("YY",function(e,t){t[X]=l.parseTwoDigitYear(e)}),W("Y",function(e,t){t[X]=parseInt(e,10)});function Dt(e){return Vt(e)?366:365}l.parseTwoDigitYear=function(e){return R(e)+(R(e)>68?1900:2e3)};var Sr=et("FullYear",!0);function ln(){return Vt(this.year())}function et(e,t){return function(a){return a!=null?(Or(this,e,a),l.updateOffset(this,t),this):vt(this,e)}}function vt(e,t){if(!e.isValid())return NaN;var a=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return r?a.getUTCSeconds():a.getSeconds();case"Minutes":return r?a.getUTCMinutes():a.getMinutes();case"Hours":return r?a.getUTCHours():a.getHours();case"Date":return r?a.getUTCDate():a.getDate();case"Day":return r?a.getUTCDay():a.getDay();case"Month":return r?a.getUTCMonth():a.getMonth();case"FullYear":return r?a.getUTCFullYear():a.getFullYear();default:return NaN}}function Or(e,t,a){var r,s,n,i,o;if(!(!e.isValid()||isNaN(a))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(a):r.setMilliseconds(a));case"Seconds":return void(s?r.setUTCSeconds(a):r.setSeconds(a));case"Minutes":return void(s?r.setUTCMinutes(a):r.setMinutes(a));case"Hours":return void(s?r.setUTCHours(a):r.setHours(a));case"Date":return void(s?r.setUTCDate(a):r.setDate(a));case"FullYear":break;default:return}n=a,i=e.month(),o=e.date(),o=o===29&&i===1&&!Vt(n)?28:o,s?r.setUTCFullYear(n,i,o):r.setFullYear(n,i,o)}}function on(e){return e=de(e),ke(this[e])?this[e]():this}function un(e,t){if(typeof e=="object"){e=Ya(e);var a=Xs(e),r,s=a.length;for(r=0;r<s;r++)this[a[r].unit](e[a[r].unit])}else if(e=de(e),ke(this[e]))return this[e](t);return this}function dn(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ea(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=dn(t,12);return e+=(t-a)/12,a===1?Vt(e)?29:28:31-a%7%2}S("M",["MM",2],"Mo",function(){return this.month()+1}),S("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),S("MMMM",0,0,function(e){return this.localeData().months(this,e)}),p("M",j,Ke),p("MM",j,ie),p("MMM",function(e,t){return t.monthsShortRegex(e)}),p("MMMM",function(e,t){return t.monthsRegex(e)}),W(["M","MM"],function(e,t){t[be]=R(e)-1}),W(["MMM","MMMM"],function(e,t,a,r){var s=a._locale.monthsParse(e,r,a._strict);s!=null?t[be]=s:g(a).invalidMonth=e});var cn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fn=mt,hn=mt;function mn(e,t){return e?me(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||gr).test(t)?"format":"standalone"][e.month()]:me(this._months)?this._months:this._months.standalone}function yn(e,t){return e?me(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[gr.test(t)?"format":"standalone"][e.month()]:me(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Dn(e,t,a){var r,s,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=_e([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return a?t==="MMM"?(s=H.call(this._shortMonthsParse,i),s!==-1?s:null):(s=H.call(this._longMonthsParse,i),s!==-1?s:null):t==="MMM"?(s=H.call(this._shortMonthsParse,i),s!==-1?s:(s=H.call(this._longMonthsParse,i),s!==-1?s:null)):(s=H.call(this._longMonthsParse,i),s!==-1?s:(s=H.call(this._shortMonthsParse,i),s!==-1?s:null))}function vn(e,t,a){var r,s,n;if(this._monthsParseExact)return Dn.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=_e([2e3,r]),a&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!a&&!this._monthsParse[r]&&(n="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),a&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(a&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!a&&this._monthsParse[r].test(e))return r}}function Yr(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=R(t);else if(t=e.localeData().monthsParse(t),!ge(t))return e}var a=t,r=e.date();return r=r<29?r:Math.min(r,Ea(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,r):e._d.setMonth(a,r),e}function br(e){return e!=null?(Yr(this,e),l.updateOffset(this,!0),this):vt(this,"Month")}function pn(){return Ea(this.year(),this.month())}function wn(e){return this._monthsParseExact?(C(this,"_monthsRegex")||xr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(C(this,"_monthsShortRegex")||(this._monthsShortRegex=fn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Tn(e){return this._monthsParseExact?(C(this,"_monthsRegex")||xr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(C(this,"_monthsRegex")||(this._monthsRegex=hn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function xr(){function e(d,h){return h.length-d.length}var t=[],a=[],r=[],s,n,i,o;for(s=0;s<12;s++)n=_e([2e3,s]),i=Ye(this.monthsShort(n,"")),o=Ye(this.months(n,"")),t.push(i),a.push(o),r.push(o),r.push(i);t.sort(e),a.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function _n(e,t,a,r,s,n,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,a,r,s,n,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,a,r,s,n,i),o}function pt(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Gt(e,t,a){var r=7+t-a,s=(7+pt(e,0,r).getUTCDay()-t)%7;return-s+r-1}function Nr(e,t,a,r,s){var n=(7+a-r)%7,i=Gt(e,r,s),o=1+7*(t-1)+n+i,d,h;return o<=0?(d=e-1,h=Dt(d)+o):o>Dt(e)?(d=e+1,h=o-Dt(e)):(d=e,h=o),{year:d,dayOfYear:h}}function wt(e,t,a){var r=Gt(e.year(),t,a),s=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return s<1?(i=e.year()-1,n=s+Ne(i,t,a)):s>Ne(e.year(),t,a)?(n=s-Ne(e.year(),t,a),i=e.year()+1):(i=e.year(),n=s),{week:n,year:i}}function Ne(e,t,a){var r=Gt(e,t,a),s=Gt(e+1,t,a);return(Dt(e)-r+s)/7}S("w",["ww",2],"wo","week"),S("W",["WW",2],"Wo","isoWeek"),p("w",j,Ke),p("ww",j,ie),p("W",j,Ke),p("WW",j,ie),yt(["w","ww","W","WW"],function(e,t,a,r){t[r.substr(0,1)]=R(e)});function kn(e){return wt(e,this._week.dow,this._week.doy).week}var Sn={dow:0,doy:6};function On(){return this._week.dow}function Mn(){return this._week.doy}function gn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Yn(e){var t=wt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}S("d",0,"do","day"),S("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),S("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),S("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),S("e",0,0,"weekday"),S("E",0,0,"isoWeekday"),p("d",j),p("e",j),p("E",j),p("dd",function(e,t){return t.weekdaysMinRegex(e)}),p("ddd",function(e,t){return t.weekdaysShortRegex(e)}),p("dddd",function(e,t){return t.weekdaysRegex(e)}),yt(["dd","ddd","dddd"],function(e,t,a,r){var s=a._locale.weekdaysParse(e,r,a._strict);s!=null?t.d=s:g(a).invalidWeekday=e}),yt(["d","e","E"],function(e,t,a,r){t[r]=R(e)});function bn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function xn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pa(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Nn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),En=mt,Pn=mt,Cn=mt;function Fn(e,t){var a=me(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Pa(a,this._week.dow):e?a[e.day()]:a}function An(e){return e===!0?Pa(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Wn(e){return e===!0?Pa(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function In(e,t,a){var r,s,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=_e([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return a?t==="dddd"?(s=H.call(this._weekdaysParse,i),s!==-1?s:null):t==="ddd"?(s=H.call(this._shortWeekdaysParse,i),s!==-1?s:null):(s=H.call(this._minWeekdaysParse,i),s!==-1?s:null):t==="dddd"?(s=H.call(this._weekdaysParse,i),s!==-1||(s=H.call(this._shortWeekdaysParse,i),s!==-1)?s:(s=H.call(this._minWeekdaysParse,i),s!==-1?s:null)):t==="ddd"?(s=H.call(this._shortWeekdaysParse,i),s!==-1||(s=H.call(this._weekdaysParse,i),s!==-1)?s:(s=H.call(this._minWeekdaysParse,i),s!==-1?s:null)):(s=H.call(this._minWeekdaysParse,i),s!==-1||(s=H.call(this._weekdaysParse,i),s!==-1)?s:(s=H.call(this._shortWeekdaysParse,i),s!==-1?s:null))}function jn(e,t,a){var r,s,n;if(this._weekdaysParseExact)return In.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=_e([2e3,1]).day(r),a&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(a&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(a&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!a&&this._weekdaysParse[r].test(e))return r}}function Ln(e){if(!this.isValid())return e!=null?this:NaN;var t=vt(this,"Day");return e!=null?(e=bn(e,this.localeData()),this.add(e-t,"d")):t}function $n(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Un(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=xn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Hn(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||Ca.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(C(this,"_weekdaysRegex")||(this._weekdaysRegex=En),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vn(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||Ca.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(C(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gn(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||Ca.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(C(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Cn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ca(){function e(m,D){return D.length-m.length}var t=[],a=[],r=[],s=[],n,i,o,d,h;for(n=0;n<7;n++)i=_e([2e3,1]).day(n),o=Ye(this.weekdaysMin(i,"")),d=Ye(this.weekdaysShort(i,"")),h=Ye(this.weekdays(i,"")),t.push(o),a.push(d),r.push(h),s.push(o),s.push(d),s.push(h);t.sort(e),a.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Fa(){return this.hours()%12||12}function zn(){return this.hours()||24}S("H",["HH",2],0,"hour"),S("h",["hh",2],0,Fa),S("k",["kk",2],0,zn),S("hmm",0,0,function(){return""+Fa.apply(this)+Se(this.minutes(),2)}),S("hmmss",0,0,function(){return""+Fa.apply(this)+Se(this.minutes(),2)+Se(this.seconds(),2)}),S("Hmm",0,0,function(){return""+this.hours()+Se(this.minutes(),2)}),S("Hmmss",0,0,function(){return""+this.hours()+Se(this.minutes(),2)+Se(this.seconds(),2)});function Er(e,t){S(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Er("a",!0),Er("A",!1);function Pr(e,t){return t._meridiemParse}p("a",Pr),p("A",Pr),p("H",j,Na),p("h",j,Ke),p("k",j,Ke),p("HH",j,ie),p("hh",j,ie),p("kk",j,ie),p("hmm",_r),p("hmmss",kr),p("Hmm",_r),p("Hmmss",kr),W(["H","HH"],G),W(["k","kk"],function(e,t,a){var r=R(e);t[G]=r===24?0:r}),W(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),W(["h","hh"],function(e,t,a){t[G]=R(e),g(a).bigHour=!0}),W("hmm",function(e,t,a){var r=e.length-2;t[G]=R(e.substr(0,r)),t[De]=R(e.substr(r)),g(a).bigHour=!0}),W("hmmss",function(e,t,a){var r=e.length-4,s=e.length-2;t[G]=R(e.substr(0,r)),t[De]=R(e.substr(r,2)),t[xe]=R(e.substr(s)),g(a).bigHour=!0}),W("Hmm",function(e,t,a){var r=e.length-2;t[G]=R(e.substr(0,r)),t[De]=R(e.substr(r))}),W("Hmmss",function(e,t,a){var r=e.length-4,s=e.length-2;t[G]=R(e.substr(0,r)),t[De]=R(e.substr(r,2)),t[xe]=R(e.substr(s))});function Zn(e){return(e+"").toLowerCase().charAt(0)==="p"}var qn=/[ap]\.?m?\.?/i,Bn=et("Hours",!0);function Jn(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var Cr={calendar:Ws,longDateFormat:$s,invalidDate:Hs,ordinal:Gs,dayOfMonthOrdinalParse:zs,relativeTime:qs,months:cn,monthsShort:Mr,week:Sn,weekdays:Nn,weekdaysMin:Rn,weekdaysShort:Rr,meridiemParse:qn},$={},Tt={},_t;function Qn(e,t){var a,r=Math.min(e.length,t.length);for(a=0;a<r;a+=1)if(e[a]!==t[a])return a;return r}function Fr(e){return e&&e.toLowerCase().replace("_","-")}function Xn(e){for(var t=0,a,r,s,n;t<e.length;){for(n=Fr(e[t]).split("-"),a=n.length,r=Fr(e[t+1]),r=r?r.split("-"):null;a>0;){if(s=zt(n.slice(0,a).join("-")),s)return s;if(r&&r.length>=a&&Qn(n,r)>=a-1)break;a--}t++}return _t}function Kn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function zt(e){var t=null,a;if($[e]===void 0&&typeof module<"u"&&module&&module.exports&&Kn(e))try{t=_t._abbr,a=require,a("./locale/"+e),Ie(t)}catch{$[e]=null}return $[e]}function Ie(e,t){var a;return e&&(ne(t)?a=Re(e):a=Aa(e,t),a?_t=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),_t._abbr}function Aa(e,t){if(t!==null){var a,r=Cr;if(t.abbr=e,$[e]!=null)Dr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=$[e]._config;else if(t.parentLocale!=null)if($[t.parentLocale]!=null)r=$[t.parentLocale]._config;else if(a=zt(t.parentLocale),a!=null)r=a._config;else return Tt[t.parentLocale]||(Tt[t.parentLocale]=[]),Tt[t.parentLocale].push({name:e,config:t}),null;return $[e]=new Sa(ka(r,t)),Tt[e]&&Tt[e].forEach(function(s){Aa(s.name,s.config)}),Ie(e),$[e]}else return delete $[e],null}function ei(e,t){if(t!=null){var a,r,s=Cr;$[e]!=null&&$[e].parentLocale!=null?$[e].set(ka($[e]._config,t)):(r=zt(e),r!=null&&(s=r._config),t=ka(s,t),r==null&&(t.abbr=e),a=new Sa(t),a.parentLocale=$[e],$[e]=a),Ie(e)}else $[e]!=null&&($[e].parentLocale!=null?($[e]=$[e].parentLocale,e===Ie()&&Ie(e)):$[e]!=null&&delete $[e]);return $[e]}function Re(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return _t;if(!me(e)){if(t=zt(e),t)return t;e=[e]}return Xn(e)}function ti(){return Oa($)}function Wa(e){var t,a=e._a;return a&&g(e).overflow===-2&&(t=a[be]<0||a[be]>11?be:a[Oe]<1||a[Oe]>Ea(a[X],a[be])?Oe:a[G]<0||a[G]>24||a[G]===24&&(a[De]!==0||a[xe]!==0||a[ze]!==0)?G:a[De]<0||a[De]>59?De:a[xe]<0||a[xe]>59?xe:a[ze]<0||a[ze]>999?ze:-1,g(e)._overflowDayOfYear&&(t<X||t>Oe)&&(t=Oe),g(e)._overflowWeeks&&t===-1&&(t=sn),g(e)._overflowWeekday&&t===-1&&(t=nn),g(e).overflow=t),e}var ai=/^\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)?)?$/,ri=/^\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)?)?$/,si=/Z|[+-]\d\d(?::?\d\d)?/,Zt=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ia=[["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/]],ni=/^\/?Date\((-?\d+)/i,ii=/^(?:(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}))$/,li={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ar(e){var t,a,r=e._i,s=ai.exec(r)||ri.exec(r),n,i,o,d,h=Zt.length,m=Ia.length;if(s){for(g(e).iso=!0,t=0,a=h;t<a;t++)if(Zt[t][1].exec(s[1])){i=Zt[t][0],n=Zt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(s[3]){for(t=0,a=m;t<a;t++)if(Ia[t][1].exec(s[3])){o=(s[2]||" ")+Ia[t][0];break}if(o==null){e._isValid=!1;return}}if(!n&&o!=null){e._isValid=!1;return}if(s[4])if(si.exec(s[4]))d="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(d||""),La(e)}else e._isValid=!1}function oi(e,t,a,r,s,n){var i=[ui(e),Mr.indexOf(t),parseInt(a,10),parseInt(r,10),parseInt(s,10)];return n&&i.push(parseInt(n,10)),i}function ui(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function di(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ci(e,t,a){if(e){var r=Rr.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return g(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function fi(e,t,a){if(e)return li[e];if(t)return 0;var r=parseInt(a,10),s=r%100,n=(r-s)/100;return n*60+s}function Wr(e){var t=ii.exec(di(e._i)),a;if(t){if(a=oi(t[4],t[3],t[2],t[5],t[6],t[7]),!ci(t[1],a,e))return;e._a=a,e._tzm=fi(t[8],t[9],t[10]),e._d=pt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function hi(e){var t=ni.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ar(e),e._isValid===!1)delete e._isValid;else return;if(Wr(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=ue("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function tt(e,t,a){return e??t??a}function mi(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ja(e){var t,a,r=[],s,n,i;if(!e._d){for(s=mi(e),e._w&&e._a[Oe]==null&&e._a[be]==null&&yi(e),e._dayOfYear!=null&&(i=tt(e._a[X],s[X]),(e._dayOfYear>Dt(i)||e._dayOfYear===0)&&(g(e)._overflowDayOfYear=!0),a=pt(i,0,e._dayOfYear),e._a[be]=a.getUTCMonth(),e._a[Oe]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[G]===24&&e._a[De]===0&&e._a[xe]===0&&e._a[ze]===0&&(e._nextDay=!0,e._a[G]=0),e._d=(e._useUTC?pt:_n).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[G]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function yi(e){var t,a,r,s,n,i,o,d,h;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,a=tt(t.GG,e._a[X],wt(L(),1,4).year),r=tt(t.W,1),s=tt(t.E,1),(s<1||s>7)&&(d=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,h=wt(L(),n,i),a=tt(t.gg,e._a[X],h.year),r=tt(t.w,h.week),t.d!=null?(s=t.d,(s<0||s>6)&&(d=!0)):t.e!=null?(s=t.e+n,(t.e<0||t.e>6)&&(d=!0)):s=n),r<1||r>Ne(a,n,i)?g(e)._overflowWeeks=!0:d!=null?g(e)._overflowWeekday=!0:(o=Nr(a,r,s,n,i),e._a[X]=o.year,e._dayOfYear=o.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function La(e){if(e._f===l.ISO_8601){Ar(e);return}if(e._f===l.RFC_2822){Wr(e);return}e._a=[],g(e).empty=!0;var t=""+e._i,a,r,s,n,i,o=t.length,d=0,h,m;for(s=vr(e._f,e._locale).match(Ma)||[],m=s.length,a=0;a<m;a++)n=s[a],r=(t.match(tn(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&g(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),d+=r.length),Qe[n]?(r?g(e).empty=!1:g(e).unusedTokens.push(n),rn(n,r,e)):e._strict&&!r&&g(e).unusedTokens.push(n);g(e).charsLeftOver=o-d,t.length>0&&g(e).unusedInput.push(t),e._a[G]<=12&&g(e).bigHour===!0&&e._a[G]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[G]=Di(e._locale,e._a[G],e._meridiem),h=g(e).era,h!==null&&(e._a[X]=e._locale.erasConvertYear(h,e._a[X])),ja(e),Wa(e)}function Di(e,t,a){var r;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(r=e.isPM(a),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function vi(e){var t,a,r,s,n,i,o=!1,d=e._f.length;if(d===0){g(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<d;s++)n=0,i=!1,t=_a({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],La(t),wa(t)&&(i=!0),n+=g(t).charsLeftOver,n+=g(t).unusedTokens.length*10,g(t).score=n,o?n<r&&(r=n,a=t):(r==null||n<r||i)&&(r=n,a=t,i&&(o=!0));We(e,a||t)}function pi(e){if(!e._d){var t=Ya(e._i),a=t.day===void 0?t.date:t.day;e._a=fr([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),ja(e)}}function wi(e){var t=new ht(Wa(Ir(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ir(e){var t=e._i,a=e._f;return e._locale=e._locale||Re(e._l),t===null||a===void 0&&t===""?Ft({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ye(t)?new ht(Wa(t)):(ft(t)?e._d=t:me(a)?vi(e):a?La(e):Ti(e),wa(e)||(e._d=null),e))}function Ti(e){var t=e._i;ne(t)?e._d=new Date(l.now()):ft(t)?e._d=new Date(t.valueOf()):typeof t=="string"?hi(e):me(t)?(e._a=fr(t.slice(0),function(a){return parseInt(a,10)}),ja(e)):Ge(t)?pi(e):ge(t)?e._d=new Date(t):l.createFromInputFallback(e)}function jr(e,t,a,r,s){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(a===!0||a===!1)&&(r=a,a=void 0),(Ge(e)&&va(e)||me(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=s,n._l=a,n._i=e,n._f=t,n._strict=r,wi(n)}function L(e,t,a,r){return jr(e,t,a,r,!1)}var _i=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ft()}),ki=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ft()});function Lr(e,t){var a,r;if(t.length===1&&me(t[0])&&(t=t[0]),!t.length)return L();for(a=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](a))&&(a=t[r]);return a}function Si(){var e=[].slice.call(arguments,0);return Lr("isBefore",e)}function Oi(){var e=[].slice.call(arguments,0);return Lr("isAfter",e)}var Mi=function(){return Date.now?Date.now():+new Date},kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function gi(e){var t,a=!1,r,s=kt.length;for(t in e)if(C(e,t)&&!(H.call(kt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[kt[r]]){if(a)return!1;parseFloat(e[kt[r]])!==R(e[kt[r]])&&(a=!0)}return!0}function Yi(){return this._isValid}function bi(){return ve(NaN)}function qt(e){var t=Ya(e),a=t.year||0,r=t.quarter||0,s=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,d=t.minute||0,h=t.second||0,m=t.millisecond||0;this._isValid=gi(t),this._milliseconds=+m+h*1e3+d*6e4+o*1e3*60*60,this._days=+i+n*7,this._months=+s+r*3+a*12,this._data={},this._locale=Re(),this._bubble()}function Bt(e){return e instanceof qt}function $a(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function xi(e,t,a){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(a&&e[i]!==t[i]||!a&&R(e[i])!==R(t[i]))&&n++;return n+s}function $r(e,t){S(e,0,0,function(){var a=this.utcOffset(),r="+";return a<0&&(a=-a,r="-"),r+Se(~~(a/60),2)+t+Se(~~a%60,2)})}$r("Z",":"),$r("ZZ",""),p("Z",Ut),p("ZZ",Ut),W(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Ua(Ut,e)});var Ni=/([\+\-]|\d\d)/gi;function Ua(e,t){var a=(t||"").match(e),r,s,n;return a===null?null:(r=a[a.length-1]||[],s=(r+"").match(Ni)||["-",0,0],n=+(s[1]*60)+R(s[2]),n===0?0:s[0]==="+"?n:-n)}function Ha(e,t){var a,r;return t._isUTC?(a=t.clone(),r=(ye(e)||ft(e)?e.valueOf():L(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+r),l.updateOffset(a,!1),a):L(e).local()}function Va(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function Ri(e,t,a){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Ua(Ut,e),e===null)return this}else Math.abs(e)<16&&!a&&(e=e*60);return!this._isUTC&&t&&(s=Va(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?Gr(this,ve(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Va(this)}function Ei(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Pi(e){return this.utcOffset(0,e)}function Ci(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Va(this),"m")),this}function Fi(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Ua(Ks,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ai(e){return this.isValid()?(e=e?L(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Wi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ii(){if(!ne(this._isDSTShifted))return this._isDSTShifted;var e={},t;return _a(e,this),e=Ir(e),e._a?(t=e._isUTC?_e(e._a):L(e._a),this._isDSTShifted=this.isValid()&&xi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ji(){return this.isValid()?!this._isUTC:!1}function Li(){return this.isValid()?this._isUTC:!1}function Ur(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $i=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ui=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ve(e,t){var a=e,r=null,s,n,i;return Bt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:ge(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(r=$i.exec(e))?(s=r[1]==="-"?-1:1,a={y:0,d:R(r[Oe])*s,h:R(r[G])*s,m:R(r[De])*s,s:R(r[xe])*s,ms:R($a(r[ze]*1e3))*s}):(r=Ui.exec(e))?(s=r[1]==="-"?-1:1,a={y:Ze(r[2],s),M:Ze(r[3],s),w:Ze(r[4],s),d:Ze(r[5],s),h:Ze(r[6],s),m:Ze(r[7],s),s:Ze(r[8],s)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(i=Hi(L(a.from),L(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),n=new qt(a),Bt(e)&&C(e,"_locale")&&(n._locale=e._locale),Bt(e)&&C(e,"_isValid")&&(n._isValid=e._isValid),n}ve.fn=qt.prototype,ve.invalid=bi;function Ze(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Hr(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Hi(e,t){var a;return e.isValid()&&t.isValid()?(t=Ha(t,e),e.isBefore(t)?a=Hr(e,t):(a=Hr(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function Vr(e,t){return function(a,r){var s,n;return r!==null&&!isNaN(+r)&&(Dr(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=r,r=n),s=ve(a,r),Gr(this,s,e),this}}function Gr(e,t,a,r){var s=t._milliseconds,n=$a(t._days),i=$a(t._months);e.isValid()&&(r=r??!0,i&&Yr(e,vt(e,"Month")+i*a),n&&Or(e,"Date",vt(e,"Date")+n*a),s&&e._d.setTime(e._d.valueOf()+s*a),r&&l.updateOffset(e,n||i))}var Vi=Vr(1,"add"),Gi=Vr(-1,"subtract");function zr(e){return typeof e=="string"||e instanceof String}function zi(e){return ye(e)||ft(e)||zr(e)||ge(e)||qi(e)||Zi(e)||e===null||e===void 0}function Zi(e){var t=Ge(e)&&!va(e),a=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,n,i=r.length;for(s=0;s<i;s+=1)n=r[s],a=a||C(e,n);return t&&a}function qi(e){var t=me(e),a=!1;return t&&(a=e.filter(function(r){return!ge(r)&&zr(e)}).length===0),t&&a}function Bi(e){var t=Ge(e)&&!va(e),a=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,n;for(s=0;s<r.length;s+=1)n=r[s],a=a||C(e,n);return t&&a}function Ji(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function Qi(e,t){arguments.length===1&&(arguments[0]?zi(arguments[0])?(e=arguments[0],t=void 0):Bi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||L(),r=Ha(a,this).startOf("day"),s=l.calendarFormat(this,r)||"sameElse",n=t&&(ke(t[s])?t[s].call(this,a):t[s]);return this.format(n||this.localeData().calendar(s,this,L(a)))}function Xi(){return new ht(this)}function Ki(e,t){var a=ye(e)?e:L(e);return this.isValid()&&a.isValid()?(t=de(t)||"millisecond",t==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf()):!1}function el(e,t){var a=ye(e)?e:L(e);return this.isValid()&&a.isValid()?(t=de(t)||"millisecond",t==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf()):!1}function tl(e,t,a,r){var s=ye(e)?e:L(e),n=ye(t)?t:L(t);return this.isValid()&&s.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,a):!this.isBefore(s,a))&&(r[1]===")"?this.isBefore(n,a):!this.isAfter(n,a))):!1}function al(e,t){var a=ye(e)?e:L(e),r;return this.isValid()&&a.isValid()?(t=de(t)||"millisecond",t==="millisecond"?this.valueOf()===a.valueOf():(r=a.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function rl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nl(e,t,a){var r,s,n;if(!this.isValid())return NaN;if(r=Ha(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=de(t),t){case"year":n=Jt(this,r)/12;break;case"month":n=Jt(this,r);break;case"quarter":n=Jt(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-s)/864e5;break;case"week":n=(this-r-s)/6048e5;break;default:n=this-r}return a?n:ce(n)}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var a=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(a,"months"),s,n;return t-r<0?(s=e.clone().add(a-1,"months"),n=(t-r)/(r-s)):(s=e.clone().add(a+1,"months"),n=(t-r)/(s-r)),-(a+n)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function il(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ll(e){if(!this.isValid())return null;var t=e!==!0,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?Wt(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ke(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Wt(a,"Z")):Wt(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ol(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,r,s,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(a+r+s+n)}function ul(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Wt(this,e);return this.localeData().postformat(t)}function dl(e,t){return this.isValid()&&(ye(e)&&e.isValid()||L(e).isValid())?ve({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cl(e){return this.from(L(),e)}function fl(e,t){return this.isValid()&&(ye(e)&&e.isValid()||L(e).isValid())?ve({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hl(e){return this.to(L(),e)}function Zr(e){var t;return e===void 0?this._locale._abbr:(t=Re(e),t!=null&&(this._locale=t),this)}var q