MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/public_html/wp-content/plugins/content-aware-sidebars/assets/js/flatpickr.min.js
/*! flatpickr v3.0.6, @license MIT */
function FlatpickrInstance(e,t){function c(e){return e.bind(Z)}function s(e){Z.config.noCalendar&&!Z.selectedDates.length&&(Z.selectedDates=[Z.now]),function(e){e.preventDefault();var t="keydown"===e.type,n=(e.type,e.type,e.target);if(Z.amPM&&e.target===Z.amPM)return e.target.textContent=["AM","PM"]["AM"===e.target.textContent|0];var a=Number(n.min),i=Number(n.max),r=Number(n.step),o=parseInt(n.value,10),l=o+r*(e.delta||(t?38===e.which?1:-1:Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))||0));void 0!==n.value&&2===n.value.length&&(t=n===Z.hourElement,e=n===Z.minuteElement,l<a?(l=i+l+!t+(t&&!Z.amPM),e&&h(null,-1,Z.hourElement)):i<l&&(l=n===Z.hourElement?l-i-!Z.amPM:a,e&&h(null,1,Z.hourElement)),Z.amPM&&t&&(1===r?l+o===23:Math.abs(l-o)>r)&&(Z.amPM.textContent="PM"===Z.amPM.textContent?"AM":"PM"),n.value=Z.pad(l))}(e),Z.selectedDates.length&&(!Z.minDateHasTime||"input"!==e.type||2<=e.target.value.length?(d(),B()):setTimeout(function(){d(),B()},1e3))}function d(){var e,t,n;Z.config.enableTime&&(e=(parseInt(Z.hourElement.value,10)||0)%(Z.amPM?12:24),t=(parseInt(Z.minuteElement.value,10)||0)%60,n=Z.config.enableSeconds?(parseInt(Z.secondElement.value,10)||0)%60:0,void 0!==Z.amPM&&(e=e%12+12*("PM"===Z.amPM.textContent)),Z.minDateHasTime&&0===V(Z.latestSelectedDateObj,Z.config.minDate)&&(e=Math.max(e,Z.config.minDate.getHours()))===Z.config.minDate.getHours()&&(t=Math.max(t,Z.config.minDate.getMinutes())),Z.maxDateHasTime&&0===V(Z.latestSelectedDateObj,Z.config.maxDate)&&(e=Math.min(e,Z.config.maxDate.getHours()))===Z.config.maxDate.getHours()&&(t=Math.min(t,Z.config.maxDate.getMinutes())),a(e,t,n))}function i(e){e=e||Z.latestSelectedDateObj;e&&a(e.getHours(),e.getMinutes(),e.getSeconds())}function a(e,t,n){Z.selectedDates.length&&Z.latestSelectedDateObj.setHours(e%24,t,n||0,0),Z.config.enableTime&&!Z.isMobile&&(Z.hourElement.value=Z.pad(Z.config.time_24hr?e:(12+e)%12+12*(e%12==0)),Z.minuteElement.value=Z.pad(t),Z.config.time_24hr||(Z.amPM.textContent=12<=e?"PM":"AM"),!0===Z.config.enableSeconds&&(Z.secondElement.value=Z.pad(n)))}function n(e){var t=e.target.value;e.delta&&(t=(parseInt(t)+e.delta).toString()),4!==t.length&&"Enter"!==e.key||(Z.currentYearElement.blur(),/[^\d]/.test(t)||N(t))}function r(t,n,a){return n instanceof Array?n.forEach(function(e){return r(t,e,a)}):t instanceof Array?t.forEach(function(e){return r(e,n,a)}):(t.addEventListener(n,a),void Z._handlers.push({element:t,event:n,handler:a}))}function o(t){return function(e){return 1===e.which&&t(e)}}function l(){if(Z._handlers=[],Z._animationLoop=[],Z.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(Z.element.querySelectorAll("[data-"+t+"]"),function(e){return r(e,"mousedown",o(Z[t]))})}),Z.isMobile)return function(){var e=Z.config.enableTime?Z.config.noCalendar?"time":"datetime-local":"date";Z.mobileInput=U("input",Z.input.className+" flatpickr-mobile"),Z.mobileInput.step="any",Z.mobileInput.tabIndex=1,Z.mobileInput.type=e,Z.mobileInput.disabled=Z.input.disabled,Z.mobileInput.placeholder=Z.input.placeholder,Z.mobileFormatStr="datetime-local"==e?"Y-m-d\\TH:i:S":"date"==e?"Y-m-d":"H:i:S",Z.selectedDates.length&&(Z.mobileInput.defaultValue=Z.mobileInput.value=Z.formatDate(Z.selectedDates[0],Z.mobileFormatStr)),Z.config.minDate&&(Z.mobileInput.min=Z.formatDate(Z.config.minDate,"Y-m-d")),Z.config.maxDate&&(Z.mobileInput.max=Z.formatDate(Z.config.maxDate,"Y-m-d")),Z.input.type="hidden",Z.config.altInput&&(Z.altInput.type="hidden");try{Z.input.parentNode.insertBefore(Z.mobileInput,Z.input.nextSibling)}catch(e){}Z.mobileInput.addEventListener("change",function(e){Z.setDate(e.target.value,!1,Z.mobileFormatStr),j("Change"),j("Close")})}(),0;Z.debouncedResize=G(S,50),Z.triggerChange=function(){j("Change")},Z.debouncedChange=G(Z.triggerChange,300),"range"===Z.config.mode&&Z.daysContainer&&r(Z.daysContainer,"mouseover",function(e){return I(e.target)}),r(window.document.body,"keydown",T),Z.config.static||r(Z._input,"keydown",T),Z.config.inline||Z.config.static||r(window,"resize",Z.debouncedResize),void 0!==window.ontouchstart&&r(window.document,"touchstart",E),r(window.document,"mousedown",o(E)),r(Z._input,"blur",E),!0===Z.config.clickOpens&&(r(Z._input,"focus",Z.open),r(Z._input,"mousedown",o(Z.open))),Z.config.noCalendar||(Z.monthNav.addEventListener("wheel",function(e){return e.preventDefault()}),r(Z.monthNav,"wheel",G(J,10)),r(Z.monthNav,"mousedown",o(K)),r(Z.monthNav,["keyup","increment"],n),r(Z.daysContainer,"mousedown",o(A)),Z.config.animate&&(r(Z.daysContainer,["webkitAnimationEnd","animationend"],f),r(Z.monthNav,["webkitAnimationEnd","animationend"],m))),Z.config.enableTime&&(r(Z.timeContainer,["wheel","input","increment"],s),r(Z.timeContainer,"mousedown",o(p)),r(Z.timeContainer,["wheel","increment"],Z.debouncedChange),r(Z.timeContainer,"input",Z.triggerChange),r([Z.hourElement,Z.minuteElement],"focus",function(e){return e.target.select()}),void 0!==Z.secondElement&&r(Z.secondElement,"focus",function(){return Z.secondElement.select()}),void 0!==Z.amPM&&r(Z.amPM,"mousedown",o(function(e){s(e),Z.triggerChange(e)})))}function u(){for(var e=Z._animationLoop.length;e--;)Z._animationLoop[e](),Z._animationLoop.splice(e,1)}function f(e){if(1<Z.daysContainer.childNodes.length)switch(e.animationName){case"fpSlideLeft":Z.daysContainer.lastChild.classList.remove("slideLeftNew"),Z.daysContainer.removeChild(Z.daysContainer.firstChild),Z.days=Z.daysContainer.firstChild,u();break;case"fpSlideRight":Z.daysContainer.firstChild.classList.remove("slideRightNew"),Z.daysContainer.removeChild(Z.daysContainer.lastChild),Z.days=Z.daysContainer.firstChild,u()}}function m(e){switch(e.animationName){case"fpSlideLeftNew":case"fpSlideRightNew":Z.navigationCurrentMonth.classList.remove("slideLeftNew"),Z.navigationCurrentMonth.classList.remove("slideRightNew");for(var t=Z.navigationCurrentMonth;t.nextSibling&&/curr/.test(t.nextSibling.className);)Z.monthNav.removeChild(t.nextSibling);for(;t.previousSibling&&/curr/.test(t.previousSibling.className);)Z.monthNav.removeChild(t.previousSibling);Z.oldCurMonth=null}}function g(e){e=e?Z.parseDate(e):Z.latestSelectedDateObj||(Z.config.minDate>Z.now?Z.config.minDate:Z.config.maxDate&&Z.config.maxDate<Z.now?Z.config.maxDate:Z.now);try{Z.currentYear=e.getFullYear(),Z.currentMonth=e.getMonth()}catch(e){}Z.redraw()}function p(e){~e.target.className.indexOf("arrow")&&h(e,e.target.classList.contains("arrowUp")?1:-1)}function h(e,t,n){n=n||e.target.parentNode.childNodes[0],e=H("increment");e.delta=t,n.dispatchEvent(e)}function D(e){var t=U("div","numInputWrapper"),n=U("input","numInput "+e),a=U("span","arrowUp"),e=U("span","arrowDown");return n.type="text",n.pattern="\\d*",t.appendChild(n),t.appendChild(a),t.appendChild(e),t}function v(){var e=window.document.createDocumentFragment();Z.calendarContainer=U("div","flatpickr-calendar"),Z.calendarContainer.tabIndex=-1,Z.config.noCalendar||(e.appendChild(function(){var e=window.document.createDocumentFragment();Z.monthNav=U("div","flatpickr-month"),Z.prevMonthNav=U("span","flatpickr-prev-month"),Z.prevMonthNav.innerHTML=Z.config.prevArrow,Z.currentMonthElement=U("span","cur-month"),Z.currentMonthElement.title=Z.l10n.scrollTitle;var t=D("cur-year");return Z.currentYearElement=t.childNodes[0],Z.currentYearElement.title=Z.l10n.scrollTitle,Z.config.minDate&&(Z.currentYearElement.min=Z.config.minDate.getFullYear()),Z.config.maxDate&&(Z.currentYearElement.max=Z.config.maxDate.getFullYear(),Z.currentYearElement.disabled=Z.config.minDate&&Z.config.minDate.getFullYear()===Z.config.maxDate.getFullYear()),Z.nextMonthNav=U("span","flatpickr-next-month"),Z.nextMonthNav.innerHTML=Z.config.nextArrow,Z.navigationCurrentMonth=U("span","flatpickr-current-month"),Z.navigationCurrentMonth.appendChild(Z.currentMonthElement),Z.navigationCurrentMonth.appendChild(t),e.appendChild(Z.prevMonthNav),e.appendChild(Z.navigationCurrentMonth),e.appendChild(Z.nextMonthNav),Z.monthNav.appendChild(e),Object.defineProperty(Z,"_hidePrevMonthArrow",{get:function(){return this.__hidePrevMonthArrow},set:function(e){this.__hidePrevMonthArrow!==e&&(Z.prevMonthNav.style.display=e?"none":"block"),this.__hidePrevMonthArrow=e}}),Object.defineProperty(Z,"_hideNextMonthArrow",{get:function(){return this.__hideNextMonthArrow},set:function(e){this.__hideNextMonthArrow!==e&&(Z.nextMonthNav.style.display=e?"none":"block"),this.__hideNextMonthArrow=e}}),W(),Z.monthNav}()),Z.innerContainer=U("div","flatpickr-innerContainer"),Z.config.weekNumbers&&Z.innerContainer.appendChild((Z.calendarContainer.classList.add("hasWeeks"),Z.weekWrapper=U("div","flatpickr-weekwrapper"),Z.weekWrapper.appendChild(U("span","flatpickr-weekday",Z.l10n.weekAbbreviation)),Z.weekNumbers=U("div","flatpickr-weeks"),Z.weekWrapper.appendChild(Z.weekNumbers),Z.weekWrapper)),Z.rContainer=U("div","flatpickr-rContainer"),Z.rContainer.appendChild(y()),Z.daysContainer||(Z.daysContainer=U("div","flatpickr-days"),Z.daysContainer.tabIndex=-1),M(),Z.rContainer.appendChild(Z.daysContainer),Z.innerContainer.appendChild(Z.rContainer),e.appendChild(Z.innerContainer)),Z.config.enableTime&&e.appendChild(function(){Z.calendarContainer.classList.add("hasTime"),Z.config.noCalendar&&Z.calendarContainer.classList.add("noCalendar"),Z.timeContainer=U("div","flatpickr-time"),Z.timeContainer.tabIndex=-1;var e=U("span","flatpickr-time-separator",":"),t=D("flatpickr-hour");Z.hourElement=t.childNodes[0];var n=D("flatpickr-minute");Z.minuteElement=n.childNodes[0],Z.hourElement.tabIndex=Z.minuteElement.tabIndex=-1,Z.hourElement.value=Z.pad(Z.latestSelectedDateObj?Z.latestSelectedDateObj.getHours():Z.config.defaultHour),Z.minuteElement.value=Z.pad(Z.latestSelectedDateObj?Z.latestSelectedDateObj.getMinutes():Z.config.defaultMinute),Z.hourElement.step=Z.config.hourIncrement,Z.minuteElement.step=Z.config.minuteIncrement,Z.hourElement.min=Z.config.time_24hr?0:1,Z.hourElement.max=Z.config.time_24hr?23:12,Z.minuteElement.min=0,Z.minuteElement.max=59,Z.hourElement.title=Z.minuteElement.title=Z.l10n.scrollTitle,Z.timeContainer.appendChild(t),Z.timeContainer.appendChild(e),Z.timeContainer.appendChild(n),Z.config.time_24hr&&Z.timeContainer.classList.add("time24hr"),Z.config.enableSeconds&&(Z.timeContainer.classList.add("hasSeconds"),n=D("flatpickr-second"),Z.secondElement=n.childNodes[0],Z.secondElement.value=Z.latestSelectedDateObj?Z.pad(Z.latestSelectedDateObj.getSeconds()):"00",Z.secondElement.step=Z.minuteElement.step,Z.secondElement.min=Z.minuteElement.min,Z.secondElement.max=Z.minuteElement.max,Z.timeContainer.appendChild(U("span","flatpickr-time-separator",":")),Z.timeContainer.appendChild(n));return Z.config.time_24hr||(Z.amPM=U("span","flatpickr-am-pm",["AM","PM"][11<Z.hourElement.value|0]),Z.amPM.title=Z.l10n.toggleTitle,Z.amPM.tabIndex=-1,Z.timeContainer.appendChild(Z.amPM)),Z.timeContainer}()),q(Z.calendarContainer,"rangeMode","range"===Z.config.mode),q(Z.calendarContainer,"animate",Z.config.animate),Z.calendarContainer.appendChild(e);var t=Z.config.appendTo&&Z.config.appendTo.nodeType;if(Z.config.inline||Z.config.static){if(Z.calendarContainer.classList.add(Z.config.inline?"inline":"static"),Z.config.inline&&!t)return Z.element.parentNode.insertBefore(Z.calendarContainer,Z._input.nextSibling);if(Z.config.static){e=U("div","flatpickr-wrapper");return Z.element.parentNode.insertBefore(e,Z.element),e.appendChild(Z.element),Z.altInput&&e.appendChild(Z.altInput),e.appendChild(Z.calendarContainer),0}}(t?Z.config.appendTo:window.document.body).appendChild(Z.calendarContainer)}function C(e,t,n,a){var i=_(t,!0),r=U("span","flatpickr-day "+e,t.getDate());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",Z.formatDate(t,Z.config.ariaDateFormat)),0===V(t,Z.now)&&(Z.todayDateElem=r).classList.add("today"),i?(r.tabIndex=-1,R(t)&&(r.classList.add("selected"),Z.selectedDateElem=r,"range"===Z.config.mode&&(q(r,"startRange",0===V(t,Z.selectedDates[0])),q(r,"endRange",0===V(t,Z.selectedDates[1]))))):(r.classList.add("disabled"),Z.selectedDates[0]&&t>Z.minRangeDate&&t<Z.selectedDates[0]?Z.minRangeDate=t:Z.selectedDates[0]&&t<Z.maxRangeDate&&t>Z.selectedDates[0]&&(Z.maxRangeDate=t)),"range"===Z.config.mode&&(i=t,!("range"!==Z.config.mode||Z.selectedDates.length<2)&&0<=V(i,Z.selectedDates[0])&&V(i,Z.selectedDates[1])<=0&&!R(t)&&r.classList.add("inRange"),1===Z.selectedDates.length&&(t<Z.minRangeDate||t>Z.maxRangeDate)&&r.classList.add("notAllowed")),Z.config.weekNumbers&&"prevMonthDay"!==e&&n%7==1&&Z.weekNumbers.insertAdjacentHTML("beforeend","<span class='disabled flatpickr-day'>"+Z.config.getWeek(t)+"</span>"),j("DayCreate",r),r}function w(e,t){var n=e+t||0,a=void 0!==e?Z.days.childNodes[n]:Z.selectedDateElem||Z.todayDateElem||Z.days.childNodes[0],e=function(){(a=a||Z.days.childNodes[n]).focus(),"range"===Z.config.mode&&I(a)};if(void 0===a&&0!==t)return 0<t?(Z.changeMonth(1),n%=42):t<0&&(Z.changeMonth(-1),n+=42),b(e);e()}function b(e){if(!0===Z.config.animate)return Z._animationLoop.push(e);e()}function M(e){var t=(new Date(Z.currentYear,Z.currentMonth,1).getDay()-Z.l10n.firstDayOfWeek+7)%7,n="range"===Z.config.mode;Z.prevMonthDays=Z.utils.getDaysinMonth((Z.currentMonth-1+12)%12),Z.selectedDateElem=void 0,Z.todayDateElem=void 0;var a=Z.utils.getDaysinMonth(),i=window.document.createDocumentFragment(),r=Z.prevMonthDays+1-t,o=0;for(Z.config.weekNumbers&&Z.weekNumbers.firstChild&&(Z.weekNumbers.textContent=""),n&&(Z.minRangeDate=new Date(Z.currentYear,Z.currentMonth-1,r),Z.maxRangeDate=new Date(Z.currentYear,Z.currentMonth+1,(42-t)%a));r<=Z.prevMonthDays;r++,o++)i.appendChild(C("prevMonthDay",new Date(Z.currentYear,Z.currentMonth-1,r),r,o));for(r=1;r<=a;r++,o++)i.appendChild(C("",new Date(Z.currentYear,Z.currentMonth,r),r,o));for(var l=a+1;l<=42-t;l++,o++)i.appendChild(C("nextMonthDay",new Date(Z.currentYear,Z.currentMonth+1,l%a),l,o));n&&1===Z.selectedDates.length&&i.childNodes[0]?(Z._hidePrevMonthArrow=Z._hidePrevMonthArrow||Z.minRangeDate>i.childNodes[0].dateObj,Z._hideNextMonthArrow=Z._hideNextMonthArrow||Z.maxRangeDate<new Date(Z.currentYear,Z.currentMonth+1,1)):W();n=U("div","dayContainer");if(n.appendChild(i),Z.config.animate&&void 0!==e)for(;1<Z.daysContainer.childNodes.length;)Z.daysContainer.removeChild(Z.daysContainer.firstChild);else!function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(Z.daysContainer);return 0<=e?Z.daysContainer.appendChild(n):Z.daysContainer.insertBefore(n,Z.daysContainer.firstChild),Z.days=Z.daysContainer.firstChild,Z.daysContainer}function y(){Z.weekdayContainer||(Z.weekdayContainer=U("div","flatpickr-weekdays"));var e=Z.l10n.firstDayOfWeek,t=Z.l10n.weekdays.shorthand.slice();return 0<e&&e<t.length&&(t=[].concat(t.splice(e,t.length),t.splice(0,e))),Z.weekdayContainer.innerHTML="\n\t\t<span class=flatpickr-weekday>\n\t\t\t"+t.join("</span><span class=flatpickr-weekday>")+"\n\t\t</span>\n\t\t",Z.weekdayContainer}function k(e,t,n){e=(t=void 0===t||t)?e:e-Z.currentMonth,n=!Z.config.animate||!1===n;if(!(e<0&&Z._hidePrevMonthArrow||0<e&&Z._hideNextMonthArrow)){if(Z.currentMonth+=e,(Z.currentMonth<0||11<Z.currentMonth)&&(Z.currentYear+=11<Z.currentMonth?1:-1,Z.currentMonth=(Z.currentMonth+12)%12,j("YearChange")),M(n?void 0:e),n)return j("MonthChange"),W();var a,i=Z.navigationCurrentMonth;if(e<0)for(;i.nextSibling&&/curr/.test(i.nextSibling.className);)Z.monthNav.removeChild(i.nextSibling);else if(0<e)for(;i.previousSibling&&/curr/.test(i.previousSibling.className);)Z.monthNav.removeChild(i.previousSibling);Z.oldCurMonth=Z.navigationCurrentMonth,Z.navigationCurrentMonth=Z.monthNav.insertBefore(Z.oldCurMonth.cloneNode(!0),0<e?Z.oldCurMonth.nextSibling:Z.oldCurMonth),0<e?(Z.daysContainer.firstChild.classList.add("slideLeft"),Z.daysContainer.lastChild.classList.add("slideLeftNew"),Z.oldCurMonth.classList.add("slideLeft"),Z.navigationCurrentMonth.classList.add("slideLeftNew")):e<0&&(Z.daysContainer.firstChild.classList.add("slideRightNew"),Z.daysContainer.lastChild.classList.add("slideRight"),Z.oldCurMonth.classList.add("slideRight"),Z.navigationCurrentMonth.classList.add("slideRightNew")),Z.currentMonthElement=Z.navigationCurrentMonth.firstChild,Z.currentYearElement=Z.navigationCurrentMonth.lastChild.childNodes[0],W(),Z.oldCurMonth.firstChild.textContent=Z.utils.monthToStr(Z.currentMonth-e),j("MonthChange"),document.activeElement&&document.activeElement.$i&&(a=document.activeElement.$i,b(function(){w(a,0)}))}}function x(e){return!(!Z.config.appendTo||!Z.config.appendTo.contains(e))||Z.calendarContainer.contains(e)}function E(e){var t,n;Z.isOpen&&!Z.config.inline&&(t=x(e.target),n=e.target===Z.input||e.target===Z.altInput||Z.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(Z.input)||~e.path.indexOf(Z.altInput)),("blur"===e.type?!n||!e.relatedTarget||x(e.relatedTarget):n||t)||-1!==Z.config.ignoredFocusElements.indexOf(e.target)||(Z.close(),"range"===Z.config.mode&&1===Z.selectedDates.length&&(Z.clear(!1),Z.redraw())))}function N(e){var t;!e||Z.currentYearElement.min&&e<Z.currentYearElement.min||Z.currentYearElement.max&&e>Z.currentYearElement.max||(t=parseInt(e,10),e=Z.currentYear!==t,Z.currentYear=t||Z.currentYear,Z.config.maxDate&&Z.currentYear===Z.config.maxDate.getFullYear()?Z.currentMonth=Math.min(Z.config.maxDate.getMonth(),Z.currentMonth):Z.config.minDate&&Z.currentYear===Z.config.minDate.getFullYear()&&(Z.currentMonth=Math.max(Z.config.minDate.getMonth(),Z.currentMonth)),e&&(Z.redraw(),j("YearChange")))}function _(e,t){if(Z.config.minDate&&V(e,Z.config.minDate,void 0!==t?t:!Z.minDateHasTime)<0||Z.config.maxDate&&0<V(e,Z.config.maxDate,void 0!==t?t:!Z.maxDateHasTime))return!1;if(!Z.config.enable.length&&!Z.config.disable.length)return!0;for(var n,a=Z.parseDate(e,null,!0),i=0<Z.config.enable.length,r=i?Z.config.enable:Z.config.disable,o=0;o<r.length;o++){if((n=r[o])instanceof Function&&n(a))return i;if(n instanceof Date&&n.getTime()===a.getTime())return i;if("string"==typeof n&&Z.parseDate(n,null,!0).getTime()===a.getTime())return i;if("object"===(void 0===n?"undefined":_typeof(n))&&n.from&&n.to&&a>=n.from&&a<=n.to)return i}return!i}function T(e){var t=e.target===Z._input,n=x(e.target),a=Z.config.allowInput,i=Z.isOpen&&(!a||!t),r=Z.config.inline&&t&&!a;if("Enter"===e.key&&a&&t)return Z.setDate(Z._input.value,!0,e.target===Z.altInput?Z.config.altFormat:Z.config.dateFormat),e.target.blur();if(n||i||r){var o=Z.timeContainer&&Z.timeContainer.contains(e.target);switch(e.key){case"Enter":o?B():A(e);break;case"Escape":e.preventDefault(),Z.close();break;case"ArrowLeft":case"ArrowRight":o||(e.preventDefault(),Z.daysContainer?(l="ArrowRight"===e.key?1:-1,e.ctrlKey?k(l,!0):w(e.target.$i,l)):Z.config.enableTime&&!o&&Z.hourElement.focus());break;case"ArrowUp":case"ArrowDown":e.preventDefault();var l="ArrowDown"===e.key?1:-1;Z.daysContainer?e.ctrlKey?(N(Z.currentYear-l),w(e.target.$i,0)):o||w(e.target.$i,7*l):Z.config.enableTime&&(o||Z.hourElement.focus(),s(e));break;case"Tab":e.target===Z.hourElement?(e.preventDefault(),Z.minuteElement.select()):e.target===Z.minuteElement&&(Z.secondElement||Z.amPM)?(e.preventDefault(),(Z.secondElement||Z.amPM).focus()):e.target===Z.secondElement&&(e.preventDefault(),Z.amPM.focus());break;case"a":e.target===Z.amPM&&(Z.amPM.textContent="AM",d(),B());break;case"p":e.target===Z.amPM&&(Z.amPM.textContent="PM",d(),B())}j("KeyDown",e)}}function I(i){if(1===Z.selectedDates.length&&i.classList.contains("flatpickr-day")){for(var r=i.dateObj,o=Z.parseDate(Z.selectedDates[0],null,!0),l=Math.min(r.getTime(),Z.selectedDates[0].getTime()),c=Math.max(r.getTime(),Z.selectedDates[0].getTime()),s=!1,e=l;e<c;e+=Z.utils.duration.DAY)if(!_(new Date(e))){s=!0;break}for(var t=Z.days.childNodes[0].dateObj.getTime(),n=0;n<42;n++,t+=Z.utils.duration.DAY)!function(e,t){var n=e<Z.minRangeDate.getTime()||e>Z.maxRangeDate.getTime(),a=Z.days.childNodes[t];if(n)return Z.days.childNodes[t].classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){a.classList.remove(e)});if(s&&!n)return;["startRange","inRange","endRange","notAllowed"].forEach(function(e){a.classList.remove(e)});t=Math.max(Z.minRangeDate.getTime(),l),n=Math.min(Z.maxRangeDate.getTime(),c);i.classList.add(r<Z.selectedDates[0]?"startRange":"endRange"),o<r&&e===o.getTime()?a.classList.add("startRange"):r<o&&e===o.getTime()&&a.classList.add("endRange"),t<=e&&e<=n&&a.classList.add("inRange")}(t,n)}}function S(){!Z.isOpen||Z.config.static||Z.config.inline||Y()}function F(a){return function(e){var t=Z.config["_"+a+"Date"]=Z.parseDate(e),n=Z.config["_"+("min"===a?"max":"min")+"Date"],e=e&&t instanceof Date;e&&(Z[a+"DateHasTime"]=t.getHours()||t.getMinutes()||t.getSeconds()),Z.selectedDates&&(Z.selectedDates=Z.selectedDates.filter(function(e){return _(e)}),Z.selectedDates.length||"min"!==a||i(t),B()),Z.daysContainer&&(O(),e?Z.currentYearElement[a]=t.getFullYear():Z.currentYearElement.removeAttribute(a),Z.currentYearElement.disabled=n&&t&&n.getFullYear()===t.getFullYear())}}function Y(e){var t,n,a,i,r,o=0<arguments.length&&void 0!==e?e:Z._positionElement;void 0!==Z.calendarContainer&&(t=Z.calendarContainer.offsetHeight,r=Z.calendarContainer.offsetWidth,n=Z.config.position,i=o.getBoundingClientRect(),a=window.innerHeight-i.bottom,a="above"===n||"below"!==n&&a<t&&i.top>t,o=window.pageYOffset+i.top+(a?-t-2:o.offsetHeight+2),q(Z.calendarContainer,"arrowTop",!a),q(Z.calendarContainer,"arrowBottom",a),Z.config.inline||(a=window.pageXOffset+i.left,i=window.document.body.offsetWidth-i.right,r=a+r>window.document.body.offsetWidth,q(Z.calendarContainer,"rightMost",r),Z.config.static||(Z.calendarContainer.style.top=o+"px",r?(Z.calendarContainer.style.left="auto",Z.calendarContainer.style.right=i+"px"):(Z.calendarContainer.style.left=a+"px",Z.calendarContainer.style.right="auto"))))}function O(){Z.config.noCalendar||Z.isMobile||(y(),W(),M())}function A(e){var t,n,a;e.preventDefault(),e.stopPropagation(),!e.target.classList.contains("flatpickr-day")||e.target.classList.contains("disabled")||e.target.classList.contains("notAllowed")||(a=(t=Z.latestSelectedDateObj=new Date(e.target.dateObj.getTime())).getMonth()!==Z.currentMonth&&"range"!==Z.config.mode,Z.selectedDateElem=e.target,"single"===Z.config.mode?Z.selectedDates=[t]:"multiple"===Z.config.mode?(n=R(t))?Z.selectedDates.splice(n,1):Z.selectedDates.push(t):"range"===Z.config.mode&&(2===Z.selectedDates.length&&Z.clear(),Z.selectedDates.push(t),0!==V(t,Z.selectedDates[0],!0)&&Z.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})),d(),a&&(n=Z.currentYear!==t.getFullYear(),Z.currentYear=t.getFullYear(),Z.currentMonth=t.getMonth(),n&&j("YearChange"),j("MonthChange")),M(),Z.minDateHasTime&&Z.config.enableTime&&0===V(t,Z.config.minDate)&&i(Z.config.minDate),B(),Z.config.enableTime&&setTimeout(function(){return Z.showTimeInput=!0},50),"range"===Z.config.mode&&(1===Z.selectedDates.length?(I(e.target),Z._hidePrevMonthArrow=Z._hidePrevMonthArrow||Z.minRangeDate>Z.days.childNodes[0].dateObj,Z._hideNextMonthArrow=Z._hideNextMonthArrow||Z.maxRangeDate<new Date(Z.currentYear,Z.currentMonth+1,1)):W()),j("Change"),a?b(function(){return Z.selectedDateElem.focus()}):w(e.target.$i,0),Z.config.enableTime&&setTimeout(function(){return Z.hourElement.select()},451),Z.config.closeOnSelect&&(a="single"===Z.config.mode&&!Z.config.enableTime,e="range"===Z.config.mode&&2===Z.selectedDates.length&&!Z.config.enableTime,(a||e)&&Z.close()))}function L(e,t){if(e instanceof Array)Z.selectedDates=e.map(function(e){return Z.parseDate(e,t)});else if(e instanceof Date||!isNaN(e))Z.selectedDates=[Z.parseDate(e,t)];else if(e&&e.substring)switch(Z.config.mode){case"single":Z.selectedDates=[Z.parseDate(e,t)];break;case"multiple":Z.selectedDates=e.split("; ").map(function(e){return Z.parseDate(e,t)});break;case"range":Z.selectedDates=e.split(Z.l10n.rangeSeparator).map(function(e){return Z.parseDate(e,t)})}Z.selectedDates=Z.selectedDates.filter(function(e){return e instanceof Date&&_(e,!1)}),Z.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function P(e){for(var t=e.length;t--;)"string"==typeof e[t]||+e[t]?e[t]=Z.parseDate(e[t],null,!0):e[t]&&e[t].from&&e[t].to&&(e[t].from=Z.parseDate(e[t].from),e[t].to=Z.parseDate(e[t].to));return e.filter(function(e){return e})}function j(e,t){var n=Z.config["on"+e];if(void 0!==n&&0<n.length)for(var a=0;n[a]&&a<n.length;a++)n[a](Z.selectedDates,Z.input.value,Z,t);"Change"===e&&(Z.input.dispatchEvent(H("change")),Z.input.dispatchEvent(H("input")))}function H(e){return Z._supportsEvents?new Event(e,{bubbles:!0}):(Z._[e+"Event"]=document.createEvent("Event"),Z._[e+"Event"].initEvent(e,!0,!0),Z._[e+"Event"])}function R(e){for(var t=0;t<Z.selectedDates.length;t++)if(0===V(Z.selectedDates[t],e))return""+t;return!1}function W(){Z.config.noCalendar||Z.isMobile||!Z.monthNav||(Z.currentMonthElement.textContent=Z.utils.monthToStr(Z.currentMonth)+" ",Z.currentYearElement.value=Z.currentYear,Z._hidePrevMonthArrow=Z.config.minDate&&(Z.currentYear===Z.config.minDate.getFullYear()?Z.currentMonth<=Z.config.minDate.getMonth():Z.currentYear<Z.config.minDate.getFullYear()),Z._hideNextMonthArrow=Z.config.maxDate&&(Z.currentYear===Z.config.maxDate.getFullYear()?Z.currentMonth+1>Z.config.maxDate.getMonth():Z.currentYear>Z.config.maxDate.getFullYear()))}function B(e){if(!Z.selectedDates.length)return Z.clear(e);Z.isMobile&&(Z.mobileInput.value=Z.selectedDates.length?Z.formatDate(Z.latestSelectedDateObj,Z.mobileFormatStr):"");var t="range"!==Z.config.mode?"; ":Z.l10n.rangeSeparator;Z.input.value=Z.selectedDates.map(function(e){return Z.formatDate(e,Z.config.dateFormat)}).join(t),Z.config.altInput&&(Z.altInput.value=Z.selectedDates.map(function(e){return Z.formatDate(e,Z.config.altFormat)}).join(t)),!1!==e&&j("ValueUpdate")}function J(e){e.preventDefault();var t,n=Z.currentYearElement.parentNode.contains(e.target);e.target!==Z.currentMonthElement&&!n||(t=e,t=Math.max(-1,Math.min(1,t.wheelDelta||-t.deltaY)),n?(N(Z.currentYear+t),e.target.value=Z.currentYear):Z.changeMonth(t,!0,!1))}function K(e){var t=Z.prevMonthNav.contains(e.target),n=Z.nextMonthNav.contains(e.target);t||n?k(t?-1:1):e.target===Z.currentYearElement?(e.preventDefault(),Z.currentYearElement.select()):"arrowUp"===e.target.className?Z.changeYear(Z.currentYear+1):"arrowDown"===e.target.className&&Z.changeYear(Z.currentYear-1)}function U(e,t,n){e=window.document.createElement(e);return t=t||"",n=n||"",e.className=t,void 0!==n&&(e.textContent=n),e}function z(e){return e instanceof Array?e:[e]}function q(e,t,n){if(n)return e.classList.add(t);e.classList.remove(t)}function G(n,a,i){var r=void 0;return function(){var e=this,t=arguments;clearTimeout(r),r=setTimeout(function(){r=null,i||n.apply(e,t)},a),i&&!r&&n.apply(e,t)}}function V(e,t,n){return e instanceof Date&&t instanceof Date&&(!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime())}var Z=this;return Z._={},Z._.afterDayAnim=b,Z._bind=r,Z._compareDates=V,Z._setHoursFromDate=i,Z.changeMonth=k,Z.changeYear=N,Z.clear=function(e){Z.input.value="",Z.altInput&&(Z.altInput.value=""),Z.mobileInput&&(Z.mobileInput.value=""),Z.selectedDates=[],Z.latestSelectedDateObj=void 0,Z.showTimeInput=!1,Z.redraw(),!1!==e&&j("Change")},Z.close=function(){Z.isOpen=!1,Z.isMobile||(Z.calendarContainer.classList.remove("open"),Z._input.classList.remove("active")),j("Close")},Z._createElement=U,Z.destroy=function(){void 0!==Z.config&&j("Destroy");for(var e=Z._handlers.length;e--;){var t=Z._handlers[e];t.element.removeEventListener(t.event,t.handler)}Z._handlers=[],Z.mobileInput?(Z.mobileInput.parentNode&&Z.mobileInput.parentNode.removeChild(Z.mobileInput),Z.mobileInput=null):Z.calendarContainer&&Z.calendarContainer.parentNode&&Z.calendarContainer.parentNode.removeChild(Z.calendarContainer),Z.altInput&&(Z.input.type="text",Z.altInput.parentNode&&Z.altInput.parentNode.removeChild(Z.altInput),delete Z.altInput),Z.input&&(Z.input.type=Z.input._type,Z.input.classList.remove("flatpickr-input"),Z.input.removeAttribute("readonly"),Z.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){return delete Z[e]})},Z.isEnabled=_,Z.jumpToDate=g,Z.open=function(e,t){if(Z.isMobile)return e&&(e.preventDefault(),e.target.blur()),setTimeout(function(){Z.mobileInput.click()},0),void j("Open");Z.isOpen||Z._input.disabled||Z.config.inline||(Z.isOpen=!0,Z.calendarContainer.classList.add("open"),Y(t),Z._input.classList.add("active"),j("Open"))},Z.redraw=O,Z.set=function(e,t){Z.config[e]=t,Z.redraw(),g()},Z.setDate=function(e,t,n){if(0!==e&&!e)return Z.clear(t);L(e,n),Z.showTimeInput=0<Z.selectedDates.length,Z.latestSelectedDateObj=Z.selectedDates[0],Z.redraw(),g(),i(),B(t),t&&j("Change")},Z.toggle=function(){if(Z.isOpen)return Z.close();Z.open()},Z.element=Z.input=e,Z.instanceConfig=t||{},Z.parseDate=FlatpickrInstance.prototype.parseDate.bind(Z),Z.formatDate=FlatpickrInstance.prototype.formatDate.bind(Z),Z.formats=Object.create(FlatpickrInstance.prototype.formats),["D","F","J","M","W","l"].forEach(function(e){Z.formats[e]=FlatpickrInstance.prototype.formats[e].bind(Z)}),Z.revFormat.F=FlatpickrInstance.prototype.revFormat.F.bind(Z),Z.revFormat.M=FlatpickrInstance.prototype.revFormat.M.bind(Z),function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange"];Z.config=Object.create(flatpickr.defaultConfig);var n=_extends({},Z.instanceConfig,JSON.parse(JSON.stringify(Z.element.dataset||{})));Z.config.parseDate=n.parseDate,Z.config.formatDate=n.formatDate,Object.defineProperty(Z.config,"enable",{get:function(){return Z.config._enable||[]},set:function(e){return Z.config._enable=P(e)}}),Object.defineProperty(Z.config,"disable",{get:function(){return Z.config._disable||[]},set:function(e){return Z.config._disable=P(e)}}),_extends(Z.config,n),!n.dateFormat&&n.enableTime&&(Z.config.dateFormat=Z.config.noCalendar?"H:i"+(Z.config.enableSeconds?":S":""):flatpickr.defaultConfig.dateFormat+" H:i"+(Z.config.enableSeconds?":S":"")),n.altInput&&n.enableTime&&!n.altFormat&&(Z.config.altFormat=Z.config.noCalendar?"h:i"+(Z.config.enableSeconds?":S K":" K"):flatpickr.defaultConfig.altFormat+" h:i"+(Z.config.enableSeconds?":S":"")+" K"),Object.defineProperty(Z.config,"minDate",{get:function(){return this._minDate},set:F("min")}),Object.defineProperty(Z.config,"maxDate",{get:function(){return this._maxDate},set:F("max")}),Z.config.minDate=n.minDate,Z.config.maxDate=n.maxDate;for(var a=0;a<e.length;a++)Z.config[e[a]]=!0===Z.config[e[a]]||"true"===Z.config[e[a]];for(var i=t.length;i--;)void 0!==Z.config[t[i]]&&(Z.config[t[i]]=z(Z.config[t[i]]||[]).map(c));for(var r=0;r<Z.config.plugins.length;r++){var o,l=Z.config.plugins[r](Z)||{};for(o in l)Z.config[o]instanceof Array||~t.indexOf(o)?Z.config[o]=z(l[o]).map(c).concat(Z.config[o]):void 0===n[o]&&(Z.config[o]=l[o])}j("ParseConfig")}(),"object"!==_typeof(Z.config.locale)&&flatpickr.l10ns[Z.config.locale],Z.l10n=_extends(Object.create(flatpickr.l10ns.default),"object"===_typeof(Z.config.locale)?Z.config.locale:"default"!==Z.config.locale&&flatpickr.l10ns[Z.config.locale]||{}),Z.input=Z.config.wrap?Z.element.querySelector("[data-input]"):Z.element,Z.input&&(Z.input._type=Z.input.type,Z.input.type="text",Z.input.classList.add("flatpickr-input"),Z._input=Z.input,Z.config.altInput&&(Z.altInput=U(Z.input.nodeName,Z.input.className+" "+Z.config.altInputClass),Z._input=Z.altInput,Z.altInput.placeholder=Z.input.placeholder,Z.altInput.disabled=Z.input.disabled,Z.altInput.required=Z.input.required,Z.altInput.type="text",Z.input.type="hidden",!Z.config.static&&Z.input.parentNode&&Z.input.parentNode.insertBefore(Z.altInput,Z.input.nextSibling)),Z.config.allowInput||Z._input.setAttribute("readonly","readonly"),Z._positionElement=Z.config.positionElement||Z._input),function(){Z.selectedDates=[],Z.now=new Date;var e=Z.config.defaultDate||Z.input.value;e&&L(e,Z.config.dateFormat),e=Z.selectedDates.length?Z.selectedDates[0]:Z.config.minDate&&Z.config.minDate.getTime()>Z.now?Z.config.minDate:Z.config.maxDate&&Z.config.maxDate.getTime()<Z.now?Z.config.maxDate:Z.now,Z.currentYear=e.getFullYear(),Z.currentMonth=e.getMonth(),Z.selectedDates.length&&(Z.latestSelectedDateObj=Z.selectedDates[0]),Z.minDateHasTime=Z.config.minDate&&(Z.config.minDate.getHours()||Z.config.minDate.getMinutes()||Z.config.minDate.getSeconds()),Z.maxDateHasTime=Z.config.maxDate&&(Z.config.maxDate.getHours()||Z.config.maxDate.getMinutes()||Z.config.maxDate.getSeconds()),Object.defineProperty(Z,"latestSelectedDateObj",{get:function(){return Z._selectedDateObj||Z.selectedDates[Z.selectedDates.length-1]},set:function(e){Z._selectedDateObj=e}}),Z.isMobile||Object.defineProperty(Z,"showTimeInput",{get:function(){return Z._showTimeInput},set:function(e){Z._showTimeInput=e,Z.calendarContainer&&q(Z.calendarContainer,"showTimeInput",e),Y()}})}(),Z.utils={duration:{DAY:864e5},getDaysinMonth:function(e,t){return e=void 0===e?Z.currentMonth:e,t=void 0===t?Z.currentYear:t,1===e&&(t%4==0&&t%100!=0||t%400==0)?29:Z.l10n.daysInMonth[e]},monthToStr:function(e,t){return t=void 0===t?Z.config.shorthandCurrentMonth:t,Z.l10n.months[(t?"short":"long")+"hand"][e]}},Z.isOpen=!1,Z.isMobile=!Z.config.disableMobile&&!Z.config.inline&&"single"===Z.config.mode&&!Z.config.disable.length&&!Z.config.enable.length&&!Z.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Z.isMobile||v(),l(),(Z.selectedDates.length||Z.config.noCalendar)&&(Z.config.enableTime&&i(Z.config.noCalendar?Z.latestSelectedDateObj||Z.config.minDate:null),B()),Z.showTimeInput=0<Z.selectedDates.length||Z.config.noCalendar,Z.config.weekNumbers&&(Z.calendarContainer.style.width=Z.daysContainer.offsetWidth+Z.weekWrapper.offsetWidth+"px"),Z.isMobile||Y(),j("Ready"),Z}function _flatpickr(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i<n.length;i++)try{if(null!==n[i].getAttribute("data-fp-omit"))continue;n[i]._flatpickr&&(n[i]._flatpickr.destroy(),n[i]._flatpickr=null),n[i]._flatpickr=new FlatpickrInstance(n[i],t||{}),a.push(n[i]._flatpickr)}catch(e){}return 1===a.length?a[0]:a}function flatpickr(e,t){return e instanceof NodeList?_flatpickr(e,t):e instanceof HTMLElement?_flatpickr([e],t):_flatpickr(window.document.querySelectorAll(e),t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,a=arguments[t];for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};FlatpickrInstance.prototype={formats:{Z:function(e){return e.toISOString()},D:function(e){return this.l10n.weekdays.shorthand[this.formats.w(e)]},F:function(e){return this.utils.monthToStr(this.formats.n(e)-1,!1)},G:function(e){return FlatpickrInstance.prototype.pad(FlatpickrInstance.prototype.formats.h(e))},H:function(e){return FlatpickrInstance.prototype.pad(e.getHours())},J:function(e){return e.getDate()+this.l10n.ordinal(e.getDate())},K:function(e){return 11<e.getHours()?"PM":"AM"},M:function(e){return this.utils.monthToStr(e.getMonth(),!0)},S:function(e){return FlatpickrInstance.prototype.pad(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e){return this.config.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return FlatpickrInstance.prototype.pad(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return FlatpickrInstance.prototype.pad(e.getMinutes())},j:function(e){return e.getDate()},l:function(e){return this.l10n.weekdays.longhand[e.getDay()]},m:function(e){return FlatpickrInstance.prototype.pad(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},formatDate:function(a,e){var i=this;return void 0!==this.config&&void 0!==this.config.formatDate?this.config.formatDate(a,e):e.split("").map(function(e,t,n){return i.formats[e]&&"\\"!==n[t-1]?i.formats[e](a):"\\"!==e?e:""}).join("")},revFormat:{D:function(){},F:function(e,t){e.setMonth(this.l10n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t){var n=e.getHours();12!==n&&e.setHours(n%12+12*/pm/i.test(t))},M:function(e,t){e.setMonth(this.l10n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(t)},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){return t=parseInt(t),new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0,0)},Y:function(e,t){e.setFullYear(t)},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:function(){},m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:function(){},y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},tokenRegex:{D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"(am|AM|Am|aM|pm|PM|Pm|pM)",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},pad:function(e){return("0"+e).slice(-2)},parseDate:function(e,t,n){if(0!==e&&!e)return null;if(e instanceof Date)e=new Date(e.getTime());else if(void 0!==e.toFixed)e=new Date(e);else{var a=t||(this.config||flatpickr.defaultConfig).dateFormat;if("today"===(e=String(e).trim()))e=new Date,n=!0;else if(/Z$/.test(e)||/GMT$/.test(e))e=new Date(e);else if(this.config&&this.config.parseDate)e=this.config.parseDate(e,a);else{for(var i=this.config&&this.config.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),r=void 0,o=0,l=0,c="";o<a.length;o++){var s=a[o],d="\\"===s,u="\\"===a[o-1]||d;this.tokenRegex[s]&&!u?(c+=this.tokenRegex[s],(u=new RegExp(c).exec(e))&&(r=!0)&&(i=this.revFormat[s](i,u[++l])||i)):d||(c+=".")}e=r?i:null}}return e instanceof Date?(!0===n&&e.setHours(0,0,0,0),e):null}},"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _flatpickr(this,e)},HTMLElement.prototype.flatpickr=function(e){return _flatpickr([this],e)}),flatpickr.defaultConfig=FlatpickrInstance.defaultConfig={mode:"single",position:"auto",animate:-1===window.navigator.userAgent.indexOf("MSIE"),wrap:!1,weekNumbers:!1,allowInput:!1,clickOpens:!0,closeOnSelect:!0,time_24hr:!1,enableTime:!1,noCalendar:!1,dateFormat:"Y-m-d",ariaDateFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",altFormat:"F j, Y",defaultDate:null,minDate:null,maxDate:null,parseDate:null,formatDate:null,getWeek:function(e){var t=new Date(e.getTime()),e=new Date(t.getFullYear(),0,1);return Math.ceil(((t-e)/864e5+e.getDay()+1)/7)},enable:[],disable:[],shorthandCurrentMonth:!1,inline:!1,static:!1,appendTo:null,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",enableSeconds:!1,hourIncrement:1,minuteIncrement:5,defaultHour:12,defaultMinute:0,disableMobile:!1,locale:"default",plugins:[],ignoredFocusElements:[],onClose:void 0,onChange:void 0,onDayCreate:void 0,onMonthChange:void 0,onOpen:void 0,onParseConfig:void 0,onReady:void 0,onValueUpdate:void 0,onYearChange:void 0,onKeyDown:void 0,onDestroy:void 0},flatpickr.l10ns={en:{weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){e%=100;if(3<e&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle"}},flatpickr.l10ns.default=Object.create(flatpickr.l10ns.en),flatpickr.localize=function(e){return _extends(flatpickr.l10ns.default,e||{})},flatpickr.setDefaults=function(e){return _extends(flatpickr.defaultConfig,e||{})},"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return _flatpickr(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+parseInt(e,10))},"undefined"!=typeof module&&(module.exports=flatpickr);