UNPKG

@sbh321/qcalendar

Version:

A forked version of Jeff Galbraith's fork of Quasar UI QCalendar

6 lines 38 kB
/*! * @subhambhandari/qcalendar v4.0.0-beta.19 * (c) 2024 Subham Bhandari <bhandarimaiya65@gmail.com> * Released under the MIT License. */ (function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define(["vue"],t):(e="undefined"!==typeof globalThis?globalThis:e||self,e.QCalendarTask=t(e.Vue))})(this,function(Ne){"use strict";const a=/^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?(.(\d{1,3}))?$/,e=/^(\d{4})-(\d{1,2})(-(\d{1,2}))/,T=/(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/,A=[0,31,28,31,30,31,30,31,31,30,31,30,31],N=[0,31,29,31,30,31,30,31,31,30,31,30,31],W=28,E=31,u=12,n=1,m=1,i=7,r=60,o=24,O=0,M=6e4,B=36e5,R=864e5,H=6048e5,V={date:"",time:"",year:0,month:0,day:0,weekday:0,hour:0,minute:0,doy:0,workweek:0,hasDay:!1,hasTime:!1,past:!1,current:!1,future:!1,disabled:!1,currentWeekday:!1},L={hour:0,minute:0};function We(){const e=new Date,t=""+(e.getMonth()+1),a=""+e.getDate(),n=e.getFullYear();return[n,d(t,2),d(a,2)].join("-")}function q(e,t,a){let n=I(e);if(1===n.day||0===n.weekday)while(!t.includes(n.weekday))n=w(n);return n=f(n,t[0],g),n=k(n),a&&(n=p(n,a,n.hasTime)),n}function S(e,t,a){let n=I(e);const r=s(n.year,n.month);if(r===n.day||6===n.weekday)while(!t.includes(n.weekday))n=g(n);return n=f(n,t[t.length-1],w),n=k(n),a&&(n=p(n,a,n.hasTime)),n}function F(e){const t=I(e);return t.day=m,k(t),t}function C(e){const t=I(e);return t.day=s(t.year,t.month),k(t),t}function U(e){const t=Object.prototype.toString.call(e);switch(t){case"[object Number]":return e;case"[object String]":{const a=T.exec(e);return a?60*parseInt(a[1],10)+parseInt(a[3]||0,10):!1}case"[object Object]":return"number"!==typeof e.hour||"number"!==typeof e.minute?!1:60*e.hour+e.minute}return!1}function t(e){return!!a.exec(e)}function Z(e,t){return JSON.stringify(e)===JSON.stringify(t)}function $(e,t){return c(e)===c(t)}function Y(e,t){return v(e)===v(t)}function z(e,t){return y(e)===y(t)}function Ee(e){const t=a.exec(e);return t?{date:e,time:d(parseInt(t[6],10)||0,2)+":"+d(parseInt(t[8],10)||0,2),year:parseInt(t[1],10),month:parseInt(t[2],10),day:parseInt(t[4],10)||1,hour:isNaN(parseInt(t[6],10))?0:parseInt(t[6],10),minute:isNaN(parseInt(t[8],10))?0:parseInt(t[8],10),weekday:0,doy:0,workweek:0,hasDay:!!t[4],hasTime:!0,past:!1,current:!1,future:!1,disabled:!1}:null}function Oe(e,t){let a=Ee(e);return null===a?null:(a=k(a),t&&p(a,t,a.hasTime),a)}function j(e,t=!1){const a=t?"UTC":"";return k({date:d(e[`get${a}FullYear`](),4)+"-"+d(e[`get${a}Month`]()+1,2)+"-"+d(e[`get${a}Date`](),2),time:d(e[`get${a}Hours`]()||0,2)+":"+d(e[`get${a}Minutes`]()||0,2),year:e[`get${a}FullYear`](),month:e[`get${a}Month`]()+1,day:e[`get${a}Date`](),hour:e[`get${a}Hours`](),minute:e[`get${a}Minutes`](),weekday:0,doy:0,workweek:0,hasDay:!0,hasTime:!0,past:!1,current:!1,future:!1,disabled:!1})}function Me(e){return 1e8*e.year+1e6*e.month+1e4*e.day}function l(e){return 100*e.hour+e.minute}function K(e){return Me(e)+l(e)}function P(e,t,a){const n=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute),r=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute);return!0===a&&r<n?0:r-n}function p(e,t,a=!1){let n=Me(t),r=Me(e),o=n===r;return e.hasTime&&a&&o&&(n=l(t),r=l(e),o=n===r),e.past=r<n,e.current=o,e.future=r>n,e.currentWeekday=e.weekday===t.weekday,e}function Q(e,t,a){return e.hasTime=!0,e.hour=Math.floor(t/r),e.minute=t%r,e.time=v(e),a&&p(e,a,!0),e}function X(e){return e.weekday=ne(e),e}function G(e){return e.doy=te(e),e}function J(e){return e.workweek=ae(e),e}function ee(e,t,a,n,r){const o=Me(e);if(void 0!==t){const d=Me(Ee(t));o<=d&&(e.disabled=!0)}if(!0!==e.disabled&&void 0!==a){const u=Me(Ee(a));o>=u&&(e.disabled=!0)}if(!0!==e.disabled&&Array.isArray(n)&&n.length>0)for(const i in n)if(n[i]===e.weekday){e.disabled=!0;break}if(!0!==e.disabled&&Array.isArray(r)&&r.length>0)for(const l in r)if(Array.isArray(r[l])&&2===r[l].length){const s=Ee(r[l][0]),c=Ee(r[l][1]);if(fe(e,s,c)){e.disabled=!0;break}}else{const v=Me(Oe(r[l]+" 00:00"));if(v===o){e.disabled=!0;break}}return e}function k(e){return e.hasTime=!0,e.time=v(e),e.date=c(e),e.weekday=ne(e),e.doy=te(e),e.workweek=ae(e),e}function te(e){if(0!==e.year)return(Date.UTC(e.year,e.month-1,e.day)-Date.UTC(e.year,0,0))/24/60/60/1e3}function ae(e){0===e.year&&(e=Oe(We()));const t=le(e);if(isNaN(t))return 0;const a=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=(a.setDate(a.getDate()-(a.getDay()+6)%7+3),new Date(a.getFullYear(),0,4)),r=(n.setDate(n.getDate()-(n.getDay()+6)%7+3),a.getTimezoneOffset()-n.getTimezoneOffset()),o=(a.setHours(a.getHours()-r),(a-n)/H);return 1+Math.floor(o)}function ne(e){let t=e.weekday;if(e.hasDay){const a=Math.floor,n=e.day,r=(e.month+9)%u+1,o=a(e.year/100),d=e.year%100-(e.month<=2?1:0);t=((n+a(2.6*r-.2)-2*o+d+a(d/4)+a(o/4))%7+7)%7}return t}function re(e){return 1===(e%4===0^e%100===0^e%400===0)}function s(e,t){return(re(e)?N:A)[t]}function I(e){return{...e}}function d(e,t){let a=String(e);while(a.length<t)a="0"+a;return a}function c(e){let t=d(e.year,4)+"-"+d(e.month,2);return e.hasDay&&(t+="-"+d(e.day,2)),t}function v(e){return e.hasTime?d(e.hour,2)+":"+d(e.minute,2):""}function y(e){return c(e)+" "+(e.hasTime?v(e):"00:00")}function w(e){return++e.day,e.weekday=(e.weekday+1)%i,e.day>W&&e.day>s(e.year,e.month)&&(e.day=m,++e.month,e.month>u)&&(e.month=n,++e.year),e}function g(e){return e.day--,e.weekday=(e.weekday+6)%i,e.day<m&&(e.month--,e.month<n&&(e.year--,e.month=u),e.day=s(e.year,e.month)),e}function oe(e,t=w,a=1,n=[0,1,2,3,4,5,6]){return _(e,t,a,n)}function _(e,t=w,a=1,n=[0,1,2,3,4,5,6]){n.includes(e.weekday)||0!==e.weekday||t!==w||++a;while(--a>=0)e=t(e),n.length<7&&!n.includes(e.weekday)&&++a;return e}function f(e,t,a=w,n=6){while(e.weekday!==t&&--n>=0)e=a(e);return e}function de(t){const e=[1,1,1,1,1,1,1],n=[0,0,0,0,0,0,0];for(let e=0;e<t.length;++e)n[t[e]]=1;for(let a=0;a<i;++a){let t=1;for(let e=1;e<i;++e){const r=(a+e)%i;if(n[r])break;++t}e[a]=n[a]*t}return e}function ue(e,t,a,n,r,o,d=[],u=[],i=42,l=0){const s=Me(t),c=[];let v=I(e),y=0,f=y===s;if(!(s<Me(e)))while((!f||c.length<l)&&c.length<i){if(y=Me(v),f=f||y>s&&c.length>=l,f)break;if(0===n[v.weekday]);else{const h=I(v);k(h),p(h,a),ee(h,r,o,d,u),c.push(h)}v=_(v,w)}return c}function ie(t,a,n,r,o){const d=[];for(let e=0;e<r;++e){const u=(a+e)*n,i=I(t);d.push(Q(i,u,o))}return d}function b(n,r){const o=(e,t)=>"";return"undefined"===typeof Intl||"undefined"===typeof Intl.DateTimeFormat?o:(t,e)=>{try{const a=new Intl.DateTimeFormat(n||void 0,r(t,e));return a.format(se(t))}catch(e){return console.error(`Intl.DateTimeFormat: ${e.message} -> `+y(t)),o}}}function le(e,t=!0){return t?new Date(Date.UTC(e.year,e.month-1,e.day,0,0)):new Date(e.year,e.month-1,e.day,0,0)}function se(e,t=!0){return t?new Date(Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute)):new Date(e.year,e.month-1,e.day,e.hour,e.minute)}function ce(e){return isFinite(parseInt(e,10))}function ve(e,t=!1){const a=!0===t?K:Me;return e.reduce((e,t)=>{return Math.max(a(e),a(t))===a(e)?e:t})}function ye(e,t=!1){const a=!0===t?K:Me;return e.reduce((e,t)=>{return Math.min(a(e),a(t))===a(e)?e:t})}function fe(e,t,a,n){const r=Me(e)+(!0===n?l(e):0),o=Me(t)+(!0===n?l(t):0),d=Me(a)+(!0===n?l(a):0);return r>=o&&r<=d}function he(e,t,a,n){const r=Me(e),o=Me(t),d=Me(a),u=Me(n);return r>=d&&r<=u||o>=d&&o<=u||d>=r&&o>=u}function x(e,t){const n=I(e);let r;return pe(t,(e,t)=>{if(void 0!==n[t]){n[t]+=parseInt(e,10);const a=me.indexOf(t);-1!==a&&(r=void 0===r?a:Math.min(a,r))}}),void 0!==r&&_e(n,me[r]),k(n),n}const me=["minute","hour","day","month"];function pe(t,a){Object.keys(t).forEach(e=>a(t[e],e))}function ke(e){if(e.minute>=r||e.minute<0){const t=Math.floor(e.minute/r);e.minute-=t*r,e.hour+=t,we(e)}return e}function we(e){if(e.hour>=o||e.hour<0){const t=Math.floor(e.hour/o);e.hour-=t*o,e.day+=t,ge(e)}return e}function ge(t){h(t);let a=s(t.year,t.month);if(t.day>a){++t.month,t.month>u&&h(t);let e=t.day-a;a=s(t.year,t.month);do{e>a&&(++t.month,t.month>u&&h(t),e-=a,a=s(t.year,t.month))}while(e>a);t.day=e}else if(t.day<=0){let e=-1*t.day;--t.month,t.month<=0&&h(t),a=s(t.year,t.month);do{e>a&&(e-=a,--t.month,t.month<=0&&h(t),a=s(t.year,t.month))}while(e>a);t.day=a-e}return t}function h(e){if(e.month>u){const t=Math.floor(e.month/u);e.month=e.month%u,e.year+=t}else e.month<n&&(e.month+=u,--e.year);return e}function _e(e,t){switch(t){case"minute":return ke(e);case"hour":return we(e);case"day":return ge(e);case"month":return h(e)}}function be(e,t){const a=P(e,t,!0);return Math.floor(a/R)}function De(e,t){let a=I(e),n=I(t);return a=f(a,0),n=f(n,6),Math.ceil(be(a,n)/i)}const Te={Sun:new Date("2020-01-05T00:00:00.000Z"),Mon:new Date("2020-01-06T00:00:00.000Z"),Tue:new Date("2020-01-07T00:00:00.000Z"),Wed:new Date("2020-01-08T00:00:00.000Z"),Thu:new Date("2020-01-09T00:00:00.000Z"),Fri:new Date("2020-01-10T00:00:00.000Z"),Sat:new Date("2020-01-11T00:00:00.000Z")};function qe(){const r=(e,t)=>"",o={long:{timeZone:"UTC",weekday:"long"},short:{timeZone:"UTC",weekday:"short"},narrow:{timeZone:"UTC",weekday:"narrow"}};return"undefined"===typeof Intl||"undefined"===typeof Intl.DateTimeFormat?r:e;function e(t,e,a){try{const n=new Intl.DateTimeFormat(a||void 0,o[e]||o["long"]);return n.format(Te[t])}catch(e){return console.error(`Intl.DateTimeFormat: ${e.message} -> day of week: `+t),r}}}function Se(t,a){const e=Object.keys(Te),n=qe();return e.map(e=>n(e,t,a))}function Fe(){const o=(e,t)=>"",d={long:{timeZone:"UTC",month:"long"},short:{timeZone:"UTC",month:"short"},narrow:{timeZone:"UTC",month:"narrow"}};return"undefined"===typeof Intl||"undefined"===typeof Intl.DateTimeFormat?o:e;function e(t,e,a){try{const n=new Intl.DateTimeFormat(a||void 0,d[e]||d["long"]),r=new Date;return r.setDate(1),r.setMonth(t),n.format(r)}catch(e){return console.error(`Intl.DateTimeFormat: ${e.message} -> month: `+t),o}}}function Ce(t,a){const n=Fe();return[...Array(12).keys()].map(e=>n(e,t,a))}function Be(e,t="px"){if(null!=e&&""!==e)return isNaN(e)?String(e):"auto"===e?e:""+Number(e)+t}function Ie(t,a){for(let e=0;e<t.length;e++)if(!0===a(t[e],e))return e;return-1}function He(e,t){return 0===t?e:e.slice(0,t)}const xe=e=>e.replace(/(-\w)/g,e=>e[1].toUpperCase());let Ae,Ve;function Le(e,a){const t={};for(const n in e){const r=e[n],o=xe("on-"+n);if(void 0===Ae)return void console.warn("$listeners has not been set up");if(void 0!==Ae.value[o]){const d="on"+r.event.charAt(0).toUpperCase()+r.event.slice(1),u=e=>{const t=e;(void 0===r.button||t.buttons>0&&t.button===r.button)&&(r.prevent&&t.preventDefault(),r.stop&&t.stopPropagation(),Ve(n,a(t,n)));return r.result};d in t?Array.isArray(t[d])?t[d].push(u):t[d]=[t[d],u]:t[d]=u}}return t}function Ue(e,t){return Le(Ze(e),t)}function Ze(e){return{["click"+e]:{event:"click"},["contextmenu"+e]:{event:"contextmenu",prevent:!0,result:!1},["mousedown"+e]:{event:"mousedown"},["mousemove"+e]:{event:"mousemove"},["mouseup"+e]:{event:"mouseup"},["mouseenter"+e]:{event:"mouseenter"},["mouseleave"+e]:{event:"mouseleave"},["touchstart"+e]:{event:"touchstart"},["touchmove"+e]:{event:"touchmove"},["touchend"+e]:{event:"touchend"}}}function D(e){return Object.keys(Ze(e))}function $e(e,t){return Ve=e,Ae=t,{getMouseEventHandlers:Le,getDefaultMouseEventHandlers:Ue,getMouseEventName:Ze,getRawMouseEvents:D}}var Ye={name:"ResizeObserver",mounted(e,{value:t}){if(t){const a={};a.callback=t,a.size={width:0,height:0},a.observer=new ResizeObserver(e=>{const t=e[0].contentRect;t.width===a.size.width&&t.height===a.size.height||(a.size.width=t.width,a.size.height=t.height,a.callback(a.size))}),a.observer.observe(e),e.__onResizeObserver=a}},beforeUnmount(e){if(e.__onResizeObserver){const t=e.__onResizeObserver["observer"];t.unobserve(e),delete e.__onResizeObserver}}};function ze(t,a,{scrollArea:e,pane:n}){if(!a){const s="[error: renderCalendar] no renderFunc has been supplied to useCalendar";throw console.error(s),new Error(s)}const r=Ne.reactive({width:0,height:0}),o=Ne.ref(null);function d({width:e,height:t}){r.width=e,r.height=t}const u=Ne.computed(()=>{return!0!==t.noScroll&&e.value&&n.value&&r.height?e.value.offsetWidth-n.value.offsetWidth:0});function i(){}function l(){const e={ref:o,role:"complementary",lang:t.locale,class:`q-calendar ${t.dark?"q-calendar--dark":""} `+(t.bordered?"q-calendar__bordered":"")};return Ne.withDirectives(Ne.h("div",{...e},[a()]),[[Ye,d]])}return{rootRef:o,scrollWidth:u,__initCalendar:i,__renderCalendar:l}}function je(r,{startDate:e,endDate:t,times:a}){const n=Ne.computed(()=>de(r.weekdays)),o=Ne.computed(()=>Oe(e.value)),d=Ne.computed(()=>{if("0000-00-00"===t.value)return f(o.value);return Oe(t.value)}),u=Ne.computed(()=>{const a={timeZone:"UTC",day:"numeric"};return b(r.locale,(e,t)=>a)}),i=Ne.computed(()=>{const a={timeZone:"UTC",weekday:"long"};const n={timeZone:"UTC",weekday:"short"};return b(r.locale,(e,t)=>t?n:a)}),l=Ne.computed(()=>{const t={timeZone:"UTC",dateStyle:"full"};return b(r.locale,e=>t)});function s(e,t){return e&&e.length>0&&e.includes(t.date)}function c(e,t){const a={firstDay:!1,betweenDays:!1,lastDay:!1};if(e&&2===e.length){const n=Me(t),r=Me(Ee(e[0])),o=Me(Ee(e[1]));a.firstDay=r===n,a.lastDay=o===n,a.betweenDays=r<n&&o>n}return a}function v(e,t=!1,a=[],n=[],r=!1){const o=s(a,e),{firstDay:d,lastDay:u,betweenDays:i}=c(n,e);return{"q-past-day":!0!==d&&!0!==i&&!0!==u&&!0!==o&&!0!==t&&e.past,"q-future-day":!0!==d&&!0!==i&&!0!==u&&!0!==o&&!0!==t&&e.future,"q-outside":t,"q-current-day":e.current,"q-selected":o,"q-range-first":!0===d,"q-range":!0===i,"q-range-last":!0===u,"q-range-hover":!0===r&&(!0===d||!0===u||!0===i),"q-disabled-day disabled":!0===e.disabled}}function y(e){return q(e,r.weekdays,a.today)}function f(e){return S(e,r.weekdays,a.today)}function h(e){}return{weekdaySkips:n,parsedStart:o,parsedEnd:d,dayFormatter:u,weekdayFormatter:i,ariaDateFormatter:l,arrayHasDate:s,checkDays:c,getRelativeClasses:v,startOfWeek:y,endOfWeek:f,dayStyleDefault:h}}String,We(),Array,String,String,String,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Number,String,Array,String,Boolean,String,String,Array,String,String,Array,Function,Function,Function,Function,Array,Array,Boolean,Boolean,Array;const Ke={modelValue:{type:String,default:We(),validator:e=>""===e||t(e)},modelTasks:{type:Array,default:[]},modelTitle:{type:Array,default:[]},modelFooter:{type:Array,default:[]},taskKey:{type:[String,Number],default:"id"},weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},dateType:{type:String,default:"round",validator:e=>["round","rounded","square"].includes(e)},dateHeader:{type:String,default:"stacked",validator:e=>["stacked","inline","inverted"].includes(e)},weekdayAlign:{type:String,default:"center",validator:e=>["left","center","right"].includes(e)},dateAlign:{type:String,default:"center",validator:e=>["left","center","right"].includes(e)},view:{type:String,validator:e=>["day","week","month"].includes(e)},viewCount:{type:Number,default:1,validator:e=>ce(e)&&e>0},bordered:Boolean,dark:Boolean,noAria:Boolean,noActiveDate:Boolean,shortWeekdayLabel:Boolean,noHeader:Boolean,noDefaultHeaderText:Boolean,noDefaultHeaderBtn:Boolean,cellWidth:[Number,String],minWeekdayLabel:{type:[Number,String],default:2},weekdayBreakpoints:{type:Array,default:()=>[75,35],validator:e=>2===e.length},locale:{type:String,default:"en-US"},animated:Boolean,transitionPrev:{type:String,default:"slide-right"},transitionNext:{type:String,default:"slide-left"},disabledDays:Array,disabledBefore:String,disabledAfter:String,disabledWeekdays:{type:Array,default:()=>[]},weekdayClass:Function,dayClass:Function,footerDayClass:Function,dragEnterFunc:{type:Function},dragOverFunc:{type:Function},dragLeaveFunc:{type:Function},dropFunc:{type:Function},hoverable:Boolean,focusable:Boolean,focusType:{type:Array,default:["date"],validator:e=>{let t=!0;e.forEach(e=>{!0!==["day","date","weekday","interval","resource","task"].includes(e)&&(t=!1)});return t}},taskWidth:{type:Number,default:200,validator:e=>ce(e)&&e>0}};function Pe(t,e,{weekdaySkips:a,times:n}){const r=Ne.computed(()=>{{if("day"===t.view)return Oe(t.modelValue);if("week"===t.view)return q(Oe(t.modelValue),t.weekdays,n.today);if("month"===t.view)return F(Oe(t.modelValue),t.weekdays,n.today);throw new Error(`QCalendarTask: unknown 'view' type (${t.view})`)}}),o=Ne.computed(()=>{{if("day"===t.view){if(1===t.viewCount)return r.value;let e=I(r.value);return e=x(e,{day:t.viewCount-1}),e}if("week"===t.view){if(1===t.viewCount)return S(Oe(t.modelValue),t.weekdays,n.today);{let e=I(r.value);return e=x(e,{day:(t.viewCount-1)*i}),S(e,t.weekdays,n.today)}}if("month"!==t.view)throw new Error(`QCalendarTask: unknown 'view' type (${t.view})`);if(1===t.viewCount)return C(Oe(t.modelValue),t.weekdays,n.today);{let e=I(r.value);return e=x(e,{month:t.viewCount}),C(e,t.weekdays,n.today)}}}),d=Ne.computed(()=>{return ue(r.value,o.value,n.today,a.value,t.disabledBefore,t.disabledAfter,t.disabledWeekdays,t.disabledDays,Number.MAX_SAFE_INTEGER)});return{days:d,parsedStartDate:r,parsedEndDate:o}}const Qe={now:{type:String,validator:e=>""===e||t(e),default:""}};function Xe(e){const t=Ne.reactive({now:Oe("0000-00-00 00:00"),today:Oe("0000-00-00")}),a=Ne.computed(()=>e.now?Oe(e.now):o());function n(){t.now.current=t.today.current=!0,t.now.past=t.today.past=!1,t.now.future=t.today.future=!1}function r(){const e=a.value||o();d(e,t.now),u(e,t.now),d(e,t.today)}function o(){return j(new Date)}function d(e,t){e.date!==t.date&&(t.year=e.year,t.month=e.month,t.day=e.day,t.weekday=e.weekday,t.date=e.date)}function u(e,t){e.time!==t.time&&(t.hour=e.hour,t.minute=e.minute,t.time=e.time)}return Ne.watch(()=>a,e=>r()),{times:t,parsedNow:a,setCurrent:n,updateCurrent:r,getNow:o,updateDay:d,updateTime:u}}function Ge(r,{parsedView:o,parsedValue:d,times:u}){const e=Ne.computed(()=>{const e=d.value;let t=r.maxDays;let a=e;let n=e;switch(o.value){case"month":a=F(e),n=C(e),t=s(a.year,a.month);break;case"week":case"week-agenda":case"week-scheduler":a=q(e,r.weekdays,u.today),n=S(a,r.weekdays,u.today),t=r.weekdays.length;break;case"day":case"scheduler":case"agenda":n=oe(I(n),w,t>1?t-1:t,r.weekdays),k(n);break;case"month-interval":case"month-scheduler":case"month-agenda":a=F(e),n=C(e),k(n),t=s(a.year,a.month);break;case"resource":t=1,n=oe(I(n),w,t,r.weekdays),k(n);break}return{start:a,end:n,maxDays:t}});return{renderValues:e}}const Je=["moved"];function et(u,{parsedView:i,parsedValue:l,weekdaySkips:s,direction:c,maxDays:v,times:y,emittedValue:f,emit:h}){function e(a=1){if(0===a)f.value=We();else{let e=I(l.value);const n=a>0,r=n?w:g,o=n?E:m;let t=n?a:-a;c.value=n?"next":"prev";const d=s.value.filter(e=>0!==e).length;while(--t>=0)switch(i.value){case"month":e.day=o,r(e),X(e);while(0===s.value[e.weekday])e=x(e,{day:!0===n?1:-1});break;case"week":case"week-agenda":case"week-scheduler":_(e,r,d,u.weekdays);break;case"day":case"scheduler":case"agenda":_(e,r,v.value,u.weekdays);break;case"month-interval":case"month-agenda":case"month-scheduler":e.day=o,r(e);break;case"resource":_(e,r,v.value,u.weekdays);break}X(e),k(e),G(e),p(e,y.now),f.value=e.date,h("moved",e)}}return{move:e}}const tt=/^on[A-Z]/;function at(e=Ne.getCurrentInstance()){return{emitListeners:Ne.computed(()=>{const t={};e.vnode&&e.vnode.props&&Object.keys(e.vnode.props).forEach(e=>{tt.test(e)&&(t[e]=!0)});return t})}}function Re(){const e={"aria-hidden":"true",class:"q-calendar__focus-helper"};return[Ne.h("span",e)]}function nt({focusable:e,focusType:t},a,n){const r=e&&t.includes("date");return Ne.h("button",{...a,tabindex:r?0:-1},[n,r&&Re()])}const rt=["change"];function ot(a,{days:n,lastStart:r,lastEnd:o}){function e(){if(n.value&&n.value.length>0){const e=n.value[0].date,t=n.value[n.value.length-1].date;if(null===r.value||null===o.value||e!==r.value||t!==o.value)return r.value=e,o.value=t,a("change",{start:e,end:t,days:n.value}),!0}return!1}return{checkChange:e}}function dt(){function e(t,{bubbles:a=!1,cancelable:n=!1}={}){try{return new CustomEvent(t,{bubbles:a,cancelable:n})}catch(e){const r=document.createEvent("Event");return r.initEvent(t,a,n),r}}function t(e,t){return[].concat(t).includes(e.keyCode)}return{createEvent:e,isKeyCode:t}}const ut=dt()["isKeyCode"],it={useNavigation:Boolean};function lt(a,{rootRef:n,focusRef:r,focusValue:o,datesRef:d,parsedView:u,emittedValue:i,weekdaySkips:l,direction:s,times:c}){let e=!1;function t(){!0!==e&&document&&(e=!0,document.addEventListener("keyup",m),document.addEventListener("keydown",h))}function v(){document&&(document.removeEventListener("keyup",m),document.removeEventListener("keydown",h),e=!1)}function y(e){if(void 0!==e&&document){const t=document.activeElement;if(t!==document.body&&!0===n.value.contains(t))return!0}return!1}function f(){let e=0;const t=setInterval(()=>{d.value[r.value]&&(d.value[r.value].focus(),50!==++e)&&document.activeElement!==d.value[r.value]||clearInterval(t)},250)}function h(e){y(e)&&ut(e,[33,34,35,36,37,38,39,40])&&(e.stopPropagation(),e.preventDefault())}function m(e){if(y(e)&&ut(e,[33,34,35,36,37,38,39,40]))switch(e.keyCode){case 33:_();break;case 34:b();break;case 35:T();break;case 36:D();break;case 37:w();break;case 38:p();break;case 39:g();break;case 40:k();break}}function p(e){let t=I(o.value);if("month"===u.value){if(t=x(t,{day:-7}),o.value.month!==t.month)return s.value="prev",void(i.value=t.date)}else"day"!==u.value&&"week"!==u.value&&"month-interval"!==u.value||(t=x(t,{minute:parseInt(a.intervalMinutes)}));s.value="prev",r.value=t.date}function k(e){let t=I(o.value);if("month"===u.value){if(t=x(t,{day:7}),o.value.month!==t.month)return s.value="next",void(i.value=t.date)}else"day"!==u.value&&"week"!==u.value&&"month-interval"!==u.value||(t=x(t,{minute:parseInt(a.intervalMinutes)}));s.value="next",r.value=t.date}function w(e){let t=I(o.value);s.value="prev";do{t=x(t,{day:-1})}while(0===l.value[t.weekday]);if("month"===u.value||"month-interval"===u.value){if(o.value.month!==t.month)return void(i.value=t.date)}else if("week"===u.value){if(t.weekday>o.value.weekday)return void(i.value=t.date)}else if("day"===u.value)return void(i.value=t.date);r.value=t.date}function g(e){let t=I(o.value);s.value="next";do{t=x(t,{day:1})}while(0===l.value[t.weekday]);if("month"===u.value||"month-interval"===u.value){if(o.value.month!==t.month)return void(i.value=t.date)}else if("week"===u.value){if(t.weekday<o.value.weekday)return void(i.value=t.date)}else if("day"===u.value)return void(i.value=t.date);r.value=t.date}function _(e){let t=I(o.value);if("month"===u.value||"month-interval"===u.value){t=x(t,{month:-1});const a=t.day<=15?1:-1;while(0===l.value[t.weekday])t=x(t,{day:a})}else"day"===u.value?t=x(t,{day:-1}):"week"===u.value&&(t=x(t,{day:-7}));s.value="prev",r.value=t.date}function b(e){let t=I(o.value);if("month"===u.value||"month-interval"===u.value){t=x(t,{month:1});const a=t.day<=15?1:-1;while(0===l.value[t.weekday])t=x(t,{day:a})}else"day"===u.value?t=x(t,{day:1}):"week"===u.value&&(t=x(t,{day:7}));s.value="next",r.value=t.date}function D(e){let t=I(o.value);"month"===u.value||"month-interval"===u.value?t=F(t):"week"===u.value&&(t=q(t,a.weekdays,c.today));while(0===l.value[t.weekday])t=x(t,{day:-1});r.value=t.date}function T(e){let t=I(o.value);"month"===u.value||"month-interval"===u.value?t=C(t):"week"===u.value&&(t=S(t,a.weekdays,c.today));while(0===l.value[t.weekday])t=x(t,{day:-1});r.value=t.date}return Ne.onBeforeUnmount(()=>{v()}),Ne.watch(()=>a.useNavigation,e=>{(!0===e?t:v)()}),!0===a.useNavigation&&t(),{startNavigation:t,endNavigation:v,tryFocus:f}}var st=Ne.defineComponent({name:"QCalendarTask",directives:[Ye],props:{...Qe,...it,...Ke},emits:["update:model-value","update:model-tasks","update:model-title","update:model-footer","task-expanded",...rt,...Je,...D("-date"),...D("-day"),...D("-head-day")],setup(c,{slots:v,emit:l,expose:M}){const e=Ne.ref(null),B=Ne.ref(null),o=Ne.ref("next"),d=Ne.ref(c.modelValue||We()),u=Ne.ref("0000-00-00"),t=Ne.ref(0),y=Ne.ref(c.modelValue),f=Ne.ref(null),a=Ne.ref(null),h=Ne.ref({}),i=Ne.reactive({width:0,height:0}),m=Ne.ref(!1),R=Ne.ref(null),H=Ne.ref(null),n=(Ne.watch(()=>c.view,()=>{t.value=0}),Ne.computed(()=>{if("month"===c.view)return"month-interval";return c.view})),r=Ne.getCurrentInstance();if(null===r)throw new Error("current instance is null");const s=at(r)["emitListeners"],{times:p,setCurrent:V,updateCurrent:k}=Xe(c),{weekdaySkips:w,parsedStart:L,dayFormatter:U,weekdayFormatter:Z,ariaDateFormatter:$,dayStyleDefault:g,getRelativeClasses:_}=(k(),V(),je(c,{startDate:d,endDate:u,times:p})),b=Ne.computed(()=>{return Oe(c.modelValue,p.now)||L.value||p.today}),Y=(a.value=b.value,f.value=b.value.date,Ge(c,{parsedView:n,times:p,parsedValue:b}))["renderValues"],{rootRef:z,__initCalendar:j,__renderCalendar:K}=ze(c,Ae,{scrollArea:e,pane:B}),{days:D,parsedStartDate:T,parsedEndDate:q}=Pe(c,l,{weekdaySkips:w,times:p}),S=et(c,{parsedView:n,parsedValue:b,weekdaySkips:w,direction:o,maxDays:t,times:p,emittedValue:y,emit:l})["move"],F=$e(l,s)["getDefaultMouseEventHandlers"],P=ot(l,{days:D,lastStart:R,lastEnd:H})["checkChange"],C=dt()["isKeyCode"],Q=lt(c,{rootRef:z,focusRef:f,focusValue:a,datesRef:h,days:D,parsedView:n,parsedValue:b,emittedValue:y,weekdaySkips:w,direction:o,times:p})["tryFocus"],I=Ne.ref(!0),x=Ne.computed(()=>{if(void 0!==c.cellWidth)return parseInt(c.cellWidth,10);return 150}),A=Ne.computed(()=>{return!0===c.focusable&&c.focusType.includes("day")&&!0!==isMiniMode.value}),X=Ne.computed(()=>{return!0===c.focusable&&c.focusType.includes("date")&&!0!==A.value}),N=Ne.computed(()=>{return!0===c.focusable&&c.focusType.includes("weekday")}),G=Ne.computed(()=>{return parseInt(c.dayHeight,10)}),J=Ne.computed(()=>{return parseInt(c.dayMinHeight,10)});function ee(){y.value=We()}function te(e=1){S(e)}function ae(e=1){S(-e)}function ne({width:e,height:t}){i.width=e,i.height=t}function W(e){return e.date===y.value}function re(e,t,a){const n=v.day,r=c.dayStyle||g,o=!0!==c.noActiveDate&&b.value.date===e.date,d={timestamp:e,task:t,taskIndex:a,activeDate:o},u=Be(x.value),i={width:u,minWidth:u,maxWidth:u,...r({scope:d})},l="function"===typeof c.dayClass?c.dayClass({scope:d}):{};return Ne.h("div",{tabindex:!0===A.value?0:-1,class:{"q-calendar-task__task--day":!0,...l,..._(e),"q-active-date":!0===o,"q-calendar__hoverable":!0===c.hoverable,"q-calendar__focusable":!0===A.value},style:i,onFocus:e=>{A.value},...F("-day",e=>{return{scope:d,event:e}}),onDragenter:e=>{void 0!==c.dragEnterFunc&&"function"===typeof c.dragEnterFunc&&(!0===c.dragEnterFunc(e,"day",d)?dragOverResource.value=dragValue:dragOverResource.value="")},onDragover:e=>{void 0!==c.dragOverFunc&&"function"===typeof c.dragOverFunc&&(!0===c.dragOverFunc(e,"day",d)?dragOverResource.value=dragValue:dragOverResource.value="")},onDragleave:e=>{void 0!==c.dragLeaveFunc&&"function"===typeof c.dragLeaveFunc&&(!0===c.dragLeaveFunc(e,"day",d)?dragOverResource.value=dragValue:dragOverResource.value="")},onDrop:e=>{void 0!==c.dropFunc&&"function"===typeof c.dropFunc&&(!0===c.dropFunc(e,"day",d)?dragOverResource.value=dragValue:dragOverResource.value="")}},[n&&n({scope:d}),Re()])}function oe(t,a){return D.value.map(e=>re(e,t,a))}function de(e,t){const a=v.days,n={timestamps:D.value,days:D.value,task:e,taskIndex:t,cellWidth:x.value};return Ne.h("div",{class:"q-calendar-task__task--days-row"},[oe(e,t),a&&a({scope:n})])}function ue(t,e,a=0,n=!0){const r=v.task,o={start:T.value,end:q.value,task:t,taskIndex:e,expanded:n},d=Be(c.taskWidth),u={width:d,minWidth:d,maxWidth:d},i=!0===c.focusable&&c.focusType.includes("task");return Ne.h("div",{class:{"q-calendar-task__task--item":!0,"q-calendar__sticky":!0===I.value,"q-calendar__hoverable":!0===c.hoverable,"q-calendar__focusable":!0===i},style:u},[Ne.h("div",{style:{flexDirection:"column",justifyContent:"center",alignItems:"center",width:10+10*a+"px"}},[Ne.h("div",{class:{"q-calendar__parent":void 0!==t.children,"q-calendar__parent--expanded":void 0!==t.children&&!0===t.expanded,"q-calendar__parent--collapsed":void 0!==t.children&&!0!==t.expanded},onClick:e=>{e.stopPropagation();t.expanded=!t.expanded;l("task-expanded",{expanded:t.expanded,scope:o})}})]),r&&r({scope:o}),Re()])}function ie(e,t,a=0,n=!0){const r=void 0!==e.height?Be(parseInt(e.height,10)):G.value>0?Be(G.value):"auto",o=J.value>0?Be(J.value):void 0,d={height:r},u=(void 0!==o&&(d.minHeight=o),Ne.h("div",{key:e[c.taskKey]+"-"+t,class:{"q-calendar-task__task":0===a,"q-calendar-task__task--section":0!==a},style:d},[ue(e,t,a,n),de(e,t)]));return void 0!==e.children?[u,Ne.h("div",{class:{"q-calendar__child":!0,"q-calendar__child--expanded":!0===n,"q-calendar__child--collapsed":!0!==n}},[le(e.children,a+1,!1===n?n:e.expanded)])]:[u]}function le(e=void 0,a=0,n=!0){return void 0===e&&(e=c.modelTasks),e.map((e,t)=>{return ie(e,t,a,void 0!==e.children?e.expanded:n)})}function se(){return Ne.h("div",{class:{"q-calendar-task__task--container":!0,"q-calendar__sticky":!0===I.value}},[le()])}function ce(e,t){const a=v["footer-task"],n={start:T.value,end:q.value,footer:e,index:t},r=Be(c.taskWidth),o={width:r,minWidth:r,maxWidth:r};return Ne.h("div",{class:{"q-calendar-task__footer--task":!0,"q-calendar__sticky":!0===I.value},style:o},[a&&a({scope:n})])}function ve(e,t,a){const n=v["footer-day"],r={timestamp:e,footer:t,index:a},o=Be(x.value),d={width:o,minWidth:o,maxWidth:o},u="function"===typeof c.footerDayClass?c.footerDayClass({scope:r}):{};return Ne.h("div",{class:{"q-calendar-task__footer--day":!0,...u,..._(e),"q-calendar__hoverable":!0===c.hoverable,"q-calendar__focusable":!0===A.value},style:d},[n&&n({scope:r})])}function ye(t,a){return Ne.h("div",{class:"q-calendar-task__footer--day-wrapper"},[D.value.map(e=>ve(e,t,a))])}function fe(){const a=!0===c.focusable&&c.focusType.includes("task");return c.modelFooter.map((e,t)=>{return Ne.h("div",{class:{"q-calendar-task__footer--wrapper":!0,"q-calendar__hoverable":!0===c.hoverable,"q-calendar__focusable":!0===a}},{default:()=>[ce(e,t),ye(e,t)]})})}function he(){return Ne.h("div",{class:{"q-calendar-task__footer":!0,"q-calendar__sticky":!0===I.value}},fe())}function me(){return Ne.h("div",{class:{"q-calendar-task__container":!0}},[!0!==c.noHeader&&Ce(),se(),he()])}function pe(){const e=v["head-tasks"],t={start:T.value,end:q.value},a=Be(parseInt(c.taskWidth,10)),n={width:a,minWidth:a,maxWidth:a};return Ne.h("div",{class:{"q-calendar-task__head--tasks":!0,"q-calendar__sticky":!0===I.value},style:n},[e&&e({scope:t})])}function ke(e,t){const a=v["title-task"],n=Be(parseInt(c.taskWidth,10)),r={width:n,minWidth:n,maxWidth:n},o={start:T.value,end:q.value,cellWidth:n,title:e,index:t};return Ne.h("div",{class:{"q-calendar-task__title--task":!0,"q-calendar__sticky":!0===I.value},style:r},[a&&a({scope:o})])}function E(e){const t=v["head-weekday-label"],a=!0!==c.noActiveDate&&W(e),n={activeDate:a,timestamp:e,disabled:!!c.disabledWeekdays&&c.disabledWeekdays.includes(e.weekday)},r={class:{"q-calendar-task__head--weekday":!0,["q-calendar__"+c.weekdayAlign]:!0,"q-calendar__ellipsis":!0}};return Ne.h("div",r,t&&t({scope:n})||we(e,c.shortWeekdayLabel))}function we(e,t){const a=Z.value(e,t||c.weekdayBreakpoints[0]>0&&x.value<=c.weekdayBreakpoints[0]);return Ne.h("span",{class:"q-calendar__ellipsis"},c.weekdayBreakpoints[1]>0&&x.value<=c.weekdayBreakpoints[1]?He(a,c.minWeekdayLabel):a)}function O(e){const t={class:{"q-calendar-task__head--date":!0,["q-calendar__"+c.dateAlign]:!0}};return Ne.h("div",t,ge(e))}function ge(a){const e=!0!==c.noActiveDate&&W(a),t=U.value(a,!1),n=v["head-day-label"],r=v["head-day-button"],o={dayLabel:t,timestamp:a,activeDate:e},d=a.date,u={key:d,tabindex:!0===X.value?0:-1,class:{"q-calendar-task__head--day__label":!0,"q-calendar__button":!0,"q-calendar__button--round":"round"===c.dateType,"q-calendar__button--rounded":"rounded"===c.dateType,"q-calendar__button--bordered":!0===a.current,"q-calendar__hoverable":!0===c.hoverable,"q-calendar__focusable":!0===X.value},disabled:a.disabled,onKeydown:e=>{!0!==a.disabled&&C(e,[13,32])&&(e.stopPropagation(),e.preventDefault())},onKeyup:e=>{!0!==a.disabled&&C(e,[13,32])&&(y.value=a.date,void 0!==s.value.onClickDate)&&l("click-date",{scope:o})},...F("-date",(e,t)=>{"click-date"!==t&&"contextmenu-date"!==t||(y.value=a.date,"click-date"===t&&e.preventDefault());return{scope:o,event:e}})};return!0!==c.noAria&&(u.ariaLabel=$.value(a)),r?r({scope:o}):nt(c,u,n?n({scope:o}):t)}function _e(e){return"stacked"===c.dateHeader?[!0!==c.noDefaultHeaderText&&E(e),!0!==c.noDefaultHeaderBtn&&O(e)]:"inline"===c.dateHeader?("left"===c.weekdayAlign&&"right"===c.dateAlign||"right"===c.weekdayAlign&&c.dateAlign,Ne.h("div",{class:"q-calendar__header--inline"},[!0!==c.noDefaultHeaderText&&E(e),!0!==c.noDefaultHeaderBtn&&O(e)])):"inverted"===c.dateHeader?("left"===c.weekdayAlign&&"right"===c.dateAlign||"right"===c.weekdayAlign&&c.dateAlign,Ne.h("div",{class:"q-calendar__header--inline"},[!0!==c.noDefaultHeaderBtn&&O(e),!0!==c.noDefaultHeaderText&&E(e)])):void 0}function be(e,t,a){const n=v["title-day"],r=Be(x.value),o={width:r,minWidth:r,maxWidth:r},d={timestamp:e,title:t,index:a,cellWidth:x.value},u="function"===typeof c.dayClass?c.dayClass({scope:d}):{},i=!0===c.focusable&&c.focusType.includes("day");return Ne.h("div",{class:{"q-calendar-task__title--day":!0,...u,..._(e),"q-calendar__hoverable":!0===c.hoverable,"q-calendar__focusable":!0===i},style:o},[n&&n({scope:d}),Re()])}function De(t){const e=v["head-day"],a=v["head-date"],n=!0!==c.noActiveDate&&W(t),r={timestamp:t,activeDate:n,droppable:m.value=t.date,disabled:!!c.disabledWeekdays&&c.disabledWeekdays.includes(t.weekday)},o=c.weekdayStyle||g,d="function"===typeof c.weekdayClass?c.weekdayClass({scope:r}):{},u=Be(x.value),i={width:u,minWidth:u,maxWidth:u,...o({scope:r})},l=t.date,s={key:l,ref:e=>{h.value[l]=e},tabindex:!0===N.value?0:-1,class:{"q-calendar-task__head--day":!0,...d,..._(t),"q-active-date":n,"q-calendar__hoverable":!0===c.hoverable,"q-calendar__focusable":!0===N.value},style:i,onFocus:e=>{!0===N.value&&(f.value=l)},onKeydown:e=>{!0!==t.disabled&&C(e,[13,32])&&(e.stopPropagation(),e.preventDefault())},onKeyup:e=>{!0!==t.disabled&&C(e,[13,32])&&(y.value=t.date)},...F("-head-day",e=>{return{scope:r,event:e}}),onDragenter:e=>{void 0!==c.dragEnterFunc&&"function"===typeof c.dragEnterFunc&&(!0===c.dragEnterFunc(e,"head-day",r)?m.value=t.date:m.value="")},onDragover:e=>{void 0!==c.dragOverFunc&&"function"===typeof c.dragOverFunc&&(!0===c.dragOverFunc(e,"head-day",r)?m.value=t.date:m.value="")},onDragleave:e=>{void 0!==c.dragLeaveFunc&&"function"===typeof c.dragLeaveFunc&&(!0===c.dragLeaveFunc(e,"head-day",r)?m.value=t.date:m.value="")},onDrop:e=>{void 0!==c.dropFunc&&"function"===typeof c.dropFunc&&(!0===c.dropFunc(e,"head-day",r)?m.value=t.date:m.value="")}};return Ne.h("div",s,[void 0!==e&&e({scope:r}),void 0===e&&_e(t),void 0===e&&a&&a({scope:r}),Re()])}function Te(){return D.value.map(e=>De(e))}function qe(t,a){return D.value.map(e=>be(e,t,a))}function Se(){return Ne.h("div",{class:{"q-calendar-task__head--days":!0}},[...Te()])}function Fe(e,t){return Ne.h("div",{class:{"q-calendar-task__title--days":!0}},[...qe(e,t)])}function Ce(){return Ne.h("div",{roll:"presentation",class:{"q-calendar-task__head":!0,"q-calendar__sticky":!0===I.value},style:{}},[Ne.h("div",{style:{position:"relative",display:"flex"}},[pe(),Se()]),c.modelTitle.map((e,t)=>Ne.h("div",{class:"q-calendar-task__title",style:{position:"relative",display:"flex"}},[ke(e,t),Fe(e,t)]))])}function Ie(){return Ne.h("div",{class:"q-calendar-task__body"},[xe()])}function xe(){return Ne.h("div",{ref:e,class:{"q-calendar-task__scroll-area":!0,"q-calendar__scroll":!0}},[me()])}function Ae(){const{start:e,end:t}=Y.value,a=(d.value=e.date,u.value=t.date,i.width>0),n=Ne.withDirectives(Ne.h("div",{key:d.value,class:"q-calendar-task"},[!0===a&&Ie()]),[[Ye,ne]]);if(!0!==c.animated)return n;{const r="q-calendar--"+("prev"===o.value?c.transitionPrev:c.transitionNext);return Ne.h(Ne.Transition,{name:r,appear:!0},()=>n)}}return Ne.watch([D],P,{deep:!0,immediate:!0}),Ne.watch(()=>c.modelValue,(e,t)=>{if(y.value!==e){if(!0===c.animated){const a=Me(Ee(e)),n=Me(Ee(t));o.value=a>=n?"next":"prev"}y.value=e}f.value=e}),Ne.watch(y,(e,t)=>{if(y.value!==c.modelValue){if(!0===c.animated){const a=Me(Ee(e)),n=Me(Ee(t));o.value=a>=n?"next":"prev"}l("update:model-value",e)}}),Ne.watch(f,e=>{e&&(a.value=Oe(e))}),Ne.watch(a,e=>{h.value[f.value]?h.value[f.value].focus():Q()}),Ne.onBeforeUpdate(()=>{h.value={}}),Ne.onMounted(()=>{j()}),M({prev:ae,next:te,move:S,moveToToday:ee,updateCurrent:k}),()=>K()}});const ct="4.0.0-beta.19";var vt={version:ct,QCalendarTask:st,PARSE_REGEX:a,PARSE_DATE:e,PARSE_TIME:T,DAYS_IN_MONTH:A,DAYS_IN_MONTH_LEAP:N,DAYS_IN_MONTH_MIN:W,DAYS_IN_MONTH_MAX:E,MONTH_MAX:u,MONTH_MIN:n,DAY_MIN:m,DAYS_IN_WEEK:i,MINUTES_IN_HOUR:r,HOURS_IN_DAY:o,FIRST_HOUR:O,MILLISECONDS_IN_MINUTE:M,MILLISECONDS_IN_HOUR:B,MILLISECONDS_IN_DAY:R,MILLISECONDS_IN_WEEK:H,Timestamp:V,TimeObject:L,today:We,getStartOfWeek:q,getEndOfWeek:S,getStartOfMonth:F,getEndOfMonth:C,parseTime:U,validateTimestamp:t,parsed:Ee,parseTimestamp:Oe,parseDate:j,getDayIdentifier:Me,getTimeIdentifier:l,getDayTimeIdentifier:K,diffTimestamp:P,updateRelative:p,updateMinutes:Q,updateWeekday:X,updateDayOfYear:G,updateWorkWeek:J,updateDisabled:ee,updateFormatted:k,getDayOfYear:te,getWorkWeek:ae,getWeekday:ne,isLeapYear:re,daysInMonth:s,copyTimestamp:I,padNumber:d,getDate:c,getTime:v,getDateTime:y,nextDay:w,prevDay:g,moveRelativeDays:oe,relativeDays:_,findWeekday:f,getWeekdaySkips:de,createDayList:ue,createIntervalList:ie,createNativeLocaleFormatter:b,makeDate:le,makeDateTime:se,validateNumber:ce,maxTimestamp:ve,minTimestamp:ye,isBetweenDates:fe,isOverlappingDates:he,daysBetween:be,weeksBetween:De,addToDate:x,compareTimestamps:Z,compareDate:$,compareTime:Y,compareDateTime:z,getWeekdayFormatter:qe,getWeekdayNames:Se,getMonthFormatter:Fe,getMonthNames:Ce,convertToUnit:Be,indexOf:Ie,install(e){e.component(st.name,st)}};return vt});