@event-calendar/build 2.6.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -5
- package/event-calendar.min.js +2 -2
- package/event-calendar.min.js.map +1 -1
- package/package.json +6 -6
package/event-calendar.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
EventCalendar v2.
|
|
2
|
+
EventCalendar v2.7.0
|
|
3
3
|
https://github.com/vkurko/calendar
|
|
4
4
|
*/
|
|
5
|
-
var EventCalendar=function(){"use strict";function t(){}const e=t=>t;function n(t){return t()}function o(){return Object.create(null)}function r(t){t.forEach(n)}function l(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];if(null==e){for(const t of o)t(void 0);return t}const l=e.subscribe(...o);return l.unsubscribe?()=>l.unsubscribe():l}function c(t){let e;return s(t,(t=>e=t))(),e}function a(t,e,n){t.$$.on_destroy.push(s(e,n))}function u(t,e,n,o){if(t){const r=d(t,e,n,o);return t[0](r)}}function d(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}function f(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}function h(t,e,n,o,r,l){if(r){const i=d(e,n,o,l);t.p(i,r)}}function p(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function g(e){return e&&l(e.destroy)?e.destroy:t}const m="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function v(t,e){t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function k(t){return document.createElement(t)}function x(t){return document.createTextNode(t)}function _(){return x(" ")}function C(){return x("")}function T(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function D(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function E(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function S(t,e){e=""+e,t.data!==e&&(t.data=e)}function M(t,e,n,o){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function U(t,e){return new t(e)}let L;function H(t){L=t}function B(){if(!L)throw new Error("Function called outside component initialization");return L}function N(t){B().$$.on_mount.push(t)}function A(t){B().$$.after_update.push(t)}function P(){const t=B();return function(e,n){let{cancelable:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.$$.callbacks[e];if(r){const l=function(t,e){let{bubbles:n=!1,cancelable:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:o})}(e,n,{cancelable:o});return r.slice().forEach((e=>{e.call(t,l)})),!l.defaultPrevented}return!0}}function R(t){return B().$$.context.get(t)}function F(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const z=[],I=[];let G=[];const j=[],O=Promise.resolve();let W=!1;function Y(){W||(W=!0,O.then(K))}function q(){return Y(),O}function X(t){G.push(t)}const V=new Set;let J=0;function K(){if(0!==J)return;const t=L;do{try{for(;J<z.length;){const t=z[J];J++,H(t),Q(t.$$)}}catch(t){throw z.length=0,J=0,t}for(H(null),z.length=0,J=0;I.length;)I.pop()();for(let t=0;t<G.length;t+=1){const e=G[t];V.has(e)||(V.add(e),e())}G.length=0}while(z.length);for(;j.length;)j.pop()();W=!1,V.clear(),H(t)}function Q(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(X)}}const Z=new Set;let tt;function et(){tt={r:0,c:[],p:tt}}function nt(){tt.r||r(tt.c),tt=tt.p}function ot(t,e){t&&t.i&&(Z.delete(t),t.i(e))}function rt(t,e,n,o){if(t&&t.o){if(Z.has(t))return;Z.add(t),tt.c.push((()=>{Z.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function lt(t){return void 0!==t?.length?t:Array.from(t)}function it(t,e){rt(t,1,1,(()=>{e.delete(t.key)}))}function st(t,e,n,o,l,i,s,c,a,u,d,f){let h=t.length,p=i.length,$=h;const g={};for(;$--;)g[t[$].key]=$;const m=[],v=new Map,y=new Map,w=[];for($=p;$--;){const t=f(l,i,$),r=n(t);let c=s.get(r);c?o&&w.push((()=>c.p(t,e))):(c=u(r,t),c.c()),v.set(r,m[$]=c),r in g&&y.set(r,Math.abs($-g[r]))}const b=new Set,k=new Set;function x(t){ot(t,1),t.m(c,d),s.set(t.key,t),d=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],o=e.key,r=n.key;e===n?(d=e.first,h--,p--):v.has(r)?!s.has(o)||b.has(o)?x(e):k.has(r)?h--:y.get(o)>y.get(r)?(k.add(o),x(e)):(b.add(r),h--):(a(n,s),h--)}for(;h--;){const e=t[h];v.has(e.key)||a(e,s)}for(;p;)x(m[p-1]);return r(w),m}function ct(t){t&&t.c()}function at(t,e,o){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,o),X((()=>{const e=t.$$.on_mount.map(n).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):r(e),t.$$.on_mount=[]})),s.forEach(X)}function ut(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];G.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),G=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function dt(e,n,l,i,s,c){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=L;H(e);const f=e.$$={fragment:null,ctx:[],props:c,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let h=!1;if(f.ctx=l?l(e,n.props||{},(function(t,n){const o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),h&&function(t,e){-1===t.$$.dirty[0]&&(z.push(t),Y(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(e,t)),n})):[],f.update(),h=!0,r(f.before_update),f.fragment=!!i&&i(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(w)}else f.fragment&&f.fragment.c();n.intro&&ot(e.$$.fragment),at(e,n.target,n.anchor),K()}H(d)}class ft{$$=void 0;$$set=void 0;$destroy(){ut(this,1),this.$destroy=t}$on(e,n){if(!l(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ht=[];function pt(t,e){return{subscribe:$t(t,e).subscribe}}function $t(e){let n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const r=new Set;function l(t){if(i(e,t)&&(e=t,n)){const t=!ht.length;for(const t of r)t[1](),ht.push(t,e);if(t){for(let t=0;t<ht.length;t+=2)ht[t][0](ht[t+1]);ht.length=0}}}function s(t){l(t(e))}return{set:l,update:s,subscribe:function(i){const c=[i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return r.add(c),1===r.size&&(n=o(l,s)||t),i(e),()=>{r.delete(c),0===r.size&&n&&(n(),n=null)}}}}function gt(e,n,o){const i=!Array.isArray(e),c=i?[e]:e;if(!c.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=n.length<2;return pt(o,((e,o)=>{let u=!1;const d=[];let f=0,h=t;const p=()=>{if(f)return;h();const r=n(i?d[0]:d,e,o);a?e(r):h=l(r)?r:t},$=c.map(((t,e)=>s(t,(t=>{d[e]=t,f&=~(1<<e),u&&p()}),(()=>{f|=1<<e}))));return u=!0,p(),function(){r($),h(),u=!1}}))}function mt(t){return function(e){return"Enter"===e.key||" "===e.key&&!e.preventDefault()?t.call(this,e):void 0}}function vt(t,e){let n={update(e){"string"==typeof e?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}};return n.update(e),n}function yt(t,e){const n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),{destroy(){document.removeEventListener(e,n,!0)}}}const wt=86400;function bt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0!==t?t instanceof Date?Bt(t):function(t){const e=t.match(/\d+/g);return new Date(Date.UTC(Number(e[0]),Number(e[1])-1,Number(e[2]),Number(e[3]||0),Number(e[4]||0),Number(e[5]||0)))}(t):Bt(new Date)}function kt(t){if("number"==typeof t)t={seconds:t};else if("string"==typeof t){let e=0,n=2;for(let o of t.split(":",3))e+=parseInt(o,10)*Math.pow(60,n--);t={seconds:e}}else t instanceof Date&&(t={hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds()});let e=t.weeks||t.week||0;return{years:t.years||t.year||0,months:t.months||t.month||0,days:7*e+(t.days||t.day||0),seconds:60*(t.hours||t.hour||0)*60+60*(t.minutes||t.minute||0)+(t.seconds||t.second||0),inWeeks:!!e}}function xt(t){return new Date(t.getTime())}function _t(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.setUTCFullYear(t.getUTCFullYear()+n*e.years);let o=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(o),o%=12,o<0&&(o+=12);t.getUTCMonth()!==o;)Dt(t);return t.setUTCDate(t.getUTCDate()+n*e.days),t.setUTCSeconds(t.getUTCSeconds()+n*e.seconds),t}function Ct(t,e){return _t(t,e,-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))}function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setUTCDate(t.getUTCDate()+e),t}function Dt(t){return Tt(t,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function Et(t){return t.setUTCHours(0,0,0,0),t}function St(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:19;return t.toISOString().substring(0,e)}function Ut(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return n.every((e=>t.getTime()===e.getTime()))}function Lt(t,e){let n=e-t.getUTCDay();return t.setUTCDate(t.getUTCDate()+(n<=0?n:n-7)),t}function Ht(t){return"string"==typeof t&&t.length<=10}function Bt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Nt(t,e,n){n.update((n=>n.set(e,t)))}function At(t){r(t),t.clear()}function Pt(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}function Rt(){return Object.assign(...arguments)}function Ft(t){return Object.keys(t)}function zt(t){return Math.floor(t)}function It(){return Math.min(...arguments)}function Gt(){return Math.max(...arguments)}function jt(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=document.createElement(t);r.className=e,"string"==typeof n?r.innerText=n:n.domNodes?r.replaceChildren(...n.domNodes):n.html&&(r.innerHTML=n.html);for(let t of o)r.setAttribute(...t);return r}function Ot(t){return t.getBoundingClientRect()}function Wt(t,e){for(;e--;)t=t.parentElement;return t}function Yt(t){return Ot(t).height}let qt=Symbol("ec");function Xt(t,e){t[qt]=e}function Vt(t){return!!t?.[qt]}function Jt(t){return t[qt]}function Kt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let o of n.elementsFromPoint(t,e)){if(Vt(o))return o;if(o.shadowRoot){let n=Kt(t,e,o.shadowRoot);if(n)return n}}return null}function Qt(t){return(t=Rt({},t)).currentStart=St(t.currentStart),t.currentEnd=St(t.currentEnd),t.activeStart=St(t.activeStart),t.activeEnd=St(t.activeEnd),t}function Zt(t){return t.startsWith("list")}let te=1;function ee(t){return t.map((t=>({id:"id"in t?String(t.id):`{generated-${te++}}`,resourceIds:Array.isArray(t.resourceIds)?t.resourceIds.map(String):"resourceId"in t?[String(t.resourceId)]:[],allDay:t.allDay??(Ht(t.start)&&Ht(t.end)),start:bt(t.start),end:bt(t.end),title:t.title||"",titleHTML:t.titleHTML||"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display||"auto",extendedProps:t.extendedProps||{},backgroundColor:t.backgroundColor||t.color,textColor:t.textColor})))}function ne(t){return t.map((t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}})))}function oe(t,e,n){return{start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t}}function re(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function le(t,e,n,o,r,i){let s=r.formatRange(t.start,e&&"pointer"!==t.event.display?(c=xt(t.start),a=t.end,c.setUTCHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),0),c):t.start);var c,a;let u;if(n)u=l(n)?n({event:ce(t.event),timeText:s,view:Qt(i)}):n;else{let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ie(s,t,o)];break;default:e=[...t.event.allDay?[]:[ie(s,t,o)],jt("h4",o.eventTitle,t.event.title)]}u={domNodes:e}}return[s,u]}function ie(t,e,n){return jt("time",n.eventTime,t,[["datetime",Mt(e.start)]])}function se(t,e,n){return t?(l(t)&&(t=t({event:ce(e),view:Qt(n)})),Array.isArray(t)?t:[t]):[]}function ce(t){return ue(t,St)}function ae(t){return ue(t,xt)}function ue(t,e){return(t=Rt({},t)).start=e(t.start),t.end=e(t.end),t}function de(t,e){let n={};if(t.length){let o;re(t);for(let r of t){let t=[],l=Et(xt(r.start));for(;r.end>l;){if(!e.includes(l.getUTCDay())&&(t.push(xt(l)),t.length>1)){let t=l.getTime();n[t]?n[t].chunks.push(r):n[t]={sorted:!1,chunks:[r]}}Tt(l)}t.length?(r.date=t[0],r.days=t.length,r.dates=t,r.start<t[0]&&(r.start=t[0]),Et(xt(r.end))>t[t.length-1]&&(r.end=t[t.length-1])):(r.date=Et(xt(r.start)),r.days=1,r.dates=[r.date]),o&&Ut(o.date,r.date)&&(r.prev=o),o=r}}return n}function fe(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let o=1,r=t.date.getTime();if(e[r]?.sorted||e[r]?.chunks.every((t=>"top"in t))){e[r].sorted||(e[r].chunks.sort(((t,e)=>t.top-e.top)),e[r].sorted=!0);for(let n of e[r].chunks)if(t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;o+=e,t.top+=e,t.bottom+=e}}return o}function he(t,e){t.length=e.length;for(let e of t)e?.reposition?.()}function pe(t,e,n,o,r){return(t.start<n&&t.end>e||!r&&Ut(t.start,t.end,e))&&(void 0===o||t.resourceIds.includes(o.id))}function $e(t){return function(t){return"preview"===t}(t)||me(t)||function(t){return"pointer"===t}(t)}function ge(t){return"background"===t}function me(t){return"ghost"===t}function ve(t){return ke(t,"day")}function ye(t){return ke(t,"week")}function we(t){return ke(t,"month")}function be(t){return ke(t,"year")}function ke(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function xe(t){return e=>({...e,view:t})}function _e(t,e){return gt([t,e],(t=>{let[e,n]=t,o=l(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>o.format(St(t))}}))}function Ce(t,e){return gt([t,e],(t=>{let e,[n,o]=t;if(l(o))e=o;else{let t=new Intl.DateTimeFormat(n,o);e=(e,n)=>{if(e<=n)return t.formatRange(e,n);{let o=t.formatRangeToParts(n,e),r="",l=["startRange","endRange"],i=[!1,!1];for(let t of o){let e=l.indexOf(t.source);e>=0?i[e]||(r+=Te(l[1-e],o),i[e]=!0):r+=t.value}return r}}}return{formatRange:(t,n)=>e(St(t),St(n))}}))}function Te(t,e){let n="";for(let o of e)o.source==t&&(n+=o.value);return n}class De{constructor(n,o){let r=function(t){let e={allDayContent:void 0,allDaySlot:!0,buttonText:{today:"today"},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"long"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventTextColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventSources:[],eventTimeFormat:{hour:"numeric",minute:"2-digit"},firstDay:0,flexibleSlotTimeLimits:!1,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,nowIndicator:!1,selectable:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotEventOverlap:!0,slotHeight:24,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",theme:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",compact:"ec-compact",content:"ec-content",day:"ec-day",dayHead:"ec-day-head",days:"ec-days",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",extra:"ec-extra",handle:"ec-handle",header:"ec-header",hiddenScroll:"ec-hidden-scroll",highlight:"ec-highlight",icon:"ec-icon",line:"ec-line",lines:"ec-lines",nowIndicator:"ec-now-indicator",otherMonth:"ec-other-month",sidebar:"ec-sidebar",sidebarTitle:"ec-sidebar-title",today:"ec-today",time:"ec-time",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"],withScroll:"ec-with-scroll"},titleFormat:{year:"numeric",month:"short",day:"numeric"},view:void 0,viewDidMount:void 0,views:{}};for(let n of t)n.createOptions?.(e);return e}(n=n||[]),i=function(t){let e={date:t=>Et(bt(t)),duration:kt,events:ee,eventSources:ne,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map(bt),scrollTime:kt,slotDuration:kt,slotMaxTime:kt,slotMinTime:kt};for(let n of t)n.createParsers?.(e);return e}(n);r=Ee(r,i),o=Ee(o,i);for(let[t,e]of Object.entries(r))this[t]=$t(e);this._queue=$t(new Map),this._queue2=$t(new Map),this._tasks=new Map,this._auxiliary=$t([]),this._dayGrid=gt(this.view,(t=>t?.startsWith("dayGrid"))),this._currentRange=function(t){return gt([t.date,t.duration,t.firstDay,t._dayGrid],(t=>{let e,[n,o,r,l]=t,i=xt(n);return l?i.setUTCDate(1):o.inWeeks&&Lt(i,r),e=_t(xt(i),o),{start:i,end:e}}))}(this),this._activeRange=function(t){return gt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,o,r]=t,l=xt(e.start),i=xt(e.end);if(r)Lt(l,n),function(t,e){let n=e-t.getUTCDay();t.setUTCDate(t.getUTCDate()+(n>=0?n:n+7))}(i,n);else if(o.days||o.seconds>wt){_t(Dt(i),o);let t=Dt(xt(i));t<l&&(l=t)}return{start:l,end:i}}))}(this),this._fetchedRange=$t({start:void 0,end:void 0}),this._events=function(t){let e,n=$t([]),o=0,r={};return gt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,i)=>Nt((()=>{let[t,r,s,c,a,u]=n;if(r.length){if(!c.start||c.start>s.start||c.end<s.end||!a){e&&e.abort(),e=new AbortController,l(u)&&!o&&u(!0);let t=()=>{0==--o&&l(u)&&u(!1)},n=[],a=e=>t(),d=e=>{n=n.concat(ee(e)),i(n),t()},f=Mt(s.start),h=Mt(s.end);for(let t of r){if(l(t.events)){let e=t.events({start:St(s.start),end:St(s.end),startStr:f,endStr:h},d,a);void 0!==e&&Promise.resolve(e).then(d,a)}else{let n=l(t.extraParams)?t.extraParams():Rt({},t.extraParams);n.start=f,n.end=h,n=new URLSearchParams(n);let o,r=t.url,i={};["GET","HEAD"].includes(t.method)?r+=(r.includes("?")?"&":"?")+n:(i["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",o=String(n)),fetch(r,{method:t.method,headers:i,body:o,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(d).catch(a)}++o}c.start=s.start,c.end=s.end}}else i(t)}),r,t._queue)),[]).subscribe(n.set),n}(this),this._now=pt(bt(),(t=>{let e=setInterval((()=>{t(bt())}),1e3);return()=>clearInterval(e)})),this._today=function(t){return gt(t._now,(t=>Et(xt(t))))}(this),this._intlEventTime=Ce(this.locale,this.eventTimeFormat),this._intlSlotLabel=_e(this.locale,this.slotLabelFormat),this._intlDayHeader=_e(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=_e(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ce(this.locale,this.titleFormat),this._bodyEl=$t(void 0),this._scrollable=$t(!1),this._viewTitle=function(t){return gt([t.date,t._activeRange,t._intlTitle,t._dayGrid],(t=>{let[e,n,o,r]=t;return r?o.formatRange(e,e):o.formatRange(n.start,Dt(xt(n.end)))}))}(this),this._viewDates=function(t){return gt([t._activeRange,t.hiddenDays],(e=>{let[n,o]=e,r=[],l=Et(xt(n.start)),i=Et(xt(n.end));for(;l<i;)o.includes(l.getUTCDay())||r.push(xt(l)),Tt(l);return!r.length&&o.length&&o.length<7&&(t.date.update((t=>{for(;o.includes(t.getUTCDay());)Tt(t);return t})),r=c(t._viewDates)),r}))}(this),this._view=function(t){return gt([t.view,t._viewTitle,t._currentRange,t._activeRange],(t=>function(t,e,n,o){return{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:o.start,activeEnd:o.end,calendar:void 0}}(...t)))}(this),this._viewComponent=$t(void 0),this._resBgColor=$t(t),this._resTxtColor=$t(t),this._interaction=$t({}),this._iEvents=$t([null,null]),this._iClasses=$t(e),this._iClass=$t(void 0),this._set=(t,e)=>{Ue(t,this)&&(i[t]&&(e=i[t](e)),this[t].set(e))},this._get=t=>Ue(t,this)?c(this[t]):void 0;for(let t of n)t.createStores?.(this);o.view&&this.view.set(o.view);let s=new Set([...Ft(r.views),...Ft(o.views??{})]);for(let t of s){let e=Se(r,r.views[t]??{}),n=Se(e,o,o.views?.[t]??{}),i=n.component;Me(n,this);for(let t of Ft(n)){let{set:o,_set:r=o,...i}=this[t];this[t]={set:["buttonText","theme"].includes(t)?i=>{if(l(i)){let l=i(e[t]);n[t]=l,o(o===r?l:i)}else n[t]=i,o(i)}:e=>{n[t]=e,o(e)},_set:r,...i}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(i),l(n.viewDidMount)&&q().then((()=>n.viewDidMount(c(this._view))));for(let t of Ft(n))this[t]._set(n[t])}}))}}}function Ee(t,e){let n={...t};for(let t of Ft(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let o of Ft(t.views))n.views[o]=Ee(t.views[o],e)}return n}function Se(){let t={};for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(let e of n){let n={};for(let o of["buttonText","theme"])l(e[o])&&(n[o]=e[o](t[o]));t={...t,...e,...n}}return t}function Me(t,e){Ft(t).filter((t=>!Ue(t,e)||"view"==t)).forEach((e=>delete t[e]))}function Ue(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function Le(t,e,n){const o=t.slice();return o[23]=e[n],o}function He(t){let e,n,o,r,l,i=t[5][t[23]]+"";function s(){return t[20](t[23])}return{c(){e=k("button"),n=x(i),E(e,"class",o=t[3].button+(t[6]===t[23]?" "+t[3].active:"")+" ec-"+t[23])},m(t,o){y(t,e,o),v(e,n),r||(l=T(e,"click",s),r=!0)},p(r,l){t=r,33&l&&i!==(i=t[5][t[23]]+"")&&S(n,i),73&l&&o!==(o=t[3].button+(t[6]===t[23]?" "+t[3].active:"")+" ec-"+t[23])&&E(e,"class",o)},d(t){t&&w(e),r=!1,l()}}}function Be(t){let e,n,o,r,l,i=t[5][t[23]]+"";return{c(){e=k("button"),n=x(i),E(e,"class",o=t[3].button+" ec-"+t[23]),e.disabled=t[1]},m(o,i){y(o,e,i),v(e,n),r||(l=T(e,"click",t[19]),r=!0)},p(t,r){33&r&&i!==(i=t[5][t[23]]+"")&&S(n,i),9&r&&o!==(o=t[3].button+" ec-"+t[23])&&E(e,"class",o),2&r&&(e.disabled=t[1])},d(t){t&&w(e),r=!1,l()}}}function Ne(t){let e,n,o,r,l,i,s,c;return{c(){e=k("button"),n=k("i"),E(n,"class",o=t[3].icon+" ec-"+t[23]),E(e,"class",r=t[3].button+" ec-"+t[23]),E(e,"aria-label",l=t[5].next),E(e,"title",i=t[5].next)},m(o,r){y(o,e,r),v(e,n),s||(c=T(e,"click",t[17]),s=!0)},p(t,s){9&s&&o!==(o=t[3].icon+" ec-"+t[23])&&E(n,"class",o),9&s&&r!==(r=t[3].button+" ec-"+t[23])&&E(e,"class",r),32&s&&l!==(l=t[5].next)&&E(e,"aria-label",l),32&s&&i!==(i=t[5].next)&&E(e,"title",i)},d(t){t&&w(e),s=!1,c()}}}function Ae(t){let e,n,o,r,l,i,s,c;return{c(){e=k("button"),n=k("i"),E(n,"class",o=t[3].icon+" ec-"+t[23]),E(e,"class",r=t[3].button+" ec-"+t[23]),E(e,"aria-label",l=t[5].prev),E(e,"title",i=t[5].prev)},m(o,r){y(o,e,r),v(e,n),s||(c=T(e,"click",t[16]),s=!0)},p(t,s){9&s&&o!==(o=t[3].icon+" ec-"+t[23])&&E(n,"class",o),9&s&&r!==(r=t[3].button+" ec-"+t[23])&&E(e,"class",r),32&s&&l!==(l=t[5].prev)&&E(e,"aria-label",l),32&s&&i!==(i=t[5].prev)&&E(e,"title",i)},d(t){t&&w(e),s=!1,c()}}}function Pe(t){let e,n,o,r,i;return{c(){e=k("h2"),E(e,"class",n=t[3].title)},m(n,l){y(n,e,l),r||(i=g(o=vt.call(null,e,t[4])),r=!0)},p(t,r){8&r&&n!==(n=t[3].title)&&E(e,"class",n),o&&l(o.update)&&16&r&&o.update.call(null,t[4])},d(t){t&&w(e),r=!1,i()}}}function Re(t){let e;function n(t,e){return"title"==t[23]?Pe:"prev"==t[23]?Ae:"next"==t[23]?Ne:"today"==t[23]?Be:""!=t[23]?He:void 0}let o=n(t),r=o&&o(t);return{c(){r&&r.c(),e=C()},m(t,n){r&&r.m(t,n),y(t,e,n)},p(t,l){o===(o=n(t))&&r?r.p(t,l):(r&&r.d(1),r=o&&o(t),r&&(r.c(),r.m(e.parentNode,e)))},d(t){t&&w(e),r&&r.d(t)}}}function Fe(e){let n,o=lt(e[0]),r=[];for(let t=0;t<o.length;t+=1)r[t]=Re(Le(e,o,t));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();n=C()},m(t,e){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(t,e);y(t,n,e)},p(t,e){let[l]=e;if(229503&l){let e;for(o=lt(t[0]),e=0;e<o.length;e+=1){const i=Le(t,o,e);r[e]?r[e].p(i,l):(r[e]=Re(i),r[e].c(),r[e].m(n.parentNode,n))}for(;e<r.length;e+=1)r[e].d(1);r.length=o.length}},i:t,o:t,d(t){t&&w(n),b(r,t)}}}function ze(t,e,n){let o,r,l,i,s,c,u,d,{buttons:f}=e,{_currentRange:h,_viewTitle:p,buttonText:g,date:m,duration:v,hiddenDays:y,theme:w,view:b}=R("state");a(t,h,(t=>n(18,i=t))),a(t,p,(t=>n(4,c=t))),a(t,g,(t=>n(5,u=t))),a(t,m,(t=>n(2,r=t))),a(t,v,(t=>n(21,o=t))),a(t,y,(t=>n(22,l=t))),a(t,w,(t=>n(3,s=t))),a(t,b,(t=>n(6,d=t)));let k,x=Et(bt());return t.$$set=t=>{"buttons"in t&&n(0,f=t.buttons)},t.$$.update=()=>{262144&t.$$.dirty&&n(1,k=x>=i.start&&x<i.end||null)},[f,k,r,s,c,u,d,h,p,g,m,v,y,w,b,x,function(){let t=Ct(r,o);if(l.length&&l.length<7)for(;l.includes(t.getUTCDay());)Dt(t);$(m,r=t,r)},function(){$(m,r=_t(r,o),r)},i,()=>$(m,r=xt(x),r),t=>$(b,d=t,d)]}class Ie extends ft{constructor(t){super(),dt(this,t,ze,Fe,i,{buttons:0})}}function Ge(t,e,n){const o=t.slice();return o[5]=e[n],o}function je(t,e,n){const o=t.slice();return o[8]=e[n],o}function Oe(t){let e,n;return e=new Ie({props:{buttons:t[8]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.buttons=t[8]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function We(t){let e,n,o,r;return n=new Ie({props:{buttons:t[8]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[1].buttonGroup)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};1&l&&(i.buttons=t[8]),n.$set(i),(!r||2&l&&o!==(o=t[1].buttonGroup))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Ye(t){let e,n,o,r;const l=[We,Oe],i=[];function s(t,e){return t[8].length>1?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function qe(t){let e,n,o,r=lt(t[0][t[5]]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Ye(je(t,r,e));const i=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){e=k("div");for(let t=0;t<l.length;t+=1)l[t].c();n=_()},m(t,r){y(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);v(e,n),o=!0},p(t,o){if(3&o){let s;for(r=lt(t[0][t[5]]),s=0;s<r.length;s+=1){const i=je(t,r,s);l[s]?(l[s].p(i,o),ot(l[s],1)):(l[s]=Ye(i),l[s].c(),ot(l[s],1),l[s].m(e,n))}for(et(),s=r.length;s<l.length;s+=1)i(s);nt()}},i(t){if(!o){for(let t=0;t<r.length;t+=1)ot(l[t]);o=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);o=!1},d(t){t&&w(e),b(l,t)}}}function Xe(t){let e,n,o,r=lt(Object.keys(t[0])),l=[];for(let e=0;e<r.length;e+=1)l[e]=qe(Ge(t,r,e));const i=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){e=k("nav");for(let t=0;t<l.length;t+=1)l[t].c();E(e,"class",n=t[1].toolbar)},m(t,n){y(t,e,n);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);o=!0},p(t,s){let[c]=s;if(3&c){let n;for(r=lt(Object.keys(t[0])),n=0;n<r.length;n+=1){const o=Ge(t,r,n);l[n]?(l[n].p(o,c),ot(l[n],1)):(l[n]=qe(o),l[n].c(),ot(l[n],1),l[n].m(e,null))}for(et(),n=r.length;n<l.length;n+=1)i(n);nt()}(!o||2&c&&n!==(n=t[1].toolbar))&&E(e,"class",n)},i(t){if(!o){for(let t=0;t<r.length;t+=1)ot(l[t]);o=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);o=!1},d(t){t&&w(e),b(l,t)}}}function Ve(t,e,n){let o,r,{headerToolbar:l,theme:i}=R("state");a(t,l,(t=>n(4,o=t))),a(t,i,(t=>n(1,r=t)));let s={start:[],center:[],end:[]};return t.$$.update=()=>{if(17&t.$$.dirty)for(let t of Object.keys(s))n(0,s[t]=o[t].split(" ").map((t=>t.split(","))),s)},[s,r,l,i,o]}class Je extends ft{constructor(t){super(),dt(this,t,Ve,Xe,i,{})}}function Ke(t,e,n){const o=t.slice();return o[11]=e[n],o}function Qe(t){let e,n,o;var r=t[11];return r&&(e=U(r,{})),{c(){e&&ct(e.$$.fragment),n=C()},m(t,r){e&&at(e,t,r),y(t,n,r),o=!0},p(t,o){if(1&o&&r!==(r=t[11])){if(e){et();const t=e;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(e=U(r,{}),ct(e.$$.fragment),ot(e.$$.fragment,1),at(e,n.parentNode,n)):e=null}},i(t){o||(e&&ot(e.$$.fragment,t),o=!0)},o(t){e&&rt(e.$$.fragment,t),o=!1},d(t){t&&w(n),e&&ut(e,t)}}}function Ze(t){let e,n,o=lt(t[0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Qe(Ke(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){let[i]=n;if(1&i){let n;for(o=lt(t[0]),n=0;n<o.length;n+=1){const l=Ke(t,o,n);r[n]?(r[n].p(l,i),ot(r[n],1)):(r[n]=Qe(l),r[n].c(),ot(r[n],1),r[n].m(e.parentNode,e))}for(et(),n=o.length;n<r.length;n+=1)l(n);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function tn(t,e,n){let o,r,i,s,{datesSet:c,_auxiliary:u,_activeRange:d,_queue:f,_view:h}=R("state");a(t,c,(t=>n(7,r=t))),a(t,u,(t=>n(0,s=t))),a(t,d,(t=>n(5,i=t))),a(t,h,(t=>n(6,o=t)));let p={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){l(r)&&Nt((()=>r({start:St(t.start),end:St(t.end),startStr:Mt(t.start),endStr:Mt(t.end),view:Qt(o)})),p,f)}(i)},[s,c,u,d,h,i]}let en=class extends ft{constructor(t){super(),dt(this,t,tn,Ze,i,{})}};function nn(t){let e,n,o,r,l,i,s,c,a,u,d;n=new Je({});var f=t[5];return f&&(r=U(f,{})),c=new en({}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),r&&ct(r.$$.fragment),s=_(),ct(c.$$.fragment),E(e,"class",l=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),E(e,"role",i=Zt(t[4])?"list":"table"),M(e,"height",t[3])},m(l,i){y(l,e,i),at(n,e,null),v(e,o),r&&at(r,e,null),y(l,s,i),at(c,l,i),a=!0,u||(d=T(window,"resize",t[17]),u=!0)},p(t,n){if(32&n[0]&&f!==(f=t[5])){if(r){et();const t=r;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}f?(r=U(f,{}),ct(r.$$.fragment),ot(r.$$.fragment,1),at(r,e,null)):r=null}(!a||7&n[0]&&l!==(l=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")))&&E(e,"class",l),(!a||16&n[0]&&i!==(i=Zt(t[4])?"list":"table"))&&E(e,"role",i),8&n[0]&&M(e,"height",t[3])},i(t){a||(ot(n.$$.fragment,t),r&&ot(r.$$.fragment,t),ot(c.$$.fragment,t),a=!0)},o(t){rt(n.$$.fragment,t),r&&rt(r.$$.fragment,t),rt(c.$$.fragment,t),a=!1},d(t){t&&(w(e),w(s)),ut(n),r&&ut(r),ut(c,t),u=!1,d()}}}function on(t,e,n){let o,r,l,i,s,u,d,f,h,p,g,{plugins:m=[]}=e,{options:v={}}=e,y=B(),w=new De(m,v);var b,k;b="state",k=w,B().$$.context.set(b,k);let{_viewComponent:x,_bodyEl:_,_interaction:C,_iClass:T,_events:D,_queue:E,_queue2:S,_tasks:M,_scrollable:U,height:L,theme:H,view:N}=w;a(t,x,(t=>n(5,g=t))),a(t,_,(t=>n(32,o=t))),a(t,C,(t=>n(35,s=t))),a(t,T,(t=>n(2,f=t))),a(t,D,(t=>n(36,u=t))),a(t,E,(t=>n(34,i=t))),a(t,S,(t=>n(33,l=t))),a(t,U,(t=>n(0,r=t))),a(t,L,(t=>n(3,h=t))),a(t,H,(t=>n(1,d=t))),a(t,N,(t=>n(4,p=t)));let P={...v};function R(t,e){return w._set(t,e),this}var F;function z(){var t;o&&$(U,r=(t=o).scrollHeight>t.clientHeight,r)}return F=()=>{At(i)},B().$$.before_update.push(F),A((()=>{At(l),Pt(z,null,M)})),t.$$set=t=>{"plugins"in t&&n(18,m=t.plugins),"options"in t&&n(19,v=t.options)},t.$$.update=()=>{if(524288&t.$$.dirty[0])for(let[t,e]of function(t,e){let n=[];for(let o of Ft(t))t[o]!==e[o]&&n.push([o,t[o]]);return Rt(e,t),n}(v,P))R(t,e)},[r,d,f,h,p,g,x,_,C,T,D,E,S,U,L,H,N,z,m,v,R,function(t){let e=w._get(t);return e instanceof Date?St(e):e},function(){return w._fetchedRange.set({start:void 0,end:void 0}),this},function(){return u.map(ce)},function(t){for(let e of u)if(e.id==t)return ce(e);return null},function(t){return u.push(ee([t])[0]),D.set(u),this},function(t){for(let e of u)if(e.id==t.id){Rt(e,ee([t])[0]),D.set(u);break}return this},function(t){let e=u.findIndex((e=>e.id==t));return e>=0&&(u.splice(e,1),D.set(u)),this},function(){return Qt(c(w._view))},function(){return s.action&&s.action.unselect(),this},function(t,e){let n=Kt(t,e);return n?Jt(n)(e):null},function(){ut(y,!0)}]}class rn extends ft{constructor(t){super(),dt(this,t,on,nn,i,{plugins:18,options:19,setOption:20,getOption:21,refetchEvents:22,getEvents:23,getEventById:24,addEvent:25,updateEvent:26,removeEventById:27,getView:28,unselect:29,dateFromPoint:30,destroy:31},null,[-1,-1])}get setOption(){return this.$$.ctx[20]}get getOption(){return this.$$.ctx[21]}get refetchEvents(){return this.$$.ctx[22]}get getEvents(){return this.$$.ctx[23]}get getEventById(){return this.$$.ctx[24]}get addEvent(){return this.$$.ctx[25]}get updateEvent(){return this.$$.ctx[26]}get removeEventById(){return this.$$.ctx[27]}get getView(){return this.$$.ctx[28]}get unselect(){return this.$$.ctx[29]}get dateFromPoint(){return this.$$.ctx[30]}get destroy(){return this.$$.ctx[31]}}function ln(t,e,n){const o=t.slice();return o[8]=e[n],o}function sn(t){let e,n,o,r,i,s,c,a;return{c(){e=k("div"),n=k("span"),i=_(),E(n,"aria-label",o=t[2].format(t[8])),E(e,"class",s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),E(e,"role","columnheader")},m(o,l){y(o,e,l),v(e,n),v(e,i),c||(a=g(r=vt.call(null,n,t[3].format(t[8]))),c=!0)},p(i,c){t=i,6&c&&o!==(o=t[2].format(t[8]))&&E(n,"aria-label",o),r&&l(r.update)&&10&c&&r.update.call(null,t[3].format(t[8])),3&c&&s!==(s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&E(e,"class",s)},d(t){t&&w(e),c=!1,a()}}}function cn(e){let n,o,r,l,i,s,c,a=lt(e[1]),u=[];for(let t=0;t<a.length;t+=1)u[t]=sn(ln(e,a,t));return{c(){n=k("div"),o=k("div");for(let t=0;t<u.length;t+=1)u[t].c();l=_(),i=k("div"),E(o,"class",r=e[0].days),E(o,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",c=e[0].header)},m(t,e){y(t,n,e),v(n,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);v(n,l),v(n,i)},p(t,e){let[l]=e;if(15&l){let e;for(a=lt(t[1]),e=0;e<a.length;e+=1){const n=ln(t,a,e);u[e]?u[e].p(n,l):(u[e]=sn(n),u[e].c(),u[e].m(o,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=a.length}1&l&&r!==(r=t[0].days)&&E(o,"class",r),1&l&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&l&&c!==(c=t[0].header)&&E(n,"class",c)},i:t,o:t,d(t){t&&w(n),b(u,t)}}}function an(t,e,n){let o,r,l,i,{theme:s,_intlDayHeader:c,_intlDayHeaderAL:u,_days:d}=R("state");return a(t,s,(t=>n(0,o=t))),a(t,c,(t=>n(3,i=t))),a(t,u,(t=>n(2,l=t))),a(t,d,(t=>n(1,r=t))),[o,r,l,i,s,c,u,d]}class un extends ft{constructor(t){super(),dt(this,t,an,cn,i,{})}}function dn(t){let e,n,o,r,l;const i=t[7].default,s=u(i,t,t[6],null);return{c(){e=k("div"),n=k("div"),s&&s.c(),E(n,"class",o=t[0].content),E(e,"class",r=t[0].body+(!0===t[1]?" "+t[0].uniform:""))},m(o,r){y(o,e,r),v(e,n),s&&s.m(n,null),t[8](e),l=!0},p(t,c){let[a]=c;s&&s.p&&(!l||64&a)&&h(s,i,t,t[6],l?f(i,t[6],a,null):p(t[6]),null),(!l||1&a&&o!==(o=t[0].content))&&E(n,"class",o),(!l||3&a&&r!==(r=t[0].body+(!0===t[1]?" "+t[0].uniform:"")))&&E(e,"class",r)},i(t){l||(ot(s,t),l=!0)},o(t){rt(s,t),l=!1},d(n){n&&w(e),s&&s.d(n),t[8](null)}}}function fn(t,e,n){let o,r,l,{$$slots:i={},$$scope:s}=e,{dayMaxEvents:c,_bodyEl:u,theme:d}=R("state");return a(t,c,(t=>n(1,r=t))),a(t,u,(t=>n(2,l=t))),a(t,d,(t=>n(0,o=t))),t.$$set=t=>{"$$scope"in t&&n(6,s=t.$$scope)},[o,r,l,c,u,d,s,i,function(t){I[t?"unshift":"push"]((()=>{l=t,u.set(l)}))}]}let hn=class extends ft{constructor(t){super(),dt(this,t,fn,dn,i,{})}};function pn(t){let e,n,o,i,s,c,a,u,d,f,h;var p=t[8].resizer;function $(t,e){return{props:{event:t[0]}}}return p&&(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[33](t[8],!0))&&t[33](t[8],!0).apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),c&&ct(c.$$.fragment),E(n,"class",o=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",a=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(o,r){y(o,e,r),v(e,n),v(e,s),c&&at(c,e,null),t[52](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){l(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),T(e,"keydown",(function(){l(t[7]&&mt(t[7]))&&(t[7]&&mt(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){l(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){l(t[32](t[10],t[1]))&&t[32](t[10],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){l(!$e(t[1])&&t[33](t[8]))&&(!$e(t[1])&&t[33](t[8])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&o!==(o=t[2].eventBody))&&E(n,"class",o),i&&l(i.update)&&64&s[0]&&i.update.call(null,t[6]),256&s[0]&&p!==(p=t[8].resizer)){if(c){et();const t=c;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[33](t[8],!0))&&t[33](t[8],!0).apply(this,arguments)})),ct(c.$$.fragment),ot(c.$$.fragment,1),at(c,e,null)):c=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),c.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&a!==(a=t[7]?"button":void 0))&&E(e,"role",a),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(c&&ot(c.$$.fragment,t),d=!0)},o(t){c&&rt(c.$$.fragment,t),d=!1},d(n){n&&w(e),c&&ut(c),t[52](null),f=!1,r(h)}}}function $n(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,S,M,U,{chunk:L}=e,{longChunks:H={}}=e,{inPopup:B=!1}=e,{dayMaxEvents:P,displayEventEnd:F,eventAllUpdated:z,eventBackgroundColor:G,eventTextColor:j,eventClick:O,eventColor:W,eventContent:Y,eventClassNames:q,eventDidMount:X,eventMouseEnter:V,eventMouseLeave:J,theme:K,_view:Q,_intlEventTime:Z,_interaction:tt,_iClasses:et,_resBgColor:nt,_resTxtColor:ot,_hiddenEvents:rt,_popupDate:lt,_tasks:it}=R("state");a(t,P,(t=>n(55,i=t))),a(t,F,(t=>n(44,g=t))),a(t,z,(t=>n(57,d=t))),a(t,G,(t=>n(50,k=t))),a(t,j,(t=>n(47,y=t))),a(t,O,(t=>n(40,o=t))),a(t,W,(t=>n(49,b=t))),a(t,Y,(t=>n(43,$=t))),a(t,q,(t=>n(45,m=t))),a(t,X,(t=>n(58,f=t))),a(t,V,(t=>n(9,_=t))),a(t,J,(t=>n(10,C=t))),a(t,K,(t=>n(2,p=t))),a(t,Q,(t=>n(41,u=t))),a(t,Z,(t=>n(42,h=t))),a(t,tt,(t=>n(8,c=t))),a(t,et,(t=>n(46,v=t))),a(t,nt,(t=>n(51,x=t))),a(t,ot,(t=>n(48,w=t))),a(t,rt,(t=>n(54,r=t))),a(t,lt,(t=>n(56,s=t)));let st,ct,at=1,ut=!1;function dt(t,e){return!$e(e)&&l(t)?e=>t({event:ce(D),el:T,jsEvent:e,view:Qt(u)}):void 0}return N((()=>{l(f)&&f({event:ce(D),timeText:U,el:T,view:Qt(u)})})),A((()=>{l(d)&&!$e(st)&&Pt((()=>d({view:Qt(u)})),"eau",it)})),t.$$set=t=>{"chunk"in t&&n(34,L=t.chunk),"longChunks"in t&&n(35,H=t.longChunks),"inPopup"in t&&n(36,B=t.inPopup)},t.$$.update=()=>{if(8&t.$$.dirty[1]&&n(0,D=L.event),37&t.$$.dirty[0]|2082184&t.$$.dirty[1]){n(1,st=D.display);let t=D.backgroundColor||x(D)||k||b,e=D.textColor||w(D)||y;n(5,S=`width:calc(${100*L.days}% + ${7*(L.days-1)}px);margin-top:${at}px;`),t&&n(5,S+=`background-color:${t};`),e&&n(5,S+=`color:${e};`),ut&&n(5,S+="visibility:hidden;"),n(4,E=[p.event,...v([],D),...se(m,D,u)].join(" "))}4&t.$$.dirty[0]|15368&t.$$.dirty[1]&&n(6,[U,M]=le(L,g,$,p,h,u),M),2&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(7,ct=dt(o,st))},[D,st,p,T,E,S,M,ct,c,_,C,P,F,z,G,j,O,W,Y,q,X,V,J,K,Q,Z,tt,et,nt,ot,rt,lt,dt,function(t,e){return t.action?t=>c.action.drag(D,t,e,B?s:void 0):void 0},L,H,B,function(){T&&(n(38,at=fe(L,H,Yt(T))),!0===i?function(){let t=Wt(T,2),e=Yt(t)-Yt(t.firstElementChild)-function(t){let e=0;for(let n=0;n<L.days&&(e=Gt(e,Yt(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(39,ut=L.bottom>e);let o=!1;for(let t of L.dates){let e=r[t.getTime()];if(e){let t=e.size;ut?e.add(L.event):e.delete(L.event),t!==e.size&&(o=!0)}}o&&rt.set(r)}():n(39,ut=!1))},at,ut,o,u,h,$,g,m,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}let gn=class extends ft{constructor(t){super(),dt(this,t,$n,pn,i,{chunk:34,longChunks:35,inPopup:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}};function mn(t,e,n){const o=t.slice();return o[20]=e[n],o}function vn(t,e){let n,o,r;return o=new gn({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};1&n&&(r.chunk=e[20]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function yn(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,m,b,C,S,M=[],U=new Map,L=lt(t[0]);const H=t=>t[20].event;for(let e=0;e<L.length;e+=1){let n=mn(t,L,e),o=H(n);U.set(o,M[e]=vn(o,n))}return{c(){e=k("div"),n=k("div"),o=k("time"),c=_(),a=k("a"),u=x("×"),h=_(),p=k("div");for(let t=0;t<M.length;t+=1)M[t].c();E(o,"datetime",i=Mt(t[3],10)),E(a,"role","button"),E(a,"tabindex","0"),E(a,"aria-label",d=t[6].close),E(n,"class",f=t[4].dayHead),E(p,"class",$=t[4].events),E(e,"class",m=t[4].popup),E(e,"style",t[2])},m(r,l){y(r,e,l),v(e,n),v(n,o),v(n,c),v(n,a),v(a,u),v(e,h),v(e,p);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(p,null);t[16](e),b=!0,C||(S=[g(s=vt.call(null,o,t[5].format(t[3]))),T(a,"click",D(t[13])),T(a,"keydown",mt(t[13])),g(yt.call(null,e,"pointerdown")),T(e,"pointerdown",D(t[15])),T(e,"pointerdownoutside",t[14])],C=!0)},p(t,r){let[c]=r;(!b||8&c&&i!==(i=Mt(t[3],10)))&&E(o,"datetime",i),s&&l(s.update)&&40&c&&s.update.call(null,t[5].format(t[3])),(!b||64&c&&d!==(d=t[6].close))&&E(a,"aria-label",d),(!b||16&c&&f!==(f=t[4].dayHead))&&E(n,"class",f),1&c&&(L=lt(t[0]),et(),M=st(M,c,H,1,t,L,U,p,it,vn,null,mn),nt()),(!b||16&c&&$!==($=t[4].events))&&E(p,"class",$),(!b||16&c&&m!==(m=t[4].popup))&&E(e,"class",m),(!b||4&c)&&E(e,"style",t[2])},i(t){if(!b){for(let t=0;t<L.length;t+=1)ot(M[t]);b=!0}},o(t){for(let t=0;t<M.length;t+=1)rt(M[t]);b=!1},d(n){n&&w(e);for(let t=0;t<M.length;t+=1)M[t].d();t[16](null),C=!1,r(S)}}}function wn(t,e,n){let o,r,l,i,s,c,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:p,_popupDate:g,_popupChunks:m}=R("state");a(t,d,(t=>n(6,c=t))),a(t,f,(t=>n(4,i=t))),a(t,h,(t=>n(17,o=t))),a(t,p,(t=>n(5,s=t))),a(t,g,(t=>n(3,r=t))),a(t,m,(t=>n(0,l=t)));let v="";function y(){u&&(n(2,v=""),q().then((()=>{l.length?function(){let t,e,o=Wt(u,1),r=Wt(o,3),l=Ot(u),i=Ot(o),s=Ot(r);if(n(2,v=""),l.width>=s.width){t=s.left-i.left;let e=i.right-s.right;n(2,v+=`right:${e}px;`)}else t=(i.width-l.width)/2,i.left+t<s.left?t=s.left-i.left:i.left+t+l.width>s.right&&(t=s.right-i.left-l.width);if(n(2,v+=`left:${t}px;`),l.height>=s.height){e=s.top-i.top;let t=i.bottom-s.bottom;n(2,v+=`bottom:${t}px;`)}else e=(i.height-l.height)/2,i.top+e<s.top?e=s.top-i.top:i.top+e+l.height>s.bottom&&(e=s.bottom-i.top-l.height);n(2,v+=`top:${e}px;`)}():w()})))}function w(t){$(g,r=null,r)}return t.$$.update=()=>{1&t.$$.dirty&&l&&y()},[l,u,v,r,i,s,c,d,f,h,p,g,m,w,function(t){w(),o.action?.noClick()},function(e){F.call(this,t,e)},function(t){I[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class bn extends ft{constructor(t){super(),dt(this,t,wn,yn,i,{})}}function kn(t,e,n){const o=t.slice();return o[42]=e[n],o[43]=e,o[44]=n,o}function xn(t){let e,n,o,r;return n=new gn({props:{chunk:t[2][1]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[12].events)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};4&l[0]&&(i.chunk=t[2][1]),n.$set(i),(!r||4096&l[0]&&o!==(o=t[12].events))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function _n(t){let e,n,o,r;return n=new gn({props:{chunk:t[2][0]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[12].events+" "+t[12].preview)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};4&l[0]&&(i.chunk=t[2][0]),n.$set(i),(!r||4096&l[0]&&o!==(o=t[12].events+" "+t[12].preview))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Cn(t,e){let n,o,r,l=e[44];const i=()=>e[36](o,l),s=()=>e[36](null,l);let c={chunk:e[42],longChunks:e[1]};return o=new gn({props:c}),i(),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){l!==(e=t)[44]&&(s(),l=e[44],i());const r={};16&n[0]&&(r.chunk=e[42]),2&n[0]&&(r.longChunks=e[1]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(o,t)}}}function Tn(t){let e,n;return e=new bn({}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Dn(t){let e,n,o,i;return{c(){e=k("a"),E(e,"role","button"),E(e,"tabindex","0"),E(e,"aria-haspopup","true")},m(r,l){y(r,e,l),o||(i=[T(e,"click",D(t[26])),T(e,"keydown",mt(t[26])),T(e,"pointerdown",D(t[35])),g(n=vt.call(null,e,t[10]))],o=!0)},p(t,e){n&&l(n.update)&&1024&e[0]&&n.update.call(null,t[10])},d(t){t&&w(e),o=!1,r(i)}}}function En(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,m,b,x,C,D,S=t[2][1]&&Ut(t[2][1].date,t[0]),M=t[2][0]&&Ut(t[2][0].date,t[0]),U=[],L=new Map,H=S&&xn(t),B=M&&_n(t),N=lt(t[4]);const A=t=>t[42].event;for(let e=0;e<N.length;e+=1){let n=kn(t,N,e),o=A(n);L.set(o,U[e]=Cn(o,n))}let P=t[6]&&Tn(),R=t[5].size&&Dn(t);return{c(){e=k("div"),n=k("time"),c=_(),H&&H.c(),a=_(),B&&B.c(),u=_(),d=k("div");for(let t=0;t<U.length;t+=1)U[t].c();h=_(),P&&P.c(),p=_(),$=k("div"),R&&R.c(),E(n,"class",o=t[12].dayHead),E(n,"datetime",i=Mt(t[0],10)),E(d,"class",f=t[12].events),E($,"class",m=t[12].dayFoot),E(e,"class",b=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[12].today:"")+(t[8]?" "+t[12].otherMonth:"")+(t[9]?" "+t[12].highlight:"")),E(e,"role","cell")},m(o,r){y(o,e,r),v(e,n),v(e,c),H&&H.m(e,null),v(e,a),B&&B.m(e,null),v(e,u),v(e,d);for(let t=0;t<U.length;t+=1)U[t]&&U[t].m(d,null);v(e,h),P&&P.m(e,null),v(e,p),v(e,$),R&&R.m($,null),t[37](e),x=!0,C||(D=[g(s=vt.call(null,n,t[14].format(t[0]))),T(e,"pointerenter",(function(){l(t[25](t[13]))&&t[25](t[13]).apply(this,arguments)})),T(e,"pointerleave",(function(){l(t[13].pointer?.leave)&&t[13].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){l(t[13].action?.select)&&t[13].action?.select.apply(this,arguments)}))],C=!0)},p(r,c){t=r,(!x||4096&c[0]&&o!==(o=t[12].dayHead))&&E(n,"class",o),(!x||1&c[0]&&i!==(i=Mt(t[0],10)))&&E(n,"datetime",i),s&&l(s.update)&&16385&c[0]&&s.update.call(null,t[14].format(t[0])),5&c[0]&&(S=t[2][1]&&Ut(t[2][1].date,t[0])),S?H?(H.p(t,c),5&c[0]&&ot(H,1)):(H=xn(t),H.c(),ot(H,1),H.m(e,a)):H&&(et(),rt(H,1,1,(()=>{H=null})),nt()),5&c[0]&&(M=t[2][0]&&Ut(t[2][0].date,t[0])),M?B?(B.p(t,c),5&c[0]&&ot(B,1)):(B=_n(t),B.c(),ot(B,1),B.m(e,u)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),2066&c[0]&&(N=lt(t[4]),et(),U=st(U,c,A,1,t,N,L,d,it,Cn,null,kn),nt()),(!x||4096&c[0]&&f!==(f=t[12].events))&&E(d,"class",f),t[6]?P?64&c[0]&&ot(P,1):(P=Tn(),P.c(),ot(P,1),P.m(e,p)):P&&(et(),rt(P,1,1,(()=>{P=null})),nt()),t[5].size?R?R.p(t,c):(R=Dn(t),R.c(),R.m($,null)):R&&(R.d(1),R=null),(!x||4096&c[0]&&m!==(m=t[12].dayFoot))&&E($,"class",m),(!x||4993&c[0]&&b!==(b=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[12].today:"")+(t[8]?" "+t[12].otherMonth:"")+(t[9]?" "+t[12].highlight:"")))&&E(e,"class",b)},i(t){if(!x){ot(H),ot(B);for(let t=0;t<N.length;t+=1)ot(U[t]);ot(P),x=!0}},o(t){rt(H),rt(B);for(let t=0;t<U.length;t+=1)rt(U[t]);rt(P),x=!1},d(n){n&&w(e),H&&H.d(),B&&B.d();for(let t=0;t<U.length;t+=1)U[t].d();P&&P.d(),R&&R.d(),t[37](null),C=!1,r(D)}}}function Sn(t,e,n){let o,r,i,s,c,u,d,f,h,p,g,m,v,y,w,{date:b}=e,{chunks:k}=e,{longChunks:x}=e,{iChunks:_=[]}=e,{date:C,dayMaxEvents:T,highlightedDates:D,moreLinkContent:E,theme:S,_hiddenEvents:M,_intlDayCell:U,_popupDate:L,_popupChunks:H,_today:B,_interaction:N,_queue:A}=R("state");a(t,C,(t=>n(33,u=t))),a(t,D,(t=>n(32,c=t))),a(t,E,(t=>n(30,i=t))),a(t,S,(t=>n(12,f=t))),a(t,M,(t=>n(31,s=t))),a(t,U,(t=>n(14,p=t))),a(t,L,(t=>n(29,r=t))),a(t,H,(t=>n(38,o=t))),a(t,B,(t=>n(34,d=t))),a(t,N,(t=>n(13,h=t)));let P,z=new Set,G="",j=[];function O(){let t=Tt(xt(b)),e=m.concat(x[b.getTime()]?.chunks||[]);$(H,o=e.map((e=>Rt({},e,oe(e.event,b,t),{days:1,dates:[b]}))).sort(((t,e)=>t.top-e.top)),o)}return t.$$set=t=>{"date"in t&&n(0,b=t.date),"chunks"in t&&n(27,k=t.chunks),"longChunks"in t&&n(1,x=t.longChunks),"iChunks"in t&&n(2,_=t.iChunks)},t.$$.update=()=>{if(134217777&t.$$.dirty[0]){n(4,m=[]),z.clear(),n(5,z),n(27,k),n(0,b),n(4,m);for(let t of k)Ut(t.date,b)&&m.push(t)}if(33&t.$$.dirty[0]&&$(M,s[b.getTime()]=z,s),1&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,v=Ut(b,d)),1&t.$$.dirty[0]|6&t.$$.dirty[1]&&(n(8,y=b.getUTCMonth()!==u.getUTCMonth()),n(9,w=c.some((t=>Ut(t,b))))),1073741856&t.$$.dirty[0]|1&t.$$.dirty[1]&&s&&z.size){let t="+"+z.size+" more";n(10,G=i?l(i)?i({num:z.size,text:t}):i:t)}536870913&t.$$.dirty[0]&&n(6,P=r&&Ut(b,r)),82&t.$$.dirty[0]&&P&&x&&m&&q().then(O),9&t.$$.dirty[0]&&g&&Xt(g,(()=>({allDay:!0,date:b,resource:void 0,dayEl:g})))},[b,x,_,g,m,z,P,v,y,w,G,j,f,h,p,C,D,E,S,M,U,L,H,B,N,function(t){return t.pointer?e=>t.pointer.enterDayGrid(b,e):void 0},function(){$(L,r=b,r)},k,function(){he(j,m)},r,i,s,c,u,d,function(e){F.call(this,t,e)},function(t,e){I[t?"unshift":"push"]((()=>{j[e]=t,n(11,j)}))},function(t){I[t?"unshift":"push"]((()=>{g=t,n(3,g)}))}]}let Mn=class extends ft{constructor(t){super(),dt(this,t,Sn,En,i,{date:0,chunks:27,longChunks:1,iChunks:2,reposition:28},null,[-1,-1])}get reposition(){return this.$$.ctx[28]}};function Un(t,e,n){const o=t.slice();return o[21]=e[n],o[22]=e,o[23]=n,o}function Ln(t){let e,n,o=t[23];const r=()=>t[18](e,o),l=()=>t[18](null,o);let i={date:t[21],chunks:t[1],longChunks:t[2],iChunks:t[3]};return e=new Mn({props:i}),r(),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){o!==t[23]&&(l(),o=t[23],r());const i={};1&n&&(i.date=t[21]),2&n&&(i.chunks=t[1]),4&n&&(i.longChunks=t[2]),8&n&&(i.iChunks=t[3]),e.$set(i)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){l(),ut(e,t)}}}function Hn(t){let e,n,o,r,l,i=lt(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=Ln(Un(t,i,e));const c=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(e,"class",n=t[5].days),E(e,"role","row")},m(n,i){y(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);o=!0,r||(l=T(window,"resize",t[11]),r=!0)},p(t,r){let[l]=r;if(31&l){let n;for(i=lt(t[0]),n=0;n<i.length;n+=1){const o=Un(t,i,n);s[n]?(s[n].p(o,l),ot(s[n],1)):(s[n]=Ln(o),s[n].c(),ot(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)c(n);nt()}(!o||32&l&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!o){for(let t=0;t<i.length;t+=1)ot(s[t]);o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);o=!1},d(t){t&&w(e),b(s,t),r=!1,l()}}}function Bn(t,e,n){let o,r,l,i,s,{dates:c}=e,{_events:u,_iEvents:d,_queue2:f,_hiddenEvents:h,hiddenDays:p,theme:$}=R("state");a(t,u,(t=>n(17,i=t))),a(t,d,(t=>n(16,l=t))),a(t,h,(t=>n(14,o=t))),a(t,p,(t=>n(15,r=t))),a(t,$,(t=>n(5,s=t)));let g,m,v,y,w=[],b=[],k={};function x(){Nt((()=>he(b,c)),k,f)}return t.$$set=t=>{"dates"in t&&n(0,c=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(12,v=c[0]),n(13,y=Tt(xt(c[c.length-1])))),176130&t.$$.dirty){n(1,g=[]);for(let t of i)if(!ge(t.display)&&pe(t,v,y)){let e=oe(t,v,y);g.push(e)}n(2,m=de(g,r)),x()}110592&t.$$.dirty&&n(3,w=l.map((t=>{let e;return t&&pe(t,v,y)?(e=oe(t,v,y),de([e],r)):e=null,e}))),16384&t.$$.dirty&&o&&x()},[c,g,m,w,b,s,u,d,h,p,$,x,v,y,o,r,l,i,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(4,b)}))}]}let Nn=class extends ft{constructor(t){super(),dt(this,t,Bn,Hn,i,{dates:0})}};function An(t,e,n){const o=t.slice();return o[10]=e[n],o}function Pn(t){let e,n;return e=new Nn({props:{dates:t[10]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.dates=t[10]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Rn(t){let e,n,o=lt(t[0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Pn(An(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(1&n){let i;for(o=lt(t[0]),i=0;i<o.length;i+=1){const l=An(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Pn(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Fn(t){let e,n,o,r;return e=new un({}),o=new hn({props:{$$slots:{default:[Rn]},$$scope:{ctx:t}}}),{c(){ct(e.$$.fragment),n=_(),ct(o.$$.fragment)},m(t,l){at(e,t,l),y(t,n,l),at(o,t,l),r=!0},p(t,e){let[n]=e;const r={};8193&n&&(r.$$scope={dirty:n,ctx:t}),o.$set(r)},i(t){r||(ot(e.$$.fragment,t),ot(o.$$.fragment,t),r=!0)},o(t){rt(e.$$.fragment,t),rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(e,t),ut(o,t)}}}function zn(t,e,n){let o,r,l,i,s,c,{_viewDates:u,_hiddenEvents:d,dayMaxEvents:f,hiddenDays:h}=R("state");return a(t,u,(t=>n(6,o=t))),a(t,d,(t=>n(9,l=t))),a(t,f,(t=>n(7,r=t))),a(t,h,(t=>n(8,i=t))),t.$$.update=()=>{if(481&t.$$.dirty){n(0,s=[]),n(5,c=7-i.length),$(d,l={},l);for(let t=0;t<o.length/c;++t){let e=[];for(let n=0;n<c;++n)e.push(o[t*c+n]);s.push(e)}}},[s,u,d,f,h,c,o,r,i]}let In=class extends ft{constructor(t){super(),dt(this,t,zn,Fn,i,{})}};var Gn={createOptions(t){t.dayMaxEvents=!1,t.dayCellFormat={day:"numeric"},t.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},t.moreLinkContent=void 0,t.buttonText.dayGridMonth="month",t.buttonText.close="Close",t.theme.uniform="ec-uniform",t.theme.dayFoot="ec-day-foot",t.theme.popup="ec-popup",t.view="dayGridMonth",t.views.dayGridMonth={buttonText:we,component:In,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:xe("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){t._days=function(t){return gt([t.date,t.firstDay,t.hiddenDays],(t=>{let[e,n,o]=t,r=[],l=xt(e),i=7;for(;l.getUTCDay()!==n&&i;)Dt(l),--i;for(let t=0;t<7;++t)o.includes(l.getUTCDay())||r.push(xt(l)),Tt(l);return r}))}(t),t._intlDayCell=_e(t.locale,t.dayCellFormat),t._intlDayPopover=_e(t.locale,t.dayPopoverFormat),t._hiddenEvents=$t({}),t._popupDate=$t(null),t._popupChunks=$t([])}};function jn(t){let e,n,o,r,l;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=k("div"),n=k("div"),s&&s.c(),E(n,"class",o=t[0].content),E(e,"class",r=t[0].body)},m(o,r){y(o,e,r),v(e,n),s&&s.m(n,null),t[6](e),l=!0},p(t,c){let[a]=c;s&&s.p&&(!l||16&a)&&h(s,i,t,t[4],l?f(i,t[4],a,null):p(t[4]),null),(!l||1&a&&o!==(o=t[0].content))&&E(n,"class",o),(!l||1&a&&r!==(r=t[0].body))&&E(e,"class",r)},i(t){l||(ot(s,t),l=!0)},o(t){rt(s,t),l=!1},d(n){n&&w(e),s&&s.d(n),t[6](null)}}}function On(t,e,n){let o,r,{$$slots:l={},$$scope:i}=e,{_bodyEl:s,theme:c}=R("state");return a(t,s,(t=>n(1,r=t))),a(t,c,(t=>n(0,o=t))),t.$$set=t=>{"$$scope"in t&&n(4,i=t.$$scope)},[o,r,s,c,i,l,function(t){I[t?"unshift":"push"]((()=>{r=t,s.set(r)}))}]}let Wn=class extends ft{constructor(t){super(),dt(this,t,On,jn,i,{})}};function Yn(e){let n,o,i,s,c,a,u,d,f,h,p;return{c(){n=k("article"),o=k("div"),s=_(),c=k("div"),E(o,"class",i=e[0].eventTag),E(o,"style",e[3]),E(c,"class",a=e[0].eventBody),E(n,"class",e[2]),E(n,"role",d=e[5]?"button":void 0),E(n,"tabindex",f=e[5]?0:void 0)},m(t,r){y(t,n,r),v(n,o),v(n,s),v(n,c),e[40](n),h||(p=[g(u=vt.call(null,c,e[4])),T(n,"click",(function(){l(e[5])&&e[5].apply(this,arguments)})),T(n,"keydown",(function(){l(e[5]&&mt(e[5]))&&(e[5]&&mt(e[5])).apply(this,arguments)})),T(n,"mouseenter",(function(){l(e[26](e[6]))&&e[26](e[6]).apply(this,arguments)})),T(n,"mouseleave",(function(){l(e[26](e[7]))&&e[26](e[7]).apply(this,arguments)})),T(n,"pointerdown",(function(){l(e[8].action?.noAction)&&e[8].action?.noAction.apply(this,arguments)}))],h=!0)},p(t,r){e=t,1&r[0]&&i!==(i=e[0].eventTag)&&E(o,"class",i),8&r[0]&&E(o,"style",e[3]),1&r[0]&&a!==(a=e[0].eventBody)&&E(c,"class",a),u&&l(u.update)&&16&r[0]&&u.update.call(null,e[4]),4&r[0]&&E(n,"class",e[2]),32&r[0]&&d!==(d=e[5]?"button":void 0)&&E(n,"role",d),32&r[0]&&f!==(f=e[5]?0:void 0)&&E(n,"tabindex",f)},i:t,o:t,d(t){t&&w(n),e[40](null),h=!1,r(p)}}}function qn(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{displayEventEnd:M,eventAllUpdated:U,eventBackgroundColor:L,eventTextColor:H,eventColor:B,eventContent:P,eventClassNames:F,eventClick:z,eventDidMount:G,eventMouseEnter:j,eventMouseLeave:O,theme:W,_view:Y,_intlEventTime:q,_resBgColor:X,_resTxtColor:V,_interaction:J,_tasks:K}=R("state");function Q(t){return l(t)?e=>t({event:ce(x),el:k,jsEvent:e,view:Qt(r)}):void 0}return a(t,M,(t=>n(33,f=t))),a(t,U,(t=>n(42,i=t))),a(t,L,(t=>n(38,m=t))),a(t,H,(t=>n(35,p=t))),a(t,B,(t=>n(37,g=t))),a(t,P,(t=>n(32,d=t))),a(t,F,(t=>n(34,h=t))),a(t,z,(t=>n(29,o=t))),a(t,G,(t=>n(43,s=t))),a(t,j,(t=>n(6,y=t))),a(t,O,(t=>n(7,w=t))),a(t,W,(t=>n(0,u=t))),a(t,Y,(t=>n(30,r=t))),a(t,q,(t=>n(31,c=t))),a(t,X,(t=>n(39,v=t))),a(t,V,(t=>n(36,$=t))),a(t,J,(t=>n(8,b=t))),N((()=>{l(s)&&s({event:ce(x),timeText:D,el:k,view:Qt(r)})})),A((()=>{l(i)&&Pt((()=>i({view:Qt(r)})),"eau",K)})),t.$$set=t=>{"chunk"in t&&n(27,S=t.chunk)},t.$$.update=()=>{if(134217728&t.$$.dirty[0]&&n(28,x=S.event),1342177289&t.$$.dirty[0]|504&t.$$.dirty[1]){n(3,C="");let t=x.backgroundColor||v(x)||m||g;t&&n(3,C=`background-color:${t};`);let e=x.textColor||$(x)||p;e&&n(3,C+=`color:${e};`),n(2,_=[u.event,...se(h,x,r)].join(" "))}1207959553&t.$$.dirty[0]|7&t.$$.dirty[1]&&n(4,[D,T]=le(S,f,d,u,c,r),T),536870912&t.$$.dirty[0]&&n(5,E=Q(o))},[u,k,_,C,T,E,y,w,b,M,U,L,H,B,P,F,z,G,j,O,W,Y,q,X,V,J,Q,S,x,o,r,c,d,f,h,p,$,g,m,v,function(t){I[t?"unshift":"push"]((()=>{k=t,n(1,k)}))}]}let Xn=class extends ft{constructor(t){super(),dt(this,t,qn,Yn,i,{chunk:27},null,[-1,-1])}};function Vn(t,e,n){const o=t.slice();return o[21]=e[n],o}function Jn(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,m,b=[],x=new Map,C=lt(t[2]);const D=t=>t[21].event;for(let e=0;e<C.length;e+=1){let n=Vn(t,C,e),o=D(n);x.set(o,b[e]=Kn(o,n))}return{c(){e=k("div"),n=k("h4"),o=k("time"),s=_(),c=k("time"),f=_();for(let t=0;t<b.length;t+=1)b[t].c();E(o,"datetime",t[5]),E(c,"class",a=t[6].daySide),E(c,"datetime",t[5]),E(n,"class",d=t[6].dayHead),E(e,"class",h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")),E(e,"role","listitem")},m(r,a){y(r,e,a),v(e,n),v(n,o),v(n,s),v(n,c),v(e,f);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(e,null);t[20](e),p=!0,$||(m=[g(i=vt.call(null,o,t[8].format(t[0]))),g(u=vt.call(null,c,t[9].format(t[0]))),T(e,"pointerdown",(function(){l(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],$=!0)},p(r,s){t=r,(!p||32&s)&&E(o,"datetime",t[5]),i&&l(i.update)&&257&s&&i.update.call(null,t[8].format(t[0])),(!p||64&s&&a!==(a=t[6].daySide))&&E(c,"class",a),(!p||32&s)&&E(c,"datetime",t[5]),u&&l(u.update)&&513&s&&u.update.call(null,t[9].format(t[0])),(!p||64&s&&d!==(d=t[6].dayHead))&&E(n,"class",d),4&s&&(C=lt(t[2]),et(),b=st(b,s,D,1,t,C,x,e,it,Kn,null,Vn),nt()),(!p||89&s&&h!==(h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")))&&E(e,"class",h)},i(t){if(!p){for(let t=0;t<C.length;t+=1)ot(b[t]);p=!0}},o(t){for(let t=0;t<b.length;t+=1)rt(b[t]);p=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();t[20](null),$=!1,r(m)}}}function Kn(t,e){let n,o,r;return o=new Xn({props:{chunk:e[21]}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};4&n&&(r.chunk=e[21]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function Qn(t){let e,n,o=t[2].length&&Jn(t);return{c(){o&&o.c(),e=C()},m(t,r){o&&o.m(t,r),y(t,e,r),n=!0},p(t,n){let[r]=n;t[2].length?o?(o.p(t,r),4&r&&ot(o,1)):(o=Jn(t),o.c(),ot(o,1),o.m(e.parentNode,e)):o&&(et(),rt(o,1,1,(()=>{o=null})),nt())},i(t){n||(ot(o),n=!0)},o(t){rt(o),n=!1},d(t){t&&w(e),o&&o.d(t)}}}function Zn(t,e,n){let o,r,l,i,s,c,u,d,f,h,p,$,{date:g}=e,{_events:m,_interaction:v,_intlListDay:y,_intlListDaySide:w,_today:b,highlightedDates:k,theme:x}=R("state");return a(t,m,(t=>n(19,l=t))),a(t,v,(t=>n(7,s=t))),a(t,y,(t=>n(8,c=t))),a(t,w,(t=>n(9,u=t))),a(t,b,(t=>n(18,r=t))),a(t,k,(t=>n(17,o=t))),a(t,x,(t=>n(6,i=t))),t.$$set=t=>{"date"in t&&n(0,g=t.date)},t.$$.update=()=>{if(524293&t.$$.dirty){n(2,f=[]);let t=g,e=Tt(xt(g));for(let n of l)if(!ge(n.display)&&pe(n,t,e)){let o=oe(n,t,e);f.push(o)}re(f)}262145&t.$$.dirty&&n(3,h=Ut(g,r)),131073&t.$$.dirty&&n(4,p=o.some((t=>Ut(t,g)))),1&t.$$.dirty&&n(5,$=Mt(g,10)),3&t.$$.dirty&&d&&Xt(d,(()=>({allDay:!0,date:g,resource:void 0,dayEl:d})))},[g,d,f,h,p,$,i,s,c,u,m,v,y,w,b,k,x,o,r,l,function(t){I[t?"unshift":"push"]((()=>{d=t,n(1,d)}))}]}let to=class extends ft{constructor(t){super(),dt(this,t,Zn,Qn,i,{date:0})}};function eo(t,e,n){const o=t.slice();return o[15]=e[n],o}function no(t){let e,n,o=lt(t[1]),r=[];for(let e=0;e<o.length;e+=1)r[e]=ro(eo(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(2&n){let i;for(o=lt(t[1]),i=0;i<o.length;i+=1){const l=eo(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=ro(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function oo(e){let n,o,i,s,c;return{c(){n=k("div"),E(n,"class",o=e[3].noEvents)},m(t,o){y(t,n,o),s||(c=[g(i=vt.call(null,n,e[0])),T(n,"click",e[10])],s=!0)},p(t,e){8&e&&o!==(o=t[3].noEvents)&&E(n,"class",o),i&&l(i.update)&&1&e&&i.update.call(null,t[0])},i:t,o:t,d(t){t&&w(n),s=!1,r(c)}}}function ro(t){let e,n;return e=new to({props:{date:t[15]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.date=t[15]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function lo(t){let e,n,o,r;const l=[oo,no],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function io(t){let e,n;return e=new Wn({props:{$$slots:{default:[lo]},$$scope:{ctx:t}}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){let[o]=n;const r={};262159&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function so(t,e,n){let o,r,i,s,c,u,d,f,{_events:h,_view:p,_viewDates:$,noEventsClick:g,noEventsContent:m,theme:v}=R("state");return a(t,h,(t=>n(12,s=t))),a(t,p,(t=>n(13,o=t))),a(t,$,(t=>n(1,c=t))),a(t,g,(t=>n(14,r=t))),a(t,m,(t=>n(11,i=t))),a(t,v,(t=>n(3,u=t))),t.$$.update=()=>{if(4098&t.$$.dirty&&(n(2,d=!0),c.length)){let t=c[0],e=Tt(xt(c[c.length-1]));for(let o of s)if(!ge(o.display)&&o.start<e&&o.end>t){n(2,d=!1);break}}2049&t.$$.dirty&&(n(0,f=l(i)?i():i),"string"==typeof f&&n(0,f={html:f}))},[f,c,d,u,h,p,$,g,m,v,function(t){l(r)&&r({jsEvent:t,view:Qt(o)})},i,s]}let co=class extends ft{constructor(t){super(),dt(this,t,so,io,i,{})}};var ao={createOptions(t){t.buttonText.listDay="list",t.buttonText.listWeek="list",t.buttonText.listMonth="list",t.buttonText.listYear="list",t.listDayFormat={weekday:"long"},t.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},t.noEventsClick=void 0,t.noEventsContent="No events",t.theme.daySide="ec-day-side",t.theme.eventTag="ec-event-tag",t.theme.noEvents="ec-no-events",t.view="listWeek",t.views.listDay={buttonText:ve,component:co,duration:{days:1},theme:xe("ec-list ec-day-view")},t.views.listWeek={buttonText:ye,component:co,duration:{weeks:1},theme:xe("ec-list ec-week-view")},t.views.listMonth={buttonText:we,component:co,duration:{months:1},theme:xe("ec-list ec-month-view")},t.views.listYear={buttonText:be,component:co,duration:{years:1},theme:xe("ec-list ec-year-view")}},createStores(t){t._intlListDay=_e(t.locale,t.listDayFormat),t._intlListDaySide=_e(t.locale,t.listDaySideFormat)}};const uo=t=>({}),fo=t=>({});function ho(t,e,n){const o=t.slice();return o[9]=e[n],o}function po(t){let e,n,o,r,i,s;return{c(){e=k("time"),E(e,"class",n=t[1].time),E(e,"datetime",o=t[9][0])},m(n,o){y(n,e,o),i||(s=g(r=vt.call(null,e,t[9][1])),i=!0)},p(i,s){t=i,2&s&&n!==(n=t[1].time)&&E(e,"class",n),4&s&&o!==(o=t[9][0])&&E(e,"datetime",o),r&&l(r.update)&&4&s&&r.update.call(null,t[9][1])},d(t){t&&w(e),i=!1,s()}}}function $o(t){let e,n,o,r,i,s,c,a,d,$,m,x,C,T,D,S=lt(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=po(ho(t,S,e));const U=t[8].lines,L=u(U,t,t[7],fo),H=t[8].default,B=u(H,t,t[7],null);return{c(){e=k("div"),n=k("div"),i=_();for(let t=0;t<M.length;t+=1)M[t].c();c=_(),a=k("div"),d=k("div"),L&&L.c(),m=_(),B&&B.c(),E(n,"class",o=t[1].sidebarTitle),E(e,"class",s=t[1].sidebar),E(d,"class",$=t[1].lines),E(a,"class",x=t[1].days),E(a,"role","row")},m(o,l){y(o,e,l),v(e,n),v(e,i);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);y(o,c,l),y(o,a,l),v(a,d),L&&L.m(d,null),v(a,m),B&&B.m(a,null),C=!0,T||(D=g(r=vt.call(null,n,t[0])),T=!0)},p(t,i){let[c]=i;if((!C||2&c&&o!==(o=t[1].sidebarTitle))&&E(n,"class",o),r&&l(r.update)&&1&c&&r.update.call(null,t[0]),6&c){let n;for(S=lt(t[2]),n=0;n<S.length;n+=1){const o=ho(t,S,n);M[n]?M[n].p(o,c):(M[n]=po(o),M[n].c(),M[n].m(e,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=S.length}(!C||2&c&&s!==(s=t[1].sidebar))&&E(e,"class",s),L&&L.p&&(!C||128&c)&&h(L,U,t,t[7],C?f(U,t[7],c,uo):p(t[7]),fo),(!C||2&c&&$!==($=t[1].lines))&&E(d,"class",$),B&&B.p&&(!C||128&c)&&h(B,H,t,t[7],C?f(H,t[7],c,null):p(t[7]),null),(!C||2&c&&x!==(x=t[1].days))&&E(a,"class",x)},i(t){C||(ot(L,t),ot(B,t),C=!0)},o(t){rt(L,t),rt(B,t),C=!1},d(t){t&&(w(e),w(c),w(a)),b(M,t),L&&L.d(t),B&&B.d(t),T=!1,D()}}}function go(t,e,n){let o,r,i,s,{$$slots:c={},$$scope:u}=e,{allDayContent:d,theme:f,_times:h}=R("state");return a(t,d,(t=>n(6,o=t))),a(t,f,(t=>n(1,r=t))),a(t,h,(t=>n(2,i=t))),t.$$set=t=>{"$$scope"in t&&n(7,u=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(0,s=function(t){let e,n="all-day";return t?(e=l(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(o))},[s,r,i,d,f,h,o,u,c]}class mo extends ft{constructor(t){super(),dt(this,t,go,$o,i,{})}}function vo(t,e,n){const o=t.slice();return o[24]=e[n],o}function yo(t){let e;const n=t[16].default,o=u(n,t,t[18],null);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,r){o&&o.p&&(!e||262144&r)&&h(o,n,t,t[18],e?f(n,t[18],r,null):p(t[18]),null)},i(t){e||(ot(o,t),e=!0)},o(t){rt(o,t),e=!1},d(t){o&&o.d(t)}}}function wo(t){let e,n;return{c(){e=k("div"),E(e,"class",n=t[3].line)},m(t,n){y(t,e,n)},p(t,o){8&o&&n!==(n=t[3].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function bo(t){let e,n=lt(t[2]),o=[];for(let e=0;e<n.length;e+=1)o[e]=wo(vo(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=C()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);y(t,e,n)},p(t,r){if(12&r){let l;for(n=lt(t[2]),l=0;l<n.length;l+=1){const i=vo(t,n,l);o[l]?o[l].p(i,r):(o[l]=wo(i),o[l].c(),o[l].m(e.parentNode,e))}for(;l<o.length;l+=1)o[l].d(1);o.length=n.length}},d(t){t&&w(e),b(o,t)}}}function ko(t){let e,n,o,r,l,i;return o=new mo({props:{$$slots:{lines:[bo],default:[yo]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),ct(o.$$.fragment),E(n,"class",r=t[3].content),E(e,"class",l=t[3].body+(t[1]?" "+t[3].compact:""))},m(r,l){y(r,e,l),v(e,n),at(o,n,null),t[17](e),i=!0},p(t,s){let[c]=s;const a={};262156&c&&(a.$$scope={dirty:c,ctx:t}),o.$set(a),(!i||8&c&&r!==(r=t[3].content))&&E(n,"class",r),(!i||10&c&&l!==(l=t[3].body+(t[1]?" "+t[3].compact:"")))&&E(e,"class",l)},i(t){i||(ot(o.$$.fragment,t),i=!0)},o(t){rt(o.$$.fragment,t),i=!1},d(n){n&&w(e),ut(o),t[17](null)}}}function xo(t,e,n){let o,r,l,i,s,c,u,d,f,h,{$$slots:p={},$$scope:g}=e,{_bodyEl:m,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:_}=R("state");a(t,m,(t=>n(22,u=t))),a(t,v,(t=>n(13,i=t))),a(t,y,(t=>n(14,s=t))),a(t,w,(t=>n(15,c=t))),a(t,b,(t=>n(21,l=t))),a(t,k,(t=>n(12,r=t))),a(t,x,(t=>n(20,o=t))),a(t,_,(t=>n(3,d=t)));let C,T=[];return t.$$set=t=>{"$$scope"in t&&n(18,g=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&$(m,u=f,u),53248&t.$$.dirty&&(n(1,h=r.seconds>=3600),n(2,T.length=c.length,T),C=s.min.seconds),8193&t.$$.dirty&&f&&i&&n(0,f.scrollTop=((l.seconds-C)/r.seconds-.5)*o,f)},[f,h,T,d,m,v,y,w,b,k,x,_,r,i,s,c,p,function(t){I[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},g]}class _o extends ft{constructor(t){super(),dt(this,t,xo,ko,i,{})}}function Co(t){let e,n,o,i,s,c,a,u,d,f,h;var p=t[10].resizer;function $(t,e){return{props:{event:t[0]}}}return p&&(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[34](t[10],!0))&&t[34](t[10],!0).apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),c&&ct(c.$$.fragment),E(n,"class",o=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",a=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(o,r){y(o,e,r),v(e,n),v(e,s),c&&at(c,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){l(t[7]&&mt(t[7]))&&(t[7]&&mt(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){l(t[33](t[8],t[1]))&&t[33](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){l(t[33](t[9],t[1]))&&t[33](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){l(!ge(t[1])&&!$e(t[1])&&t[34](t[10]))&&(!ge(t[1])&&!$e(t[1])&&t[34](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&o!==(o=t[2].eventBody))&&E(n,"class",o),i&&l(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(c){et();const t=c;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[34](t[10],!0))&&t[34](t[10],!0).apply(this,arguments)})),ct(c.$$.fragment),ot(c.$$.fragment,1),at(c,e,null)):c=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),c.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&a!==(a=t[7]?"button":void 0))&&E(e,"role",a),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(c&&ot(c.$$.fragment,t),d=!0)},o(t){c&&rt(c.$$.fragment,t),d=!1},d(n){n&&w(e),c&&ut(c),t[53](null),f=!1,r(h)}}}function To(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,B,{date:P}=e,{chunk:F}=e,{displayEventEnd:z,eventAllUpdated:G,eventBackgroundColor:j,eventTextColor:O,eventColor:W,eventContent:Y,eventClick:q,eventDidMount:X,eventClassNames:V,eventMouseEnter:J,eventMouseLeave:K,slotEventOverlap:Q,slotDuration:Z,slotHeight:tt,theme:et,_view:nt,_intlEventTime:ot,_interaction:rt,_iClasses:lt,_resBgColor:it,_resTxtColor:st,_slotTimeLimits:ct,_tasks:at}=R("state");function ut(t,e){return!$e(e)&&l(t)?e=>t({event:ce(E),el:D,jsEvent:e,view:Qt(r)}):void 0}return a(t,z,(t=>n(41,f=t))),a(t,G,(t=>n(55,i=t))),a(t,j,(t=>n(48,y=t))),a(t,O,(t=>n(45,g=t))),a(t,W,(t=>n(47,v=t))),a(t,Y,(t=>n(40,d=t))),a(t,q,(t=>n(37,o=t))),a(t,X,(t=>n(56,s=t))),a(t,V,(t=>n(42,h=t))),a(t,J,(t=>n(8,_=t))),a(t,K,(t=>n(9,C=t))),a(t,Q,(t=>n(44,$=t))),a(t,Z,(t=>n(52,x=t))),a(t,tt,(t=>n(50,b=t))),a(t,et,(t=>n(2,u=t))),a(t,nt,(t=>n(38,r=t))),a(t,ot,(t=>n(39,c=t))),a(t,rt,(t=>n(10,T=t))),a(t,lt,(t=>n(43,p=t))),a(t,it,(t=>n(49,w=t))),a(t,st,(t=>n(46,m=t))),a(t,ct,(t=>n(51,k=t))),N((()=>{l(s)&&s({event:ce(E),timeText:H,el:D,view:Qt(r)})})),A((()=>{l(i)&&!$e(S)&&Pt((()=>i({view:Qt(r)})),"eau",at)})),t.$$set=t=>{"date"in t&&n(35,P=t.date),"chunk"in t&&n(36,F=t.chunk)},t.$$.update=()=>{if(32&t.$$.dirty[1]&&n(0,E=F.event),39&t.$$.dirty[0]|4192432&t.$$.dirty[1]){n(1,S=E.display);let t=x.seconds/60,e=k.min.seconds/60,o=(F.start-P)/1e3/60,l=(F.end-P)/1e3/60,i=(o-e)/t*b,s=(l-o)/t*b,c=(k.max.seconds/60-o)/t*b,a=E.backgroundColor||w(E)||y||v,d=E.textColor||m(E)||g;n(5,U=`top:${i}px;min-height:${s}px;height:${s}px;max-height:${c}px;`),a&&n(5,U+=`background-color:${a};`),d&&n(5,U+=`color:${d};`),(!ge(S)&&!$e(S)||me(S))&&n(5,U+=`z-index:${F.column+1};left:${100/F.group.columns.length*F.column}%;width:${100/F.group.columns.length*($?.5*(1+F.group.columns.length-F.column):1)}%;`),n(4,M=[ge(S)?u.bgEvent:u.event,...p([],E),...se(h,E,r)].join(" "))}4&t.$$.dirty[0]|1952&t.$$.dirty[1]&&n(6,[H,L]=le(F,f,d,u,c,r),L),2&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(7,B=!ge(S)&&ut(o,S))},[E,S,u,D,M,U,L,B,_,C,T,z,G,j,O,W,Y,q,X,V,J,K,Q,Z,tt,et,nt,ot,rt,lt,it,st,ct,ut,function(t,e){return t.action?n=>t.action.drag(E,n,e):void 0},P,F,o,r,c,d,f,h,p,$,g,m,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{D=t,n(3,D)}))}]}let Do=class extends ft{constructor(t){super(),dt(this,t,To,Co,i,{date:35,chunk:36},null,[-1,-1])}};function Eo(e){let n,o;return{c(){n=k("div"),E(n,"class",o=e[1].nowIndicator),M(n,"top",e[0]+"px")},m(t,e){y(t,n,e)},p(t,e){let[r]=e;2&r&&o!==(o=t[1].nowIndicator)&&E(n,"class",o),1&r&&M(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&w(n)}}}function So(t,e,n){let o,r,l,i,s,c,u,{slotDuration:d,slotHeight:f,theme:h,_now:p,_today:$,_slotTimeLimits:g}=R("state");a(t,d,(t=>n(11,l=t))),a(t,f,(t=>n(9,o=t))),a(t,h,(t=>n(1,c=t))),a(t,p,(t=>n(13,s=t))),a(t,$,(t=>n(12,i=t))),a(t,g,(t=>n(10,r=t)));let m=0;return t.$$.update=()=>{if(12288&t.$$.dirty&&n(8,u=(s-i)/1e3/60),3840&t.$$.dirty){let t=l.seconds/60,e=r.min.seconds/60;n(0,m=(u-e)/t*o)}},[m,c,d,f,h,p,$,g,u,o,r,l,i,s]}class Mo extends ft{constructor(t){super(),dt(this,t,So,Eo,i,{})}}function Uo(t,e,n){const o=t.slice();return o[33]=e[n],o}function Lo(t,e,n){const o=t.slice();return o[33]=e[n],o}function Ho(t,e){let n,o,r;return o=new Do({props:{date:e[0],chunk:e[33]}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),8&n[0]&&(r.chunk=e[33]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function Bo(t){let e,n;return e=new Do({props:{date:t[0],chunk:t[4][1]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n[0]&&(o.date=t[0]),16&n[0]&&(o.chunk=t[4][1]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function No(t,e){let n,o,r;return o=new Do({props:{date:e[0],chunk:e[33]}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),4&n[0]&&(r.chunk=e[33]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function Ao(t){let e,n;return e=new Do({props:{date:t[0],chunk:t[4][0]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n[0]&&(o.date=t[0]),16&n[0]&&(o.chunk=t[4][0]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Po(t){let e,n;return e=new Mo({}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ro(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,g,m,b=[],x=new Map,C=[],D=new Map,S=lt(t[3]);const M=t=>t[33].event;for(let e=0;e<S.length;e+=1){let n=Lo(t,S,e),o=M(n);x.set(o,b[e]=Ho(o,n))}let U=t[4][1]&&Bo(t),L=lt(t[2]);const H=t=>t[33].event;for(let e=0;e<L.length;e+=1){let n=Uo(t,L,e),o=H(n);D.set(o,C[e]=No(o,n))}let B=t[4][0]&&!t[4][0].event.allDay&&Ao(t),N=t[9]&&t[5]&&Po();return{c(){e=k("div"),n=k("div");for(let t=0;t<b.length;t+=1)b[t].c();i=_(),s=k("div"),U&&U.c(),c=_();for(let t=0;t<C.length;t+=1)C[t].c();a=_(),B&&B.c(),d=_(),f=k("div"),N&&N.c(),E(n,"class",o=t[7].bgEvents),E(s,"class",u=t[7].events),E(f,"class",h=t[7].extra),E(e,"class",p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")),E(e,"role","cell")},m(o,r){y(o,e,r),v(e,n);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(n,null);v(e,i),v(e,s),U&&U.m(s,null),v(s,c);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(s,null);v(s,a),B&&B.m(s,null),v(e,d),v(e,f),N&&N.m(f,null),t[29](e),$=!0,g||(m=[T(e,"pointerenter",(function(){l(t[20](t[8]))&&t[20](t[8]).apply(this,arguments)})),T(e,"pointerleave",(function(){l(t[8].pointer?.leave)&&t[8].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){l(t[8].action?.select)&&t[8].action?.select.apply(this,arguments)}))],g=!0)},p(r,l){t=r,9&l[0]&&(S=lt(t[3]),et(),b=st(b,l,M,1,t,S,x,n,it,Ho,null,Lo),nt()),(!$||128&l[0]&&o!==(o=t[7].bgEvents))&&E(n,"class",o),t[4][1]?U?(U.p(t,l),16&l[0]&&ot(U,1)):(U=Bo(t),U.c(),ot(U,1),U.m(s,c)):U&&(et(),rt(U,1,1,(()=>{U=null})),nt()),5&l[0]&&(L=lt(t[2]),et(),C=st(C,l,H,1,t,L,D,s,it,No,a,Uo),nt()),t[4][0]&&!t[4][0].event.allDay?B?(B.p(t,l),16&l[0]&&ot(B,1)):(B=Ao(t),B.c(),ot(B,1),B.m(s,null)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),(!$||128&l[0]&&u!==(u=t[7].events))&&E(s,"class",u),t[9]&&t[5]?N?544&l[0]&&ot(N,1):(N=Po(),N.c(),ot(N,1),N.m(f,null)):N&&(et(),rt(N,1,1,(()=>{N=null})),nt()),(!$||128&l[0]&&h!==(h=t[7].extra))&&E(f,"class",h),(!$||225&l[0]&&p!==(p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")))&&E(e,"class",p)},i(t){if(!$){for(let t=0;t<S.length;t+=1)ot(b[t]);ot(U);for(let t=0;t<L.length;t+=1)ot(C[t]);ot(B),ot(N),$=!0}},o(t){for(let t=0;t<b.length;t+=1)rt(b[t]);rt(U);for(let t=0;t<C.length;t+=1)rt(C[t]);rt(B),rt(N),$=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();U&&U.d();for(let t=0;t<C.length;t+=1)C[t].d();B&&B.d(),N&&N.d(),t[29](null),g=!1,r(m)}}}function Fo(t,e,n){let o,r,l,i,s,c,u,d,f,h,p,{date:$}=e,{resource:g}=e,{_events:m,_iEvents:v,highlightedDates:y,nowIndicator:w,slotDuration:b,slotHeight:k,theme:x,_interaction:_,_today:C,_slotTimeLimits:T}=R("state");a(t,m,(t=>n(28,u=t))),a(t,v,(t=>n(27,c=t))),a(t,y,(t=>n(25,i=t))),a(t,w,(t=>n(9,h=t))),a(t,b,(t=>n(31,r=t))),a(t,k,(t=>n(30,o=t))),a(t,x,(t=>n(7,d=t))),a(t,_,(t=>n(8,f=t))),a(t,C,(t=>n(26,s=t))),a(t,T,(t=>n(24,l=t)));let D,E,S,M,U,L,H=[];function B(t){return t-=Ot(p).top,{allDay:!1,date:_t(_t(xt($),l.min),r,zt(t/o)),resource:g,dayEl:p}}return t.$$set=t=>{"date"in t&&n(0,$=t.date),"resource"in t&&n(21,g=t.resource)},t.$$.update=()=>{if(16777217&t.$$.dirty[0]&&(n(22,U=_t(xt($),l.min)),n(23,L=_t(xt($),l.max))),283115532&t.$$.dirty[0]){n(2,D=[]),n(3,E=[]);for(let t of u)if(!t.allDay&&pe(t,U,L,g,!0)){let e=oe(t,U,L);if("background"===t.display)E.push(e);else D.push(e)}!function(t){if(!t.length)return;re(t);let e={columns:[],end:t[0].end};for(let n of t){let t=0;if(n.start<e.end){for(;t<e.columns.length&&!(e.columns[t][e.columns[t].length-1].end<=n.start);++t);n.end>e.end&&(e.end=n.end)}else e={columns:[],end:n.end};e.columns.length<t+1&&e.columns.push([]),e.columns[t].push(n),n.group=e,n.column=t}}(D)}148897792&t.$$.dirty[0]&&n(4,H=c.map((t=>t&&pe(t,U,L,g,!0)?oe(t,U,L):null))),67108865&t.$$.dirty[0]&&n(5,S=Ut($,s)),33554433&t.$$.dirty[0]&&n(6,M=i.some((t=>Ut(t,$)))),2&t.$$.dirty[0]&&p&&Xt(p,B)},[$,p,D,E,H,S,M,d,f,h,m,v,y,w,b,k,x,_,C,T,function(t){return t.pointer?e=>t.pointer.enterTimeGrid($,p,e,g):void 0},g,U,L,l,i,s,c,u,function(t){I[t?"unshift":"push"]((()=>{p=t,n(1,p)}))}]}let zo=class extends ft{constructor(t){super(),dt(this,t,Fo,Ro,i,{date:0,resource:21},null,[-1,-1])}};function Io(t){let e,n,o,i,s,c,a,u,d,f,h;var p=t[10].resizer;function $(t,e){return{props:{event:t[0]}}}return p&&(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[30](t[10],!0))&&t[30](t[10],!0).apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),c&&ct(c.$$.fragment),E(n,"class",o=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",a=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(o,r){y(o,e,r),v(e,n),v(e,s),c&&at(c,e,null),t[47](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){l(t[7]&&mt(t[7]))&&(t[7]&&mt(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){l(t[29](t[8],t[1]))&&t[29](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){l(t[29](t[9],t[1]))&&t[29](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){l(!$e(t[1])&&t[30](t[10]))&&(!$e(t[1])&&t[30](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&o!==(o=t[2].eventBody))&&E(n,"class",o),i&&l(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(c){et();const t=c;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[30](t[10],!0))&&t[30](t[10],!0).apply(this,arguments)})),ct(c.$$.fragment),ot(c.$$.fragment,1),at(c,e,null)):c=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),c.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&a!==(a=t[7]?"button":void 0))&&E(e,"role",a),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(c&&ot(c.$$.fragment,t),d=!0)},o(t){c&&rt(c.$$.fragment,t),d=!1},d(n){n&&w(e),c&&ut(c),t[47](null),f=!1,r(h)}}}function Go(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{longChunks:M={}}=e,{displayEventEnd:U,eventAllUpdated:L,eventBackgroundColor:H,eventTextColor:B,eventClick:P,eventColor:F,eventContent:z,eventClassNames:G,eventDidMount:j,eventMouseEnter:O,eventMouseLeave:W,theme:Y,_view:q,_intlEventTime:X,_interaction:V,_iClasses:J,_resBgColor:K,_resTxtColor:Q,_tasks:Z}=R("state");a(t,U,(t=>n(39,f=t))),a(t,L,(t=>n(49,i=t))),a(t,H,(t=>n(45,v=t))),a(t,B,(t=>n(42,$=t))),a(t,P,(t=>n(35,o=t))),a(t,F,(t=>n(44,m=t))),a(t,z,(t=>n(38,d=t))),a(t,G,(t=>n(40,h=t))),a(t,j,(t=>n(50,s=t))),a(t,O,(t=>n(8,w=t))),a(t,W,(t=>n(9,b=t))),a(t,Y,(t=>n(2,u=t))),a(t,q,(t=>n(36,r=t))),a(t,X,(t=>n(37,c=t))),a(t,V,(t=>n(10,k=t))),a(t,J,(t=>n(41,p=t))),a(t,K,(t=>n(46,y=t))),a(t,Q,(t=>n(43,g=t)));let tt,et,nt=1;function ot(t,e){return!$e(e)&&l(t)?e=>t({event:ce(_),el:x,jsEvent:e,view:Qt(r)}):void 0}return N((()=>{l(s)&&s({event:ce(_),timeText:E,el:x,view:Qt(r)})})),A((()=>{l(i)&&!$e(tt)&&Pt((()=>i({view:Qt(r)})),"eau",Z)})),t.$$set=t=>{"chunk"in t&&n(31,S=t.chunk),"longChunks"in t&&n(32,M=t.longChunks)},t.$$.update=()=>{if(1&t.$$.dirty[1]&&n(0,_=S.event),37&t.$$.dirty[0]|65065&t.$$.dirty[1]){n(1,tt=_.display);let t=_.backgroundColor||y(_)||v||m,e=_.textColor||g(_)||$;n(5,T=`width:calc(${100*S.days}% + ${7*(S.days-1)}px);margin-top:${nt}px;`),t&&n(5,T+=`background-color:${t};`),e&&n(5,T+=`color:${e};`),n(4,C=[u.event,...p([],_),...se(h,_,r)].join(" "))}4&t.$$.dirty[0]|481&t.$$.dirty[1]&&n(6,[E,D]=le(S,f,d,u,c,r),D),2&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(7,et=ot(o,tt))},[_,tt,u,x,C,T,D,et,w,b,k,U,L,H,B,P,F,z,G,j,O,W,Y,q,X,V,J,K,Q,ot,function(t,e){return t.action?n=>t.action.drag(_,n,e):void 0},S,M,function(){x&&n(34,nt=fe(S,M,Yt(x)))},nt,o,r,c,d,f,h,p,$,g,m,v,y,function(t){I[t?"unshift":"push"]((()=>{x=t,n(3,x)}))}]}class jo extends ft{constructor(t){super(),dt(this,t,Go,Io,i,{chunk:31,longChunks:32,reposition:33},null,[-1,-1])}get reposition(){return this.$$.ctx[33]}}function Oo(t,e,n){const o=t.slice();return o[21]=e[n],o[22]=e,o[23]=n,o}function Wo(t){let e,n,o,r;return n=new jo({props:{chunk:t[2][0]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[8].events+" "+t[8].preview)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};4&l&&(i.chunk=t[2][0]),n.$set(i),(!r||256&l&&o!==(o=t[8].events+" "+t[8].preview))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Yo(t,e){let n,o,r,l=e[23];const i=()=>e[19](o,l),s=()=>e[19](null,l);let c={chunk:e[21],longChunks:e[1]};return o=new jo({props:c}),i(),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){l!==(e=t)[23]&&(s(),l=e[23],i());const r={};16&n&&(r.chunk=e[21]),2&n&&(r.longChunks=e[1]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(o,t)}}}function qo(t){let e,n,o,r,i,s,c,a,u=t[2][0]&&Ut(t[2][0].date,t[0]),d=[],f=new Map,h=u&&Wo(t),p=lt(t[4]);const $=t=>t[21].event;for(let e=0;e<p.length;e+=1){let n=Oo(t,p,e),o=$(n);f.set(o,d[e]=Yo(o,n))}return{c(){e=k("div"),h&&h.c(),n=_(),o=k("div");for(let t=0;t<d.length;t+=1)d[t].c();E(o,"class",r=t[8].events),E(e,"class",i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")),E(e,"role","cell")},m(r,i){y(r,e,i),h&&h.m(e,null),v(e,n),v(e,o);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(o,null);t[20](e),s=!0,c||(a=T(e,"pointerdown",(function(){l(t[9].action?.select)&&t[9].action?.select.apply(this,arguments)})),c=!0)},p(l,c){let[a]=c;t=l,5&a&&(u=t[2][0]&&Ut(t[2][0].date,t[0])),u?h?(h.p(t,a),5&a&&ot(h,1)):(h=Wo(t),h.c(),ot(h,1),h.m(e,n)):h&&(et(),rt(h,1,1,(()=>{h=null})),nt()),146&a&&(p=lt(t[4]),et(),d=st(d,a,$,1,t,p,f,o,it,Yo,null,Oo),nt()),(!s||256&a&&r!==(r=t[8].events))&&E(o,"class",r),(!s||353&a&&i!==(i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")))&&E(e,"class",i)},i(t){if(!s){ot(h);for(let t=0;t<p.length;t+=1)ot(d[t]);s=!0}},o(t){rt(h);for(let t=0;t<d.length;t+=1)rt(d[t]);s=!1},d(n){n&&w(e),h&&h.d();for(let t=0;t<d.length;t+=1)d[t].d();t[20](null),c=!1,a()}}}function Xo(t,e,n){let o,r,l,i,s,c,u,d,{date:f}=e,{chunks:h}=e,{longChunks:p}=e,{iChunks:$=[]}=e,{resource:g}=e,{highlightedDates:m,theme:v,_interaction:y,_today:w}=R("state");a(t,m,(t=>n(17,o=t))),a(t,v,(t=>n(8,l=t))),a(t,y,(t=>n(9,i=t))),a(t,w,(t=>n(18,r=t)));let b=[];return t.$$set=t=>{"date"in t&&n(0,f=t.date),"chunks"in t&&n(14,h=t.chunks),"longChunks"in t&&n(1,p=t.longChunks),"iChunks"in t&&n(2,$=t.iChunks),"resource"in t&&n(15,g=t.resource)},t.$$.update=()=>{if(16401&t.$$.dirty){n(4,c=[]);for(let t of h)Ut(t.date,f)&&c.push(t)}262145&t.$$.dirty&&n(5,u=Ut(f,r)),131073&t.$$.dirty&&n(6,d=o.some((t=>Ut(t,f)))),32777&t.$$.dirty&&s&&Xt(s,(()=>({allDay:!0,date:f,resource:g,dayEl:s})))},[f,p,$,s,c,u,d,b,l,i,m,v,y,w,h,g,function(){he(b,c)},o,r,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(7,b)}))},function(t){I[t?"unshift":"push"]((()=>{s=t,n(3,s)}))}]}class Vo extends ft{constructor(t){super(),dt(this,t,Xo,qo,i,{date:0,chunks:14,longChunks:1,iChunks:2,resource:15,reposition:16})}get reposition(){return this.$$.ctx[16]}}function Jo(t,e,n){const o=t.slice();return o[18]=e[n],o[19]=e,o[20]=n,o}function Ko(t){let e,n,o=t[20];const r=()=>t[15](e,o),l=()=>t[15](null,o);let i={date:t[18],chunks:t[2],longChunks:t[3],iChunks:t[4],resource:t[1]};return e=new Vo({props:i}),r(),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){o!==t[20]&&(l(),o=t[20],r());const i={};1&n&&(i.date=t[18]),4&n&&(i.chunks=t[2]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),2&n&&(i.resource=t[1]),e.$set(i)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){l(),ut(e,t)}}}function Qo(t){let e,n,o,r,l=lt(t[0]),i=[];for(let e=0;e<l.length;e+=1)i[e]=Ko(Jo(t,l,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=C()},m(l,s){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(l,s);y(l,e,s),n=!0,o||(r=T(window,"resize",t[9]),o=!0)},p(t,n){let[o]=n;if(63&o){let n;for(l=lt(t[0]),n=0;n<l.length;n+=1){const r=Jo(t,l,n);i[n]?(i[n].p(r,o),ot(i[n],1)):(i[n]=Ko(r),i[n].c(),ot(i[n],1),i[n].m(e.parentNode,e))}for(et(),n=l.length;n<i.length;n+=1)s(n);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)ot(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);n=!1},d(t){t&&w(e),b(i,t),o=!1,r()}}}function Zo(t,e,n){let o,r,l,{dates:i}=e,{resource:s}=e,{_events:c,_iEvents:u,_queue2:d,hiddenDays:f}=R("state");a(t,c,(t=>n(14,l=t))),a(t,u,(t=>n(13,r=t))),a(t,f,(t=>n(12,o=t)));let h,p,$,g,m=[],v=[],y={};function w(){Nt((()=>he(v,i)),y,d)}return t.$$set=t=>{"dates"in t&&n(0,i=t.dates),"resource"in t&&n(1,s=t.resource)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(10,$=i[0]),n(11,g=Tt(xt(i[i.length-1])))),23558&t.$$.dirty){n(2,h=[]);for(let t of l)if(t.allDay&&"background"!==t.display&&pe(t,$,g,s)){let e=oe(t,$,g);h.push(e)}n(3,p=de(h,o)),w()}15362&t.$$.dirty&&n(4,m=r.map((t=>{let e;return t&&t.allDay&&pe(t,$,g,s)?(e=oe(t,$,g),de([e],o)):e=null,e})))},[i,s,h,p,m,v,c,u,f,w,$,g,o,r,l,function(t,e){I[t?"unshift":"push"]((()=>{v[e]=t,n(5,v)}))}]}class tr extends ft{constructor(t){super(),dt(this,t,Zo,Qo,i,{dates:0,resource:1})}}function er(t,e,n){const o=t.slice();return o[10]=e[n],o}function nr(t,e,n){const o=t.slice();return o[10]=e[n],o}function or(t){let e,n,o,r,i,s,c,a,u;return{c(){e=k("div"),n=k("time"),s=_(),E(n,"datetime",o=Mt(t[10],10)),E(n,"aria-label",r=t[2].format(t[10])),E(e,"class",c=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),E(e,"role","columnheader")},m(o,r){y(o,e,r),v(e,n),v(e,s),a||(u=g(i=vt.call(null,n,t[3].format(t[10]))),a=!0)},p(s,a){t=s,2&a&&o!==(o=Mt(t[10],10))&&E(n,"datetime",o),6&a&&r!==(r=t[2].format(t[10]))&&E(n,"aria-label",r),i&&l(i.update)&&10&a&&i.update.call(null,t[3].format(t[10])),3&a&&c!==(c=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()])&&E(e,"class",c)},d(t){t&&w(e),a=!1,u()}}}function rr(t){let e,n=lt(t[1]),o=[];for(let e=0;e<n.length;e+=1)o[e]=or(nr(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=C()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);y(t,e,n)},p(t,r){if(15&r){let l;for(n=lt(t[1]),l=0;l<n.length;l+=1){const i=nr(t,n,l);o[l]?o[l].p(i,r):(o[l]=or(i),o[l].c(),o[l].m(e.parentNode,e))}for(;l<o.length;l+=1)o[l].d(1);o.length=n.length}},d(t){t&&w(e),b(o,t)}}}function lr(t){let e,n,o,r,l,i,s,c,a;return o=new mo({props:{$$slots:{default:[ir]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),ct(o.$$.fragment),r=_(),l=k("div"),E(l,"class",i=t[0].hiddenScroll),E(n,"class",s=t[0].content),E(e,"class",c=t[0].allDay)},m(t,i){y(t,e,i),v(e,n),at(o,n,null),v(n,r),v(n,l),a=!0},p(t,r){const u={};32770&r&&(u.$$scope={dirty:r,ctx:t}),o.$set(u),(!a||1&r&&i!==(i=t[0].hiddenScroll))&&E(l,"class",i),(!a||1&r&&s!==(s=t[0].content))&&E(n,"class",s),(!a||1&r&&c!==(c=t[0].allDay))&&E(e,"class",c)},i(t){a||(ot(o.$$.fragment,t),a=!0)},o(t){rt(o.$$.fragment,t),a=!1},d(t){t&&w(e),ut(o)}}}function ir(t){let e,n;return e=new tr({props:{dates:t[1]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.dates=t[1]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function sr(t){let e,n;return e=new zo({props:{date:t[10]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.date=t[10]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function cr(t){let e,n,o=lt(t[1]),r=[];for(let e=0;e<o.length;e+=1)r[e]=sr(er(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(2&n){let i;for(o=lt(t[1]),i=0;i<o.length;i+=1){const l=er(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=sr(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function ar(t){let e,n,o,r,l,i,s,c,a,u;n=new mo({props:{$$slots:{default:[rr]},$$scope:{ctx:t}}});let d=t[4]&&lr(t);return a=new _o({props:{$$slots:{default:[cr]},$$scope:{ctx:t}}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),r=k("div"),s=_(),d&&d.c(),c=_(),ct(a.$$.fragment),E(r,"class",l=t[0].hiddenScroll),E(e,"class",i=t[0].header)},m(t,l){y(t,e,l),at(n,e,null),v(e,o),v(e,r),y(t,s,l),d&&d.m(t,l),y(t,c,l),at(a,t,l),u=!0},p(t,o){let[s]=o;const f={};32783&s&&(f.$$scope={dirty:s,ctx:t}),n.$set(f),(!u||1&s&&l!==(l=t[0].hiddenScroll))&&E(r,"class",l),(!u||1&s&&i!==(i=t[0].header))&&E(e,"class",i),t[4]?d?(d.p(t,s),16&s&&ot(d,1)):(d=lr(t),d.c(),ot(d,1),d.m(c.parentNode,c)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const h={};32770&s&&(h.$$scope={dirty:s,ctx:t}),a.$set(h)},i(t){u||(ot(n.$$.fragment,t),ot(d),ot(a.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(a.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(c)),ut(n),d&&d.d(t),ut(a,t)}}}function ur(t,e,n){let o,r,l,i,s,{_viewDates:c,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=R("state");return a(t,c,(t=>n(1,r=t))),a(t,u,(t=>n(3,i=t))),a(t,d,(t=>n(2,l=t))),a(t,f,(t=>n(4,s=t))),a(t,h,(t=>n(0,o=t))),[o,r,l,i,s,c,u,d,f,h]}let dr=class extends ft{constructor(t){super(),dt(this,t,ur,ar,i,{})}};var fr={createOptions(t){t.buttonText.timeGridDay="day",t.buttonText.timeGridWeek="week",t.view="timeGridWeek",t.views.timeGridDay={buttonText:ve,component:dr,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:xe("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:ye,component:dr,duration:{weeks:1},theme:xe("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return gt([t._events,t._viewDates,t.flexibleSlotTimeLimits,t.slotMinTime,t.slotMaxTime],(t=>{let[e,n,o,r,i]=t,s=kt(r),c=kt(i);if(o){let t=kt(It(s.seconds,Gt(0,c.seconds-wt))),r=kt(Gt(c.seconds,t.seconds+wt)),i=l(o?.eventFilter)?o.eventFilter:t=>!ge(t.display);t:for(let o of n){let n=_t(xt(o),s),l=_t(xt(o),c),a=_t(xt(o),t),u=_t(xt(o),r);for(let d of e)if(!d.allDay&&i(d)&&d.start<u&&d.end>a){if(d.start<n){let e=Gt((d.start-o)/1e3,t.seconds);e<s.seconds&&(s.seconds=e)}if(d.end>l){let t=It((d.end-o)/1e3,r.seconds);t>c.seconds&&(c.seconds=t)}if(s.seconds===t.seconds&&c.seconds===r.seconds)break t}}}return{min:s,max:c}}))}(t),t._times=function(t){return gt([t._slotTimeLimits,t._intlSlotLabel,t.slotDuration],(t=>{let[e,n,o]=t,r=o.seconds>=3600,l=[],i=Et(bt()),s=xt(i),c=1;for(_t(i,e.min),_t(s,e.max);i<s;)l.push([Mt(i),l.length&&(c||r)?n.format(i):""]),_t(i,o),c=1-c;return l}))}(t)}};function hr(t){return t.map((t=>({id:String(t.id),title:t.title||"",titleHTML:t.titleHTML||"",eventBackgroundColor:t.eventBackgroundColor,eventTextColor:t.eventTextColor})))}function pr(e){let n,o,r,i;return{c(){n=k("span"),E(n,"aria-label",e[2])},m(t,l){y(t,n,l),e[9](n),r||(i=g(o=vt.call(null,n,e[1])),r=!0)},p(t,e){let[r]=e;4&r&&E(n,"aria-label",t[2]),o&&l(o.update)&&2&r&&o.update.call(null,t[1])},i:t,o:t,d(t){t&&w(n),e[9](null),r=!1,i()}}}function $r(t,e,n){let o,r,i,{resource:s}=e,{date:c}=e,{resourceLabelContent:u,resourceLabelDidMount:d,_intlDayHeaderAL:f}=R("state");a(t,u,(t=>n(8,i=t))),a(t,d,(t=>n(11,r=t))),a(t,f,(t=>n(10,o=t)));const h=P();let p,$,g;return N((()=>{l(r)&&r({resource:s,date:c?St(c):void 0,el:p})})),A((()=>{c?n(2,g=o.format(c)+", "+p.innerText):(n(2,g=void 0),h("text",p.innerText))})),t.$$set=t=>{"resource"in t&&n(6,s=t.resource),"date"in t&&n(7,c=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,$=i?l(i)?i({resource:s,date:c?St(c):void 0}):i:s.titleHTML?{html:s.titleHTML}:s.title)},[p,$,g,u,d,f,s,c,i,function(t){I[t?"unshift":"push"]((()=>{p=t,n(0,p)}))}]}class gr extends ft{constructor(t){super(),dt(this,t,$r,pr,i,{resource:6,date:7})}}function mr(t,e,n){const o=t.slice();return o[17]=e[n],o}function vr(t,e,n){const o=t.slice();return o[20]=e[n],o}function yr(t,e,n){const o=t.slice();return o[26]=e[n],o}function wr(t,e,n){const o=t.slice();return o[23]=e[n],o}function br(t,e,n){const o=t.slice();return o[26]=e[n],o}function kr(t,e,n){const o=t.slice();return o[17]=e[n],o[32]=n,o}function xr(t,e,n){const o=t.slice();return o[20]=e[n],o}function _r(t){let e,n,o,r;return n=new gr({props:{resource:t[17]}}),n.$on("text",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t[16](t[32],...n)})),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[5].day)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(l,i){t=l;const s={};8&i[0]&&(s.resource=t[17]),n.$set(s),(!r||32&i[0]&&o!==(o=t[5].day))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Cr(e){let n,o,r,i,s,c,a,u;return{c(){n=k("div"),o=k("time"),E(o,"datetime",r=Mt(e[17],10)),E(o,"aria-label",i=e[6].format(e[17])),E(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,r){y(t,n,r),v(n,o),a||(u=g(s=vt.call(null,o,e[7].format(e[17]))),a=!0)},p(t,a){e=t,8&a[0]&&r!==(r=Mt(e[17],10))&&E(o,"datetime",r),72&a[0]&&i!==(i=e[6].format(e[17]))&&E(o,"aria-label",i),s&&l(s.update)&&136&a[0]&&s.update.call(null,e[7].format(e[17])),40&a[0]&&c!==(c=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])&&E(n,"class",c)},i:t,o:t,d(t){t&&w(n),a=!1,u()}}}function Tr(t){let e,n,o,r=lt(t[3][1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Sr(xr(t,r,e));const i=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){e=k("div");for(let t=0;t<l.length;t+=1)l[t].c();E(e,"class",n=t[5].days)},m(t,n){y(t,e,n);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);o=!0},p(t,s){if(252&s[0]){let n;for(r=lt(t[3][1]),n=0;n<r.length;n+=1){const o=xr(t,r,n);l[n]?(l[n].p(o,s),ot(l[n],1)):(l[n]=Sr(o),l[n].c(),ot(l[n],1),l[n].m(e,null))}for(et(),n=r.length;n<l.length;n+=1)i(n);nt()}(!o||32&s[0]&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!o){for(let t=0;t<r.length;t+=1)ot(l[t]);o=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);o=!1},d(t){t&&w(e),b(l,t)}}}function Dr(e){let n,o,r,i,s,c,a,u,d;return{c(){n=k("div"),o=k("time"),c=_(),E(o,"datetime",r=Mt(e[20],10)),E(o,"aria-label",i=""+(e[4][e[32]]+e[6].format(e[20]))),E(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),E(n,"role","columnheader")},m(t,r){y(t,n,r),v(n,o),v(n,c),u||(d=g(s=vt.call(null,o,e[7].format(e[20]))),u=!0)},p(t,c){e=t,8&c[0]&&r!==(r=Mt(e[20],10))&&E(o,"datetime",r),88&c[0]&&i!==(i=""+(e[4][e[32]]+e[6].format(e[20])))&&E(o,"aria-label",i),s&&l(s.update)&&136&c[0]&&s.update.call(null,e[7].format(e[20])),40&c[0]&&a!==(a=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()])&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),u=!1,d()}}}function Er(t){let e,n,o,r,l;return n=new gr({props:{resource:t[20],date:t[17]}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),E(e,"class",r=t[5].day),E(e,"role","columnheader")},m(t,r){y(t,e,r),at(n,e,null),v(e,o),l=!0},p(t,o){const i={};8&o[0]&&(i.resource=t[20]),8&o[0]&&(i.date=t[17]),n.$set(i),(!l||32&o[0]&&r!==(r=t[5].day))&&E(e,"class",r)},i(t){l||(ot(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Sr(t){let e,n,o,r;const l=[Er,Dr],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function Mr(t){let e,n,o,r,l,i,s;const c=[Cr,_r],a=[];function u(t,e){return t[2]?0:1}n=u(t),o=a[n]=c[n](t);let d=t[3][1].length>1&&Tr(t);return{c(){e=k("div"),o.c(),r=_(),d&&d.c(),l=_(),E(e,"class",i=t[5].resource)},m(t,o){y(t,e,o),a[n].m(e,null),v(e,r),d&&d.m(e,null),v(e,l),s=!0},p(t,f){let h=n;n=u(t),n===h?a[n].p(t,f):(et(),rt(a[h],1,1,(()=>{a[h]=null})),nt(),o=a[n],o?o.p(t,f):(o=a[n]=c[n](t),o.c()),ot(o,1),o.m(e,r)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&&ot(d,1)):(d=Tr(t),d.c(),ot(d,1),d.m(e,l)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt()),(!s||32&f[0]&&i!==(i=t[5].resource))&&E(e,"class",i)},i(t){s||(ot(o),ot(d),s=!0)},o(t){rt(o),rt(d),s=!1},d(t){t&&w(e),a[n].d(),d&&d.d()}}}function Ur(t){let e,n,o=lt(t[3][0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Mr(kr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(252&n[0]){let i;for(o=lt(t[3][0]),i=0;i<o.length;i+=1){const l=kr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Mr(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Lr(t){let e,n,o,r,l,i,s,c,a;return o=new mo({props:{$$slots:{default:[Rr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),ct(o.$$.fragment),r=_(),l=k("div"),E(l,"class",i=t[5].hiddenScroll),E(n,"class",s=t[5].content),E(e,"class",c=t[5].allDay)},m(t,i){y(t,e,i),v(e,n),at(o,n,null),v(n,r),v(n,l),a=!0},p(t,r){const u={};39&r[0]|16&r[1]&&(u.$$scope={dirty:r,ctx:t}),o.$set(u),(!a||32&r[0]&&i!==(i=t[5].hiddenScroll))&&E(l,"class",i),(!a||32&r[0]&&s!==(s=t[5].content))&&E(n,"class",s),(!a||32&r[0]&&c!==(c=t[5].allDay))&&E(e,"class",c)},i(t){a||(ot(o.$$.fragment,t),a=!0)},o(t){rt(o.$$.fragment,t),a=!1},d(t){t&&w(e),ut(o)}}}function Hr(t){let e,n,o=lt(t[1]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Nr(yr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(35&n[0]){let i;for(o=lt(t[1]),i=0;i<o.length;i+=1){const l=yr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Nr(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Br(t){let e,n,o=lt(t[0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Pr(wr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(35&n[0]){let i;for(o=lt(t[0]),i=0;i<o.length;i+=1){const l=wr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Pr(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Nr(t){let e,n,o,r,l;return n=new tr({props:{dates:t[0],resource:t[26]}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),E(e,"class",r=t[5].resource)},m(t,r){y(t,e,r),at(n,e,null),v(e,o),l=!0},p(t,o){const i={};1&o[0]&&(i.dates=t[0]),2&o[0]&&(i.resource=t[26]),n.$set(i),(!l||32&o[0]&&r!==(r=t[5].resource))&&E(e,"class",r)},i(t){l||(ot(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Ar(t){let e,n;return e=new tr({props:{dates:[t[23]],resource:t[26]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n[0]&&(o.dates=[t[23]]),2&n[0]&&(o.resource=t[26]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Pr(t){let e,n,o,r,l=lt(t[1]),i=[];for(let e=0;e<l.length;e+=1)i[e]=Ar(br(t,l,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",o=t[5].resource)},m(t,o){y(t,e,o);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,c){if(3&c[0]){let o;for(l=lt(t[1]),o=0;o<l.length;o+=1){const r=br(t,l,o);i[o]?(i[o].p(r,c),ot(i[o],1)):(i[o]=Ar(r),i[o].c(),ot(i[o],1),i[o].m(e,n))}for(et(),o=l.length;o<i.length;o+=1)s(o);nt()}(!r||32&c[0]&&o!==(o=t[5].resource))&&E(e,"class",o)},i(t){if(!r){for(let t=0;t<l.length;t+=1)ot(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);r=!1},d(t){t&&w(e),b(i,t)}}}function Rr(t){let e,n,o,r;const l=[Br,Hr],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function Fr(t){let e,n;return e=new zo({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};12&n[0]&&(o.date=t[2]?t[17]:t[20]),12&n[0]&&(o.resource=t[2]?t[20]:t[17]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function zr(t){let e,n,o,r,l=lt(t[3][1]),i=[];for(let e=0;e<l.length;e+=1)i[e]=Fr(vr(t,l,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",o=t[5].resource)},m(t,o){y(t,e,o);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,c){if(12&c[0]){let o;for(l=lt(t[3][1]),o=0;o<l.length;o+=1){const r=vr(t,l,o);i[o]?(i[o].p(r,c),ot(i[o],1)):(i[o]=Fr(r),i[o].c(),ot(i[o],1),i[o].m(e,n))}for(et(),o=l.length;o<i.length;o+=1)s(o);nt()}(!r||32&c[0]&&o!==(o=t[5].resource))&&E(e,"class",o)},i(t){if(!r){for(let t=0;t<l.length;t+=1)ot(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);r=!1},d(t){t&&w(e),b(i,t)}}}function Ir(t){let e,n,o=lt(t[3][0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=zr(mr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(44&n[0]){let i;for(o=lt(t[3][0]),i=0;i<o.length;i+=1){const l=mr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=zr(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Gr(t){let e,n,o,r,l,i,s,c,a,u;n=new mo({props:{$$slots:{default:[Ur]},$$scope:{ctx:t}}});let d=t[8]&&Lr(t);return a=new _o({props:{$$slots:{default:[Ir]},$$scope:{ctx:t}}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),r=k("div"),s=_(),d&&d.c(),c=_(),ct(a.$$.fragment),E(r,"class",l=t[5].hiddenScroll),E(e,"class",i=t[5].header)},m(t,l){y(t,e,l),at(n,e,null),v(e,o),v(e,r),y(t,s,l),d&&d.m(t,l),y(t,c,l),at(a,t,l),u=!0},p(t,o){const s={};252&o[0]|16&o[1]&&(s.$$scope={dirty:o,ctx:t}),n.$set(s),(!u||32&o[0]&&l!==(l=t[5].hiddenScroll))&&E(r,"class",l),(!u||32&o[0]&&i!==(i=t[5].header))&&E(e,"class",i),t[8]?d?(d.p(t,o),256&o[0]&&ot(d,1)):(d=Lr(t),d.c(),ot(d,1),d.m(c.parentNode,c)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const f={};44&o[0]|16&o[1]&&(f.$$scope={dirty:o,ctx:t}),a.$set(f)},i(t){u||(ot(n.$$.fragment,t),ot(d),ot(a.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(a.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(c)),ut(n),d&&d.d(t),ut(a,t)}}}function jr(t,e,n){let o,r,l,i,s,c,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:p,_intlDayHeader:$,_intlDayHeaderAL:g,allDaySlot:m,theme:v}=R("state");a(t,f,(t=>n(2,l=t))),a(t,h,(t=>n(0,o=t))),a(t,p,(t=>n(1,r=t))),a(t,$,(t=>n(7,c=t))),a(t,g,(t=>n(6,s=t))),a(t,m,(t=>n(8,u=t))),a(t,v,(t=>n(5,i=t)));let y=[];return t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,d=l?[o,r]:[r,o])},[o,r,l,d,y,i,s,c,u,f,h,p,$,g,m,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}class Or extends ft{constructor(t){super(),dt(this,t,jr,Gr,i,{},null,[-1,-1])}}function Wr(t,e,n){let o,r,l,{resources:i,_resBgColor:s,_resTxtColor:c}=R("state");return a(t,i,(t=>n(3,o=t))),a(t,s,(t=>n(5,l=t))),a(t,c,(t=>n(4,r=t))),$(s,l=t=>{let e=o.find((e=>t.resourceIds.includes(e.id)));return e?.eventBackgroundColor},l),$(c,r=t=>{let e=o.find((e=>t.resourceIds.includes(e.id)));return e?.eventTextColor},r),[i,s,c]}let Yr=class extends ft{constructor(t){super(),dt(this,t,Wr,null,i,{})}};var qr={createOptions(t){t.resources=[],t.datesAboveResources=!1,t.filterResourcesWithEvents=!1,t.resourceLabelContent=void 0,t.resourceLabelDidMount=void 0,t.buttonText.resourceTimeGridDay="day",t.buttonText.resourceTimeGridWeek="week",t.theme.resource="ec-resource",t.theme.resourceTitle="ec-resource-title",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:ve,component:Or,duration:{days:1},theme:xe("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:ye,component:Or,duration:{weeks:1},theme:xe("ec-time-grid ec-resource-week-view")}},createParsers(t){t.resources=hr},createStores(t){"_times"in t||fr.createStores(t),t._auxiliary.update((t=>[...t,Yr])),t._viewResources=function(t){return gt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,o,r]=t,l=e;return n&&(l=e.filter((t=>{for(let e of o)if("background"!==e.display&&e.resourceIds.includes(t.id)&&e.start<r.end&&e.end>r.start)return!0;return!1}))),l.length||(l=hr([{}])),l}))}(t)}};let Xr=!1;function Vr(t,e,n){return Gt(e,It(n,t))}const{window:Jr}=m;function Kr(e){let n,o;return{c:t,m(t,r){n||(o=[T(Jr,"pointermove",e[31]),T(Jr,"pointerup",e[32]),T(Jr,"pointercancel",e[32]),T(Jr,"scroll",e[0]),T(Jr,"selectstart",Zr(e[33])),T(Jr,"contextmenu",(function(){l(Zr(e[41]))&&Zr(e[41]).apply(this,arguments)})),T(Jr,"touchstart",e[34]),T(Jr,"touchmove",e[40],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,r(o)}}}function Qr(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function Zr(t){return e=>{t()&&e.preventDefault()}}function tl(t,e,n){let o,i,s,c,u,d,f,h,p,g,m,v,y,w,b,k,x,_,C,D,E,S,M,U,L,H,B,N,A,P,z,I,G,j,O,W,Y,q,X,V,J,K,Q,Z,tt,et,nt,ot,rt,lt,it,st,ct,at,{_iEvents:ut,_iClass:dt,_events:ft,_view:ht,_dayGrid:pt,_draggable:$t,dateClick:gt,dragScroll:mt,datesAboveResources:vt,eventDragMinDistance:yt,eventDragStart:wt,eventDragStop:bt,eventDrop:Dt,eventLongPressDelay:Et,eventResizeStart:Ut,eventResizeStop:Lt,eventResize:Ht,longPressDelay:Bt,selectable:Nt,select:At,selectBackgroundColor:Pt,selectLongPressDelay:Ft,selectMinDistance:zt,slotDuration:jt,slotHeight:Yt,unselect:qt,unselectAuto:Xt,unselectCancel:Vt,view:te}=R("state");function ee(t){window.getSelection().removeAllRanges(),q=V=t.clientX,X=J=t.clientY;let e=Kt(V,J);({allDay:nt,date:j,resource:W}=Jt(e)(J)),K=Wt(e,W?4:3),Z=Wt(e,W&&(1===P||L)?2:1),oe(),"mouse"!==t.pointerType&&n(1,ct=setTimeout((()=>{P&&(z=!0,ne(t))}),(se()?U:M)??S))}function ne(t){if(z||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(V-q,2)+Math.pow(J-X,2))>=(se()?E:D)){z=!0,de(t),$(dt,f=ot,f),c[0]||(se()?$(ut,c[0]={id:"{select}",allDay:I.allDay,start:I.start,title:"",display:"preview",extendedProps:{},backgroundColor:u,resourceIds:I.resourceIds},c):function(t,e){l(e)&&e({event:ce(I),jsEvent:t,view:Qt(o)});G=I.display,I.display="preview",$(ut,c[0]=ae(I),c),I.display="ghost",ft.set(s)}(t,ie()?C:_));let e=Kt(Vr(V,at[0],at[1]),Vr(J,at[2],at[3]));if(e){let t;({allDay:t,date:O,resource:Y}=Jt(e)(J)),t===nt&&(et=kt((O-j)/1e3),$(ut,c[0].end=_t(xt(I.end),et),c),ie()?c[0].end<rt&&$(ut,c[0].end=rt,c):se()?c[0].end<I.end?($(ut,c[0].start=Ct(c[0].end,lt),c),$(ut,c[0].end=I.end,c)):$(ut,c[0].start=I.start,c):($(ut,c[0].start=_t(xt(I.start),et),c),W&&($(ut,c[0].resourceIds=I.resourceIds.filter((t=>t!==W.id)),c),c[0].resourceIds.push(Y.id))))}}if(x){let t=2*k;e=()=>{K&&(J<t&&window.scrollBy(0,Gt(-10,(J-t)/3)),J<Q.top+t&&(K.scrollTop+=Gt(-10,(J-Q.top-t)/3)),J>window.innerHeight-t&&window.scrollBy(0,It(10,(J-window.innerHeight+t)/3)),J>Q.bottom-t&&(K.scrollTop+=It(10,(J-Q.bottom+t)/3)))},Xr||(Xr=!0,window.requestAnimationFrame((()=>{e(),Xr=!1})))}var e}function oe(){Q=Ot(K),tt=Ot(Z),at=[Gt(0,tt.left+(d?0:8)),It(document.documentElement.clientWidth,tt.right)-2,Gt(0,Q.top),It(document.documentElement.clientHeight,Q.bottom)-2]}function re(){$(ut,c[0]=null,c)}function le(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,ft.set(s)}function ie(){return 2===P}function se(){return 3===P}function ue(){return P&&P<4}function de(t){it&&(it=!1,re(),l(i)&&i({jsEvent:t,view:Qt(o)}))}a(t,ut,(t=>n(69,c=t))),a(t,dt,(t=>n(72,f=t))),a(t,ft,(t=>n(68,s=t))),a(t,ht,(t=>n(66,o=t))),a(t,pt,(t=>n(71,d=t))),a(t,$t,(t=>n(94,A=t))),a(t,gt,(t=>n(73,h=t))),a(t,mt,(t=>n(82,x=t))),a(t,vt,(t=>n(90,L=t))),a(t,yt,(t=>n(85,D=t))),a(t,wt,(t=>n(83,_=t))),a(t,bt,(t=>n(76,m=t))),a(t,Dt,(t=>n(74,p=t))),a(t,Et,(t=>n(88,M=t))),a(t,Ut,(t=>n(84,C=t))),a(t,Lt,(t=>n(77,v=t))),a(t,Ht,(t=>n(75,g=t))),a(t,Bt,(t=>n(87,S=t))),a(t,Nt,(t=>n(93,N=t))),a(t,At,(t=>n(78,y=t))),a(t,Pt,(t=>n(70,u=t))),a(t,Ft,(t=>n(89,U=t))),a(t,zt,(t=>n(86,E=t))),a(t,jt,(t=>n(91,H=t))),a(t,Yt,(t=>n(81,k=t))),a(t,qt,(t=>n(67,i=t))),a(t,Xt,(t=>n(80,b=t))),a(t,Vt,(t=>n(79,w=t))),a(t,te,(t=>n(92,B=t))),ht.subscribe(de);return[function(){ue()&&(oe(),ne())},ct,ut,dt,ft,ht,pt,$t,gt,mt,vt,yt,wt,bt,Dt,Et,Ut,Lt,Ht,Bt,Nt,At,Pt,Ft,zt,jt,Yt,qt,Xt,Vt,te,function(t){ue()&&t.isPrimary&&(V=t.clientX,J=t.clientY,ne(t))},function(t){if(!it||!b||w&&t.target.closest(w)||de(t),P&&t.isPrimary){if(z)if(se()){if(it=!0,l(y)){let{start:e,end:n}=ce(c[0]);y({start:e,end:n,startStr:Mt(c[0].start),endStr:Mt(c[0].end),allDay:nt,jsEvent:t,view:Qt(o),resource:W})}}else{I.display=G;let e=ie()?v:m;l(e)&&e({event:ce(I),jsEvent:t,view:Qt(o)});let n=ae(I);if(le(I,c[0]),re(),e=ie()?g:p,l(e)){let r,l=I;r=ie()?{endDelta:et}:{delta:et,oldResource:W!==Y?W:void 0,newResource:W!==Y?Y:void 0},e(Rt(r,{event:ce(I),oldEvent:ce(n),jsEvent:t,view:Qt(o),revert(){le(l,n)}}))}}else if((4===P||se())&&l(h)&&!st){V=t.clientX,J=t.clientY;let e=Kt(V,J);if(e){let{allDay:n,date:r,resource:l}=Jt(e)(J);h({allDay:n,date:St(r),dateStr:Mt(r),dayEl:e,jsEvent:t,view:Qt(o),resource:l})}}z=!1,P=q=X=V=J=I=G=j=O=W=Y=et=nt=$(dt,f=rt=lt=void 0,f),K=Z=Q=tt=void 0,ct&&(clearTimeout(ct),n(1,ct=void 0))}st=!1},ue,function(t){if(ue()){let e=t.target,n=[],o=()=>r(n);n.push(T(e,"touchmove",Zr((()=>z)))),n.push(T(e,"touchend",o)),n.push(T(e,"touchcancel",o))}},function(t,e,n,o){P||(P=Qr(e)?n?2:A(t)?1:5:5,ue()&&(I=t,ee(e),o&&(j=o),ot=n?nt?"resizingX":"resizingY":"dragging",n&&(rt=xt(I.start),nt?(rt.setUTCHours(I.end.getUTCHours(),I.end.getUTCMinutes(),I.end.getUTCSeconds(),0),rt<I.start&&Tt(rt)):_t(rt,H)),ne(e)))},function(t){P||(P=Qr(t)?N&&!Zt(B)?3:4:5,ue()&&(ee(t),ot="selecting",lt=nt?kt({day:1}):H,I={allDay:nt,start:j,end:_t(xt(j),lt),resourceIds:W?[W.id]:[]},ne(t)))},function(){P||(P=5)},de,function(){st=!0},function(e){F.call(this,t,e)},()=>ct]}class el extends ft{constructor(t){super(),dt(this,t,tl,Kr,i,{drag:35,select:36,noAction:37,handleScroll:0,unselect:38,noClick:39},null,[-1,-1,-1,-1])}get drag(){return this.$$.ctx[35]}get select(){return this.$$.ctx[36]}get noAction(){return this.$$.ctx[37]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[38]}get noClick(){return this.$$.ctx[39]}}function nl(e){let n,o;return{c:t,m(t,r){n||(o=[T(window,"pointermove",e[5]),T(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,r(o)}}}function ol(t){return t.isPrimary&&"mouse"===t.pointerType}function rl(t,e,n){let o,r,l,i,s,c,u,d,f,h,{_iEvents:p,_events:g,_viewDates:m,_slotTimeLimits:v,slotDuration:y,slotHeight:w,hiddenDays:b,_view:k,datesAboveResources:x,theme:_}=R("state");function C(){if(c){if(u){let t=s-d.top;h=_t(_t(xt(c),i.min),r,zt(t/l))}else h=c;o[1]||$(p,o[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent"},o),$(p,o[1].start=h,o),$(p,o[1].end=_t(xt(h),r),o),$(p,o[1].resourceIds=f?[f.id]:[],o)}}function T(){c=u=$(p,o[1]=null,o)}return a(t,p,(t=>n(9,o=t))),a(t,v,(t=>n(18,i=t))),a(t,y,(t=>n(16,r=t))),a(t,w,(t=>n(17,l=t))),t.$$.update=()=>{512&t.$$.dirty&&o[0]&&T()},[function(){u&&(d=Ot(u),C())},p,v,y,w,function(t){ol(t)&&(s=t.clientY,C())},function(t,e,n,o){ol(n)&&(c=t,u=e,d=Ot(u),s=n.clientY,f=o)},function(t,e){ol(e)&&(c=t,u=null,s=f=void 0)},function(t){ol(t)&&T()},o]}class ll extends ft{constructor(t){super(),dt(this,t,rl,nl,i,{enterTimeGrid:6,enterDayGrid:7,leave:8,handleScroll:0})}get enterTimeGrid(){return this.$$.ctx[6]}get enterDayGrid(){return this.$$.ctx[7]}get leave(){return this.$$.ctx[8]}get handleScroll(){return this.$$.ctx[0]}}function il(t){let e,n,o,r;return{c(){e=k("div"),E(e,"class",n=t[1].resizer)},m(n,l){y(n,e,l),o||(r=T(e,"pointerdown",t[8]),o=!0)},p(t,o){2&o&&n!==(n=t[1].resizer)&&E(e,"class",n)},d(t){t&&w(e),o=!1,r()}}}function sl(e){let n,o=e[0]&&il(e);return{c(){o&&o.c(),n=C()},m(t,e){o&&o.m(t,e),y(t,n,e)},p(t,e){let[r]=e;t[0]?o?o.p(t,r):(o=il(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(t){t&&w(n),o&&o.d(t)}}}function cl(t,e,n){let o,r,l,i,{event:s}=e,{theme:c,eventDurationEditable:u,editable:d}=R("state");return a(t,c,(t=>n(1,l=t))),a(t,u,(t=>n(7,r=t))),a(t,d,(t=>n(6,o=t))),t.$$set=t=>{"event"in t&&n(5,s=t.event)},t.$$.update=()=>{224&t.$$.dirty&&n(0,i=!ge(s.display)&&!$e(s.display)&&((s.durationEditable??r)||(s.editable??o)))},[i,l,c,u,d,s,o,r,function(e){F.call(this,t,e)}]}class al extends ft{constructor(t){super(),dt(this,t,cl,sl,i,{event:5})}}function ul(t){let e,n;return e=new ll({props:{}}),t[16](e),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){e.$set({})},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(n){t[16](null),ut(e,n)}}}function dl(t){let e,n,o,r;e=new el({props:{}}),t[15](e);let l=t[1]&&ul(t);return{c(){ct(e.$$.fragment),n=_(),l&&l.c(),o=C()},m(t,i){at(e,t,i),y(t,n,i),l&&l.m(t,i),y(t,o,i),r=!0},p(t,n){let[r]=n;e.$set({}),t[1]?l?(l.p(t,r),2&r&&ot(l,1)):(l=ul(t),l.c(),ot(l,1),l.m(o.parentNode,o)):l&&(et(),rt(l,1,1,(()=>{l=null})),nt())},i(t){r||(ot(e.$$.fragment,t),ot(l),r=!0)},o(t){rt(e.$$.fragment,t),rt(l),r=!1},d(r){r&&(w(n),w(o)),t[15](null),ut(e,r),l&&l.d(r)}}}function fl(t,e,n){let o,r,l,i,s,c,u,d,{theme:f,editable:h,eventStartEditable:p,eventDurationEditable:g,pointer:m,_bodyEl:v,_interaction:y,_iClasses:w,_draggable:b}=R("state");function k(){for(let t of Object.values(o))t?.handleScroll?.()}return a(t,f,(t=>n(11,l=t))),a(t,h,(t=>n(13,c=t))),a(t,p,(t=>n(14,u=t))),a(t,m,(t=>n(1,d=t))),a(t,v,(t=>n(10,r=t))),a(t,y,(t=>n(0,o=t))),a(t,w,(t=>n(17,s=t))),a(t,b,(t=>n(12,i=t))),$(y,o.resizer=al,o),t.$$.update=()=>{24576&t.$$.dirty&&$(b,i=t=>(t.startEditable??u)||(t.editable??c),i),6144&t.$$.dirty&&$(w,s=(t,e)=>{let{display:n}=e;return $e(n)?[l[n]]:!ge(n)&&i(e)?[l.draggable]:[]},s),1024&t.$$.dirty&&r&&T(r,"scroll",k)},[o,d,f,h,p,m,v,y,w,b,r,l,i,c,u,function(t){I[t?"unshift":"push"]((()=>{o.action=t,y.set(o)}))},function(t){I[t?"unshift":"push"]((()=>{o.pointer=t,y.set(o)}))}]}class hl extends ft{constructor(t){super(),dt(this,t,fl,dl,i,{})}}var pl={createOptions(t){t.dateClick=void 0,t.dragScroll=!0,t.editable=!1,t.eventDragMinDistance=5,t.eventDragStart=void 0,t.eventDragStop=void 0,t.eventDrop=void 0,t.eventDurationEditable=!0,t.eventLongPressDelay=void 0,t.eventResizeStart=void 0,t.eventResizeStop=void 0,t.eventResize=void 0,t.eventStartEditable=!0,t.longPressDelay=1e3,t.pointer=!1,t.select=void 0,t.selectBackgroundColor=void 0,t.selectLongPressDelay=void 0,t.selectMinDistance=5,t.unselect=void 0,t.unselectAuto=!0,t.unselectCancel="",t.theme.draggable="ec-draggable",t.theme.ghost="ec-ghost",t.theme.preview="ec-preview",t.theme.pointer="ec-pointer",t.theme.resizer="ec-resizer",t.theme.dragging="ec-dragging",t.theme.resizingY="ec-resizing-y",t.theme.resizingX="ec-resizing-x",t.theme.selecting="ec-selecting"},createStores(e){e._draggable=$t(t),e._auxiliary.update((t=>[...t,hl]))}};return class extends rn{constructor(t,e){super({target:t,props:{plugins:[Gn,ao,fr,qr,pl],options:e}})}get view(){return this.getView()}}}();
|
|
5
|
+
var EventCalendar=function(){"use strict";function t(){}const e=t=>t;function n(t){return t()}function o(){return Object.create(null)}function r(t){t.forEach(n)}function l(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];if(null==e){for(const t of o)t(void 0);return t}const l=e.subscribe(...o);return l.unsubscribe?()=>l.unsubscribe():l}function c(t){let e;return s(t,(t=>e=t))(),e}function a(t,e,n){t.$$.on_destroy.push(s(e,n))}function u(t,e,n,o){if(t){const r=d(t,e,n,o);return t[0](r)}}function d(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}function f(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}function h(t,e,n,o,r,l){if(r){const i=d(e,n,o,l);t.p(i,r)}}function p(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function g(e){return e&&l(e.destroy)?e.destroy:t}const m="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function v(t,e){t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function k(t){return document.createElement(t)}function x(t){return document.createTextNode(t)}function _(){return x(" ")}function C(){return x("")}function T(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function D(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function E(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function S(t,e){e=""+e,t.data!==e&&(t.data=e)}function M(t,e,n,o){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function U(t,e){return new t(e)}let L;function H(t){L=t}function B(){if(!L)throw new Error("Function called outside component initialization");return L}function N(t){B().$$.on_mount.push(t)}function A(t){B().$$.after_update.push(t)}function P(){const t=B();return function(e,n){let{cancelable:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.$$.callbacks[e];if(r){const l=function(t,e){let{bubbles:n=!1,cancelable:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:o})}(e,n,{cancelable:o});return r.slice().forEach((e=>{e.call(t,l)})),!l.defaultPrevented}return!0}}function R(t){return B().$$.context.get(t)}function F(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const z=[],I=[];let G=[];const j=[],O=Promise.resolve();let W=!1;function Y(){W||(W=!0,O.then(K))}function q(){return Y(),O}function X(t){G.push(t)}const V=new Set;let J=0;function K(){if(0!==J)return;const t=L;do{try{for(;J<z.length;){const t=z[J];J++,H(t),Q(t.$$)}}catch(t){throw z.length=0,J=0,t}for(H(null),z.length=0,J=0;I.length;)I.pop()();for(let t=0;t<G.length;t+=1){const e=G[t];V.has(e)||(V.add(e),e())}G.length=0}while(z.length);for(;j.length;)j.pop()();W=!1,V.clear(),H(t)}function Q(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(X)}}const Z=new Set;let tt;function et(){tt={r:0,c:[],p:tt}}function nt(){tt.r||r(tt.c),tt=tt.p}function ot(t,e){t&&t.i&&(Z.delete(t),t.i(e))}function rt(t,e,n,o){if(t&&t.o){if(Z.has(t))return;Z.add(t),tt.c.push((()=>{Z.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function lt(t){return void 0!==t?.length?t:Array.from(t)}function it(t,e){rt(t,1,1,(()=>{e.delete(t.key)}))}function st(t,e,n,o,l,i,s,c,a,u,d,f){let h=t.length,p=i.length,$=h;const g={};for(;$--;)g[t[$].key]=$;const m=[],v=new Map,y=new Map,w=[];for($=p;$--;){const t=f(l,i,$),o=n(t);let r=s.get(o);r?w.push((()=>r.p(t,e))):(r=u(o,t),r.c()),v.set(o,m[$]=r),o in g&&y.set(o,Math.abs($-g[o]))}const b=new Set,k=new Set;function x(t){ot(t,1),t.m(c,d),s.set(t.key,t),d=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],o=e.key,r=n.key;e===n?(d=e.first,h--,p--):v.has(r)?!s.has(o)||b.has(o)?x(e):k.has(r)?h--:y.get(o)>y.get(r)?(k.add(o),x(e)):(b.add(r),h--):(a(n,s),h--)}for(;h--;){const e=t[h];v.has(e.key)||a(e,s)}for(;p;)x(m[p-1]);return r(w),m}function ct(t){t&&t.c()}function at(t,e,o){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,o),X((()=>{const e=t.$$.on_mount.map(n).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):r(e),t.$$.on_mount=[]})),s.forEach(X)}function ut(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];G.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),G=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function dt(e,n,l,i,s,c){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=L;H(e);const f=e.$$={fragment:null,ctx:[],props:c,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};a&&a(f.root);let h=!1;if(f.ctx=l?l(e,n.props||{},(function(t,n){const o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),h&&function(t,e){-1===t.$$.dirty[0]&&(z.push(t),Y(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(e,t)),n})):[],f.update(),h=!0,r(f.before_update),f.fragment=!!i&&i(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(w)}else f.fragment&&f.fragment.c();n.intro&&ot(e.$$.fragment),at(e,n.target,n.anchor),K()}H(d)}class ft{$$=void 0;$$set=void 0;$destroy(){ut(this,1),this.$destroy=t}$on(e,n){if(!l(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ht=[];function pt(t,e){return{subscribe:$t(t,e).subscribe}}function $t(e){let n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const r=new Set;function l(t){if(i(e,t)&&(e=t,n)){const t=!ht.length;for(const t of r)t[1](),ht.push(t,e);if(t){for(let t=0;t<ht.length;t+=2)ht[t][0](ht[t+1]);ht.length=0}}}function s(t){l(t(e))}return{set:l,update:s,subscribe:function(i){const c=[i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return r.add(c),1===r.size&&(n=o(l,s)||t),i(e),()=>{r.delete(c),0===r.size&&n&&(n(),n=null)}}}}function gt(e,n,o){const i=!Array.isArray(e),c=i?[e]:e;if(!c.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=n.length<2;return pt(o,((e,o)=>{let u=!1;const d=[];let f=0,h=t;const p=()=>{if(f)return;h();const r=n(i?d[0]:d,e,o);a?e(r):h=l(r)?r:t},$=c.map(((t,e)=>s(t,(t=>{d[e]=t,f&=~(1<<e),u&&p()}),(()=>{f|=1<<e}))));return u=!0,p(),function(){r($),h(),u=!1}}))}function mt(t){return function(e){return"Enter"===e.key||" "===e.key&&!e.preventDefault()?t.call(this,e):void 0}}function vt(t,e){let n={update(e){"string"==typeof e?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}};return n.update(e),n}function yt(t,e){const n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),{destroy(){document.removeEventListener(e,n,!0)}}}const wt=86400;function bt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0!==t?t instanceof Date?Bt(t):function(t){const e=t.match(/\d+/g);return new Date(Date.UTC(Number(e[0]),Number(e[1])-1,Number(e[2]),Number(e[3]||0),Number(e[4]||0),Number(e[5]||0)))}(t):Bt(new Date)}function kt(t){if("number"==typeof t)t={seconds:t};else if("string"==typeof t){let e=0,n=2;for(let o of t.split(":",3))e+=parseInt(o,10)*Math.pow(60,n--);t={seconds:e}}else t instanceof Date&&(t={hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds()});let e=t.weeks||t.week||0;return{years:t.years||t.year||0,months:t.months||t.month||0,days:7*e+(t.days||t.day||0),seconds:60*(t.hours||t.hour||0)*60+60*(t.minutes||t.minute||0)+(t.seconds||t.second||0),inWeeks:!!e}}function xt(t){return new Date(t.getTime())}function _t(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.setUTCFullYear(t.getUTCFullYear()+n*e.years);let o=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(o),o%=12,o<0&&(o+=12);t.getUTCMonth()!==o;)Dt(t);return t.setUTCDate(t.getUTCDate()+n*e.days),t.setUTCSeconds(t.getUTCSeconds()+n*e.seconds),t}function Ct(t,e){return _t(t,e,-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))}function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setUTCDate(t.getUTCDate()+e),t}function Dt(t){return Tt(t,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function Et(t){return t.setUTCHours(0,0,0,0),t}function St(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:19;return t.toISOString().substring(0,e)}function Ut(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return n.every((e=>t.getTime()===e.getTime()))}function Lt(t,e){let n=e-t.getUTCDay();return t.setUTCDate(t.getUTCDate()+(n<=0?n:n-7)),t}function Ht(t){return"string"==typeof t&&t.length<=10}function Bt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Nt(t,e,n){n.update((n=>n.set(e,t)))}function At(t){r(t),t.clear()}function Pt(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}function Rt(){return Object.assign(...arguments)}function Ft(t){return Object.keys(t)}function zt(t){return Math.floor(t)}function It(){return Math.min(...arguments)}function Gt(){return Math.max(...arguments)}function jt(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=document.createElement(t);r.className=e,"string"==typeof n?r.innerText=n:n.domNodes?r.replaceChildren(...n.domNodes):n.html&&(r.innerHTML=n.html);for(let t of o)r.setAttribute(...t);return r}function Ot(t){return t.getBoundingClientRect()}function Wt(t,e){for(;e--;)t=t.parentElement;return t}function Yt(t){return Ot(t).height}let qt=Symbol("ec");function Xt(t,e){t[qt]=e}function Vt(t){return!!t?.[qt]}function Jt(t){return t[qt]}function Kt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let o of n.elementsFromPoint(t,e)){if(Vt(o))return o;if(o.shadowRoot){let n=Kt(t,e,o.shadowRoot);if(n)return n}}return null}function Qt(t){return(t=Rt({},t)).currentStart=St(t.currentStart),t.currentEnd=St(t.currentEnd),t.activeStart=St(t.activeStart),t.activeEnd=St(t.activeEnd),t}function Zt(t){return t.startsWith("list")}let te=1;function ee(t){return t.map((t=>({id:"id"in t?String(t.id):`{generated-${te++}}`,resourceIds:Array.isArray(t.resourceIds)?t.resourceIds.map(String):"resourceId"in t?[String(t.resourceId)]:[],allDay:t.allDay??(Ht(t.start)&&Ht(t.end)),start:bt(t.start),end:bt(t.end),title:t.title||"",titleHTML:t.titleHTML||"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display||"auto",extendedProps:t.extendedProps||{},backgroundColor:t.backgroundColor||t.color,textColor:t.textColor})))}function ne(t){return t.map((t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}})))}function oe(t,e,n){return{start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t}}function re(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function le(t,e,n,o,r,i){let s=r.formatRange(t.start,e&&"pointer"!==t.event.display?(c=xt(t.start),a=t.end,c.setUTCHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),0),c):t.start);var c,a;let u;if(n)u=l(n)?n({event:ce(t.event),timeText:s,view:Qt(i)}):n;else{let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ie(s,t,o)];break;default:e=[...t.event.allDay?[]:[ie(s,t,o)],jt("h4",o.eventTitle,t.event.title)]}u={domNodes:e}}return[s,u]}function ie(t,e,n){return jt("time",n.eventTime,t,[["datetime",Mt(e.start)]])}function se(t,e,n){return t?(l(t)&&(t=t({event:ce(e),view:Qt(n)})),Array.isArray(t)?t:[t]):[]}function ce(t){return ue(t,St)}function ae(t){return ue(t,xt)}function ue(t,e){return(t=Rt({},t)).start=e(t.start),t.end=e(t.end),t}function de(t,e){let n={};if(t.length){let o;re(t);for(let r of t){let t=[],l=Et(xt(r.start));for(;r.end>l;){if(!e.includes(l.getUTCDay())&&(t.push(xt(l)),t.length>1)){let t=l.getTime();n[t]?n[t].chunks.push(r):n[t]={sorted:!1,chunks:[r]}}Tt(l)}t.length?(r.date=t[0],r.days=t.length,r.dates=t,r.start<t[0]&&(r.start=t[0]),Et(xt(r.end))>t[t.length-1]&&(r.end=t[t.length-1])):(r.date=Et(xt(r.start)),r.days=1,r.dates=[r.date]),o&&Ut(o.date,r.date)&&(r.prev=o),o=r}}return n}function fe(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let o=1,r=t.date.getTime();if(e[r]?.sorted||e[r]?.chunks.every((t=>"top"in t))){e[r].sorted||(e[r].chunks.sort(((t,e)=>t.top-e.top)),e[r].sorted=!0);for(let n of e[r].chunks)if(t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;o+=e,t.top+=e,t.bottom+=e}}return o}function he(t,e){t.length=e.length;for(let e of t)e?.reposition?.()}function pe(t,e,n,o,r){return(t.start<n&&t.end>e||!r&&Ut(t.start,t.end,e))&&(void 0===o||t.resourceIds.includes(o.id))}function $e(t){return function(t){return"preview"===t}(t)||me(t)||function(t){return"pointer"===t}(t)}function ge(t){return"background"===t}function me(t){return"ghost"===t}function ve(t){return ke(t,"day")}function ye(t){return ke(t,"week")}function we(t){return ke(t,"month")}function be(t){return ke(t,"year")}function ke(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function xe(t){return e=>({...e,view:t})}function _e(t,e){return gt([t,e],(t=>{let[e,n]=t,o=l(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>o.format(St(t))}}))}function Ce(t,e){return gt([t,e],(t=>{let e,[n,o]=t;if(l(o))e=o;else{let t=new Intl.DateTimeFormat(n,o);e=(e,n)=>{if(e<=n)return t.formatRange(e,n);{let o=t.formatRangeToParts(n,e),r="",l=["startRange","endRange"],i=[!1,!1];for(let t of o){let e=l.indexOf(t.source);e>=0?i[e]||(r+=Te(l[1-e],o),i[e]=!0):r+=t.value}return r}}}return{formatRange:(t,n)=>e(St(t),St(n))}}))}function Te(t,e){let n="";for(let o of e)o.source==t&&(n+=o.value);return n}class De{constructor(n,o){let r=function(t){let e={allDayContent:void 0,allDaySlot:!0,buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"long"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventTextColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventSources:[],eventTimeFormat:{hour:"numeric",minute:"2-digit"},firstDay:0,flexibleSlotTimeLimits:!1,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,nowIndicator:!1,selectable:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotEventOverlap:!0,slotHeight:24,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",theme:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",compact:"ec-compact",content:"ec-content",day:"ec-day",dayHead:"ec-day-head",days:"ec-days",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",extra:"ec-extra",handle:"ec-handle",header:"ec-header",hiddenScroll:"ec-hidden-scroll",highlight:"ec-highlight",icon:"ec-icon",line:"ec-line",lines:"ec-lines",nowIndicator:"ec-now-indicator",otherMonth:"ec-other-month",sidebar:"ec-sidebar",sidebarTitle:"ec-sidebar-title",today:"ec-today",time:"ec-time",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"],withScroll:"ec-with-scroll"},titleFormat:{year:"numeric",month:"short",day:"numeric"},view:void 0,viewDidMount:void 0,views:{}};for(let n of t)n.createOptions?.(e);return e}(n=n||[]),i=function(t){let e={date:t=>Et(bt(t)),duration:kt,events:ee,eventSources:ne,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map(bt),scrollTime:kt,slotDuration:kt,slotMaxTime:kt,slotMinTime:kt};for(let n of t)n.createParsers?.(e);return e}(n);r=Ee(r,i),o=Ee(o,i);for(let[t,e]of Object.entries(r))this[t]=$t(e);this._queue=$t(new Map),this._queue2=$t(new Map),this._tasks=new Map,this._auxiliary=$t([]),this._dayGrid=gt(this.view,(t=>t?.startsWith("dayGrid"))),this._currentRange=function(t){return gt([t.date,t.duration,t.firstDay,t._dayGrid],(t=>{let e,[n,o,r,l]=t,i=xt(n);return l?i.setUTCDate(1):o.inWeeks&&Lt(i,r),e=_t(xt(i),o),{start:i,end:e}}))}(this),this._activeRange=function(t){return gt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,o,r]=t,l=xt(e.start),i=xt(e.end);if(r)Lt(l,n),function(t,e){let n=e-t.getUTCDay();t.setUTCDate(t.getUTCDate()+(n>=0?n:n+7))}(i,n);else if(o.days||o.seconds>wt){_t(Dt(i),o);let t=Dt(xt(i));t<l&&(l=t)}return{start:l,end:i}}))}(this),this._fetchedRange=$t({start:void 0,end:void 0}),this._events=function(t){let e,n=$t([]),o=0,r={};return gt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,i)=>Nt((()=>{let[t,r,s,c,a,u]=n;if(r.length){if(!c.start||c.start>s.start||c.end<s.end||!a){e&&e.abort(),e=new AbortController,l(u)&&!o&&u(!0);let t=()=>{0==--o&&l(u)&&u(!1)},n=[],a=e=>t(),d=e=>{n=n.concat(ee(e)),i(n),t()},f=Mt(s.start),h=Mt(s.end);for(let t of r){if(l(t.events)){let e=t.events({start:St(s.start),end:St(s.end),startStr:f,endStr:h},d,a);void 0!==e&&Promise.resolve(e).then(d,a)}else{let n=l(t.extraParams)?t.extraParams():Rt({},t.extraParams);n.start=f,n.end=h,n=new URLSearchParams(n);let o,r=t.url,i={};["GET","HEAD"].includes(t.method)?r+=(r.includes("?")?"&":"?")+n:(i["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",o=String(n)),fetch(r,{method:t.method,headers:i,body:o,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(d).catch(a)}++o}c.start=s.start,c.end=s.end}}else i(t)}),r,t._queue)),[]).subscribe(n.set),n}(this),this._now=pt(bt(),(t=>{let e=setInterval((()=>{t(bt())}),1e3);return()=>clearInterval(e)})),this._today=function(t){return gt(t._now,(t=>Et(xt(t))))}(this),this._intlEventTime=Ce(this.locale,this.eventTimeFormat),this._intlSlotLabel=_e(this.locale,this.slotLabelFormat),this._intlDayHeader=_e(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=_e(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ce(this.locale,this.titleFormat),this._bodyEl=$t(void 0),this._scrollable=$t(!1),this._viewTitle=function(t){return gt([t.date,t._activeRange,t._intlTitle,t._dayGrid],(t=>{let[e,n,o,r]=t;return r?o.formatRange(e,e):o.formatRange(n.start,Dt(xt(n.end)))}))}(this),this._viewDates=function(t){return gt([t._activeRange,t.hiddenDays],(e=>{let[n,o]=e,r=[],l=Et(xt(n.start)),i=Et(xt(n.end));for(;l<i;)o.includes(l.getUTCDay())||r.push(xt(l)),Tt(l);return!r.length&&o.length&&o.length<7&&(t.date.update((t=>{for(;o.includes(t.getUTCDay());)Tt(t);return t})),r=c(t._viewDates)),r}))}(this),this._view=function(t){return gt([t.view,t._viewTitle,t._currentRange,t._activeRange],(t=>function(t,e,n,o){return{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:o.start,activeEnd:o.end,calendar:void 0}}(...t)))}(this),this._viewComponent=$t(void 0),this._resBgColor=$t(t),this._resTxtColor=$t(t),this._interaction=$t({}),this._iEvents=$t([null,null]),this._iClasses=$t(e),this._iClass=$t(void 0),this._set=(t,e)=>{Ue(t,this)&&(i[t]&&(e=i[t](e)),this[t].set(e))},this._get=t=>Ue(t,this)?c(this[t]):void 0;for(let t of n)t.createStores?.(this);o.view&&this.view.set(o.view);let s=new Set([...Ft(r.views),...Ft(o.views??{})]);for(let t of s){let e=Se(r,r.views[t]??{}),n=Se(e,o,o.views?.[t]??{}),i=n.component;Me(n,this);for(let t of Ft(n)){let{set:o,_set:r=o,...i}=this[t];this[t]={set:["buttonText","theme"].includes(t)?i=>{if(l(i)){let l=i(e[t]);n[t]=l,o(o===r?l:i)}else n[t]=i,o(i)}:e=>{n[t]=e,o(e)},_set:r,...i}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(i),l(n.viewDidMount)&&q().then((()=>n.viewDidMount(c(this._view))));for(let t of Ft(n))this[t]._set(n[t])}}))}}}function Ee(t,e){let n={...t};for(let t of Ft(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let o of Ft(t.views))n.views[o]=Ee(t.views[o],e)}return n}function Se(){let t={};for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(let e of n){let n={};for(let o of["buttonText","theme"])l(e[o])&&(n[o]=e[o](t[o]));t={...t,...e,...n}}return t}function Me(t,e){Ft(t).filter((t=>!Ue(t,e)||"view"==t)).forEach((e=>delete t[e]))}function Ue(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function Le(t,e,n){const o=t.slice();return o[25]=e[n],o}function He(t){let e,n,o,r,l,i=t[5][t[25]]+"";function s(){return t[22](t[25])}return{c(){e=k("button"),n=x(i),E(e,"class",o=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])},m(t,o){y(t,e,o),v(e,n),r||(l=T(e,"click",s),r=!0)},p(r,l){t=r,33&l&&i!==(i=t[5][t[25]]+"")&&S(n,i),137&l&&o!==(o=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])&&E(e,"class",o)},d(t){t&&w(e),r=!1,l()}}}function Be(t){let e,n,o,r,i,s=t[6][t[25]].text+"";return{c(){e=k("button"),n=x(s),E(e,"class",o=t[3].button+" ec-"+t[25])},m(o,s){y(o,e,s),v(e,n),r||(i=T(e,"click",(function(){l(t[6][t[25]].click)&&t[6][t[25]].click.apply(this,arguments)})),r=!0)},p(r,l){t=r,65&l&&s!==(s=t[6][t[25]].text+"")&&S(n,s),9&l&&o!==(o=t[3].button+" ec-"+t[25])&&E(e,"class",o)},d(t){t&&w(e),r=!1,i()}}}function Ne(t){let e,n,o,r,l,i=t[5][t[25]]+"";return{c(){e=k("button"),n=x(i),E(e,"class",o=t[3].button+" ec-"+t[25]),e.disabled=t[1]},m(o,i){y(o,e,i),v(e,n),r||(l=T(e,"click",t[21]),r=!0)},p(t,r){33&r&&i!==(i=t[5][t[25]]+"")&&S(n,i),9&r&&o!==(o=t[3].button+" ec-"+t[25])&&E(e,"class",o),2&r&&(e.disabled=t[1])},d(t){t&&w(e),r=!1,l()}}}function Ae(t){let e,n,o,r,l,i,s,c;return{c(){e=k("button"),n=k("i"),E(n,"class",o=t[3].icon+" ec-"+t[25]),E(e,"class",r=t[3].button+" ec-"+t[25]),E(e,"aria-label",l=t[5].next),E(e,"title",i=t[5].next)},m(o,r){y(o,e,r),v(e,n),s||(c=T(e,"click",t[19]),s=!0)},p(t,s){9&s&&o!==(o=t[3].icon+" ec-"+t[25])&&E(n,"class",o),9&s&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r),32&s&&l!==(l=t[5].next)&&E(e,"aria-label",l),32&s&&i!==(i=t[5].next)&&E(e,"title",i)},d(t){t&&w(e),s=!1,c()}}}function Pe(t){let e,n,o,r,l,i,s,c;return{c(){e=k("button"),n=k("i"),E(n,"class",o=t[3].icon+" ec-"+t[25]),E(e,"class",r=t[3].button+" ec-"+t[25]),E(e,"aria-label",l=t[5].prev),E(e,"title",i=t[5].prev)},m(o,r){y(o,e,r),v(e,n),s||(c=T(e,"click",t[18]),s=!0)},p(t,s){9&s&&o!==(o=t[3].icon+" ec-"+t[25])&&E(n,"class",o),9&s&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r),32&s&&l!==(l=t[5].prev)&&E(e,"aria-label",l),32&s&&i!==(i=t[5].prev)&&E(e,"title",i)},d(t){t&&w(e),s=!1,c()}}}function Re(t){let e,n,o,r,i;return{c(){e=k("h2"),E(e,"class",n=t[3].title)},m(n,l){y(n,e,l),r||(i=g(o=vt.call(null,e,t[4])),r=!0)},p(t,r){8&r&&n!==(n=t[3].title)&&E(e,"class",n),o&&l(o.update)&&16&r&&o.update.call(null,t[4])},d(t){t&&w(e),r=!1,i()}}}function Fe(t){let e;function n(t,e){return"title"==t[25]?Re:"prev"==t[25]?Pe:"next"==t[25]?Ae:"today"==t[25]?Ne:t[6][t[25]]?Be:""!=t[25]?He:void 0}let o=n(t),r=o&&o(t);return{c(){r&&r.c(),e=C()},m(t,n){r&&r.m(t,n),y(t,e,n)},p(t,l){o===(o=n(t))&&r?r.p(t,l):(r&&r.d(1),r=o&&o(t),r&&(r.c(),r.m(e.parentNode,e)))},d(t){t&&w(e),r&&r.d(t)}}}function ze(e){let n,o=lt(e[0]),r=[];for(let t=0;t<o.length;t+=1)r[t]=Fe(Le(e,o,t));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();n=C()},m(t,e){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(t,e);y(t,n,e)},p(t,e){let[l]=e;if(917759&l){let e;for(o=lt(t[0]),e=0;e<o.length;e+=1){const i=Le(t,o,e);r[e]?r[e].p(i,l):(r[e]=Fe(i),r[e].c(),r[e].m(n.parentNode,n))}for(;e<r.length;e+=1)r[e].d(1);r.length=o.length}},i:t,o:t,d(t){t&&w(n),b(r,t)}}}function Ie(t,e,n){let o,r,l,i,s,c,u,d,f,{buttons:h}=e,{_currentRange:p,_viewTitle:g,buttonText:m,customButtons:v,date:y,duration:w,hiddenDays:b,theme:k,view:x}=R("state");a(t,p,(t=>n(20,i=t))),a(t,g,(t=>n(4,c=t))),a(t,m,(t=>n(5,u=t))),a(t,v,(t=>n(6,d=t))),a(t,y,(t=>n(2,r=t))),a(t,w,(t=>n(23,o=t))),a(t,b,(t=>n(24,l=t))),a(t,k,(t=>n(3,s=t))),a(t,x,(t=>n(7,f=t)));let _,C=Et(bt());return t.$$set=t=>{"buttons"in t&&n(0,h=t.buttons)},t.$$.update=()=>{1048576&t.$$.dirty&&n(1,_=C>=i.start&&C<i.end||null)},[h,_,r,s,c,u,d,f,p,g,m,v,y,w,b,k,x,C,function(){let t=Ct(r,o);if(l.length&&l.length<7)for(;l.includes(t.getUTCDay());)Dt(t);$(y,r=t,r)},function(){$(y,r=_t(r,o),r)},i,()=>$(y,r=xt(C),r),t=>$(x,f=t,f)]}class Ge extends ft{constructor(t){super(),dt(this,t,Ie,ze,i,{buttons:0})}}function je(t,e,n){const o=t.slice();return o[5]=e[n],o}function Oe(t,e,n){const o=t.slice();return o[8]=e[n],o}function We(t){let e,n;return e=new Ge({props:{buttons:t[8]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.buttons=t[8]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ye(t){let e,n,o,r;return n=new Ge({props:{buttons:t[8]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[1].buttonGroup)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};1&l&&(i.buttons=t[8]),n.$set(i),(!r||2&l&&o!==(o=t[1].buttonGroup))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function qe(t){let e,n,o,r;const l=[Ye,We],i=[];function s(t,e){return t[8].length>1?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function Xe(t){let e,n,o,r=lt(t[0][t[5]]),l=[];for(let e=0;e<r.length;e+=1)l[e]=qe(Oe(t,r,e));const i=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){e=k("div");for(let t=0;t<l.length;t+=1)l[t].c();n=_()},m(t,r){y(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);v(e,n),o=!0},p(t,o){if(3&o){let s;for(r=lt(t[0][t[5]]),s=0;s<r.length;s+=1){const i=Oe(t,r,s);l[s]?(l[s].p(i,o),ot(l[s],1)):(l[s]=qe(i),l[s].c(),ot(l[s],1),l[s].m(e,n))}for(et(),s=r.length;s<l.length;s+=1)i(s);nt()}},i(t){if(!o){for(let t=0;t<r.length;t+=1)ot(l[t]);o=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);o=!1},d(t){t&&w(e),b(l,t)}}}function Ve(t){let e,n,o,r=lt(Object.keys(t[0])),l=[];for(let e=0;e<r.length;e+=1)l[e]=Xe(je(t,r,e));const i=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){e=k("nav");for(let t=0;t<l.length;t+=1)l[t].c();E(e,"class",n=t[1].toolbar)},m(t,n){y(t,e,n);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);o=!0},p(t,s){let[c]=s;if(3&c){let n;for(r=lt(Object.keys(t[0])),n=0;n<r.length;n+=1){const o=je(t,r,n);l[n]?(l[n].p(o,c),ot(l[n],1)):(l[n]=Xe(o),l[n].c(),ot(l[n],1),l[n].m(e,null))}for(et(),n=r.length;n<l.length;n+=1)i(n);nt()}(!o||2&c&&n!==(n=t[1].toolbar))&&E(e,"class",n)},i(t){if(!o){for(let t=0;t<r.length;t+=1)ot(l[t]);o=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);o=!1},d(t){t&&w(e),b(l,t)}}}function Je(t,e,n){let o,r,{headerToolbar:l,theme:i}=R("state");a(t,l,(t=>n(4,o=t))),a(t,i,(t=>n(1,r=t)));let s={start:[],center:[],end:[]};return t.$$.update=()=>{if(17&t.$$.dirty)for(let t of Object.keys(s))n(0,s[t]=o[t].split(" ").map((t=>t.split(","))),s)},[s,r,l,i,o]}class Ke extends ft{constructor(t){super(),dt(this,t,Je,Ve,i,{})}}function Qe(t,e,n){const o=t.slice();return o[11]=e[n],o}function Ze(t){let e,n,o;var r=t[11];return r&&(e=U(r,{})),{c(){e&&ct(e.$$.fragment),n=C()},m(t,r){e&&at(e,t,r),y(t,n,r),o=!0},p(t,o){if(1&o&&r!==(r=t[11])){if(e){et();const t=e;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(e=U(r,{}),ct(e.$$.fragment),ot(e.$$.fragment,1),at(e,n.parentNode,n)):e=null}},i(t){o||(e&&ot(e.$$.fragment,t),o=!0)},o(t){e&&rt(e.$$.fragment,t),o=!1},d(t){t&&w(n),e&&ut(e,t)}}}function tn(t){let e,n,o=lt(t[0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Ze(Qe(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){let[i]=n;if(1&i){let n;for(o=lt(t[0]),n=0;n<o.length;n+=1){const l=Qe(t,o,n);r[n]?(r[n].p(l,i),ot(r[n],1)):(r[n]=Ze(l),r[n].c(),ot(r[n],1),r[n].m(e.parentNode,e))}for(et(),n=o.length;n<r.length;n+=1)l(n);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function en(t,e,n){let o,r,i,s,{datesSet:c,_auxiliary:u,_activeRange:d,_queue:f,_view:h}=R("state");a(t,c,(t=>n(7,r=t))),a(t,u,(t=>n(0,s=t))),a(t,d,(t=>n(5,i=t))),a(t,h,(t=>n(6,o=t)));let p={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){l(r)&&Nt((()=>r({start:St(t.start),end:St(t.end),startStr:Mt(t.start),endStr:Mt(t.end),view:Qt(o)})),p,f)}(i)},[s,c,u,d,h,i]}let nn=class extends ft{constructor(t){super(),dt(this,t,en,tn,i,{})}};function on(t){let e,n,o,r,l,i,s,c,a,u,d;n=new Ke({});var f=t[5];return f&&(r=U(f,{})),c=new nn({}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),r&&ct(r.$$.fragment),s=_(),ct(c.$$.fragment),E(e,"class",l=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),E(e,"role",i=Zt(t[4])?"list":"table"),M(e,"height",t[3])},m(l,i){y(l,e,i),at(n,e,null),v(e,o),r&&at(r,e,null),y(l,s,i),at(c,l,i),a=!0,u||(d=T(window,"resize",t[17]),u=!0)},p(t,n){if(32&n[0]&&f!==(f=t[5])){if(r){et();const t=r;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}f?(r=U(f,{}),ct(r.$$.fragment),ot(r.$$.fragment,1),at(r,e,null)):r=null}(!a||7&n[0]&&l!==(l=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")))&&E(e,"class",l),(!a||16&n[0]&&i!==(i=Zt(t[4])?"list":"table"))&&E(e,"role",i),8&n[0]&&M(e,"height",t[3])},i(t){a||(ot(n.$$.fragment,t),r&&ot(r.$$.fragment,t),ot(c.$$.fragment,t),a=!0)},o(t){rt(n.$$.fragment,t),r&&rt(r.$$.fragment,t),rt(c.$$.fragment,t),a=!1},d(t){t&&(w(e),w(s)),ut(n),r&&ut(r),ut(c,t),u=!1,d()}}}function rn(t,e,n){let o,r,l,i,s,u,d,f,h,p,g,{plugins:m=[]}=e,{options:v={}}=e,y=B(),w=new De(m,v);var b,k;b="state",k=w,B().$$.context.set(b,k);let{_viewComponent:x,_bodyEl:_,_interaction:C,_iClass:T,_events:D,_queue:E,_queue2:S,_tasks:M,_scrollable:U,height:L,theme:H,view:N}=w;a(t,x,(t=>n(5,g=t))),a(t,_,(t=>n(32,o=t))),a(t,C,(t=>n(35,s=t))),a(t,T,(t=>n(2,f=t))),a(t,D,(t=>n(36,u=t))),a(t,E,(t=>n(34,i=t))),a(t,S,(t=>n(33,l=t))),a(t,U,(t=>n(0,r=t))),a(t,L,(t=>n(3,h=t))),a(t,H,(t=>n(1,d=t))),a(t,N,(t=>n(4,p=t)));let P={...v};function R(t,e){return w._set(t,e),this}var F;function z(){var t;o&&$(U,r=(t=o).scrollHeight>t.clientHeight,r)}return F=()=>{At(i)},B().$$.before_update.push(F),A((()=>{At(l),Pt(z,null,M)})),t.$$set=t=>{"plugins"in t&&n(18,m=t.plugins),"options"in t&&n(19,v=t.options)},t.$$.update=()=>{if(524288&t.$$.dirty[0])for(let[t,e]of function(t,e){let n=[];for(let o of Ft(t))t[o]!==e[o]&&n.push([o,t[o]]);return Rt(e,t),n}(v,P))R(t,e)},[r,d,f,h,p,g,x,_,C,T,D,E,S,U,L,H,N,z,m,v,R,function(t){let e=w._get(t);return e instanceof Date?St(e):e},function(){return w._fetchedRange.set({start:void 0,end:void 0}),this},function(){return u.map(ce)},function(t){for(let e of u)if(e.id==t)return ce(e);return null},function(t){return u.push(ee([t])[0]),D.set(u),this},function(t){for(let e of u)if(e.id==t.id){Rt(e,ee([t])[0]),D.set(u);break}return this},function(t){let e=u.findIndex((e=>e.id==t));return e>=0&&(u.splice(e,1),D.set(u)),this},function(){return Qt(c(w._view))},function(){return s.action&&s.action.unselect(),this},function(t,e){let n=Kt(t,e);return n?Jt(n)(e):null},function(){ut(y,!0)}]}class ln extends ft{constructor(t){super(),dt(this,t,rn,on,i,{plugins:18,options:19,setOption:20,getOption:21,refetchEvents:22,getEvents:23,getEventById:24,addEvent:25,updateEvent:26,removeEventById:27,getView:28,unselect:29,dateFromPoint:30,destroy:31},null,[-1,-1])}get setOption(){return this.$$.ctx[20]}get getOption(){return this.$$.ctx[21]}get refetchEvents(){return this.$$.ctx[22]}get getEvents(){return this.$$.ctx[23]}get getEventById(){return this.$$.ctx[24]}get addEvent(){return this.$$.ctx[25]}get updateEvent(){return this.$$.ctx[26]}get removeEventById(){return this.$$.ctx[27]}get getView(){return this.$$.ctx[28]}get unselect(){return this.$$.ctx[29]}get dateFromPoint(){return this.$$.ctx[30]}get destroy(){return this.$$.ctx[31]}}function sn(t,e,n){const o=t.slice();return o[8]=e[n],o}function cn(t){let e,n,o,r,i,s,c,a;return{c(){e=k("div"),n=k("span"),i=_(),E(n,"aria-label",o=t[2].format(t[8])),E(e,"class",s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),E(e,"role","columnheader")},m(o,l){y(o,e,l),v(e,n),v(e,i),c||(a=g(r=vt.call(null,n,t[3].format(t[8]))),c=!0)},p(i,c){t=i,6&c&&o!==(o=t[2].format(t[8]))&&E(n,"aria-label",o),r&&l(r.update)&&10&c&&r.update.call(null,t[3].format(t[8])),3&c&&s!==(s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&E(e,"class",s)},d(t){t&&w(e),c=!1,a()}}}function an(e){let n,o,r,l,i,s,c,a=lt(e[1]),u=[];for(let t=0;t<a.length;t+=1)u[t]=cn(sn(e,a,t));return{c(){n=k("div"),o=k("div");for(let t=0;t<u.length;t+=1)u[t].c();l=_(),i=k("div"),E(o,"class",r=e[0].days),E(o,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",c=e[0].header)},m(t,e){y(t,n,e),v(n,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);v(n,l),v(n,i)},p(t,e){let[l]=e;if(15&l){let e;for(a=lt(t[1]),e=0;e<a.length;e+=1){const n=sn(t,a,e);u[e]?u[e].p(n,l):(u[e]=cn(n),u[e].c(),u[e].m(o,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=a.length}1&l&&r!==(r=t[0].days)&&E(o,"class",r),1&l&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&l&&c!==(c=t[0].header)&&E(n,"class",c)},i:t,o:t,d(t){t&&w(n),b(u,t)}}}function un(t,e,n){let o,r,l,i,{theme:s,_intlDayHeader:c,_intlDayHeaderAL:u,_days:d}=R("state");return a(t,s,(t=>n(0,o=t))),a(t,c,(t=>n(3,i=t))),a(t,u,(t=>n(2,l=t))),a(t,d,(t=>n(1,r=t))),[o,r,l,i,s,c,u,d]}class dn extends ft{constructor(t){super(),dt(this,t,un,an,i,{})}}function fn(t){let e,n,o,r,l;const i=t[7].default,s=u(i,t,t[6],null);return{c(){e=k("div"),n=k("div"),s&&s.c(),E(n,"class",o=t[0].content),E(e,"class",r=t[0].body+(!0===t[1]?" "+t[0].uniform:""))},m(o,r){y(o,e,r),v(e,n),s&&s.m(n,null),t[8](e),l=!0},p(t,c){let[a]=c;s&&s.p&&(!l||64&a)&&h(s,i,t,t[6],l?f(i,t[6],a,null):p(t[6]),null),(!l||1&a&&o!==(o=t[0].content))&&E(n,"class",o),(!l||3&a&&r!==(r=t[0].body+(!0===t[1]?" "+t[0].uniform:"")))&&E(e,"class",r)},i(t){l||(ot(s,t),l=!0)},o(t){rt(s,t),l=!1},d(n){n&&w(e),s&&s.d(n),t[8](null)}}}function hn(t,e,n){let o,r,l,{$$slots:i={},$$scope:s}=e,{dayMaxEvents:c,_bodyEl:u,theme:d}=R("state");return a(t,c,(t=>n(1,r=t))),a(t,u,(t=>n(2,l=t))),a(t,d,(t=>n(0,o=t))),t.$$set=t=>{"$$scope"in t&&n(6,s=t.$$scope)},[o,r,l,c,u,d,s,i,function(t){I[t?"unshift":"push"]((()=>{l=t,u.set(l)}))}]}let pn=class extends ft{constructor(t){super(),dt(this,t,hn,fn,i,{})}};function $n(t){let e,n,o,i,s,c,a,u,d,f,h;var p=t[8].resizer;function $(t,e){return{props:{event:t[0]}}}return p&&(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[33](t[8],!0))&&t[33](t[8],!0).apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),c&&ct(c.$$.fragment),E(n,"class",o=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",a=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(o,r){y(o,e,r),v(e,n),v(e,s),c&&at(c,e,null),t[52](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){l(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),T(e,"keydown",(function(){l(t[7]&&mt(t[7]))&&(t[7]&&mt(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){l(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){l(t[32](t[10],t[1]))&&t[32](t[10],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){l(!$e(t[1])&&t[33](t[8]))&&(!$e(t[1])&&t[33](t[8])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&o!==(o=t[2].eventBody))&&E(n,"class",o),i&&l(i.update)&&64&s[0]&&i.update.call(null,t[6]),256&s[0]&&p!==(p=t[8].resizer)){if(c){et();const t=c;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[33](t[8],!0))&&t[33](t[8],!0).apply(this,arguments)})),ct(c.$$.fragment),ot(c.$$.fragment,1),at(c,e,null)):c=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),c.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&a!==(a=t[7]?"button":void 0))&&E(e,"role",a),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(c&&ot(c.$$.fragment,t),d=!0)},o(t){c&&rt(c.$$.fragment,t),d=!1},d(n){n&&w(e),c&&ut(c),t[52](null),f=!1,r(h)}}}function gn(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,S,M,U,{chunk:L}=e,{longChunks:H={}}=e,{inPopup:B=!1}=e,{dayMaxEvents:P,displayEventEnd:F,eventAllUpdated:z,eventBackgroundColor:G,eventTextColor:j,eventClick:O,eventColor:W,eventContent:Y,eventClassNames:q,eventDidMount:X,eventMouseEnter:V,eventMouseLeave:J,theme:K,_view:Q,_intlEventTime:Z,_interaction:tt,_iClasses:et,_resBgColor:nt,_resTxtColor:ot,_hiddenEvents:rt,_popupDate:lt,_tasks:it}=R("state");a(t,P,(t=>n(55,i=t))),a(t,F,(t=>n(44,g=t))),a(t,z,(t=>n(57,d=t))),a(t,G,(t=>n(50,k=t))),a(t,j,(t=>n(47,y=t))),a(t,O,(t=>n(40,o=t))),a(t,W,(t=>n(49,b=t))),a(t,Y,(t=>n(43,$=t))),a(t,q,(t=>n(45,m=t))),a(t,X,(t=>n(58,f=t))),a(t,V,(t=>n(9,_=t))),a(t,J,(t=>n(10,C=t))),a(t,K,(t=>n(2,p=t))),a(t,Q,(t=>n(41,u=t))),a(t,Z,(t=>n(42,h=t))),a(t,tt,(t=>n(8,c=t))),a(t,et,(t=>n(46,v=t))),a(t,nt,(t=>n(51,x=t))),a(t,ot,(t=>n(48,w=t))),a(t,rt,(t=>n(54,r=t))),a(t,lt,(t=>n(56,s=t)));let st,ct,at=1,ut=!1;function dt(t,e){return!$e(e)&&l(t)?e=>t({event:ce(D),el:T,jsEvent:e,view:Qt(u)}):void 0}return N((()=>{l(f)&&f({event:ce(D),timeText:U,el:T,view:Qt(u)})})),A((()=>{l(d)&&!$e(st)&&Pt((()=>d({view:Qt(u)})),"eau",it)})),t.$$set=t=>{"chunk"in t&&n(34,L=t.chunk),"longChunks"in t&&n(35,H=t.longChunks),"inPopup"in t&&n(36,B=t.inPopup)},t.$$.update=()=>{if(8&t.$$.dirty[1]&&n(0,D=L.event),37&t.$$.dirty[0]|2082184&t.$$.dirty[1]){n(1,st=D.display);let t=D.backgroundColor||x(D)||k||b,e=D.textColor||w(D)||y;n(5,S=`width:calc(${100*L.days}% + ${7*(L.days-1)}px);margin-top:${at}px;`),t&&n(5,S+=`background-color:${t};`),e&&n(5,S+=`color:${e};`),ut&&n(5,S+="visibility:hidden;"),n(4,E=[p.event,...v([],D),...se(m,D,u)].join(" "))}4&t.$$.dirty[0]|15368&t.$$.dirty[1]&&n(6,[U,M]=le(L,g,$,p,h,u),M),2&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(7,ct=dt(o,st))},[D,st,p,T,E,S,M,ct,c,_,C,P,F,z,G,j,O,W,Y,q,X,V,J,K,Q,Z,tt,et,nt,ot,rt,lt,dt,function(t,e){return t.action?t=>c.action.drag(D,t,e,B?s:void 0):void 0},L,H,B,function(){T&&(n(38,at=fe(L,H,Yt(T))),!0===i?function(){let t=Wt(T,2),e=Yt(t)-Yt(t.firstElementChild)-function(t){let e=0;for(let n=0;n<L.days&&(e=Gt(e,Yt(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(39,ut=L.bottom>e);let o=!1;for(let t of L.dates){let e=r[t.getTime()];if(e){let t=e.size;ut?e.add(L.event):e.delete(L.event),t!==e.size&&(o=!0)}}o&&rt.set(r)}():n(39,ut=!1))},at,ut,o,u,h,$,g,m,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}let mn=class extends ft{constructor(t){super(),dt(this,t,gn,$n,i,{chunk:34,longChunks:35,inPopup:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}};function vn(t,e,n){const o=t.slice();return o[20]=e[n],o}function yn(t,e){let n,o,r;return o=new mn({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};1&n&&(r.chunk=e[20]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function wn(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,m,b,C,S,M=[],U=new Map,L=lt(t[0]);const H=t=>t[20].event;for(let e=0;e<L.length;e+=1){let n=vn(t,L,e),o=H(n);U.set(o,M[e]=yn(o,n))}return{c(){e=k("div"),n=k("div"),o=k("time"),c=_(),a=k("a"),u=x("×"),h=_(),p=k("div");for(let t=0;t<M.length;t+=1)M[t].c();E(o,"datetime",i=Mt(t[3],10)),E(a,"role","button"),E(a,"tabindex","0"),E(a,"aria-label",d=t[6].close),E(n,"class",f=t[4].dayHead),E(p,"class",$=t[4].events),E(e,"class",m=t[4].popup),E(e,"style",t[2])},m(r,l){y(r,e,l),v(e,n),v(n,o),v(n,c),v(n,a),v(a,u),v(e,h),v(e,p);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(p,null);t[16](e),b=!0,C||(S=[g(s=vt.call(null,o,t[5].format(t[3]))),T(a,"click",D(t[13])),T(a,"keydown",mt(t[13])),g(yt.call(null,e,"pointerdown")),T(e,"pointerdown",D(t[15])),T(e,"pointerdownoutside",t[14])],C=!0)},p(t,r){let[c]=r;(!b||8&c&&i!==(i=Mt(t[3],10)))&&E(o,"datetime",i),s&&l(s.update)&&40&c&&s.update.call(null,t[5].format(t[3])),(!b||64&c&&d!==(d=t[6].close))&&E(a,"aria-label",d),(!b||16&c&&f!==(f=t[4].dayHead))&&E(n,"class",f),1&c&&(L=lt(t[0]),et(),M=st(M,c,H,0,t,L,U,p,it,yn,null,vn),nt()),(!b||16&c&&$!==($=t[4].events))&&E(p,"class",$),(!b||16&c&&m!==(m=t[4].popup))&&E(e,"class",m),(!b||4&c)&&E(e,"style",t[2])},i(t){if(!b){for(let t=0;t<L.length;t+=1)ot(M[t]);b=!0}},o(t){for(let t=0;t<M.length;t+=1)rt(M[t]);b=!1},d(n){n&&w(e);for(let t=0;t<M.length;t+=1)M[t].d();t[16](null),C=!1,r(S)}}}function bn(t,e,n){let o,r,l,i,s,c,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:p,_popupDate:g,_popupChunks:m}=R("state");a(t,d,(t=>n(6,c=t))),a(t,f,(t=>n(4,i=t))),a(t,h,(t=>n(17,o=t))),a(t,p,(t=>n(5,s=t))),a(t,g,(t=>n(3,r=t))),a(t,m,(t=>n(0,l=t)));let v="";function y(){u&&(n(2,v=""),q().then((()=>{l.length?function(){let t,e,o=Wt(u,1),r=Wt(o,3),l=Ot(u),i=Ot(o),s=Ot(r);if(n(2,v=""),l.width>=s.width){t=s.left-i.left;let e=i.right-s.right;n(2,v+=`right:${e}px;`)}else t=(i.width-l.width)/2,i.left+t<s.left?t=s.left-i.left:i.left+t+l.width>s.right&&(t=s.right-i.left-l.width);if(n(2,v+=`left:${t}px;`),l.height>=s.height){e=s.top-i.top;let t=i.bottom-s.bottom;n(2,v+=`bottom:${t}px;`)}else e=(i.height-l.height)/2,i.top+e<s.top?e=s.top-i.top:i.top+e+l.height>s.bottom&&(e=s.bottom-i.top-l.height);n(2,v+=`top:${e}px;`)}():w()})))}function w(t){$(g,r=null,r)}return t.$$.update=()=>{1&t.$$.dirty&&l&&y()},[l,u,v,r,i,s,c,d,f,h,p,g,m,w,function(t){w(),o.action?.noClick()},function(e){F.call(this,t,e)},function(t){I[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class kn extends ft{constructor(t){super(),dt(this,t,bn,wn,i,{})}}function xn(t,e,n){const o=t.slice();return o[42]=e[n],o[43]=e,o[44]=n,o}function _n(t){let e,n,o,r;return n=new mn({props:{chunk:t[2][1]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[12].events)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};4&l[0]&&(i.chunk=t[2][1]),n.$set(i),(!r||4096&l[0]&&o!==(o=t[12].events))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Cn(t){let e,n,o,r;return n=new mn({props:{chunk:t[2][0]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[12].events+" "+t[12].preview)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};4&l[0]&&(i.chunk=t[2][0]),n.$set(i),(!r||4096&l[0]&&o!==(o=t[12].events+" "+t[12].preview))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Tn(t,e){let n,o,r,l=e[44];const i=()=>e[36](o,l),s=()=>e[36](null,l);let c={chunk:e[42],longChunks:e[1]};return o=new mn({props:c}),i(),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){l!==(e=t)[44]&&(s(),l=e[44],i());const r={};16&n[0]&&(r.chunk=e[42]),2&n[0]&&(r.longChunks=e[1]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(o,t)}}}function Dn(t){let e,n;return e=new kn({}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function En(t){let e,n,o,i;return{c(){e=k("a"),E(e,"role","button"),E(e,"tabindex","0"),E(e,"aria-haspopup","true")},m(r,l){y(r,e,l),o||(i=[T(e,"click",D(t[26])),T(e,"keydown",mt(t[26])),T(e,"pointerdown",D(t[35])),g(n=vt.call(null,e,t[10]))],o=!0)},p(t,e){n&&l(n.update)&&1024&e[0]&&n.update.call(null,t[10])},d(t){t&&w(e),o=!1,r(i)}}}function Sn(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,m,b,x,C,D,S=t[2][1]&&Ut(t[2][1].date,t[0]),M=t[2][0]&&Ut(t[2][0].date,t[0]),U=[],L=new Map,H=S&&_n(t),B=M&&Cn(t),N=lt(t[4]);const A=t=>t[42].event;for(let e=0;e<N.length;e+=1){let n=xn(t,N,e),o=A(n);L.set(o,U[e]=Tn(o,n))}let P=t[6]&&Dn(),R=t[5].size&&En(t);return{c(){e=k("div"),n=k("time"),c=_(),H&&H.c(),a=_(),B&&B.c(),u=_(),d=k("div");for(let t=0;t<U.length;t+=1)U[t].c();h=_(),P&&P.c(),p=_(),$=k("div"),R&&R.c(),E(n,"class",o=t[12].dayHead),E(n,"datetime",i=Mt(t[0],10)),E(d,"class",f=t[12].events),E($,"class",m=t[12].dayFoot),E(e,"class",b=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[12].today:"")+(t[8]?" "+t[12].otherMonth:"")+(t[9]?" "+t[12].highlight:"")),E(e,"role","cell")},m(o,r){y(o,e,r),v(e,n),v(e,c),H&&H.m(e,null),v(e,a),B&&B.m(e,null),v(e,u),v(e,d);for(let t=0;t<U.length;t+=1)U[t]&&U[t].m(d,null);v(e,h),P&&P.m(e,null),v(e,p),v(e,$),R&&R.m($,null),t[37](e),x=!0,C||(D=[g(s=vt.call(null,n,t[14].format(t[0]))),T(e,"pointerenter",(function(){l(t[25](t[13]))&&t[25](t[13]).apply(this,arguments)})),T(e,"pointerleave",(function(){l(t[13].pointer?.leave)&&t[13].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){l(t[13].action?.select)&&t[13].action?.select.apply(this,arguments)}))],C=!0)},p(r,c){t=r,(!x||4096&c[0]&&o!==(o=t[12].dayHead))&&E(n,"class",o),(!x||1&c[0]&&i!==(i=Mt(t[0],10)))&&E(n,"datetime",i),s&&l(s.update)&&16385&c[0]&&s.update.call(null,t[14].format(t[0])),5&c[0]&&(S=t[2][1]&&Ut(t[2][1].date,t[0])),S?H?(H.p(t,c),5&c[0]&&ot(H,1)):(H=_n(t),H.c(),ot(H,1),H.m(e,a)):H&&(et(),rt(H,1,1,(()=>{H=null})),nt()),5&c[0]&&(M=t[2][0]&&Ut(t[2][0].date,t[0])),M?B?(B.p(t,c),5&c[0]&&ot(B,1)):(B=Cn(t),B.c(),ot(B,1),B.m(e,u)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),2066&c[0]&&(N=lt(t[4]),et(),U=st(U,c,A,0,t,N,L,d,it,Tn,null,xn),nt()),(!x||4096&c[0]&&f!==(f=t[12].events))&&E(d,"class",f),t[6]?P?64&c[0]&&ot(P,1):(P=Dn(),P.c(),ot(P,1),P.m(e,p)):P&&(et(),rt(P,1,1,(()=>{P=null})),nt()),t[5].size?R?R.p(t,c):(R=En(t),R.c(),R.m($,null)):R&&(R.d(1),R=null),(!x||4096&c[0]&&m!==(m=t[12].dayFoot))&&E($,"class",m),(!x||4993&c[0]&&b!==(b=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[12].today:"")+(t[8]?" "+t[12].otherMonth:"")+(t[9]?" "+t[12].highlight:"")))&&E(e,"class",b)},i(t){if(!x){ot(H),ot(B);for(let t=0;t<N.length;t+=1)ot(U[t]);ot(P),x=!0}},o(t){rt(H),rt(B);for(let t=0;t<U.length;t+=1)rt(U[t]);rt(P),x=!1},d(n){n&&w(e),H&&H.d(),B&&B.d();for(let t=0;t<U.length;t+=1)U[t].d();P&&P.d(),R&&R.d(),t[37](null),C=!1,r(D)}}}function Mn(t,e,n){let o,r,i,s,c,u,d,f,h,p,g,m,v,y,w,{date:b}=e,{chunks:k}=e,{longChunks:x}=e,{iChunks:_=[]}=e,{date:C,dayMaxEvents:T,highlightedDates:D,moreLinkContent:E,theme:S,_hiddenEvents:M,_intlDayCell:U,_popupDate:L,_popupChunks:H,_today:B,_interaction:N,_queue:A}=R("state");a(t,C,(t=>n(33,u=t))),a(t,D,(t=>n(32,c=t))),a(t,E,(t=>n(30,i=t))),a(t,S,(t=>n(12,f=t))),a(t,M,(t=>n(31,s=t))),a(t,U,(t=>n(14,p=t))),a(t,L,(t=>n(29,r=t))),a(t,H,(t=>n(38,o=t))),a(t,B,(t=>n(34,d=t))),a(t,N,(t=>n(13,h=t)));let P,z=new Set,G="",j=[];function O(){let t=Tt(xt(b)),e=m.concat(x[b.getTime()]?.chunks||[]);$(H,o=e.map((e=>Rt({},e,oe(e.event,b,t),{days:1,dates:[b]}))).sort(((t,e)=>t.top-e.top)),o)}return t.$$set=t=>{"date"in t&&n(0,b=t.date),"chunks"in t&&n(27,k=t.chunks),"longChunks"in t&&n(1,x=t.longChunks),"iChunks"in t&&n(2,_=t.iChunks)},t.$$.update=()=>{if(134217777&t.$$.dirty[0]){n(4,m=[]),z.clear(),n(5,z),n(27,k),n(0,b),n(4,m);for(let t of k)Ut(t.date,b)&&m.push(t)}if(33&t.$$.dirty[0]&&$(M,s[b.getTime()]=z,s),1&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,v=Ut(b,d)),1&t.$$.dirty[0]|6&t.$$.dirty[1]&&(n(8,y=b.getUTCMonth()!==u.getUTCMonth()),n(9,w=c.some((t=>Ut(t,b))))),1073741856&t.$$.dirty[0]|1&t.$$.dirty[1]&&s&&z.size){let t="+"+z.size+" more";n(10,G=i?l(i)?i({num:z.size,text:t}):i:t)}536870913&t.$$.dirty[0]&&n(6,P=r&&Ut(b,r)),82&t.$$.dirty[0]&&P&&x&&m&&q().then(O),9&t.$$.dirty[0]&&g&&Xt(g,(()=>({allDay:!0,date:b,resource:void 0,dayEl:g})))},[b,x,_,g,m,z,P,v,y,w,G,j,f,h,p,C,D,E,S,M,U,L,H,B,N,function(t){return t.pointer?e=>t.pointer.enterDayGrid(b,e):void 0},function(){$(L,r=b,r)},k,function(){he(j,m)},r,i,s,c,u,d,function(e){F.call(this,t,e)},function(t,e){I[t?"unshift":"push"]((()=>{j[e]=t,n(11,j)}))},function(t){I[t?"unshift":"push"]((()=>{g=t,n(3,g)}))}]}let Un=class extends ft{constructor(t){super(),dt(this,t,Mn,Sn,i,{date:0,chunks:27,longChunks:1,iChunks:2,reposition:28},null,[-1,-1])}get reposition(){return this.$$.ctx[28]}};function Ln(t,e,n){const o=t.slice();return o[21]=e[n],o[22]=e,o[23]=n,o}function Hn(t){let e,n,o=t[23];const r=()=>t[18](e,o),l=()=>t[18](null,o);let i={date:t[21],chunks:t[1],longChunks:t[2],iChunks:t[3]};return e=new Un({props:i}),r(),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){o!==t[23]&&(l(),o=t[23],r());const i={};1&n&&(i.date=t[21]),2&n&&(i.chunks=t[1]),4&n&&(i.longChunks=t[2]),8&n&&(i.iChunks=t[3]),e.$set(i)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){l(),ut(e,t)}}}function Bn(t){let e,n,o,r,l,i=lt(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=Hn(Ln(t,i,e));const c=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(e,"class",n=t[5].days),E(e,"role","row")},m(n,i){y(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);o=!0,r||(l=T(window,"resize",t[11]),r=!0)},p(t,r){let[l]=r;if(31&l){let n;for(i=lt(t[0]),n=0;n<i.length;n+=1){const o=Ln(t,i,n);s[n]?(s[n].p(o,l),ot(s[n],1)):(s[n]=Hn(o),s[n].c(),ot(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)c(n);nt()}(!o||32&l&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!o){for(let t=0;t<i.length;t+=1)ot(s[t]);o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);o=!1},d(t){t&&w(e),b(s,t),r=!1,l()}}}function Nn(t,e,n){let o,r,l,i,s,{dates:c}=e,{_events:u,_iEvents:d,_queue2:f,_hiddenEvents:h,hiddenDays:p,theme:$}=R("state");a(t,u,(t=>n(17,i=t))),a(t,d,(t=>n(16,l=t))),a(t,h,(t=>n(14,o=t))),a(t,p,(t=>n(15,r=t))),a(t,$,(t=>n(5,s=t)));let g,m,v,y,w=[],b=[],k={};function x(){Nt((()=>he(b,c)),k,f)}return t.$$set=t=>{"dates"in t&&n(0,c=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(12,v=c[0]),n(13,y=Tt(xt(c[c.length-1])))),176130&t.$$.dirty){n(1,g=[]);for(let t of i)if(!ge(t.display)&&pe(t,v,y)){let e=oe(t,v,y);g.push(e)}n(2,m=de(g,r)),x()}110592&t.$$.dirty&&n(3,w=l.map((t=>{let e;return t&&pe(t,v,y)?(e=oe(t,v,y),de([e],r)):e=null,e}))),16384&t.$$.dirty&&o&&x()},[c,g,m,w,b,s,u,d,h,p,$,x,v,y,o,r,l,i,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(4,b)}))}]}let An=class extends ft{constructor(t){super(),dt(this,t,Nn,Bn,i,{dates:0})}};function Pn(t,e,n){const o=t.slice();return o[10]=e[n],o}function Rn(t){let e,n;return e=new An({props:{dates:t[10]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.dates=t[10]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Fn(t){let e,n,o=lt(t[0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Rn(Pn(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(1&n){let i;for(o=lt(t[0]),i=0;i<o.length;i+=1){const l=Pn(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Rn(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function zn(t){let e,n,o,r;return e=new dn({}),o=new pn({props:{$$slots:{default:[Fn]},$$scope:{ctx:t}}}),{c(){ct(e.$$.fragment),n=_(),ct(o.$$.fragment)},m(t,l){at(e,t,l),y(t,n,l),at(o,t,l),r=!0},p(t,e){let[n]=e;const r={};8193&n&&(r.$$scope={dirty:n,ctx:t}),o.$set(r)},i(t){r||(ot(e.$$.fragment,t),ot(o.$$.fragment,t),r=!0)},o(t){rt(e.$$.fragment,t),rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(e,t),ut(o,t)}}}function In(t,e,n){let o,r,l,i,s,c,{_viewDates:u,_hiddenEvents:d,dayMaxEvents:f,hiddenDays:h}=R("state");return a(t,u,(t=>n(6,o=t))),a(t,d,(t=>n(9,l=t))),a(t,f,(t=>n(7,r=t))),a(t,h,(t=>n(8,i=t))),t.$$.update=()=>{if(481&t.$$.dirty){n(0,s=[]),n(5,c=7-i.length),$(d,l={},l);for(let t=0;t<o.length/c;++t){let e=[];for(let n=0;n<c;++n)e.push(o[t*c+n]);s.push(e)}}},[s,u,d,f,h,c,o,r,i]}let Gn=class extends ft{constructor(t){super(),dt(this,t,In,zn,i,{})}};var jn={createOptions(t){t.dayMaxEvents=!1,t.dayCellFormat={day:"numeric"},t.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},t.moreLinkContent=void 0,t.buttonText.dayGridMonth="month",t.buttonText.close="Close",t.theme.uniform="ec-uniform",t.theme.dayFoot="ec-day-foot",t.theme.popup="ec-popup",t.view="dayGridMonth",t.views.dayGridMonth={buttonText:we,component:Gn,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:xe("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){t._days=function(t){return gt([t.date,t.firstDay,t.hiddenDays],(t=>{let[e,n,o]=t,r=[],l=xt(e),i=7;for(;l.getUTCDay()!==n&&i;)Dt(l),--i;for(let t=0;t<7;++t)o.includes(l.getUTCDay())||r.push(xt(l)),Tt(l);return r}))}(t),t._intlDayCell=_e(t.locale,t.dayCellFormat),t._intlDayPopover=_e(t.locale,t.dayPopoverFormat),t._hiddenEvents=$t({}),t._popupDate=$t(null),t._popupChunks=$t([])}};function On(t){let e,n,o,r,l;const i=t[5].default,s=u(i,t,t[4],null);return{c(){e=k("div"),n=k("div"),s&&s.c(),E(n,"class",o=t[0].content),E(e,"class",r=t[0].body)},m(o,r){y(o,e,r),v(e,n),s&&s.m(n,null),t[6](e),l=!0},p(t,c){let[a]=c;s&&s.p&&(!l||16&a)&&h(s,i,t,t[4],l?f(i,t[4],a,null):p(t[4]),null),(!l||1&a&&o!==(o=t[0].content))&&E(n,"class",o),(!l||1&a&&r!==(r=t[0].body))&&E(e,"class",r)},i(t){l||(ot(s,t),l=!0)},o(t){rt(s,t),l=!1},d(n){n&&w(e),s&&s.d(n),t[6](null)}}}function Wn(t,e,n){let o,r,{$$slots:l={},$$scope:i}=e,{_bodyEl:s,theme:c}=R("state");return a(t,s,(t=>n(1,r=t))),a(t,c,(t=>n(0,o=t))),t.$$set=t=>{"$$scope"in t&&n(4,i=t.$$scope)},[o,r,s,c,i,l,function(t){I[t?"unshift":"push"]((()=>{r=t,s.set(r)}))}]}let Yn=class extends ft{constructor(t){super(),dt(this,t,Wn,On,i,{})}};function qn(e){let n,o,i,s,c,a,u,d,f,h,p;return{c(){n=k("article"),o=k("div"),s=_(),c=k("div"),E(o,"class",i=e[0].eventTag),E(o,"style",e[3]),E(c,"class",a=e[0].eventBody),E(n,"class",e[2]),E(n,"role",d=e[5]?"button":void 0),E(n,"tabindex",f=e[5]?0:void 0)},m(t,r){y(t,n,r),v(n,o),v(n,s),v(n,c),e[40](n),h||(p=[g(u=vt.call(null,c,e[4])),T(n,"click",(function(){l(e[5])&&e[5].apply(this,arguments)})),T(n,"keydown",(function(){l(e[5]&&mt(e[5]))&&(e[5]&&mt(e[5])).apply(this,arguments)})),T(n,"mouseenter",(function(){l(e[26](e[6]))&&e[26](e[6]).apply(this,arguments)})),T(n,"mouseleave",(function(){l(e[26](e[7]))&&e[26](e[7]).apply(this,arguments)})),T(n,"pointerdown",(function(){l(e[8].action?.noAction)&&e[8].action?.noAction.apply(this,arguments)}))],h=!0)},p(t,r){e=t,1&r[0]&&i!==(i=e[0].eventTag)&&E(o,"class",i),8&r[0]&&E(o,"style",e[3]),1&r[0]&&a!==(a=e[0].eventBody)&&E(c,"class",a),u&&l(u.update)&&16&r[0]&&u.update.call(null,e[4]),4&r[0]&&E(n,"class",e[2]),32&r[0]&&d!==(d=e[5]?"button":void 0)&&E(n,"role",d),32&r[0]&&f!==(f=e[5]?0:void 0)&&E(n,"tabindex",f)},i:t,o:t,d(t){t&&w(n),e[40](null),h=!1,r(p)}}}function Xn(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{displayEventEnd:M,eventAllUpdated:U,eventBackgroundColor:L,eventTextColor:H,eventColor:B,eventContent:P,eventClassNames:F,eventClick:z,eventDidMount:G,eventMouseEnter:j,eventMouseLeave:O,theme:W,_view:Y,_intlEventTime:q,_resBgColor:X,_resTxtColor:V,_interaction:J,_tasks:K}=R("state");function Q(t){return l(t)?e=>t({event:ce(x),el:k,jsEvent:e,view:Qt(r)}):void 0}return a(t,M,(t=>n(33,f=t))),a(t,U,(t=>n(42,i=t))),a(t,L,(t=>n(38,m=t))),a(t,H,(t=>n(35,p=t))),a(t,B,(t=>n(37,g=t))),a(t,P,(t=>n(32,d=t))),a(t,F,(t=>n(34,h=t))),a(t,z,(t=>n(29,o=t))),a(t,G,(t=>n(43,s=t))),a(t,j,(t=>n(6,y=t))),a(t,O,(t=>n(7,w=t))),a(t,W,(t=>n(0,u=t))),a(t,Y,(t=>n(30,r=t))),a(t,q,(t=>n(31,c=t))),a(t,X,(t=>n(39,v=t))),a(t,V,(t=>n(36,$=t))),a(t,J,(t=>n(8,b=t))),N((()=>{l(s)&&s({event:ce(x),timeText:D,el:k,view:Qt(r)})})),A((()=>{l(i)&&Pt((()=>i({view:Qt(r)})),"eau",K)})),t.$$set=t=>{"chunk"in t&&n(27,S=t.chunk)},t.$$.update=()=>{if(134217728&t.$$.dirty[0]&&n(28,x=S.event),1342177289&t.$$.dirty[0]|504&t.$$.dirty[1]){n(3,C="");let t=x.backgroundColor||v(x)||m||g;t&&n(3,C=`background-color:${t};`);let e=x.textColor||$(x)||p;e&&n(3,C+=`color:${e};`),n(2,_=[u.event,...se(h,x,r)].join(" "))}1207959553&t.$$.dirty[0]|7&t.$$.dirty[1]&&n(4,[D,T]=le(S,f,d,u,c,r),T),536870912&t.$$.dirty[0]&&n(5,E=Q(o))},[u,k,_,C,T,E,y,w,b,M,U,L,H,B,P,F,z,G,j,O,W,Y,q,X,V,J,Q,S,x,o,r,c,d,f,h,p,$,g,m,v,function(t){I[t?"unshift":"push"]((()=>{k=t,n(1,k)}))}]}let Vn=class extends ft{constructor(t){super(),dt(this,t,Xn,qn,i,{chunk:27},null,[-1,-1])}};function Jn(t,e,n){const o=t.slice();return o[21]=e[n],o}function Kn(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,m,b=[],x=new Map,C=lt(t[2]);const D=t=>t[21].event;for(let e=0;e<C.length;e+=1){let n=Jn(t,C,e),o=D(n);x.set(o,b[e]=Qn(o,n))}return{c(){e=k("div"),n=k("h4"),o=k("time"),s=_(),c=k("time"),f=_();for(let t=0;t<b.length;t+=1)b[t].c();E(o,"datetime",t[5]),E(c,"class",a=t[6].daySide),E(c,"datetime",t[5]),E(n,"class",d=t[6].dayHead),E(e,"class",h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")),E(e,"role","listitem")},m(r,a){y(r,e,a),v(e,n),v(n,o),v(n,s),v(n,c),v(e,f);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(e,null);t[20](e),p=!0,$||(m=[g(i=vt.call(null,o,t[8].format(t[0]))),g(u=vt.call(null,c,t[9].format(t[0]))),T(e,"pointerdown",(function(){l(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],$=!0)},p(r,s){t=r,(!p||32&s)&&E(o,"datetime",t[5]),i&&l(i.update)&&257&s&&i.update.call(null,t[8].format(t[0])),(!p||64&s&&a!==(a=t[6].daySide))&&E(c,"class",a),(!p||32&s)&&E(c,"datetime",t[5]),u&&l(u.update)&&513&s&&u.update.call(null,t[9].format(t[0])),(!p||64&s&&d!==(d=t[6].dayHead))&&E(n,"class",d),4&s&&(C=lt(t[2]),et(),b=st(b,s,D,0,t,C,x,e,it,Qn,null,Jn),nt()),(!p||89&s&&h!==(h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")))&&E(e,"class",h)},i(t){if(!p){for(let t=0;t<C.length;t+=1)ot(b[t]);p=!0}},o(t){for(let t=0;t<b.length;t+=1)rt(b[t]);p=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();t[20](null),$=!1,r(m)}}}function Qn(t,e){let n,o,r;return o=new Vn({props:{chunk:e[21]}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};4&n&&(r.chunk=e[21]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function Zn(t){let e,n,o=t[2].length&&Kn(t);return{c(){o&&o.c(),e=C()},m(t,r){o&&o.m(t,r),y(t,e,r),n=!0},p(t,n){let[r]=n;t[2].length?o?(o.p(t,r),4&r&&ot(o,1)):(o=Kn(t),o.c(),ot(o,1),o.m(e.parentNode,e)):o&&(et(),rt(o,1,1,(()=>{o=null})),nt())},i(t){n||(ot(o),n=!0)},o(t){rt(o),n=!1},d(t){t&&w(e),o&&o.d(t)}}}function to(t,e,n){let o,r,l,i,s,c,u,d,f,h,p,$,{date:g}=e,{_events:m,_interaction:v,_intlListDay:y,_intlListDaySide:w,_today:b,highlightedDates:k,theme:x}=R("state");return a(t,m,(t=>n(19,l=t))),a(t,v,(t=>n(7,s=t))),a(t,y,(t=>n(8,c=t))),a(t,w,(t=>n(9,u=t))),a(t,b,(t=>n(18,r=t))),a(t,k,(t=>n(17,o=t))),a(t,x,(t=>n(6,i=t))),t.$$set=t=>{"date"in t&&n(0,g=t.date)},t.$$.update=()=>{if(524293&t.$$.dirty){n(2,f=[]);let t=g,e=Tt(xt(g));for(let n of l)if(!ge(n.display)&&pe(n,t,e)){let o=oe(n,t,e);f.push(o)}re(f)}262145&t.$$.dirty&&n(3,h=Ut(g,r)),131073&t.$$.dirty&&n(4,p=o.some((t=>Ut(t,g)))),1&t.$$.dirty&&n(5,$=Mt(g,10)),3&t.$$.dirty&&d&&Xt(d,(()=>({allDay:!0,date:g,resource:void 0,dayEl:d})))},[g,d,f,h,p,$,i,s,c,u,m,v,y,w,b,k,x,o,r,l,function(t){I[t?"unshift":"push"]((()=>{d=t,n(1,d)}))}]}let eo=class extends ft{constructor(t){super(),dt(this,t,to,Zn,i,{date:0})}};function no(t,e,n){const o=t.slice();return o[15]=e[n],o}function oo(t){let e,n,o=lt(t[1]),r=[];for(let e=0;e<o.length;e+=1)r[e]=lo(no(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(2&n){let i;for(o=lt(t[1]),i=0;i<o.length;i+=1){const l=no(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=lo(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function ro(e){let n,o,i,s,c;return{c(){n=k("div"),E(n,"class",o=e[3].noEvents)},m(t,o){y(t,n,o),s||(c=[g(i=vt.call(null,n,e[0])),T(n,"click",e[10])],s=!0)},p(t,e){8&e&&o!==(o=t[3].noEvents)&&E(n,"class",o),i&&l(i.update)&&1&e&&i.update.call(null,t[0])},i:t,o:t,d(t){t&&w(n),s=!1,r(c)}}}function lo(t){let e,n;return e=new eo({props:{date:t[15]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.date=t[15]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function io(t){let e,n,o,r;const l=[ro,oo],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function so(t){let e,n;return e=new Yn({props:{$$slots:{default:[io]},$$scope:{ctx:t}}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){let[o]=n;const r={};262159&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function co(t,e,n){let o,r,i,s,c,u,d,f,{_events:h,_view:p,_viewDates:$,noEventsClick:g,noEventsContent:m,theme:v}=R("state");return a(t,h,(t=>n(12,s=t))),a(t,p,(t=>n(13,o=t))),a(t,$,(t=>n(1,c=t))),a(t,g,(t=>n(14,r=t))),a(t,m,(t=>n(11,i=t))),a(t,v,(t=>n(3,u=t))),t.$$.update=()=>{if(4098&t.$$.dirty&&(n(2,d=!0),c.length)){let t=c[0],e=Tt(xt(c[c.length-1]));for(let o of s)if(!ge(o.display)&&o.start<e&&o.end>t){n(2,d=!1);break}}2049&t.$$.dirty&&(n(0,f=l(i)?i():i),"string"==typeof f&&n(0,f={html:f}))},[f,c,d,u,h,p,$,g,m,v,function(t){l(r)&&r({jsEvent:t,view:Qt(o)})},i,s]}let ao=class extends ft{constructor(t){super(),dt(this,t,co,so,i,{})}};var uo={createOptions(t){t.buttonText.listDay="list",t.buttonText.listWeek="list",t.buttonText.listMonth="list",t.buttonText.listYear="list",t.listDayFormat={weekday:"long"},t.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},t.noEventsClick=void 0,t.noEventsContent="No events",t.theme.daySide="ec-day-side",t.theme.eventTag="ec-event-tag",t.theme.noEvents="ec-no-events",t.view="listWeek",t.views.listDay={buttonText:ve,component:ao,duration:{days:1},theme:xe("ec-list ec-day-view")},t.views.listWeek={buttonText:ye,component:ao,duration:{weeks:1},theme:xe("ec-list ec-week-view")},t.views.listMonth={buttonText:we,component:ao,duration:{months:1},theme:xe("ec-list ec-month-view")},t.views.listYear={buttonText:be,component:ao,duration:{years:1},theme:xe("ec-list ec-year-view")}},createStores(t){t._intlListDay=_e(t.locale,t.listDayFormat),t._intlListDaySide=_e(t.locale,t.listDaySideFormat)}};const fo=t=>({}),ho=t=>({});function po(t,e,n){const o=t.slice();return o[9]=e[n],o}function $o(t){let e,n,o,r,i,s;return{c(){e=k("time"),E(e,"class",n=t[1].time),E(e,"datetime",o=t[9][0])},m(n,o){y(n,e,o),i||(s=g(r=vt.call(null,e,t[9][1])),i=!0)},p(i,s){t=i,2&s&&n!==(n=t[1].time)&&E(e,"class",n),4&s&&o!==(o=t[9][0])&&E(e,"datetime",o),r&&l(r.update)&&4&s&&r.update.call(null,t[9][1])},d(t){t&&w(e),i=!1,s()}}}function go(t){let e,n,o,r,i,s,c,a,d,$,m,x,C,T,D,S=lt(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=$o(po(t,S,e));const U=t[8].lines,L=u(U,t,t[7],ho),H=t[8].default,B=u(H,t,t[7],null);return{c(){e=k("div"),n=k("div"),i=_();for(let t=0;t<M.length;t+=1)M[t].c();c=_(),a=k("div"),d=k("div"),L&&L.c(),m=_(),B&&B.c(),E(n,"class",o=t[1].sidebarTitle),E(e,"class",s=t[1].sidebar),E(d,"class",$=t[1].lines),E(a,"class",x=t[1].days),E(a,"role","row")},m(o,l){y(o,e,l),v(e,n),v(e,i);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);y(o,c,l),y(o,a,l),v(a,d),L&&L.m(d,null),v(a,m),B&&B.m(a,null),C=!0,T||(D=g(r=vt.call(null,n,t[0])),T=!0)},p(t,i){let[c]=i;if((!C||2&c&&o!==(o=t[1].sidebarTitle))&&E(n,"class",o),r&&l(r.update)&&1&c&&r.update.call(null,t[0]),6&c){let n;for(S=lt(t[2]),n=0;n<S.length;n+=1){const o=po(t,S,n);M[n]?M[n].p(o,c):(M[n]=$o(o),M[n].c(),M[n].m(e,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=S.length}(!C||2&c&&s!==(s=t[1].sidebar))&&E(e,"class",s),L&&L.p&&(!C||128&c)&&h(L,U,t,t[7],C?f(U,t[7],c,fo):p(t[7]),ho),(!C||2&c&&$!==($=t[1].lines))&&E(d,"class",$),B&&B.p&&(!C||128&c)&&h(B,H,t,t[7],C?f(H,t[7],c,null):p(t[7]),null),(!C||2&c&&x!==(x=t[1].days))&&E(a,"class",x)},i(t){C||(ot(L,t),ot(B,t),C=!0)},o(t){rt(L,t),rt(B,t),C=!1},d(t){t&&(w(e),w(c),w(a)),b(M,t),L&&L.d(t),B&&B.d(t),T=!1,D()}}}function mo(t,e,n){let o,r,i,s,{$$slots:c={},$$scope:u}=e,{allDayContent:d,theme:f,_times:h}=R("state");return a(t,d,(t=>n(6,o=t))),a(t,f,(t=>n(1,r=t))),a(t,h,(t=>n(2,i=t))),t.$$set=t=>{"$$scope"in t&&n(7,u=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(0,s=function(t){let e,n="all-day";return t?(e=l(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(o))},[s,r,i,d,f,h,o,u,c]}class vo extends ft{constructor(t){super(),dt(this,t,mo,go,i,{})}}function yo(t,e,n){const o=t.slice();return o[24]=e[n],o}function wo(t){let e;const n=t[16].default,o=u(n,t,t[18],null);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,r){o&&o.p&&(!e||262144&r)&&h(o,n,t,t[18],e?f(n,t[18],r,null):p(t[18]),null)},i(t){e||(ot(o,t),e=!0)},o(t){rt(o,t),e=!1},d(t){o&&o.d(t)}}}function bo(t){let e,n;return{c(){e=k("div"),E(e,"class",n=t[3].line)},m(t,n){y(t,e,n)},p(t,o){8&o&&n!==(n=t[3].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function ko(t){let e,n=lt(t[2]),o=[];for(let e=0;e<n.length;e+=1)o[e]=bo(yo(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=C()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);y(t,e,n)},p(t,r){if(12&r){let l;for(n=lt(t[2]),l=0;l<n.length;l+=1){const i=yo(t,n,l);o[l]?o[l].p(i,r):(o[l]=bo(i),o[l].c(),o[l].m(e.parentNode,e))}for(;l<o.length;l+=1)o[l].d(1);o.length=n.length}},d(t){t&&w(e),b(o,t)}}}function xo(t){let e,n,o,r,l,i;return o=new vo({props:{$$slots:{lines:[ko],default:[wo]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),ct(o.$$.fragment),E(n,"class",r=t[3].content),E(e,"class",l=t[3].body+(t[1]?" "+t[3].compact:""))},m(r,l){y(r,e,l),v(e,n),at(o,n,null),t[17](e),i=!0},p(t,s){let[c]=s;const a={};262156&c&&(a.$$scope={dirty:c,ctx:t}),o.$set(a),(!i||8&c&&r!==(r=t[3].content))&&E(n,"class",r),(!i||10&c&&l!==(l=t[3].body+(t[1]?" "+t[3].compact:"")))&&E(e,"class",l)},i(t){i||(ot(o.$$.fragment,t),i=!0)},o(t){rt(o.$$.fragment,t),i=!1},d(n){n&&w(e),ut(o),t[17](null)}}}function _o(t,e,n){let o,r,l,i,s,c,u,d,f,h,{$$slots:p={},$$scope:g}=e,{_bodyEl:m,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:_}=R("state");a(t,m,(t=>n(22,u=t))),a(t,v,(t=>n(13,i=t))),a(t,y,(t=>n(14,s=t))),a(t,w,(t=>n(15,c=t))),a(t,b,(t=>n(21,l=t))),a(t,k,(t=>n(12,r=t))),a(t,x,(t=>n(20,o=t))),a(t,_,(t=>n(3,d=t)));let C,T=[];return t.$$set=t=>{"$$scope"in t&&n(18,g=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&$(m,u=f,u),53248&t.$$.dirty&&(n(1,h=r.seconds>=3600),n(2,T.length=c.length,T),C=s.min.seconds),8193&t.$$.dirty&&f&&i&&n(0,f.scrollTop=((l.seconds-C)/r.seconds-.5)*o,f)},[f,h,T,d,m,v,y,w,b,k,x,_,r,i,s,c,p,function(t){I[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},g]}class Co extends ft{constructor(t){super(),dt(this,t,_o,xo,i,{})}}function To(t){let e,n,o,i,s,c,a,u,d,f,h;var p=t[10].resizer;function $(t,e){return{props:{event:t[0]}}}return p&&(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[34](t[10],!0))&&t[34](t[10],!0).apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),c&&ct(c.$$.fragment),E(n,"class",o=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",a=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(o,r){y(o,e,r),v(e,n),v(e,s),c&&at(c,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){l(t[7]&&mt(t[7]))&&(t[7]&&mt(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){l(t[33](t[8],t[1]))&&t[33](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){l(t[33](t[9],t[1]))&&t[33](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){l(!ge(t[1])&&!$e(t[1])&&t[34](t[10]))&&(!ge(t[1])&&!$e(t[1])&&t[34](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&o!==(o=t[2].eventBody))&&E(n,"class",o),i&&l(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(c){et();const t=c;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[34](t[10],!0))&&t[34](t[10],!0).apply(this,arguments)})),ct(c.$$.fragment),ot(c.$$.fragment,1),at(c,e,null)):c=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),c.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&a!==(a=t[7]?"button":void 0))&&E(e,"role",a),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(c&&ot(c.$$.fragment,t),d=!0)},o(t){c&&rt(c.$$.fragment,t),d=!1},d(n){n&&w(e),c&&ut(c),t[53](null),f=!1,r(h)}}}function Do(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,B,{date:P}=e,{chunk:F}=e,{displayEventEnd:z,eventAllUpdated:G,eventBackgroundColor:j,eventTextColor:O,eventColor:W,eventContent:Y,eventClick:q,eventDidMount:X,eventClassNames:V,eventMouseEnter:J,eventMouseLeave:K,slotEventOverlap:Q,slotDuration:Z,slotHeight:tt,theme:et,_view:nt,_intlEventTime:ot,_interaction:rt,_iClasses:lt,_resBgColor:it,_resTxtColor:st,_slotTimeLimits:ct,_tasks:at}=R("state");function ut(t,e){return!$e(e)&&l(t)?e=>t({event:ce(E),el:D,jsEvent:e,view:Qt(r)}):void 0}return a(t,z,(t=>n(41,f=t))),a(t,G,(t=>n(55,i=t))),a(t,j,(t=>n(48,y=t))),a(t,O,(t=>n(45,g=t))),a(t,W,(t=>n(47,v=t))),a(t,Y,(t=>n(40,d=t))),a(t,q,(t=>n(37,o=t))),a(t,X,(t=>n(56,s=t))),a(t,V,(t=>n(42,h=t))),a(t,J,(t=>n(8,_=t))),a(t,K,(t=>n(9,C=t))),a(t,Q,(t=>n(44,$=t))),a(t,Z,(t=>n(52,x=t))),a(t,tt,(t=>n(50,b=t))),a(t,et,(t=>n(2,u=t))),a(t,nt,(t=>n(38,r=t))),a(t,ot,(t=>n(39,c=t))),a(t,rt,(t=>n(10,T=t))),a(t,lt,(t=>n(43,p=t))),a(t,it,(t=>n(49,w=t))),a(t,st,(t=>n(46,m=t))),a(t,ct,(t=>n(51,k=t))),N((()=>{l(s)&&s({event:ce(E),timeText:H,el:D,view:Qt(r)})})),A((()=>{l(i)&&!$e(S)&&Pt((()=>i({view:Qt(r)})),"eau",at)})),t.$$set=t=>{"date"in t&&n(35,P=t.date),"chunk"in t&&n(36,F=t.chunk)},t.$$.update=()=>{if(32&t.$$.dirty[1]&&n(0,E=F.event),39&t.$$.dirty[0]|4192432&t.$$.dirty[1]){n(1,S=E.display);let t=x.seconds/60,e=k.min.seconds/60,o=(F.start-P)/1e3/60,l=(F.end-P)/1e3/60,i=(o-e)/t*b,s=(l-o)/t*b,c=(k.max.seconds/60-o)/t*b,a=E.backgroundColor||w(E)||y||v,d=E.textColor||m(E)||g;n(5,U=`top:${i}px;min-height:${s}px;height:${s}px;max-height:${c}px;`),a&&n(5,U+=`background-color:${a};`),d&&n(5,U+=`color:${d};`),(!ge(S)&&!$e(S)||me(S))&&n(5,U+=`z-index:${F.column+1};left:${100/F.group.columns.length*F.column}%;width:${100/F.group.columns.length*($?.5*(1+F.group.columns.length-F.column):1)}%;`),n(4,M=[ge(S)?u.bgEvent:u.event,...p([],E),...se(h,E,r)].join(" "))}4&t.$$.dirty[0]|1952&t.$$.dirty[1]&&n(6,[H,L]=le(F,f,d,u,c,r),L),2&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(7,B=!ge(S)&&ut(o,S))},[E,S,u,D,M,U,L,B,_,C,T,z,G,j,O,W,Y,q,X,V,J,K,Q,Z,tt,et,nt,ot,rt,lt,it,st,ct,ut,function(t,e){return t.action?n=>t.action.drag(E,n,e):void 0},P,F,o,r,c,d,f,h,p,$,g,m,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{D=t,n(3,D)}))}]}let Eo=class extends ft{constructor(t){super(),dt(this,t,Do,To,i,{date:35,chunk:36},null,[-1,-1])}};function So(e){let n,o;return{c(){n=k("div"),E(n,"class",o=e[1].nowIndicator),M(n,"top",e[0]+"px")},m(t,e){y(t,n,e)},p(t,e){let[r]=e;2&r&&o!==(o=t[1].nowIndicator)&&E(n,"class",o),1&r&&M(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&w(n)}}}function Mo(t,e,n){let o,r,l,i,s,c,u,{slotDuration:d,slotHeight:f,theme:h,_now:p,_today:$,_slotTimeLimits:g}=R("state");a(t,d,(t=>n(11,l=t))),a(t,f,(t=>n(9,o=t))),a(t,h,(t=>n(1,c=t))),a(t,p,(t=>n(13,s=t))),a(t,$,(t=>n(12,i=t))),a(t,g,(t=>n(10,r=t)));let m=0;return t.$$.update=()=>{if(12288&t.$$.dirty&&n(8,u=(s-i)/1e3/60),3840&t.$$.dirty){let t=l.seconds/60,e=r.min.seconds/60;n(0,m=(u-e)/t*o)}},[m,c,d,f,h,p,$,g,u,o,r,l,i,s]}class Uo extends ft{constructor(t){super(),dt(this,t,Mo,So,i,{})}}function Lo(t,e,n){const o=t.slice();return o[33]=e[n],o}function Ho(t,e,n){const o=t.slice();return o[33]=e[n],o}function Bo(t,e){let n,o,r;return o=new Eo({props:{date:e[0],chunk:e[33]}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),8&n[0]&&(r.chunk=e[33]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function No(t){let e,n;return e=new Eo({props:{date:t[0],chunk:t[4][1]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n[0]&&(o.date=t[0]),16&n[0]&&(o.chunk=t[4][1]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ao(t,e){let n,o,r;return o=new Eo({props:{date:e[0],chunk:e[33]}}),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),4&n[0]&&(r.chunk=e[33]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),ut(o,t)}}}function Po(t){let e,n;return e=new Eo({props:{date:t[0],chunk:t[4][0]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n[0]&&(o.date=t[0]),16&n[0]&&(o.chunk=t[4][0]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ro(t){let e,n;return e=new Uo({}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Fo(t){let e,n,o,i,s,c,a,u,d,f,h,p,$,g,m,b=[],x=new Map,C=[],D=new Map,S=lt(t[3]);const M=t=>t[33].event;for(let e=0;e<S.length;e+=1){let n=Ho(t,S,e),o=M(n);x.set(o,b[e]=Bo(o,n))}let U=t[4][1]&&No(t),L=lt(t[2]);const H=t=>t[33].event;for(let e=0;e<L.length;e+=1){let n=Lo(t,L,e),o=H(n);D.set(o,C[e]=Ao(o,n))}let B=t[4][0]&&!t[4][0].event.allDay&&Po(t),N=t[9]&&t[5]&&Ro();return{c(){e=k("div"),n=k("div");for(let t=0;t<b.length;t+=1)b[t].c();i=_(),s=k("div"),U&&U.c(),c=_();for(let t=0;t<C.length;t+=1)C[t].c();a=_(),B&&B.c(),d=_(),f=k("div"),N&&N.c(),E(n,"class",o=t[7].bgEvents),E(s,"class",u=t[7].events),E(f,"class",h=t[7].extra),E(e,"class",p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")),E(e,"role","cell")},m(o,r){y(o,e,r),v(e,n);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(n,null);v(e,i),v(e,s),U&&U.m(s,null),v(s,c);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(s,null);v(s,a),B&&B.m(s,null),v(e,d),v(e,f),N&&N.m(f,null),t[29](e),$=!0,g||(m=[T(e,"pointerenter",(function(){l(t[20](t[8]))&&t[20](t[8]).apply(this,arguments)})),T(e,"pointerleave",(function(){l(t[8].pointer?.leave)&&t[8].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){l(t[8].action?.select)&&t[8].action?.select.apply(this,arguments)}))],g=!0)},p(r,l){t=r,9&l[0]&&(S=lt(t[3]),et(),b=st(b,l,M,0,t,S,x,n,it,Bo,null,Ho),nt()),(!$||128&l[0]&&o!==(o=t[7].bgEvents))&&E(n,"class",o),t[4][1]?U?(U.p(t,l),16&l[0]&&ot(U,1)):(U=No(t),U.c(),ot(U,1),U.m(s,c)):U&&(et(),rt(U,1,1,(()=>{U=null})),nt()),5&l[0]&&(L=lt(t[2]),et(),C=st(C,l,H,0,t,L,D,s,it,Ao,a,Lo),nt()),t[4][0]&&!t[4][0].event.allDay?B?(B.p(t,l),16&l[0]&&ot(B,1)):(B=Po(t),B.c(),ot(B,1),B.m(s,null)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),(!$||128&l[0]&&u!==(u=t[7].events))&&E(s,"class",u),t[9]&&t[5]?N?544&l[0]&&ot(N,1):(N=Ro(),N.c(),ot(N,1),N.m(f,null)):N&&(et(),rt(N,1,1,(()=>{N=null})),nt()),(!$||128&l[0]&&h!==(h=t[7].extra))&&E(f,"class",h),(!$||225&l[0]&&p!==(p=t[7].day+" "+t[7].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[7].today:"")+(t[6]?" "+t[7].highlight:"")))&&E(e,"class",p)},i(t){if(!$){for(let t=0;t<S.length;t+=1)ot(b[t]);ot(U);for(let t=0;t<L.length;t+=1)ot(C[t]);ot(B),ot(N),$=!0}},o(t){for(let t=0;t<b.length;t+=1)rt(b[t]);rt(U);for(let t=0;t<C.length;t+=1)rt(C[t]);rt(B),rt(N),$=!1},d(n){n&&w(e);for(let t=0;t<b.length;t+=1)b[t].d();U&&U.d();for(let t=0;t<C.length;t+=1)C[t].d();B&&B.d(),N&&N.d(),t[29](null),g=!1,r(m)}}}function zo(t,e,n){let o,r,l,i,s,c,u,d,f,h,p,{date:$}=e,{resource:g}=e,{_events:m,_iEvents:v,highlightedDates:y,nowIndicator:w,slotDuration:b,slotHeight:k,theme:x,_interaction:_,_today:C,_slotTimeLimits:T}=R("state");a(t,m,(t=>n(28,u=t))),a(t,v,(t=>n(27,c=t))),a(t,y,(t=>n(25,i=t))),a(t,w,(t=>n(9,h=t))),a(t,b,(t=>n(31,r=t))),a(t,k,(t=>n(30,o=t))),a(t,x,(t=>n(7,d=t))),a(t,_,(t=>n(8,f=t))),a(t,C,(t=>n(26,s=t))),a(t,T,(t=>n(24,l=t)));let D,E,S,M,U,L,H=[];function B(t){return t-=Ot(p).top,{allDay:!1,date:_t(_t(xt($),l.min),r,zt(t/o)),resource:g,dayEl:p}}return t.$$set=t=>{"date"in t&&n(0,$=t.date),"resource"in t&&n(21,g=t.resource)},t.$$.update=()=>{if(16777217&t.$$.dirty[0]&&(n(22,U=_t(xt($),l.min)),n(23,L=_t(xt($),l.max))),283115532&t.$$.dirty[0]){n(2,D=[]),n(3,E=[]);for(let t of u)if(!t.allDay&&pe(t,U,L,g,!0)){let e=oe(t,U,L);if("background"===t.display)E.push(e);else D.push(e)}!function(t){if(!t.length)return;re(t);let e={columns:[],end:t[0].end};for(let n of t){let t=0;if(n.start<e.end){for(;t<e.columns.length&&!(e.columns[t][e.columns[t].length-1].end<=n.start);++t);n.end>e.end&&(e.end=n.end)}else e={columns:[],end:n.end};e.columns.length<t+1&&e.columns.push([]),e.columns[t].push(n),n.group=e,n.column=t}}(D)}148897792&t.$$.dirty[0]&&n(4,H=c.map((t=>t&&pe(t,U,L,g,!0)?oe(t,U,L):null))),67108865&t.$$.dirty[0]&&n(5,S=Ut($,s)),33554433&t.$$.dirty[0]&&n(6,M=i.some((t=>Ut(t,$)))),2&t.$$.dirty[0]&&p&&Xt(p,B)},[$,p,D,E,H,S,M,d,f,h,m,v,y,w,b,k,x,_,C,T,function(t){return t.pointer?e=>t.pointer.enterTimeGrid($,p,e,g):void 0},g,U,L,l,i,s,c,u,function(t){I[t?"unshift":"push"]((()=>{p=t,n(1,p)}))}]}let Io=class extends ft{constructor(t){super(),dt(this,t,zo,Fo,i,{date:0,resource:21},null,[-1,-1])}};function Go(t){let e,n,o,i,s,c,a,u,d,f,h;var p=t[10].resizer;function $(t,e){return{props:{event:t[0]}}}return p&&(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[30](t[10],!0))&&t[30](t[10],!0).apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),c&&ct(c.$$.fragment),E(n,"class",o=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",a=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(o,r){y(o,e,r),v(e,n),v(e,s),c&&at(c,e,null),t[47](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){l(t[7]&&mt(t[7]))&&(t[7]&&mt(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){l(t[29](t[8],t[1]))&&t[29](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){l(t[29](t[9],t[1]))&&t[29](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){l(!$e(t[1])&&t[30](t[10]))&&(!$e(t[1])&&t[30](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&o!==(o=t[2].eventBody))&&E(n,"class",o),i&&l(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(c){et();const t=c;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(c=U(p,$(t)),c.$on("pointerdown",(function(){l(t[30](t[10],!0))&&t[30](t[10],!0).apply(this,arguments)})),ct(c.$$.fragment),ot(c.$$.fragment,1),at(c,e,null)):c=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),c.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&a!==(a=t[7]?"button":void 0))&&E(e,"role",a),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(c&&ot(c.$$.fragment,t),d=!0)},o(t){c&&rt(c.$$.fragment,t),d=!1},d(n){n&&w(e),c&&ut(c),t[47](null),f=!1,r(h)}}}function jo(t,e,n){let o,r,i,s,c,u,d,f,h,p,$,g,m,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{longChunks:M={}}=e,{displayEventEnd:U,eventAllUpdated:L,eventBackgroundColor:H,eventTextColor:B,eventClick:P,eventColor:F,eventContent:z,eventClassNames:G,eventDidMount:j,eventMouseEnter:O,eventMouseLeave:W,theme:Y,_view:q,_intlEventTime:X,_interaction:V,_iClasses:J,_resBgColor:K,_resTxtColor:Q,_tasks:Z}=R("state");a(t,U,(t=>n(39,f=t))),a(t,L,(t=>n(49,i=t))),a(t,H,(t=>n(45,v=t))),a(t,B,(t=>n(42,$=t))),a(t,P,(t=>n(35,o=t))),a(t,F,(t=>n(44,m=t))),a(t,z,(t=>n(38,d=t))),a(t,G,(t=>n(40,h=t))),a(t,j,(t=>n(50,s=t))),a(t,O,(t=>n(8,w=t))),a(t,W,(t=>n(9,b=t))),a(t,Y,(t=>n(2,u=t))),a(t,q,(t=>n(36,r=t))),a(t,X,(t=>n(37,c=t))),a(t,V,(t=>n(10,k=t))),a(t,J,(t=>n(41,p=t))),a(t,K,(t=>n(46,y=t))),a(t,Q,(t=>n(43,g=t)));let tt,et,nt=1;function ot(t,e){return!$e(e)&&l(t)?e=>t({event:ce(_),el:x,jsEvent:e,view:Qt(r)}):void 0}return N((()=>{l(s)&&s({event:ce(_),timeText:E,el:x,view:Qt(r)})})),A((()=>{l(i)&&!$e(tt)&&Pt((()=>i({view:Qt(r)})),"eau",Z)})),t.$$set=t=>{"chunk"in t&&n(31,S=t.chunk),"longChunks"in t&&n(32,M=t.longChunks)},t.$$.update=()=>{if(1&t.$$.dirty[1]&&n(0,_=S.event),37&t.$$.dirty[0]|65065&t.$$.dirty[1]){n(1,tt=_.display);let t=_.backgroundColor||y(_)||v||m,e=_.textColor||g(_)||$;n(5,T=`width:calc(${100*S.days}% + ${7*(S.days-1)}px);margin-top:${nt}px;`),t&&n(5,T+=`background-color:${t};`),e&&n(5,T+=`color:${e};`),n(4,C=[u.event,...p([],_),...se(h,_,r)].join(" "))}4&t.$$.dirty[0]|481&t.$$.dirty[1]&&n(6,[E,D]=le(S,f,d,u,c,r),D),2&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(7,et=ot(o,tt))},[_,tt,u,x,C,T,D,et,w,b,k,U,L,H,B,P,F,z,G,j,O,W,Y,q,X,V,J,K,Q,ot,function(t,e){return t.action?n=>t.action.drag(_,n,e):void 0},S,M,function(){x&&n(34,nt=fe(S,M,Yt(x)))},nt,o,r,c,d,f,h,p,$,g,m,v,y,function(t){I[t?"unshift":"push"]((()=>{x=t,n(3,x)}))}]}class Oo extends ft{constructor(t){super(),dt(this,t,jo,Go,i,{chunk:31,longChunks:32,reposition:33},null,[-1,-1])}get reposition(){return this.$$.ctx[33]}}function Wo(t,e,n){const o=t.slice();return o[21]=e[n],o[22]=e,o[23]=n,o}function Yo(t){let e,n,o,r;return n=new Oo({props:{chunk:t[2][0]}}),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[8].events+" "+t[8].preview)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(t,l){const i={};4&l&&(i.chunk=t[2][0]),n.$set(i),(!r||256&l&&o!==(o=t[8].events+" "+t[8].preview))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function qo(t,e){let n,o,r,l=e[23];const i=()=>e[19](o,l),s=()=>e[19](null,l);let c={chunk:e[21],longChunks:e[1]};return o=new Oo({props:c}),i(),{key:t,first:null,c(){n=C(),ct(o.$$.fragment),this.first=n},m(t,e){y(t,n,e),at(o,t,e),r=!0},p(t,n){l!==(e=t)[23]&&(s(),l=e[23],i());const r={};16&n&&(r.chunk=e[21]),2&n&&(r.longChunks=e[1]),o.$set(r)},i(t){r||(ot(o.$$.fragment,t),r=!0)},o(t){rt(o.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(o,t)}}}function Xo(t){let e,n,o,r,i,s,c,a,u=t[2][0]&&Ut(t[2][0].date,t[0]),d=[],f=new Map,h=u&&Yo(t),p=lt(t[4]);const $=t=>t[21].event;for(let e=0;e<p.length;e+=1){let n=Wo(t,p,e),o=$(n);f.set(o,d[e]=qo(o,n))}return{c(){e=k("div"),h&&h.c(),n=_(),o=k("div");for(let t=0;t<d.length;t+=1)d[t].c();E(o,"class",r=t[8].events),E(e,"class",i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")),E(e,"role","cell")},m(r,i){y(r,e,i),h&&h.m(e,null),v(e,n),v(e,o);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(o,null);t[20](e),s=!0,c||(a=T(e,"pointerdown",(function(){l(t[9].action?.select)&&t[9].action?.select.apply(this,arguments)})),c=!0)},p(l,c){let[a]=c;t=l,5&a&&(u=t[2][0]&&Ut(t[2][0].date,t[0])),u?h?(h.p(t,a),5&a&&ot(h,1)):(h=Yo(t),h.c(),ot(h,1),h.m(e,n)):h&&(et(),rt(h,1,1,(()=>{h=null})),nt()),146&a&&(p=lt(t[4]),et(),d=st(d,a,$,0,t,p,f,o,it,qo,null,Wo),nt()),(!s||256&a&&r!==(r=t[8].events))&&E(o,"class",r),(!s||353&a&&i!==(i=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[5]?" "+t[8].today:"")+(t[6]?" "+t[8].highlight:"")))&&E(e,"class",i)},i(t){if(!s){ot(h);for(let t=0;t<p.length;t+=1)ot(d[t]);s=!0}},o(t){rt(h);for(let t=0;t<d.length;t+=1)rt(d[t]);s=!1},d(n){n&&w(e),h&&h.d();for(let t=0;t<d.length;t+=1)d[t].d();t[20](null),c=!1,a()}}}function Vo(t,e,n){let o,r,l,i,s,c,u,d,{date:f}=e,{chunks:h}=e,{longChunks:p}=e,{iChunks:$=[]}=e,{resource:g}=e,{highlightedDates:m,theme:v,_interaction:y,_today:w}=R("state");a(t,m,(t=>n(17,o=t))),a(t,v,(t=>n(8,l=t))),a(t,y,(t=>n(9,i=t))),a(t,w,(t=>n(18,r=t)));let b=[];return t.$$set=t=>{"date"in t&&n(0,f=t.date),"chunks"in t&&n(14,h=t.chunks),"longChunks"in t&&n(1,p=t.longChunks),"iChunks"in t&&n(2,$=t.iChunks),"resource"in t&&n(15,g=t.resource)},t.$$.update=()=>{if(16401&t.$$.dirty){n(4,c=[]);for(let t of h)Ut(t.date,f)&&c.push(t)}262145&t.$$.dirty&&n(5,u=Ut(f,r)),131073&t.$$.dirty&&n(6,d=o.some((t=>Ut(t,f)))),32777&t.$$.dirty&&s&&Xt(s,(()=>({allDay:!0,date:f,resource:g,dayEl:s})))},[f,p,$,s,c,u,d,b,l,i,m,v,y,w,h,g,function(){he(b,c)},o,r,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(7,b)}))},function(t){I[t?"unshift":"push"]((()=>{s=t,n(3,s)}))}]}class Jo extends ft{constructor(t){super(),dt(this,t,Vo,Xo,i,{date:0,chunks:14,longChunks:1,iChunks:2,resource:15,reposition:16})}get reposition(){return this.$$.ctx[16]}}function Ko(t,e,n){const o=t.slice();return o[18]=e[n],o[19]=e,o[20]=n,o}function Qo(t){let e,n,o=t[20];const r=()=>t[15](e,o),l=()=>t[15](null,o);let i={date:t[18],chunks:t[2],longChunks:t[3],iChunks:t[4],resource:t[1]};return e=new Jo({props:i}),r(),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){o!==t[20]&&(l(),o=t[20],r());const i={};1&n&&(i.date=t[18]),4&n&&(i.chunks=t[2]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),2&n&&(i.resource=t[1]),e.$set(i)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){l(),ut(e,t)}}}function Zo(t){let e,n,o,r,l=lt(t[0]),i=[];for(let e=0;e<l.length;e+=1)i[e]=Qo(Ko(t,l,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=C()},m(l,s){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(l,s);y(l,e,s),n=!0,o||(r=T(window,"resize",t[9]),o=!0)},p(t,n){let[o]=n;if(63&o){let n;for(l=lt(t[0]),n=0;n<l.length;n+=1){const r=Ko(t,l,n);i[n]?(i[n].p(r,o),ot(i[n],1)):(i[n]=Qo(r),i[n].c(),ot(i[n],1),i[n].m(e.parentNode,e))}for(et(),n=l.length;n<i.length;n+=1)s(n);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)ot(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);n=!1},d(t){t&&w(e),b(i,t),o=!1,r()}}}function tr(t,e,n){let o,r,l,{dates:i}=e,{resource:s}=e,{_events:c,_iEvents:u,_queue2:d,hiddenDays:f}=R("state");a(t,c,(t=>n(14,l=t))),a(t,u,(t=>n(13,r=t))),a(t,f,(t=>n(12,o=t)));let h,p,$,g,m=[],v=[],y={};function w(){Nt((()=>he(v,i)),y,d)}return t.$$set=t=>{"dates"in t&&n(0,i=t.dates),"resource"in t&&n(1,s=t.resource)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(10,$=i[0]),n(11,g=Tt(xt(i[i.length-1])))),23558&t.$$.dirty){n(2,h=[]);for(let t of l)if(t.allDay&&"background"!==t.display&&pe(t,$,g,s)){let e=oe(t,$,g);h.push(e)}n(3,p=de(h,o)),w()}15362&t.$$.dirty&&n(4,m=r.map((t=>{let e;return t&&t.allDay&&pe(t,$,g,s)?(e=oe(t,$,g),de([e],o)):e=null,e})))},[i,s,h,p,m,v,c,u,f,w,$,g,o,r,l,function(t,e){I[t?"unshift":"push"]((()=>{v[e]=t,n(5,v)}))}]}class er extends ft{constructor(t){super(),dt(this,t,tr,Zo,i,{dates:0,resource:1})}}function nr(t,e,n){const o=t.slice();return o[10]=e[n],o}function or(t,e,n){const o=t.slice();return o[10]=e[n],o}function rr(t){let e,n,o,r,i,s,c,a,u;return{c(){e=k("div"),n=k("time"),s=_(),E(n,"datetime",o=Mt(t[10],10)),E(n,"aria-label",r=t[2].format(t[10])),E(e,"class",c=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),E(e,"role","columnheader")},m(o,r){y(o,e,r),v(e,n),v(e,s),a||(u=g(i=vt.call(null,n,t[3].format(t[10]))),a=!0)},p(s,a){t=s,2&a&&o!==(o=Mt(t[10],10))&&E(n,"datetime",o),6&a&&r!==(r=t[2].format(t[10]))&&E(n,"aria-label",r),i&&l(i.update)&&10&a&&i.update.call(null,t[3].format(t[10])),3&a&&c!==(c=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()])&&E(e,"class",c)},d(t){t&&w(e),a=!1,u()}}}function lr(t){let e,n=lt(t[1]),o=[];for(let e=0;e<n.length;e+=1)o[e]=rr(or(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=C()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);y(t,e,n)},p(t,r){if(15&r){let l;for(n=lt(t[1]),l=0;l<n.length;l+=1){const i=or(t,n,l);o[l]?o[l].p(i,r):(o[l]=rr(i),o[l].c(),o[l].m(e.parentNode,e))}for(;l<o.length;l+=1)o[l].d(1);o.length=n.length}},d(t){t&&w(e),b(o,t)}}}function ir(t){let e,n,o,r,l,i,s,c,a;return o=new vo({props:{$$slots:{default:[sr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),ct(o.$$.fragment),r=_(),l=k("div"),E(l,"class",i=t[0].hiddenScroll),E(n,"class",s=t[0].content),E(e,"class",c=t[0].allDay)},m(t,i){y(t,e,i),v(e,n),at(o,n,null),v(n,r),v(n,l),a=!0},p(t,r){const u={};32770&r&&(u.$$scope={dirty:r,ctx:t}),o.$set(u),(!a||1&r&&i!==(i=t[0].hiddenScroll))&&E(l,"class",i),(!a||1&r&&s!==(s=t[0].content))&&E(n,"class",s),(!a||1&r&&c!==(c=t[0].allDay))&&E(e,"class",c)},i(t){a||(ot(o.$$.fragment,t),a=!0)},o(t){rt(o.$$.fragment,t),a=!1},d(t){t&&w(e),ut(o)}}}function sr(t){let e,n;return e=new er({props:{dates:t[1]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.dates=t[1]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function cr(t){let e,n;return e=new Io({props:{date:t[10]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.date=t[10]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function ar(t){let e,n,o=lt(t[1]),r=[];for(let e=0;e<o.length;e+=1)r[e]=cr(nr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(2&n){let i;for(o=lt(t[1]),i=0;i<o.length;i+=1){const l=nr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=cr(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function ur(t){let e,n,o,r,l,i,s,c,a,u;n=new vo({props:{$$slots:{default:[lr]},$$scope:{ctx:t}}});let d=t[4]&&ir(t);return a=new Co({props:{$$slots:{default:[ar]},$$scope:{ctx:t}}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),r=k("div"),s=_(),d&&d.c(),c=_(),ct(a.$$.fragment),E(r,"class",l=t[0].hiddenScroll),E(e,"class",i=t[0].header)},m(t,l){y(t,e,l),at(n,e,null),v(e,o),v(e,r),y(t,s,l),d&&d.m(t,l),y(t,c,l),at(a,t,l),u=!0},p(t,o){let[s]=o;const f={};32783&s&&(f.$$scope={dirty:s,ctx:t}),n.$set(f),(!u||1&s&&l!==(l=t[0].hiddenScroll))&&E(r,"class",l),(!u||1&s&&i!==(i=t[0].header))&&E(e,"class",i),t[4]?d?(d.p(t,s),16&s&&ot(d,1)):(d=ir(t),d.c(),ot(d,1),d.m(c.parentNode,c)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const h={};32770&s&&(h.$$scope={dirty:s,ctx:t}),a.$set(h)},i(t){u||(ot(n.$$.fragment,t),ot(d),ot(a.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(a.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(c)),ut(n),d&&d.d(t),ut(a,t)}}}function dr(t,e,n){let o,r,l,i,s,{_viewDates:c,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=R("state");return a(t,c,(t=>n(1,r=t))),a(t,u,(t=>n(3,i=t))),a(t,d,(t=>n(2,l=t))),a(t,f,(t=>n(4,s=t))),a(t,h,(t=>n(0,o=t))),[o,r,l,i,s,c,u,d,f,h]}let fr=class extends ft{constructor(t){super(),dt(this,t,dr,ur,i,{})}};var hr={createOptions(t){t.buttonText.timeGridDay="day",t.buttonText.timeGridWeek="week",t.view="timeGridWeek",t.views.timeGridDay={buttonText:ve,component:fr,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:xe("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:ye,component:fr,duration:{weeks:1},theme:xe("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return gt([t._events,t._viewDates,t.flexibleSlotTimeLimits,t.slotMinTime,t.slotMaxTime],(t=>{let[e,n,o,r,i]=t,s=kt(r),c=kt(i);if(o){let t=kt(It(s.seconds,Gt(0,c.seconds-wt))),r=kt(Gt(c.seconds,t.seconds+wt)),i=l(o?.eventFilter)?o.eventFilter:t=>!ge(t.display);t:for(let o of n){let n=_t(xt(o),s),l=_t(xt(o),c),a=_t(xt(o),t),u=_t(xt(o),r);for(let d of e)if(!d.allDay&&i(d)&&d.start<u&&d.end>a){if(d.start<n){let e=Gt((d.start-o)/1e3,t.seconds);e<s.seconds&&(s.seconds=e)}if(d.end>l){let t=It((d.end-o)/1e3,r.seconds);t>c.seconds&&(c.seconds=t)}if(s.seconds===t.seconds&&c.seconds===r.seconds)break t}}}return{min:s,max:c}}))}(t),t._times=function(t){return gt([t._slotTimeLimits,t._intlSlotLabel,t.slotDuration],(t=>{let[e,n,o]=t,r=o.seconds>=3600,l=[],i=Et(bt()),s=xt(i),c=1;for(_t(i,e.min),_t(s,e.max);i<s;)l.push([Mt(i),l.length&&(c||r)?n.format(i):""]),_t(i,o),c=1-c;return l}))}(t)}};function pr(t){return t.map((t=>({id:String(t.id),title:t.title||"",titleHTML:t.titleHTML||"",eventBackgroundColor:t.eventBackgroundColor,eventTextColor:t.eventTextColor})))}function $r(e){let n,o,r,i;return{c(){n=k("span"),E(n,"aria-label",e[2])},m(t,l){y(t,n,l),e[9](n),r||(i=g(o=vt.call(null,n,e[1])),r=!0)},p(t,e){let[r]=e;4&r&&E(n,"aria-label",t[2]),o&&l(o.update)&&2&r&&o.update.call(null,t[1])},i:t,o:t,d(t){t&&w(n),e[9](null),r=!1,i()}}}function gr(t,e,n){let o,r,i,{resource:s}=e,{date:c}=e,{resourceLabelContent:u,resourceLabelDidMount:d,_intlDayHeaderAL:f}=R("state");a(t,u,(t=>n(8,i=t))),a(t,d,(t=>n(11,r=t))),a(t,f,(t=>n(10,o=t)));const h=P();let p,$,g;return N((()=>{l(r)&&r({resource:s,date:c?St(c):void 0,el:p})})),A((()=>{c?n(2,g=o.format(c)+", "+p.innerText):(n(2,g=void 0),h("text",p.innerText))})),t.$$set=t=>{"resource"in t&&n(6,s=t.resource),"date"in t&&n(7,c=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,$=i?l(i)?i({resource:s,date:c?St(c):void 0}):i:s.titleHTML?{html:s.titleHTML}:s.title)},[p,$,g,u,d,f,s,c,i,function(t){I[t?"unshift":"push"]((()=>{p=t,n(0,p)}))}]}class mr extends ft{constructor(t){super(),dt(this,t,gr,$r,i,{resource:6,date:7})}}function vr(t,e,n){const o=t.slice();return o[17]=e[n],o}function yr(t,e,n){const o=t.slice();return o[20]=e[n],o}function wr(t,e,n){const o=t.slice();return o[26]=e[n],o}function br(t,e,n){const o=t.slice();return o[23]=e[n],o}function kr(t,e,n){const o=t.slice();return o[26]=e[n],o}function xr(t,e,n){const o=t.slice();return o[17]=e[n],o[32]=n,o}function _r(t,e,n){const o=t.slice();return o[20]=e[n],o}function Cr(t){let e,n,o,r;return n=new mr({props:{resource:t[17]}}),n.$on("text",(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t[16](t[32],...n)})),{c(){e=k("div"),ct(n.$$.fragment),E(e,"class",o=t[5].day)},m(t,o){y(t,e,o),at(n,e,null),r=!0},p(l,i){t=l;const s={};8&i[0]&&(s.resource=t[17]),n.$set(s),(!r||32&i[0]&&o!==(o=t[5].day))&&E(e,"class",o)},i(t){r||(ot(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Tr(e){let n,o,r,i,s,c,a,u;return{c(){n=k("div"),o=k("time"),E(o,"datetime",r=Mt(e[17],10)),E(o,"aria-label",i=e[6].format(e[17])),E(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,r){y(t,n,r),v(n,o),a||(u=g(s=vt.call(null,o,e[7].format(e[17]))),a=!0)},p(t,a){e=t,8&a[0]&&r!==(r=Mt(e[17],10))&&E(o,"datetime",r),72&a[0]&&i!==(i=e[6].format(e[17]))&&E(o,"aria-label",i),s&&l(s.update)&&136&a[0]&&s.update.call(null,e[7].format(e[17])),40&a[0]&&c!==(c=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])&&E(n,"class",c)},i:t,o:t,d(t){t&&w(n),a=!1,u()}}}function Dr(t){let e,n,o,r=lt(t[3][1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Mr(_r(t,r,e));const i=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){e=k("div");for(let t=0;t<l.length;t+=1)l[t].c();E(e,"class",n=t[5].days)},m(t,n){y(t,e,n);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);o=!0},p(t,s){if(252&s[0]){let n;for(r=lt(t[3][1]),n=0;n<r.length;n+=1){const o=_r(t,r,n);l[n]?(l[n].p(o,s),ot(l[n],1)):(l[n]=Mr(o),l[n].c(),ot(l[n],1),l[n].m(e,null))}for(et(),n=r.length;n<l.length;n+=1)i(n);nt()}(!o||32&s[0]&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!o){for(let t=0;t<r.length;t+=1)ot(l[t]);o=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);o=!1},d(t){t&&w(e),b(l,t)}}}function Er(e){let n,o,r,i,s,c,a,u,d;return{c(){n=k("div"),o=k("time"),c=_(),E(o,"datetime",r=Mt(e[20],10)),E(o,"aria-label",i=""+(e[4][e[32]]+e[6].format(e[20]))),E(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),E(n,"role","columnheader")},m(t,r){y(t,n,r),v(n,o),v(n,c),u||(d=g(s=vt.call(null,o,e[7].format(e[20]))),u=!0)},p(t,c){e=t,8&c[0]&&r!==(r=Mt(e[20],10))&&E(o,"datetime",r),88&c[0]&&i!==(i=""+(e[4][e[32]]+e[6].format(e[20])))&&E(o,"aria-label",i),s&&l(s.update)&&136&c[0]&&s.update.call(null,e[7].format(e[20])),40&c[0]&&a!==(a=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()])&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),u=!1,d()}}}function Sr(t){let e,n,o,r,l;return n=new mr({props:{resource:t[20],date:t[17]}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),E(e,"class",r=t[5].day),E(e,"role","columnheader")},m(t,r){y(t,e,r),at(n,e,null),v(e,o),l=!0},p(t,o){const i={};8&o[0]&&(i.resource=t[20]),8&o[0]&&(i.date=t[17]),n.$set(i),(!l||32&o[0]&&r!==(r=t[5].day))&&E(e,"class",r)},i(t){l||(ot(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Mr(t){let e,n,o,r;const l=[Sr,Er],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function Ur(t){let e,n,o,r,l,i,s;const c=[Tr,Cr],a=[];function u(t,e){return t[2]?0:1}n=u(t),o=a[n]=c[n](t);let d=t[3][1].length>1&&Dr(t);return{c(){e=k("div"),o.c(),r=_(),d&&d.c(),l=_(),E(e,"class",i=t[5].resource)},m(t,o){y(t,e,o),a[n].m(e,null),v(e,r),d&&d.m(e,null),v(e,l),s=!0},p(t,f){let h=n;n=u(t),n===h?a[n].p(t,f):(et(),rt(a[h],1,1,(()=>{a[h]=null})),nt(),o=a[n],o?o.p(t,f):(o=a[n]=c[n](t),o.c()),ot(o,1),o.m(e,r)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&&ot(d,1)):(d=Dr(t),d.c(),ot(d,1),d.m(e,l)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt()),(!s||32&f[0]&&i!==(i=t[5].resource))&&E(e,"class",i)},i(t){s||(ot(o),ot(d),s=!0)},o(t){rt(o),rt(d),s=!1},d(t){t&&w(e),a[n].d(),d&&d.d()}}}function Lr(t){let e,n,o=lt(t[3][0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Ur(xr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(252&n[0]){let i;for(o=lt(t[3][0]),i=0;i<o.length;i+=1){const l=xr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Ur(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Hr(t){let e,n,o,r,l,i,s,c,a;return o=new vo({props:{$$slots:{default:[Fr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),ct(o.$$.fragment),r=_(),l=k("div"),E(l,"class",i=t[5].hiddenScroll),E(n,"class",s=t[5].content),E(e,"class",c=t[5].allDay)},m(t,i){y(t,e,i),v(e,n),at(o,n,null),v(n,r),v(n,l),a=!0},p(t,r){const u={};39&r[0]|16&r[1]&&(u.$$scope={dirty:r,ctx:t}),o.$set(u),(!a||32&r[0]&&i!==(i=t[5].hiddenScroll))&&E(l,"class",i),(!a||32&r[0]&&s!==(s=t[5].content))&&E(n,"class",s),(!a||32&r[0]&&c!==(c=t[5].allDay))&&E(e,"class",c)},i(t){a||(ot(o.$$.fragment,t),a=!0)},o(t){rt(o.$$.fragment,t),a=!1},d(t){t&&w(e),ut(o)}}}function Br(t){let e,n,o=lt(t[1]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Ar(wr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(35&n[0]){let i;for(o=lt(t[1]),i=0;i<o.length;i+=1){const l=wr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Ar(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Nr(t){let e,n,o=lt(t[0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Rr(br(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(35&n[0]){let i;for(o=lt(t[0]),i=0;i<o.length;i+=1){const l=br(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Rr(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function Ar(t){let e,n,o,r,l;return n=new er({props:{dates:t[0],resource:t[26]}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),E(e,"class",r=t[5].resource)},m(t,r){y(t,e,r),at(n,e,null),v(e,o),l=!0},p(t,o){const i={};1&o[0]&&(i.dates=t[0]),2&o[0]&&(i.resource=t[26]),n.$set(i),(!l||32&o[0]&&r!==(r=t[5].resource))&&E(e,"class",r)},i(t){l||(ot(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&w(e),ut(n)}}}function Pr(t){let e,n;return e=new er({props:{dates:[t[23]],resource:t[26]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};1&n[0]&&(o.dates=[t[23]]),2&n[0]&&(o.resource=t[26]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Rr(t){let e,n,o,r,l=lt(t[1]),i=[];for(let e=0;e<l.length;e+=1)i[e]=Pr(kr(t,l,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",o=t[5].resource)},m(t,o){y(t,e,o);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,c){if(3&c[0]){let o;for(l=lt(t[1]),o=0;o<l.length;o+=1){const r=kr(t,l,o);i[o]?(i[o].p(r,c),ot(i[o],1)):(i[o]=Pr(r),i[o].c(),ot(i[o],1),i[o].m(e,n))}for(et(),o=l.length;o<i.length;o+=1)s(o);nt()}(!r||32&c[0]&&o!==(o=t[5].resource))&&E(e,"class",o)},i(t){if(!r){for(let t=0;t<l.length;t+=1)ot(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);r=!1},d(t){t&&w(e),b(i,t)}}}function Fr(t){let e,n,o,r;const l=[Nr,Br],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=l[e](t),{c(){n.c(),o=C()},m(t,n){i[e].m(t,n),y(t,o,n),r=!0},p(t,r){let c=e;e=s(t),e===c?i[e].p(t,r):(et(),rt(i[c],1,1,(()=>{i[c]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=l[e](t),n.c()),ot(n,1),n.m(o.parentNode,o))},i(t){r||(ot(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(o),i[e].d(t)}}}function zr(t){let e,n;return e=new Io({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){const o={};12&n[0]&&(o.date=t[2]?t[17]:t[20]),12&n[0]&&(o.resource=t[2]?t[20]:t[17]),e.$set(o)},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ir(t){let e,n,o,r,l=lt(t[3][1]),i=[];for(let e=0;e<l.length;e+=1)i[e]=zr(yr(t,l,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=k("div");for(let t=0;t<i.length;t+=1)i[t].c();n=_(),E(e,"class",o=t[5].resource)},m(t,o){y(t,e,o);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,c){if(12&c[0]){let o;for(l=lt(t[3][1]),o=0;o<l.length;o+=1){const r=yr(t,l,o);i[o]?(i[o].p(r,c),ot(i[o],1)):(i[o]=zr(r),i[o].c(),ot(i[o],1),i[o].m(e,n))}for(et(),o=l.length;o<i.length;o+=1)s(o);nt()}(!r||32&c[0]&&o!==(o=t[5].resource))&&E(e,"class",o)},i(t){if(!r){for(let t=0;t<l.length;t+=1)ot(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);r=!1},d(t){t&&w(e),b(i,t)}}}function Gr(t){let e,n,o=lt(t[3][0]),r=[];for(let e=0;e<o.length;e+=1)r[e]=Ir(vr(t,o,e));const l=t=>rt(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);y(t,e,o),n=!0},p(t,n){if(44&n[0]){let i;for(o=lt(t[3][0]),i=0;i<o.length;i+=1){const l=vr(t,o,i);r[i]?(r[i].p(l,n),ot(r[i],1)):(r[i]=Ir(l),r[i].c(),ot(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=o.length;i<r.length;i+=1)l(i);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)ot(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&w(e),b(r,t)}}}function jr(t){let e,n,o,r,l,i,s,c,a,u;n=new vo({props:{$$slots:{default:[Lr]},$$scope:{ctx:t}}});let d=t[8]&&Hr(t);return a=new Co({props:{$$slots:{default:[Gr]},$$scope:{ctx:t}}}),{c(){e=k("div"),ct(n.$$.fragment),o=_(),r=k("div"),s=_(),d&&d.c(),c=_(),ct(a.$$.fragment),E(r,"class",l=t[5].hiddenScroll),E(e,"class",i=t[5].header)},m(t,l){y(t,e,l),at(n,e,null),v(e,o),v(e,r),y(t,s,l),d&&d.m(t,l),y(t,c,l),at(a,t,l),u=!0},p(t,o){const s={};252&o[0]|16&o[1]&&(s.$$scope={dirty:o,ctx:t}),n.$set(s),(!u||32&o[0]&&l!==(l=t[5].hiddenScroll))&&E(r,"class",l),(!u||32&o[0]&&i!==(i=t[5].header))&&E(e,"class",i),t[8]?d?(d.p(t,o),256&o[0]&&ot(d,1)):(d=Hr(t),d.c(),ot(d,1),d.m(c.parentNode,c)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const f={};44&o[0]|16&o[1]&&(f.$$scope={dirty:o,ctx:t}),a.$set(f)},i(t){u||(ot(n.$$.fragment,t),ot(d),ot(a.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(a.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(c)),ut(n),d&&d.d(t),ut(a,t)}}}function Or(t,e,n){let o,r,l,i,s,c,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:p,_intlDayHeader:$,_intlDayHeaderAL:g,allDaySlot:m,theme:v}=R("state");a(t,f,(t=>n(2,l=t))),a(t,h,(t=>n(0,o=t))),a(t,p,(t=>n(1,r=t))),a(t,$,(t=>n(7,c=t))),a(t,g,(t=>n(6,s=t))),a(t,m,(t=>n(8,u=t))),a(t,v,(t=>n(5,i=t)));let y=[];return t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,d=l?[o,r]:[r,o])},[o,r,l,d,y,i,s,c,u,f,h,p,$,g,m,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}class Wr extends ft{constructor(t){super(),dt(this,t,Or,jr,i,{},null,[-1,-1])}}function Yr(t,e,n){let o,r,l,{resources:i,_resBgColor:s,_resTxtColor:c}=R("state");return a(t,i,(t=>n(3,o=t))),a(t,s,(t=>n(5,l=t))),a(t,c,(t=>n(4,r=t))),$(s,l=t=>{let e=o.find((e=>t.resourceIds.includes(e.id)));return e?.eventBackgroundColor},l),$(c,r=t=>{let e=o.find((e=>t.resourceIds.includes(e.id)));return e?.eventTextColor},r),[i,s,c]}let qr=class extends ft{constructor(t){super(),dt(this,t,Yr,null,i,{})}};var Xr={createOptions(t){t.resources=[],t.datesAboveResources=!1,t.filterResourcesWithEvents=!1,t.resourceLabelContent=void 0,t.resourceLabelDidMount=void 0,t.buttonText.resourceTimeGridDay="day",t.buttonText.resourceTimeGridWeek="week",t.theme.resource="ec-resource",t.theme.resourceTitle="ec-resource-title",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:ve,component:Wr,duration:{days:1},theme:xe("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:ye,component:Wr,duration:{weeks:1},theme:xe("ec-time-grid ec-resource-week-view")}},createParsers(t){t.resources=pr},createStores(t){"_times"in t||hr.createStores(t),t._auxiliary.update((t=>[...t,qr])),t._viewResources=function(t){return gt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,o,r]=t,l=e;return n&&(l=e.filter((t=>{for(let e of o)if("background"!==e.display&&e.resourceIds.includes(t.id)&&e.start<r.end&&e.end>r.start)return!0;return!1}))),l.length||(l=pr([{}])),l}))}(t)}};let Vr=!1;function Jr(t,e,n){return Gt(e,It(n,t))}const{window:Kr}=m;function Qr(e){let n,o;return{c:t,m(t,r){n||(o=[T(Kr,"pointermove",e[31]),T(Kr,"pointerup",e[32]),T(Kr,"pointercancel",e[32]),T(Kr,"scroll",e[0]),T(Kr,"selectstart",tl(e[33])),T(Kr,"contextmenu",(function(){l(tl(e[41]))&&tl(e[41]).apply(this,arguments)})),T(Kr,"touchstart",e[34]),T(Kr,"touchmove",e[40],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,r(o)}}}function Zr(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function tl(t){return e=>{t()&&e.preventDefault()}}function el(t,e,n){let o,i,s,c,u,d,f,h,p,g,m,v,y,w,b,k,x,_,C,D,E,S,M,U,L,H,B,N,A,P,z,I,G,j,O,W,Y,q,X,V,J,K,Q,Z,tt,et,nt,ot,rt,lt,it,st,ct,at,{_iEvents:ut,_iClass:dt,_events:ft,_view:ht,_dayGrid:pt,_draggable:$t,dateClick:gt,dragScroll:mt,datesAboveResources:vt,eventDragMinDistance:yt,eventDragStart:wt,eventDragStop:bt,eventDrop:Dt,eventLongPressDelay:Et,eventResizeStart:Ut,eventResizeStop:Lt,eventResize:Ht,longPressDelay:Bt,selectable:Nt,select:At,selectBackgroundColor:Pt,selectLongPressDelay:Ft,selectMinDistance:zt,slotDuration:jt,slotHeight:Yt,unselect:qt,unselectAuto:Xt,unselectCancel:Vt,view:te}=R("state");function ee(t){window.getSelection().removeAllRanges(),q=V=t.clientX,X=J=t.clientY;let e=Kt(V,J);({allDay:nt,date:j,resource:W}=Jt(e)(J)),K=Wt(e,W?4:3),Z=Wt(e,W&&(1===P||L)?2:1),oe(),"mouse"!==t.pointerType&&n(1,ct=setTimeout((()=>{P&&(z=!0,ne(t))}),(se()?U:M)??S))}function ne(t){if(z||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(V-q,2)+Math.pow(J-X,2))>=(se()?E:D)){z=!0,de(t),$(dt,f=ot,f),c[0]||(se()?$(ut,c[0]={id:"{select}",allDay:I.allDay,start:I.start,title:"",display:"preview",extendedProps:{},backgroundColor:u,resourceIds:I.resourceIds},c):function(t,e){l(e)&&e({event:ce(I),jsEvent:t,view:Qt(o)});G=I.display,I.display="preview",$(ut,c[0]=ae(I),c),I.display="ghost",ft.set(s)}(t,ie()?C:_));let e=Kt(Jr(V,at[0],at[1]),Jr(J,at[2],at[3]));if(e){let t;({allDay:t,date:O,resource:Y}=Jt(e)(J)),t===nt&&(et=kt((O-j)/1e3),$(ut,c[0].end=_t(xt(I.end),et),c),ie()?c[0].end<rt&&$(ut,c[0].end=rt,c):se()?c[0].end<I.end?($(ut,c[0].start=Ct(c[0].end,lt),c),$(ut,c[0].end=I.end,c)):$(ut,c[0].start=I.start,c):($(ut,c[0].start=_t(xt(I.start),et),c),W&&($(ut,c[0].resourceIds=I.resourceIds.filter((t=>t!==W.id)),c),c[0].resourceIds.push(Y.id))))}}if(x){let t=2*k;e=()=>{K&&(J<t&&window.scrollBy(0,Gt(-10,(J-t)/3)),J<Q.top+t&&(K.scrollTop+=Gt(-10,(J-Q.top-t)/3)),J>window.innerHeight-t&&window.scrollBy(0,It(10,(J-window.innerHeight+t)/3)),J>Q.bottom-t&&(K.scrollTop+=It(10,(J-Q.bottom+t)/3)))},Vr||(Vr=!0,window.requestAnimationFrame((()=>{e(),Vr=!1})))}var e}function oe(){Q=Ot(K),tt=Ot(Z),at=[Gt(0,tt.left+(d?0:8)),It(document.documentElement.clientWidth,tt.right)-2,Gt(0,Q.top),It(document.documentElement.clientHeight,Q.bottom)-2]}function re(){$(ut,c[0]=null,c)}function le(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,ft.set(s)}function ie(){return 2===P}function se(){return 3===P}function ue(){return P&&P<4}function de(t){it&&(it=!1,re(),l(i)&&i({jsEvent:t,view:Qt(o)}))}a(t,ut,(t=>n(69,c=t))),a(t,dt,(t=>n(72,f=t))),a(t,ft,(t=>n(68,s=t))),a(t,ht,(t=>n(66,o=t))),a(t,pt,(t=>n(71,d=t))),a(t,$t,(t=>n(94,A=t))),a(t,gt,(t=>n(73,h=t))),a(t,mt,(t=>n(82,x=t))),a(t,vt,(t=>n(90,L=t))),a(t,yt,(t=>n(85,D=t))),a(t,wt,(t=>n(83,_=t))),a(t,bt,(t=>n(76,m=t))),a(t,Dt,(t=>n(74,p=t))),a(t,Et,(t=>n(88,M=t))),a(t,Ut,(t=>n(84,C=t))),a(t,Lt,(t=>n(77,v=t))),a(t,Ht,(t=>n(75,g=t))),a(t,Bt,(t=>n(87,S=t))),a(t,Nt,(t=>n(93,N=t))),a(t,At,(t=>n(78,y=t))),a(t,Pt,(t=>n(70,u=t))),a(t,Ft,(t=>n(89,U=t))),a(t,zt,(t=>n(86,E=t))),a(t,jt,(t=>n(91,H=t))),a(t,Yt,(t=>n(81,k=t))),a(t,qt,(t=>n(67,i=t))),a(t,Xt,(t=>n(80,b=t))),a(t,Vt,(t=>n(79,w=t))),a(t,te,(t=>n(92,B=t))),ht.subscribe(de);return[function(){ue()&&(oe(),ne())},ct,ut,dt,ft,ht,pt,$t,gt,mt,vt,yt,wt,bt,Dt,Et,Ut,Lt,Ht,Bt,Nt,At,Pt,Ft,zt,jt,Yt,qt,Xt,Vt,te,function(t){ue()&&t.isPrimary&&(V=t.clientX,J=t.clientY,ne(t))},function(t){if(!it||!b||w&&t.target.closest(w)||de(t),P&&t.isPrimary){if(z)if(se()){if(it=!0,l(y)){let{start:e,end:n}=ce(c[0]);y({start:e,end:n,startStr:Mt(c[0].start),endStr:Mt(c[0].end),allDay:nt,jsEvent:t,view:Qt(o),resource:W})}}else{I.display=G;let e=ie()?v:m;l(e)&&e({event:ce(I),jsEvent:t,view:Qt(o)});let n=ae(I);if(le(I,c[0]),re(),e=ie()?g:p,l(e)){let r,l=I;r=ie()?{endDelta:et}:{delta:et,oldResource:W!==Y?W:void 0,newResource:W!==Y?Y:void 0},e(Rt(r,{event:ce(I),oldEvent:ce(n),jsEvent:t,view:Qt(o),revert(){le(l,n)}}))}}else if((4===P||se())&&l(h)&&!st){V=t.clientX,J=t.clientY;let e=Kt(V,J);if(e){let{allDay:n,date:r,resource:l}=Jt(e)(J);h({allDay:n,date:St(r),dateStr:Mt(r),dayEl:e,jsEvent:t,view:Qt(o),resource:l})}}z=!1,P=q=X=V=J=I=G=j=O=W=Y=et=nt=$(dt,f=rt=lt=void 0,f),K=Z=Q=tt=void 0,ct&&(clearTimeout(ct),n(1,ct=void 0))}st=!1},ue,function(t){if(ue()){let e=t.target,n=[],o=()=>r(n);n.push(T(e,"touchmove",tl((()=>z)))),n.push(T(e,"touchend",o)),n.push(T(e,"touchcancel",o))}},function(t,e,n,o){P||(P=Zr(e)?n?2:A(t)?1:5:5,ue()&&(I=t,ee(e),o&&(j=o),ot=n?nt?"resizingX":"resizingY":"dragging",n&&(rt=xt(I.start),nt?(rt.setUTCHours(I.end.getUTCHours(),I.end.getUTCMinutes(),I.end.getUTCSeconds(),0),rt<I.start&&Tt(rt)):_t(rt,H)),ne(e)))},function(t){P||(P=Zr(t)?N&&!Zt(B)?3:4:5,ue()&&(ee(t),ot="selecting",lt=nt?kt({day:1}):H,I={allDay:nt,start:j,end:_t(xt(j),lt),resourceIds:W?[W.id]:[]},ne(t)))},function(){P||(P=5)},de,function(){st=!0},function(e){F.call(this,t,e)},()=>ct]}class nl extends ft{constructor(t){super(),dt(this,t,el,Qr,i,{drag:35,select:36,noAction:37,handleScroll:0,unselect:38,noClick:39},null,[-1,-1,-1,-1])}get drag(){return this.$$.ctx[35]}get select(){return this.$$.ctx[36]}get noAction(){return this.$$.ctx[37]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[38]}get noClick(){return this.$$.ctx[39]}}function ol(e){let n,o;return{c:t,m(t,r){n||(o=[T(window,"pointermove",e[5]),T(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,r(o)}}}function rl(t){return t.isPrimary&&"mouse"===t.pointerType}function ll(t,e,n){let o,r,l,i,s,c,u,d,f,h,{_iEvents:p,_events:g,_viewDates:m,_slotTimeLimits:v,slotDuration:y,slotHeight:w,hiddenDays:b,_view:k,datesAboveResources:x,theme:_}=R("state");function C(){if(c){if(u){let t=s-d.top;h=_t(_t(xt(c),i.min),r,zt(t/l))}else h=c;o[1]||$(p,o[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent"},o),$(p,o[1].start=h,o),$(p,o[1].end=_t(xt(h),r),o),$(p,o[1].resourceIds=f?[f.id]:[],o)}}function T(){c=u=$(p,o[1]=null,o)}return a(t,p,(t=>n(9,o=t))),a(t,v,(t=>n(18,i=t))),a(t,y,(t=>n(16,r=t))),a(t,w,(t=>n(17,l=t))),t.$$.update=()=>{512&t.$$.dirty&&o[0]&&T()},[function(){u&&(d=Ot(u),C())},p,v,y,w,function(t){rl(t)&&(s=t.clientY,C())},function(t,e,n,o){rl(n)&&(c=t,u=e,d=Ot(u),s=n.clientY,f=o)},function(t,e){rl(e)&&(c=t,u=null,s=f=void 0)},function(t){rl(t)&&T()},o]}class il extends ft{constructor(t){super(),dt(this,t,ll,ol,i,{enterTimeGrid:6,enterDayGrid:7,leave:8,handleScroll:0})}get enterTimeGrid(){return this.$$.ctx[6]}get enterDayGrid(){return this.$$.ctx[7]}get leave(){return this.$$.ctx[8]}get handleScroll(){return this.$$.ctx[0]}}function sl(t){let e,n,o,r;return{c(){e=k("div"),E(e,"class",n=t[1].resizer)},m(n,l){y(n,e,l),o||(r=T(e,"pointerdown",t[8]),o=!0)},p(t,o){2&o&&n!==(n=t[1].resizer)&&E(e,"class",n)},d(t){t&&w(e),o=!1,r()}}}function cl(e){let n,o=e[0]&&sl(e);return{c(){o&&o.c(),n=C()},m(t,e){o&&o.m(t,e),y(t,n,e)},p(t,e){let[r]=e;t[0]?o?o.p(t,r):(o=sl(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(t){t&&w(n),o&&o.d(t)}}}function al(t,e,n){let o,r,l,i,{event:s}=e,{theme:c,eventDurationEditable:u,editable:d}=R("state");return a(t,c,(t=>n(1,l=t))),a(t,u,(t=>n(7,r=t))),a(t,d,(t=>n(6,o=t))),t.$$set=t=>{"event"in t&&n(5,s=t.event)},t.$$.update=()=>{224&t.$$.dirty&&n(0,i=!ge(s.display)&&!$e(s.display)&&((s.durationEditable??r)||(s.editable??o)))},[i,l,c,u,d,s,o,r,function(e){F.call(this,t,e)}]}class ul extends ft{constructor(t){super(),dt(this,t,al,cl,i,{event:5})}}function dl(t){let e,n;return e=new il({props:{}}),t[16](e),{c(){ct(e.$$.fragment)},m(t,o){at(e,t,o),n=!0},p(t,n){e.$set({})},i(t){n||(ot(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(n){t[16](null),ut(e,n)}}}function fl(t){let e,n,o,r;e=new nl({props:{}}),t[15](e);let l=t[1]&&dl(t);return{c(){ct(e.$$.fragment),n=_(),l&&l.c(),o=C()},m(t,i){at(e,t,i),y(t,n,i),l&&l.m(t,i),y(t,o,i),r=!0},p(t,n){let[r]=n;e.$set({}),t[1]?l?(l.p(t,r),2&r&&ot(l,1)):(l=dl(t),l.c(),ot(l,1),l.m(o.parentNode,o)):l&&(et(),rt(l,1,1,(()=>{l=null})),nt())},i(t){r||(ot(e.$$.fragment,t),ot(l),r=!0)},o(t){rt(e.$$.fragment,t),rt(l),r=!1},d(r){r&&(w(n),w(o)),t[15](null),ut(e,r),l&&l.d(r)}}}function hl(t,e,n){let o,r,l,i,s,c,u,d,{theme:f,editable:h,eventStartEditable:p,eventDurationEditable:g,pointer:m,_bodyEl:v,_interaction:y,_iClasses:w,_draggable:b}=R("state");function k(){for(let t of Object.values(o))t?.handleScroll?.()}return a(t,f,(t=>n(11,l=t))),a(t,h,(t=>n(13,c=t))),a(t,p,(t=>n(14,u=t))),a(t,m,(t=>n(1,d=t))),a(t,v,(t=>n(10,r=t))),a(t,y,(t=>n(0,o=t))),a(t,w,(t=>n(17,s=t))),a(t,b,(t=>n(12,i=t))),$(y,o.resizer=ul,o),t.$$.update=()=>{24576&t.$$.dirty&&$(b,i=t=>(t.startEditable??u)||(t.editable??c),i),6144&t.$$.dirty&&$(w,s=(t,e)=>{let{display:n}=e;return $e(n)?[l[n]]:!ge(n)&&i(e)?[l.draggable]:[]},s),1024&t.$$.dirty&&r&&T(r,"scroll",k)},[o,d,f,h,p,m,v,y,w,b,r,l,i,c,u,function(t){I[t?"unshift":"push"]((()=>{o.action=t,y.set(o)}))},function(t){I[t?"unshift":"push"]((()=>{o.pointer=t,y.set(o)}))}]}class pl extends ft{constructor(t){super(),dt(this,t,hl,fl,i,{})}}var $l={createOptions(t){t.dateClick=void 0,t.dragScroll=!0,t.editable=!1,t.eventDragMinDistance=5,t.eventDragStart=void 0,t.eventDragStop=void 0,t.eventDrop=void 0,t.eventDurationEditable=!0,t.eventLongPressDelay=void 0,t.eventResizeStart=void 0,t.eventResizeStop=void 0,t.eventResize=void 0,t.eventStartEditable=!0,t.longPressDelay=1e3,t.pointer=!1,t.select=void 0,t.selectBackgroundColor=void 0,t.selectLongPressDelay=void 0,t.selectMinDistance=5,t.unselect=void 0,t.unselectAuto=!0,t.unselectCancel="",t.theme.draggable="ec-draggable",t.theme.ghost="ec-ghost",t.theme.preview="ec-preview",t.theme.pointer="ec-pointer",t.theme.resizer="ec-resizer",t.theme.dragging="ec-dragging",t.theme.resizingY="ec-resizing-y",t.theme.resizingX="ec-resizing-x",t.theme.selecting="ec-selecting"},createStores(e){e._draggable=$t(t),e._auxiliary.update((t=>[...t,pl]))}};return class extends ln{constructor(t,e){super({target:t,props:{plugins:[jn,uo,hr,Xr,$l],options:e}})}get view(){return this.getView()}}}();
|
|
6
6
|
//# sourceMappingURL=event-calendar.min.js.map
|