UNPKG

holiday-react-big-scheduler

Version:

A scheduler and resource planning component built for React and made for modern browsers (IE10+)

15 lines 4.13 MB
var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react-dom"),require("react-dnd"),require("rrule")):"function"==typeof define&&define.amd?define(["exports","react-dom","react-dnd","rrule"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["holiday-react-big-scheduler"]={},e.ReactDOM,e.reactDnd,e.rrule)}(this,(function(e,t,n,r){"use strict";function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const o=c(t);var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(t,n);return new r}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var s={},u={get exports(){return s},set exports(e){s=e}},h={},f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function v(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var m=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(c){return!1}}()?Object.assign:function(e,t){for(var n,r,c=v(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))p.call(n,i)&&(c[i]=n[i]);if(f){r=f(n);for(var a=0;a<r.length;a++)d.call(n,r[a])&&(c[r[a]]=n[r[a]])}}return c},y=m,g="function"==typeof Symbol&&Symbol.for,b=g?Symbol.for("react.element"):60103,z=g?Symbol.for("react.portal"):60106,M=g?Symbol.for("react.fragment"):60107,w=g?Symbol.for("react.strict_mode"):60108,H=g?Symbol.for("react.profiler"):60114,C=g?Symbol.for("react.provider"):60109,O=g?Symbol.for("react.context"):60110,V=g?Symbol.for("react.forward_ref"):60112,_=g?Symbol.for("react.suspense"):60113,S=g?Symbol.for("react.memo"):60115,T=g?Symbol.for("react.lazy"):60116,E="function"==typeof Symbol&&Symbol.iterator; /** @license React v16.14.0 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k={};function x(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||P}function D(){}function R(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||P}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(L(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},D.prototype=x.prototype;var j=R.prototype=new D;j.constructor=R,y(j,x.prototype),j.isPureReactComponent=!0;var A={current:null},N=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,n){var r,c={},o=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)N.call(t,r)&&!I.hasOwnProperty(r)&&(c[r]=t[r]);var a=arguments.length-2;if(1===a)c.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];c.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===c[r]&&(c[r]=a[r]);return{$$typeof:b,type:e,key:o,ref:i,props:c,_owner:A.current}}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===b}var Y=/\/+/g,U=[];function q(e,t,n,r){if(U.length){var c=U.pop();return c.result=e,c.keyPrefix=t,c.func=n,c.context=r,c.count=0,c}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function B(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>U.length&&U.push(e)}function G(e,t,n,r){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var o=!1;if(null===e)o=!0;else switch(c){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case b:case z:o=!0}}if(o)return n(r,e,""===t?"."+$(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var i=0;i<e.length;i++){var a=t+$(c=e[i],i);o+=G(c,a,n,r)}else if(null===e||"object"!=typeof e?a=null:a="function"==typeof(a=E&&e[E]||e["@@iterator"])?a:null,"function"==typeof a)for(e=a.call(e),i=0;!(c=e.next()).done;)o+=G(c=c.value,a=t+$(c,i++),n,r);else if("object"===c)throw n=""+e,Error(L(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function K(e,t,n){return null==e?0:G(e,"",t,n)}function $(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function X(e,t){e.func.call(e.context,t,e.count++)}function Z(e,t,n){var r=e.result,c=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Q(e,r,n,(function(e){return e})):null!=e&&(W(e)&&(e=function(e,t){return{$$typeof:b,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,c+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(Y,"$&/")+"/")+n)),r.push(e))}function Q(e,t,n,r,c){var o="";null!=n&&(o=(""+n).replace(Y,"$&/")+"/"),K(e,Z,t=q(t,o,r,c)),B(t)}var J={current:null};function ee(){var e=J.current;if(null===e)throw Error(L(321));return e}var te={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:A,IsSomeRendererActing:{current:!1},assign:y};h.Children={map:function(e,t,n){if(null==e)return e;var r=[];return Q(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;K(e,X,t=q(null,null,t,n)),B(t)},count:function(e){return K(e,(function(){return null}),null)},toArray:function(e){var t=[];return Q(e,t,null,(function(e){return e})),t},only:function(e){if(!W(e))throw Error(L(143));return e}},h.Component=x,h.Fragment=M,h.Profiler=H,h.PureComponent=R,h.StrictMode=w,h.Suspense=_,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,h.cloneElement=function(e,t,n){if(null==e)throw Error(L(267,e));var r=y({},e.props),c=e.key,o=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,i=A.current),void 0!==t.key&&(c=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)N.call(t,l)&&!I.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==a?a[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){a=Array(l);for(var s=0;s<l;s++)a[s]=arguments[s+2];r.children=a}return{$$typeof:b,type:e.type,key:c,ref:o,props:r,_owner:i}},h.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:O,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:C,_context:e},e.Consumer=e},h.createElement=F,h.createFactory=function(e){var t=F.bind(null,e);return t.type=e,t},h.createRef=function(){return{current:null}},h.forwardRef=function(e){return{$$typeof:V,render:e}},h.isValidElement=W,h.lazy=function(e){return{$$typeof:T,_ctor:e,_status:-1,_result:null}},h.memo=function(e,t){return{$$typeof:S,type:e,compare:void 0===t?null:t}},h.useCallback=function(e,t){return ee().useCallback(e,t)},h.useContext=function(e,t){return ee().useContext(e,t)},h.useDebugValue=function(){},h.useEffect=function(e,t){return ee().useEffect(e,t)},h.useImperativeHandle=function(e,t,n){return ee().useImperativeHandle(e,t,n)},h.useLayoutEffect=function(e,t){return ee().useLayoutEffect(e,t)},h.useMemo=function(e,t){return ee().useMemo(e,t)},h.useReducer=function(e,t,n){return ee().useReducer(e,t,n)},h.useRef=function(e){return ee().useRef(e)},h.useState=function(e){return ee().useState(e)},h.version="16.14.0",u.exports=h;const ne=a(s);var re={},ce={get exports(){return re},set exports(e){re=e}};function oe(){}function ie(){}ie.resetWarningCache=oe;ce.exports=function(){function e(e,t,n,r,c,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ie,resetWarningCache:oe};return n.PropTypes=n,n}();var ae={},le={},se={},ue={}; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var c=arguments[r];if(c){var o=typeof c;if("string"===o||"number"===o)e.push(c);else if(Array.isArray(c)&&c.length){var i=n.apply(null,c);i&&e.push(i)}else if("object"===o)for(var a in c)t.call(c,a)&&c[a]&&e.push(a)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}({get exports(){return ue},set exports(e){ue=e}});const he=ue;var fe,pe,de={},ve={};function me(){return fe.apply(null,arguments)}function ye(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function ge(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function be(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ze(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(be(e,t))return!1;return!0}function Me(e){return void 0===e}function we(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function He(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Ce(e,t){var n,r=[],c=e.length;for(n=0;n<c;++n)r.push(t(e[n],n));return r}function Oe(e,t){for(var n in t)be(t,n)&&(e[n]=t[n]);return be(t,"toString")&&(e.toString=t.toString),be(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ve(e,t,n,r){return An(e,t,n,r,!0).utc()}function _e(e){return null==e._pf&&(e._pf={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}),e._pf}function Se(e){if(null==e._isValid){var t=_e(e),n=pe.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function Te(e){var t=Ve(NaN);return null!=e?Oe(_e(t),e):_e(t).userInvalidated=!0,t}pe=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var Ee=me.momentProperties=[],Le=!1;function Pe(e,t){var n,r,c,o=Ee.length;if(Me(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Me(t._i)||(e._i=t._i),Me(t._f)||(e._f=t._f),Me(t._l)||(e._l=t._l),Me(t._strict)||(e._strict=t._strict),Me(t._tzm)||(e._tzm=t._tzm),Me(t._isUTC)||(e._isUTC=t._isUTC),Me(t._offset)||(e._offset=t._offset),Me(t._pf)||(e._pf=_e(t)),Me(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)Me(c=t[r=Ee[n]])||(e[r]=c);return e}function ke(e){Pe(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Le&&(Le=!0,me.updateOffset(this),Le=!1)}function xe(e){return e instanceof ke||null!=e&&null!=e._isAMomentObject}function De(e){!1===me.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function Re(e,t){var n=!0;return Oe((function(){if(null!=me.deprecationHandler&&me.deprecationHandler(null,e),n){var r,c,o,i=[],a=arguments.length;for(c=0;c<a;c++){if(r="","object"==typeof arguments[c]){for(o in r+="\n["+c+"] ",arguments[0])be(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[c];i.push(r)}De(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var je,Ae={};function Ne(e,t){null!=me.deprecationHandler&&me.deprecationHandler(e,t),Ae[e]||(De(t),Ae[e]=!0)}function Ie(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Fe(e,t){var n,r=Oe({},e);for(n in t)be(t,n)&&(ge(e[n])&&ge(t[n])?(r[n]={},Oe(r[n],e[n]),Oe(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)be(e,n)&&!be(t,n)&&ge(e[n])&&(r[n]=Oe({},r[n]));return r}function We(e){null!=e&&this.set(e)}me.suppressDeprecationWarnings=!1,me.deprecationHandler=null,je=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)be(e,t)&&n.push(t);return n};function Ye(e,t,n){var r=""+Math.abs(e),c=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,c)).toString().substr(1)+r}var Ue=/(\[[^\[]*\])|(\\)?([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,qe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Be={},Ge={};function Ke(e,t,n,r){var c=r;"string"==typeof r&&(c=function(){return this[r]()}),e&&(Ge[e]=c),t&&(Ge[t[0]]=function(){return Ye(c.apply(this,arguments),t[1],t[2])}),n&&(Ge[n]=function(){return this.localeData().ordinal(c.apply(this,arguments),e)})}function $e(e,t){return e.isValid()?(t=Xe(t,e.localeData()),Be[t]=Be[t]||function(e){var t,n,r,c=e.match(Ue);for(t=0,n=c.length;t<n;t++)Ge[c[t]]?c[t]=Ge[c[t]]:c[t]=(r=c[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=Ie(c[r])?c[r].call(t,e):c[r];return o}}(t),Be[t](e)):e.localeData().invalidDate()}function Xe(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(qe.lastIndex=0;n>=0&&qe.test(e);)e=e.replace(qe,r),qe.lastIndex=0,n-=1;return e}var Ze={};function Qe(e,t){var n=e.toLowerCase();Ze[n]=Ze[n+"s"]=Ze[t]=e}function Je(e){return"string"==typeof e?Ze[e]||Ze[e.toLowerCase()]:void 0}function et(e){var t,n,r={};for(n in e)be(e,n)&&(t=Je(n))&&(r[t]=e[n]);return r}var tt={};function nt(e,t){tt[e]=t}function rt(e){return e%4==0&&e%100!=0||e%400==0}function ct(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ot(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ct(t)),n}function it(e,t){return function(n){return null!=n?(lt(this,e,n),me.updateOffset(this,t),this):at(this,e)}}function at(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function lt(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&rt(e.year())&&1===e.month()&&29===e.date()?(n=ot(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xt(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var st,ut=/\d/,ht=/\d\d/,ft=/\d{3}/,pt=/\d{4}/,dt=/[+-]?\d{6}/,vt=/\d\d?/,mt=/\d\d\d\d?/,yt=/\d\d\d\d\d\d?/,gt=/\d{1,3}/,bt=/\d{1,4}/,zt=/[+-]?\d{1,6}/,Mt=/\d+/,wt=/[+-]?\d+/,Ht=/Z|[+-]\d\d:?\d\d/gi,Ct=/Z|[+-]\d\d(?::?\d\d)?/gi,Ot=/[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;function Vt(e,t,n){st[e]=Ie(t)?t:function(e,r){return e&&n?n:t}}function _t(e,t){return be(st,e)?st[e](t._strict,t._locale):new RegExp(St(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,c){return t||n||r||c}))))}function St(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}st={};var Tt={};function Et(e,t){var n,r,c=t;for("string"==typeof e&&(e=[e]),we(t)&&(c=function(e,n){n[t]=ot(e)}),r=e.length,n=0;n<r;n++)Tt[e[n]]=c}function Lt(e,t){Et(e,(function(e,n,r,c){r._w=r._w||{},t(e,r._w,r,c)}))}function Pt(e,t,n){null!=t&&be(Tt,e)&&Tt[e](t,n._a,n,e)}var kt;function xt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?rt(e)?29:28:31-r%7%2}kt=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},Ke("M",["MM",2],"Mo",(function(){return this.month()+1})),Ke("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),Ke("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Qe("month","M"),nt("month",8),Vt("M",vt),Vt("MM",vt,ht),Vt("MMM",(function(e,t){return t.monthsShortRegex(e)})),Vt("MMMM",(function(e,t){return t.monthsRegex(e)})),Et(["M","MM"],(function(e,t){t[1]=ot(e)-1})),Et(["MMM","MMMM"],(function(e,t,n,r){var c=n._locale.monthsParse(e,r,n._strict);null!=c?t[1]=c:_e(n).invalidMonth=e}));var Dt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),jt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At=Ot,Nt=Ot;function It(e,t,n){var r,c,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Ve([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(c=kt.call(this._shortMonthsParse,i))?c:null:-1!==(c=kt.call(this._longMonthsParse,i))?c:null:"MMM"===t?-1!==(c=kt.call(this._shortMonthsParse,i))||-1!==(c=kt.call(this._longMonthsParse,i))?c:null:-1!==(c=kt.call(this._longMonthsParse,i))||-1!==(c=kt.call(this._shortMonthsParse,i))?c:null}function Ft(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ot(t);else if(!we(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Wt(e){return null!=e?(Ft(this,e),me.updateOffset(this,!0),this):at(this,"Month")}function Yt(){function e(e,t){return t.length-e.length}var t,n,r=[],c=[],o=[];for(t=0;t<12;t++)n=Ve([2e3,t]),r.push(this.monthsShort(n,"")),c.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),c.sort(e),o.sort(e),t=0;t<12;t++)r[t]=St(r[t]),c[t]=St(c[t]);for(t=0;t<24;t++)o[t]=St(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ut(e){return rt(e)?366:365}Ke("Y",0,0,(function(){var e=this.year();return e<=9999?Ye(e,4):"+"+e})),Ke(0,["YY",2],0,(function(){return this.year()%100})),Ke(0,["YYYY",4],0,"year"),Ke(0,["YYYYY",5],0,"year"),Ke(0,["YYYYYY",6,!0],0,"year"),Qe("year","y"),nt("year",1),Vt("Y",wt),Vt("YY",vt,ht),Vt("YYYY",bt,pt),Vt("YYYYY",zt,dt),Vt("YYYYYY",zt,dt),Et(["YYYYY","YYYYYY"],0),Et("YYYY",(function(e,t){t[0]=2===e.length?me.parseTwoDigitYear(e):ot(e)})),Et("YY",(function(e,t){t[0]=me.parseTwoDigitYear(e)})),Et("Y",(function(e,t){t[0]=parseInt(e,10)})),me.parseTwoDigitYear=function(e){return ot(e)+(ot(e)>68?1900:2e3)};var qt=it("FullYear",!0);function Bt(e,t,n,r,c,o,i){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,c,o,i),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,c,o,i),a}function Gt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Kt(e,t,n){var r=7+t-n;return-((7+Gt(e,0,r).getUTCDay()-t)%7)+r-1}function $t(e,t,n,r,c){var o,i,a=1+7*(t-1)+(7+n-r)%7+Kt(e,r,c);return a<=0?i=Ut(o=e-1)+a:a>Ut(e)?(o=e+1,i=a-Ut(e)):(o=e,i=a),{year:o,dayOfYear:i}}function Xt(e,t,n){var r,c,o=Kt(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+Zt(c=e.year()-1,t,n):i>Zt(e.year(),t,n)?(r=i-Zt(e.year(),t,n),c=e.year()+1):(c=e.year(),r=i),{week:r,year:c}}function Zt(e,t,n){var r=Kt(e,t,n),c=Kt(e+1,t,n);return(Ut(e)-r+c)/7}Ke("w",["ww",2],"wo","week"),Ke("W",["WW",2],"Wo","isoWeek"),Qe("week","w"),Qe("isoWeek","W"),nt("week",5),nt("isoWeek",5),Vt("w",vt),Vt("ww",vt,ht),Vt("W",vt),Vt("WW",vt,ht),Lt(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ot(e)}));function Qt(e,t){return e.slice(t,7).concat(e.slice(0,t))}Ke("d",0,"do","day"),Ke("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Ke("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Ke("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Ke("e",0,0,"weekday"),Ke("E",0,0,"isoWeekday"),Qe("day","d"),Qe("weekday","e"),Qe("isoWeekday","E"),nt("day",11),nt("weekday",11),nt("isoWeekday",11),Vt("d",vt),Vt("e",vt),Vt("E",vt),Vt("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Vt("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Vt("dddd",(function(e,t){return t.weekdaysRegex(e)})),Lt(["dd","ddd","dddd"],(function(e,t,n,r){var c=n._locale.weekdaysParse(e,r,n._strict);null!=c?t.d=c:_e(n).invalidWeekday=e})),Lt(["d","e","E"],(function(e,t,n,r){t[r]=ot(e)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),en="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),nn=Ot,rn=Ot,cn=Ot;function on(e,t,n){var r,c,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Ve([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(c=kt.call(this._weekdaysParse,i))?c:null:"ddd"===t?-1!==(c=kt.call(this._shortWeekdaysParse,i))?c:null:-1!==(c=kt.call(this._minWeekdaysParse,i))?c:null:"dddd"===t?-1!==(c=kt.call(this._weekdaysParse,i))||-1!==(c=kt.call(this._shortWeekdaysParse,i))||-1!==(c=kt.call(this._minWeekdaysParse,i))?c:null:"ddd"===t?-1!==(c=kt.call(this._shortWeekdaysParse,i))||-1!==(c=kt.call(this._weekdaysParse,i))||-1!==(c=kt.call(this._minWeekdaysParse,i))?c:null:-1!==(c=kt.call(this._minWeekdaysParse,i))||-1!==(c=kt.call(this._weekdaysParse,i))||-1!==(c=kt.call(this._shortWeekdaysParse,i))?c:null}function an(){function e(e,t){return t.length-e.length}var t,n,r,c,o,i=[],a=[],l=[],s=[];for(t=0;t<7;t++)n=Ve([2e3,1]).day(t),r=St(this.weekdaysMin(n,"")),c=St(this.weekdaysShort(n,"")),o=St(this.weekdays(n,"")),i.push(r),a.push(c),l.push(o),s.push(r),s.push(c),s.push(o);i.sort(e),a.sort(e),l.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ln(){return this.hours()%12||12}function sn(e,t){Ke(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function un(e,t){return t._meridiemParse}Ke("H",["HH",2],0,"hour"),Ke("h",["hh",2],0,ln),Ke("k",["kk",2],0,(function(){return this.hours()||24})),Ke("hmm",0,0,(function(){return""+ln.apply(this)+Ye(this.minutes(),2)})),Ke("hmmss",0,0,(function(){return""+ln.apply(this)+Ye(this.minutes(),2)+Ye(this.seconds(),2)})),Ke("Hmm",0,0,(function(){return""+this.hours()+Ye(this.minutes(),2)})),Ke("Hmmss",0,0,(function(){return""+this.hours()+Ye(this.minutes(),2)+Ye(this.seconds(),2)})),sn("a",!0),sn("A",!1),Qe("hour","h"),nt("hour",13),Vt("a",un),Vt("A",un),Vt("H",vt),Vt("h",vt),Vt("k",vt),Vt("HH",vt,ht),Vt("hh",vt,ht),Vt("kk",vt,ht),Vt("hmm",mt),Vt("hmmss",yt),Vt("Hmm",mt),Vt("Hmmss",yt),Et(["H","HH"],3),Et(["k","kk"],(function(e,t,n){var r=ot(e);t[3]=24===r?0:r})),Et(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Et(["h","hh"],(function(e,t,n){t[3]=ot(e),_e(n).bigHour=!0})),Et("hmm",(function(e,t,n){var r=e.length-2;t[3]=ot(e.substr(0,r)),t[4]=ot(e.substr(r)),_e(n).bigHour=!0})),Et("hmmss",(function(e,t,n){var r=e.length-4,c=e.length-2;t[3]=ot(e.substr(0,r)),t[4]=ot(e.substr(r,2)),t[5]=ot(e.substr(c)),_e(n).bigHour=!0})),Et("Hmm",(function(e,t,n){var r=e.length-2;t[3]=ot(e.substr(0,r)),t[4]=ot(e.substr(r))})),Et("Hmmss",(function(e,t,n){var r=e.length-4,c=e.length-2;t[3]=ot(e.substr(0,r)),t[4]=ot(e.substr(r,2)),t[5]=ot(e.substr(c))}));var hn=it("Hours",!0);var fn,pn={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Dt,monthsShort:Rt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:tn,weekdaysShort:en,meridiemParse:/[ap]\.?m?\.?/i},dn={},vn={};function mn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function yn(e){return e?e.toLowerCase().replace("_","-"):e}function gn(e){var t=null;if(void 0===dn[e]&&"undefined"!=typeof module&&module&&module.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(e))try{t=fn._abbr,require("./locale/"+e),bn(t)}catch(n){dn[e]=null}return dn[e]}function bn(e,t){var n;return e&&((n=Me(t)?Mn(e):zn(e,t))?fn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),fn._abbr}function zn(e,t){if(null!==t){var n,r=pn;if(t.abbr=e,null!=dn[e])Ne("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=dn[e]._config;else if(null!=t.parentLocale)if(null!=dn[t.parentLocale])r=dn[t.parentLocale]._config;else{if(null==(n=gn(t.parentLocale)))return vn[t.parentLocale]||(vn[t.parentLocale]=[]),vn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return dn[e]=new We(Fe(r,t)),vn[e]&&vn[e].forEach((function(e){zn(e.name,e.config)})),bn(e),dn[e]}return delete dn[e],null}function Mn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return fn;if(!ye(e)){if(t=gn(e))return t;e=[e]}return function(e){for(var t,n,r,c,o=0;o<e.length;){for(t=(c=yn(e[o]).split("-")).length,n=(n=yn(e[o+1]))?n.split("-"):null;t>0;){if(r=gn(c.slice(0,t).join("-")))return r;if(n&&n.length>=t&&mn(c,n)>=t-1)break;t--}o++}return fn}(e)}function wn(e){var t,n=e._a;return n&&-2===_e(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xt(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,_e(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),_e(e)._overflowWeeks&&-1===t&&(t=7),_e(e)._overflowWeekday&&-1===t&&(t=8),_e(e).overflow=t),e}var Hn=/^\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)?)?$/,Cn=/^\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)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,Vn=[["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]],_n=[["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/]],Sn=/^\/?Date\((-?\d+)/i,Tn=/^(?:(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}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ln(e){var t,n,r,c,o,i,a=e._i,l=Hn.exec(a)||Cn.exec(a),s=Vn.length,u=_n.length;if(l){for(_e(e).iso=!0,t=0,n=s;t<n;t++)if(Vn[t][1].exec(l[1])){c=Vn[t][0],r=!1!==Vn[t][2];break}if(null==c)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(_n[t][1].exec(l[3])){o=(l[2]||" ")+_n[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!On.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=c+(o||"")+(i||""),Rn(e)}else e._isValid=!1}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function kn(e){var t,n,r,c,o,i,a,l,s=Tn.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(s){if(n=s[4],r=s[3],c=s[2],o=s[5],i=s[6],a=s[7],l=[Pn(n),Rt.indexOf(r),parseInt(c,10),parseInt(o,10),parseInt(i,10)],a&&l.push(parseInt(a,10)),t=l,!function(e,t,n){return!e||en.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(_e(n).weekdayMismatch=!0,n._isValid=!1,!1)}(s[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return En[e];if(t)return 0;var r=parseInt(n,10),c=r%100;return(r-c)/100*60+c}(s[8],s[9],s[10]),e._d=Gt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_e(e).rfc2822=!0}else e._isValid=!1}function xn(e,t,n){return null!=e?e:null!=t?t:n}function Dn(e){var t,n,r,c,o,i=[];if(!e._d){for(r=function(e){var t=new Date(me.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,c,o,i,a,l,s;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,i=4,n=xn(t.GG,e._a[0],Xt(Nn(),1,4).year),r=xn(t.W,1),((c=xn(t.E,1))<1||c>7)&&(l=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,s=Xt(Nn(),o,i),n=xn(t.gg,e._a[0],s.year),r=xn(t.w,s.week),null!=t.d?((c=t.d)<0||c>6)&&(l=!0):null!=t.e?(c=t.e+o,(t.e<0||t.e>6)&&(l=!0)):c=o);r<1||r>Zt(n,o,i)?_e(e)._overflowWeeks=!0:null!=l?_e(e)._overflowWeekday=!0:(a=$t(n,r,c,o,i),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(o=xn(e._a[0],r[0]),(e._dayOfYear>Ut(o)||0===e._dayOfYear)&&(_e(e)._overflowDayOfYear=!0),n=Gt(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Gt:Bt).apply(null,i),c=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==c&&(_e(e).weekdayMismatch=!0)}}function Rn(e){if(e._f!==me.ISO_8601)if(e._f!==me.RFC_2822){e._a=[],_e(e).empty=!0;var t,n,r,c,o,i,a,l=""+e._i,s=l.length,u=0;for(a=(r=Xe(e._f,e._locale).match(Ue)||[]).length,t=0;t<a;t++)c=r[t],(n=(l.match(_t(c,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&_e(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),Ge[c]?(n?_e(e).empty=!1:_e(e).unusedTokens.push(c),Pt(c,n,e)):e._strict&&!n&&_e(e).unusedTokens.push(c);_e(e).charsLeftOver=s-u,l.length>0&&_e(e).unusedInput.push(l),e._a[3]<=12&&!0===_e(e).bigHour&&e._a[3]>0&&(_e(e).bigHour=void 0),_e(e).parsedDateParts=e._a.slice(0),_e(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(i=_e(e).era)&&(e._a[0]=e._locale.erasConvertYear(i,e._a[0])),Dn(e),wn(e)}else kn(e);else Ln(e)}function jn(e){var t=e._i,n=e._f;return e._locale=e._locale||Mn(e._l),null===t||void 0===n&&""===t?Te({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),xe(t)?new ke(wn(t)):(He(t)?e._d=t:ye(n)?function(e){var t,n,r,c,o,i,a=!1,l=e._f.length;if(0===l)return _e(e).invalidFormat=!0,void(e._d=new Date(NaN));for(c=0;c<l;c++)o=0,i=!1,t=Pe({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[c],Rn(t),Se(t)&&(i=!0),o+=_e(t).charsLeftOver,o+=10*_e(t).unusedTokens.length,_e(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||i)&&(r=o,n=t,i&&(a=!0));Oe(e,n||t)}(e):n?Rn(e):function(e){var t=e._i;Me(t)?e._d=new Date(me.now()):He(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Sn.exec(e._i);null===t?(Ln(e),!1===e._isValid&&(delete e._isValid,kn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:me.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):ye(t)?(e._a=Ce(t.slice(0),(function(e){return parseInt(e,10)})),Dn(e)):ge(t)?function(e){if(!e._d){var t=et(e._i),n=void 0===t.day?t.date:t.day;e._a=Ce([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Dn(e)}}(e):we(t)?e._d=new Date(t):me.createFromInputFallback(e)}(e),Se(e)||(e._d=null),e))}function An(e,t,n,r,c){var o,i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(ge(e)&&ze(e)||ye(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=c,i._l=n,i._i=e,i._f=t,i._strict=r,(o=new ke(wn(jn(i))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Nn(e,t,n,r){return An(e,t,n,r,!1)}me.createFromInputFallback=Re("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":""))})),me.ISO_8601=function(){},me.RFC_2822=function(){};var In=Re("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Nn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Te()})),Fn=Re("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Nn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Te()}));function Wn(e,t){var n,r;if(1===t.length&&ye(t[0])&&(t=t[0]),!t.length)return Nn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Yn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Un(e){var t=et(e),n=t.year||0,r=t.quarter||0,c=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,a=t.hour||0,l=t.minute||0,s=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,c=Yn.length;for(t in e)if(be(e,t)&&(-1===kt.call(Yn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<c;++n)if(e[Yn[n]]){if(r)return!1;parseFloat(e[Yn[n]])!==ot(e[Yn[n]])&&(r=!0)}return!0}(t),this._milliseconds=+u+1e3*s+6e4*l+1e3*a*60*60,this._days=+i+7*o,this._months=+c+3*r+12*n,this._data={},this._locale=Mn(),this._bubble()}function qn(e){return e instanceof Un}function Bn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Gn(e,t){Ke(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Ye(~~(e/60),2)+t+Ye(~~e%60,2)}))}Gn("Z",":"),Gn("ZZ",""),Vt("Z",Ct),Vt("ZZ",Ct),Et(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=$n(Ct,e)}));var Kn=/([\+\-]|\d\d)/gi;function $n(e,t){var n,r,c=(t||"").match(e);return null===c?null:0===(r=60*(n=((c[c.length-1]||[])+"").match(Kn)||["-",0,0])[1]+ot(n[2]))?0:"+"===n[0]?r:-r}function Xn(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(xe(e)||He(e)?e.valueOf():Nn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),me.updateOffset(n,!1),n):Nn(e).local()}function Zn(e){return-Math.round(e._d.getTimezoneOffset())}function Qn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}me.updateOffset=function(){};var Jn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tr(e,t){var n,r,c,o=e,i=null;return qn(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:we(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(i=Jn.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:ot(i[2])*n,h:ot(i[3])*n,m:ot(i[4])*n,s:ot(i[5])*n,ms:ot(Bn(1e3*i[6]))*n}):(i=er.exec(e))?(n="-"===i[1]?-1:1,o={y:nr(i[2],n),M:nr(i[3],n),w:nr(i[4],n),d:nr(i[5],n),h:nr(i[6],n),m:nr(i[7],n),s:nr(i[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(c=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Xn(t,e),e.isBefore(t)?n=rr(e,t):((n=rr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Nn(o.from),Nn(o.to)),(o={}).ms=c.milliseconds,o.M=c.months),r=new Un(o),qn(e)&&be(e,"_locale")&&(r._locale=e._locale),qn(e)&&be(e,"_isValid")&&(r._isValid=e._isValid),r}function nr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function rr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function cr(e,t){return function(n,r){var c;return null===r||isNaN(+r)||(Ne(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."),c=n,n=r,r=c),or(this,tr(n,r),e),this}}function or(e,t,n,r){var c=t._milliseconds,o=Bn(t._days),i=Bn(t._months);e.isValid()&&(r=null==r||r,i&&Ft(e,at(e,"Month")+i*n),o&&lt(e,"Date",at(e,"Date")+o*n),c&&e._d.setTime(e._d.valueOf()+c*n),r&&me.updateOffset(e,o||i))}tr.fn=Un.prototype,tr.invalid=function(){return tr(NaN)};var ir=cr(1,"add"),ar=cr(-1,"subtract");function lr(e){return"string"==typeof e||e instanceof String}function sr(e){return xe(e)||He(e)||lr(e)||we(e)||function(e){var t=ye(e),n=!1;t&&(n=0===e.filter((function(t){return!we(t)&&lr(e)})).length);return t&&n}(e)||function(e){var t,n,r=ge(e)&&!ze(e),c=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i=o.length;for(t=0;t<i;t+=1)n=o[t],c=c||be(e,n);return r&&c}(e)||null==e}function ur(e){var t,n=ge(e)&&!ze(e),r=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<c.length;t+=1)r=r||be(e,c[t]);return n&&r}function hr(e,t){if(e.date()<t.date())return-hr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function fr(e){var t;return void 0===e?this._locale._abbr:(null!=(t=Mn(e))&&(this._locale=t),this)}me.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",me.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var pr=Re("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 dr(){return this._locale}var vr=1e3,mr=6e4,yr=36e5,gr=126227808e5;function br(e,t){return(e%t+t)%t}function zr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-gr:new Date(e,t,n).valueOf()}function Mr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-gr:Date.UTC(e,t,n)}function wr(e,t){return t.erasAbbrRegex(e)}function Hr(){var e,t,n=[],r=[],c=[],o=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(St(i[e].name)),n.push(St(i[e].abbr)),c.push(St(i[e].narrow)),o.push(St(i[e].name)),o.push(St(i[e].abbr)),o.push(St(i[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+c.join("|")+")","i")}function Cr(e,t){Ke(0,[e,e.length],0,t)}function Or(e,t,n,r,c){var o;return null==e?Xt(this,r,c).year:(t>(o=Zt(e,r,c))&&(t=o),Vr.call(this,e,t,n,r,c))}function Vr(e,t,n,r,c){var o=$t(e,t,n,r,c),i=Gt(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}Ke("N",0,0,"eraAbbr"),Ke("NN",0,0,"eraAbbr"),Ke("NNN",0,0,"eraAbbr"),Ke("NNNN",0,0,"eraName"),Ke("NNNNN",0,0,"eraNarrow"),Ke("y",["y",1],"yo","eraYear"),Ke("y",["yy",2],0,"eraYear"),Ke("y",["yyy",3],0,"eraYear"),Ke("y",["yyyy",4],0,"eraYear"),Vt("N",wr),Vt("NN",wr),Vt("NNN",wr),Vt("NNNN",(function(e,t){return t.erasNameRegex(e)})),Vt("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Et(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var c=n._locale.erasParse(e,r,n._strict);c?_e(n).era=c:_e(n).invalidEra=e})),Vt("y",Mt),Vt("yy",Mt),Vt("yyy",Mt),Vt("yyyy",Mt),Vt("yo",(function(e,t){return t._eraYearOrdinalRegex||Mt})),Et(["y","yy","yyy","yyyy"],0),Et(["yo"],(function(e,t,n,r){var c;n._locale._eraYearOrdinalRegex&&(c=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,c):t[0]=parseInt(e,10)})),Ke(0,["gg",2],0,(function(){return this.weekYear()%100})),Ke(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Cr("gggg","weekYear"),Cr("ggggg","weekYear"),Cr("GGGG","isoWeekYear"),Cr("GGGGG","isoWeekYear"),Qe("weekYear","gg"),Qe("isoWeekYear","GG"),nt("weekYear",1),nt("isoWeekYear",1),Vt("G",wt),Vt("g",wt),Vt("GG",vt,ht),Vt("gg",vt,ht),Vt("GGGG",bt,pt),Vt("gggg",bt,pt),Vt("GGGGG",zt,dt),Vt("ggggg",zt,dt),Lt(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ot(e)})),Lt(["gg","GG"],(function(e,t,n,r){t[r]=me.parseTwoDigitYear(e)})),Ke("Q",0,"Qo","quarter"),Qe("quarter","Q"),nt("quarter",7),Vt("Q",ut),Et("Q",(function(e,t){t[1]=3*(ot(e)-1)})),Ke("D",["DD",2],"Do","date"),Qe("date","D"),nt("date",9),Vt("D",vt),Vt("DD",vt,ht),Vt("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Et(["D","DD"],2),Et("Do",(function(e,t){t[2]=ot(e.match(vt)[0])}));var _r=it("Date",!0);Ke("DDD",["DDDD",3],"DDDo","dayOfYear"),Qe("dayOfYear","DDD"),nt("dayOfYear",4),Vt("DDD",gt),Vt("DDDD",ft),Et(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ot(e)})),Ke("m",["mm",2],0,"minute"),Qe("minute","m"),nt("minute",14),Vt("m",vt),Vt("mm",vt,ht),Et(["m","mm"],4);var Sr=it("Minutes",!1);Ke("s",["ss",2],0,"second"),Qe("second","s"),nt("second",15),Vt("s",vt),Vt("ss",vt,ht),Et(["s","ss"],5);var Tr,Er,Lr=it("Seconds",!1);for(Ke("S",0,0,(function(){return~~(this.millisecond()/100)})),Ke(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Ke(0,["SSS",3],0,"millisecond"),Ke(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Ke(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Ke(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Ke(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Ke(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Ke(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Qe("millisecond","ms"),nt("millisecond",16),Vt("S",gt,ut),Vt("SS",gt,ht),Vt("SSS",gt,ft),Tr="SSSS";Tr.length<=9;Tr+="S")Vt(Tr,Mt);function Pr(e,t){t[6]=ot(1e3*("0."+e))}for(Tr="S";Tr.length<=9;Tr+="S")Et(Tr,Pr);Er=it("Milliseconds",!1),Ke("z",0,0,"zoneAbbr"),Ke("zz",0,0,"zoneName");var kr=ke.prototype;function xr(e){return e}kr.add=ir,kr.calendar=function(e,t){1===arguments.length&&(arguments[0]?sr(arguments[0])?(e=arguments[0],t=void 0):ur(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Nn(),r=Xn(n,this).startOf("day"),c=me.calendarFormat(this,r)||"sameElse",o=t&&(Ie(t[c])?t[c].call(this,n):t[c]);return this.format(o||this.localeData().calendar(c,this,Nn(n)))},kr.clone=function(){return new ke(this)},kr.diff=function(e,t,n){var r,c,o;if(!this.isValid())return NaN;if(!(r=Xn(e,this)).isValid())return NaN;switch(c=6e4*(r.utcOffset()-this.utcOffset()),t=Je(t)){case"year":o=hr(this,r)/12;break;case"month":o=hr(this,r);break;case"quarter":o=hr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-c)/864e5;break;case"week":o=(this-r-c)/6048e5;break;default:o=this-r}return n?o:ct(o)},kr.endOf=function(e){var t,n;if(void 0===(e=Je(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Mr:zr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=yr-br(t+(this._isUTC?0:this.utcOffset()*mr),yr)-1;break;case"minute":t=this._d.valueOf(),t+=mr-br(t,mr)-1;break;case"second":t=this._d.valueOf(),t+=vr-br(t,vr)-1}return this._d.setTime(t),me.updateOffset(this,!0),this},kr.format=function(e){e||(e=this.isUtc()?me.defaultFormatUtc:me.defaultFormat);var t=$e(this,e);return this.localeData().postformat(t)},kr.from=function(e,t){return this.isValid()&&(xe(e)&&e.isValid()||Nn(e).isValid())?tr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kr.fromNow=function(e){return this.from(Nn(),e)},kr.to=function(e,t){return this.isValid()&&(xe(e)&&e.isValid()||Nn(e).isValid())?tr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kr.toNow=function(e){return this.to(Nn(),e)},kr.get=function(e){return Ie(this[e=Je(e)])?this[e]():this},kr.invalidAt=function(){return _e(this).overflow},kr.isAfter=function(e,t){var n=xe(e)?e:Nn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=Je(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},kr.isBefore=function(e,t){var n=xe(e)?e:Nn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=Je(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},kr.isBetween=function(e,t,n,r){var c=xe(e)?e:Nn(e),o=xe(t)?t:Nn(t);return!!(this.isValid()&&c.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(c,n):!this.isBefore(c,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},kr.isSame=function(e,t){var n,r=xe(e)?e:Nn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=Je(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},kr.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},kr.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},kr.isValid=function(){return Se(this)},kr.lang=pr,kr.locale=fr,kr.localeData=dr,kr.max=Fn,kr.min=In,kr.parsingFlags=function(){return Oe({},_e(this))},kr.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)be(e,t)&&n.push({unit:t,priority:tt[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=et(e)),c=r.length;for(n=0;n<c;n++)this[r[n].unit](e[r[n].unit])}else if(Ie(this[e=Je(e)]))return this[e](t);return this},kr.startOf=function(e){var t,n;if(void 0===(e=Je(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Mr:zr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=br(t+(this._isUTC?0:this.utcOffset()*mr),yr);break;case"minute":t=this._d.valueOf(),t-=br(t,mr);break;case"second":t=this._d.valueOf(),t-=br(t,vr)}return this._d.setTime(t),me.updateOffset(this,!0),this},kr.subtract=ar,kr.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},kr.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()}},kr.toDate=function(){return new Date(this.valueOf())},kr.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$e(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ie(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e