@luisgb2212/table-customizable
Version:
Vue3 Datatable - fully customizable & easy to use datatable library
18 lines • 105 kB
JavaScript
"use strict";const e=require("vue");var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fe(H){return H&&H.__esModule&&Object.prototype.hasOwnProperty.call(H,"default")?H.default:H}var Me={exports:{}};/*!
*
* litepicker.umd.js
* Litepicker v2.0.12 (https://github.com/wakirin/Litepicker)
* Package: litepicker (https://www.npmjs.com/package/litepicker)
* License: MIT (https://github.com/wakirin/Litepicker/blob/master/LICENCE.md)
* Copyright 2019-2021 Rinat G.
*
* Hash: 504eef9c08cb42543660
*
*/(function(H,J){(function(w,L){H.exports=L()})(window,function(){return function(w){var L={};function a(m){if(L[m])return L[m].exports;var i=L[m]={i:m,l:!1,exports:{}};return w[m].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=w,a.c=L,a.d=function(m,i,n){a.o(m,i)||Object.defineProperty(m,i,{enumerable:!0,get:n})},a.r=function(m){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},a.t=function(m,i){if(1&i&&(m=a(m)),8&i||4&i&&typeof m=="object"&&m&&m.__esModule)return m;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:m}),2&i&&typeof m!="string")for(var u in m)a.d(n,u,function(t){return m[t]}.bind(null,u));return n},a.n=function(m){var i=m&&m.__esModule?function(){return m.default}:function(){return m};return a.d(i,"a",i),i},a.o=function(m,i){return Object.prototype.hasOwnProperty.call(m,i)},a.p="",a(a.s=4)}([function(w,L,a){Object.defineProperty(L,"__esModule",{value:!0});var m=function(){function i(n,u,t){n===void 0&&(n=null),u===void 0&&(u=null),t===void 0&&(t="en-US"),this.dateInstance=typeof u=="object"&&u!==null?u.parse(n instanceof i?n.clone().toJSDate():n):typeof u=="string"?i.parseDateTime(n,u,t):n?i.parseDateTime(n):i.parseDateTime(new Date),this.lang=t}return i.parseDateTime=function(n,u,t){if(u===void 0&&(u="YYYY-MM-DD"),t===void 0&&(t="en-US"),!n)return new Date(NaN);if(n instanceof Date)return new Date(n);if(n instanceof i)return n.clone().toJSDate();if(/^-?\d{10,}$/.test(n))return i.getDateZeroTime(new Date(Number(n)));if(typeof n=="string"){for(var g=[],d=null;(d=i.regex.exec(u))!=null;)d[1]!=="\\"&&g.push(d);if(g.length){var M={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};g[0].index>0&&(M.value+=".*?");for(var p=0,r=Object.entries(g);p<r.length;p++){var o=r[p],f=o[0],k=o[1],l=Number(f),s=i.formatPatterns(k[0],t),h=s.group,v=s.pattern;M[h]=l+1,M.value+=v,M.value+=".*?"}var b=new RegExp("^"+M.value+"$");if(b.test(n)){var y=b.exec(n),D=Number(y[M.year]),C=null;M.month?C=Number(y[M.month])-1:M.shortMonth?C=i.shortMonths(t).indexOf(y[M.shortMonth]):M.longMonth&&(C=i.longMonths(t).indexOf(y[M.longMonth]));var F=Number(y[M.day])||1;return new Date(D,C,F,0,0,0,0)}}}return i.getDateZeroTime(new Date(n))},i.convertArray=function(n,u){return n.map(function(t){return t instanceof Array?t.map(function(g){return new i(g,u)}):new i(t,u)})},i.getDateZeroTime=function(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0)},i.shortMonths=function(n){return i.MONTH_JS.map(function(u){return new Date(2019,u).toLocaleString(n,{month:"short"})})},i.longMonths=function(n){return i.MONTH_JS.map(function(u){return new Date(2019,u).toLocaleString(n,{month:"long"})})},i.formatPatterns=function(n,u){switch(n){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+n.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+i.shortMonths(u).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+i.longMonths(u).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},i.prototype.toJSDate=function(){return this.dateInstance},i.prototype.toLocaleString=function(n,u){return this.dateInstance.toLocaleString(n,u)},i.prototype.toDateString=function(){return this.dateInstance.toDateString()},i.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},i.prototype.getDay=function(){return this.dateInstance.getDay()},i.prototype.getTime=function(){return this.dateInstance.getTime()},i.prototype.getDate=function(){return this.dateInstance.getDate()},i.prototype.getMonth=function(){return this.dateInstance.getMonth()},i.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},i.prototype.setMonth=function(n){return this.dateInstance.setMonth(n)},i.prototype.setHours=function(n,u,t,g){n===void 0&&(n=0),u===void 0&&(u=0),t===void 0&&(t=0),g===void 0&&(g=0),this.dateInstance.setHours(n,u,t,g)},i.prototype.setSeconds=function(n){return this.dateInstance.setSeconds(n)},i.prototype.setDate=function(n){return this.dateInstance.setDate(n)},i.prototype.setFullYear=function(n){return this.dateInstance.setFullYear(n)},i.prototype.getWeek=function(n){var u=new Date(this.timestamp()),t=(this.getDay()+(7-n))%7;u.setDate(u.getDate()-t);var g=u.getTime();return u.setMonth(0,1),u.getDay()!==n&&u.setMonth(0,1+(4-u.getDay()+7)%7),1+Math.ceil((g-u.getTime())/6048e5)},i.prototype.clone=function(){return new i(this.toJSDate())},i.prototype.isBetween=function(n,u,t){switch(t===void 0&&(t="()"),t){default:case"()":return this.timestamp()>n.getTime()&&this.timestamp()<u.getTime();case"[)":return this.timestamp()>=n.getTime()&&this.timestamp()<u.getTime();case"(]":return this.timestamp()>n.getTime()&&this.timestamp()<=u.getTime();case"[]":return this.timestamp()>=n.getTime()&&this.timestamp()<=u.getTime()}},i.prototype.isBefore=function(n,u){switch(u===void 0&&(u="seconds"),u){case"second":case"seconds":return n.getTime()>this.getTime();case"day":case"days":return new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(n.getFullYear(),n.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return n.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},i.prototype.isSameOrBefore=function(n,u){switch(u===void 0&&(u="seconds"),u){case"second":case"seconds":return n.getTime()>=this.getTime();case"day":case"days":return new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(n.getFullYear(),n.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},i.prototype.isAfter=function(n,u){switch(u===void 0&&(u="seconds"),u){case"second":case"seconds":return this.getTime()>n.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(n.getFullYear(),n.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>n.getFullYear()}throw new Error("isAfter: Invalid unit!")},i.prototype.isSameOrAfter=function(n,u){switch(u===void 0&&(u="seconds"),u){case"second":case"seconds":return this.getTime()>=n.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(n.getFullYear(),n.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},i.prototype.isSame=function(n,u){switch(u===void 0&&(u="seconds"),u){case"second":case"seconds":return this.getTime()===n.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(n.getFullYear(),n.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},i.prototype.add=function(n,u){switch(u===void 0&&(u="seconds"),u){case"second":case"seconds":this.setSeconds(this.getSeconds()+n);break;case"day":case"days":this.setDate(this.getDate()+n);break;case"month":case"months":this.setMonth(this.getMonth()+n)}return this},i.prototype.subtract=function(n,u){switch(u===void 0&&(u="seconds"),u){case"second":case"seconds":this.setSeconds(this.getSeconds()-n);break;case"day":case"days":this.setDate(this.getDate()-n);break;case"month":case"months":this.setMonth(this.getMonth()-n)}return this},i.prototype.diff=function(n,u){switch(u===void 0&&(u="seconds"),u){default:case"second":case"seconds":return this.getTime()-n.getTime();case"day":case"days":return Math.round((this.timestamp()-n.getTime())/864e5);case"month":case"months":}},i.prototype.format=function(n,u){if(u===void 0&&(u="en-US"),typeof n=="object")return n.output(this.clone().toJSDate());for(var t="",g=[],d=null;(d=i.regex.exec(n))!=null;)d[1]!=="\\"&&g.push(d);if(g.length){g[0].index>0&&(t+=n.substring(0,g[0].index));for(var M=0,p=Object.entries(g);M<p.length;M++){var r=p[M],o=r[0],f=r[1],k=Number(o);t+=this.formatTokens(f[0],u),g[k+1]&&(t+=n.substring(f.index+f[0].length,g[k+1].index)),k===g.length-1&&(t+=n.substring(f.index+f[0].length))}}return t.replace(/\\/g,"")},i.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},i.prototype.formatTokens=function(n,u){switch(n){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return i.shortMonths(u)[this.getMonth()];case"MMMM":return i.longMonths(u)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},i.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,i.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],i}();L.DateTime=m},function(w,L,a){var m,i=this&&this.__extends||(m=function(p,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var k in f)f.hasOwnProperty(k)&&(o[k]=f[k])})(p,r)},function(p,r){function o(){this.constructor=p}m(p,r),p.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),n=this&&this.__spreadArrays||function(){for(var p=0,r=0,o=arguments.length;r<o;r++)p+=arguments[r].length;var f=Array(p),k=0;for(r=0;r<o;r++)for(var l=arguments[r],s=0,h=l.length;s<h;s++,k++)f[k]=l[s];return f};Object.defineProperty(L,"__esModule",{value:!0});var u=a(5),t=a(0),g=a(3),d=a(2),M=function(p){function r(o){var f=p.call(this,o)||this;return f.preventClick=!1,f.bindEvents(),f}return i(r,p),r.prototype.scrollToDate=function(o){if(this.options.scrollToDate){var f=this.options.startDate instanceof t.DateTime?this.options.startDate.clone():null,k=this.options.endDate instanceof t.DateTime?this.options.endDate.clone():null;!this.options.startDate||o&&o!==this.options.element?o&&this.options.endDate&&o===this.options.elementEnd&&(k.setDate(1),this.options.numberOfMonths>1&&k.isAfter(f)&&k.setMonth(k.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=k.clone()):(f.setDate(1),this.calendars[0]=f.clone())}},r.prototype.bindEvents=function(){document.addEventListener("click",this.onClick.bind(this),!0),this.ui=document.createElement("div"),this.ui.className=g.litepicker,this.ui.style.display="none",this.ui.addEventListener("mouseenter",this.onMouseEnter.bind(this),!0),this.ui.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",this.onInput.bind(this),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",this.onInput.bind(this),!0)),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.ui):document.querySelector(this.options.parentEl).appendChild(this.ui):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.ui):this.options.element.appendChild(this.ui):document.body.appendChild(this.ui),this.updateInput(),this.init(),typeof this.options.setup=="function"&&this.options.setup.call(this,this),this.render(),this.options.inlineMode&&this.show()},r.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){var o=this.options.startDate,f=this.options.endDate;if(this.options.singleMode&&o)this.options.element.value=o.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&o&&f){var k=o.format(this.options.format,this.options.lang),l=f.format(this.options.format,this.options.lang);this.options.elementEnd instanceof HTMLInputElement?(this.options.element.value=k,this.options.elementEnd.value=l):this.options.element.value=""+k+this.options.delimiter+l}o||f||(this.options.element.value="",this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.value=""))}},r.prototype.isSamePicker=function(o){return o.closest("."+g.litepicker)===this.ui},r.prototype.shouldShown=function(o){return!o.disabled&&(o===this.options.element||this.options.elementEnd&&o===this.options.elementEnd)},r.prototype.shouldResetDatePicked=function(){return this.options.singleMode||this.datePicked.length===2},r.prototype.shouldSwapDatePicked=function(){return this.datePicked.length===2&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},r.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&this.datePicked.length===2},r.prototype.onClick=function(o){var f=o.target;if(o.target.shadowRoot&&(f=o.composedPath()[0]),f&&this.ui)if(this.shouldShown(f))this.show(f);else if(f.closest("."+g.litepicker)||!this.isShowning()){if(this.isSamePicker(f))if(this.emit("before:click",f),this.preventClick)this.preventClick=!1;else{if(f.classList.contains(g.dayItem)){if(o.preventDefault(),f.classList.contains(g.isLocked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new t.DateTime(f.dataset.time),this.shouldSwapDatePicked()){var k=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=k.clone()}return this.shouldCheckLockDays()&&d.rangeIsLocked(this.datePicked,this.options)&&(this.emit("error:range",this.datePicked),this.datePicked.length=0),this.render(),this.emit.apply(this,n(["preselect"],n(this.datePicked).map(function(v){return v.clone()}))),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||this.datePicked.length!==2||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(f.classList.contains(g.buttonPreviousMonth)){o.preventDefault();var l=0,s=this.options.switchingMonths||this.options.numberOfMonths;if(this.options.splitView){var h=f.closest("."+g.monthItem);l=d.findNestedMonthItem(h),s=1}return this.calendars[l].setMonth(this.calendars[l].getMonth()-s),this.gotoDate(this.calendars[l],l),void this.emit("change:month",this.calendars[l],l)}if(f.classList.contains(g.buttonNextMonth))return o.preventDefault(),l=0,s=this.options.switchingMonths||this.options.numberOfMonths,this.options.splitView&&(h=f.closest("."+g.monthItem),l=d.findNestedMonthItem(h),s=1),this.calendars[l].setMonth(this.calendars[l].getMonth()+s),this.gotoDate(this.calendars[l],l),void this.emit("change:month",this.calendars[l],l);f.classList.contains(g.buttonCancel)&&(o.preventDefault(),this.hide(),this.emit("button:cancel")),f.classList.contains(g.buttonApply)&&(o.preventDefault(),this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||this.datePicked.length!==2||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide(),this.emit("button:apply",this.options.startDate,this.options.endDate))}}else this.hide()},r.prototype.showTooltip=function(o,f){var k=this.ui.querySelector("."+g.containerTooltip);k.style.visibility="visible",k.innerHTML=f;var l=this.ui.getBoundingClientRect(),s=k.getBoundingClientRect(),h=o.getBoundingClientRect(),v=h.top,b=h.left;if(this.options.inlineMode&&this.options.parentEl){var y=this.ui.parentNode.getBoundingClientRect();v-=y.top,b-=y.left}else v-=l.top,b-=l.left;v-=s.height,b-=s.width/2,b+=h.width/2,k.style.top=v+"px",k.style.left=b+"px",this.emit("tooltip",k,o)},r.prototype.hideTooltip=function(){this.ui.querySelector("."+g.containerTooltip).style.visibility="hidden"},r.prototype.shouldAllowMouseEnter=function(o){return!this.options.singleMode&&!o.classList.contains(g.isLocked)},r.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},r.prototype.isDayItem=function(o){return o.classList.contains(g.dayItem)},r.prototype.onMouseEnter=function(o){var f=this,k=o.target;if(this.isDayItem(k)&&this.shouldAllowMouseEnter(k)){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),this.datePicked.length!==1)return;var l=this.ui.querySelector("."+g.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),s=this.datePicked[0].clone(),h=new t.DateTime(k.dataset.time),v=!1;if(s.getTime()>h.getTime()){var b=s.clone();s=h.clone(),h=b.clone(),v=!0}if(Array.prototype.slice.call(this.ui.querySelectorAll("."+g.dayItem)).forEach(function(ee){var P=new t.DateTime(ee.dataset.time),S=f.renderDay(P);P.isBetween(s,h)&&S.classList.add(g.isInRange),ee.className=S.className}),k.classList.add(g.isEndDate),v?(l&&l.classList.add(g.isFlipped),k.classList.add(g.isFlipped)):(l&&l.classList.remove(g.isFlipped),k.classList.remove(g.isFlipped)),this.options.showTooltip){var y=h.diff(s,"day")+1;if(typeof this.options.tooltipNumber=="function"&&(y=this.options.tooltipNumber.call(this,y)),y>0){var D=this.pluralSelector(y),C=y+" "+(this.options.tooltipText[D]?this.options.tooltipText[D]:"["+D+"]");this.showTooltip(k,C);var F=window.navigator.userAgent,N=/(iphone|ipad)/i.test(F),W=/OS 1([0-2])/i.test(F);N&&W&&k.dispatchEvent(new Event("click"))}else this.hideTooltip()}}},r.prototype.onMouseLeave=function(o){o.target,this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},r.prototype.onInput=function(o){var f=this.parseInput(),k=f[0],l=f[1],s=this.options.format;if(this.options.elementEnd?k instanceof t.DateTime&&l instanceof t.DateTime&&k.format(s)===this.options.element.value&&l.format(s)===this.options.elementEnd.value:this.options.singleMode?k instanceof t.DateTime&&k.format(s)===this.options.element.value:k instanceof t.DateTime&&l instanceof t.DateTime&&""+k.format(s)+this.options.delimiter+l.format(s)===this.options.element.value){if(l&&k.getTime()>l.getTime()){var h=k.clone();k=l.clone(),l=h.clone()}this.options.startDate=new t.DateTime(k,this.options.format,this.options.lang),l&&(this.options.endDate=new t.DateTime(l,this.options.format,this.options.lang)),this.updateInput(),this.render();var v=k.clone(),b=0;(this.options.elementEnd?k.format(s)===o.target.value:o.target.value.startsWith(k.format(s)))||(v=l.clone(),b=this.options.numberOfMonths-1),this.emit("selected",this.getStartDate(),this.getEndDate()),this.gotoDate(v,b)}},r}(u.Calendar);L.Litepicker=M},function(w,L,a){Object.defineProperty(L,"__esModule",{value:!0}),L.findNestedMonthItem=function(m){for(var i=m.parentNode.childNodes,n=0;n<i.length;n+=1)if(i.item(n)===m)return n;return 0},L.dateIsLocked=function(m,i,n){var u=!1;return i.lockDays.length&&(u=i.lockDays.filter(function(t){return t instanceof Array?m.isBetween(t[0],t[1],i.lockDaysInclusivity):t.isSame(m,"day")}).length),u||typeof i.lockDaysFilter!="function"||(u=i.lockDaysFilter.call(this,m.clone(),null,n)),u},L.rangeIsLocked=function(m,i){var n=!1;return i.lockDays.length&&(n=i.lockDays.filter(function(u){if(u instanceof Array){var t=m[0].toDateString()===u[0].toDateString()&&m[1].toDateString()===u[1].toDateString();return u[0].isBetween(m[0],m[1],i.lockDaysInclusivity)||u[1].isBetween(m[0],m[1],i.lockDaysInclusivity)||t}return u.isBetween(m[0],m[1],i.lockDaysInclusivity)}).length),n||typeof i.lockDaysFilter!="function"||(n=i.lockDaysFilter.call(this,m[0].clone(),m[1].clone(),m)),n}},function(w,L,a){var m=a(8);typeof m=="string"&&(m=[[w.i,m,""]]);var i={insert:function(n){var u=document.querySelector("head"),t=window._lastElementInsertedByStyleLoader;window.disableLitepickerStyles||(t?t.nextSibling?u.insertBefore(n,t.nextSibling):u.appendChild(n):u.insertBefore(n,u.firstChild),window._lastElementInsertedByStyleLoader=n)},singleton:!1};a(10)(m,i),m.locals&&(w.exports=m.locals)},function(w,L,a){Object.defineProperty(L,"__esModule",{value:!0});var m=a(1);L.Litepicker=m.Litepicker,a(11),window.Litepicker=m.Litepicker,L.default=m.Litepicker},function(w,L,a){var m,i=this&&this.__extends||(m=function(M,p){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var f in o)o.hasOwnProperty(f)&&(r[f]=o[f])})(M,p)},function(M,p){function r(){this.constructor=M}m(M,p),M.prototype=p===null?Object.create(p):(r.prototype=p.prototype,new r)});Object.defineProperty(L,"__esModule",{value:!0});var n=a(6),u=a(0),t=a(3),g=a(2),d=function(M){function p(r){return M.call(this,r)||this}return i(p,M),p.prototype.render=function(){var r=this;this.emit("before:render",this.ui);var o=document.createElement("div");o.className=t.containerMain;var f=document.createElement("div");f.className=t.containerMonths,t["columns"+this.options.numberOfColumns]&&(f.classList.remove(t.columns2,t.columns3,t.columns4),f.classList.add(t["columns"+this.options.numberOfColumns])),this.options.splitView&&f.classList.add(t.splitView),this.options.showWeekNumbers&&f.classList.add(t.showWeekNumbers);for(var k=this.calendars[0].clone(),l=k.getMonth(),s=k.getMonth()+this.options.numberOfMonths,h=0,v=l;v<s;v+=1){var b=k.clone();b.setDate(1),b.setHours(0,0,0,0),this.options.splitView?b=this.calendars[h].clone():b.setMonth(v),f.appendChild(this.renderMonth(b,h)),h+=1}if(this.ui.innerHTML="",o.appendChild(f),this.options.resetButton){var y=void 0;typeof this.options.resetButton=="function"?y=this.options.resetButton.call(this):((y=document.createElement("button")).type="button",y.className=t.resetButton,y.innerHTML=this.options.buttonText.reset),y.addEventListener("click",function(D){D.preventDefault(),r.clearSelection()}),o.querySelector("."+t.monthItem+":last-child").querySelector("."+t.monthItemHeader).appendChild(y)}this.ui.appendChild(o),this.options.autoApply&&!this.options.footerHTML||this.ui.appendChild(this.renderFooter()),this.options.showTooltip&&this.ui.appendChild(this.renderTooltip()),this.ui.dataset.plugins=(this.options.plugins||[]).join("|"),this.emit("render",this.ui)},p.prototype.renderMonth=function(r,o){var f=this,k=r.clone(),l=32-new Date(k.getFullYear(),k.getMonth(),32).getDate(),s=document.createElement("div");s.className=t.monthItem;var h=document.createElement("div");h.className=t.monthItemHeader;var v=document.createElement("div");if(this.options.dropdowns.months){var b=document.createElement("select");b.className=t.monthItemName;for(var y=0;y<12;y+=1){var D=document.createElement("option"),C=new u.DateTime(new Date(r.getFullYear(),y,2,0,0,0)),F=new u.DateTime(new Date(r.getFullYear(),y,1,0,0,0));D.value=String(y),D.text=C.toLocaleString(this.options.lang,{month:"long"}),D.disabled=this.options.minDate&&F.isBefore(new u.DateTime(this.options.minDate),"month")||this.options.maxDate&&F.isAfter(new u.DateTime(this.options.maxDate),"month"),D.selected=F.getMonth()===r.getMonth(),b.appendChild(D)}b.addEventListener("change",function(X){var Y=X.target,K=0;if(f.options.splitView){var G=Y.closest("."+t.monthItem);K=g.findNestedMonthItem(G)}f.calendars[K].setMonth(Number(Y.value)),f.render(),f.emit("change:month",f.calendars[K],K,X)}),v.appendChild(b)}else(C=document.createElement("strong")).className=t.monthItemName,C.innerHTML=r.toLocaleString(this.options.lang,{month:"long"}),v.appendChild(C);if(this.options.dropdowns.years){var N=document.createElement("select");N.className=t.monthItemYear;var W=this.options.dropdowns.minYear,ee=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:new Date().getFullYear();for(r.getFullYear()>ee&&((D=document.createElement("option")).value=String(r.getFullYear()),D.text=String(r.getFullYear()),D.selected=!0,D.disabled=!0,N.appendChild(D)),y=ee;y>=W;y-=1){var D=document.createElement("option"),P=new u.DateTime(new Date(y,0,1,0,0,0));D.value=String(y),D.text=String(y),D.disabled=this.options.minDate&&P.isBefore(new u.DateTime(this.options.minDate),"year")||this.options.maxDate&&P.isAfter(new u.DateTime(this.options.maxDate),"year"),D.selected=r.getFullYear()===y,N.appendChild(D)}if(r.getFullYear()<W&&((D=document.createElement("option")).value=String(r.getFullYear()),D.text=String(r.getFullYear()),D.selected=!0,D.disabled=!0,N.appendChild(D)),this.options.dropdowns.years==="asc"){var S=Array.prototype.slice.call(N.childNodes).reverse();N.innerHTML="",S.forEach(function(X){X.innerHTML=X.value,N.appendChild(X)})}N.addEventListener("change",function(X){var Y=X.target,K=0;if(f.options.splitView){var G=Y.closest("."+t.monthItem);K=g.findNestedMonthItem(G)}f.calendars[K].setFullYear(Number(Y.value)),f.render(),f.emit("change:year",f.calendars[K],K,X)}),v.appendChild(N)}else{var E=document.createElement("span");E.className=t.monthItemYear,E.innerHTML=String(r.getFullYear()),v.appendChild(E)}var B=document.createElement("button");B.type="button",B.className=t.buttonPreviousMonth,B.innerHTML=this.options.buttonText.previousMonth;var T=document.createElement("button");T.type="button",T.className=t.buttonNextMonth,T.innerHTML=this.options.buttonText.nextMonth,h.appendChild(B),h.appendChild(v),h.appendChild(T),this.options.minDate&&k.isSameOrBefore(new u.DateTime(this.options.minDate),"month")&&s.classList.add(t.noPreviousMonth),this.options.maxDate&&k.isSameOrAfter(new u.DateTime(this.options.maxDate),"month")&&s.classList.add(t.noNextMonth);var V=document.createElement("div");V.className=t.monthItemWeekdaysRow,this.options.showWeekNumbers&&(V.innerHTML="<div>W</div>");for(var I=1;I<=7;I+=1){var z=3+this.options.firstDay+I,j=document.createElement("div");j.innerHTML=this.weekdayName(z),j.title=this.weekdayName(z,"long"),V.appendChild(j)}var R=document.createElement("div");R.className=t.containerDays;var Z=this.calcSkipDays(k);this.options.showWeekNumbers&&Z&&R.appendChild(this.renderWeekNumber(k));for(var A=0;A<Z;A+=1){var ne=document.createElement("div");R.appendChild(ne)}for(A=1;A<=l;A+=1)k.setDate(A),this.options.showWeekNumbers&&k.getDay()===this.options.firstDay&&R.appendChild(this.renderWeekNumber(k)),R.appendChild(this.renderDay(k));return s.appendChild(h),s.appendChild(V),s.appendChild(R),this.emit("render:month",s,r),s},p.prototype.renderDay=function(r){r.setHours();var o=document.createElement("div");if(o.className=t.dayItem,o.innerHTML=String(r.getDate()),o.dataset.time=String(r.getTime()),r.toDateString()===new Date().toDateString()&&o.classList.add(t.isToday),this.datePicked.length)this.datePicked[0].toDateString()===r.toDateString()&&(o.classList.add(t.isStartDate),this.options.singleMode&&o.classList.add(t.isEndDate)),this.datePicked.length===2&&this.datePicked[1].toDateString()===r.toDateString()&&o.classList.add(t.isEndDate),this.datePicked.length===2&&r.isBetween(this.datePicked[0],this.datePicked[1])&&o.classList.add(t.isInRange);else if(this.options.startDate){var f=this.options.startDate,k=this.options.endDate;f.toDateString()===r.toDateString()&&(o.classList.add(t.isStartDate),this.options.singleMode&&o.classList.add(t.isEndDate)),k&&k.toDateString()===r.toDateString()&&o.classList.add(t.isEndDate),f&&k&&r.isBetween(f,k)&&o.classList.add(t.isInRange)}if(this.options.minDate&&r.isBefore(new u.DateTime(this.options.minDate))&&o.classList.add(t.isLocked),this.options.maxDate&&r.isAfter(new u.DateTime(this.options.maxDate))&&o.classList.add(t.isLocked),this.options.minDays>1&&this.datePicked.length===1){var l=this.options.minDays-1,s=this.datePicked[0].clone().subtract(l,"day"),h=this.datePicked[0].clone().add(l,"day");r.isBetween(s,this.datePicked[0],"(]")&&o.classList.add(t.isLocked),r.isBetween(this.datePicked[0],h,"[)")&&o.classList.add(t.isLocked)}if(this.options.maxDays&&this.datePicked.length===1){var v=this.options.maxDays;s=this.datePicked[0].clone().subtract(v,"day"),h=this.datePicked[0].clone().add(v,"day"),r.isSameOrBefore(s)&&o.classList.add(t.isLocked),r.isSameOrAfter(h)&&o.classList.add(t.isLocked)}return this.options.selectForward&&this.datePicked.length===1&&r.isBefore(this.datePicked[0])&&o.classList.add(t.isLocked),this.options.selectBackward&&this.datePicked.length===1&&r.isAfter(this.datePicked[0])&&o.classList.add(t.isLocked),g.dateIsLocked(r,this.options,this.datePicked)&&o.classList.add(t.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter(function(b){return b instanceof Array?r.isBetween(b[0],b[1],"[]"):b.isSame(r,"day")}).length&&o.classList.add(t.isHighlighted),o.tabIndex=o.classList.contains("is-locked")?-1:0,this.emit("render:day",o,r),o},p.prototype.renderFooter=function(){var r=document.createElement("div");if(r.className=t.containerFooter,this.options.footerHTML?r.innerHTML=this.options.footerHTML:r.innerHTML=`
<span class="`+t.previewDateRange+`"></span>
<button type="button" class="`+t.buttonCancel+'">'+this.options.buttonText.cancel+`</button>
<button type="button" class="`+t.buttonApply+'">'+this.options.buttonText.apply+`</button>
`,this.options.singleMode){if(this.datePicked.length===1){var o=this.datePicked[0].format(this.options.format,this.options.lang);r.querySelector("."+t.previewDateRange).innerHTML=o}}else if(this.datePicked.length===1&&r.querySelector("."+t.buttonApply).setAttribute("disabled",""),this.datePicked.length===2){o=this.datePicked[0].format(this.options.format,this.options.lang);var f=this.datePicked[1].format(this.options.format,this.options.lang);r.querySelector("."+t.previewDateRange).innerHTML=""+o+this.options.delimiter+f}return this.emit("render:footer",r),r},p.prototype.renderWeekNumber=function(r){var o=document.createElement("div"),f=r.getWeek(this.options.firstDay);return o.className=t.weekNumber,o.innerHTML=f===53&&r.getMonth()===0?"53 / 1":f,o},p.prototype.renderTooltip=function(){var r=document.createElement("div");return r.className=t.containerTooltip,r},p.prototype.weekdayName=function(r,o){return o===void 0&&(o="short"),new Date(1970,0,r,12,0,0,0).toLocaleString(this.options.lang,{weekday:o})},p.prototype.calcSkipDays=function(r){var o=r.getDay()-this.options.firstDay;return o<0&&(o+=7),o},p}(n.LPCore);L.Calendar=d},function(w,L,a){var m,i=this&&this.__extends||(m=function(M,p){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var f in o)o.hasOwnProperty(f)&&(r[f]=o[f])})(M,p)},function(M,p){function r(){this.constructor=M}m(M,p),M.prototype=p===null?Object.create(p):(r.prototype=p.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(M){for(var p,r=1,o=arguments.length;r<o;r++)for(var f in p=arguments[r])Object.prototype.hasOwnProperty.call(p,f)&&(M[f]=p[f]);return M}).apply(this,arguments)};Object.defineProperty(L,"__esModule",{value:!0});var u=a(7),t=a(0),g=a(1),d=function(M){function p(r){var o=M.call(this)||this;o.datePicked=[],o.calendars=[],o.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,position:"auto",selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,scrollToDate:!0,mobileFriendly:!0,resetButton:!1,autoRefresh:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>
</svg>`},tooltipText:{one:"day",other:"days"}},o.options=n(n({},o.options),r.element.dataset),Object.keys(o.options).forEach(function(W){o.options[W]!=="true"&&o.options[W]!=="false"||(o.options[W]=o.options[W]==="true")});var f=n(n({},o.options.dropdowns),r.dropdowns),k=n(n({},o.options.buttonText),r.buttonText),l=n(n({},o.options.tooltipText),r.tooltipText);o.options=n(n({},o.options),r),o.options.dropdowns=n({},f),o.options.buttonText=n({},k),o.options.tooltipText=n({},l),o.options.elementEnd||(o.options.allowRepick=!1),o.options.lockDays.length&&(o.options.lockDays=t.DateTime.convertArray(o.options.lockDays,o.options.lockDaysFormat)),o.options.highlightedDays.length&&(o.options.highlightedDays=t.DateTime.convertArray(o.options.highlightedDays,o.options.highlightedDaysFormat));var s=o.parseInput(),h=s[0],v=s[1];o.options.startDate&&(o.options.singleMode||o.options.endDate)&&(h=new t.DateTime(o.options.startDate,o.options.format,o.options.lang)),h&&o.options.endDate&&(v=new t.DateTime(o.options.endDate,o.options.format,o.options.lang)),h instanceof t.DateTime&&!isNaN(h.getTime())&&(o.options.startDate=h),o.options.startDate&&v instanceof t.DateTime&&!isNaN(v.getTime())&&(o.options.endDate=v),!o.options.singleMode||o.options.startDate instanceof t.DateTime||(o.options.startDate=null),o.options.singleMode||o.options.startDate instanceof t.DateTime&&o.options.endDate instanceof t.DateTime||(o.options.startDate=null,o.options.endDate=null);for(var b=0;b<o.options.numberOfMonths;b+=1){var y=o.options.startDate instanceof t.DateTime?o.options.startDate.clone():new t.DateTime;if(!o.options.startDate&&(b===0||o.options.splitView)){var D=o.options.maxDate?new t.DateTime(o.options.maxDate):null,C=o.options.minDate?new t.DateTime(o.options.minDate):null,F=o.options.numberOfMonths-1;C&&D&&y.isAfter(D)?(y=C.clone()).setDate(1):!C&&D&&y.isAfter(D)&&((y=D.clone()).setDate(1),y.setMonth(y.getMonth()-F))}y.setDate(1),y.setMonth(y.getMonth()+b),o.calendars[b]=y}if(o.options.showTooltip)if(o.options.tooltipPluralSelector)o.pluralSelector=o.options.tooltipPluralSelector;else try{var N=new Intl.PluralRules(o.options.lang);o.pluralSelector=N.select.bind(N)}catch{o.pluralSelector=function(ee){return Math.abs(ee)===0?"one":"other"}}return o}return i(p,M),p.add=function(r,o){g.Litepicker.prototype[r]=o},p.prototype.DateTime=function(r,o){return r?new t.DateTime(r,o):new t.DateTime},p.prototype.init=function(){var r=this;this.options.plugins&&this.options.plugins.length&&this.options.plugins.forEach(function(o){g.Litepicker.prototype.hasOwnProperty(o)?g.Litepicker.prototype[o].init.call(r,r):console.warn("Litepicker: plugin \xAB"+o+"\xBB not found.")})},p.prototype.parseInput=function(){var r=this.options.delimiter,o=new RegExp(""+r),f=this.options.element instanceof HTMLInputElement?this.options.element.value.split(r):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new t.DateTime(this.options.element.value,this.options.format),new t.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new t.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&o.test(this.options.element.value)&&f.length&&f.length%2==0){var k=f.slice(0,f.length/2).join(r),l=f.slice(f.length/2).join(r);return[new t.DateTime(k,this.options.format),new t.DateTime(l,this.options.format)]}return[]},p.prototype.isShowning=function(){return this.ui&&this.ui.style.display!=="none"},p.prototype.findPosition=function(r){var o=r.getBoundingClientRect(),f=this.ui.getBoundingClientRect(),k=this.options.position.split(" "),l=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset,h=0,v=0;if(k[0]!=="auto"&&/top|bottom/.test(k[0]))h=o[k[0]]+s,k[0]==="top"&&(h-=f.height);else{h=o.bottom+s;var b=o.bottom+f.height>window.innerHeight,y=o.top+s-f.height>=f.height;b&&y&&(h=o.top+s-f.height)}if(/left|right/.test(k[0])||k[1]&&k[1]!=="auto"&&/left|right/.test(k[1]))v=/left|right/.test(k[0])?o[k[0]]+l:o[k[1]]+l,k[0]!=="right"&&k[1]!=="right"||(v-=f.width);else{v=o.left+l,b=o.left+f.width>window.innerWidth;var D=o.right+l-f.width>=0;b&&D&&(v=o.right+l-f.width)}return{left:v,top:h}},p}(u.EventEmitter);L.LPCore=d},function(w,L,a){var m,i=typeof Reflect=="object"?Reflect:null,n=i&&typeof i.apply=="function"?i.apply:function(l,s,h){return Function.prototype.apply.call(l,s,h)};m=i&&typeof i.ownKeys=="function"?i.ownKeys:Object.getOwnPropertySymbols?function(l){return Object.getOwnPropertyNames(l).concat(Object.getOwnPropertySymbols(l))}:function(l){return Object.getOwnPropertyNames(l)};var u=Number.isNaN||function(l){return l!=l};function t(){t.init.call(this)}w.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var g=10;function d(l){return l._maxListeners===void 0?t.defaultMaxListeners:l._maxListeners}function M(l,s,h,v){var b,y,D,C;if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h);if((y=l._events)===void 0?(y=l._events=Object.create(null),l._eventsCount=0):(y.newListener!==void 0&&(l.emit("newListener",s,h.listener?h.listener:h),y=l._events),D=y[s]),D===void 0)D=y[s]=h,++l._eventsCount;else if(typeof D=="function"?D=y[s]=v?[h,D]:[D,h]:v?D.unshift(h):D.push(h),(b=d(l))>0&&D.length>b&&!D.warned){D.warned=!0;var F=new Error("Possible EventEmitter memory leak detected. "+D.length+" "+String(s)+" listeners added. Use emitter.setMaxListeners() to increase limit");F.name="MaxListenersExceededWarning",F.emitter=l,F.type=s,F.count=D.length,C=F,console&&console.warn&&console.warn(C)}return l}function p(){for(var l=[],s=0;s<arguments.length;s++)l.push(arguments[s]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,n(this.listener,this.target,l))}function r(l,s,h){var v={fired:!1,wrapFn:void 0,target:l,type:s,listener:h},b=p.bind(v);return b.listener=h,v.wrapFn=b,b}function o(l,s,h){var v=l._events;if(v===void 0)return[];var b=v[s];return b===void 0?[]:typeof b=="function"?h?[b.listener||b]:[b]:h?function(y){for(var D=new Array(y.length),C=0;C<D.length;++C)D[C]=y[C].listener||y[C];return D}(b):k(b,b.length)}function f(l){var s=this._events;if(s!==void 0){var h=s[l];if(typeof h=="function")return 1;if(h!==void 0)return h.length}return 0}function k(l,s){for(var h=new Array(s),v=0;v<s;++v)h[v]=l[v];return h}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return g},set:function(l){if(typeof l!="number"||l<0||u(l))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+l+".");g=l}}),t.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(l){if(typeof l!="number"||l<0||u(l))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+l+".");return this._maxListeners=l,this},t.prototype.getMaxListeners=function(){return d(this)},t.prototype.emit=function(l){for(var s=[],h=1;h<arguments.length;h++)s.push(arguments[h]);var v=l==="error",b=this._events;if(b!==void 0)v=v&&b.error===void 0;else if(!v)return!1;if(v){var y;if(s.length>0&&(y=s[0]),y instanceof Error)throw y;var D=new Error("Unhandled error."+(y?" ("+y.message+")":""));throw D.context=y,D}var C=b[l];if(C===void 0)return!1;if(typeof C=="function")n(C,this,s);else{var F=C.length,N=k(C,F);for(h=0;h<F;++h)n(N[h],this,s)}return!0},t.prototype.addListener=function(l,s){return M(this,l,s,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(l,s){return M(this,l,s,!0)},t.prototype.once=function(l,s){if(typeof s!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof s);return this.on(l,r(this,l,s)),this},t.prototype.prependOnceListener=function(l,s){if(typeof s!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof s);return this.prependListener(l,r(this,l,s)),this},t.prototype.removeListener=function(l,s){var h,v,b,y,D;if(typeof s!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof s);if((v=this._events)===void 0)return this;if((h=v[l])===void 0)return this;if(h===s||h.listener===s)--this._eventsCount==0?this._events=Object.create(null):(delete v[l],v.removeListener&&this.emit("removeListener",l,h.listener||s));else if(typeof h!="function"){for(b=-1,y=h.length-1;y>=0;y--)if(h[y]===s||h[y].listener===s){D=h[y].listener,b=y;break}if(b<0)return this;b===0?h.shift():function(C,F){for(;F+1<C.length;F++)C[F]=C[F+1];C.pop()}(h,b),h.length===1&&(v[l]=h[0]),v.removeListener!==void 0&&this.emit("removeListener",l,D||s)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(l){var s,h,v;if((h=this._events)===void 0)return this;if(h.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):h[l]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete h[l]),this;if(arguments.length===0){var b,y=Object.keys(h);for(v=0;v<y.length;++v)(b=y[v])!=="removeListener"&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(s=h[l])=="function")this.removeListener(l,s);else if(s!==void 0)for(v=s.length-1;v>=0;v--)this.removeListener(l,s[v]);return this},t.prototype.listeners=function(l){return o(this,l,!0)},t.prototype.rawListeners=function(l){return o(this,l,!1)},t.listenerCount=function(l,s){return typeof l.listenerCount=="function"?l.listenerCount(s):f.call(l,s)},t.prototype.listenerCount=f,t.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]}},function(w,L,a){(L=a(9)(!1)).push([w.i,`:root{--litepicker-container-months-color-bg: #fff;--litepicker-container-months-box-shadow-color: #ddd;--litepicker-footer-color-bg: #fafafa;--litepicker-footer-box-shadow-color: #ddd;--litepicker-tooltip-color-bg: #fff;--litepicker-month-header-color: #333;--litepicker-button-prev-month-color: #9e9e9e;--litepicker-button-next-month-color: #9e9e9e;--litepicker-button-prev-month-color-hover: #2196f3;--litepicker-button-next-month-color-hover: #2196f3;--litepicker-month-width: calc(var(--litepicker-day-width) * 7);--litepicker-month-weekday-color: #9e9e9e;--litepicker-month-week-number-color: #9e9e9e;--litepicker-day-width: 38px;--litepicker-day-color: #333;--litepicker-day-color-hover: #2196f3;--litepicker-is-today-color: #f44336;--litepicker-is-in-range-color: #bbdefb;--litepicker-is-locked-color: #9e9e9e;--litepicker-is-start-color: #fff;--litepicker-is-start-color-bg: #2196f3;--litepicker-is-end-color: #fff;--litepicker-is-end-color-bg: #2196f3;--litepicker-button-cancel-color: #fff;--litepicker-button-cancel-color-bg: #9e9e9e;--litepicker-button-apply-color: #fff;--litepicker-button-apply-color-bg: #2196f3;--litepicker-button-reset-color: #909090;--litepicker-button-reset-color-hover: #2196f3;--litepicker-highlighted-day-color: #333;--litepicker-highlighted-day-color-bg: #ffeb3b}.show-week-numbers{--litepicker-month-width: calc(var(--litepicker-day-width) * 8)}.litepicker{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:0.8em;display:none}.litepicker button{border:none;background:none}.litepicker .container__main{display:-webkit-box;display:-ms-flexbox;display:flex}.litepicker .container__months{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:var(--litepicker-container-months-color-bg);border-radius:5px;-webkit-box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);width:calc(var(--litepicker-month-width) + 10px);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months.columns-2{width:calc((var(--litepicker-month-width) * 2) + 20px)}.litepicker .container__months.columns-3{width:calc((var(--litepicker-month-width) * 3) + 30px)}.litepicker .container__months.columns-4{width:calc((var(--litepicker-month-width) * 4) + 40px)}.litepicker .container__months.split-view .month-item-header .button-previous-month,.litepicker .container__months.split-view .month-item-header .button-next-month{visibility:visible}.litepicker .container__months .month-item{padding:5px;width:var(--litepicker-month-width);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months .month-item-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:500;padding:10px 5px;text-align:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--litepicker-month-header-color)}.litepicker .container__months .month-item-header div{-webkit-box-flex:1;-ms-flex:1;flex:1}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header div>.month-item-year{padding:0}.litepicker .container__months .month-item-header .reset-button{color:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button>svg{fill:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button *{pointer-events:none}.litepicker .container__months .month-item-header .reset-button:hover{color:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .reset-button:hover>svg{fill:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;padding:3px 5px;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__months .month-item-header .button-previous-month *,.litepicker .container__months .month-item-header .button-next-month *{pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month{color:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img{fill:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month:hover{color:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-previous-month:hover>svg{fill:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month{color:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{fill:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month:hover{color:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month:hover>svg{fill:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-weekdays-row{display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;color:var(--litepicker-month-weekday-color)}.litepicker .container__months .month-item-weekdays-row>div{padding:5px 0;font-size:85%;-webkit-box-flex:1;-ms-flex:1;flex:1;width:var(--litepicker-day-width);text-align:center}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visib