text: /* flatpickr v4.3.0,, @license MIT */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.flatpickr={})}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n=function(e){return("0"+e).slice(-2)},a=function(e){return!0===e?1:0};function i(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout(function(){a=null,n||e.apply(i,o)},t),n&&!a&&e.apply(i,o)}}var o=function(e){return e instanceof Array?e:[e]},r=function(){},c={D:r,F:function(e,t,n){e.setMonth(n.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,n){e.setHours(e.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){var n=parseInt(t);return new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0)},Y:function(e,t){e.setFullYear(parseFloat(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:r,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:r,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},l={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",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})"},d={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[d.w(e,t,n)]},F:function(e,t,n){return g(d.n(e,t,n)-1,!1,t)},G:function(e,t,a){return n(d.h(e,t,a))},H:function(e){return n(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[a(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return n(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return n(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return n(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return n(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)}},s={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){var t=e%100;if(t>3&&t<21)return"th";switch(t%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",amPM:["AM","PM"]},u=function(e){var t=e.config,n=void 0===t?h:t,a=e.l10n,i=void 0===a?s:a;return function(e,t,a){if(void 0!==n.formatDate)return n.formatDate(e,t);var o=a||i;return t.split("").map(function(t,a,i){return d[t]&&"\\"!==i[a-1]?d[t](e,o,n):"\\"!==t?t:""}).join("")}},f=function(e){var t=e.config,n=void 0===t?h:t,a=e.l10n,i=void 0===a?s:a;return function(e,t,a){if(0===e||e){var o,r=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var d=t||(n||h).dateFormat,s=String(e).trim();if("today"===s)o=new Date,a=!0;else if(/Z$/.test(s)||/GMT$/.test(s))o=new Date(e);else if(n&&n.parseDate)o=n.parseDate(e,d);else{o=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var u=void 0,f=[],m=0,g=0,p="";m<d.length;m++){var v=d[m],D="\\"===v,b="\\"===d[m-1]||D;if(l[v]&&!b){p+=l[v];var w=new RegExp(p).exec(e);w&&(u=!0)&&f["Y"!==v?"push":"unshift"]({fn:c[v],val:w[++g]})}else D||(p+=".");f.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,i)||o})}o=u?o:void 0}}if(o instanceof Date)return!0===a&&o.setHours(0,0,0,0),o;n.errorHandler(new Error("Invalid date provided: "+r))}}};function m(e,t,n){return void 0===n&&(n=!0),!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 g=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},p={DAY:864e5},h={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:console.warn,getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",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>",noCalendar:!1,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,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>",shorthandCurrentMonth:!1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};function v(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function D(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function b(e,t){var n=D("div","numInputWrapper"),a=D("input","numInput "+e),i=D("span","arrowUp"),o=D("span","arrowDown");if(a.type="text",a.pattern="\\d*",void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},i=0,o=t;i<o.length;i++){a(o[i])}return e});var w,M=300;function C(e,r){var c={config:t({},w.defaultConfig),l10n:s};function d(e){return e.bind(c)}function h(e){c.config.noCalendar&&0===c.selectedDates.length&&(c.setDate(void 0!==c.config.minDate?new Date(c.config.minDate.getTime()):(new Date).setHours(c.config.defaultHour,c.config.defaultMinute,c.config.defaultSeconds,0),!1),C(),ne()),function(e){e.preventDefault();var t="keydown"===e.type,i=e.target;void 0!==c.amPM&&e.target===c.amPM&&(c.amPM.textContent=c.l10n.amPM[a(c.amPM.textContent===c.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("data-min")),r=parseFloat(i.getAttribute("data-max")),l=parseFloat(i.getAttribute("data-step")),d=parseInt(i.value,10),s=e.delta||(t?38===e.which?1:-1:0),u=d+l*s;if(void 0!==i.value&&2===i.value.length){var f=i===c.hourElement,m=i===c.minuteElement;u<o?(u=r+u+a(!f)+(a(f)&&a(!c.amPM)),m&&Y(void 0,-1,c.hourElement)):u>r&&(u=i===c.hourElement?u-r-a(!c.amPM):o,m&&Y(void 0,1,c.hourElement)),c.amPM&&f&&(1===l?u+d===23:Math.abs(u-d)>l)&&(c.amPM.textContent=c.l10n.amPM[a(c.amPM.textContent===c.l10n.amPM[0])]),i.value=n(u)}}(e),0!==c.selectedDates.length&&("input"!==e.type?(C(),ne()):setTimeout(function(){C(),ne()},M))}function C(){if(void 0!==c.hourElement&&void 0!==c.minuteElement){var e,t,n=(parseInt(c.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(c.minuteElement.value,10)||0)%60,o=void 0!==c.secondElement?(parseInt(c.secondElement.value,10)||0)%60:0;void 0!==c.amPM&&(e=n,t=c.amPM.textContent,n=e%12+12*a(t===c.l10n.amPM[1]));var r=void 0!==c.config.minTime||c.config.minDate&&c.minDateHasTime&&c.latestSelectedDateObj&&0===m(c.latestSelectedDateObj,c.config.minDate,!0);if(void 0!==c.config.maxTime||c.config.maxDate&&c.maxDateHasTime&&c.latestSelectedDateObj&&0===m(c.latestSelectedDateObj,c.config.maxDate,!0)){var l=void 0!==c.config.maxTime?c.config.maxTime:c.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(i=Math.min(i,l.getMinutes()))}if(r){var d=void 0!==c.config.minTime?c.config.minTime:c.config.minDate;(n=Math.max(n,d.getHours()))===d.getHours()&&(i=Math.max(i,d.getMinutes()))}x(n,i,o)}}function y(e){var t=e||c.latestSelectedDateObj;t&&x(t.getHours(),t.getMinutes(),t.getSeconds())}function x(e,t,i){void 0!==c.latestSelectedDateObj&&c.latestSelectedDateObj.setHours(e%24,t,i||0,0),c.hourElement&&c.minuteElement&&!c.isMobile&&(c.hourElement.value=n(c.config.time_24hr?e:(12+e)%12+12*a(e%12==0)),c.minuteElement.value=n(t),void 0!==c.amPM&&(c.amPM.textContent=c.l10n.amPM[a(e>=12)]),void 0!==c.secondElement&&(c.secondElement.value=n(i)))}function E(e){var t=parseInt(e.target.value)+(e.delta||0);4!==t.toString().length&&"Enter"!==e.key||(c.currentYearElement.blur(),/[^\d]/.test(t.toString())||L(t))}function T(e,t,n,a){return t instanceof Array?t.forEach(function(t){return T(e,t,n,a)}):e instanceof Array?e.forEach(function(e){return T(e,t,n,a)}):(e.addEventListener(t,n,a),void c._handlers.push({element:e,event:t,handler:n}))}function k(e){return function(t){1===t.which&&e(t)}}function I(){Q("onChange")}function _(e){var t=void 0!==e?c.parseDate(e):c.latestSelectedDateObj||(c.config.minDate&&c.config.minDate>c.now?c.config.minDate:c.config.maxDate&&c.config.maxDate<c.now?c.config.maxDate:c.now);try{void 0!==t&&(c.currentYear=t.getFullYear(),c.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,c.config.errorHandler(e)}c.redraw()}function S(e){~e.target.className.indexOf("arrow")&&Y(e,e.target.classList.contains("arrowUp")?1:-1)}function Y(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=X("increment");o.delta=t,i&&i.dispatchEvent(o)}function N(e,t,n,a){var i,o=R(t,!0),r=D("span","flatpickr-day "+e,t.getDate().toString());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",c.formatDate(t,c.config.ariaDateFormat)),0===m(t,c.now)&&(c.todayDateElem=r,r.classList.add("today")),o?(r.tabIndex=-1,ee(t)&&(r.classList.add("selected"),c.selectedDateElem=r,"range"===c.config.mode&&(v(r,"startRange",c.selectedDates[0]&&0===m(t,c.selectedDates[0])),v(r,"endRange",c.selectedDates[1]&&0===m(t,c.selectedDates[1]))))):(r.classList.add("disabled"),c.selectedDates[0]&&c.minRangeDate&&t>c.minRangeDate&&t<c.selectedDates[0]?c.minRangeDate=t:c.selectedDates[0]&&c.maxRangeDate&&t<c.maxRangeDate&&t>c.selectedDates[0]&&(c.maxRangeDate=t)),"range"===c.config.mode&&(i=t,!("range"!==c.config.mode||c.selectedDates.length<2)&&m(i,c.selectedDates[0])>=0&&m(i,c.selectedDates[1])<=0&&!ee(t)&&r.classList.add("inRange"),1===c.selectedDates.length&&void 0!==c.minRangeDate&&void 0!==c.maxRangeDate&&(t<c.minRangeDate||t>c.maxRangeDate)&&r.classList.add("notAllowed")),c.weekNumbers&&"prevMonthDay"!==e&&n%7==1&&c.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+c.config.getWeek(t)+"</span>"),Q("onDayCreate",r),r}function O(e,t){var n=e+t||0,a=void 0!==e?c.days.childNodes[n]:c.selectedDateElem||c.todayDateElem||c.days.childNodes[0];void 0===a&&0!==t&&(t>0?(c.changeMonth(1,!0,!0),n%=42):t<0&&(c.changeMonth(-1,!0,!0),n+=42)),(a=a||c.days.childNodes[n]).focus(),"range"===c.config.mode&&J(a)}function P(){if(void 0!==c.daysContainer){var e=(new Date(c.currentYear,c.currentMonth,1).getDay()-c.l10n.firstDayOfWeek+7)%7,t="range"===c.config.mode,n=c.utils.getDaysInMonth((c.currentMonth-1+12)%12),a=c.utils.getDaysInMonth(),i=window.document.createDocumentFragment(),o=n+1-e,r=0;for(c.weekNumbers&&c.weekNumbers.firstChild&&(c.weekNumbers.textContent=""),t&&(c.minRangeDate=new Date(c.currentYear,c.currentMonth-1,o),c.maxRangeDate=new Date(c.currentYear,c.currentMonth+1,(42-e)%a));o<=n;o++,r++)i.appendChild(N("prevMonthDay",new Date(c.currentYear,c.currentMonth-1,o),o,r));for(o=1;o<=a;o++,r++)i.appendChild(N("",new Date(c.currentYear,c.currentMonth,o),o,r));for(var l=a+1;l<=42-e;l++,r++)i.appendChild(N("nextMonthDay",new Date(c.currentYear,c.currentMonth+1,l%a),l,r));t&&1===c.selectedDates.length&&i.childNodes[0]?(c._hidePrevMonthArrow=c._hidePrevMonthArrow||!!c.minRangeDate&&c.minRangeDate>i.childNodes[0].dateObj,c._hideNextMonthArrow=c._hideNextMonthArrow||!!c.maxRangeDate&&c.maxRangeDate<new Date(c.currentYear,c.currentMonth+1,1)):te();var d=D("div","dayContainer");d.appendChild(i),function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(c.daysContainer),c.daysContainer.insertBefore(d,c.daysContainer.firstChild),c.days=c.daysContainer.firstChild}}function A(){c.weekdayContainer||(c.weekdayContainer=D("div","flatpickr-weekdays"));var e=c.l10n.firstDayOfWeek,t=c.l10n.weekdays.shorthand.slice();return e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e))),c.weekdayContainer.innerHTML="\n    <span class=flatpickr-weekday>\n      "+t.join("</span><span class=flatpickr-weekday>")+"\n    </span>\n    ",c.weekdayContainer}function F(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var a=t?e:e-c.currentMonth;a<0&&c._hidePrevMonthArrow||a>0&&c._hideNextMonthArrow||(c.currentMonth+=a,(c.currentMonth<0||c.currentMonth>11)&&(c.currentYear+=c.currentMonth>11?1:-1,c.currentMonth=(c.currentMonth+12)%12,Q("onYearChange")),P(),Q("onMonthChange"),te(),n&&document.activeElement&&document.activeElement.$i&&O(document.activeElement.$i,0))}function j(e){return!(!c.config.appendTo||!c.config.appendTo.contains(e))||c.calendarContainer.contains(e)}function H(e){if(c.isOpen&&!c.config.inline){var t=j(e.target),n=e.target===c.input||e.target===c.altInput||c.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(c.input)||~e.path.indexOf(c.altInput)),a="blur"===e.type?n&&e.relatedTarget&&!j(e.relatedTarget):!n&&!t,i=!c.config.ignoredFocusElements.some(function(t){return t.contains(e.target)});a&&i&&(c.close(),"range"===c.config.mode&&1===c.selectedDates.length&&(c.clear(!1),c.redraw()))}}function L(e){if(!(!e||c.currentYearElement.getAttribute("data-min")&&e<parseInt(c.currentYearElement.getAttribute("data-min"))||c.currentYearElement.getAttribute("data-max")&&e>parseInt(c.currentYearElement.getAttribute("data-max")))){var t=e,n=c.currentYear!==t;c.currentYear=t||c.currentYear,c.config.maxDate&&c.currentYear===c.config.maxDate.getFullYear()?c.currentMonth=Math.min(c.config.maxDate.getMonth(),c.currentMonth):c.config.minDate&&c.currentYear===c.config.minDate.getFullYear()&&(c.currentMonth=Math.max(c.config.minDate.getMonth(),c.currentMonth)),n&&(c.redraw(),Q("onYearChange"))}}function R(e,t){void 0===t&&(t=!0);var n=c.parseDate(e,void 0,t);if(c.config.minDate&&n&&m(n,c.config.minDate,void 0!==t?t:!c.minDateHasTime)<0||c.config.maxDate&&n&&m(n,c.config.maxDate,void 0!==t?t:!c.maxDateHasTime)>0)return!1;if(!c.config.enable.length&&!c.config.disable.length)return!0;if(void 0===n)return!1;for(var a=c.config.enable.length>0,i=a?c.config.enable:c.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r&&void 0!==n){var l=c.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function W(e){var t=e.target===c._input,n=j(e.target),a=c.config.allowInput,i=c.isOpen&&(!a||!t),o=c.config.inline&&t&&!a;if(13===e.keyCode&&t){if(a)return c.setDate(c._input.value,!0,e.target===c.altInput?c.config.altFormat:c.config.dateFormat),e.target.blur();c.open()}else if(n||i||o){var r=!!c.timeContainer&&c.timeContainer.contains(e.target);switch(e.keyCode){case 13:r?ne():z(e);break;case 27:e.preventDefault(),c.close();break;case 8:case 46:t&&!c.config.allowInput&&c.clear();break;case 37:case 39:if(r)c.hourElement&&c.hourElement.focus();else if(e.preventDefault(),c.daysContainer){var l=39===e.keyCode?1:-1;e.ctrlKey?F(l,!0,!0):O(e.target.$i,l)}break;case 38:case 40:e.preventDefault();var d=40===e.keyCode?1:-1;c.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(L(c.currentYear-d),O(e.target.$i,0)):r||O(e.target.$i,7*d):c.config.enableTime&&(!r&&c.hourElement&&c.hourElement.focus(),h(e),c._debouncedChange());break;case 9:e.target===c.hourElement?(e.preventDefault(),c.minuteElement.select()):e.target===c.minuteElement&&(c.secondElement||c.amPM)?(e.preventDefault(),void 0!==c.secondElement?c.secondElement.focus():void 0!==c.amPM&&c.amPM.focus()):e.target===c.secondElement&&c.amPM&&(e.preventDefault(),c.amPM.focus())}switch(e.key){case c.l10n.amPM[0].charAt(0):void 0!==c.amPM&&e.target===c.amPM&&(c.amPM.textContent=c.l10n.amPM[0],C(),ne());break;case c.l10n.amPM[1].charAt(0):void 0!==c.amPM&&e.target===c.amPM&&(c.amPM.textContent=c.l10n.amPM[1],C(),ne())}Q("onKeyDown",e)}}function J(e){if(1===c.selectedDates.length&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&void 0!==c.minRangeDate&&void 0!==c.maxRangeDate){for(var t=e.dateObj,n=c.parseDate(c.selectedDates[0],void 0,!0),a=Math.min(t.getTime(),c.selectedDates[0].getTime()),i=Math.max(t.getTime(),c.selectedDates[0].getTime()),o=!1,r=a;r<i;r+=p.DAY)if(!R(new Date(r))){o=!0;break}for(var l=function(r,l){var d=l.getTime(),s=d<c.minRangeDate.getTime()||d>c.maxRangeDate.getTime(),u=c.days.childNodes[r];if(s)return u.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){u.classList.remove(e)}),"continue";if(o&&!s)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){u.classList.remove(e)});var f=Math.max(c.minRangeDate.getTime(),a),m=Math.min(c.maxRangeDate.getTime(),i);e.classList.add(t<c.selectedDates[0]?"startRange":"endRange"),n<t&&d===n.getTime()?u.classList.add("startRange"):n>t&&d===n.getTime()&&u.classList.add("endRange"),d>=f&&d<=m&&u.classList.add("inRange")},d=0,s=c.days.childNodes[d].dateObj;d<42;d++,s=c.days.childNodes[d]&&c.days.childNodes[d].dateObj)l(d,s)}}function K(){!c.isOpen||c.config.static||c.config.inline||U()}function B(e){return function(t){var n=c.config["_"+e+"Date"]=c.parseDate(t,c.config.dateFormat),a=c.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(c["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),c.selectedDates&&(c.selectedDates=c.selectedDates.filter(function(e){return R(e)}),c.selectedDates.length||"min"!==e||y(n),ne()),c.daysContainer&&(q(),void 0!==n?c.currentYearElement[e]=n.getFullYear().toString():c.currentYearElement.removeAttribute(e),c.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function $(){"object"!=typeof c.config.locale&&void 0===w.l10ns[c.config.locale]&&c.config.errorHandler(new Error("flatpickr: invalid locale "+c.config.locale)),c.l10n=t({},w.l10ns.default,"object"==typeof c.config.locale?c.config.locale:"default"!==c.config.locale?w.l10ns[c.config.locale]:void 0),l.K="("+c.l10n.amPM[0]+"|"+c.l10n.amPM[1]+"|"+c.l10n.amPM[0].toLowerCase()+"|"+c.l10n.amPM[1].toLowerCase()+")",c.formatDate=u(c)}function U(e){if(void 0!==c.calendarContainer){Q("onPreCalendarPosition");var t=e||c._positionElement,n=Array.prototype.reduce.call(c.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),a=c.calendarContainer.offsetWidth,i=c.config.position,o=t.getBoundingClientRect(),r=window.innerHeight-o.bottom,l="above"===i||"below"!==i&&r<n&&o.top>n,d=window.pageYOffset+o.top+(l?-n-2:t.offsetHeight+2);if(v(c.calendarContainer,"arrowTop",!l),v(c.calendarContainer,"arrowBottom",l),!c.config.inline){var s=window.pageXOffset+o.left,u=window.document.body.offsetWidth-o.right,f=s+a>window.document.body.offsetWidth;v(c.calendarContainer,"rightMost",f),c.config.static||(c.calendarContainer.style.top=d+"px",f?(c.calendarContainer.style.left="auto",c.calendarContainer.style.right=u+"px"):(c.calendarContainer.style.left=s+"px",c.calendarContainer.style.right="auto"))}}}function q(){c.config.noCalendar||c.isMobile||(A(),te(),P())}function z(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,a=c.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=a.getMonth()!==c.currentMonth&&"range"!==c.config.mode;if(c.selectedDateElem=n,"single"===c.config.mode)c.selectedDates=[a];else if("multiple"===c.config.mode){var o=ee(a);o?c.selectedDates.splice(parseInt(o),1):c.selectedDates.push(a)}else"range"===c.config.mode&&(2===c.selectedDates.length&&c.clear(),c.selectedDates.push(a),0!==m(a,c.selectedDates[0],!0)&&c.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(C(),i){var r=c.currentYear!==a.getFullYear();c.currentYear=a.getFullYear(),c.currentMonth=a.getMonth(),r&&Q("onYearChange"),Q("onMonthChange")}if(P(),c.config.minDate&&c.minDateHasTime&&c.config.enableTime&&0===m(a,c.config.minDate)&&y(c.config.minDate),ne(),c.config.enableTime&&setTimeout(function(){return c.showTimeInput=!0},50),"range"===c.config.mode&&(1===c.selectedDates.length?(J(n),c._hidePrevMonthArrow=c._hidePrevMonthArrow||void 0!==c.minRangeDate&&c.minRangeDate>c.days.childNodes[0].dateObj,c._hideNextMonthArrow=c._hideNextMonthArrow||void 0!==c.maxRangeDate&&c.maxRangeDate<new Date(c.currentYear,c.currentMonth+1,1)):te()),i?c.selectedDateElem&&c.selectedDateElem.focus():O(n.$i,0),void 0!==c.hourElement&&setTimeout(function(){return void 0!==c.hourElement&&c.hourElement.select()},451),c.config.closeOnSelect){var l="single"===c.config.mode&&!c.config.enableTime,d="range"===c.config.mode&&2===c.selectedDates.length&&!c.config.enableTime;(l||d)&&(c._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(c.close,0):c.close())}I()}}c.parseDate=f({config:c.config,l10n:c.l10n}),c._handlers=[],c._bind=T,c._setHoursFromDate=y,c.changeMonth=F,c.changeYear=L,c.clear=function(e){void 0===e&&(e=!0);c.input.value="",c.altInput&&(c.altInput.value="");c.mobileInput&&(c.mobileInput.value="");c.selectedDates=[],c.latestSelectedDateObj=void 0,c.showTimeInput=!1,c.config.enableTime&&(void 0!==c.config.minDate?y(c.config.minDate):x(c.config.defaultHour,c.config.defaultMinute,c.config.defaultSeconds));c.redraw(),e&&Q("onChange")},c.close=function(){c.isOpen=!1,c.isMobile||(c.calendarContainer.classList.remove("open"),c._input.classList.remove("active"));Q("onClose")},c._createElement=D,c.destroy=function(){void 0!==c.config&&Q("onDestroy");for(var e=c._handlers.length;e--;){var t=c._handlers[e];t.element.removeEventListener(t.event,t.handler)}c._handlers=[],c.mobileInput?(c.mobileInput.parentNode&&c.mobileInput.parentNode.removeChild(c.mobileInput),c.mobileInput=void 0):c.calendarContainer&&c.calendarContainer.parentNode&&c.calendarContainer.parentNode.removeChild(c.calendarContainer);c.altInput&&(c.input.type="text",c.altInput.parentNode&&c.altInput.parentNode.removeChild(c.altInput),delete c.altInput);c.input&&(c.input.type=c.input._type,c.input.classList.remove("flatpickr-input"),c.input.removeAttribute("readonly"),c.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){try{delete c[e]}catch(e){}})},c.isEnabled=R,c.jumpToDate=_,c.open=function(e,t){void 0===t&&(t=c._input);if(c.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),setTimeout(function(){void 0!==c.mobileInput&&c.mobileInput.click()},0),void Q("onOpen");if(c._input.disabled||c.config.inline)return;var n=c.isOpen;c.isOpen=!0,n||(c.calendarContainer.classList.add("open"),c._input.classList.add("active"),Q("onOpen"),U(t))},c.redraw=q,c.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(c.config,e):(c.config[e]=t,void 0!==G[e]&&G[e].forEach(function(e){return e()}));c.redraw(),_()},c.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=c.config.dateFormat);if(0!==e&&!e)return c.clear(t);V(e,n),c.showTimeInput=c.selectedDates.length>0,c.latestSelectedDateObj=c.selectedDates[0],c.redraw(),_(),y(),ne(t),t&&Q("onChange")},c.toggle=function(){if(c.isOpen)return c.close();c.open()};var G={locale:[$]};function V(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return c.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[c.parseDate(e,t)];else if("string"==typeof e)switch(c.config.mode){case"single":n=[c.parseDate(e,t)];break;case"multiple":n=e.split(c.config.conjunction).map(function(e){return c.parseDate(e,t)});break;case"range":n=e.split(c.l10n.rangeSeparator).map(function(e){return c.parseDate(e,t)})}else c.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));c.selectedDates=n.filter(function(e){return e instanceof Date&&R(e,!1)}),c.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function Z(e){return e.map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?c.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:c.parseDate(e.from,void 0),to:c.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function Q(e,t){var n=c.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](c.selectedDates,c.input.value,c,t);"onChange"===e&&(c.input.dispatchEvent(X("change")),c.input.dispatchEvent(X("input")))}function X(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ee(e){for(var t=0;t<c.selectedDates.length;t++)if(0===m(c.selectedDates[t],e))return""+t;return!1}function te(){c.config.noCalendar||c.isMobile||!c.monthNav||(c.currentMonthElement.textContent=g(c.currentMonth,c.config.shorthandCurrentMonth,c.l10n)+" ",c.currentYearElement.value=c.currentYear.toString(),c._hidePrevMonthArrow=void 0!==c.config.minDate&&(c.currentYear===c.config.minDate.getFullYear()?c.currentMonth<=c.config.minDate.getMonth():c.currentYear<c.config.minDate.getFullYear()),c._hideNextMonthArrow=void 0!==c.config.maxDate&&(c.currentYear===c.config.maxDate.getFullYear()?c.currentMonth+1>c.config.maxDate.getMonth():c.currentYear>c.config.maxDate.getFullYear()))}function ne(e){if(void 0===e&&(e=!0),!c.selectedDates.length)return c.clear(e);void 0!==c.mobileInput&&c.mobileFormatStr&&(c.mobileInput.value=void 0!==c.latestSelectedDateObj?c.formatDate(c.latestSelectedDateObj,c.mobileFormatStr):"");var t="range"!==c.config.mode?c.config.conjunction:c.l10n.rangeSeparator;c.input.value=c.selectedDates.map(function(e){return c.formatDate(e,c.config.dateFormat)}).join(t),void 0!==c.altInput&&(c.altInput.value=c.selectedDates.map(function(e){return c.formatDate(e,c.config.altFormat)}).join(t)),!1!==e&&Q("onValueUpdate")}function ae(e){e.preventDefault();var t=c.prevMonthNav.contains(e.target),n=c.nextMonthNav.contains(e.target);t||n?F(t?-1:1):e.target===c.currentYearElement?c.currentYearElement.select():"arrowUp"===e.target.className?c.changeYear(c.currentYear+1):"arrowDown"===e.target.className&&c.changeYear(c.currentYear-1)}return function(){c.element=c.input=e,c.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i=t({},r,JSON.parse(JSON.stringify(e.dataset||{}))),l={};c.config.parseDate=i.parseDate,c.config.formatDate=i.formatDate,Object.defineProperty(c.config,"enable",{get:function(){return c.config._enable||[]},set:function(e){c.config._enable=Z(e)}}),Object.defineProperty(c.config,"disable",{get:function(){return c.config._disable||[]},set:function(e){c.config._disable=Z(e)}}),!i.dateFormat&&i.enableTime&&(l.dateFormat=i.noCalendar?"H:i"+(i.enableSeconds?":S":""):w.defaultConfig.dateFormat+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&i.enableTime&&!i.altFormat&&(l.altFormat=i.noCalendar?"h:i"+(i.enableSeconds?":S K":" K"):w.defaultConfig.altFormat+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(c.config,"minDate",{get:function(){return c.config._minDate},set:B("min")}),Object.defineProperty(c.config,"maxDate",{get:function(){return c.config._maxDate},set:B("max")});var s=function(e){return function(t){c.config["min"===e?"_minTime":"_maxTime"]=c.parseDate(t,"H:i")}};Object.defineProperty(c.config,"minTime",{get:function(){return c.config._minTime},set:s("min")}),Object.defineProperty(c.config,"maxTime",{get:function(){return c.config._maxTime},set:s("max")}),Object.assign(c.config,l,i);for(var u=0;u<n.length;u++)c.config[n[u]]=!0===c.config[n[u]]||"true"===c.config[n[u]];for(var u=a.length;u--;)void 0!==c.config[a[u]]&&(c.config[a[u]]=o(c.config[a[u]]||[]).map(d));for(var u=0;u<c.config.plugins.length;u++){var f=c.config.plugins[u](c)||{};for(var m in f)~a.indexOf(m)?c.config[m]=o(f[m]).map(d).concat(c.config[m]):void 0===i[m]&&(c.config[m]=f[m])}c.isMobile=!c.config.disableMobile&&!c.config.inline&&"single"===c.config.mode&&!c.config.disable.length&&!c.config.enable.length&&!c.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Q("onParseConfig")}(),$(),c.input=c.config.wrap?e.querySelector("[data-input]"):e,c.input?(c.input._type=c.input.type,c.input.type="text",c.input.classList.add("flatpickr-input"),c._input=c.input,c.config.altInput&&(c.altInput=D(c.input.nodeName,c.input.className+" "+c.config.altInputClass),c._input=c.altInput,c.altInput.placeholder=c.input.placeholder,c.altInput.disabled=c.input.disabled,c.altInput.required=c.input.required,c.altInput.tabIndex=c.input.tabIndex,c.altInput.type="text",c.input.type="hidden",!c.config.static&&c.input.parentNode&&c.input.parentNode.insertBefore(c.altInput,c.input.nextSibling)),c.config.allowInput||c._input.setAttribute("readonly","readonly"),c._positionElement=c.config.positionElement||c._input):c.config.errorHandler(new Error("Invalid input element specified")),function(){c.selectedDates=[],c.now=new Date;var e=c.config.defaultDate||c.input.value;e&&V(e,c.config.dateFormat);var t=c.selectedDates.length?c.selectedDates[0]:c.config.minDate&&c.config.minDate.getTime()>c.now.getTime()?c.config.minDate:c.config.maxDate&&c.config.maxDate.getTime()<c.now.getTime()?c.config.maxDate:c.now;c.currentYear=t.getFullYear(),c.currentMonth=t.getMonth(),c.selectedDates.length&&(c.latestSelectedDateObj=c.selectedDates[0]),void 0!==c.config.minTime&&(c.config.minTime=c.parseDate(c.config.minTime,"H:i")),void 0!==c.config.maxTime&&(c.config.maxTime=c.parseDate(c.config.maxTime,"H:i")),c.minDateHasTime=!!c.config.minDate&&(c.config.minDate.getHours()>0||c.config.minDate.getMinutes()>0||c.config.minDate.getSeconds()>0),c.maxDateHasTime=!!c.config.maxDate&&(c.config.maxDate.getHours()>0||c.config.maxDate.getMinutes()>0||c.config.maxDate.getSeconds()>0),Object.defineProperty(c,"showTimeInput",{get:function(){return c._showTimeInput},set:function(e){c._showTimeInput=e,c.calendarContainer&&v(c.calendarContainer,"showTimeInput",e),c.isOpen&&U()}})}(),c.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=c.currentMonth),void 0===t&&(t=c.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:c.l10n.daysInMonth[e]}},c.isMobile||function(){var e=window.document.createDocumentFragment();if(c.calendarContainer=D("div","flatpickr-calendar"),c.calendarContainer.tabIndex=-1,!c.config.noCalendar){if(e.appendChild(function(){var e=window.document.createDocumentFragment();c.monthNav=D("div","flatpickr-month"),c.prevMonthNav=D("span","flatpickr-prev-month"),c.prevMonthNav.innerHTML=c.config.prevArrow,c.currentMonthElement=D("span","cur-month");var t=b("cur-year",{tabindex:"-1"});return c.currentYearElement=t.childNodes[0],c.config.minDate&&c.currentYearElement.setAttribute("data-min",c.config.minDate.getFullYear().toString()),c.config.maxDate&&(c.currentYearElement.setAttribute("data-max",c.config.maxDate.getFullYear().toString()),c.currentYearElement.disabled=!!c.config.minDate&&c.config.minDate.getFullYear()===c.config.maxDate.getFullYear()),c.nextMonthNav=D("span","flatpickr-next-month"),c.nextMonthNav.innerHTML=c.config.nextArrow,c.navigationCurrentMonth=D("div","flatpickr-current-month"),c.navigationCurrentMonth.appendChild(c.currentMonthElement),c.navigationCurrentMonth.appendChild(t),e.appendChild(c.prevMonthNav),e.appendChild(c.navigationCurrentMonth),e.appendChild(c.nextMonthNav),c.monthNav.appendChild(e),Object.defineProperty(c,"_hidePrevMonthArrow",{get:function(){return c.__hidePrevMonthArrow},set:function(e){c.__hidePrevMonthArrow!==e&&(c.prevMonthNav.style.display=e?"none":"block"),c.__hidePrevMonthArrow=e}}),Object.defineProperty(c,"_hideNextMonthArrow",{get:function(){return c.__hideNextMonthArrow},set:function(e){c.__hideNextMonthArrow!==e&&(c.nextMonthNav.style.display=e?"none":"block"),c.__hideNextMonthArrow=e}}),te(),c.monthNav}()),c.innerContainer=D("div","flatpickr-innerContainer"),c.config.weekNumbers){var t=function(){c.calendarContainer.classList.add("hasWeeks");var e=D("div","flatpickr-weekwrapper");e.appendChild(D("span","flatpickr-weekday",c.l10n.weekAbbreviation));var t=D("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),i=t.weekWrapper,o=t.weekNumbers;c.innerContainer.appendChild(i),c.weekNumbers=o,c.weekWrapper=i}c.rContainer=D("div","flatpickr-rContainer"),c.rContainer.appendChild(A()),c.daysContainer||(c.daysContainer=D("div","flatpickr-days"),c.daysContainer.tabIndex=-1),P(),c.rContainer.appendChild(c.daysContainer),c.innerContainer.appendChild(c.rContainer),e.appendChild(c.innerContainer)}c.config.enableTime&&e.appendChild(function(){c.calendarContainer.classList.add("hasTime"),c.config.noCalendar&&c.calendarContainer.classList.add("noCalendar"),c.timeContainer=D("div","flatpickr-time"),c.timeContainer.tabIndex=-1;var e=D("span","flatpickr-time-separator",":"),t=b("flatpickr-hour");c.hourElement=t.childNodes[0];var i=b("flatpickr-minute");if(c.minuteElement=i.childNodes[0],c.hourElement.tabIndex=c.minuteElement.tabIndex=-1,c.hourElement.value=n(c.latestSelectedDateObj?c.latestSelectedDateObj.getHours():c.config.time_24hr?c.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(c.config.defaultHour)),c.minuteElement.value=n(c.latestSelectedDateObj?c.latestSelectedDateObj.getMinutes():c.config.defaultMinute),c.hourElement.setAttribute("data-step",c.config.hourIncrement.toString()),c.minuteElement.setAttribute("data-step",c.config.minuteIncrement.toString()),c.hourElement.setAttribute("data-min",c.config.time_24hr?"0":"1"),c.hourElement.setAttribute("data-max",c.config.time_24hr?"23":"12"),c.minuteElement.setAttribute("data-min","0"),c.minuteElement.setAttribute("data-max","59"),c.timeContainer.appendChild(t),c.timeContainer.appendChild(e),c.timeContainer.appendChild(i),c.config.time_24hr&&c.timeContainer.classList.add("time24hr"),c.config.enableSeconds){c.timeContainer.classList.add("hasSeconds");var o=b("flatpickr-second");c.secondElement=o.childNodes[0],c.secondElement.value=n(c.latestSelectedDateObj?c.latestSelectedDateObj.getSeconds():c.config.defaultSeconds),c.secondElement.setAttribute("data-step",c.minuteElement.getAttribute("data-step")),c.secondElement.setAttribute("data-min",c.minuteElement.getAttribute("data-min")),c.secondElement.setAttribute("data-max",c.minuteElement.getAttribute("data-max")),c.timeContainer.appendChild(D("span","flatpickr-time-separator",":")),c.timeContainer.appendChild(o)}return c.config.time_24hr||(c.amPM=D("span","flatpickr-am-pm",c.l10n.amPM[a((c.latestSelectedDateObj?c.hourElement.value:c.config.defaultHour)>11)]),c.amPM.title=c.l10n.toggleTitle,c.amPM.tabIndex=-1,c.timeContainer.appendChild(c.amPM)),c.timeContainer}()),v(c.calendarContainer,"rangeMode","range"===c.config.mode),v(c.calendarContainer,"animate",c.config.animate),c.calendarContainer.appendChild(e);var r=void 0!==c.config.appendTo&&c.config.appendTo.nodeType;if((c.config.inline||c.config.static)&&(c.calendarContainer.classList.add(c.config.inline?"inline":"static"),c.config.inline&&(!r&&c.element.parentNode?c.element.parentNode.insertBefore(c.calendarContainer,c._input.nextSibling):void 0!==c.config.appendTo&&c.config.appendTo.appendChild(c.calendarContainer)),c.config.static)){var l=D("div","flatpickr-wrapper");c.element.parentNode&&c.element.parentNode.insertBefore(l,c.element),l.appendChild(c.element),c.altInput&&l.appendChild(c.altInput),l.appendChild(c.calendarContainer)}c.config.static||c.config.inline||(void 0!==c.config.appendTo?c.config.appendTo:window.document.body).appendChild(c.calendarContainer)}(),function(){if(c.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(c.element.querySelectorAll("[data-"+e+"]"),function(t){return T(t,"click",c[e])})}),c.isMobile)!function(){var e=c.config.enableTime?c.config.noCalendar?"time":"datetime-local":"date";c.mobileInput=D("input",c.input.className+" flatpickr-mobile"),c.mobileInput.step=c.input.getAttribute("step")||"any",c.mobileInput.tabIndex=1,c.mobileInput.type=e,c.mobileInput.disabled=c.input.disabled,c.mobileInput.required=c.input.required,c.mobileInput.placeholder=c.input.placeholder,c.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",c.selectedDates.length&&(c.mobileInput.defaultValue=c.mobileInput.value=c.formatDate(c.selectedDates[0],c.mobileFormatStr)),c.config.minDate&&(c.mobileInput.min=c.formatDate(c.config.minDate,"Y-m-d")),c.config.maxDate&&(c.mobileInput.max=c.formatDate(c.config.maxDate,"Y-m-d")),c.input.type="hidden",void 0!==c.altInput&&(c.altInput.type="hidden");try{c.input.parentNode&&c.input.parentNode.insertBefore(c.mobileInput,c.input.nextSibling)}catch(e){}T(c.mobileInput,"change",function(e){c.setDate(e.target.value,!1,c.mobileFormatStr),Q("onChange"),Q("onClose")})}();else{var e=i(K,50);c._debouncedChange=i(I,M),c.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&T(c.daysContainer,"mouseover",function(e){"range"===c.config.mode&&J(e.target)}),T(window.document.body,"keydown",W),c.config.static||T(c._input,"keydown",W),c.config.inline||c.config.static||T(window,"resize",e),void 0!==window.ontouchstart&&T(window.document.body,"touchstart",H),T(window.document.body,"mousedown",k(H)),T(window.document.body,"focus",H,{capture:!0}),!0===c.config.clickOpens&&(T(c._input,"focus",c.open),T(c._input,"mousedown",k(c.open))),void 0!==c.daysContainer&&(T(c.monthNav,"mousedown",k(ae)),T(c.monthNav,["keyup","increment"],E),T(c.daysContainer,"mousedown",k(z))),void 0!==c.timeContainer&&void 0!==c.minuteElement&&void 0!==c.hourElement&&(T(c.timeContainer,["input","increment"],h),T(c.timeContainer,"mousedown",k(S)),T(c.timeContainer,["input","increment"],c._debouncedChange,{passive:!0}),T([c.hourElement,c.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==c.secondElement&&T(c.secondElement,"focus",function(){return c.secondElement&&c.secondElement.select()}),void 0!==c.amPM&&T(c.amPM,"mousedown",k(function(e){h(e),I()})))}}(),(c.selectedDates.length||c.config.noCalendar)&&(c.config.enableTime&&y(c.config.noCalendar?c.latestSelectedDateObj||c.config.minDate:void 0),ne(!1)),c.showTimeInput=c.selectedDates.length>0||c.config.noCalendar,void 0!==c.weekWrapper&&void 0!==c.daysContainer&&(c.calendarContainer.style.width=c.daysContainer.offsetWidth+c.weekWrapper.offsetWidth+"px");var l=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!c.isMobile&&l&&U(),Q("onReady")}(),c}function y(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=C(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return y(this,e)},HTMLElement.prototype.flatpickr=function(e){return y([this],e)}),w=function(e,t){return e instanceof NodeList?y(e,t):y("string"==typeof e?window.document.querySelectorAll(e):[e],t)},"object"==typeof window&&(window.flatpickr=w),w.defaultConfig=h,w.l10ns={en:t({},s),default:t({},s)},w.localize=function(e){w.l10ns.default=t({},w.l10ns.default,e)},w.setDefaults=function(e){w.defaultConfig=t({},w.defaultConfig,e)},w.parseDate=f({}),w.formatDate=u({}),w.compareDates=m,"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return y(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))};var x=w;e.default=x,Object.defineProperty(e,"__esModule",{value:!0})});