Файловый менеджер - Редактировать - /var/www/html/media/foundry/scripts/vendor/flatpickr.min.js
Ðазад
FD.module("vendor/flatpickr",function(e){var t,n,a=this;t=this,n=function(){"use strict";function Q(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var a=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],r=0,l=i.length;r<l;r++,o++)a[o]=i[r];return a}function X(t,n){var a;return function(){var e=this;clearTimeout(a),a=setTimeout(function(){return t.apply(e,arguments)},n)}}function ee(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function te(e,t,n){e=window.document.createElement(e);return n=n||"",e.className=t=t||"",void 0!==n&&(e.textContent=n),e}function ne(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ae(e,t){var n=te("div","numInputWrapper"),a=te("input","numInput "+e),o=te("span","arrowUp"),e=te("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var i in t)a.setAttribute(i,t[i]);return n.appendChild(a),n.appendChild(o),n.appendChild(e),n}function oe(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}function ie(e,t,n){return!1!==(n=void 0===n?!0:n)?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}function re(e){var t,n,a,o=e.defaultHour,i=e.defaultMinute,r=e.defaultSeconds;return void 0!==e.minDate&&(t=e.minDate.getHours(),n=e.minDate.getMinutes(),a=e.minDate.getSeconds(),(o=o<t?t:o)===t&&i<n&&(i=n),o===t&&i===n&&r<a&&(r=e.minDate.getSeconds())),void 0!==e.maxDate&&(n=e.maxDate.getHours(),a=e.maxDate.getMinutes(),(o=Math.min(o,n))===n&&(i=Math.min(a,i)),o===n&&i===a&&(r=e.maxDate.getSeconds())),{hours:o,minutes:i,seconds:r}}function r(d,s){function u(e){return e.bind(V)}function t(){var t=V.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame(function(){var e;void 0!==V.calendarContainer&&(V.calendarContainer.style.visibility="hidden",V.calendarContainer.style.display="block"),void 0!==V.daysContainer&&(e=(V.days.offsetWidth+1)*t.showMonths,V.daysContainer.style.width=e+"px",V.calendarContainer.style.width=e+(void 0!==V.weekWrapper?V.weekWrapper.offsetWidth:0)+"px",V.calendarContainer.style.removeProperty("visibility"),V.calendarContainer.style.removeProperty("display"))})}function f(e){var t,n;0===V.selectedDates.length&&(t=void 0===V.config.minDate||0<=ie(new Date,V.config.minDate)?new Date:new Date(V.config.minDate.getTime()),n=re(V.config),t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),V.selectedDates=[t],V.latestSelectedDateObj=t),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=oe(e),a=n;void 0!==V.amPM&&n===V.amPM&&(V.amPM.textContent=V.l10n.amPM[fe(V.amPM.textContent===V.l10n.amPM[0])]);var o=parseFloat(a.getAttribute("min")),i=parseFloat(a.getAttribute("max")),r=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),n=l+r*(e.delta||(t?38===e.which?1:-1:0));void 0!==a.value&&2===a.value.length&&(t=a===V.hourElement,e=a===V.minuteElement,n<o?(n=i+n+fe(!t)+(fe(t)&&fe(!V.amPM)),e&&g(void 0,-1,V.hourElement)):i<n&&(n=a===V.hourElement?n-i-fe(!V.amPM):o,e&&g(void 0,1,V.hourElement)),V.amPM&&t&&(1===r?n+l===23:Math.abs(n-l)>r)&&(V.amPM.textContent=V.l10n.amPM[fe(V.amPM.textContent===V.l10n.amPM[0])]),a.value=ue(n))}(e);e=V._input.value;m(),z(),V._input.value!==e&&V._debouncedChange()}function m(){var e,t,n,a,o;void 0!==V.hourElement&&void 0!==V.minuteElement&&(e=(parseInt(V.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(V.minuteElement.value,10)||0)%60,n=void 0!==V.secondElement?(parseInt(V.secondElement.value,10)||0)%60:0,void 0!==V.amPM&&(o=e,a=V.amPM.textContent,e=o%12+12*fe(a===V.l10n.amPM[1])),o=void 0!==V.config.minTime||V.config.minDate&&V.minDateHasTime&&V.latestSelectedDateObj&&0===ie(V.latestSelectedDateObj,V.config.minDate,!0),(void 0!==V.config.maxTime||V.config.maxDate&&V.maxDateHasTime&&V.latestSelectedDateObj&&0===ie(V.latestSelectedDateObj,V.config.maxDate,!0))&&(a=void 0!==V.config.maxTime?V.config.maxTime:V.config.maxDate,(t=(e=Math.min(e,a.getHours()))===a.getHours()?Math.min(t,a.getMinutes()):t)===a.getMinutes()&&(n=Math.min(n,a.getSeconds()))),o&&(o=void 0!==V.config.minTime?V.config.minTime:V.config.minDate,(t=(e=Math.max(e,o.getHours()))===o.getHours()&&t<o.getMinutes()?o.getMinutes():t)===o.getMinutes()&&(n=Math.max(n,o.getSeconds()))),i(e,t,n))}function a(e){e=e||V.latestSelectedDateObj;e&&i(e.getHours(),e.getMinutes(),e.getSeconds())}function i(e,t,n){void 0!==V.latestSelectedDateObj&&V.latestSelectedDateObj.setHours(e%24,t,n||0,0),V.hourElement&&V.minuteElement&&!V.isMobile&&(V.hourElement.value=ue(V.config.time_24hr?e:(12+e)%12+12*fe(e%12==0)),V.minuteElement.value=ue(t),void 0!==V.amPM&&(V.amPM.textContent=V.l10n.amPM[fe(12<=e)]),void 0!==V.secondElement&&(V.secondElement.value=ue(n)))}function n(e){var t=oe(e),t=parseInt(t.value)+(e.delta||0);(1<t/1e3||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&T(t)}function r(t,n,a,o){return n instanceof Array?n.forEach(function(e){return r(t,e,a,o)}):t instanceof Array?t.forEach(function(e){return r(e,n,a,o)}):(t.addEventListener(n,a,o),void V._handlers.push({remove:function(){return t.removeEventListener(n,a)}}))}function o(){J("onChange")}function l(e,t){var n=void 0!==e?V.parseDate(e):V.latestSelectedDateObj||(V.config.minDate&&V.config.minDate>V.now?V.config.minDate:V.config.maxDate&&V.config.maxDate<V.now?V.config.maxDate:V.now),a=V.currentYear,o=V.currentMonth;try{void 0!==n&&(V.currentYear=n.getFullYear(),V.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,V.config.errorHandler(e)}t&&V.currentYear!==a&&(J("onYearChange"),b()),!t||V.currentYear===a&&V.currentMonth===o||J("onMonthChange"),V.redraw()}function c(e){var t=oe(e);~t.className.indexOf("arrow")&&g(e,t.classList.contains("arrowUp")?1:-1)}function g(e,t,n){e=e&&oe(e),n=n||e&&e.parentNode&&e.parentNode.firstChild,e=K("increment");e.delta=t,n&&n.dispatchEvent(e)}function p(e,t,n,a){var o=I(t,!0),i=te("span","flatpickr-day "+e,t.getDate().toString());return i.dateObj=t,i.$i=a,i.setAttribute("aria-label",V.formatDate(t,V.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===ie(t,V.now)&&((V.todayDateElem=i).classList.add("today"),i.setAttribute("aria-current","date")),o?(i.tabIndex=-1,U(t)&&(i.classList.add("selected"),V.selectedDateElem=i,"range"===V.config.mode&&(ee(i,"startRange",V.selectedDates[0]&&0===ie(t,V.selectedDates[0],!0)),ee(i,"endRange",V.selectedDates[1]&&0===ie(t,V.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===V.config.mode&&(o=t,!("range"!==V.config.mode||V.selectedDates.length<2)&&0<=ie(o,V.selectedDates[0])&&ie(o,V.selectedDates[1])<=0)&&!U(t)&&i.classList.add("inRange"),V.weekNumbers&&1===V.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&V.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+V.config.getWeek(t)+"</span>"),J("onDayCreate",i),i}function h(e){e.focus(),"range"===V.config.mode&&F(e)}function v(e){for(var t=0<e?0:V.config.showMonths-1,n=0<e?V.config.showMonths:-1,a=t;a!=n;a+=e)for(var o=V.daysContainer.children[a],i=0<e?0:o.children.length-1,r=0<e?o.children.length:-1,l=i;l!=r;l+=e){var c=o.children[l];if(-1===c.className.indexOf("hidden")&&I(c.dateObj))return c}}function D(e,t){var n=S(document.activeElement||document.body),e=void 0!==e?e:n?document.activeElement:void 0!==V.selectedDateElem&&S(V.selectedDateElem)?V.selectedDateElem:void 0!==V.todayDateElem&&S(V.todayDateElem)?V.todayDateElem:v(0<t?1:-1);void 0===e?V._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():V.currentMonth,a=0<t?V.config.showMonths:-1,o=0<t?1:-1,i=n-V.currentMonth;i!=a;i+=o)for(var r=V.daysContainer.children[i],l=n-V.currentMonth===i?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;0<=d&&d<c&&d!=(0<t?c:-1);d+=o){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&I(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return h(s)}V.changeMonth(o),D(v(o),0)}(e,t):h(e)}function w(){if(void 0!==V.daysContainer){ne(V.daysContainer),V.weekNumbers&&ne(V.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<V.config.showMonths;t++){var n=new Date(V.currentYear,V.currentMonth,1);n.setMonth(V.currentMonth+t),e.appendChild(function(e,t){for(var n=(new Date(e,t,1).getDay()-V.l10n.firstDayOfWeek+7)%7,a=V.utils.getDaysInMonth((t-1+12)%12,e),o=V.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),r=1<V.config.showMonths,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",d=a+1-n,s=0;d<=a;d++,s++)i.appendChild(p(l,new Date(e,t-1,d),d,s));for(d=1;d<=o;d++,s++)i.appendChild(p("",new Date(e,t,d),d,s));for(var u=o+1;u<=42-n&&(1===V.config.showMonths||s%7!=0);u++,s++)i.appendChild(p(c,new Date(e,t+1,u%o),u,s));return(r=te("div","dayContainer")).appendChild(i),r}(n.getFullYear(),n.getMonth()))}V.daysContainer.appendChild(e),V.days=V.daysContainer.firstChild,"range"===V.config.mode&&1===V.selectedDates.length&&F()}}function b(){if(!(1<V.config.showMonths||"dropdown"!==V.config.monthSelectorType)){V.monthsDropdownContainer.tabIndex=-1,V.monthsDropdownContainer.innerHTML="";for(var e,t=0;t<12;t++)n=t,void 0!==V.config.minDate&&V.currentYear===V.config.minDate.getFullYear()&&n<V.config.minDate.getMonth()||void 0!==V.config.maxDate&&V.currentYear===V.config.maxDate.getFullYear()&&n>V.config.maxDate.getMonth()||((e=te("option","flatpickr-monthDropdown-month")).value=new Date(V.currentYear,t).getMonth().toString(),e.textContent=ge(t,V.config.shorthandCurrentMonth,V.l10n),e.tabIndex=-1,V.currentMonth===t&&(e.selected=!0),V.monthsDropdownContainer.appendChild(e))}var n}function C(){ne(V.monthNav),V.monthNav.appendChild(V.prevMonthNav),V.config.showMonths&&(V.yearElements=[],V.monthElements=[]);for(var e=V.config.showMonths;e--;){var t=function(){var e=te("div","flatpickr-month"),t=window.document.createDocumentFragment(),n=1<V.config.showMonths||"static"===V.config.monthSelectorType?te("span","cur-month"):(V.monthsDropdownContainer=te("select","flatpickr-monthDropdown-months"),V.monthsDropdownContainer.setAttribute("aria-label",V.l10n.monthAriaLabel),r(V.monthsDropdownContainer,"change",function(e){e=oe(e),e=parseInt(e.value,10);V.changeMonth(e-V.currentMonth),J("onMonthChange")}),b(),V.monthsDropdownContainer),a=ae("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",V.l10n.yearAriaLabel),V.config.minDate&&o.setAttribute("min",V.config.minDate.getFullYear().toString()),V.config.maxDate&&(o.setAttribute("max",V.config.maxDate.getFullYear().toString()),o.disabled=!!V.config.minDate&&V.config.minDate.getFullYear()===V.config.maxDate.getFullYear());var i=te("div","flatpickr-current-month");return i.appendChild(n),i.appendChild(a),t.appendChild(i),e.appendChild(t),{container:e,yearElement:o,monthElement:n}}();V.yearElements.push(t.yearElement),V.monthElements.push(t.monthElement),V.monthNav.appendChild(t.container)}V.monthNav.appendChild(V.nextMonthNav)}function M(){V.weekdayContainer?ne(V.weekdayContainer):V.weekdayContainer=te("div","flatpickr-weekdays");for(var e=V.config.showMonths;e--;){var t=te("div","flatpickr-weekdaycontainer");V.weekdayContainer.appendChild(t)}return y(),V.weekdayContainer}function y(){if(V.weekdayContainer){var e=V.l10n.firstDayOfWeek,t=Q(V.l10n.weekdays.shorthand);0<e&&e<t.length&&(t=Q(t.splice(e,t.length),t.splice(0,e)));for(var n=V.config.showMonths;n--;)V.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function x(e,t){e=(t=void 0===t?!0:t)?e:e-V.currentMonth;e<0&&!0===V._hidePrevMonthArrow||0<e&&!0===V._hideNextMonthArrow||(V.currentMonth+=e,(V.currentMonth<0||11<V.currentMonth)&&(V.currentYear+=11<V.currentMonth?1:-1,V.currentMonth=(V.currentMonth+12)%12,J("onYearChange"),b()),w(),J("onMonthChange"),q())}function E(e){return!(!V.config.appendTo||!V.config.appendTo.contains(e))||V.calendarContainer.contains(e)}function k(e){var t,n,a;V.isOpen&&!V.config.inline&&(a=E(t=oe(e)),n=t===V.input||t===V.altInput||V.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(V.input)||~e.path.indexOf(V.altInput)),a="blur"===e.type?n&&e.relatedTarget&&!E(e.relatedTarget):!n&&!a&&!E(e.relatedTarget),e=!V.config.ignoredFocusElements.some(function(e){return e.contains(t)}),a&&e&&(void 0!==V.timeContainer&&void 0!==V.minuteElement&&void 0!==V.hourElement&&""!==V.input.value&&void 0!==V.input.value&&f(),V.close(),V.config&&"range"===V.config.mode&&1===V.selectedDates.length&&(V.clear(!1),V.redraw())))}function T(e){var t;!e||V.config.minDate&&e<V.config.minDate.getFullYear()||V.config.maxDate&&e>V.config.maxDate.getFullYear()||(t=V.currentYear!==e,V.currentYear=e||V.currentYear,V.config.maxDate&&V.currentYear===V.config.maxDate.getFullYear()?V.currentMonth=Math.min(V.config.maxDate.getMonth(),V.currentMonth):V.config.minDate&&V.currentYear===V.config.minDate.getFullYear()&&(V.currentMonth=Math.max(V.config.minDate.getMonth(),V.currentMonth)),t&&(V.redraw(),J("onYearChange"),b()))}function I(e,t){var n=V.parseDate(e,void 0,t=void 0===t?!0:t);if(V.config.minDate&&n&&ie(n,V.config.minDate,void 0!==t?t:!V.minDateHasTime)<0||V.config.maxDate&&n&&0<ie(n,V.config.maxDate,void 0!==t?t:!V.maxDateHasTime))return!1;if(!V.config.enable&&0===V.config.disable.length)return!0;if(void 0===n)return!1;for(var a=!!V.config.enable,o=null!==(t=V.config.enable)&&void 0!==t?t:V.config.disable,i=0,r=void 0;i<o.length;i++){if("function"==typeof(r=o[i])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r){var l=V.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 S(e){return void 0!==V.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&V.daysContainer.contains(e)}function _(e){e.target!==V._input||!(0<V.selectedDates.length||0<V._input.value.length)||e.relatedTarget&&E(e.relatedTarget)||V.setDate(V._input.value,!0,e.target===V.altInput?V.config.altFormat:V.config.dateFormat)}function O(e){var t=oe(e),n=V.config.wrap?d.contains(t):t===V._input,a=V.config.allowInput,o=V.isOpen&&(!a||!n),i=V.config.inline&&n&&!a;if(13===e.keyCode&&n){if(a)return V.setDate(V._input.value,!0,t===V.altInput?V.config.altFormat:V.config.dateFormat),t.blur();V.open()}else if(E(t)||o||i){var r,l=!!V.timeContainer&&V.timeContainer.contains(t);switch(e.keyCode){case 13:l?(e.preventDefault(),f(),L()):W(e);break;case 27:e.preventDefault(),L();break;case 8:case 46:n&&!V.config.allowInput&&(e.preventDefault(),V.clear());break;case 37:case 39:l||n?V.hourElement&&V.hourElement.focus():(e.preventDefault(),void 0!==V.daysContainer&&(!1===a||document.activeElement&&S(document.activeElement))&&(r=39===e.keyCode?1:-1,e.ctrlKey?(e.stopPropagation(),x(r),D(v(1),0)):D(void 0,r)));break;case 38:case 40:e.preventDefault();var c=40===e.keyCode?1:-1;V.daysContainer&&void 0!==t.$i||t===V.input||t===V.altInput?e.ctrlKey?(e.stopPropagation(),T(V.currentYear-c),D(v(1),0)):l||D(void 0,7*c):t===V.currentYearElement?T(V.currentYear-c):V.config.enableTime&&(!l&&V.hourElement&&V.hourElement.focus(),f(e),V._debouncedChange());break;case 9:l?-1!==(c=(r=[V.hourElement,V.minuteElement,V.secondElement,V.amPM].concat(V.pluginElements).filter(function(e){return e})).indexOf(t))&&(c=r[c+(e.shiftKey?-1:1)],e.preventDefault(),(c||V._input).focus()):!V.config.noCalendar&&V.daysContainer&&V.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),V._input.focus())}}if(void 0!==V.amPM&&t===V.amPM)switch(e.key){case V.l10n.amPM[0].charAt(0):case V.l10n.amPM[0].charAt(0).toLowerCase():V.amPM.textContent=V.l10n.amPM[0],m(),z();break;case V.l10n.amPM[1].charAt(0):case V.l10n.amPM[1].charAt(0).toLowerCase():V.amPM.textContent=V.l10n.amPM[1],m(),z()}(n||E(t))&&J("onKeyDown",e)}function F(o){if(1===V.selectedDates.length&&(!o||o.classList.contains("flatpickr-day")&&!o.classList.contains("flatpickr-disabled"))){for(var i=(o||V.days.firstElementChild).dateObj.getTime(),r=V.parseDate(V.selectedDates[0],void 0,!0).getTime(),e=Math.min(i,V.selectedDates[0].getTime()),t=Math.max(i,V.selectedDates[0].getTime()),l=!1,c=0,d=0,n=e;n<t;n+=De)I(new Date(n),!0)||(l=l||e<n&&n<t,n<r&&(!c||c<n)?c=n:r<n&&(!d||n<d)&&(d=n));for(var a=0;a<V.config.showMonths;a++)for(var s=V.daysContainer.children[a],u=0,f=s.children.length;u<f;u++)!function(e){var t=s.children[e],n=t.dateObj.getTime(),a=0<c&&n<c||0<d&&d<n;a?(t.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)})):l&&!a||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==o&&(o.classList.add(i<=V.selectedDates[0].getTime()?"startRange":"endRange"),r<i&&n===r?t.classList.add("startRange"):i<r&&n===r&&t.classList.add("endRange"),c<=n&&(0===d||n<=d)&&(e=r,a=i,(n=n)>Math.min(e,a)&&n<Math.max(e,a))&&t.classList.add("inRange")))}(u)}}function A(){!V.isOpen||V.config.static||V.config.inline||j()}function N(n){return function(e){var t=V.config["_"+n+"Date"]=V.parseDate(e,V.config.dateFormat),e=V.config["_"+("min"===n?"max":"min")+"Date"];void 0!==t&&(V["min"===n?"minDateHasTime":"maxDateHasTime"]=0<t.getHours()||0<t.getMinutes()||0<t.getSeconds()),V.selectedDates&&(V.selectedDates=V.selectedDates.filter(function(e){return I(e)}),V.selectedDates.length||"min"!==n||a(t),z()),V.daysContainer&&(H(),void 0!==t?V.currentYearElement[n]=t.getFullYear().toString():V.currentYearElement.removeAttribute(n),V.currentYearElement.disabled=!!e&&void 0!==t&&e.getFullYear()===t.getFullYear())}}function P(){return V.config.wrap?d.querySelector("[data-input]"):d}function Y(){"object"!=typeof V.config.locale&&void 0===we.l10ns[V.config.locale]&&V.config.errorHandler(new Error("flatpickr: invalid locale "+V.config.locale)),V.l10n=le(le({},we.l10ns.default),"object"==typeof V.config.locale?V.config.locale:"default"!==V.config.locale?we.l10ns[V.config.locale]:void 0),pe.K="("+V.l10n.amPM[0]+"|"+V.l10n.amPM[1]+"|"+V.l10n.amPM[0].toLowerCase()+"|"+V.l10n.amPM[1].toLowerCase()+")",void 0===le(le({},s),JSON.parse(JSON.stringify(d.dataset||{}))).time_24hr&&void 0===we.defaultConfig.time_24hr&&(V.config.time_24hr=V.l10n.time_24hr),V.formatDate=he(V),V.parseDate=ve({config:V.config,l10n:V.l10n})}function j(e){var t,n,a,o,i,r,l;"function"!=typeof V.config.position?void 0!==V.calendarContainer&&(J("onPreCalendarPosition"),o=e||V._positionElement,n=Array.prototype.reduce.call(V.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=V.calendarContainer.offsetWidth,i=(t=V.config.position.split(" "))[0],a=1<t.length?t[1]:null,l=o.getBoundingClientRect(),t=window.innerHeight-l.bottom,i="above"===i||"below"!==i&&t<n&&l.top>n,t=window.pageYOffset+l.top+(i?-n-2:o.offsetHeight+2),ee(V.calendarContainer,"arrowTop",!i),ee(V.calendarContainer,"arrowBottom",i),V.config.inline||(n=window.pageXOffset+l.left,i=o=!1,"center"===a?(n-=(r-l.width)/2,o=!0):"right"===a&&(n-=r-l.width,i=!0),ee(V.calendarContainer,"arrowLeft",!o&&!i),ee(V.calendarContainer,"arrowCenter",o),ee(V.calendarContainer,"arrowRight",i),a=window.document.body.offsetWidth-(window.pageXOffset+l.right),o=n+r>window.document.body.offsetWidth,i=a+r>window.document.body.offsetWidth,ee(V.calendarContainer,"rightMost",o),V.config.static||(V.calendarContainer.style.top=t+"px",o?i?void 0!==(o=function(){for(var e,t=null,n=0;n<document.styleSheets.length;n++){var a=document.styleSheets[n];try{a.cssRules}catch(t){continue}t=a;break}return null!=t?t:(e=document.createElement("style"),document.head.appendChild(e),e.sheet)}())&&(i=window.document.body.offsetWidth,i=Math.max(0,i/2-r/2),r=o.cssRules.length,l="{left:"+l.left+"px;right:auto;}",ee(V.calendarContainer,"rightMost",!1),ee(V.calendarContainer,"centerMost",!0),o.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+l,r),V.calendarContainer.style.left=i+"px",V.calendarContainer.style.right="auto"):(V.calendarContainer.style.left="auto",V.calendarContainer.style.right=a+"px"):(V.calendarContainer.style.left=n+"px",V.calendarContainer.style.right="auto")))):V.config.position(V,e)}function H(){V.config.noCalendar||V.isMobile||(b(),q(),w())}function L(){V._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(V.close,0):V.close()}function W(e){e.preventDefault(),e.stopPropagation();var t,n,a=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(oe(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});void 0!==a&&(n=a,a=((e=V.latestSelectedDateObj=new Date(n.dateObj.getTime())).getMonth()<V.currentMonth||e.getMonth()>V.currentMonth+V.config.showMonths-1)&&"range"!==V.config.mode,V.selectedDateElem=n,"single"===V.config.mode?V.selectedDates=[e]:"multiple"===V.config.mode?(t=U(e))?V.selectedDates.splice(parseInt(t),1):V.selectedDates.push(e):"range"===V.config.mode&&(2===V.selectedDates.length&&V.clear(!1,!1),V.latestSelectedDateObj=e,V.selectedDates.push(e),0!==ie(e,V.selectedDates[0],!0)&&V.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})),m(),a&&(t=V.currentYear!==e.getFullYear(),V.currentYear=e.getFullYear(),V.currentMonth=e.getMonth(),t&&(J("onYearChange"),b()),J("onMonthChange")),q(),w(),z(),a||"range"===V.config.mode||1!==V.config.showMonths?void 0!==V.selectedDateElem&&void 0===V.hourElement&&V.selectedDateElem&&V.selectedDateElem.focus():h(n),void 0!==V.hourElement&&void 0!==V.hourElement&&V.hourElement.focus(),V.config.closeOnSelect&&(a="single"===V.config.mode&&!V.config.enableTime,n="range"===V.config.mode&&2===V.selectedDates.length&&!V.config.enableTime,(a||n)&&L()),o())}function R(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return V.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[V.parseDate(e,t)];else if("string"==typeof e)switch(V.config.mode){case"single":case"time":n=[V.parseDate(e,t)];break;case"multiple":n=e.split(V.config.conjunction).map(function(e){return V.parseDate(e,t)});break;case"range":n=e.split(V.l10n.rangeSeparator).map(function(e){return V.parseDate(e,t)})}else V.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));V.selectedDates=V.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&I(e,!1)}),"range"===V.config.mode&&V.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function B(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?V.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:V.parseDate(e.from,void 0),to:V.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function J(e,t){if(void 0!==V.config){var n=V.config[e];if(void 0!==n&&0<n.length)for(var a=0;n[a]&&a<n.length;a++)n[a](V.selectedDates,V.input.value,V,t);"onChange"===e&&(V.input.dispatchEvent(K("change")),V.input.dispatchEvent(K("input")))}}function K(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function U(e){for(var t=0;t<V.selectedDates.length;t++)if(0===ie(V.selectedDates[t],e))return""+t;return!1}function q(){V.config.noCalendar||V.isMobile||!V.monthNav||(V.yearElements.forEach(function(e,t){var n=new Date(V.currentYear,V.currentMonth,1);n.setMonth(V.currentMonth+t),1<V.config.showMonths||"static"===V.config.monthSelectorType?V.monthElements[t].textContent=ge(n.getMonth(),V.config.shorthandCurrentMonth,V.l10n)+" ":V.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),V._hidePrevMonthArrow=void 0!==V.config.minDate&&(V.currentYear===V.config.minDate.getFullYear()?V.currentMonth<=V.config.minDate.getMonth():V.currentYear<V.config.minDate.getFullYear()),V._hideNextMonthArrow=void 0!==V.config.maxDate&&(V.currentYear===V.config.maxDate.getFullYear()?V.currentMonth+1>V.config.maxDate.getMonth():V.currentYear>V.config.maxDate.getFullYear()))}function $(t){return V.selectedDates.map(function(e){return V.formatDate(e,t)}).filter(function(e,t,n){return"range"!==V.config.mode||V.config.enableTime||n.indexOf(e)===t}).join("range"!==V.config.mode?V.config.conjunction:V.l10n.rangeSeparator)}function z(e){void 0===e&&(e=!0),void 0!==V.mobileInput&&V.mobileFormatStr&&(V.mobileInput.value=void 0!==V.latestSelectedDateObj?V.formatDate(V.latestSelectedDateObj,V.mobileFormatStr):""),V.input.value=$(V.config.dateFormat),void 0!==V.altInput&&(V.altInput.value=$(V.config.altFormat)),!1!==e&&J("onValueUpdate")}function G(e){var t=oe(e),n=V.prevMonthNav.contains(t),e=V.nextMonthNav.contains(t);n||e?x(n?-1:1):0<=V.yearElements.indexOf(t)?t.select():t.classList.contains("arrowUp")?V.changeYear(V.currentYear+1):t.classList.contains("arrowDown")&&V.changeYear(V.currentYear-1)}var V={config:le(le({},de),we.defaultConfig),l10n:se};V.parseDate=ve({config:V.config,l10n:V.l10n}),V._handlers=[],V.pluginElements=[],V.loadedPlugins=[],V._bind=r,V._setHoursFromDate=a,V._positionCalendar=j,V.changeMonth=x,V.changeYear=T,V.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),V.input.value="",void 0!==V.altInput&&(V.altInput.value=""),void 0!==V.mobileInput&&(V.mobileInput.value=""),V.selectedDates=[],!(V.latestSelectedDateObj=void 0)===t&&(V.currentYear=V._initialDate.getFullYear(),V.currentMonth=V._initialDate.getMonth()),!0===V.config.enableTime&&i((t=re(V.config)).hours,t.minutes,t.seconds),V.redraw(),e&&J("onChange")},V.close=function(){V.isOpen=!1,V.isMobile||(void 0!==V.calendarContainer&&V.calendarContainer.classList.remove("open"),void 0!==V._input&&V._input.classList.remove("active")),J("onClose")},V._createElement=te,V.destroy=function(){void 0!==V.config&&J("onDestroy");for(var e=V._handlers.length;e--;)V._handlers[e].remove();if(V._handlers=[],V.mobileInput)V.mobileInput.parentNode&&V.mobileInput.parentNode.removeChild(V.mobileInput),V.mobileInput=void 0;else if(V.calendarContainer&&V.calendarContainer.parentNode)if(V.config.static&&V.calendarContainer.parentNode){var t=V.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else V.calendarContainer.parentNode.removeChild(V.calendarContainer);V.altInput&&(V.input.type="text",V.altInput.parentNode&&V.altInput.parentNode.removeChild(V.altInput),delete V.altInput),V.input&&(V.input.type=V.input._type,V.input.classList.remove("flatpickr-input"),V.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete V[e]}catch(e){}})},V.isEnabled=I,V.jumpToDate=l,V.open=function(e,t){var n;if(void 0===t&&(t=V._positionElement),!0===V.isMobile)return e&&(e.preventDefault(),(n=oe(e))&&n.blur()),void 0!==V.mobileInput&&(V.mobileInput.focus(),V.mobileInput.click()),void J("onOpen");V._input.disabled||V.config.inline||(n=V.isOpen,V.isOpen=!0,n||(V.calendarContainer.classList.add("open"),V._input.classList.add("active"),J("onOpen"),j(t)),!0===V.config.enableTime&&!0===V.config.noCalendar&&(!1!==V.config.allowInput||void 0!==e&&V.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return V.hourElement.select()},50)))},V.redraw=H,V.set=function(e,t){if(null!==e&&"object"==typeof e)for(var n in Object.assign(V.config,e),e)void 0!==Z[n]&&Z[n].forEach(function(e){return e()});else V.config[e]=t,void 0!==Z[e]?Z[e].forEach(function(e){return e()}):-1<ce.indexOf(e)&&(V.config[e]=me(t));V.redraw(),z(!0)},V.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=V.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return V.clear(t);R(e,n),V.latestSelectedDateObj=V.selectedDates[V.selectedDates.length-1],V.redraw(),l(void 0,t),a(),0===V.selectedDates.length&&V.clear(!1),z(t),t&&J("onChange")},V.toggle=function(e){if(!0===V.isOpen)return V.close();V.open(e)};var Z={locale:[Y,y],showMonths:[C,t,M],minDate:[l],maxDate:[l],clickOpens:[function(){!0===V.config.clickOpens?(r(V._input,"focus",V.open),r(V._input,"click",V.open)):(V._input.removeEventListener("focus",V.open),V._input.removeEventListener("click",V.open))}]};return function(){V.element=V.input=d,V.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=le(le({},JSON.parse(JSON.stringify(d.dataset||{}))),s),n={};V.config.parseDate=t.parseDate,V.config.formatDate=t.formatDate,Object.defineProperty(V.config,"enable",{get:function(){return V.config._enable},set:function(e){V.config._enable=B(e)}}),Object.defineProperty(V.config,"disable",{get:function(){return V.config._disable},set:function(e){V.config._disable=B(e)}});var a,o="time"===t.mode;t.dateFormat||!t.enableTime&&!o||(a=we.defaultConfig.dateFormat||de.dateFormat,n.dateFormat=t.noCalendar||o?"H:i"+(t.enableSeconds?":S":""):a+" H:i"+(t.enableSeconds?":S":"")),t.altInput&&(t.enableTime||o)&&!t.altFormat&&(i=we.defaultConfig.altFormat||de.altFormat,n.altFormat=t.noCalendar||o?"h:i"+(t.enableSeconds?":S K":" K"):i+" h:i"+(t.enableSeconds?":S":"")+" K"),Object.defineProperty(V.config,"minDate",{get:function(){return V.config._minDate},set:N("min")}),Object.defineProperty(V.config,"maxDate",{get:function(){return V.config._maxDate},set:N("max")});var i=function(t){return function(e){V.config["min"===t?"_minTime":"_maxTime"]=V.parseDate(e,"H:i:S")}};Object.defineProperty(V.config,"minTime",{get:function(){return V.config._minTime},set:i("min")}),Object.defineProperty(V.config,"maxTime",{get:function(){return V.config._maxTime},set:i("max")}),"time"===t.mode&&(V.config.noCalendar=!0,V.config.enableTime=!0),Object.assign(V.config,n,t);for(var r=0;r<e.length;r++)V.config[e[r]]=!0===V.config[e[r]]||"true"===V.config[e[r]];for(ce.filter(function(e){return void 0!==V.config[e]}).forEach(function(e){V.config[e]=me(V.config[e]||[]).map(u)}),V.isMobile=!V.config.disableMobile&&!V.config.inline&&"single"===V.config.mode&&!V.config.disable.length&&!V.config.enable&&!V.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),r=0;r<V.config.plugins.length;r++){var l,c=V.config.plugins[r](V)||{};for(l in c)-1<ce.indexOf(l)?V.config[l]=me(c[l]).map(u).concat(V.config[l]):void 0===t[l]&&(V.config[l]=c[l])}t.altInputClass||(V.config.altInputClass=P().className+" "+V.config.altInputClass),J("onParseConfig")}(),Y(),V.input=P(),V.input?(V.input._type=V.input.type,V.input.type="text",V.input.classList.add("flatpickr-input"),V._input=V.input,V.config.altInput&&(V.altInput=te(V.input.nodeName,V.config.altInputClass),V._input=V.altInput,V.altInput.placeholder=V.input.placeholder,V.altInput.disabled=V.input.disabled,V.altInput.required=V.input.required,V.altInput.tabIndex=V.input.tabIndex,V.altInput.type="text",V.input.setAttribute("type","hidden"),!V.config.static&&V.input.parentNode&&V.input.parentNode.insertBefore(V.altInput,V.input.nextSibling)),V.config.allowInput||V._input.setAttribute("readonly","readonly"),V._positionElement=V.config.positionElement||V._input):V.config.errorHandler(new Error("Invalid input element specified")),function(){V.selectedDates=[],V.now=V.parseDate(V.config.now)||new Date;var e=V.config.defaultDate||("INPUT"!==V.input.nodeName&&"TEXTAREA"!==V.input.nodeName||!V.input.placeholder||V.input.value!==V.input.placeholder?V.input.value:null);e&&R(e,V.config.dateFormat),V._initialDate=0<V.selectedDates.length?V.selectedDates[0]:V.config.minDate&&V.config.minDate.getTime()>V.now.getTime()?V.config.minDate:V.config.maxDate&&V.config.maxDate.getTime()<V.now.getTime()?V.config.maxDate:V.now,V.currentYear=V._initialDate.getFullYear(),V.currentMonth=V._initialDate.getMonth(),0<V.selectedDates.length&&(V.latestSelectedDateObj=V.selectedDates[0]),void 0!==V.config.minTime&&(V.config.minTime=V.parseDate(V.config.minTime,"H:i")),void 0!==V.config.maxTime&&(V.config.maxTime=V.parseDate(V.config.maxTime,"H:i")),V.minDateHasTime=!!V.config.minDate&&(0<V.config.minDate.getHours()||0<V.config.minDate.getMinutes()||0<V.config.minDate.getSeconds()),V.maxDateHasTime=!!V.config.maxDate&&(0<V.config.maxDate.getHours()||0<V.config.maxDate.getMinutes()||0<V.config.maxDate.getSeconds())}(),V.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=V.currentMonth),void 0===t&&(t=V.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:V.l10n.daysInMonth[e]}},V.isMobile||function(){var e,t,n=window.document.createDocumentFragment();V.calendarContainer=te("div","flatpickr-calendar"),V.calendarContainer.tabIndex=-1,V.config.noCalendar||(n.appendChild((V.monthNav=te("div","flatpickr-months"),V.yearElements=[],V.monthElements=[],V.prevMonthNav=te("span","flatpickr-prev-month"),V.prevMonthNav.innerHTML=V.config.prevArrow,V.nextMonthNav=te("span","flatpickr-next-month"),V.nextMonthNav.innerHTML=V.config.nextArrow,C(),Object.defineProperty(V,"_hidePrevMonthArrow",{get:function(){return V.__hidePrevMonthArrow},set:function(e){V.__hidePrevMonthArrow!==e&&(ee(V.prevMonthNav,"flatpickr-disabled",e),V.__hidePrevMonthArrow=e)}}),Object.defineProperty(V,"_hideNextMonthArrow",{get:function(){return V.__hideNextMonthArrow},set:function(e){V.__hideNextMonthArrow!==e&&(ee(V.nextMonthNav,"flatpickr-disabled",e),V.__hideNextMonthArrow=e)}}),V.currentYearElement=V.yearElements[0],q(),V.monthNav)),V.innerContainer=te("div","flatpickr-innerContainer"),V.config.weekNumbers&&(e=(t=function(){V.calendarContainer.classList.add("hasWeeks");var e=te("div","flatpickr-weekwrapper");e.appendChild(te("span","flatpickr-weekday",V.l10n.weekAbbreviation));var t=te("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}()).weekWrapper,t=t.weekNumbers,V.innerContainer.appendChild(e),V.weekNumbers=t,V.weekWrapper=e),V.rContainer=te("div","flatpickr-rContainer"),V.rContainer.appendChild(M()),V.daysContainer||(V.daysContainer=te("div","flatpickr-days"),V.daysContainer.tabIndex=-1),w(),V.rContainer.appendChild(V.daysContainer),V.innerContainer.appendChild(V.rContainer),n.appendChild(V.innerContainer)),V.config.enableTime&&n.appendChild(function(){V.calendarContainer.classList.add("hasTime"),V.config.noCalendar&&V.calendarContainer.classList.add("noCalendar");var e=re(V.config);V.timeContainer=te("div","flatpickr-time"),V.timeContainer.tabIndex=-1;var t=te("span","flatpickr-time-separator",":"),n=ae("flatpickr-hour",{"aria-label":V.l10n.hourAriaLabel});V.hourElement=n.getElementsByTagName("input")[0];var a=ae("flatpickr-minute",{"aria-label":V.l10n.minuteAriaLabel});return V.minuteElement=a.getElementsByTagName("input")[0],V.hourElement.tabIndex=V.minuteElement.tabIndex=-1,V.hourElement.value=ue(V.latestSelectedDateObj?V.latestSelectedDateObj.getHours():V.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),V.minuteElement.value=ue(V.latestSelectedDateObj?V.latestSelectedDateObj.getMinutes():e.minutes),V.hourElement.setAttribute("step",V.config.hourIncrement.toString()),V.minuteElement.setAttribute("step",V.config.minuteIncrement.toString()),V.hourElement.setAttribute("min",V.config.time_24hr?"0":"1"),V.hourElement.setAttribute("max",V.config.time_24hr?"23":"12"),V.hourElement.setAttribute("maxlength","2"),V.minuteElement.setAttribute("min","0"),V.minuteElement.setAttribute("max","59"),V.minuteElement.setAttribute("maxlength","2"),V.timeContainer.appendChild(n),V.timeContainer.appendChild(t),V.timeContainer.appendChild(a),V.config.time_24hr&&V.timeContainer.classList.add("time24hr"),V.config.enableSeconds&&(V.timeContainer.classList.add("hasSeconds"),a=ae("flatpickr-second"),V.secondElement=a.getElementsByTagName("input")[0],V.secondElement.value=ue(V.latestSelectedDateObj?V.latestSelectedDateObj.getSeconds():e.seconds),V.secondElement.setAttribute("step",V.minuteElement.getAttribute("step")),V.secondElement.setAttribute("min","0"),V.secondElement.setAttribute("max","59"),V.secondElement.setAttribute("maxlength","2"),V.timeContainer.appendChild(te("span","flatpickr-time-separator",":")),V.timeContainer.appendChild(a)),V.config.time_24hr||(V.amPM=te("span","flatpickr-am-pm",V.l10n.amPM[fe(11<(V.latestSelectedDateObj?V.hourElement.value:V.config.defaultHour))]),V.amPM.title=V.l10n.toggleTitle,V.amPM.tabIndex=-1,V.timeContainer.appendChild(V.amPM)),V.timeContainer}()),ee(V.calendarContainer,"rangeMode","range"===V.config.mode),ee(V.calendarContainer,"animate",!0===V.config.animate),ee(V.calendarContainer,"multiMonth",1<V.config.showMonths),V.calendarContainer.appendChild(n);n=void 0!==V.config.appendTo&&void 0!==V.config.appendTo.nodeType;(V.config.inline||V.config.static)&&(V.calendarContainer.classList.add(V.config.inline?"inline":"static"),V.config.inline&&(!n&&V.element.parentNode?V.element.parentNode.insertBefore(V.calendarContainer,V._input.nextSibling):void 0!==V.config.appendTo&&V.config.appendTo.appendChild(V.calendarContainer)),V.config.static)&&(n=te("div","flatpickr-wrapper"),V.element.parentNode&&V.element.parentNode.insertBefore(n,V.element),n.appendChild(V.element),V.altInput&&n.appendChild(V.altInput),n.appendChild(V.calendarContainer)),V.config.static||V.config.inline||(void 0!==V.config.appendTo?V.config.appendTo:window.document.body).appendChild(V.calendarContainer)}(),function(){if(V.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(V.element.querySelectorAll("[data-"+t+"]"),function(e){return r(e,"click",V[t])})}),V.isMobile)return function(){var e=V.config.enableTime?V.config.noCalendar?"time":"datetime-local":"date";V.mobileInput=te("input",V.input.className+" flatpickr-mobile"),V.mobileInput.tabIndex=1,V.mobileInput.type=e,V.mobileInput.disabled=V.input.disabled,V.mobileInput.required=V.input.required,V.mobileInput.placeholder=V.input.placeholder,V.mobileFormatStr="datetime-local"==e?"Y-m-d\\TH:i:S":"date"==e?"Y-m-d":"H:i:S",0<V.selectedDates.length&&(V.mobileInput.defaultValue=V.mobileInput.value=V.formatDate(V.selectedDates[0],V.mobileFormatStr)),V.config.minDate&&(V.mobileInput.min=V.formatDate(V.config.minDate,"Y-m-d")),V.config.maxDate&&(V.mobileInput.max=V.formatDate(V.config.maxDate,"Y-m-d")),V.input.getAttribute("step")&&(V.mobileInput.step=String(V.input.getAttribute("step"))),V.input.type="hidden",void 0!==V.altInput&&(V.altInput.type="hidden");try{V.input.parentNode&&V.input.parentNode.insertBefore(V.mobileInput,V.input.nextSibling)}catch(e){}r(V.mobileInput,"change",function(e){V.setDate(oe(e).value,!1,V.mobileFormatStr),J("onChange"),J("onClose")})}();var e=X(A,50);V._debouncedChange=X(o,300),V.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&r(V.daysContainer,"mouseover",function(e){"range"===V.config.mode&&F(oe(e))}),r(window.document.body,"keydown",O),V.config.inline||V.config.static||r(window,"resize",e),void 0!==window.ontouchstart?r(window.document,"touchstart",k):r(window.document,"mousedown",k),r(window.document,"focus",k,{capture:!0}),!0===V.config.clickOpens&&(r(V._input,"focus",V.open),r(V._input,"click",V.open)),void 0!==V.daysContainer&&(r(V.monthNav,"click",G),r(V.monthNav,["keyup","increment"],n),r(V.daysContainer,"click",W)),void 0!==V.timeContainer&&void 0!==V.minuteElement&&void 0!==V.hourElement&&(r(V.timeContainer,["increment"],f),r(V.timeContainer,"blur",f,{capture:!0}),r(V.timeContainer,"click",c),r([V.hourElement,V.minuteElement],["focus","click"],function(e){return oe(e).select()}),void 0!==V.secondElement&&r(V.secondElement,"focus",function(){return V.secondElement&&V.secondElement.select()}),void 0!==V.amPM&&r(V.amPM,"click",function(e){f(e),o()})),V.config.allowInput&&r(V._input,"blur",_)}(),(V.selectedDates.length||V.config.noCalendar)&&(V.config.enableTime&&a(V.config.noCalendar?V.latestSelectedDateObj:void 0),z(!1)),t();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!V.isMobile&&e&&j(),J("onReady")}(),V}function n(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),a=[],o=0;o<n.length;o++){var i=n[o];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=r(i,t||{}),a.push(i._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}function e(){}var le=function(){return(le=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ce=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],de={_disable:[],allowInput:!1,allowInvalidPreload:!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",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);e=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",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,now:new Date,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,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},se={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",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},ue=function(e,t){return("000"+e).slice(-1*(t=void 0===t?2:t))},fe=function(e){return!0===e?1:0},me=function(e){return e instanceof Array?e:[e]},ge=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:e,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*fe(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,n){t=parseInt(t),t=new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0);return t.setDate(t.getDate()-t.getDay()+n.firstDayOfWeek),t},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:e,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))},u:function(e,t){return new Date(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},pe={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)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return ge(l.n(e,t,n)-1,!1,t)},G:function(e,t,n){return ue(l.h(e,t,n))},H:function(e){return ue(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[fe(11<e.getHours())]},M:function(e,t){return ge(e.getMonth(),!0,t)},S:function(e){return ue(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return ue(e.getFullYear(),4)},d:function(e){return ue(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return ue(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return ue(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},he=function(e){var t=e.config,i=void 0===t?de:t,t=e.l10n,n=void 0===t?se:t,e=e.isMobile,r=void 0!==e&&e;return function(a,e,t){var o=t||n;return void 0===i.formatDate||r?e.split("").map(function(e,t,n){return l[e]&&"\\"!==n[t-1]?l[e](a,o,i):"\\"!==e?e:""}).join(""):i.formatDate(a,e,o)}},ve=function(e){var t=e.config,p=void 0===t?de:t,e=e.l10n,h=void 0===e?se:e;return function(e,t,n,a){if(0===e||e){var o=a||h,a=e;if(e instanceof Date)r=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)r=new Date(e);else if("string"==typeof e){var i=t||(p||de).dateFormat,t=String(e).trim();if("today"===t)r=new Date,n=!0;else if(/Z$/.test(t)||/GMT$/.test(t))r=new Date(e);else if(p&&p.parseDate)r=p.parseDate(e,i);else{for(var r=p&&p.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),l=void 0,c=[],d=0,s=0,u="";d<i.length;d++){var f=i[d],m="\\"===f,g="\\"===i[d-1]||m;pe[f]&&!g?(u+=pe[f],(g=new RegExp(u).exec(e))&&(l=!0)&&c["Y"!==f?"push":"unshift"]({fn:v[f],val:g[++s]})):m||(u+="."),c.forEach(function(e){var t=e.fn,e=e.val;return r=t(r,e,o)||r})}r=l?r:void 0}}if(r instanceof Date&&!isNaN(r.getTime()))return!0===n&&r.setHours(0,0,0,0),r;p.errorHandler(new Error("Invalid date provided: "+a))}}},De=864e5;"function"!=typeof Object.assign&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var a=0,o=e;a<o.length;a++)!function(t){t&&Object.keys(t).forEach(function(e){return n[e]=t[e]})}(o[a]);return n}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return n(this,e)},HTMLElement.prototype.flatpickr=function(e){return n([this],e)});var we=function(e,t){return"string"==typeof e?n(window.document.querySelectorAll(e),t):e instanceof Node?n([e],t):n(e,t)};return we.defaultConfig={},we.l10ns={en:le({},se),default:le({},se)},we.localize=function(e){we.l10ns.default=le(le({},we.l10ns.default),e)},we.setDefaults=function(e){we.defaultConfig=le(le({},we.defaultConfig),e)},we.parseDate=ve({}),we.formatDate=he({}),we.compareDates=ie,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return n(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=we),we},"object"==typeof exports&&void 0!==a?a.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self).flatpickr=n(),a.resolve()});
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка