%PDF- %PDF-
Direktori : /var/www/projetos/suporte.iigd.com.br.old/public/lib/ |
Current File : /var/www/projetos/suporte.iigd.com.br.old/public/lib/flatpickr.min.js |
(()=>{var e={370:function(e){ /* flatpickr v4.6.11, @license MIT */ (function(n,t){true?e.exports=t():0})(this,(function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var e=function(){e=Object.assign||function e(n){for(var t,a=1,i=arguments.length;a<i;a++){t=arguments[a];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))n[r]=t[r]}return n};return e.apply(this,arguments)};function n(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var a=Array(e),i=0,n=0;n<t;n++)for(var r=arguments[n],o=0,l=r.length;o<l;o++,i++)a[i]=r[o];return a}var t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"];var a={_disable:[],allowInput:false,allowInvalidPreload:false,altFormat:"F j, Y",altInput:false,altInputClass:"form-control input",animate:typeof window==="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:true,clickOpens:true,closeOnSelect:true,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:false,enableSeconds:false,enableTime:false,errorHandler:function(e){return typeof console!=="undefined"&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0);n.setDate(n.getDate()+3-(n.getDay()+6)%7);var t=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:false,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:false,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,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:false,showMonths:1,static:false,time_24hr:false,weekNumbers:false,wrap:false};var i={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 n=e%100;if(n>3&&n<21)return"th";switch(n%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:false};var r=function(e,n){if(n===void 0){n=2}return("000"+e).slice(n*-1)};var o=function(e){return e===true?1:0};function l(e,n){var t;return function(){var a=this;var i=arguments;clearTimeout(t);t=setTimeout((function(){return e.apply(a,i)}),n)}}var f=function(e){return e instanceof Array?e:[e]};function u(e,n,t){if(t===true)return e.classList.add(n);e.classList.remove(n)}function c(e,n,t){var a=window.document.createElement(e);n=n||"";t=t||"";a.className=n;if(t!==undefined)a.textContent=t;return a}function d(e){while(e.firstChild)e.removeChild(e.firstChild)}function s(e,n){if(n(e))return e;else if(e.parentNode)return s(e.parentNode,n);return undefined}function m(e,n){var t=c("div","numInputWrapper"),a=c("input","numInput "+e),i=c("span","arrowUp"),r=c("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1){a.type="number"}else{a.type="text";a.pattern="\\d*"}if(n!==undefined)for(var o in n)a.setAttribute(o,n[o]);t.appendChild(a);t.appendChild(i);t.appendChild(r);return t}function g(e){try{if(typeof e.composedPath==="function"){var n=e.composedPath();return n[0]}return e.target}catch(n){return e.target}}var p=function(){return undefined};var h=function(e,n,t){return t.months[n?"shorthand":"longhand"][e]};var v={D:p,F:function(e,n,t){e.setMonth(t.months.longhand.indexOf(n))},G:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},H:function(e,n){e.setHours(parseFloat(n))},J:function(e,n){e.setDate(parseFloat(n))},K:function(e,n,t){e.setHours(e.getHours()%12+12*o(new RegExp(t.amPM[1],"i").test(n)))},M:function(e,n,t){e.setMonth(t.months.shorthand.indexOf(n))},S:function(e,n){e.setSeconds(parseFloat(n))},U:function(e,n){return new Date(parseFloat(n)*1e3)},W:function(e,n,t){var a=parseInt(n);var i=new Date(e.getFullYear(),0,2+(a-1)*7,0,0,0,0);i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek);return i},Y:function(e,n){e.setFullYear(parseFloat(n))},Z:function(e,n){return new Date(n)},d:function(e,n){e.setDate(parseFloat(n))},h:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},i:function(e,n){e.setMinutes(parseFloat(n))},j:function(e,n){e.setDate(parseFloat(n))},l:p,m:function(e,n){e.setMonth(parseFloat(n)-1)},n:function(e,n){e.setMonth(parseFloat(n)-1)},s:function(e,n){e.setSeconds(parseFloat(n))},u:function(e,n){return new Date(parseFloat(n))},w:p,y:function(e,n){e.setFullYear(2e3+parseFloat(n))}};var D={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"};var b={Z:function(e){return e.toISOString()},D:function(e,n,t){return n.weekdays.shorthand[b.w(e,n,t)]},F:function(e,n,t){return h(b.n(e,n,t)-1,false,n)},G:function(e,n,t){return r(b.h(e,n,t))},H:function(e){return r(e.getHours())},J:function(e,n){return n.ordinal!==undefined?e.getDate()+n.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[o(e.getHours()>11)]},M:function(e,n){return h(e.getMonth(),true,n)},S:function(e){return r(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,n,t){return t.getWeek(e)},Y:function(e){return r(e.getFullYear(),4)},d:function(e){return r(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return r(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,n){return n.weekdays.longhand[e.getDay()]},m:function(e){return r(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)}};var w=function(e){var n=e.config,t=n===void 0?a:n,r=e.l10n,o=r===void 0?i:r,l=e.isMobile,f=l===void 0?false:l;return function(e,n,a){var i=a||o;if(t.formatDate!==undefined&&!f){return t.formatDate(e,n,i)}return n.split("").map((function(n,a,r){return b[n]&&r[a-1]!=="\\"?b[n](e,i,t):n!=="\\"?n:""})).join("")}};var y=function(e){var n=e.config,t=n===void 0?a:n,r=e.l10n,o=r===void 0?i:r;return function(e,n,i,r){if(e!==0&&!e)return undefined;var l=r||o;var f;var u=e;if(e instanceof Date)f=new Date(e.getTime());else if(typeof e!=="string"&&e.toFixed!==undefined)f=new Date(e);else if(typeof e==="string"){var c=n||(t||a).dateFormat;var d=String(e).trim();if(d==="today"){f=new Date;i=true}else if(t&&t.parseDate){f=t.parseDate(e,c)}else if(/Z$/.test(d)||/GMT$/.test(d)){f=new Date(e)}else{var s=void 0,m=[];for(var g=0,p=0,h="";g<c.length;g++){var b=c[g];var w=b==="\\";var y=c[g-1]==="\\"||w;if(D[b]&&!y){h+=D[b];var C=new RegExp(h).exec(e);if(C&&(s=true)){m[b!=="Y"?"push":"unshift"]({fn:v[b],val:C[++p]})}}else if(!w)h+="."}f=!t||!t.noCalendar?new Date((new Date).getFullYear(),0,1,0,0,0,0):new Date((new Date).setHours(0,0,0,0));m.forEach((function(e){var n=e.fn,t=e.val;return f=n(f,t,l)||f}));f=s?f:undefined}}if(!(f instanceof Date&&!isNaN(f.getTime()))){t.errorHandler(new Error("Invalid date provided: "+u));return undefined}if(i===true)f.setHours(0,0,0,0);return f}};function C(e,n,t){if(t===void 0){t=true}if(t!==false){return new Date(e.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0)}return e.getTime()-n.getTime()}var M=function(e,n,t){return e>Math.min(n,t)&&e<Math.max(n,t)};var x=function(e,n,t){return e*3600+n*60+t};var E=function(e){var n=Math.floor(e/3600),t=(e-n*3600)/60;return[n,t,e-n*3600-t*60]};var k={DAY:864e5};function T(e){var n=e.defaultHour;var t=e.defaultMinute;var a=e.defaultSeconds;if(e.minDate!==undefined){var i=e.minDate.getHours();var r=e.minDate.getMinutes();var o=e.minDate.getSeconds();if(n<i){n=i}if(n===i&&t<r){t=r}if(n===i&&t===r&&a<o)a=e.minDate.getSeconds()}if(e.maxDate!==undefined){var l=e.maxDate.getHours();var f=e.maxDate.getMinutes();n=Math.min(n,l);if(n===l)t=Math.min(f,t);if(n===l&&t===f)a=e.maxDate.getSeconds()}return{hours:n,minutes:t,seconds:a}}if(typeof Object.assign!=="function"){Object.assign=function(e){var n=[];for(var t=1;t<arguments.length;t++){n[t-1]=arguments[t]}if(!e){throw TypeError("Cannot convert undefined or null to object")}var a=function(n){if(n){Object.keys(n).forEach((function(t){return e[t]=n[t]}))}};for(var i=0,r=n;i<r.length;i++){var o=r[i];a(o)}return e}}var S=300;function I(p,v){var b={config:e(e({},a),O.defaultConfig),l10n:i};b.parseDate=y({config:b.config,l10n:b.l10n});b._handlers=[];b.pluginElements=[];b.loadedPlugins=[];b._bind=B;b._setHoursFromDate=L;b._positionCalendar=Se;b.changeMonth=ce;b.changeYear=he;b.clear=de;b.close=se;b.onMouseOver=ye;b._createElement=c;b.createDay=z;b.destroy=me;b.isEnabled=ve;b.jumpToDate=U;b.updateValue=Ge;b.open=Me;b.redraw=Oe;b.set=Pe;b.setDate=je;b.toggle=Je;function I(){b.utils={getDaysInMonth:function(e,n){if(e===void 0){e=b.currentMonth}if(n===void 0){n=b.currentYear}if(e===1&&(n%4===0&&n%100!==0||n%400===0))return 29;return b.l10n.daysInMonth[e]}}}function _(){b.element=b.input=p;b.isOpen=false;Ee();Te();Re();Le();I();if(!b.isMobile)V();K();if(b.selectedDates.length||b.config.noCalendar){if(b.config.enableTime){L(b.config.noCalendar?b.latestSelectedDateObj:undefined)}Ge(false)}N();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(!b.isMobile&&e){Se()}Ke("onReady")}function F(){var e;return((e=b.calendarContainer)===null||e===void 0?void 0:e.getRootNode()).activeElement||document.activeElement}function A(e){return e.bind(b)}function N(){var e=b.config;if(e.weekNumbers===false&&e.showMonths===1){return}else if(e.noCalendar!==true){window.requestAnimationFrame((function(){if(b.calendarContainer!==undefined){b.calendarContainer.style.visibility="hidden";b.calendarContainer.style.display="block"}if(b.daysContainer!==undefined){var n=(b.days.offsetWidth+1)*e.showMonths;b.daysContainer.style.width=n+"px";b.calendarContainer.style.width=n+(b.weekWrapper!==undefined?b.weekWrapper.offsetWidth:0)+"px";b.calendarContainer.style.removeProperty("visibility");b.calendarContainer.style.removeProperty("display")}}))}}function P(e){if(b.selectedDates.length===0){var n=b.config.minDate===undefined||C(new Date,b.config.minDate)>=0?new Date:new Date(b.config.minDate.getTime());var t=T(b.config);n.setHours(t.hours,t.minutes,t.seconds,n.getMilliseconds());b.selectedDates=[n];b.latestSelectedDateObj=n}if(e!==undefined&&e.type!=="blur"){Qe(e)}var a=b._input.value;H();Ge();if(b._input.value!==a){b._debouncedChange()}}function Y(e,n){return e%12+12*o(n===b.l10n.amPM[1])}function j(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}function H(){if(b.hourElement===undefined||b.minuteElement===undefined)return;var e=(parseInt(b.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(b.minuteElement.value,10)||0)%60,t=b.secondElement!==undefined?(parseInt(b.secondElement.value,10)||0)%60:0;if(b.amPM!==undefined){e=Y(e,b.amPM.textContent)}var a=b.config.minTime!==undefined||b.config.minDate&&b.minDateHasTime&&b.latestSelectedDateObj&&C(b.latestSelectedDateObj,b.config.minDate,true)===0;var i=b.config.maxTime!==undefined||b.config.maxDate&&b.maxDateHasTime&&b.latestSelectedDateObj&&C(b.latestSelectedDateObj,b.config.maxDate,true)===0;if(b.config.maxTime!==undefined&&b.config.minTime!==undefined&&b.config.minTime>b.config.maxTime){var r=x(b.config.minTime.getHours(),b.config.minTime.getMinutes(),b.config.minTime.getSeconds());var o=x(b.config.maxTime.getHours(),b.config.maxTime.getMinutes(),b.config.maxTime.getSeconds());var l=x(e,n,t);if(l>o&&l<r){var f=E(r);e=f[0];n=f[1];t=f[2]}}else{if(i){var u=b.config.maxTime!==undefined?b.config.maxTime:b.config.maxDate;e=Math.min(e,u.getHours());if(e===u.getHours())n=Math.min(n,u.getMinutes());if(n===u.getMinutes())t=Math.min(t,u.getSeconds())}if(a){var c=b.config.minTime!==undefined?b.config.minTime:b.config.minDate;e=Math.max(e,c.getHours());if(e===c.getHours()&&n<c.getMinutes())n=c.getMinutes();if(n===c.getMinutes())t=Math.max(t,c.getSeconds())}}R(e,n,t)}function L(e){var n=e||b.latestSelectedDateObj;if(n&&n instanceof Date){R(n.getHours(),n.getMinutes(),n.getSeconds())}}function R(e,n,t){if(b.latestSelectedDateObj!==undefined){b.latestSelectedDateObj.setHours(e%24,n,t||0,0)}if(!b.hourElement||!b.minuteElement||b.isMobile)return;b.hourElement.value=r(!b.config.time_24hr?(12+e)%12+12*o(e%12===0):e);b.minuteElement.value=r(n);if(b.amPM!==undefined)b.amPM.textContent=b.l10n.amPM[o(e>=12)];if(b.secondElement!==undefined)b.secondElement.value=r(t)}function W(e){var n=g(e);var t=parseInt(n.value)+(e.delta||0);if(t/1e3>1||e.key==="Enter"&&!/[^\d]/.test(t.toString())){he(t)}}function B(e,n,t,a){if(n instanceof Array)return n.forEach((function(n){return B(e,n,t,a)}));if(e instanceof Array)return e.forEach((function(e){return B(e,n,t,a)}));e.addEventListener(n,t,a);b._handlers.push({remove:function(){return e.removeEventListener(n,t,a)}})}function J(){Ke("onChange")}function K(){if(b.config.wrap){["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(b.element.querySelectorAll("[data-"+e+"]"),(function(n){return B(n,"click",b[e])}))}))}if(b.isMobile){Be();return}var e=l(Ce,50);b._debouncedChange=l(J,S);if(b.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent))B(b.daysContainer,"mouseover",(function(e){if(b.config.mode==="range")ye(g(e))}));B(b._input,"keydown",we);if(b.calendarContainer!==undefined){B(b.calendarContainer,"keydown",we)}if(!b.config.inline&&!b.config.static)B(window,"resize",e);if(window.ontouchstart!==undefined)B(window.document,"touchstart",pe);else B(window.document,"mousedown",pe);B(window.document,"focus",pe,{capture:true});if(b.config.clickOpens===true){B(b._input,"focus",b.open);B(b._input,"click",b.open)}if(b.daysContainer!==undefined){B(b.monthNav,"click",Ze);B(b.monthNav,["keyup","increment"],W);B(b.daysContainer,"click",Ae)}if(b.timeContainer!==undefined&&b.minuteElement!==undefined&&b.hourElement!==undefined){var n=function(e){return g(e).select()};B(b.timeContainer,["increment"],P);B(b.timeContainer,"blur",P,{capture:true});B(b.timeContainer,"click",q);B([b.hourElement,b.minuteElement],["focus","click"],n);if(b.secondElement!==undefined)B(b.secondElement,"focus",(function(){return b.secondElement&&b.secondElement.select()}));if(b.amPM!==undefined){B(b.amPM,"click",(function(e){P(e)}))}}if(b.config.allowInput){B(b._input,"blur",be)}}function U(e,n){var t=e!==undefined?b.parseDate(e):b.latestSelectedDateObj||(b.config.minDate&&b.config.minDate>b.now?b.config.minDate:b.config.maxDate&&b.config.maxDate<b.now?b.config.maxDate:b.now);var a=b.currentYear;var i=b.currentMonth;try{if(t!==undefined){b.currentYear=t.getFullYear();b.currentMonth=t.getMonth()}}catch(e){e.message="Invalid date supplied: "+t;b.config.errorHandler(e)}if(n&&b.currentYear!==a){Ke("onYearChange");te()}if(n&&(b.currentYear!==a||b.currentMonth!==i)){Ke("onMonthChange")}b.redraw()}function q(e){var n=g(e);if(~n.className.indexOf("arrow"))$(e,n.classList.contains("arrowUp")?1:-1)}function $(e,n,t){var a=e&&g(e);var i=t||a&&a.parentNode&&a.parentNode.firstChild;var r=Ue("increment");r.delta=n;i&&i.dispatchEvent(r)}function V(){var e=window.document.createDocumentFragment();b.calendarContainer=c("div","flatpickr-calendar");b.calendarContainer.tabIndex=-1;if(!b.config.noCalendar){e.appendChild(re());b.innerContainer=c("div","flatpickr-innerContainer");if(b.config.weekNumbers){var n=ue(),t=n.weekWrapper,a=n.weekNumbers;b.innerContainer.appendChild(t);b.weekNumbers=a;b.weekWrapper=t}b.rContainer=c("div","flatpickr-rContainer");b.rContainer.appendChild(le());if(!b.daysContainer){b.daysContainer=c("div","flatpickr-days");b.daysContainer.tabIndex=-1}ne();b.rContainer.appendChild(b.daysContainer);b.innerContainer.appendChild(b.rContainer);e.appendChild(b.innerContainer)}if(b.config.enableTime){e.appendChild(oe())}u(b.calendarContainer,"rangeMode",b.config.mode==="range");u(b.calendarContainer,"animate",b.config.animate===true);u(b.calendarContainer,"multiMonth",b.config.showMonths>1);b.calendarContainer.appendChild(e);var i=b.config.appendTo!==undefined&&b.config.appendTo.nodeType!==undefined;if(b.config.inline||b.config.static){b.calendarContainer.classList.add(b.config.inline?"inline":"static");if(b.config.inline){if(!i&&b.element.parentNode)b.element.parentNode.insertBefore(b.calendarContainer,b._input.nextSibling);else if(b.config.appendTo!==undefined)b.config.appendTo.appendChild(b.calendarContainer)}if(b.config.static){var r=c("div","flatpickr-wrapper");if(b.element.parentNode)b.element.parentNode.insertBefore(r,b.element);r.appendChild(b.element);if(b.altInput)r.appendChild(b.altInput);r.appendChild(b.calendarContainer)}}if(!b.config.static&&!b.config.inline)(b.config.appendTo!==undefined?b.config.appendTo:window.document.body).appendChild(b.calendarContainer)}function z(e,n,t,a){var i=ve(n,true),r=c("span",e,n.getDate().toString());r.dateObj=n;r.$i=a;r.setAttribute("aria-label",b.formatDate(n,b.config.ariaDateFormat));if(e.indexOf("hidden")===-1&&C(n,b.now)===0){b.todayDateElem=r;r.classList.add("today");r.setAttribute("aria-current","date")}if(i){r.tabIndex=-1;if(qe(n)){r.classList.add("selected");b.selectedDateElem=r;if(b.config.mode==="range"){u(r,"startRange",b.selectedDates[0]&&C(n,b.selectedDates[0],true)===0);u(r,"endRange",b.selectedDates[1]&&C(n,b.selectedDates[1],true)===0);if(e==="nextMonthDay")r.classList.add("inRange")}}}else{r.classList.add("flatpickr-disabled")}if(b.config.mode==="range"){if($e(n)&&!qe(n))r.classList.add("inRange")}if(b.weekNumbers&&b.config.showMonths===1&&e!=="prevMonthDay"&&t%7===1){b.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+b.config.getWeek(n)+"</span>")}Ke("onDayCreate",r);return r}function G(e){e.focus();if(b.config.mode==="range")ye(e)}function Z(e){var n=e>0?0:b.config.showMonths-1;var t=e>0?b.config.showMonths:-1;for(var a=n;a!=t;a+=e){var i=b.daysContainer.children[a];var r=e>0?0:i.children.length-1;var o=e>0?i.children.length:-1;for(var l=r;l!=o;l+=e){var f=i.children[l];if(f.className.indexOf("hidden")===-1&&ve(f.dateObj))return f}}return undefined}function Q(e,n){var t=e.className.indexOf("Month")===-1?e.dateObj.getMonth():b.currentMonth;var a=n>0?b.config.showMonths:-1;var i=n>0?1:-1;for(var r=t-b.currentMonth;r!=a;r+=i){var o=b.daysContainer.children[r];var l=t-b.currentMonth===r?e.$i+n:n<0?o.children.length-1:0;var f=o.children.length;for(var u=l;u>=0&&u<f&&u!=(n>0?f:-1);u+=i){var c=o.children[u];if(c.className.indexOf("hidden")===-1&&ve(c.dateObj)&&Math.abs(e.$i-u)>=Math.abs(n))return G(c)}}b.changeMonth(i);X(Z(i),0);return undefined}function X(e,n){var t=F();var a=De(t||document.body);var i=e!==undefined?e:a?t:b.selectedDateElem!==undefined&&De(b.selectedDateElem)?b.selectedDateElem:b.todayDateElem!==undefined&&De(b.todayDateElem)?b.todayDateElem:Z(n>0?1:-1);if(i===undefined){b._input.focus()}else if(!a){G(i)}else{Q(i,n)}}function ee(e,n){var t=(new Date(e,n,1).getDay()-b.l10n.firstDayOfWeek+7)%7;var a=b.utils.getDaysInMonth((n-1+12)%12,e);var i=b.utils.getDaysInMonth(n,e),r=window.document.createDocumentFragment(),o=b.config.showMonths>1,l=o?"prevMonthDay hidden":"prevMonthDay",f=o?"nextMonthDay hidden":"nextMonthDay";var u=a+1-t,d=0;for(;u<=a;u++,d++){r.appendChild(z("flatpickr-day "+l,new Date(e,n-1,u),u,d))}for(u=1;u<=i;u++,d++){r.appendChild(z("flatpickr-day",new Date(e,n,u),u,d))}for(var s=i+1;s<=42-t&&(b.config.showMonths===1||d%7!==0);s++,d++){r.appendChild(z("flatpickr-day "+f,new Date(e,n+1,s%i),s,d))}var m=c("div","dayContainer");m.appendChild(r);return m}function ne(){if(b.daysContainer===undefined){return}d(b.daysContainer);if(b.weekNumbers)d(b.weekNumbers);var e=document.createDocumentFragment();for(var n=0;n<b.config.showMonths;n++){var t=new Date(b.currentYear,b.currentMonth,1);t.setMonth(b.currentMonth+n);e.appendChild(ee(t.getFullYear(),t.getMonth()))}b.daysContainer.appendChild(e);b.days=b.daysContainer.firstChild;if(b.config.mode==="range"&&b.selectedDates.length===1){ye()}}function te(){if(b.config.showMonths>1||b.config.monthSelectorType!=="dropdown")return;var e=function(e){if(b.config.minDate!==undefined&&b.currentYear===b.config.minDate.getFullYear()&&e<b.config.minDate.getMonth()){return false}return!(b.config.maxDate!==undefined&&b.currentYear===b.config.maxDate.getFullYear()&&e>b.config.maxDate.getMonth())};b.monthsDropdownContainer.tabIndex=-1;b.monthsDropdownContainer.innerHTML="";for(var n=0;n<12;n++){if(!e(n))continue;var t=c("option","flatpickr-monthDropdown-month");t.value=new Date(b.currentYear,n).getMonth().toString();t.textContent=h(n,b.config.shorthandCurrentMonth,b.l10n);t.tabIndex=-1;if(b.currentMonth===n){t.selected=true}b.monthsDropdownContainer.appendChild(t)}}function ae(){var e=c("div","flatpickr-month");var n=window.document.createDocumentFragment();var t;if(b.config.showMonths>1||b.config.monthSelectorType==="static"){t=c("span","cur-month")}else{b.monthsDropdownContainer=c("select","flatpickr-monthDropdown-months");b.monthsDropdownContainer.setAttribute("aria-label",b.l10n.monthAriaLabel);B(b.monthsDropdownContainer,"change",(function(e){var n=g(e);var t=parseInt(n.value,10);b.changeMonth(t-b.currentMonth);Ke("onMonthChange")}));te();t=b.monthsDropdownContainer}var a=m("cur-year",{tabindex:"-1"});var i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",b.l10n.yearAriaLabel);if(b.config.minDate){i.setAttribute("min",b.config.minDate.getFullYear().toString())}if(b.config.maxDate){i.setAttribute("max",b.config.maxDate.getFullYear().toString());i.disabled=!!b.config.minDate&&b.config.minDate.getFullYear()===b.config.maxDate.getFullYear()}var r=c("div","flatpickr-current-month");r.appendChild(t);r.appendChild(a);n.appendChild(r);e.appendChild(n);return{container:e,yearElement:i,monthElement:t}}function ie(){d(b.monthNav);b.monthNav.appendChild(b.prevMonthNav);if(b.config.showMonths){b.yearElements=[];b.monthElements=[]}for(var e=b.config.showMonths;e--;){var n=ae();b.yearElements.push(n.yearElement);b.monthElements.push(n.monthElement);b.monthNav.appendChild(n.container)}b.monthNav.appendChild(b.nextMonthNav)}function re(){b.monthNav=c("div","flatpickr-months");b.yearElements=[];b.monthElements=[];b.prevMonthNav=c("span","flatpickr-prev-month");b.prevMonthNav.innerHTML=b.config.prevArrow;b.nextMonthNav=c("span","flatpickr-next-month");b.nextMonthNav.innerHTML=b.config.nextArrow;ie();Object.defineProperty(b,"_hidePrevMonthArrow",{get:function(){return b.__hidePrevMonthArrow},set:function(e){if(b.__hidePrevMonthArrow!==e){u(b.prevMonthNav,"flatpickr-disabled",e);b.__hidePrevMonthArrow=e}}});Object.defineProperty(b,"_hideNextMonthArrow",{get:function(){return b.__hideNextMonthArrow},set:function(e){if(b.__hideNextMonthArrow!==e){u(b.nextMonthNav,"flatpickr-disabled",e);b.__hideNextMonthArrow=e}}});b.currentYearElement=b.yearElements[0];Ve();return b.monthNav}function oe(){b.calendarContainer.classList.add("hasTime");if(b.config.noCalendar)b.calendarContainer.classList.add("noCalendar");var e=T(b.config);b.timeContainer=c("div","flatpickr-time");b.timeContainer.tabIndex=-1;var n=c("span","flatpickr-time-separator",":");var t=m("flatpickr-hour",{"aria-label":b.l10n.hourAriaLabel});b.hourElement=t.getElementsByTagName("input")[0];var a=m("flatpickr-minute",{"aria-label":b.l10n.minuteAriaLabel});b.minuteElement=a.getElementsByTagName("input")[0];b.hourElement.tabIndex=b.minuteElement.tabIndex=-1;b.hourElement.value=r(b.latestSelectedDateObj?b.latestSelectedDateObj.getHours():b.config.time_24hr?e.hours:j(e.hours));b.minuteElement.value=r(b.latestSelectedDateObj?b.latestSelectedDateObj.getMinutes():e.minutes);b.hourElement.setAttribute("step",b.config.hourIncrement.toString());b.minuteElement.setAttribute("step",b.config.minuteIncrement.toString());b.hourElement.setAttribute("min",b.config.time_24hr?"0":"1");b.hourElement.setAttribute("max",b.config.time_24hr?"23":"12");b.hourElement.setAttribute("maxlength","2");b.minuteElement.setAttribute("min","0");b.minuteElement.setAttribute("max","59");b.minuteElement.setAttribute("maxlength","2");b.timeContainer.appendChild(t);b.timeContainer.appendChild(n);b.timeContainer.appendChild(a);if(b.config.time_24hr)b.timeContainer.classList.add("time24hr");if(b.config.enableSeconds){b.timeContainer.classList.add("hasSeconds");var i=m("flatpickr-second");b.secondElement=i.getElementsByTagName("input")[0];b.secondElement.value=r(b.latestSelectedDateObj?b.latestSelectedDateObj.getSeconds():e.seconds);b.secondElement.setAttribute("step",b.minuteElement.getAttribute("step"));b.secondElement.setAttribute("min","0");b.secondElement.setAttribute("max","59");b.secondElement.setAttribute("maxlength","2");b.timeContainer.appendChild(c("span","flatpickr-time-separator",":"));b.timeContainer.appendChild(i)}if(!b.config.time_24hr){b.amPM=c("span","flatpickr-am-pm",b.l10n.amPM[o((b.latestSelectedDateObj?b.hourElement.value:b.config.defaultHour)>11)]);b.amPM.title=b.l10n.toggleTitle;b.amPM.tabIndex=-1;b.timeContainer.appendChild(b.amPM)}return b.timeContainer}function le(){if(!b.weekdayContainer)b.weekdayContainer=c("div","flatpickr-weekdays");else d(b.weekdayContainer);for(var e=b.config.showMonths;e--;){var n=c("div","flatpickr-weekdaycontainer");b.weekdayContainer.appendChild(n)}fe();return b.weekdayContainer}function fe(){if(!b.weekdayContainer){return}var e=b.l10n.firstDayOfWeek;var t=n(b.l10n.weekdays.shorthand);if(e>0&&e<t.length){t=n(t.splice(e,t.length),t.splice(0,e))}for(var a=b.config.showMonths;a--;){b.weekdayContainer.children[a].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function ue(){b.calendarContainer.classList.add("hasWeeks");var e=c("div","flatpickr-weekwrapper");e.appendChild(c("span","flatpickr-weekday",b.l10n.weekAbbreviation));var n=c("div","flatpickr-weeks");e.appendChild(n);return{weekWrapper:e,weekNumbers:n}}function ce(e,n){if(n===void 0){n=true}var t=n?e:e-b.currentMonth;if(t<0&&b._hidePrevMonthArrow===true||t>0&&b._hideNextMonthArrow===true)return;b.currentMonth+=t;if(b.currentMonth<0||b.currentMonth>11){b.currentYear+=b.currentMonth>11?1:-1;b.currentMonth=(b.currentMonth+12)%12;Ke("onYearChange");te()}ne();Ke("onMonthChange");Ve()}function de(e,n){if(e===void 0){e=true}if(n===void 0){n=true}b.input.value="";if(b.altInput!==undefined)b.altInput.value="";if(b.mobileInput!==undefined)b.mobileInput.value="";b.selectedDates=[];b.latestSelectedDateObj=undefined;if(n===true){b.currentYear=b._initialDate.getFullYear();b.currentMonth=b._initialDate.getMonth()}if(b.config.enableTime===true){var t=T(b.config),a=t.hours,i=t.minutes,r=t.seconds;R(a,i,r)}b.redraw();if(e)Ke("onChange")}function se(){b.isOpen=false;if(!b.isMobile){if(b.calendarContainer!==undefined){b.calendarContainer.classList.remove("open")}if(b._input!==undefined){b._input.classList.remove("active")}}Ke("onClose")}function me(){if(b.config!==undefined)Ke("onDestroy");for(var e=b._handlers.length;e--;){b._handlers[e].remove()}b._handlers=[];if(b.mobileInput){if(b.mobileInput.parentNode)b.mobileInput.parentNode.removeChild(b.mobileInput);b.mobileInput=undefined}else if(b.calendarContainer&&b.calendarContainer.parentNode){if(b.config.static&&b.calendarContainer.parentNode){var n=b.calendarContainer.parentNode;n.lastChild&&n.removeChild(n.lastChild);if(n.parentNode){while(n.firstChild)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else b.calendarContainer.parentNode.removeChild(b.calendarContainer)}if(b.altInput){b.input.type="text";if(b.altInput.parentNode)b.altInput.parentNode.removeChild(b.altInput);delete b.altInput}if(b.input){b.input.type=b.input._type;b.input.classList.remove("flatpickr-input");b.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 b[e]}catch(e){}}))}function ge(e){return b.calendarContainer.contains(e)}function pe(e){if(b.isOpen&&!b.config.inline){var n=g(e);var t=ge(n);var a=n===b.input||n===b.altInput||b.element.contains(n)||e.path&&e.path.indexOf&&(~e.path.indexOf(b.input)||~e.path.indexOf(b.altInput));var i=!a&&!t&&!ge(e.relatedTarget);var r=!b.config.ignoredFocusElements.some((function(e){return e.contains(n)}));if(i&&r){if(b.config.allowInput){b.setDate(b._input.value,false,b.config.altInput?b.config.altFormat:b.config.dateFormat)}if(b.timeContainer!==undefined&&b.minuteElement!==undefined&&b.hourElement!==undefined&&b.input.value!==""&&b.input.value!==undefined){P()}b.close();if(b.config&&b.config.mode==="range"&&b.selectedDates.length===1)b.clear(false)}}}function he(e){if(!e||b.config.minDate&&e<b.config.minDate.getFullYear()||b.config.maxDate&&e>b.config.maxDate.getFullYear())return;var n=e,t=b.currentYear!==n;b.currentYear=n||b.currentYear;if(b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()){b.currentMonth=Math.min(b.config.maxDate.getMonth(),b.currentMonth)}else if(b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()){b.currentMonth=Math.max(b.config.minDate.getMonth(),b.currentMonth)}if(t){b.redraw();Ke("onYearChange");te()}}function ve(e,n){var t;if(n===void 0){n=true}var a=b.parseDate(e,undefined,n);if(b.config.minDate&&a&&C(a,b.config.minDate,n!==undefined?n:!b.minDateHasTime)<0||b.config.maxDate&&a&&C(a,b.config.maxDate,n!==undefined?n:!b.maxDateHasTime)>0)return false;if(!b.config.enable&&b.config.disable.length===0)return true;if(a===undefined)return false;var i=!!b.config.enable,r=(t=b.config.enable)!==null&&t!==void 0?t:b.config.disable;for(var o=0,l=void 0;o<r.length;o++){l=r[o];if(typeof l==="function"&&l(a))return i;else if(l instanceof Date&&a!==undefined&&l.getTime()===a.getTime())return i;else if(typeof l==="string"){var f=b.parseDate(l,undefined,true);return f&&f.getTime()===a.getTime()?i:!i}else if(typeof l==="object"&&a!==undefined&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function De(e){if(b.daysContainer!==undefined)return e.className.indexOf("hidden")===-1&&e.className.indexOf("flatpickr-disabled")===-1&&b.daysContainer.contains(e);return false}function be(e){var n=e.target===b._input;if(n&&(b.selectedDates.length>0||b._input.value.length>0)&&!(e.relatedTarget&&ge(e.relatedTarget))){b.setDate(b._input.value,true,e.target===b.altInput?b.config.altFormat:b.config.dateFormat)}}function we(e){var n=g(e);var t=b.config.wrap?p.contains(n):n===b._input;var a=b.config.allowInput;var i=b.isOpen&&(!a||!t);var r=b.config.inline&&t&&!a;if(e.keyCode===13&&t){if(a){b.setDate(b._input.value,true,n===b.altInput?b.config.altFormat:b.config.dateFormat);b.close();return n.blur()}else{b.open()}}else if(ge(n)||i||r){var o=!!b.timeContainer&&b.timeContainer.contains(n);switch(e.keyCode){case 13:if(o){e.preventDefault();P();Fe()}else Ae(e);break;case 27:e.preventDefault();Fe();break;case 8:case 46:if(t&&!b.config.allowInput){e.preventDefault();b.clear()}break;case 37:case 39:if(!o&&!t){e.preventDefault();var l=F();if(b.daysContainer!==undefined&&(a===false||l&&De(l))){var f=e.keyCode===39?1:-1;if(!e.ctrlKey)X(undefined,f);else{e.stopPropagation();ce(f);X(Z(1),0)}}}else if(b.hourElement)b.hourElement.focus();break;case 38:case 40:e.preventDefault();var u=e.keyCode===40?1:-1;if(b.daysContainer&&n.$i!==undefined||n===b.input||n===b.altInput){if(e.ctrlKey){e.stopPropagation();he(b.currentYear-u);X(Z(1),0)}else if(!o)X(undefined,u*7)}else if(n===b.currentYearElement){he(b.currentYear-u)}else if(b.config.enableTime){if(!o&&b.hourElement)b.hourElement.focus();P(e);b._debouncedChange()}break;case 9:if(o){var c=[b.hourElement,b.minuteElement,b.secondElement,b.amPM].concat(b.pluginElements).filter((function(e){return e}));var d=c.indexOf(n);if(d!==-1){var s=c[d+(e.shiftKey?-1:1)];e.preventDefault();(s||b._input).focus()}}else if(!b.config.noCalendar&&b.daysContainer&&b.daysContainer.contains(n)&&e.shiftKey){e.preventDefault();b._input.focus()}break}}if(b.amPM!==undefined&&n===b.amPM){switch(e.key){case b.l10n.amPM[0].charAt(0):case b.l10n.amPM[0].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[0];H();Ge();break;case b.l10n.amPM[1].charAt(0):case b.l10n.amPM[1].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[1];H();Ge();break}}if(t||ge(n)){Ke("onKeyDown",e)}}function ye(e,n){if(n===void 0){n="flatpickr-day"}if(b.selectedDates.length!==1||e&&(!e.classList.contains(n)||e.classList.contains("flatpickr-disabled")))return;var t=e?e.dateObj.getTime():b.days.firstElementChild.dateObj.getTime(),a=b.parseDate(b.selectedDates[0],undefined,true).getTime(),i=Math.min(t,b.selectedDates[0].getTime()),r=Math.max(t,b.selectedDates[0].getTime());var o=false;var l=0,f=0;for(var u=i;u<r;u+=k.DAY){if(!ve(new Date(u),true)){o=o||u>i&&u<r;if(u<a&&(!l||u>l))l=u;else if(u>a&&(!f||u<f))f=u}}var c=Array.from(b.rContainer.querySelectorAll("*:nth-child(-n+"+b.config.showMonths+") > ."+n));c.forEach((function(n){var i=n.dateObj;var r=i.getTime();var u=l>0&&r<l||f>0&&r>f;if(u){n.classList.add("notAllowed");["inRange","startRange","endRange"].forEach((function(e){n.classList.remove(e)}));return}else if(o&&!u)return;["startRange","inRange","endRange","notAllowed"].forEach((function(e){n.classList.remove(e)}));if(e!==undefined){e.classList.add(t<=b.selectedDates[0].getTime()?"startRange":"endRange");if(a<t&&r===a)n.classList.add("startRange");else if(a>t&&r===a)n.classList.add("endRange");if(r>=l&&(f===0||r<=f)&&M(r,a,t))n.classList.add("inRange")}}))}function Ce(){if(b.isOpen&&!b.config.static&&!b.config.inline)Se()}function Me(e,n){if(n===void 0){n=b._positionElement}if(b.isMobile===true){if(e){e.preventDefault();var t=g(e);if(t){t.blur()}}if(b.mobileInput!==undefined){b.mobileInput.focus();b.mobileInput.click()}Ke("onOpen");return}else if(b._input.disabled||b.config.inline){return}var a=b.isOpen;b.isOpen=true;if(!a){b.calendarContainer.classList.add("open");b._input.classList.add("active");Ke("onOpen");Se(n)}if(b.config.enableTime===true&&b.config.noCalendar===true){if(b.config.allowInput===false&&(e===undefined||!b.timeContainer.contains(e.relatedTarget))){setTimeout((function(){return b.hourElement.select()}),50)}}}function xe(e){return function(n){var t=b.config["_"+e+"Date"]=b.parseDate(n,b.config.dateFormat);var a=b.config["_"+(e==="min"?"max":"min")+"Date"];if(t!==undefined){b[e==="min"?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0}if(b.selectedDates){b.selectedDates=b.selectedDates.filter((function(e){return ve(e)}));if(!b.selectedDates.length&&e==="min")L(t);Ge()}if(b.daysContainer){Oe();if(t!==undefined)b.currentYearElement[e]=t.getFullYear().toString();else b.currentYearElement.removeAttribute(e);b.currentYearElement.disabled=!!a&&t!==undefined&&a.getFullYear()===t.getFullYear()}}}function Ee(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"];var i=e(e({},JSON.parse(JSON.stringify(p.dataset||{}))),v);var r={};b.config.parseDate=i.parseDate;b.config.formatDate=i.formatDate;Object.defineProperty(b.config,"enable",{get:function(){return b.config._enable},set:function(e){b.config._enable=He(e)}});Object.defineProperty(b.config,"disable",{get:function(){return b.config._disable},set:function(e){b.config._disable=He(e)}});var o=i.mode==="time";if(!i.dateFormat&&(i.enableTime||o)){var l=O.defaultConfig.dateFormat||a.dateFormat;r.dateFormat=i.noCalendar||o?"H:i"+(i.enableSeconds?":S":""):l+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||o)&&!i.altFormat){var u=O.defaultConfig.altFormat||a.altFormat;r.altFormat=i.noCalendar||o?"h:i"+(i.enableSeconds?":S K":" K"):u+(" h:i"+(i.enableSeconds?":S":"")+" K")}Object.defineProperty(b.config,"minDate",{get:function(){return b.config._minDate},set:xe("min")});Object.defineProperty(b.config,"maxDate",{get:function(){return b.config._maxDate},set:xe("max")});var c=function(e){return function(n){b.config[e==="min"?"_minTime":"_maxTime"]=b.parseDate(n,"H:i:S")}};Object.defineProperty(b.config,"minTime",{get:function(){return b.config._minTime},set:c("min")});Object.defineProperty(b.config,"maxTime",{get:function(){return b.config._maxTime},set:c("max")});if(i.mode==="time"){b.config.noCalendar=true;b.config.enableTime=true}Object.assign(b.config,r,i);for(var d=0;d<n.length;d++)b.config[n[d]]=b.config[n[d]]===true||b.config[n[d]]==="true";t.filter((function(e){return b.config[e]!==undefined})).forEach((function(e){b.config[e]=f(b.config[e]||[]).map(A)}));b.isMobile=!b.config.disableMobile&&!b.config.inline&&b.config.mode==="single"&&!b.config.disable.length&&!b.config.enable&&!b.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var d=0;d<b.config.plugins.length;d++){var s=b.config.plugins[d](b)||{};for(var m in s){if(t.indexOf(m)>-1){b.config[m]=f(s[m]).map(A).concat(b.config[m])}else if(typeof i[m]==="undefined")b.config[m]=s[m]}}if(!i.altInputClass){b.config.altInputClass=ke().className+" "+b.config.altInputClass}Ke("onParseConfig")}function ke(){return b.config.wrap?p.querySelector("[data-input]"):p}function Te(){if(typeof b.config.locale!=="object"&&typeof O.l10ns[b.config.locale]==="undefined")b.config.errorHandler(new Error("flatpickr: invalid locale "+b.config.locale));b.l10n=e(e({},O.l10ns.default),typeof b.config.locale==="object"?b.config.locale:b.config.locale!=="default"?O.l10ns[b.config.locale]:undefined);D.D="("+b.l10n.weekdays.shorthand.join("|")+")";D.l="("+b.l10n.weekdays.longhand.join("|")+")";D.M="("+b.l10n.months.shorthand.join("|")+")";D.F="("+b.l10n.months.longhand.join("|")+")";D.K="("+b.l10n.amPM[0]+"|"+b.l10n.amPM[1]+"|"+b.l10n.amPM[0].toLowerCase()+"|"+b.l10n.amPM[1].toLowerCase()+")";var n=e(e({},v),JSON.parse(JSON.stringify(p.dataset||{})));if(n.time_24hr===undefined&&O.defaultConfig.time_24hr===undefined){b.config.time_24hr=b.l10n.time_24hr}b.formatDate=w(b);b.parseDate=y({config:b.config,l10n:b.l10n})}function Se(e){if(typeof b.config.position==="function"){return void b.config.position(b,e)}if(b.calendarContainer===undefined)return;Ke("onPreCalendarPosition");var n=e||b._positionElement;var t=Array.prototype.reduce.call(b.calendarContainer.children,(function(e,n){return e+n.offsetHeight}),0),a=b.calendarContainer.offsetWidth,i=b.config.position.split(" "),r=i[0],o=i.length>1?i[1]:null,l=n.getBoundingClientRect(),f=window.innerHeight-l.bottom,c=r==="above"||r!=="below"&&f<t&&l.top>t;var d=window.pageYOffset+l.top+(!c?n.offsetHeight+2:-t-2);u(b.calendarContainer,"arrowTop",!c);u(b.calendarContainer,"arrowBottom",c);if(b.config.inline)return;var s=window.pageXOffset+l.left;var m=false;var g=false;if(o==="center"){s-=(a-l.width)/2;m=true}else if(o==="right"){s-=a-l.width;g=true}u(b.calendarContainer,"arrowLeft",!m&&!g);u(b.calendarContainer,"arrowCenter",m);u(b.calendarContainer,"arrowRight",g);var p=window.document.body.offsetWidth-(window.pageXOffset+l.right);var h=s+a>window.document.body.offsetWidth;var v=p+a>window.document.body.offsetWidth;u(b.calendarContainer,"rightMost",h);if(b.config.static)return;b.calendarContainer.style.top=d+"px";if(!h){b.calendarContainer.style.left=s+"px";b.calendarContainer.style.right="auto"}else if(!v){b.calendarContainer.style.left="auto";b.calendarContainer.style.right=p+"px"}else{var D=Ie();if(D===undefined)return;var w=window.document.body.offsetWidth;var y=Math.max(0,w/2-a/2);var C=".flatpickr-calendar.centerMost:before";var M=".flatpickr-calendar.centerMost:after";var x=D.cssRules.length;var E="{left:"+l.left+"px;right:auto;}";u(b.calendarContainer,"rightMost",false);u(b.calendarContainer,"centerMost",true);D.insertRule(C+","+M+E,x);b.calendarContainer.style.left=y+"px";b.calendarContainer.style.right="auto"}}function Ie(){var e=null;for(var n=0;n<document.styleSheets.length;n++){var t=document.styleSheets[n];if(!t.cssRules)continue;try{t.cssRules}catch(e){continue}e=t;break}return e!=null?e:_e()}function _e(){var e=document.createElement("style");document.head.appendChild(e);return e.sheet}function Oe(){if(b.config.noCalendar||b.isMobile)return;te();Ve();ne()}function Fe(){b._input.focus();if(window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==undefined){setTimeout(b.close,0)}else{b.close()}}function Ae(e){e.preventDefault();e.stopPropagation();var n=function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")};var t=s(g(e),n);if(t===undefined)return;var a=t;var i=b.latestSelectedDateObj=new Date(a.dateObj.getTime());var r=(i.getMonth()<b.currentMonth||i.getMonth()>b.currentMonth+b.config.showMonths-1)&&b.config.mode!=="range";b.selectedDateElem=a;if(b.config.mode==="single")b.selectedDates=[i];else if(b.config.mode==="multiple"){var o=qe(i);if(o)b.selectedDates.splice(parseInt(o),1);else b.selectedDates.push(i)}else if(b.config.mode==="range"){if(b.selectedDates.length===2){b.clear(false,false)}b.latestSelectedDateObj=i;b.selectedDates.push(i);if(C(i,b.selectedDates[0],true)!==0)b.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()}))}H();if(r){var l=b.currentYear!==i.getFullYear();b.currentYear=i.getFullYear();b.currentMonth=i.getMonth();if(l){Ke("onYearChange");te()}Ke("onMonthChange")}Ve();ne();Ge();if(!r&&b.config.mode!=="range"&&b.config.showMonths===1)G(a);else if(b.selectedDateElem!==undefined&&b.hourElement===undefined){b.selectedDateElem&&b.selectedDateElem.focus()}if(b.hourElement!==undefined)b.hourElement!==undefined&&b.hourElement.focus();if(b.config.closeOnSelect){var f=b.config.mode==="single"&&!b.config.enableTime;var u=b.config.mode==="range"&&b.selectedDates.length===2&&!b.config.enableTime;if(f||u){Fe()}}J()}var Ne={locale:[Te,fe],showMonths:[ie,N,le],minDate:[U],maxDate:[U],positionElement:[We],clickOpens:[function(){if(b.config.clickOpens===true){B(b._input,"focus",b.open);B(b._input,"click",b.open)}else{b._input.removeEventListener("focus",b.open);b._input.removeEventListener("click",b.open)}}]};function Pe(e,n){if(e!==null&&typeof e==="object"){Object.assign(b.config,e);for(var a in e){if(Ne[a]!==undefined)Ne[a].forEach((function(e){return e()}))}}else{b.config[e]=n;if(Ne[e]!==undefined)Ne[e].forEach((function(e){return e()}));else if(t.indexOf(e)>-1)b.config[e]=f(n)}b.redraw();Ge(true)}function Ye(e,n){var t=[];if(e instanceof Array)t=e.map((function(e){return b.parseDate(e,n)}));else if(e instanceof Date||typeof e==="number")t=[b.parseDate(e,n)];else if(typeof e==="string"){switch(b.config.mode){case"single":case"time":t=[b.parseDate(e,n)];break;case"multiple":t=e.split(b.config.conjunction).map((function(e){return b.parseDate(e,n)}));break;case"range":t=e.split(b.l10n.rangeSeparator).map((function(e){return b.parseDate(e,n)}));break}}else b.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));b.selectedDates=b.config.allowInvalidPreload?t:t.filter((function(e){return e instanceof Date&&ve(e,false)}));if(b.config.mode==="range")b.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()}))}function je(e,n,t){if(n===void 0){n=false}if(t===void 0){t=b.config.dateFormat}if(e!==0&&!e||e instanceof Array&&e.length===0)return b.clear(n);Ye(e,t);b.latestSelectedDateObj=b.selectedDates[b.selectedDates.length-1];b.redraw();U(undefined,n);L();if(b.selectedDates.length===0){b.clear(false)}Ge(n);if(n)Ke("onChange")}function He(e){return e.slice().map((function(e){if(typeof e==="string"||typeof e==="number"||e instanceof Date){return b.parseDate(e,undefined,true)}else if(e&&typeof e==="object"&&e.from&&e.to)return{from:b.parseDate(e.from,undefined),to:b.parseDate(e.to,undefined)};return e})).filter((function(e){return e}))}function Le(){b.selectedDates=[];b.now=b.parseDate(b.config.now)||new Date;var e=b.config.defaultDate||((b.input.nodeName==="INPUT"||b.input.nodeName==="TEXTAREA")&&b.input.placeholder&&b.input.value===b.input.placeholder?null:b.input.value);if(e)Ye(e,b.config.dateFormat);b._initialDate=b.selectedDates.length>0?b.selectedDates[0]:b.config.minDate&&b.config.minDate.getTime()>b.now.getTime()?b.config.minDate:b.config.maxDate&&b.config.maxDate.getTime()<b.now.getTime()?b.config.maxDate:b.now;b.currentYear=b._initialDate.getFullYear();b.currentMonth=b._initialDate.getMonth();if(b.selectedDates.length>0)b.latestSelectedDateObj=b.selectedDates[0];if(b.config.minTime!==undefined)b.config.minTime=b.parseDate(b.config.minTime,"H:i");if(b.config.maxTime!==undefined)b.config.maxTime=b.parseDate(b.config.maxTime,"H:i");b.minDateHasTime=!!b.config.minDate&&(b.config.minDate.getHours()>0||b.config.minDate.getMinutes()>0||b.config.minDate.getSeconds()>0);b.maxDateHasTime=!!b.config.maxDate&&(b.config.maxDate.getHours()>0||b.config.maxDate.getMinutes()>0||b.config.maxDate.getSeconds()>0)}function Re(){b.input=ke();if(!b.input){b.config.errorHandler(new Error("Invalid input element specified"));return}b.input._type=b.input.type;b.input.type="text";b.input.classList.add("flatpickr-input");b._input=b.input;if(b.config.altInput){b.altInput=c(b.input.nodeName,b.config.altInputClass);b._input=b.altInput;b.altInput.placeholder=b.input.placeholder;b.altInput.disabled=b.input.disabled;b.altInput.required=b.input.required;b.altInput.tabIndex=b.input.tabIndex;b.altInput.type="text";b.input.setAttribute("type","hidden");if(!b.config.static&&b.input.parentNode)b.input.parentNode.insertBefore(b.altInput,b.input.nextSibling)}if(!b.config.allowInput)b._input.setAttribute("readonly","readonly");We()}function We(){b._positionElement=b.config.positionElement||b._input}function Be(){var e=b.config.enableTime?b.config.noCalendar?"time":"datetime-local":"date";b.mobileInput=c("input",b.input.className+" flatpickr-mobile");b.mobileInput.tabIndex=1;b.mobileInput.type=e;b.mobileInput.disabled=b.input.disabled;b.mobileInput.required=b.input.required;b.mobileInput.placeholder=b.input.placeholder;b.mobileFormatStr=e==="datetime-local"?"Y-m-d\\TH:i:S":e==="date"?"Y-m-d":"H:i:S";if(b.selectedDates.length>0){b.mobileInput.defaultValue=b.mobileInput.value=b.formatDate(b.selectedDates[0],b.mobileFormatStr)}if(b.config.minDate)b.mobileInput.min=b.formatDate(b.config.minDate,"Y-m-d");if(b.config.maxDate)b.mobileInput.max=b.formatDate(b.config.maxDate,"Y-m-d");if(b.input.getAttribute("step"))b.mobileInput.step=String(b.input.getAttribute("step"));b.input.type="hidden";if(b.altInput!==undefined)b.altInput.type="hidden";try{if(b.input.parentNode)b.input.parentNode.insertBefore(b.mobileInput,b.input.nextSibling)}catch(e){}B(b.mobileInput,"change",(function(e){b.setDate(g(e).value,false,b.mobileFormatStr);Ke("onChange");Ke("onClose")}))}function Je(e){if(b.isOpen===true)return b.close();b.open(e)}function Ke(e,n){if(b.config===undefined)return;var t=b.config[e];if(t!==undefined&&t.length>0){for(var a=0;t[a]&&a<t.length;a++)t[a](b.selectedDates,b.input.value,b,n)}if(e==="onChange"){b.input.dispatchEvent(Ue("change"));b.input.dispatchEvent(Ue("input"))}}function Ue(e){var n=document.createEvent("Event");n.initEvent(e,true,true);return n}function qe(e){for(var n=0;n<b.selectedDates.length;n++){var t=b.selectedDates[n];if(t instanceof Date&&C(t,e)===0)return""+n}return false}function $e(e){if(b.config.mode!=="range"||b.selectedDates.length<2)return false;return C(e,b.selectedDates[0])>=0&&C(e,b.selectedDates[1])<=0}function Ve(){if(b.config.noCalendar||b.isMobile||!b.monthNav)return;b.yearElements.forEach((function(e,n){var t=new Date(b.currentYear,b.currentMonth,1);t.setMonth(b.currentMonth+n);if(b.config.showMonths>1||b.config.monthSelectorType==="static"){b.monthElements[n].textContent=h(t.getMonth(),b.config.shorthandCurrentMonth,b.l10n)+" "}else{b.monthsDropdownContainer.value=t.getMonth().toString()}e.value=t.getFullYear().toString()}));b._hidePrevMonthArrow=b.config.minDate!==undefined&&(b.currentYear===b.config.minDate.getFullYear()?b.currentMonth<=b.config.minDate.getMonth():b.currentYear<b.config.minDate.getFullYear());b._hideNextMonthArrow=b.config.maxDate!==undefined&&(b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth+1>b.config.maxDate.getMonth():b.currentYear>b.config.maxDate.getFullYear())}function ze(e){return b.selectedDates.map((function(n){return b.formatDate(n,e)})).filter((function(e,n,t){return b.config.mode!=="range"||b.config.enableTime||t.indexOf(e)===n})).join(b.config.mode!=="range"?b.config.conjunction:b.l10n.rangeSeparator)}function Ge(e){if(e===void 0){e=true}if(b.mobileInput!==undefined&&b.mobileFormatStr){b.mobileInput.value=b.latestSelectedDateObj!==undefined?b.formatDate(b.latestSelectedDateObj,b.mobileFormatStr):""}b.input.value=ze(b.config.dateFormat);if(b.altInput!==undefined){b.altInput.value=ze(b.config.altFormat)}if(e!==false)Ke("onValueUpdate")}function Ze(e){var n=g(e);var t=b.prevMonthNav.contains(n);var a=b.nextMonthNav.contains(n);if(t||a){ce(t?-1:1)}else if(b.yearElements.indexOf(n)>=0){n.select()}else if(n.classList.contains("arrowUp")){b.changeYear(b.currentYear+1)}else if(n.classList.contains("arrowDown")){b.changeYear(b.currentYear-1)}}function Qe(e){e.preventDefault();var n=e.type==="keydown",t=g(e),a=t;if(b.amPM!==undefined&&t===b.amPM){b.amPM.textContent=b.l10n.amPM[o(b.amPM.textContent===b.l10n.amPM[0])]}var i=parseFloat(a.getAttribute("min")),l=parseFloat(a.getAttribute("max")),f=parseFloat(a.getAttribute("step")),u=parseInt(a.value,10),c=e.delta||(n?e.which===38?1:-1:0);var d=u+f*c;if(typeof a.value!=="undefined"&&a.value.length===2){var s=a===b.hourElement,m=a===b.minuteElement;if(d<i){d=l+d+o(!s)+(o(s)&&o(!b.amPM));if(m)$(undefined,-1,b.hourElement)}else if(d>l){d=a===b.hourElement?d-l-o(!b.amPM):i;if(m)$(undefined,1,b.hourElement)}if(b.amPM&&s&&(f===1?d+u===23:Math.abs(d-u)>f)){b.amPM.textContent=b.l10n.amPM[o(b.amPM.textContent===b.l10n.amPM[0])]}a.value=r(d)}}_();return b}function _(e,n){var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement}));var a=[];for(var i=0;i<t.length;i++){var r=t[i];try{if(r.getAttribute("data-fp-omit")!==null)continue;if(r._flatpickr!==undefined){r._flatpickr.destroy();r._flatpickr=undefined}r._flatpickr=I(r,n||{});a.push(r._flatpickr)}catch(e){console.error(e)}}return a.length===1?a[0]:a}if(typeof HTMLElement!=="undefined"&&typeof HTMLCollection!=="undefined"&&typeof NodeList!=="undefined"){HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _(this,e)};HTMLElement.prototype.flatpickr=function(e){return _([this],e)}}var O=function(e,n){if(typeof e==="string"){return _(window.document.querySelectorAll(e),n)}else if(e instanceof Node){return _([e],n)}else{return _(e,n)}};O.defaultConfig={};O.l10ns={en:e({},i),default:e({},i)};O.localize=function(n){O.l10ns.default=e(e({},O.l10ns.default),n)};O.setDefaults=function(n){O.defaultConfig=e(e({},O.defaultConfig),n)};O.parseDate=y({});O.formatDate=w({});O.compareDates=C;if(typeof jQuery!=="undefined"&&typeof jQuery.fn!=="undefined"){jQuery.fn.flatpickr=function(e){return _(this,e)}}Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof e==="string"?parseInt(e,10):e))};if(typeof window!=="undefined"){window.flatpickr=O}return O}))},371:(e,n,t)=>{"use strict";t.r(n)}};var n={};function t(a){var i=n[a];if(i!==undefined){return i.exports}var r=n[a]={exports:{}};e[a].call(r.exports,r,r.exports,t);return r.exports}(()=>{t.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();var a={};(()=>{ /** * --------------------------------------------------------------------- * * GLPI - Gestionnaire Libre de Parc Informatique * * http://glpi-project.org * * @copyright 2015-2022 Teclib' and contributors. * @copyright 2003-2014 by the INDEPNET Development Team. * @licence https://www.gnu.org/licenses/gpl-3.0.html * * --------------------------------------------------------------------- * * LICENSE * * This file is part of GLPI. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. * * --------------------------------------------------------------------- */ const e=t(370);t(371)})()})();