@event-calendar/build 2.7.2 → 3.0.1

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- EventCalendar v2.7.2
2
+ EventCalendar v3.0.1
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,"")}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&&q().then(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[23]=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(21,u=t))),a(t,v,(t=>n(14,s=t))),a(t,y,(t=>n(20,l=t))),a(t,w,(t=>n(15,c=t))),a(t,b,(t=>n(13,i=t))),a(t,k,(t=>n(12,r=t))),a(t,x,(t=>n(19,o=t))),a(t,_,(t=>n(3,d=t)));let C=[];return t.$$set=t=>{"$$scope"in t&&n(18,g=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&$(m,u=f,u),36864&t.$$.dirty&&(n(1,h=r.seconds>=3600),n(2,C.length=c.length,C)),24577&t.$$.dirty&&f&&n(0,f.scrollTop=((i.seconds-l.min.seconds)/r.seconds-.5)*o,f)},[f,h,C,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()}}}();
5
+ var EventCalendar=function(){"use strict";function t(){}const e=t=>t;function n(t){return t()}function l(){return Object.create(null)}function r(t){t.forEach(n)}function o(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,l=new Array(n>1?n-1:0),r=1;r<n;r++)l[r-1]=arguments[r];if(null==e){for(const t of l)t(void 0);return t}const o=e.subscribe(...l);return o.unsubscribe?()=>o.unsubscribe():o}function a(t){let e;return s(t,(t=>e=t))(),e}function c(t,e,n){t.$$.on_destroy.push(s(e,n))}function u(t,e,n,l){if(t){const r=d(t,e,n,l);return t[0](r)}}function d(t,e,n,l){return t[1]&&l?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](l(e))):n.ctx}function f(t,e,n,l){if(t[2]&&l){const r=t[2](l(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let l=0;l<n;l+=1)t[l]=e.dirty[l]|r[l];return t}return e.dirty|r}return e.dirty}function h(t,e,n,l,r,o){if(r){const i=d(e,n,l,o);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 m(t,e,n){return t.set(n),e}function g(e){return e&&o(e.destroy)?e.destroy:t}const $="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,l){return t.addEventListener(e,n,l),()=>t.removeEventListener(e,n,l)}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,l){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 F(){const t=B();return function(e,n){let{cancelable:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.$$.callbacks[e];if(r){const o=function(t,e){let{bubbles:n=!1,cancelable:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:l})}(e,n,{cancelable:l});return r.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}function R(t){return B().$$.context.get(t)}function P(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const z=[],I=[];let j=[];const O=[],W=Promise.resolve();let G=!1;function q(){G||(G=!0,W.then(K))}function Y(){return q(),W}function X(t){j.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<j.length;t+=1){const e=j[t];V.has(e)||(V.add(e),e())}j.length=0}while(z.length);for(;O.length;)O.pop()();G=!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 lt(t,e){t&&t.i&&(Z.delete(t),t.i(e))}function rt(t,e,n,l){if(t&&t.o){if(Z.has(t))return;Z.add(t),tt.c.push((()=>{Z.delete(t),l&&(n&&t.d(1),l())})),t.o(e)}else l&&l()}function ot(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,l,o,i,s,a,c,u,d,f){let h=t.length,p=i.length,m=h;const g={};for(;m--;)g[t[m].key]=m;const $=[],v=new Map,y=new Map,w=[];for(m=p;m--;){const t=f(o,i,m),l=n(t);let r=s.get(l);r?w.push((()=>r.p(t,e))):(r=u(l,t),r.c()),v.set(l,$[m]=r),l in g&&y.set(l,Math.abs(m-g[l]))}const b=new Set,k=new Set;function x(t){lt(t,1),t.m(a,d),s.set(t.key,t),d=t.first,p--}for(;h&&p;){const e=$[p-1],n=t[h-1],l=e.key,r=n.key;e===n?(d=e.first,h--,p--):v.has(r)?!s.has(l)||b.has(l)?x(e):k.has(r)?h--:y.get(l)>y.get(r)?(k.add(l),x(e)):(b.add(r),h--):(c(n,s),h--)}for(;h--;){const e=t[h];v.has(e.key)||c(e,s)}for(;p;)x($[p-1]);return r(w),$}function at(t){t&&t.c()}function ct(t,e,l){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,l),X((()=>{const e=t.$$.on_mount.map(n).filter(o);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=[];j.forEach((l=>-1===t.indexOf(l)?e.push(l):n.push(l))),n.forEach((t=>t())),j=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,o,i,s,a){let c=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:a,update:t,not_equal:s,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:l(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};c&&c(f.root);let h=!1;if(f.ctx=o?o(e,n.props||{},(function(t,n){const l=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=l)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](l),h&&function(t,e){-1===t.$$.dirty[0]&&(z.push(t),q(),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&&lt(e.$$.fragment),ct(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(!o(n))return t;const l=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return l.push(n),()=>{const t=l.indexOf(n);-1!==t&&l.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:mt(t,e).subscribe}}function mt(e){let n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const r=new Set;function o(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){o(t(e))}return{set:o,update:s,subscribe:function(i){const a=[i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return r.add(a),1===r.size&&(n=l(o,s)||t),i(e),()=>{r.delete(a),0===r.size&&n&&(n(),n=null)}}}}function gt(e,n,l){const i=!Array.isArray(e),a=i?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const c=n.length<2;return pt(l,((e,l)=>{let u=!1;const d=[];let f=0,h=t;const p=()=>{if(f)return;h();const r=n(i?d[0]:d,e,l);c?e(r):h=o(r)?r:t},m=a.map(((t,e)=>s(t,(t=>{d[e]=t,f&=~(1<<e),u&&p()}),(()=>{f|=1<<e}))));return u=!0,p(),function(){r(m),h(),u=!1}}))}function $t(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?Nt(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):Nt(new Date)}function kt(t){if("number"==typeof t)t={seconds:t};else if("string"==typeof t){let e=0,n=2;for(let l of t.split(":",3))e+=parseInt(l,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 l=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(l),l%=12,l<0&&(l+=12);t.getUTCMonth()!==l;)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),l=1;l<e;l++)n[l-1]=arguments[l];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){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t?.seconds??e}function Nt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function At(t,e,n){n.update((n=>n.set(e,t)))}function Ft(t){r(t),t.clear()}function Rt(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}function Pt(){return Object.assign(...arguments)}function zt(t){return Object.keys(t)}function It(t){return Math.floor(t)}function jt(t){return Math.ceil(t)}function Ot(){return Math.min(...arguments)}function Wt(){return Math.max(...arguments)}function Gt(t,e,n){let l=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 l)r.setAttribute(...t);return r}function qt(t){return t.getBoundingClientRect()}function Yt(t,e){for(;e--;)t=t.parentElement;return t}function Xt(t){return qt(t).height}let Vt=Symbol("ec");function Jt(t,e){t[Vt]=e}function Kt(t){return!!t?.[Vt]}function Qt(t){return t[Vt]}function Zt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let l of n.elementsFromPoint(t,e)){if(Kt(l))return l;if(l.shadowRoot){let n=Zt(t,e,l.shadowRoot);if(n)return n}}return null}function te(t){return(t=Pt({},t)).currentStart=St(t.currentStart),t.currentEnd=St(t.currentEnd),t.activeStart=St(t.activeStart),t.activeEnd=St(t.activeEnd),t}function ee(t){return t.startsWith("list")}function ne(t){return t.includes("Timeline")}let le=1;function re(t){return t.map((t=>{let e={id:"id"in t?String(t.id):`{generated-${le++}}`,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};if(e.allDay){Et(e.start);let t=xt(e.end);Et(e.end),Ut(e.end,t)&&!Ut(e.end,e.start)||Tt(e.end)}return e}))}function oe(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 ie(t,e,n){return{start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t}}function se(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function ae(t,e,n,l,r,i){let s=r.formatRange(t.start,e&&"pointer"!==t.event.display?(a=xt(t.start),c=t.end,a.setUTCHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),0),a):t.start);var a,c;let u;if(n)u=o(n)?n({event:de(t.event),timeText:s,view:te(i)}):n;else{let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ce(s,t,l)];break;default:e=[...t.event.allDay?[]:[ce(s,t,l)],Gt("h4",l.eventTitle,t.event.title)]}u={domNodes:e}}return[s,u]}function ce(t,e,n){return Gt("time",n.eventTime,t,[["datetime",Mt(e.start)]])}function ue(t,e,n){return t?(o(t)&&(t=t({event:de(e),view:te(n)})),Array.isArray(t)?t:[t]):[]}function de(t){return he(t,St)}function fe(t){return he(t,xt)}function he(t,e){return(t=Pt({},t)).start=e(t.start),t.end=e(t.end),t}function pe(t,e){let n={};if(t.length){let l;se(t);for(let r of t){let t=[],o=Et(xt(r.start));for(;r.end>o;){if(!e.includes(o.getUTCDay())&&(t.push(xt(o)),t.length>1)){let t=o.getTime();n[t]?n[t].chunks.push(r):n[t]={sorted:!1,chunks:[r]}}Tt(o)}t.length?(r.date=t[0],r.days=t.length,r.dates=t):(r.date=Et(xt(r.start)),r.days=1,r.dates=[r.date]),l&&Ut(l.date,r.date)&&(r.prev=l),l=r}}return n}function me(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let l=1,r=t.date.getTime();if(e[r]){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;l+=e,t.top+=e,t.bottom+=e}}return l}function ge(t,e){t.length=e.length;let n=[];for(let e of t)n.push(e?.reposition?.());return n}function $e(t,e,n,l){return t.start<n&&t.end>e&&(void 0===l||t.resourceIds.includes(l.id))}function ve(t){return function(t){return"preview"===t}(t)||we(t)||function(t){return"pointer"===t}(t)}function ye(t){return"background"===t}function we(t){return"ghost"===t}function be(t){return Ce(t,"day")}function ke(t){return Ce(t,"week")}function xe(t){return Ce(t,"month")}function _e(t){return Ce(t,"year")}function Ce(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function Te(t){return e=>({...e,view:t})}function De(t,e){return gt([t,e],(t=>{let[e,n]=t,l=o(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>l.format(St(t))}}))}function Ee(t,e){return gt([t,e],(t=>{let e,[n,l]=t;if(o(l))e=l;else{let t=new Intl.DateTimeFormat(n,l);e=(e,n)=>{if(e<=n)return t.formatRange(e,n);{let l=t.formatRangeToParts(n,e),r="",o=["startRange","endRange"],i=[!1,!1];for(let t of l){let e=o.indexOf(t.source);e>=0?i[e]||(r+=Se(o[1-e],l),i[e]=!0):r+=t.value}return r}}}return{formatRange:(t,n)=>e(St(t),St(n))}}))}function Se(t,e){let n="";for(let l of e)l.source==t&&(n+=l.value);return n}function Me(t,e,n,l,r){t=xt(t);let o=e.seconds<3600,i=[],s=xt(t),a=1;for(_t(t,n.min),_t(s,n.max);t<s;)i.push([Mt(t),l.format(t),i.length&&(a||!o),r&&r.format(t)]),_t(t,e),a=1-a;return i}function Ue(t,e,n,l,r){let i=kt(t),s=kt(e);if(n){let t=kt(Ot(Bt(i),Wt(0,Bt(s)-wt))),e=kt(Wt(Bt(s),Bt(t)+wt)),a=o(n?.eventFilter)?n.eventFilter:t=>!ye(t.display);t:for(let n of l){let l=_t(xt(n),i),o=_t(xt(n),s),c=_t(xt(n),t),u=_t(xt(n),e);for(let d of r)if(!d.allDay&&a(d)&&d.start<u&&d.end>c){if(d.start<l){let e=Wt((d.start-n)/1e3,Bt(t));e<Bt(i)&&(i.seconds=e)}if(d.end>o){let t=Ot((d.end-n)/1e3,Bt(e));t>Bt(s)&&(s.seconds=t)}if(Bt(i)===Bt(t)&&Bt(s)===Bt(e))break t}}}return{min:i,max:s}}class Le{constructor(n,l){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,resourceLabelContent:void 0,resourceLabelDidMount:void 0,resources:[],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",slotWidth:52,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",resource:"ec-resource",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:re,eventSources:oe,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=He(r,i),l=He(l,i);for(let[t,e]of Object.entries(r))this[t]=mt(e);this._queue=mt(new Map),this._queue2=mt(new Map),this._tasks=new Map,this._auxiliary=mt([]),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,l,r,o]=t,i=xt(n);return o?i.setUTCDate(1):l.inWeeks&&Lt(i,r),e=_t(xt(i),l),{start:i,end:e}}))}(this),this._activeRange=function(t){return gt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,l,r]=t,o=xt(e.start),i=xt(e.end);if(r)Lt(o,n),function(t,e){let n=e-t.getUTCDay();t.setUTCDate(t.getUTCDate()+(n>=0?n:n+7))}(i,n);else if(l.days||l.seconds>wt){_t(Dt(i),l);let t=Dt(xt(i));t<o&&(o=t)}return{start:o,end:i}}))}(this),this._fetchedRange=mt({start:void 0,end:void 0}),this._events=function(t){let e,n=mt([]),l=0,r={};return gt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,i)=>At((()=>{let[t,r,s,a,c,u]=n;if(r.length){if(!a.start||a.start>s.start||a.end<s.end||!c){e&&e.abort(),e=new AbortController,o(u)&&!l&&u(!0);let t=()=>{0==--l&&o(u)&&u(!1)},n=[],c=e=>t(),d=e=>{n=n.concat(re(e)),i(n),t()},f=Mt(s.start),h=Mt(s.end);for(let t of r){if(o(t.events)){let e=t.events({start:St(s.start),end:St(s.end),startStr:f,endStr:h},d,c);void 0!==e&&Promise.resolve(e).then(d,c)}else{let n=o(t.extraParams)?t.extraParams():Pt({},t.extraParams);n.start=f,n.end=h,n=new URLSearchParams(n);let l,r=t.url,i={};["GET","HEAD"].includes(t.method)?r+=(r.includes("?")?"&":"?")+n:(i["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",l=String(n)),fetch(r,{method:t.method,headers:i,body:l,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(d).catch(c)}++l}a.start=s.start,a.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=Ee(this.locale,this.eventTimeFormat),this._intlSlotLabel=De(this.locale,this.slotLabelFormat),this._intlDayHeader=De(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=De(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ee(this.locale,this.titleFormat),this._bodyEl=mt(void 0),this._scrollable=mt(!1),this._viewTitle=function(t){return gt([t.date,t._activeRange,t._intlTitle,t._dayGrid],(t=>{let[e,n,l,r]=t;return r?l.formatRange(e,e):l.formatRange(n.start,Dt(xt(n.end)))}))}(this),this._viewDates=function(t){return gt([t._activeRange,t.hiddenDays],(e=>{let[n,l]=e,r=[],o=Et(xt(n.start)),i=Et(xt(n.end));for(;o<i;)l.includes(o.getUTCDay())||r.push(xt(o)),Tt(o);return!r.length&&l.length&&l.length<7&&(t.date.update((t=>{for(;l.includes(t.getUTCDay());)Tt(t);return t})),r=a(t._viewDates)),r}))}(this),this._view=function(t){return gt([t.view,t._viewTitle,t._currentRange,t._activeRange],(t=>function(t,e,n,l){return{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:l.start,activeEnd:l.end,calendar:void 0}}(...t)))}(this),this._viewComponent=mt(void 0),this._resBgColor=mt(t),this._resTxtColor=mt(t),this._interaction=mt({}),this._iEvents=mt([null,null]),this._iClasses=mt(e),this._iClass=mt(void 0),this._set=(t,e)=>{Ae(t,this)&&(i[t]&&(e=i[t](e)),this[t].set(e))},this._get=t=>Ae(t,this)?a(this[t]):void 0;for(let t of n)t.createStores?.(this);l.view&&this.view.set(l.view);let s=new Set([...zt(r.views),...zt(l.views??{})]);for(let t of s){let e=Be(r,r.views[t]??{}),n=Be(e,l,l.views?.[t]??{}),i=n.component;Ne(n,this);for(let t of zt(n)){let{set:l,_set:r=l,...i}=this[t];this[t]={set:["buttonText","theme"].includes(t)?i=>{if(o(i)){let o=i(e[t]);n[t]=o,l(l===r?o:i)}else n[t]=i,l(i)}:e=>{n[t]=e,l(e)},_set:r,...i}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(i),o(n.viewDidMount)&&Y().then((()=>n.viewDidMount(a(this._view))));for(let t of zt(n))this[t]._set(n[t])}}))}}}function He(t,e){let n={...t};for(let t of zt(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let l of zt(t.views))n.views[l]=He(t.views[l],e)}return n}function Be(){let t={};for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];for(let e of n){let n={};for(let l of["buttonText","theme"])o(e[l])&&(n[l]=e[l](t[l]));t={...t,...e,...n}}return t}function Ne(t,e){zt(t).filter((t=>!Ae(t,e)||"view"==t)).forEach((e=>delete t[e]))}function Ae(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function Fe(t,e,n){const l=t.slice();return l[25]=e[n],l}function Re(t){let e,n,l,r,o,i=t[5][t[25]]+"";function s(){return t[22](t[25])}return{c(){e=k("button"),n=x(i),E(e,"class",l=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])},m(t,l){y(t,e,l),v(e,n),r||(o=T(e,"click",s),r=!0)},p(r,o){t=r,33&o&&i!==(i=t[5][t[25]]+"")&&S(n,i),137&o&&l!==(l=t[3].button+(t[7]===t[25]?" "+t[3].active:"")+" ec-"+t[25])&&E(e,"class",l)},d(t){t&&w(e),r=!1,o()}}}function Pe(t){let e,n,l,r,i,s=t[6][t[25]].text+"";return{c(){e=k("button"),n=x(s),E(e,"class",l=t[3].button+" ec-"+t[25])},m(l,s){y(l,e,s),v(e,n),r||(i=T(e,"click",(function(){o(t[6][t[25]].click)&&t[6][t[25]].click.apply(this,arguments)})),r=!0)},p(r,o){t=r,65&o&&s!==(s=t[6][t[25]].text+"")&&S(n,s),9&o&&l!==(l=t[3].button+" ec-"+t[25])&&E(e,"class",l)},d(t){t&&w(e),r=!1,i()}}}function ze(t){let e,n,l,r,o,i=t[5][t[25]]+"";return{c(){e=k("button"),n=x(i),E(e,"class",l=t[3].button+" ec-"+t[25]),e.disabled=t[1]},m(l,i){y(l,e,i),v(e,n),r||(o=T(e,"click",t[21]),r=!0)},p(t,r){33&r&&i!==(i=t[5][t[25]]+"")&&S(n,i),9&r&&l!==(l=t[3].button+" ec-"+t[25])&&E(e,"class",l),2&r&&(e.disabled=t[1])},d(t){t&&w(e),r=!1,o()}}}function Ie(t){let e,n,l,r,o,i,s,a;return{c(){e=k("button"),n=k("i"),E(n,"class",l=t[3].icon+" ec-"+t[25]),E(e,"class",r=t[3].button+" ec-"+t[25]),E(e,"aria-label",o=t[5].next),E(e,"title",i=t[5].next)},m(l,r){y(l,e,r),v(e,n),s||(a=T(e,"click",t[19]),s=!0)},p(t,s){9&s&&l!==(l=t[3].icon+" ec-"+t[25])&&E(n,"class",l),9&s&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r),32&s&&o!==(o=t[5].next)&&E(e,"aria-label",o),32&s&&i!==(i=t[5].next)&&E(e,"title",i)},d(t){t&&w(e),s=!1,a()}}}function je(t){let e,n,l,r,o,i,s,a;return{c(){e=k("button"),n=k("i"),E(n,"class",l=t[3].icon+" ec-"+t[25]),E(e,"class",r=t[3].button+" ec-"+t[25]),E(e,"aria-label",o=t[5].prev),E(e,"title",i=t[5].prev)},m(l,r){y(l,e,r),v(e,n),s||(a=T(e,"click",t[18]),s=!0)},p(t,s){9&s&&l!==(l=t[3].icon+" ec-"+t[25])&&E(n,"class",l),9&s&&r!==(r=t[3].button+" ec-"+t[25])&&E(e,"class",r),32&s&&o!==(o=t[5].prev)&&E(e,"aria-label",o),32&s&&i!==(i=t[5].prev)&&E(e,"title",i)},d(t){t&&w(e),s=!1,a()}}}function Oe(t){let e,n,l,r,i;return{c(){e=k("h2"),E(e,"class",n=t[3].title)},m(n,o){y(n,e,o),r||(i=g(l=vt.call(null,e,t[4])),r=!0)},p(t,r){8&r&&n!==(n=t[3].title)&&E(e,"class",n),l&&o(l.update)&&16&r&&l.update.call(null,t[4])},d(t){t&&w(e),r=!1,i()}}}function We(t){let e;function n(t,e){return"title"==t[25]?Oe:"prev"==t[25]?je:"next"==t[25]?Ie:"today"==t[25]?ze:t[6][t[25]]?Pe:""!=t[25]?Re:void 0}let l=n(t),r=l&&l(t);return{c(){r&&r.c(),e=C()},m(t,n){r&&r.m(t,n),y(t,e,n)},p(t,o){l===(l=n(t))&&r?r.p(t,o):(r&&r.d(1),r=l&&l(t),r&&(r.c(),r.m(e.parentNode,e)))},d(t){t&&w(e),r&&r.d(t)}}}function Ge(e){let n,l=ot(e[0]),r=[];for(let t=0;t<l.length;t+=1)r[t]=We(Fe(e,l,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[o]=e;if(917759&o){let e;for(l=ot(t[0]),e=0;e<l.length;e+=1){const i=Fe(t,l,e);r[e]?r[e].p(i,o):(r[e]=We(i),r[e].c(),r[e].m(n.parentNode,n))}for(;e<r.length;e+=1)r[e].d(1);r.length=l.length}},i:t,o:t,d(t){t&&w(n),b(r,t)}}}function qe(t,e,n){let l,r,o,i,s,a,u,d,f,{buttons:h}=e,{_currentRange:p,_viewTitle:g,buttonText:$,customButtons:v,date:y,duration:w,hiddenDays:b,theme:k,view:x}=R("state");c(t,p,(t=>n(20,i=t))),c(t,g,(t=>n(4,a=t))),c(t,$,(t=>n(5,u=t))),c(t,v,(t=>n(6,d=t))),c(t,y,(t=>n(2,r=t))),c(t,w,(t=>n(23,l=t))),c(t,b,(t=>n(24,o=t))),c(t,k,(t=>n(3,s=t))),c(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,a,u,d,f,p,g,$,v,y,w,b,k,x,C,function(){let t=Ct(r,l);if(o.length&&o.length<7)for(;o.includes(t.getUTCDay());)Dt(t);m(y,r=t,r)},function(){m(y,r=_t(r,l),r)},i,()=>m(y,r=xt(C),r),t=>m(x,f=t,f)]}class Ye extends ft{constructor(t){super(),dt(this,t,qe,Ge,i,{buttons:0})}}function Xe(t,e,n){const l=t.slice();return l[5]=e[n],l}function Ve(t,e,n){const l=t.slice();return l[8]=e[n],l}function Je(t){let e,n;return e=new Ye({props:{buttons:t[8]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.buttons=t[8]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ke(t){let e,n,l,r;return n=new Ye({props:{buttons:t[8]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[1].buttonGroup)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};1&o&&(i.buttons=t[8]),n.$set(i),(!r||2&o&&l!==(l=t[1].buttonGroup))&&E(e,"class",l)},i(t){r||(lt(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,l,r;const o=[Ke,Je],i=[];function s(t,e){return t[8].length>1?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),l=C()},m(t,n){i[e].m(t,n),y(t,l,n),r=!0},p(t,r){let a=e;e=s(t),e===a?i[e].p(t,r):(et(),rt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=o[e](t),n.c()),lt(n,1),n.m(l.parentNode,l))},i(t){r||(lt(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(l),i[e].d(t)}}}function Ze(t){let e,n,l,r=ot(t[0][t[5]]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Qe(Ve(t,r,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("div");for(let t=0;t<o.length;t+=1)o[t].c();n=_()},m(t,r){y(t,e,r);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);v(e,n),l=!0},p(t,l){if(3&l){let s;for(r=ot(t[0][t[5]]),s=0;s<r.length;s+=1){const i=Ve(t,r,s);o[s]?(o[s].p(i,l),lt(o[s],1)):(o[s]=Qe(i),o[s].c(),lt(o[s],1),o[s].m(e,n))}for(et(),s=r.length;s<o.length;s+=1)i(s);nt()}},i(t){if(!l){for(let t=0;t<r.length;t+=1)lt(o[t]);l=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);l=!1},d(t){t&&w(e),b(o,t)}}}function tn(t){let e,n,l,r=ot(Object.keys(t[0])),o=[];for(let e=0;e<r.length;e+=1)o[e]=Ze(Xe(t,r,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("nav");for(let t=0;t<o.length;t+=1)o[t].c();E(e,"class",n=t[1].toolbar)},m(t,n){y(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);l=!0},p(t,s){let[a]=s;if(3&a){let n;for(r=ot(Object.keys(t[0])),n=0;n<r.length;n+=1){const l=Xe(t,r,n);o[n]?(o[n].p(l,a),lt(o[n],1)):(o[n]=Ze(l),o[n].c(),lt(o[n],1),o[n].m(e,null))}for(et(),n=r.length;n<o.length;n+=1)i(n);nt()}(!l||2&a&&n!==(n=t[1].toolbar))&&E(e,"class",n)},i(t){if(!l){for(let t=0;t<r.length;t+=1)lt(o[t]);l=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);l=!1},d(t){t&&w(e),b(o,t)}}}function en(t,e,n){let l,r,{headerToolbar:o,theme:i}=R("state");c(t,o,(t=>n(4,l=t))),c(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]=l[t].split(" ").map((t=>t.split(","))),s)},[s,r,o,i,l]}class nn extends ft{constructor(t){super(),dt(this,t,en,tn,i,{})}}function ln(t,e,n){const l=t.slice();return l[11]=e[n],l}function rn(t){let e,n,l;var r=t[11];return r&&(e=U(r,{})),{c(){e&&at(e.$$.fragment),n=C()},m(t,r){e&&ct(e,t,r),y(t,n,r),l=!0},p(t,l){if(1&l&&r!==(r=t[11])){if(e){et();const t=e;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}r?(e=U(r,{}),at(e.$$.fragment),lt(e.$$.fragment,1),ct(e,n.parentNode,n)):e=null}},i(t){l||(e&&lt(e.$$.fragment,t),l=!0)},o(t){e&&rt(e.$$.fragment,t),l=!1},d(t){t&&w(n),e&&ut(e,t)}}}function on(t){let e,n,l=ot(t[0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=rn(ln(t,l,e));const o=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,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);y(t,e,l),n=!0},p(t,n){let[i]=n;if(1&i){let n;for(l=ot(t[0]),n=0;n<l.length;n+=1){const o=ln(t,l,n);r[n]?(r[n].p(o,i),lt(r[n],1)):(r[n]=rn(o),r[n].c(),lt(r[n],1),r[n].m(e.parentNode,e))}for(et(),n=l.length;n<r.length;n+=1)o(n);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(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 sn(t,e,n){let l,r,i,s,{datesSet:a,_auxiliary:u,_activeRange:d,_queue:f,_view:h}=R("state");c(t,a,(t=>n(7,r=t))),c(t,u,(t=>n(0,s=t))),c(t,d,(t=>n(5,i=t))),c(t,h,(t=>n(6,l=t)));let p={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){o(r)&&At((()=>r({start:St(t.start),end:St(t.end),startStr:Mt(t.start),endStr:Mt(t.end),view:te(l)})),p,f)}(i)},[s,a,u,d,h,i]}let an=class extends ft{constructor(t){super(),dt(this,t,sn,on,i,{})}};function cn(t){let e,n,l,r,o,i,s,a,c,u,d;n=new nn({});var f=t[5];return f&&(r=U(f,{})),a=new an({}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r&&at(r.$$.fragment),s=_(),at(a.$$.fragment),E(e,"class",o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),E(e,"role",i=ee(t[4])?"list":"table"),M(e,"height",t[3])},m(o,i){y(o,e,i),ct(n,e,null),v(e,l),r&&ct(r,e,null),y(o,s,i),ct(a,o,i),c=!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,{}),at(r.$$.fragment),lt(r.$$.fragment,1),ct(r,e,null)):r=null}(!c||7&n[0]&&o!==(o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")))&&E(e,"class",o),(!c||16&n[0]&&i!==(i=ee(t[4])?"list":"table"))&&E(e,"role",i),8&n[0]&&M(e,"height",t[3])},i(t){c||(lt(n.$$.fragment,t),r&&lt(r.$$.fragment,t),lt(a.$$.fragment,t),c=!0)},o(t){rt(n.$$.fragment,t),r&&rt(r.$$.fragment,t),rt(a.$$.fragment,t),c=!1},d(t){t&&(w(e),w(s)),ut(n),r&&ut(r),ut(a,t),u=!1,d()}}}function un(t,e,n){let l,r,o,i,s,u,d,f,h,p,g,{plugins:$=[]}=e,{options:v={}}=e,y=B(),w=new Le($,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;c(t,x,(t=>n(5,g=t))),c(t,_,(t=>n(32,l=t))),c(t,C,(t=>n(35,s=t))),c(t,T,(t=>n(2,f=t))),c(t,D,(t=>n(36,u=t))),c(t,E,(t=>n(34,i=t))),c(t,S,(t=>n(33,o=t))),c(t,U,(t=>n(0,r=t))),c(t,L,(t=>n(3,h=t))),c(t,H,(t=>n(1,d=t))),c(t,N,(t=>n(4,p=t)));let F={...v};function R(t,e){return w._set(t,e),this}var P;function z(){var t;l&&m(U,r=(t=l).scrollHeight>t.clientHeight,r)}return P=()=>{Ft(i)},B().$$.before_update.push(P),A((()=>{Ft(o),Rt(z,null,M)})),t.$$set=t=>{"plugins"in t&&n(18,$=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 l of zt(t))t[l]!==e[l]&&n.push([l,t[l]]);return Pt(e,t),n}(v,F))R(t,e)},[r,d,f,h,p,g,x,_,C,T,D,E,S,U,L,H,N,z,$,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(de)},function(t){for(let e of u)if(e.id==t)return de(e);return null},function(t){return u.push(re([t])[0]),D.set(u),this},function(t){for(let e of u)if(e.id==t.id){Pt(e,re([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 te(a(w._view))},function(){return s.action&&s.action.unselect(),this},function(t,e){let n=Zt(t,e);return n?Qt(n)(t,e):null},function(){ut(y,!0)}]}class dn extends ft{constructor(t){super(),dt(this,t,un,cn,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 fn(t,e,n){const l=t.slice();return l[8]=e[n],l}function hn(t){let e,n,l,r,i,s,a,c;return{c(){e=k("div"),n=k("span"),i=_(),E(n,"aria-label",l=t[2].format(t[8])),E(e,"class",s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),E(e,"role","columnheader")},m(l,o){y(l,e,o),v(e,n),v(e,i),a||(c=g(r=vt.call(null,n,t[3].format(t[8]))),a=!0)},p(i,a){t=i,6&a&&l!==(l=t[2].format(t[8]))&&E(n,"aria-label",l),r&&o(r.update)&&10&a&&r.update.call(null,t[3].format(t[8])),3&a&&s!==(s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&E(e,"class",s)},d(t){t&&w(e),a=!1,c()}}}function pn(e){let n,l,r,o,i,s,a,c=ot(e[1]),u=[];for(let t=0;t<c.length;t+=1)u[t]=hn(fn(e,c,t));return{c(){n=k("div"),l=k("div");for(let t=0;t<u.length;t+=1)u[t].c();o=_(),i=k("div"),E(l,"class",r=e[0].days),E(l,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",a=e[0].header)},m(t,e){y(t,n,e),v(n,l);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);v(n,o),v(n,i)},p(t,e){let[o]=e;if(15&o){let e;for(c=ot(t[1]),e=0;e<c.length;e+=1){const n=fn(t,c,e);u[e]?u[e].p(n,o):(u[e]=hn(n),u[e].c(),u[e].m(l,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&r!==(r=t[0].days)&&E(l,"class",r),1&o&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&o&&a!==(a=t[0].header)&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),b(u,t)}}}function mn(t,e,n){let l,r,o,i,{theme:s,_intlDayHeader:a,_intlDayHeaderAL:u,_days:d}=R("state");return c(t,s,(t=>n(0,l=t))),c(t,a,(t=>n(3,i=t))),c(t,u,(t=>n(2,o=t))),c(t,d,(t=>n(1,r=t))),[l,r,o,i,s,a,u,d]}let gn=class extends ft{constructor(t){super(),dt(this,t,mn,pn,i,{})}};function $n(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[8].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[8],"x"))&&t[33](t[8],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[32](t[10],t[1]))&&t[32](t[10],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ve(t[1])&&t[33](t[8]))&&(!ve(t[1])&&t[33](t[8])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),256&s[0]&&p!==(p=t[8].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[8],"x"))&&t[33](t[8],"x").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&lt(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[53](null),f=!1,r(h)}}}function vn(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,{chunk:L}=e,{longChunks:H={}}=e,{inPopup:B=!1}=e,{dates:F=[]}=e,{dayMaxEvents:P,displayEventEnd:z,eventAllUpdated:j,eventBackgroundColor:O,eventTextColor:W,eventClick:G,eventColor:q,eventContent:Y,eventClassNames:X,eventDidMount:V,eventMouseEnter:J,eventMouseLeave:K,theme:Q,_view:Z,_intlEventTime:tt,_interaction:et,_iClasses:nt,_resBgColor:lt,_resTxtColor:rt,_hiddenEvents:ot,_popupDate:it,_tasks:st}=R("state");c(t,P,(t=>n(56,i=t))),c(t,z,(t=>n(45,g=t))),c(t,j,(t=>n(58,d=t))),c(t,O,(t=>n(51,k=t))),c(t,W,(t=>n(48,y=t))),c(t,G,(t=>n(41,l=t))),c(t,q,(t=>n(50,b=t))),c(t,Y,(t=>n(44,m=t))),c(t,X,(t=>n(46,$=t))),c(t,V,(t=>n(59,f=t))),c(t,J,(t=>n(9,_=t))),c(t,K,(t=>n(10,C=t))),c(t,Q,(t=>n(2,p=t))),c(t,Z,(t=>n(42,u=t))),c(t,tt,(t=>n(43,h=t))),c(t,et,(t=>n(8,a=t))),c(t,nt,(t=>n(47,v=t))),c(t,lt,(t=>n(52,x=t))),c(t,rt,(t=>n(49,w=t))),c(t,ot,(t=>n(55,r=t))),c(t,it,(t=>n(57,s=t)));let at,ct,ut=1,dt=!1;function ft(t,e){return!ve(e)&&o(t)?e=>t({event:de(D),el:T,jsEvent:e,view:te(u)}):void 0}return N((()=>{o(f)&&f({event:de(D),timeText:U,el:T,view:te(u)})})),A((()=>{o(d)&&!ve(at)&&Rt((()=>d({view:te(u)})),"eau",st)})),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),"dates"in t&&n(37,F=t.dates)},t.$$.update=()=>{if(8&t.$$.dirty[1]&&n(0,D=L.event),37&t.$$.dirty[0]|4164360&t.$$.dirty[1]){n(1,at=D.display);let t=D.backgroundColor||x(D)||k||b,e=D.textColor||w(D)||y,l=ut;if(D._margin){let[t,e]=D._margin;L.date>=e[0]&&L.date<=e[e.length-1]&&(l=t)}n(5,S=`width:calc(${100*L.days}% + ${7*(L.days-1)}px);margin-top:${l}px;`),t&&n(5,S+=`background-color:${t};`),e&&n(5,S+=`color:${e};`),dt&&n(5,S+="visibility:hidden;"),n(4,E=[p.event,...v([],D),...ue($,D,u)].join(" "))}4&t.$$.dirty[0]|30728&t.$$.dirty[1]&&n(6,[U,M]=ae(L,g,m,p,h,u),M),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(7,ct=ft(l,at))},[D,at,p,T,E,S,M,ct,a,_,C,P,z,j,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,ft,function(t,e){return t.action?t=>a.action.drag(D,t,e,B?s:null,[qt(T).top-qt(Yt(T,1)).top,F]):void 0},L,H,B,F,function(){T&&(n(39,ut=me(L,H,Xt(T))),!0===i?function(){let t=Yt(T,2),e=Xt(t)-Xt(t.firstElementChild)-function(t){let e=0;for(let n=0;n<L.days&&(e=Wt(e,Xt(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(40,dt=L.bottom>e);let l=!1;for(let t of L.dates){let e=r[t.getTime()];if(e){let t=e.size;dt?e.add(L.event):e.delete(L.event),t!==e.size&&(l=!0)}}l&&ot.set(r)}():n(40,dt=!1))},ut,dt,l,u,h,m,g,$,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}let yn=class extends ft{constructor(t){super(),dt(this,t,vn,$n,i,{chunk:34,longChunks:35,inPopup:36,dates:37,reposition:38},null,[-1,-1,-1])}get reposition(){return this.$$.ctx[38]}};function wn(t,e,n){const l=t.slice();return l[20]=e[n],l}function bn(t,e){let n,l,r;return l=new yn({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n&&(r.chunk=e[20]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function kn(t){let e,n,l,i,s,a,c,u,d,f,h,p,m,$,b,C,S,M=[],U=new Map,L=ot(t[0]);const H=t=>t[20].event;for(let e=0;e<L.length;e+=1){let n=wn(t,L,e),l=H(n);U.set(l,M[e]=bn(l,n))}return{c(){e=k("div"),n=k("div"),l=k("time"),a=_(),c=k("a"),u=x("×"),h=_(),p=k("div");for(let t=0;t<M.length;t+=1)M[t].c();E(l,"datetime",i=Mt(t[3],10)),E(c,"role","button"),E(c,"tabindex","0"),E(c,"aria-label",d=t[6].close),E(n,"class",f=t[4].dayHead),E(p,"class",m=t[4].events),E(e,"class",$=t[4].popup),E(e,"style",t[2])},m(r,o){y(r,e,o),v(e,n),v(n,l),v(n,a),v(n,c),v(c,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,l,t[5].format(t[3]))),T(c,"click",D(t[13])),T(c,"keydown",$t(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[a]=r;(!b||8&a&&i!==(i=Mt(t[3],10)))&&E(l,"datetime",i),s&&o(s.update)&&40&a&&s.update.call(null,t[5].format(t[3])),(!b||64&a&&d!==(d=t[6].close))&&E(c,"aria-label",d),(!b||16&a&&f!==(f=t[4].dayHead))&&E(n,"class",f),1&a&&(L=ot(t[0]),et(),M=st(M,a,H,0,t,L,U,p,it,bn,null,wn),nt()),(!b||16&a&&m!==(m=t[4].events))&&E(p,"class",m),(!b||16&a&&$!==($=t[4].popup))&&E(e,"class",$),(!b||4&a)&&E(e,"style",t[2])},i(t){if(!b){for(let t=0;t<L.length;t+=1)lt(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 xn(t,e,n){let l,r,o,i,s,a,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:p,_popupDate:g,_popupChunks:$}=R("state");c(t,d,(t=>n(6,a=t))),c(t,f,(t=>n(4,i=t))),c(t,h,(t=>n(17,l=t))),c(t,p,(t=>n(5,s=t))),c(t,g,(t=>n(3,r=t))),c(t,$,(t=>n(0,o=t)));let v="";function y(){u&&(n(2,v=""),Y().then((()=>{o.length?function(){let t,e,l=Yt(u,1),r=Yt(l,3),o=qt(u),i=qt(l),s=qt(r);if(n(2,v=""),o.width>=s.width){t=s.left-i.left;let e=i.right-s.right;n(2,v+=`right:${e}px;`)}else t=(i.width-o.width)/2,i.left+t<s.left?t=s.left-i.left:i.left+t+o.width>s.right&&(t=s.right-i.left-o.width);if(n(2,v+=`left:${t}px;`),o.height>=s.height){e=s.top-i.top;let t=i.bottom-s.bottom;n(2,v+=`bottom:${t}px;`)}else e=(i.height-o.height)/2,i.top+e<s.top?e=s.top-i.top:i.top+e+o.height>s.bottom&&(e=s.bottom-i.top-o.height);n(2,v+=`top:${e}px;`)}():w()})))}function w(t){m(g,r=null,r)}return t.$$.update=()=>{1&t.$$.dirty&&o&&y()},[o,u,v,r,i,s,a,d,f,h,p,g,$,w,function(t){w(),l.action?.noClick()},function(e){P.call(this,t,e)},function(t){I[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class _n extends ft{constructor(t){super(),dt(this,t,xn,kn,i,{})}}function Cn(t,e,n){const l=t.slice();return l[42]=e[n],l[43]=e,l[44]=n,l}function Tn(t){let e,n,l,r;return n=new yn({props:{chunk:t[2][1]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[13].events)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][1]),n.$set(i),(!r||8192&o[0]&&l!==(l=t[13].events))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Dn(t){let e,n,l,r;return n=new yn({props:{chunk:t[2][0]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[13].events+" "+t[13].preview)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][0]),n.$set(i),(!r||8192&o[0]&&l!==(l=t[13].events+" "+t[13].preview))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function En(t,e){let n,l,r,o=e[44];const i=()=>e[36](l,o),s=()=>e[36](null,o);let a={chunk:e[42],longChunks:e[1],dates:e[3]};return l=new yn({props:a}),i(),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){o!==(e=t)[44]&&(s(),o=e[44],i());const r={};32&n[0]&&(r.chunk=e[42]),2&n[0]&&(r.longChunks=e[1]),8&n[0]&&(r.dates=e[3]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(l,t)}}}function Sn(t){let e,n;return e=new _n({}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Mn(t){let e,n,l,i;return{c(){e=k("a"),E(e,"role","button"),E(e,"tabindex","0"),E(e,"aria-haspopup","true")},m(r,o){y(r,e,o),l||(i=[T(e,"click",D(t[26])),T(e,"keydown",$t(t[26])),T(e,"pointerdown",D(t[35])),g(n=vt.call(null,e,t[11]))],l=!0)},p(t,e){n&&o(n.update)&&2048&e[0]&&n.update.call(null,t[11])},d(t){t&&w(e),l=!1,r(i)}}}function Un(t){let e,n,l,i,s,a,c,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&&Tn(t),B=M&&Dn(t),N=ot(t[5]);const A=t=>t[42].event;for(let e=0;e<N.length;e+=1){let n=Cn(t,N,e),l=A(n);L.set(l,U[e]=En(l,n))}let F=t[7]&&Sn(),R=t[6].size&&Mn(t);return{c(){e=k("div"),n=k("time"),a=_(),H&&H.c(),c=_(),B&&B.c(),u=_(),d=k("div");for(let t=0;t<U.length;t+=1)U[t].c();h=_(),F&&F.c(),p=_(),m=k("div"),R&&R.c(),E(n,"class",l=t[13].dayHead),E(n,"datetime",i=Mt(t[0],10)),E(d,"class",f=t[13].events),E(m,"class",$=t[13].dayFoot),E(e,"class",b=t[13].day+" "+t[13].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[13].today:"")+(t[9]?" "+t[13].otherMonth:"")+(t[10]?" "+t[13].highlight:"")),E(e,"role","cell")},m(l,r){y(l,e,r),v(e,n),v(e,a),H&&H.m(e,null),v(e,c),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),F&&F.m(e,null),v(e,p),v(e,m),R&&R.m(m,null),t[37](e),x=!0,C||(D=[g(s=vt.call(null,n,t[15].format(t[0]))),T(e,"pointerleave",(function(){o(t[14].pointer?.leave)&&t[14].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[14].action?.select)&&t[14].action?.select.apply(this,arguments)}))],C=!0)},p(r,a){t=r,(!x||8192&a[0]&&l!==(l=t[13].dayHead))&&E(n,"class",l),(!x||1&a[0]&&i!==(i=Mt(t[0],10)))&&E(n,"datetime",i),s&&o(s.update)&&32769&a[0]&&s.update.call(null,t[15].format(t[0])),5&a[0]&&(S=t[2][1]&&Ut(t[2][1].date,t[0])),S?H?(H.p(t,a),5&a[0]&&lt(H,1)):(H=Tn(t),H.c(),lt(H,1),H.m(e,c)):H&&(et(),rt(H,1,1,(()=>{H=null})),nt()),5&a[0]&&(M=t[2][0]&&Ut(t[2][0].date,t[0])),M?B?(B.p(t,a),5&a[0]&&lt(B,1)):(B=Dn(t),B.c(),lt(B,1),B.m(e,u)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),4138&a[0]&&(N=ot(t[5]),et(),U=st(U,a,A,0,t,N,L,d,it,En,null,Cn),nt()),(!x||8192&a[0]&&f!==(f=t[13].events))&&E(d,"class",f),t[7]?F?128&a[0]&&lt(F,1):(F=Sn(),F.c(),lt(F,1),F.m(e,p)):F&&(et(),rt(F,1,1,(()=>{F=null})),nt()),t[6].size?R?R.p(t,a):(R=Mn(t),R.c(),R.m(m,null)):R&&(R.d(1),R=null),(!x||8192&a[0]&&$!==($=t[13].dayFoot))&&E(m,"class",$),(!x||9985&a[0]&&b!==(b=t[13].day+" "+t[13].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[13].today:"")+(t[9]?" "+t[13].otherMonth:"")+(t[10]?" "+t[13].highlight:"")))&&E(e,"class",b)},i(t){if(!x){lt(H),lt(B);for(let t=0;t<N.length;t+=1)lt(U[t]);lt(F),x=!0}},o(t){rt(H),rt(B);for(let t=0;t<U.length;t+=1)rt(U[t]);rt(F),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();F&&F.d(),R&&R.d(),t[37](null),C=!1,r(D)}}}function Ln(t,e,n){let l,r,i,s,a,u,d,f,h,p,g,$,v,y,w,{date:b}=e,{chunks:k}=e,{longChunks:x}=e,{iChunks:_=[]}=e,{dates:C}=e,{date:T,dayMaxEvents:D,highlightedDates:E,moreLinkContent:S,theme:M,_hiddenEvents:U,_intlDayCell:L,_popupDate:H,_popupChunks:B,_today:N,_interaction:A,_queue:F}=R("state");c(t,T,(t=>n(33,u=t))),c(t,E,(t=>n(32,a=t))),c(t,S,(t=>n(30,i=t))),c(t,M,(t=>n(13,f=t))),c(t,U,(t=>n(31,s=t))),c(t,L,(t=>n(15,p=t))),c(t,H,(t=>n(29,r=t))),c(t,B,(t=>n(38,l=t))),c(t,N,(t=>n(34,d=t))),c(t,A,(t=>n(14,h=t)));let z,j=new Set,O="",W=[];function G(){let t=Tt(xt(b)),e=$.concat(x[b.getTime()]?.chunks||[]);m(B,l=e.map((e=>Pt({},e,ie(e.event,b,t),{days:1,dates:[b]}))).sort(((t,e)=>t.top-e.top)),l)}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),"dates"in t&&n(3,C=t.dates)},t.$$.update=()=>{if(134217825&t.$$.dirty[0]){n(5,$=[]),j.clear(),n(6,j),n(27,k),n(0,b),n(5,$);for(let t of k)Ut(t.date,b)&&$.push(t)}if(65&t.$$.dirty[0]&&m(U,s[b.getTime()]=j,s),1&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(8,v=Ut(b,d)),1&t.$$.dirty[0]|6&t.$$.dirty[1]&&(n(9,y=b.getUTCMonth()!==u.getUTCMonth()),n(10,w=a.some((t=>Ut(t,b))))),1073741888&t.$$.dirty[0]|1&t.$$.dirty[1]&&s&&j.size){let t="+"+j.size+" more";n(11,O=i?o(i)?i({num:j.size,text:t}):i:t)}536870913&t.$$.dirty[0]&&n(7,z=r&&Ut(b,r)),162&t.$$.dirty[0]&&z&&x&&$&&Y().then(G),17&t.$$.dirty[0]&&g&&Jt(g,(()=>({allDay:!0,date:b,resource:void 0,dayEl:g})))},[b,x,_,C,g,$,j,z,v,y,w,O,W,f,h,p,T,E,S,M,U,L,H,B,N,A,function(){m(H,r=b,r)},k,function(){ge(W,$)},r,i,s,a,u,d,function(e){P.call(this,t,e)},function(t,e){I[t?"unshift":"push"]((()=>{W[e]=t,n(12,W)}))},function(t){I[t?"unshift":"push"]((()=>{g=t,n(4,g)}))}]}let Hn=class extends ft{constructor(t){super(),dt(this,t,Ln,Un,i,{date:0,chunks:27,longChunks:1,iChunks:2,dates:3,reposition:28},null,[-1,-1])}get reposition(){return this.$$.ctx[28]}};function Bn(t,e,n){const l=t.slice();return l[21]=e[n],l[22]=e,l[23]=n,l}function Nn(t){let e,n,l=t[23];const r=()=>t[18](e,l),o=()=>t[18](null,l);let i={date:t[21],chunks:t[1],longChunks:t[2],iChunks:t[3],dates:t[0]};return e=new Hn({props:i}),r(),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){l!==t[23]&&(o(),l=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]),1&n&&(i.dates=t[0]),e.$set(i)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function An(t){let e,n,l,r,o,i=ot(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=Nn(Bn(t,i,e));const a=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);l=!0,r||(o=T(window,"resize",t[11]),r=!0)},p(t,r){let[o]=r;if(31&o){let n;for(i=ot(t[0]),n=0;n<i.length;n+=1){const l=Bn(t,i,n);s[n]?(s[n].p(l,o),lt(s[n],1)):(s[n]=Nn(l),s[n].c(),lt(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)a(n);nt()}(!l||32&o&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!l){for(let t=0;t<i.length;t+=1)lt(s[t]);l=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);l=!1},d(t){t&&w(e),b(s,t),r=!1,o()}}}function Fn(t,e,n){let l,r,o,i,s,{dates:a}=e,{_events:u,_iEvents:d,_queue2:f,_hiddenEvents:h,hiddenDays:p,theme:m}=R("state");c(t,u,(t=>n(17,i=t))),c(t,d,(t=>n(16,o=t))),c(t,h,(t=>n(14,l=t))),c(t,p,(t=>n(15,r=t))),c(t,m,(t=>n(5,s=t)));let g,$,v,y,w=[],b=[],k={};function x(){At((()=>ge(b,a)),k,f)}return t.$$set=t=>{"dates"in t&&n(0,a=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty&&(n(12,v=a[0]),n(13,y=Tt(xt(a[a.length-1])))),176130&t.$$.dirty){n(1,g=[]);for(let t of i)if(!ye(t.display)&&$e(t,v,y)){let e=ie(t,v,y);g.push(e)}n(2,$=pe(g,r)),x()}110592&t.$$.dirty&&n(3,w=o.map((t=>{let e;return t&&$e(t,v,y)?(e=ie(t,v,y),pe([e],r)):e=null,e}))),16384&t.$$.dirty&&l&&Y().then(x)},[a,g,$,w,b,s,u,d,h,p,m,x,v,y,l,r,o,i,function(t,e){I[t?"unshift":"push"]((()=>{b[e]=t,n(4,b)}))}]}let Rn=class extends ft{constructor(t){super(),dt(this,t,Fn,An,i,{dates:0})}};function Pn(t,e,n){const l=t.slice();return l[15]=e[n],l}function zn(t){let e,n;return e=new Rn({props:{dates:t[15]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.dates=t[15]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function In(t){let e,n,l,r,o,i=ot(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=zn(Pn(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=k("div"),n=k("div");for(let t=0;t<s.length;t+=1)s[t].c();E(n,"class",l=t[2].content),E(e,"class",r=t[2].body+(!0===t[1]?" "+t[2].uniform:""))},m(l,r){y(l,e,r),v(e,n);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(n,null);t[13](e),o=!0},p(t,c){let[u]=c;if(1&u){let e;for(i=ot(t[0]),e=0;e<i.length;e+=1){const l=Pn(t,i,e);s[e]?(s[e].p(l,u),lt(s[e],1)):(s[e]=zn(l),s[e].c(),lt(s[e],1),s[e].m(n,null))}for(et(),e=i.length;e<s.length;e+=1)a(e);nt()}(!o||4&u&&l!==(l=t[2].content))&&E(n,"class",l),(!o||6&u&&r!==(r=t[2].body+(!0===t[1]?" "+t[2].uniform:"")))&&E(e,"class",r)},i(t){if(!o){for(let t=0;t<i.length;t+=1)lt(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(n){n&&w(e),b(s,n),t[13](null)}}}function jn(t,e,n){let l,r,o,i,s,a,u,d,{_bodyEl:f,_viewDates:h,_hiddenEvents:p,dayMaxEvents:g,hiddenDays:$,theme:v}=R("state");return c(t,f,(t=>n(3,a=t))),c(t,h,(t=>n(11,l=t))),c(t,p,(t=>n(14,o=t))),c(t,g,(t=>n(1,r=t))),c(t,$,(t=>n(12,i=t))),c(t,v,(t=>n(2,s=t))),t.$$.update=()=>{if(7171&t.$$.dirty){n(0,u=[]),n(10,d=7-i.length),m(p,o={},o);for(let t=0;t<l.length/d;++t){let e=[];for(let n=0;n<d;++n)e.push(l[t*d+n]);u.push(e)}}},[u,r,s,a,f,h,p,g,$,v,d,l,i,function(t){I[t?"unshift":"push"]((()=>{a=t,f.set(a)}))}]}let On=class extends ft{constructor(t){super(),dt(this,t,jn,In,i,{})}};function Wn(e){let n,l,r,o;return n=new gn({}),r=new On({}),{c(){at(n.$$.fragment),l=_(),at(r.$$.fragment)},m(t,e){ct(n,t,e),y(t,l,e),ct(r,t,e),o=!0},p:t,i(t){o||(lt(n.$$.fragment,t),lt(r.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),rt(r.$$.fragment,t),o=!1},d(t){t&&w(l),ut(n,t),ut(r,t)}}}let Gn=class extends ft{constructor(t){super(),dt(this,t,null,Wn,i,{})}};var qn={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:xe,component:Gn,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:Te("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,l]=t,r=[],o=xt(e),i=7;for(;o.getUTCDay()!==n&&i;)Dt(o),--i;for(let t=0;t<7;++t)l.includes(o.getUTCDay())||r.push(xt(o)),Tt(o);return r}))}(t),t._intlDayCell=De(t.locale,t.dayCellFormat),t._intlDayPopover=De(t.locale,t.dayPopoverFormat),t._hiddenEvents=mt({}),t._popupDate=mt(null),t._popupChunks=mt([])}};function Yn(e){let n,l,i,s,a,c,u,d,f,h,p;return{c(){n=k("article"),l=k("div"),s=_(),a=k("div"),E(l,"class",i=e[0].eventTag),E(l,"style",e[3]),E(a,"class",c=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,l),v(n,s),v(n,a),e[40](n),h||(p=[g(u=vt.call(null,a,e[4])),T(n,"click",(function(){o(e[5])&&e[5].apply(this,arguments)})),T(n,"keydown",(function(){o(e[5]&&$t(e[5]))&&(e[5]&&$t(e[5])).apply(this,arguments)})),T(n,"mouseenter",(function(){o(e[26](e[6]))&&e[26](e[6]).apply(this,arguments)})),T(n,"mouseleave",(function(){o(e[26](e[7]))&&e[26](e[7]).apply(this,arguments)})),T(n,"pointerdown",(function(){o(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(l,"class",i),8&r[0]&&E(l,"style",e[3]),1&r[0]&&c!==(c=e[0].eventBody)&&E(a,"class",c),u&&o(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 l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,{chunk:S}=e,{displayEventEnd:M,eventAllUpdated:U,eventBackgroundColor:L,eventTextColor:H,eventColor:B,eventContent:F,eventClassNames:P,eventClick:z,eventDidMount:j,eventMouseEnter:O,eventMouseLeave:W,theme:G,_view:q,_intlEventTime:Y,_resBgColor:X,_resTxtColor:V,_interaction:J,_tasks:K}=R("state");function Q(t){return o(t)?e=>t({event:de(x),el:k,jsEvent:e,view:te(r)}):void 0}return c(t,M,(t=>n(33,f=t))),c(t,U,(t=>n(42,i=t))),c(t,L,(t=>n(38,$=t))),c(t,H,(t=>n(35,p=t))),c(t,B,(t=>n(37,g=t))),c(t,F,(t=>n(32,d=t))),c(t,P,(t=>n(34,h=t))),c(t,z,(t=>n(29,l=t))),c(t,j,(t=>n(43,s=t))),c(t,O,(t=>n(6,y=t))),c(t,W,(t=>n(7,w=t))),c(t,G,(t=>n(0,u=t))),c(t,q,(t=>n(30,r=t))),c(t,Y,(t=>n(31,a=t))),c(t,X,(t=>n(39,v=t))),c(t,V,(t=>n(36,m=t))),c(t,J,(t=>n(8,b=t))),N((()=>{o(s)&&s({event:de(x),timeText:D,el:k,view:te(r)})})),A((()=>{o(i)&&Rt((()=>i({view:te(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)||$||g;t&&n(3,C=`background-color:${t};`);let e=x.textColor||m(x)||p;e&&n(3,C+=`color:${e};`),n(2,_=[u.event,...ue(h,x,r)].join(" "))}1207959553&t.$$.dirty[0]|7&t.$$.dirty[1]&&n(4,[D,T]=ae(S,f,d,u,a,r),T),536870912&t.$$.dirty[0]&&n(5,E=Q(l))},[u,k,_,C,T,E,y,w,b,M,U,L,H,B,F,P,z,j,O,W,G,q,Y,X,V,J,Q,S,x,l,r,a,d,f,h,p,m,g,$,v,function(t){I[t?"unshift":"push"]((()=>{k=t,n(1,k)}))}]}let Vn=class extends ft{constructor(t){super(),dt(this,t,Xn,Yn,i,{chunk:27},null,[-1,-1])}};function Jn(t,e,n){const l=t.slice();return l[21]=e[n],l}function Kn(t){let e,n,l,i,s,a,c,u,d,f,h,p,m,$,b=[],x=new Map,C=ot(t[2]);const D=t=>t[21].event;for(let e=0;e<C.length;e+=1){let n=Jn(t,C,e),l=D(n);x.set(l,b[e]=Qn(l,n))}return{c(){e=k("div"),n=k("h4"),l=k("time"),s=_(),a=k("time"),f=_();for(let t=0;t<b.length;t+=1)b[t].c();E(l,"datetime",t[5]),E(a,"class",c=t[6].daySide),E(a,"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,c){y(r,e,c),v(e,n),v(n,l),v(n,s),v(n,a),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,l,t[8].format(t[0]))),g(u=vt.call(null,a,t[9].format(t[0]))),T(e,"pointerdown",(function(){o(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],m=!0)},p(r,s){t=r,(!p||32&s)&&E(l,"datetime",t[5]),i&&o(i.update)&&257&s&&i.update.call(null,t[8].format(t[0])),(!p||64&s&&c!==(c=t[6].daySide))&&E(a,"class",c),(!p||32&s)&&E(a,"datetime",t[5]),u&&o(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=ot(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)lt(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),m=!1,r($)}}}function Qn(t,e){let n,l,r;return l=new Vn({props:{chunk:e[21]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};4&n&&(r.chunk=e[21]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function Zn(t){let e,n,l=t[2].length&&Kn(t);return{c(){l&&l.c(),e=C()},m(t,r){l&&l.m(t,r),y(t,e,r),n=!0},p(t,n){let[r]=n;t[2].length?l?(l.p(t,r),4&r&&lt(l,1)):(l=Kn(t),l.c(),lt(l,1),l.m(e.parentNode,e)):l&&(et(),rt(l,1,1,(()=>{l=null})),nt())},i(t){n||(lt(l),n=!0)},o(t){rt(l),n=!1},d(t){t&&w(e),l&&l.d(t)}}}function tl(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,m,{date:g}=e,{_events:$,_interaction:v,_intlListDay:y,_intlListDaySide:w,_today:b,highlightedDates:k,theme:x}=R("state");return c(t,$,(t=>n(19,o=t))),c(t,v,(t=>n(7,s=t))),c(t,y,(t=>n(8,a=t))),c(t,w,(t=>n(9,u=t))),c(t,b,(t=>n(18,r=t))),c(t,k,(t=>n(17,l=t))),c(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 o)if(!ye(n.display)&&$e(n,t,e)){let l=ie(n,t,e);f.push(l)}se(f)}262145&t.$$.dirty&&n(3,h=Ut(g,r)),131073&t.$$.dirty&&n(4,p=l.some((t=>Ut(t,g)))),1&t.$$.dirty&&n(5,m=Mt(g,10)),3&t.$$.dirty&&d&&Jt(d,(()=>({allDay:!0,date:g,resource:void 0,dayEl:d})))},[g,d,f,h,p,m,i,s,a,u,$,v,y,w,b,k,x,l,r,o,function(t){I[t?"unshift":"push"]((()=>{d=t,n(1,d)}))}]}let el=class extends ft{constructor(t){super(),dt(this,t,tl,Zn,i,{date:0})}};function nl(t,e,n){const l=t.slice();return l[18]=e[n],l}function ll(t){let e,n,l=ot(t[1]),r=[];for(let e=0;e<l.length;e+=1)r[e]=ol(nl(t,l,e));const o=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,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);y(t,e,l),n=!0},p(t,n){if(2&n){let i;for(l=ot(t[1]),i=0;i<l.length;i+=1){const o=nl(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=ol(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(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 rl(e){let n,l,i,s,a;return{c(){n=k("div"),E(n,"class",l=e[3].noEvents)},m(t,l){y(t,n,l),s||(a=[g(i=vt.call(null,n,e[0])),T(n,"click",e[12])],s=!0)},p(t,e){8&e&&l!==(l=t[3].noEvents)&&E(n,"class",l),i&&o(i.update)&&1&e&&i.update.call(null,t[0])},i:t,o:t,d(t){t&&w(n),s=!1,r(a)}}}function ol(t){let e,n;return e=new el({props:{date:t[18]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.date=t[18]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function il(t){let e,n,l,r,o,i,s;const a=[rl,ll],c=[];function u(t,e){return t[2]?0:1}return l=u(t),r=c[l]=a[l](t),{c(){e=k("div"),n=k("div"),r.c(),E(n,"class",o=t[3].content),E(e,"class",i=t[3].body)},m(r,o){y(r,e,o),v(e,n),c[l].m(n,null),t[15](e),s=!0},p(t,d){let[f]=d,h=l;l=u(t),l===h?c[l].p(t,f):(et(),rt(c[h],1,1,(()=>{c[h]=null})),nt(),r=c[l],r?r.p(t,f):(r=c[l]=a[l](t),r.c()),lt(r,1),r.m(n,null)),(!s||8&f&&o!==(o=t[3].content))&&E(n,"class",o),(!s||8&f&&i!==(i=t[3].body))&&E(e,"class",i)},i(t){s||(lt(r),s=!0)},o(t){rt(r),s=!1},d(n){n&&w(e),c[l].d(),t[15](null)}}}function sl(t,e,n){let l,r,i,s,a,u,d,f,h,{_bodyEl:p,_events:m,_view:g,_viewDates:$,noEventsClick:v,noEventsContent:y,theme:w}=R("state");return c(t,p,(t=>n(4,d=t))),c(t,m,(t=>n(14,s=t))),c(t,g,(t=>n(16,l=t))),c(t,$,(t=>n(1,a=t))),c(t,v,(t=>n(17,r=t))),c(t,y,(t=>n(13,i=t))),c(t,w,(t=>n(3,u=t))),t.$$.update=()=>{if(16386&t.$$.dirty&&(n(2,f=!0),a.length)){let t=a[0],e=Tt(xt(a[a.length-1]));for(let l of s)if(!ye(l.display)&&l.start<e&&l.end>t){n(2,f=!1);break}}8193&t.$$.dirty&&(n(0,h=o(i)?i():i),"string"==typeof h&&n(0,h={html:h}))},[h,a,f,u,d,p,m,g,$,v,y,w,function(t){o(r)&&r({jsEvent:t,view:te(l)})},i,s,function(t){I[t?"unshift":"push"]((()=>{d=t,p.set(d)}))}]}let al=class extends ft{constructor(t){super(),dt(this,t,sl,il,i,{})}};function cl(e){let n,l;return n=new al({}),{c(){at(n.$$.fragment)},m(t,e){ct(n,t,e),l=!0},p:t,i(t){l||(lt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){ut(n,t)}}}let ul=class extends ft{constructor(t){super(),dt(this,t,null,cl,i,{})}};var dl={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:be,component:ul,duration:{days:1},theme:Te("ec-list ec-day-view")},t.views.listWeek={buttonText:ke,component:ul,duration:{weeks:1},theme:Te("ec-list ec-week-view")},t.views.listMonth={buttonText:xe,component:ul,duration:{months:1},theme:Te("ec-list ec-month-view")},t.views.listYear={buttonText:_e,component:ul,duration:{years:1},theme:Te("ec-list ec-year-view")}},createStores(t){t._intlListDay=De(t.locale,t.listDayFormat),t._intlListDaySide=De(t.locale,t.listDaySideFormat)}};const fl=t=>({}),hl=t=>({});function pl(t,e,n){const l=t.slice();return l[9]=e[n],l}function ml(t){let e,n,l,r,i,s;return{c(){e=k("time"),E(e,"class",n=t[1].time),E(e,"datetime",l=t[9][0])},m(n,l){y(n,e,l),i||(s=g(r=vt.call(null,e,t[9][2]?t[9][1]:"")),i=!0)},p(i,s){t=i,2&s&&n!==(n=t[1].time)&&E(e,"class",n),4&s&&l!==(l=t[9][0])&&E(e,"datetime",l),r&&o(r.update)&&4&s&&r.update.call(null,t[9][2]?t[9][1]:"")},d(t){t&&w(e),i=!1,s()}}}function gl(t){let e,n,l,r,i,s,a,c,d,m,$,x,C,T,D,S=ot(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=ml(pl(t,S,e));const U=t[8].lines,L=u(U,t,t[7],hl),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();a=_(),c=k("div"),d=k("div"),L&&L.c(),$=_(),B&&B.c(),E(n,"class",l=t[1].sidebarTitle),E(e,"class",s=t[1].sidebar),E(d,"class",m=t[1].lines),E(c,"class",x=t[1].days),E(c,"role","row")},m(l,o){y(l,e,o),v(e,n),v(e,i);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);y(l,a,o),y(l,c,o),v(c,d),L&&L.m(d,null),v(c,$),B&&B.m(c,null),C=!0,T||(D=g(r=vt.call(null,n,t[0])),T=!0)},p(t,i){let[a]=i;if((!C||2&a&&l!==(l=t[1].sidebarTitle))&&E(n,"class",l),r&&o(r.update)&&1&a&&r.update.call(null,t[0]),6&a){let n;for(S=ot(t[2]),n=0;n<S.length;n+=1){const l=pl(t,S,n);M[n]?M[n].p(l,a):(M[n]=ml(l),M[n].c(),M[n].m(e,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=S.length}(!C||2&a&&s!==(s=t[1].sidebar))&&E(e,"class",s),L&&L.p&&(!C||128&a)&&h(L,U,t,t[7],C?f(U,t[7],a,fl):p(t[7]),hl),(!C||2&a&&m!==(m=t[1].lines))&&E(d,"class",m),B&&B.p&&(!C||128&a)&&h(B,H,t,t[7],C?f(H,t[7],a,null):p(t[7]),null),(!C||2&a&&x!==(x=t[1].days))&&E(c,"class",x)},i(t){C||(lt(L,t),lt(B,t),C=!0)},o(t){rt(L,t),rt(B,t),C=!1},d(t){t&&(w(e),w(a),w(c)),b(M,t),L&&L.d(t),B&&B.d(t),T=!1,D()}}}function $l(t,e,n){let l,r,i,s,{$$slots:a={},$$scope:u}=e,{allDayContent:d,theme:f,_times:h}=R("state");return c(t,d,(t=>n(6,l=t))),c(t,f,(t=>n(1,r=t))),c(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=o(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(l))},[s,r,i,d,f,h,l,u,a]}class vl extends ft{constructor(t){super(),dt(this,t,$l,gl,i,{})}}function yl(t,e,n){const l=t.slice();return l[23]=e[n],l}function wl(t){let e;const n=t[16].default,l=u(n,t,t[18],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,r){l&&l.p&&(!e||262144&r)&&h(l,n,t,t[18],e?f(n,t[18],r,null):p(t[18]),null)},i(t){e||(lt(l,t),e=!0)},o(t){rt(l,t),e=!1},d(t){l&&l.d(t)}}}function bl(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,l){8&l&&n!==(n=t[3].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function kl(t){let e,n=ot(t[2]),l=[];for(let e=0;e<n.length;e+=1)l[e]=bl(yl(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);y(t,e,n)},p(t,r){if(12&r){let o;for(n=ot(t[2]),o=0;o<n.length;o+=1){const i=yl(t,n,o);l[o]?l[o].p(i,r):(l[o]=bl(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){t&&w(e),b(l,t)}}}function xl(t){let e,n,l,r,o,i;return l=new vl({props:{$$slots:{lines:[kl],default:[wl]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(l.$$.fragment),E(n,"class",r=t[3].content),E(e,"class",o=t[3].body+(t[1]?" "+t[3].compact:""))},m(r,o){y(r,e,o),v(e,n),ct(l,n,null),t[17](e),i=!0},p(t,s){let[a]=s;const c={};262156&a&&(c.$$scope={dirty:a,ctx:t}),l.$set(c),(!i||8&a&&r!==(r=t[3].content))&&E(n,"class",r),(!i||10&a&&o!==(o=t[3].body+(t[1]?" "+t[3].compact:"")))&&E(e,"class",o)},i(t){i||(lt(l.$$.fragment,t),i=!0)},o(t){rt(l.$$.fragment,t),i=!1},d(n){n&&w(e),ut(l),t[17](null)}}}function _l(t,e,n){let l,r,o,i,s,a,u,d,f,h,{$$slots:p={},$$scope:g}=e,{_bodyEl:$,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:_}=R("state");c(t,$,(t=>n(21,u=t))),c(t,v,(t=>n(14,s=t))),c(t,y,(t=>n(20,o=t))),c(t,w,(t=>n(15,a=t))),c(t,b,(t=>n(13,i=t))),c(t,k,(t=>n(12,r=t))),c(t,x,(t=>n(19,l=t))),c(t,_,(t=>n(3,d=t)));let C=[];return t.$$set=t=>{"$$scope"in t&&n(18,g=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&m($,u=f,u),36864&t.$$.dirty&&(n(1,h=r.seconds>=3600),n(2,C.length=a.length,C)),24577&t.$$.dirty&&f&&n(0,f.scrollTop=((i.seconds-o.min.seconds)/r.seconds-.5)*l,f)},[f,h,C,d,$,v,y,w,b,k,x,_,r,i,s,a,p,function(t){I[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},g]}let Cl=class extends ft{constructor(t){super(),dt(this,t,_l,xl,i,{})}};function Tl(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[34](t[10],"y"))&&t[34](t[10],"y").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[53](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[33](t[8],t[1]))&&t[33](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[33](t[9],t[1]))&&t[33](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ye(t[1])&&!ve(t[1])&&t[34](t[10]))&&(!ye(t[1])&&!ve(t[1])&&t[34](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[34](t[10],"y"))&&t[34](t[10],"y").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&lt(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[53](null),f=!1,r(h)}}}function Dl(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,B,{date:F}=e,{chunk:P}=e,{displayEventEnd:z,eventAllUpdated:j,eventBackgroundColor:O,eventTextColor:W,eventColor:G,eventContent:q,eventClick:Y,eventDidMount:X,eventClassNames:V,eventMouseEnter:J,eventMouseLeave:K,slotEventOverlap:Q,slotDuration:Z,slotHeight:tt,theme:et,_view:nt,_intlEventTime:lt,_interaction:rt,_iClasses:ot,_resBgColor:it,_resTxtColor:st,_slotTimeLimits:at,_tasks:ct}=R("state");function ut(t,e){return!ve(e)&&o(t)?e=>t({event:de(E),el:D,jsEvent:e,view:te(r)}):void 0}return c(t,z,(t=>n(41,f=t))),c(t,j,(t=>n(55,i=t))),c(t,O,(t=>n(48,y=t))),c(t,W,(t=>n(45,g=t))),c(t,G,(t=>n(47,v=t))),c(t,q,(t=>n(40,d=t))),c(t,Y,(t=>n(37,l=t))),c(t,X,(t=>n(56,s=t))),c(t,V,(t=>n(42,h=t))),c(t,J,(t=>n(8,_=t))),c(t,K,(t=>n(9,C=t))),c(t,Q,(t=>n(44,m=t))),c(t,Z,(t=>n(52,x=t))),c(t,tt,(t=>n(50,b=t))),c(t,et,(t=>n(2,u=t))),c(t,nt,(t=>n(38,r=t))),c(t,lt,(t=>n(39,a=t))),c(t,rt,(t=>n(10,T=t))),c(t,ot,(t=>n(43,p=t))),c(t,it,(t=>n(49,w=t))),c(t,st,(t=>n(46,$=t))),c(t,at,(t=>n(51,k=t))),N((()=>{o(s)&&s({event:de(E),timeText:H,el:D,view:te(r)})})),A((()=>{o(i)&&!ve(S)&&Rt((()=>i({view:te(r)})),"eau",ct)})),t.$$set=t=>{"date"in t&&n(35,F=t.date),"chunk"in t&&n(36,P=t.chunk)},t.$$.update=()=>{if(32&t.$$.dirty[1]&&n(0,E=P.event),39&t.$$.dirty[0]|4192432&t.$$.dirty[1]){n(1,S=E.display);let t=x.seconds,e=k.min.seconds,l=(P.start-F)/1e3,o=(P.end-F)/1e3,i=(l-e)/t*b,s=(o-l)/t*b,a=(k.max.seconds-l)/t*b,c=E.backgroundColor||w(E)||y||v,d=E.textColor||$(E)||g;n(5,U=`top:${i}px;min-height:${s}px;height:${s}px;max-height:${a}px;`),c&&n(5,U+=`background-color:${c};`),d&&n(5,U+=`color:${d};`),(!ye(S)&&!ve(S)||we(S))&&n(5,U+=`z-index:${P.column+1};left:${100/P.group.columns.length*P.column}%;width:${100/P.group.columns.length*(m?.5*(1+P.group.columns.length-P.column):1)}%;`),n(4,M=[ye(S)?u.bgEvent:u.event,...p([],E),...ue(h,E,r)].join(" "))}4&t.$$.dirty[0]|1952&t.$$.dirty[1]&&n(6,[H,L]=ae(P,f,d,u,a,r),L),2&t.$$.dirty[0]|64&t.$$.dirty[1]&&n(7,B=!ye(S)&&ut(l,S))},[E,S,u,D,M,U,L,B,_,C,T,z,j,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,st,at,ut,function(t,e){return t.action?n=>t.action.drag(E,n,e):void 0},F,P,l,r,a,d,f,h,p,m,g,$,v,y,w,b,k,x,function(t){I[t?"unshift":"push"]((()=>{D=t,n(3,D)}))}]}let El=class extends ft{constructor(t){super(),dt(this,t,Dl,Tl,i,{date:35,chunk:36},null,[-1,-1])}};function Sl(e){let n,l;return{c(){n=k("div"),E(n,"class",l=e[1].nowIndicator),M(n,"top",e[0]+"px")},m(t,e){y(t,n,e)},p(t,e){let[r]=e;2&r&&l!==(l=t[1].nowIndicator)&&E(n,"class",l),1&r&&M(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&w(n)}}}function Ml(t,e,n){let l,r,o,i,s,a,u,{slotDuration:d,slotHeight:f,theme:h,_now:p,_today:m,_slotTimeLimits:g}=R("state");c(t,d,(t=>n(11,o=t))),c(t,f,(t=>n(9,l=t))),c(t,h,(t=>n(1,a=t))),c(t,p,(t=>n(13,s=t))),c(t,m,(t=>n(12,i=t))),c(t,g,(t=>n(10,r=t)));let $=0;return t.$$.update=()=>{if(12288&t.$$.dirty&&n(8,u=(s-i)/1e3/60),3840&t.$$.dirty){let t=o.seconds/60,e=r.min.seconds/60;n(0,$=(u-e)/t*l)}},[$,a,d,f,h,p,m,g,u,l,r,o,i,s]}class Ul extends ft{constructor(t){super(),dt(this,t,Ml,Sl,i,{})}}function Ll(t,e,n){const l=t.slice();return l[32]=e[n],l}function Hl(t,e,n){const l=t.slice();return l[32]=e[n],l}function Bl(t,e){let n,l,r;return l=new El({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),8&n[0]&&(r.chunk=e[32]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function Nl(t){let e,n;return e=new El({props:{date:t[0],chunk:t[4][1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),16&n[0]&&(l.chunk=t[4][1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Al(t,e){let n,l,r;return l=new El({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),4&n[0]&&(r.chunk=e[32]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function Fl(t){let e,n;return e=new El({props:{date:t[0],chunk:t[4][0]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),16&n[0]&&(l.chunk=t[4][0]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Rl(t){let e,n;return e=new Ul({}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Pl(t){let e,n,l,i,s,a,c,u,d,f,h,p,m,g,$,b=[],x=new Map,C=[],D=new Map,S=ot(t[3]);const M=t=>t[32].event;for(let e=0;e<S.length;e+=1){let n=Hl(t,S,e),l=M(n);x.set(l,b[e]=Bl(l,n))}let U=t[4][1]&&Nl(t),L=ot(t[2]);const H=t=>t[32].event;for(let e=0;e<L.length;e+=1){let n=Ll(t,L,e),l=H(n);D.set(l,C[e]=Al(l,n))}let B=t[4][0]&&!t[4][0].event.allDay&&Fl(t),N=t[9]&&t[5]&&Rl();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(),a=_();for(let t=0;t<C.length;t+=1)C[t].c();c=_(),B&&B.c(),d=_(),f=k("div"),N&&N.c(),E(n,"class",l=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(l,r){y(l,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,a);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(s,null);v(s,c),B&&B.m(s,null),v(e,d),v(e,f),N&&N.m(f,null),t[28](e),m=!0,g||($=[T(e,"pointerleave",(function(){o(t[8].pointer?.leave)&&t[8].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[8].action?.select)&&t[8].action?.select.apply(this,arguments)}))],g=!0)},p(r,o){t=r,9&o[0]&&(S=ot(t[3]),et(),b=st(b,o,M,0,t,S,x,n,it,Bl,null,Hl),nt()),(!m||128&o[0]&&l!==(l=t[7].bgEvents))&&E(n,"class",l),t[4][1]?U?(U.p(t,o),16&o[0]&&lt(U,1)):(U=Nl(t),U.c(),lt(U,1),U.m(s,a)):U&&(et(),rt(U,1,1,(()=>{U=null})),nt()),5&o[0]&&(L=ot(t[2]),et(),C=st(C,o,H,0,t,L,D,s,it,Al,c,Ll),nt()),t[4][0]&&!t[4][0].event.allDay?B?(B.p(t,o),16&o[0]&&lt(B,1)):(B=Fl(t),B.c(),lt(B,1),B.m(s,null)):B&&(et(),rt(B,1,1,(()=>{B=null})),nt()),(!m||128&o[0]&&u!==(u=t[7].events))&&E(s,"class",u),t[9]&&t[5]?N?544&o[0]&&lt(N,1):(N=Rl(),N.c(),lt(N,1),N.m(f,null)):N&&(et(),rt(N,1,1,(()=>{N=null})),nt()),(!m||128&o[0]&&h!==(h=t[7].extra))&&E(f,"class",h),(!m||225&o[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(!m){for(let t=0;t<S.length;t+=1)lt(b[t]);lt(U);for(let t=0;t<L.length;t+=1)lt(C[t]);lt(B),lt(N),m=!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),m=!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[28](null),g=!1,r($)}}}function zl(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,{date:m}=e,{resource:g}=e,{_events:$,_iEvents:v,highlightedDates:y,nowIndicator:w,slotDuration:b,slotHeight:k,theme:x,_interaction:_,_today:C,_slotTimeLimits:T}=R("state");c(t,$,(t=>n(27,u=t))),c(t,v,(t=>n(26,a=t))),c(t,y,(t=>n(24,i=t))),c(t,w,(t=>n(9,h=t))),c(t,b,(t=>n(30,r=t))),c(t,k,(t=>n(29,l=t))),c(t,x,(t=>n(7,d=t))),c(t,_,(t=>n(8,f=t))),c(t,C,(t=>n(25,s=t))),c(t,T,(t=>n(23,o=t)));let D,E,S,M,U,L,H=[];function B(t,e){return e-=qt(p).top,{allDay:!1,date:_t(_t(xt(m),o.min),r,It(e/l)),resource:g,dayEl:p}}return t.$$set=t=>{"date"in t&&n(0,m=t.date),"resource"in t&&n(20,g=t.resource)},t.$$.update=()=>{if(8388609&t.$$.dirty[0]&&(n(21,U=_t(xt(m),o.min)),n(22,L=_t(xt(m),o.max))),141557772&t.$$.dirty[0]){n(2,D=[]),n(3,E=[]);for(let t of u)if(!t.allDay&&$e(t,U,L,g)){let e=ie(t,U,L);if("background"===t.display)E.push(e);else D.push(e)}!function(t){if(!t.length)return;se(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)}74448896&t.$$.dirty[0]&&n(4,H=a.map((t=>t&&$e(t,U,L,g)?ie(t,U,L):null))),33554433&t.$$.dirty[0]&&n(5,S=Ut(m,s)),16777217&t.$$.dirty[0]&&n(6,M=i.some((t=>Ut(t,m)))),2&t.$$.dirty[0]&&p&&Jt(p,B)},[m,p,D,E,H,S,M,d,f,h,$,v,y,w,b,k,x,_,C,T,g,U,L,o,i,s,a,u,function(t){I[t?"unshift":"push"]((()=>{p=t,n(1,p)}))}]}let Il=class extends ft{constructor(t){super(),dt(this,t,zl,Pl,i,{date:0,resource:20},null,[-1,-1])}};function jl(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[30](t[10],"x"))&&t[30](t[10],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[47](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[29](t[8],t[1]))&&t[29](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[29](t[9],t[1]))&&t[29](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ve(t[1])&&t[30](t[10]))&&(!ve(t[1])&&t[30](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[30](t[10],"x"))&&t[30](t[10],"x").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&lt(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[47](null),f=!1,r(h)}}}function Ol(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,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:F,eventColor:P,eventContent:z,eventClassNames:j,eventDidMount:O,eventMouseEnter:W,eventMouseLeave:G,theme:q,_view:Y,_intlEventTime:X,_interaction:V,_iClasses:J,_resBgColor:K,_resTxtColor:Q,_tasks:Z}=R("state");c(t,U,(t=>n(39,f=t))),c(t,L,(t=>n(49,i=t))),c(t,H,(t=>n(45,v=t))),c(t,B,(t=>n(42,m=t))),c(t,F,(t=>n(35,l=t))),c(t,P,(t=>n(44,$=t))),c(t,z,(t=>n(38,d=t))),c(t,j,(t=>n(40,h=t))),c(t,O,(t=>n(50,s=t))),c(t,W,(t=>n(8,w=t))),c(t,G,(t=>n(9,b=t))),c(t,q,(t=>n(2,u=t))),c(t,Y,(t=>n(36,r=t))),c(t,X,(t=>n(37,a=t))),c(t,V,(t=>n(10,k=t))),c(t,J,(t=>n(41,p=t))),c(t,K,(t=>n(46,y=t))),c(t,Q,(t=>n(43,g=t)));let tt,et,nt=1;function lt(t,e){return!ve(e)&&o(t)?e=>t({event:de(_),el:x,jsEvent:e,view:te(r)}):void 0}return N((()=>{o(s)&&s({event:de(_),timeText:E,el:x,view:te(r)})})),A((()=>{o(i)&&!ve(tt)&&Rt((()=>i({view:te(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||$,e=_.textColor||g(_)||m;n(5,T=`width:calc(${100*S.days}% + ${7*(S.days-1)}px);margin-top:${_._margin??nt}px;`),t&&n(5,T+=`background-color:${t};`),e&&n(5,T+=`color:${e};`),n(4,C=[u.event,...p([],_),...ue(h,_,r)].join(" "))}4&t.$$.dirty[0]|481&t.$$.dirty[1]&&n(6,[E,D]=ae(S,f,d,u,a,r),D),2&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(7,et=lt(l,tt))},[_,tt,u,x,C,T,D,et,w,b,k,U,L,H,B,F,P,z,j,O,W,G,q,Y,X,V,J,K,Q,lt,function(t,e){return t.action?n=>t.action.drag(_,n,e,null,qt(x).top-qt(Yt(x,1)).top):void 0},S,M,function(){x&&n(34,nt=me(S,M,Xt(x)))},nt,l,r,a,d,f,h,p,m,g,$,v,y,function(t){I[t?"unshift":"push"]((()=>{x=t,n(3,x)}))}]}let Wl=class extends ft{constructor(t){super(),dt(this,t,Ol,jl,i,{chunk:31,longChunks:32,reposition:33},null,[-1,-1])}get reposition(){return this.$$.ctx[33]}};function Gl(t,e,n){const l=t.slice();return l[21]=e[n],l[22]=e,l[23]=n,l}function ql(t){let e,n,l,r;return n=new Wl({props:{chunk:t[2][0]}}),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[8].events+" "+t[8].preview)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(t,o){const i={};4&o&&(i.chunk=t[2][0]),n.$set(i),(!r||256&o&&l!==(l=t[8].events+" "+t[8].preview))&&E(e,"class",l)},i(t){r||(lt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){t&&w(e),ut(n)}}}function Yl(t,e){let n,l,r,o=e[23];const i=()=>e[19](l,o),s=()=>e[19](null,o);let a={chunk:e[21],longChunks:e[1]};return l=new Wl({props:a}),i(),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){o!==(e=t)[23]&&(s(),o=e[23],i());const r={};16&n&&(r.chunk=e[21]),2&n&&(r.longChunks=e[1]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(l,t)}}}function Xl(t){let e,n,l,r,i,s,a,c,u=t[2][0]&&Ut(t[2][0].date,t[0]),d=[],f=new Map,h=u&&ql(t),p=ot(t[4]);const m=t=>t[21].event;for(let e=0;e<p.length;e+=1){let n=Gl(t,p,e),l=m(n);f.set(l,d[e]=Yl(l,n))}return{c(){e=k("div"),h&&h.c(),n=_(),l=k("div");for(let t=0;t<d.length;t+=1)d[t].c();E(l,"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,l);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(l,null);t[20](e),s=!0,a||(c=T(e,"pointerdown",(function(){o(t[9].action?.select)&&t[9].action?.select.apply(this,arguments)})),a=!0)},p(o,a){let[c]=a;t=o,5&c&&(u=t[2][0]&&Ut(t[2][0].date,t[0])),u?h?(h.p(t,c),5&c&&lt(h,1)):(h=ql(t),h.c(),lt(h,1),h.m(e,n)):h&&(et(),rt(h,1,1,(()=>{h=null})),nt()),146&c&&(p=ot(t[4]),et(),d=st(d,c,m,0,t,p,f,l,it,Yl,null,Gl),nt()),(!s||256&c&&r!==(r=t[8].events))&&E(l,"class",r),(!s||353&c&&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){lt(h);for(let t=0;t<p.length;t+=1)lt(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),a=!1,c()}}}function Vl(t,e,n){let l,r,o,i,s,a,u,d,{date:f}=e,{chunks:h}=e,{longChunks:p}=e,{iChunks:m=[]}=e,{resource:g}=e,{highlightedDates:$,theme:v,_interaction:y,_today:w}=R("state");c(t,$,(t=>n(17,l=t))),c(t,v,(t=>n(8,o=t))),c(t,y,(t=>n(9,i=t))),c(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,m=t.iChunks),"resource"in t&&n(15,g=t.resource)},t.$$.update=()=>{if(16401&t.$$.dirty){n(4,a=[]);for(let t of h)Ut(t.date,f)&&a.push(t)}262145&t.$$.dirty&&n(5,u=Ut(f,r)),131073&t.$$.dirty&&n(6,d=l.some((t=>Ut(t,f)))),32777&t.$$.dirty&&s&&Jt(s,(()=>({allDay:!0,date:f,resource:g,dayEl:s})))},[f,p,m,s,a,u,d,b,o,i,$,v,y,w,h,g,function(){ge(b,a)},l,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)}))}]}let Jl=class extends ft{constructor(t){super(),dt(this,t,Vl,Xl,i,{date:0,chunks:14,longChunks:1,iChunks:2,resource:15,reposition:16})}get reposition(){return this.$$.ctx[16]}};function Kl(t,e,n){const l=t.slice();return l[18]=e[n],l[19]=e,l[20]=n,l}function Ql(t){let e,n,l=t[20];const r=()=>t[15](e,l),o=()=>t[15](null,l);let i={date:t[18],chunks:t[2],longChunks:t[3],iChunks:t[4],resource:t[1]};return e=new Jl({props:i}),r(),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){l!==t[20]&&(o(),l=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||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function Zl(t){let e,n,l,r,o=ot(t[0]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ql(Kl(t,o,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(o,s){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(o,s);y(o,e,s),n=!0,l||(r=T(window,"resize",t[9]),l=!0)},p(t,n){let[l]=n;if(63&l){let n;for(o=ot(t[0]),n=0;n<o.length;n+=1){const r=Kl(t,o,n);i[n]?(i[n].p(r,l),lt(i[n],1)):(i[n]=Ql(r),i[n].c(),lt(i[n],1),i[n].m(e.parentNode,e))}for(et(),n=o.length;n<i.length;n+=1)s(n);nt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)lt(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),l=!1,r()}}}function tr(t,e,n){let l,r,o,{dates:i}=e,{resource:s}=e,{_events:a,_iEvents:u,_queue2:d,hiddenDays:f}=R("state");c(t,a,(t=>n(14,o=t))),c(t,u,(t=>n(13,r=t))),c(t,f,(t=>n(12,l=t)));let h,p,m,g,$=[],v=[],y={};function w(){At((()=>ge(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,m=i[0]),n(11,g=Tt(xt(i[i.length-1])))),23558&t.$$.dirty){n(2,h=[]);for(let t of o)if(t.allDay&&!ye(t.display)&&$e(t,m,g,s)){let e=ie(t,m,g);h.push(e)}n(3,p=pe(h,l)),w()}15362&t.$$.dirty&&n(4,$=r.map((t=>{let e;return t&&t.allDay&&$e(t,m,g,s)?(e=ie(t,m,g),pe([e],l)):e=null,e})))},[i,s,h,p,$,v,a,u,f,w,m,g,l,r,o,function(t,e){I[t?"unshift":"push"]((()=>{v[e]=t,n(5,v)}))}]}class er extends ft{constructor(t){super(),dt(this,t,tr,Zl,i,{dates:0,resource:1})}}function nr(t,e,n){const l=t.slice();return l[10]=e[n],l}function lr(t,e,n){const l=t.slice();return l[10]=e[n],l}function rr(t){let e,n,l,r,i,s,a,c,u;return{c(){e=k("div"),n=k("time"),s=_(),E(n,"datetime",l=Mt(t[10],10)),E(n,"aria-label",r=t[2].format(t[10])),E(e,"class",a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),E(e,"role","columnheader")},m(l,r){y(l,e,r),v(e,n),v(e,s),c||(u=g(i=vt.call(null,n,t[3].format(t[10]))),c=!0)},p(s,c){t=s,2&c&&l!==(l=Mt(t[10],10))&&E(n,"datetime",l),6&c&&r!==(r=t[2].format(t[10]))&&E(n,"aria-label",r),i&&o(i.update)&&10&c&&i.update.call(null,t[3].format(t[10])),3&c&&a!==(a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()])&&E(e,"class",a)},d(t){t&&w(e),c=!1,u()}}}function or(t){let e,n=ot(t[1]),l=[];for(let e=0;e<n.length;e+=1)l[e]=rr(lr(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);y(t,e,n)},p(t,r){if(15&r){let o;for(n=ot(t[1]),o=0;o<n.length;o+=1){const i=lr(t,n,o);l[o]?l[o].p(i,r):(l[o]=rr(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){t&&w(e),b(l,t)}}}function ir(t){let e,n,l,r,o,i,s,a,c;return l=new vl({props:{$$slots:{default:[sr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(l.$$.fragment),r=_(),o=k("div"),E(o,"class",i=t[0].hiddenScroll),E(n,"class",s=t[0].content),E(e,"class",a=t[0].allDay)},m(t,i){y(t,e,i),v(e,n),ct(l,n,null),v(n,r),v(n,o),c=!0},p(t,r){const u={};32770&r&&(u.$$scope={dirty:r,ctx:t}),l.$set(u),(!c||1&r&&i!==(i=t[0].hiddenScroll))&&E(o,"class",i),(!c||1&r&&s!==(s=t[0].content))&&E(n,"class",s),(!c||1&r&&a!==(a=t[0].allDay))&&E(e,"class",a)},i(t){c||(lt(l.$$.fragment,t),c=!0)},o(t){rt(l.$$.fragment,t),c=!1},d(t){t&&w(e),ut(l)}}}function sr(t){let e,n;return e=new er({props:{dates:t[1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.dates=t[1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function ar(t){let e,n;return e=new Il({props:{date:t[10]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.date=t[10]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function cr(t){let e,n,l=ot(t[1]),r=[];for(let e=0;e<l.length;e+=1)r[e]=ar(nr(t,l,e));const o=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,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);y(t,e,l),n=!0},p(t,n){if(2&n){let i;for(l=ot(t[1]),i=0;i<l.length;i+=1){const o=nr(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=ar(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(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,l,r,o,i,s,a,c,u;n=new vl({props:{$$slots:{default:[or]},$$scope:{ctx:t}}});let d=t[4]&&ir(t);return c=new Cl({props:{$$slots:{default:[cr]},$$scope:{ctx:t}}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r=k("div"),s=_(),d&&d.c(),a=_(),at(c.$$.fragment),E(r,"class",o=t[0].hiddenScroll),E(e,"class",i=t[0].header)},m(t,o){y(t,e,o),ct(n,e,null),v(e,l),v(e,r),y(t,s,o),d&&d.m(t,o),y(t,a,o),ct(c,t,o),u=!0},p(t,l){let[s]=l;const f={};32783&s&&(f.$$scope={dirty:s,ctx:t}),n.$set(f),(!u||1&s&&o!==(o=t[0].hiddenScroll))&&E(r,"class",o),(!u||1&s&&i!==(i=t[0].header))&&E(e,"class",i),t[4]?d?(d.p(t,s),16&s&&lt(d,1)):(d=ir(t),d.c(),lt(d,1),d.m(a.parentNode,a)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const h={};32770&s&&(h.$$scope={dirty:s,ctx:t}),c.$set(h)},i(t){u||(lt(n.$$.fragment,t),lt(d),lt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(a)),ut(n),d&&d.d(t),ut(c,t)}}}function dr(t,e,n){let l,r,o,i,s,{_viewDates:a,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=R("state");return c(t,a,(t=>n(1,r=t))),c(t,u,(t=>n(3,i=t))),c(t,d,(t=>n(2,o=t))),c(t,f,(t=>n(4,s=t))),c(t,h,(t=>n(0,l=t))),[l,r,o,i,s,a,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:be,component:fr,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:Te("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:ke,component:fr,duration:{weeks:1},theme:Te("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return gt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>Ue(...t)))}(t),t._times=function(t){return gt([t.slotDuration,t._slotTimeLimits,t._intlSlotLabel],(t=>Me(Et(bt()),...t)))}(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 mr(e){let n,l,r,i;return{c(){n=k("span"),E(n,"aria-label",e[2])},m(t,o){y(t,n,o),e[9](n),r||(i=g(l=vt.call(null,n,e[1])),r=!0)},p(t,e){let[r]=e;4&r&&E(n,"aria-label",t[2]),l&&o(l.update)&&2&r&&l.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 l,r,i,{resource:s}=e,{date:a}=e,{resourceLabelContent:u,resourceLabelDidMount:d,_intlDayHeaderAL:f}=R("state");c(t,u,(t=>n(8,i=t))),c(t,d,(t=>n(11,r=t))),c(t,f,(t=>n(10,l=t)));const h=F();let p,m,g;return N((()=>{o(r)&&r({resource:s,date:a?St(a):void 0,el:p})})),A((()=>{a?n(2,g=l.format(a)+", "+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,a=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,m=i?o(i)?i({resource:s,date:a?St(a):void 0}):i:s.title)},[p,m,g,u,d,f,s,a,i,function(t){I[t?"unshift":"push"]((()=>{p=t,n(0,p)}))}]}let $r=class extends ft{constructor(t){super(),dt(this,t,gr,mr,i,{resource:6,date:7})}};function vr(t,e,n){const l=t.slice();return l[17]=e[n],l}function yr(t,e,n){const l=t.slice();return l[20]=e[n],l}function wr(t,e,n){const l=t.slice();return l[26]=e[n],l}function br(t,e,n){const l=t.slice();return l[23]=e[n],l}function kr(t,e,n){const l=t.slice();return l[26]=e[n],l}function xr(t,e,n){const l=t.slice();return l[17]=e[n],l[32]=n,l}function _r(t,e,n){const l=t.slice();return l[20]=e[n],l}function Cr(t){let e,n,l,r;return n=new $r({props:{resource:t[17]}}),n.$on("text",(function(){for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];return t[16](t[32],...n)})),{c(){e=k("div"),at(n.$$.fragment),E(e,"class",l=t[5].day)},m(t,l){y(t,e,l),ct(n,e,null),r=!0},p(o,i){t=o;const s={};8&i[0]&&(s.resource=t[17]),n.$set(s),(!r||32&i[0]&&l!==(l=t[5].day))&&E(e,"class",l)},i(t){r||(lt(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,l,r,i,s,a,c,u;return{c(){n=k("div"),l=k("time"),E(l,"datetime",r=Mt(e[17],10)),E(l,"aria-label",i=e[6].format(e[17])),E(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,r){y(t,n,r),v(n,l),c||(u=g(s=vt.call(null,l,e[7].format(e[17]))),c=!0)},p(t,c){e=t,8&c[0]&&r!==(r=Mt(e[17],10))&&E(l,"datetime",r),72&c[0]&&i!==(i=e[6].format(e[17]))&&E(l,"aria-label",i),s&&o(s.update)&&136&c[0]&&s.update.call(null,e[7].format(e[17])),40&c[0]&&a!==(a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),c=!1,u()}}}function Dr(t){let e,n,l,r=ot(t[3][1]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Mr(_r(t,r,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=k("div");for(let t=0;t<o.length;t+=1)o[t].c();E(e,"class",n=t[5].days)},m(t,n){y(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);l=!0},p(t,s){if(252&s[0]){let n;for(r=ot(t[3][1]),n=0;n<r.length;n+=1){const l=_r(t,r,n);o[n]?(o[n].p(l,s),lt(o[n],1)):(o[n]=Mr(l),o[n].c(),lt(o[n],1),o[n].m(e,null))}for(et(),n=r.length;n<o.length;n+=1)i(n);nt()}(!l||32&s[0]&&n!==(n=t[5].days))&&E(e,"class",n)},i(t){if(!l){for(let t=0;t<r.length;t+=1)lt(o[t]);l=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);l=!1},d(t){t&&w(e),b(o,t)}}}function Er(e){let n,l,r,i,s,a,c,u,d;return{c(){n=k("div"),l=k("time"),a=_(),E(l,"datetime",r=Mt(e[20],10)),E(l,"aria-label",i=""+(e[4][e[32]]+e[6].format(e[20]))),E(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),E(n,"role","columnheader")},m(t,r){y(t,n,r),v(n,l),v(n,a),u||(d=g(s=vt.call(null,l,e[7].format(e[20]))),u=!0)},p(t,a){e=t,8&a[0]&&r!==(r=Mt(e[20],10))&&E(l,"datetime",r),88&a[0]&&i!==(i=""+(e[4][e[32]]+e[6].format(e[20])))&&E(l,"aria-label",i),s&&o(s.update)&&136&a[0]&&s.update.call(null,e[7].format(e[20])),40&a[0]&&c!==(c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()])&&E(n,"class",c)},i:t,o:t,d(t){t&&w(n),u=!1,d()}}}function Sr(t){let e,n,l,r,o;return n=new $r({props:{resource:t[20],date:t[17]}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),E(e,"class",r=t[5].day),E(e,"role","columnheader")},m(t,r){y(t,e,r),ct(n,e,null),v(e,l),o=!0},p(t,l){const i={};8&l[0]&&(i.resource=t[20]),8&l[0]&&(i.date=t[17]),n.$set(i),(!o||32&l[0]&&r!==(r=t[5].day))&&E(e,"class",r)},i(t){o||(lt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function Mr(t){let e,n,l,r;const o=[Sr,Er],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),l=C()},m(t,n){i[e].m(t,n),y(t,l,n),r=!0},p(t,r){let a=e;e=s(t),e===a?i[e].p(t,r):(et(),rt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=o[e](t),n.c()),lt(n,1),n.m(l.parentNode,l))},i(t){r||(lt(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(l),i[e].d(t)}}}function Ur(t){let e,n,l,r,o,i,s;const a=[Tr,Cr],c=[];function u(t,e){return t[2]?0:1}n=u(t),l=c[n]=a[n](t);let d=t[3][1].length>1&&Dr(t);return{c(){e=k("div"),l.c(),r=_(),d&&d.c(),o=_(),E(e,"class",i=t[5].resource)},m(t,l){y(t,e,l),c[n].m(e,null),v(e,r),d&&d.m(e,null),v(e,o),s=!0},p(t,f){let h=n;n=u(t),n===h?c[n].p(t,f):(et(),rt(c[h],1,1,(()=>{c[h]=null})),nt(),l=c[n],l?l.p(t,f):(l=c[n]=a[n](t),l.c()),lt(l,1),l.m(e,r)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&&lt(d,1)):(d=Dr(t),d.c(),lt(d,1),d.m(e,o)):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||(lt(l),lt(d),s=!0)},o(t){rt(l),rt(d),s=!1},d(t){t&&w(e),c[n].d(),d&&d.d()}}}function Lr(t){let e,n,l=ot(t[3][0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=Ur(xr(t,l,e));const o=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,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);y(t,e,l),n=!0},p(t,n){if(252&n[0]){let i;for(l=ot(t[3][0]),i=0;i<l.length;i+=1){const o=xr(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=Ur(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(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,l,r,o,i,s,a,c;return l=new vl({props:{$$slots:{default:[Pr]},$$scope:{ctx:t}}}),{c(){e=k("div"),n=k("div"),at(l.$$.fragment),r=_(),o=k("div"),E(o,"class",i=t[5].hiddenScroll),E(n,"class",s=t[5].content),E(e,"class",a=t[5].allDay)},m(t,i){y(t,e,i),v(e,n),ct(l,n,null),v(n,r),v(n,o),c=!0},p(t,r){const u={};39&r[0]|16&r[1]&&(u.$$scope={dirty:r,ctx:t}),l.$set(u),(!c||32&r[0]&&i!==(i=t[5].hiddenScroll))&&E(o,"class",i),(!c||32&r[0]&&s!==(s=t[5].content))&&E(n,"class",s),(!c||32&r[0]&&a!==(a=t[5].allDay))&&E(e,"class",a)},i(t){c||(lt(l.$$.fragment,t),c=!0)},o(t){rt(l.$$.fragment,t),c=!1},d(t){t&&w(e),ut(l)}}}function Br(t){let e,n,l=ot(t[1]),r=[];for(let e=0;e<l.length;e+=1)r[e]=Ar(wr(t,l,e));const o=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,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);y(t,e,l),n=!0},p(t,n){if(35&n[0]){let i;for(l=ot(t[1]),i=0;i<l.length;i+=1){const o=wr(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=Ar(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(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,l=ot(t[0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=Rr(br(t,l,e));const o=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,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);y(t,e,l),n=!0},p(t,n){if(35&n[0]){let i;for(l=ot(t[0]),i=0;i<l.length;i+=1){const o=br(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=Rr(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(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,l,r,o;return n=new er({props:{dates:t[0],resource:t[26]}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),E(e,"class",r=t[5].resource)},m(t,r){y(t,e,r),ct(n,e,null),v(e,l),o=!0},p(t,l){const i={};1&l[0]&&(i.dates=t[0]),2&l[0]&&(i.resource=t[26]),n.$set(i),(!o||32&l[0]&&r!==(r=t[5].resource))&&E(e,"class",r)},i(t){o||(lt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function Fr(t){let e,n;return e=new er({props:{dates:[t[23]],resource:t[26]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.dates=[t[23]]),2&n[0]&&(l.resource=t[26]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Rr(t){let e,n,l,r,o=ot(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Fr(kr(t,o,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",l=t[5].resource)},m(t,l){y(t,e,l);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,a){if(3&a[0]){let l;for(o=ot(t[1]),l=0;l<o.length;l+=1){const r=kr(t,o,l);i[l]?(i[l].p(r,a),lt(i[l],1)):(i[l]=Fr(r),i[l].c(),lt(i[l],1),i[l].m(e,n))}for(et(),l=o.length;l<i.length;l+=1)s(l);nt()}(!r||32&a[0]&&l!==(l=t[5].resource))&&E(e,"class",l)},i(t){if(!r){for(let t=0;t<o.length;t+=1)lt(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 Pr(t){let e,n,l,r;const o=[Nr,Br],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),l=C()},m(t,n){i[e].m(t,n),y(t,l,n),r=!0},p(t,r){let a=e;e=s(t),e===a?i[e].p(t,r):(et(),rt(i[a],1,1,(()=>{i[a]=null})),nt(),n=i[e],n?n.p(t,r):(n=i[e]=o[e](t),n.c()),lt(n,1),n.m(l.parentNode,l))},i(t){r||(lt(n),r=!0)},o(t){rt(n),r=!1},d(t){t&&w(l),i[e].d(t)}}}function zr(t){let e,n;return e=new Il({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};12&n[0]&&(l.date=t[2]?t[17]:t[20]),12&n[0]&&(l.resource=t[2]?t[20]:t[17]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Ir(t){let e,n,l,r,o=ot(t[3][1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=zr(yr(t,o,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",l=t[5].resource)},m(t,l){y(t,e,l);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);v(e,n),r=!0},p(t,a){if(12&a[0]){let l;for(o=ot(t[3][1]),l=0;l<o.length;l+=1){const r=yr(t,o,l);i[l]?(i[l].p(r,a),lt(i[l],1)):(i[l]=zr(r),i[l].c(),lt(i[l],1),i[l].m(e,n))}for(et(),l=o.length;l<i.length;l+=1)s(l);nt()}(!r||32&a[0]&&l!==(l=t[5].resource))&&E(e,"class",l)},i(t){if(!r){for(let t=0;t<o.length;t+=1)lt(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 jr(t){let e,n,l=ot(t[3][0]),r=[];for(let e=0;e<l.length;e+=1)r[e]=Ir(vr(t,l,e));const o=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,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);y(t,e,l),n=!0},p(t,n){if(44&n[0]){let i;for(l=ot(t[3][0]),i=0;i<l.length;i+=1){const o=vr(t,l,i);r[i]?(r[i].p(o,n),lt(r[i],1)):(r[i]=Ir(o),r[i].c(),lt(r[i],1),r[i].m(e.parentNode,e))}for(et(),i=l.length;i<r.length;i+=1)o(i);nt()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)lt(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 Or(t){let e,n,l,r,o,i,s,a,c,u;n=new vl({props:{$$slots:{default:[Lr]},$$scope:{ctx:t}}});let d=t[8]&&Hr(t);return c=new Cl({props:{$$slots:{default:[jr]},$$scope:{ctx:t}}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r=k("div"),s=_(),d&&d.c(),a=_(),at(c.$$.fragment),E(r,"class",o=t[5].hiddenScroll),E(e,"class",i=t[5].header)},m(t,o){y(t,e,o),ct(n,e,null),v(e,l),v(e,r),y(t,s,o),d&&d.m(t,o),y(t,a,o),ct(c,t,o),u=!0},p(t,l){const s={};252&l[0]|16&l[1]&&(s.$$scope={dirty:l,ctx:t}),n.$set(s),(!u||32&l[0]&&o!==(o=t[5].hiddenScroll))&&E(r,"class",o),(!u||32&l[0]&&i!==(i=t[5].header))&&E(e,"class",i),t[8]?d?(d.p(t,l),256&l[0]&&lt(d,1)):(d=Hr(t),d.c(),lt(d,1),d.m(a.parentNode,a)):d&&(et(),rt(d,1,1,(()=>{d=null})),nt());const f={};44&l[0]|16&l[1]&&(f.$$scope={dirty:l,ctx:t}),c.$set(f)},i(t){u||(lt(n.$$.fragment,t),lt(d),lt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(w(e),w(s),w(a)),ut(n),d&&d.d(t),ut(c,t)}}}function Wr(t,e,n){let l,r,o,i,s,a,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:p,_intlDayHeader:m,_intlDayHeaderAL:g,allDaySlot:$,theme:v}=R("state");c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(0,l=t))),c(t,p,(t=>n(1,r=t))),c(t,m,(t=>n(7,a=t))),c(t,g,(t=>n(6,s=t))),c(t,$,(t=>n(8,u=t))),c(t,v,(t=>n(5,i=t)));let y=[];return t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,d=o?[l,r]:[r,l])},[l,r,o,d,y,i,s,a,u,f,h,p,m,g,$,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}let Gr=class extends ft{constructor(t){super(),dt(this,t,Wr,Or,i,{},null,[-1,-1])}};function qr(t,e,n){let l,r,o,{resources:i,_resBgColor:s,_resTxtColor:a}=R("state");return c(t,i,(t=>n(3,l=t))),c(t,s,(t=>n(5,o=t))),c(t,a,(t=>n(4,r=t))),m(s,o=t=>{let e=l.find((e=>t.resourceIds.includes(e.id)));return e?.eventBackgroundColor},o),m(a,r=t=>{let e=l.find((e=>t.resourceIds.includes(e.id)));return e?.eventTextColor},r),[i,s,a]}let Yr=class extends ft{constructor(t){super(),dt(this,t,qr,null,i,{})}};var Xr={createOptions(t){t.datesAboveResources=!1,t.filterResourcesWithEvents=!1,t.buttonText.resourceTimeGridDay="resources",t.buttonText.resourceTimeGridWeek="resources",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:be,component:Gr,duration:{days:1},theme:Te("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:ke,component:Gr,duration:{weeks:1},theme:Te("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,Yr])),t._viewResources=function(t){return gt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,l,r]=t,o=e;return n&&(o=e.filter((t=>{for(let e of l)if("background"!==e.display&&e.resourceIds.includes(t.id)&&e.start<r.end&&e.end>r.start)return!0;return!1}))),o.length||(o=pr([{}])),o}))}(t)}};function Vr(e){let n,l,r,i;return{c(){n=k("span")},m(t,o){y(t,n,o),e[7](n),r||(i=g(l=vt.call(null,n,e[1])),r=!0)},p(t,e){let[n]=e;l&&o(l.update)&&2&n&&l.update.call(null,t[1])},i:t,o:t,d(t){t&&w(n),e[7](null),r=!1,i()}}}function Jr(t,e,n){let l,r,i,s,{resource:a}=e,{date:u}=e,{resourceLabelContent:d,resourceLabelDidMount:f}=R("state");return c(t,d,(t=>n(6,r=t))),c(t,f,(t=>n(8,l=t))),N((()=>{o(l)&&l({resource:a,date:u?St(u):void 0,el:i})})),t.$$set=t=>{"resource"in t&&n(4,a=t.resource),"date"in t&&n(5,u=t.date)},t.$$.update=()=>{112&t.$$.dirty&&n(1,s=r?o(r)?r({resource:a,date:u?St(u):void 0}):r:a.title)},[i,s,d,f,a,u,r,function(t){I[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class Kr extends ft{constructor(t){super(),dt(this,t,Jr,Vr,i,{resource:4,date:5})}}function Qr(t,e,n){const l=t.slice();return l[12]=e[n],l}function Zr(t){let e,n,l,r,o;return n=new Kr({props:{resource:t[12]}}),{c(){e=k("div"),at(n.$$.fragment),l=_(),E(e,"class",r=t[1].resource),M(e,"flex-basis",Wt(t[4].get(t[12])??0,34)+"px"),E(e,"role","rowheader")},m(t,r){y(t,e,r),ct(n,e,null),v(e,l),o=!0},p(t,l){const i={};8&l&&(i.resource=t[12]),n.$set(i),(!o||2&l&&r!==(r=t[1].resource))&&E(e,"class",r),(!o||24&l)&&M(e,"flex-basis",Wt(t[4].get(t[12])??0,34)+"px")},i(t){o||(lt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&w(e),ut(n)}}}function to(t){let e,n,l,r,o,i,s,a,c=ot(t[3]),u=[];for(let e=0;e<c.length;e+=1)u[e]=Zr(Qr(t,c,e));const d=t=>rt(u[t],1,1,(()=>{u[t]=null}));return{c(){e=k("div"),n=k("div"),r=_(),o=k("div");for(let t=0;t<u.length;t+=1)u[t].c();E(n,"class",l=t[1].sidebarTitle),M(n,"flex-basis",t[0]+"px"),E(o,"class",i=t[1].content),E(e,"class",s=t[1].sidebar)},m(l,i){y(l,e,i),v(e,n),v(e,r),v(e,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);t[11](o),a=!0},p(t,r){let[f]=r;if((!a||2&f&&l!==(l=t[1].sidebarTitle))&&E(n,"class",l),(!a||1&f)&&M(n,"flex-basis",t[0]+"px"),26&f){let e;for(c=ot(t[3]),e=0;e<c.length;e+=1){const n=Qr(t,c,e);u[e]?(u[e].p(n,f),lt(u[e],1)):(u[e]=Zr(n),u[e].c(),lt(u[e],1),u[e].m(o,null))}for(et(),e=c.length;e<u.length;e+=1)d(e);nt()}(!a||2&f&&i!==(i=t[1].content))&&E(o,"class",i),(!a||2&f&&s!==(s=t[1].sidebar))&&E(e,"class",s)},i(t){if(!a){for(let t=0;t<c.length;t+=1)lt(u[t]);a=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)rt(u[t]);a=!1},d(n){n&&w(e),b(u,n),t[11](null)}}}function eo(t,e,n){let l,r,o,i,s,{_viewResources:a,_headerEl:u,_resHs:d,_sidebarEl:f,theme:h}=R("state");c(t,a,(t=>n(3,i=t))),c(t,u,(t=>n(10,l=t))),c(t,d,(t=>n(4,s=t))),c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(1,r=t)));let p=0;return t.$$.update=()=>{1024&t.$$.dirty&&l&&n(0,p=l.clientHeight)},[p,r,o,i,s,a,u,d,f,h,l,function(t){I[t?"unshift":"push"]((()=>{o=t,f.set(o)}))}]}class no extends ft{constructor(t){super(),dt(this,t,eo,to,i,{})}}function lo(t,e,n){const l=t.slice();return l[11]=e[n],l}function ro(t,e,n){const l=t.slice();return l[14]=e[n],l}function oo(t){let e,n,l,r,i,s,a,c,u;return{c(){e=k("div"),n=k("time"),i=_(),E(n,"datetime",l=t[14][0]),E(e,"class",s=t[0].time),E(e,"aria-label",a=t[14][3]),E(e,"role","columnheader")},m(l,o){y(l,e,o),v(e,n),v(e,i),c||(u=g(r=vt.call(null,n,t[14][1])),c=!0)},p(i,c){t=i,20&c&&l!==(l=t[14][0])&&E(n,"datetime",l),r&&o(r.update)&&20&c&&r.update.call(null,t[14][1]),1&c&&s!==(s=t[0].time)&&E(e,"class",s),20&c&&a!==(a=t[14][3])&&E(e,"aria-label",a)},d(t){t&&w(e),c=!1,u()}}}function io(t){let e,n,l,r,i,s,a,c,u,d,f,h,p,m=ot(t[4][t[11].getTime()]),$=[];for(let e=0;e<m.length;e+=1)$[e]=oo(ro(t,m,e));return{c(){e=k("div"),n=k("div"),l=k("time"),a=_(),c=k("div");for(let t=0;t<$.length;t+=1)$[t].c();d=_(),E(l,"datetime",r=Mt(t[11],10)),E(n,"class",s=t[0].dayHead),E(c,"class",u=t[0].times),E(e,"class",f=t[0].day+" "+t[0].weekdays?.[t[11].getUTCDay()])},m(r,o){y(r,e,o),v(e,n),v(n,l),v(e,a),v(e,c);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(c,null);v(e,d),h||(p=g(i=vt.call(null,l,t[3].format(t[11]))),h=!0)},p(a,d){if(t=a,4&d&&r!==(r=Mt(t[11],10))&&E(l,"datetime",r),i&&o(i.update)&&12&d&&i.update.call(null,t[3].format(t[11])),1&d&&s!==(s=t[0].dayHead)&&E(n,"class",s),21&d){let e;for(m=ot(t[4][t[11].getTime()]),e=0;e<m.length;e+=1){const n=ro(t,m,e);$[e]?$[e].p(n,d):($[e]=oo(n),$[e].c(),$[e].m(c,null))}for(;e<$.length;e+=1)$[e].d(1);$.length=m.length}1&d&&u!==(u=t[0].times)&&E(c,"class",u),5&d&&f!==(f=t[0].day+" "+t[0].weekdays?.[t[11].getUTCDay()])&&E(e,"class",f)},d(t){t&&w(e),b($,t),h=!1,p()}}}function so(e){let n,l,r,o,i,s,a,c=ot(e[2]),u=[];for(let t=0;t<c.length;t+=1)u[t]=io(lo(e,c,t));return{c(){n=k("div"),l=k("div");for(let t=0;t<u.length;t+=1)u[t].c();o=_(),i=k("div"),E(l,"class",r=e[0].days),E(l,"role","row"),E(i,"class",s=e[0].hiddenScroll),E(n,"class",a=e[0].header)},m(t,r){y(t,n,r),v(n,l);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);v(n,o),v(n,i),e[10](n)},p(t,e){let[o]=e;if(29&o){let e;for(c=ot(t[2]),e=0;e<c.length;e+=1){const n=lo(t,c,e);u[e]?u[e].p(n,o):(u[e]=io(n),u[e].c(),u[e].m(l,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&r!==(r=t[0].days)&&E(l,"class",r),1&o&&s!==(s=t[0].hiddenScroll)&&E(i,"class",s),1&o&&a!==(a=t[0].header)&&E(n,"class",a)},i:t,o:t,d(t){t&&w(n),b(u,t),e[10](null)}}}function ao(t,e,n){let l,r,o,i,s,{_headerEl:a,_intlDayHeader:u,_dayTimes:d,_viewDates:f,theme:h}=R("state");return c(t,a,(t=>n(1,r=t))),c(t,u,(t=>n(3,i=t))),c(t,d,(t=>n(4,s=t))),c(t,f,(t=>n(2,o=t))),c(t,h,(t=>n(0,l=t))),[l,r,o,i,s,a,u,d,f,h,function(t){I[t?"unshift":"push"]((()=>{r=t,a.set(r)}))}]}class co extends ft{constructor(t){super(),dt(this,t,ao,so,i,{})}}function uo(t){let e,n,l,i,s,a,c,u,d,f,h;var p=t[10].resizer;function m(t,e){return{props:{event:t[0]}}}return p&&(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[10],"x"))&&t[33](t[10],"x").apply(this,arguments)}))),{c(){e=k("article"),n=k("div"),s=_(),a&&at(a.$$.fragment),E(n,"class",l=t[2].eventBody),E(e,"class",t[4]),E(e,"style",t[5]),E(e,"role",c=t[7]?"button":void 0),E(e,"tabindex",u=t[7]?0:void 0)},m(l,r){y(l,e,r),v(e,n),v(e,s),a&&ct(a,e,null),t[56](e),d=!0,f||(h=[g(i=vt.call(null,n,t[6])),T(e,"click",(function(){o(t[7])&&t[7].apply(this,arguments)})),T(e,"keydown",(function(){o(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),T(e,"mouseenter",(function(){o(t[32](t[8],t[1]))&&t[32](t[8],t[1]).apply(this,arguments)})),T(e,"mouseleave",(function(){o(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),T(e,"pointerdown",(function(){o(!ye(t[1])&&!ve(t[1])&&t[33](t[10]))&&(!ye(t[1])&&!ve(t[1])&&t[33](t[10])).apply(this,arguments)}))],f=!0)},p(r,s){if(t=r,(!d||4&s[0]&&l!==(l=t[2].eventBody))&&E(n,"class",l),i&&o(i.update)&&64&s[0]&&i.update.call(null,t[6]),1024&s[0]&&p!==(p=t[10].resizer)){if(a){et();const t=a;rt(t.$$.fragment,1,0,(()=>{ut(t,1)})),nt()}p?(a=U(p,m(t)),a.$on("pointerdown",(function(){o(t[33](t[10],"x"))&&t[33](t[10],"x").apply(this,arguments)})),at(a.$$.fragment),lt(a.$$.fragment,1),ct(a,e,null)):a=null}else if(p){const e={};1&s[0]&&(e.event=t[0]),a.$set(e)}(!d||16&s[0])&&E(e,"class",t[4]),(!d||32&s[0])&&E(e,"style",t[5]),(!d||128&s[0]&&c!==(c=t[7]?"button":void 0))&&E(e,"role",c),(!d||128&s[0]&&u!==(u=t[7]?0:void 0))&&E(e,"tabindex",u)},i(t){d||(a&&lt(a.$$.fragment,t),d=!0)},o(t){a&&rt(a.$$.fragment,t),d=!1},d(n){n&&w(e),a&&ut(a),t[56](null),f=!1,r(h)}}}function fo(t,e,n){let l,r,i,s,a,u,d,f,h,p,m,g,$,v,y,w,b,k,x,_,C,T,D,E,S,M,U,L,H,{date:B}=e,{chunk:F}=e,{dayChunks:P=[]}=e,{longChunks:z={}}=e,{resource:j}=e,{displayEventEnd:O,eventAllUpdated:W,eventBackgroundColor:G,eventTextColor:q,eventColor:Y,eventContent:X,eventClick:V,eventDidMount:J,eventClassNames:K,eventMouseEnter:Q,eventMouseLeave:Z,slotDuration:tt,slotWidth:et,theme:nt,_view:lt,_intlEventTime:rt,_interaction:ot,_iClasses:it,_resBgColor:st,_resTxtColor:at,_dayTimeLimits:ct,_tasks:ut}=R("state");c(t,O,(t=>n(45,f=t))),c(t,W,(t=>n(58,i=t))),c(t,G,(t=>n(51,v=t))),c(t,q,(t=>n(48,m=t))),c(t,Y,(t=>n(50,$=t))),c(t,X,(t=>n(44,d=t))),c(t,V,(t=>n(41,l=t))),c(t,J,(t=>n(59,s=t))),c(t,K,(t=>n(46,h=t))),c(t,Q,(t=>n(8,x=t))),c(t,Z,(t=>n(9,_=t))),c(t,tt,(t=>n(55,k=t))),c(t,et,(t=>n(53,w=t))),c(t,nt,(t=>n(2,u=t))),c(t,lt,(t=>n(42,r=t))),c(t,rt,(t=>n(43,a=t))),c(t,ot,(t=>n(10,C=t))),c(t,it,(t=>n(47,p=t))),c(t,st,(t=>n(52,y=t))),c(t,at,(t=>n(49,g=t))),c(t,ct,(t=>n(54,b=t)));let dt=0;function ft(t,e){return!ve(e)&&o(t)?e=>t({event:de(D),el:T,jsEvent:e,view:te(r)}):void 0}return N((()=>{o(s)&&s({event:de(D),timeText:L,el:T,view:te(r)})})),A((()=>{o(i)&&!ve(E)&&Rt((()=>i({view:te(r)})),"eau",ut)})),t.$$set=t=>{"date"in t&&n(34,B=t.date),"chunk"in t&&n(35,F=t.chunk),"dayChunks"in t&&n(36,P=t.dayChunks),"longChunks"in t&&n(37,z=t.longChunks),"resource"in t&&n(38,j=t.resource)},t.$$.update=()=>{if(16&t.$$.dirty[1]&&n(0,D=F.event),39&t.$$.dirty[0]|33524376&t.$$.dirty[1]){n(1,E=D.display);let t=Bt(k),e=(F.start-B)/1e3,l=(F.end-B)/1e3;e-=Bt(b[B.getTime()]?.min),e<0&&(e=0);let o=0;for(let t=0;t<F.days;++t){let e=b[F.dates[t].getTime()],n=Bt(e?.min),r=Bt(e?.max,wt),i=wt*t,s=i+wt;s>l&&(s=l),s>i+r&&(o+=s-i-r);let a=l-i;a>n&&(a=n),o+=a}l-=o;let i=e/t*w,s=(l-e)/t*w,a=D.backgroundColor||y(D)||v||$,c=D.textColor||g(D)||m,d=dt;if(D._margin){let[t,e]=D._margin;j===e&&(d=t)}n(5,M=`left:${i}px;width:${s}px;margin-top:${d}px;`),a&&n(5,M+=`background-color:${a};`),c&&n(5,M+=`color:${c};`),n(4,S=[ye(E)?u.bgEvent:u.event,...p([],D),...ue(h,D,r)].join(" "))}4&t.$$.dirty[0]|30736&t.$$.dirty[1]&&n(6,[L,U]=ae(F,f,d,u,a,r),U),2&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(7,H=!ye(E)&&ft(l,E))},[D,E,u,T,S,M,U,H,x,_,C,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,st,at,ct,ft,function(t,e){return t.action?n=>t.action.drag(D,n,e,null,[dt,j]):void 0},B,F,P,z,j,function(){if(!T)return 0;let t=Xt(T);return n(40,dt=function(t,e,n,l){t.top=0,t.bottom=l,e.sort(((t,e)=>(t.top??0)-(e.top??0)||t.start-e.start||e.event.allDay-t.event.allDay));let r=1;for(let n of e)if(n!==t&&t.start<n.end&&t.end>n.start&&t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;r+=e,t.top+=e,t.bottom+=e}let o=t.date.getTime();if(n[o]){n[o].sorted||(n[o].chunks.sort(((t,e)=>t.top-e.top)),n[o].sorted=!0);for(let e of n[o].chunks)if(t.start<e.end&&t.end>e.start&&t.top<e.bottom&&t.bottom>e.top){let n=e.bottom-t.top+1;r+=n,t.top+=n,t.bottom+=n}}return r}(F,P,z,t)),dt+t},dt,l,r,a,d,f,h,p,m,g,$,v,y,w,b,k,function(t){I[t?"unshift":"push"]((()=>{T=t,n(3,T)}))}]}class ho extends ft{constructor(t){super(),dt(this,t,fo,uo,i,{date:34,chunk:35,dayChunks:36,longChunks:37,resource:38,reposition:39},null,[-1,-1])}get reposition(){return this.$$.ctx[39]}}function po(t,e,n){const l=t.slice();return l[32]=e[n],l[33]=e,l[34]=n,l}function mo(t,e,n){const l=t.slice();return l[32]=e[n],l}function go(t,e){let n,l,r;return l=new ho({props:{date:e[0],chunk:e[32]}}),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){e=t;const r={};1&n[0]&&(r.date=e[0]),64&n[0]&&(r.chunk=e[32]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),ut(l,t)}}}function $o(t){let e,n;return e=new ho({props:{date:t[0],chunk:t[3][1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),8&n[0]&&(l.chunk=t[3][1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function vo(t,e){let n,l,r,o=e[34];const i=()=>e[28](l,o),s=()=>e[28](null,o);let a={date:e[0],chunk:e[32],dayChunks:e[5],longChunks:e[2],resource:e[1]};return l=new ho({props:a}),i(),{key:t,first:null,c(){n=C(),at(l.$$.fragment),this.first=n},m(t,e){y(t,n,e),ct(l,t,e),r=!0},p(t,n){o!==(e=t)[34]&&(s(),o=e[34],i());const r={};1&n[0]&&(r.date=e[0]),32&n[0]&&(r.chunk=e[32]),32&n[0]&&(r.dayChunks=e[5]),4&n[0]&&(r.longChunks=e[2]),2&n[0]&&(r.resource=e[1]),l.$set(r)},i(t){r||(lt(l.$$.fragment,t),r=!0)},o(t){rt(l.$$.fragment,t),r=!1},d(t){t&&w(n),s(),ut(l,t)}}}function yo(t){let e,n;return e=new ho({props:{date:t[0],chunk:t[3][0],resource:t[1]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};1&n[0]&&(l.date=t[0]),8&n[0]&&(l.chunk=t[3][0]),2&n[0]&&(l.resource=t[1]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function wo(t){let e,n,l,i,s,a,c,u,d,f,h=[],p=new Map,m=t[3][1]&&Ut(t[3][1].date,t[0]),g=[],$=new Map,b=t[3][0]&&Ut(t[3][0].date,t[0]),x=ot(t[6]);const C=t=>t[32].event;for(let e=0;e<x.length;e+=1){let n=mo(t,x,e),l=C(n);p.set(l,h[e]=go(l,n))}let D=m&&$o(t),S=ot(t[5]);const U=t=>t[32].event;for(let e=0;e<S.length;e+=1){let n=po(t,S,e),l=U(n);$.set(l,g[e]=vo(l,n))}let L=b&&yo(t);return{c(){e=k("div"),n=k("div");for(let t=0;t<h.length;t+=1)h[t].c();l=_(),D&&D.c(),i=_();for(let t=0;t<g.length;t+=1)g[t].c();s=_(),L&&L.c(),E(n,"class",a=t[12].events),E(e,"class",c=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[12].today:"")+(t[9]?" "+t[12].highlight:"")),M(e,"flex-grow",jt((Bt(t[7].max)-Bt(t[7].min))/Bt(t[11]))),E(e,"role","cell")},m(r,a){y(r,e,a),v(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);v(n,l),D&&D.m(n,null),v(n,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(n,null);v(n,s),L&&L.m(n,null),t[29](e),u=!0,d||(f=[T(e,"pointerleave",(function(){o(t[13].pointer?.leave)&&t[13].pointer?.leave.apply(this,arguments)})),T(e,"pointerdown",(function(){o(t[13].action?.select)&&t[13].action?.select.apply(this,arguments)}))],d=!0)},p(r,o){t=r,65&o[0]&&(x=ot(t[6]),et(),h=st(h,o,C,0,t,x,p,n,it,go,l,mo),nt()),9&o[0]&&(m=t[3][1]&&Ut(t[3][1].date,t[0])),m?D?(D.p(t,o),9&o[0]&&lt(D,1)):(D=$o(t),D.c(),lt(D,1),D.m(n,i)):D&&(et(),rt(D,1,1,(()=>{D=null})),nt()),1063&o[0]&&(S=ot(t[5]),et(),g=st(g,o,U,0,t,S,$,n,it,vo,s,po),nt()),9&o[0]&&(b=t[3][0]&&Ut(t[3][0].date,t[0])),b?L?(L.p(t,o),9&o[0]&&lt(L,1)):(L=yo(t),L.c(),lt(L,1),L.m(n,null)):L&&(et(),rt(L,1,1,(()=>{L=null})),nt()),(!u||4096&o[0]&&a!==(a=t[12].events))&&E(n,"class",a),(!u||4865&o[0]&&c!==(c=t[12].day+" "+t[12].weekdays?.[t[0].getUTCDay()]+(t[8]?" "+t[12].today:"")+(t[9]?" "+t[12].highlight:"")))&&E(e,"class",c),(!u||2176&o[0])&&M(e,"flex-grow",jt((Bt(t[7].max)-Bt(t[7].min))/Bt(t[11])))},i(t){if(!u){for(let t=0;t<x.length;t+=1)lt(h[t]);lt(D);for(let t=0;t<S.length;t+=1)lt(g[t]);lt(L),u=!0}},o(t){for(let t=0;t<h.length;t+=1)rt(h[t]);rt(D);for(let t=0;t<g.length;t+=1)rt(g[t]);rt(L),u=!1},d(n){n&&w(e);for(let t=0;t<h.length;t+=1)h[t].d();D&&D.d();for(let t=0;t<g.length;t+=1)g[t].d();L&&L.d(),t[29](null),d=!1,r(f)}}}function bo(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,m,{date:g}=e,{resource:$}=e,{chunks:v}=e,{longChunks:y}=e,{iChunks:w=[]}=e,{highlightedDates:b,slotDuration:k,slotWidth:x,theme:_,_interaction:C,_today:T,_dayTimeLimits:D}=R("state");c(t,b,(t=>n(25,o=t))),c(t,k,(t=>n(11,r=t))),c(t,x,(t=>n(30,l=t))),c(t,_,(t=>n(12,a=t))),c(t,C,(t=>n(13,u=t))),c(t,T,(t=>n(26,i=t))),c(t,D,(t=>n(27,s=t)));let E,S,M,U=[];function L(t,e){return t-=qt(d).left,{allDay:!1,date:_t(_t(xt(g),E.min),r,It(t/l)),resource:$,dayEl:d}}return t.$$set=t=>{"date"in t&&n(0,g=t.date),"resource"in t&&n(1,$=t.resource),"chunks"in t&&n(21,v=t.chunks),"longChunks"in t&&n(2,y=t.longChunks),"iChunks"in t&&n(3,w=t.iChunks)},t.$$.update=()=>{if(134217857&t.$$.dirty[0]&&(n(7,E=s[g.getTime()]),n(23,S=_t(xt(g),E.min)),n(24,M=_t(xt(g),E.max))),27263073&t.$$.dirty[0]){n(5,f=[]),n(6,h=[]);for(let t of v)if(Ut(t.date,g)&&(t.start<M&&t.end>S||t.event.allDay))if("background"===t.event.display)h.push(t);else f.push(t)}67108865&t.$$.dirty[0]&&n(8,p=Ut(g,i)),33554433&t.$$.dirty[0]&&n(9,m=o.some((t=>Ut(t,g)))),16&t.$$.dirty[0]&&d&&Jt(d,L)},[g,$,y,w,d,f,h,E,p,m,U,r,a,u,b,k,x,_,C,T,D,v,function(){return Wt(...ge(U,f))},S,M,o,i,s,function(t,e){I[t?"unshift":"push"]((()=>{U[e]=t,n(10,U)}))},function(t){I[t?"unshift":"push"]((()=>{d=t,n(4,d)}))}]}class ko extends ft{constructor(t){super(),dt(this,t,bo,wo,i,{date:0,resource:1,chunks:21,longChunks:2,iChunks:3,reposition:22},null,[-1,-1])}get reposition(){return this.$$.ctx[22]}}function xo(t,e,n){const l=t.slice();return l[24]=e[n],l[25]=e,l[26]=n,l}function _o(t){let e,n,l=t[26];const r=()=>t[20](e,l),o=()=>t[20](null,l);let i={date:t[24],resource:t[0],chunks:t[1],longChunks:t[3],iChunks:t[4]};return e=new ko({props:i}),r(),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){l!==t[26]&&(o(),l=t[26],r());const i={};4&n&&(i.date=t[24]),1&n&&(i.resource=t[0]),2&n&&(i.chunks=t[1]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),e.$set(i)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ut(e,t)}}}function Co(t){let e,n,l,r,o,i=ot(t[2]),s=[];for(let e=0;e<i.length;e+=1)s[e]=_o(xo(t,i,e));const a=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[7].days),M(e,"flex-basis",Wt(t[6],34)+"px"),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);l=!0,r||(o=T(window,"resize",t[14]),r=!0)},p(t,r){let[o]=r;if(63&o){let n;for(i=ot(t[2]),n=0;n<i.length;n+=1){const l=xo(t,i,n);s[n]?(s[n].p(l,o),lt(s[n],1)):(s[n]=_o(l),s[n].c(),lt(s[n],1),s[n].m(e,null))}for(et(),n=i.length;n<s.length;n+=1)a(n);nt()}(!l||128&o&&n!==(n=t[7].days))&&E(e,"class",n),(!l||64&o)&&M(e,"flex-basis",Wt(t[6],34)+"px")},i(t){if(!l){for(let t=0;t<i.length;t+=1)lt(s[t]);l=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);l=!1},d(t){t&&w(e),b(s,t),r=!1,o()}}}function To(t,e,n){let l,r,o,i,s,a,{resource:u}=e,{_viewDates:d,_events:f,_iEvents:h,_queue2:p,_resHs:m,hiddenDays:g,theme:$}=R("state");c(t,d,(t=>n(2,s=t))),c(t,f,(t=>n(19,o=t))),c(t,h,(t=>n(18,r=t))),c(t,m,(t=>n(21,i=t))),c(t,g,(t=>n(17,l=t))),c(t,$,(t=>n(7,a=t)));let v,y,w,b,k=[],x=[],_=0,C={};function T(){At((()=>{n(6,_=jt(Wt(...ge(x,s)))+10),i.set(u,_),m.set(i)}),C,p)}return t.$$set=t=>{"resource"in t&&n(0,u=t.resource)},t.$$.update=()=>{if(4&t.$$.dirty&&(n(15,w=s[0]),n(16,b=Tt(xt(s[s.length-1])))),753667&t.$$.dirty){n(1,v=[]);for(let t of o)if($e(t,w,b,u)){let e=ie(t,w,b);v.push(e)}n(3,y=pe(v,l)),T()}491521&t.$$.dirty&&n(4,k=r.map((t=>{let e;return t&&$e(t,w,b,u)?(e=ie(t,w,b),pe([e],l)):e=null,e})))},[u,v,s,y,k,x,_,a,d,f,h,m,g,$,T,w,b,l,r,o,function(t,e){I[t?"unshift":"push"]((()=>{x[e]=t,n(5,x)}))}]}class Do extends ft{constructor(t){super(),dt(this,t,To,Co,i,{resource:0})}}function Eo(t,e,n){const l=t.slice();return l[26]=e[n],l}function So(t,e,n){const l=t.slice();return l[29]=e[n],l}function Mo(t,e,n){const l=t.slice();return l[32]=e[n],l}function Uo(t){let e,n;return{c(){e=k("div"),E(e,"class",n=t[2].line)},m(t,n){y(t,e,n)},p(t,l){4&l[0]&&n!==(n=t[2].line)&&E(e,"class",n)},d(t){t&&w(e)}}}function Lo(t){let e,n=ot(t[3][t[29].getTime()]),l=[];for(let e=0;e<n.length;e+=1)l[e]=Uo(Mo(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);y(t,e,n)},p(t,r){if(14&r[0]){let o;for(n=ot(t[3][t[29].getTime()]),o=0;o<n.length;o+=1){const i=Mo(t,n,o);l[o]?l[o].p(i,r):(l[o]=Uo(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){t&&w(e),b(l,t)}}}function Ho(t){let e,n;return e=new Do({props:{resource:t[26]}}),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){const l={};16&n[0]&&(l.resource=t[26]),e.$set(l)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ut(e,t)}}}function Bo(t){let e,n,l,r,o,i,s,a,c,u,d=ot(t[1]),f=[];for(let e=0;e<d.length;e+=1)f[e]=Lo(So(t,d,e));let h=ot(t[4]),p=[];for(let e=0;e<h.length;e+=1)p[e]=Ho(Eo(t,h,e));const m=t=>rt(p[t],1,1,(()=>{p[t]=null}));return{c(){e=k("div"),n=k("div"),l=k("div");for(let t=0;t<f.length;t+=1)f[t].c();o=_();for(let t=0;t<p.length;t+=1)p[t].c();E(l,"class",r=t[2].lines),E(n,"class",i=t[2].content),E(e,"class",s=t[2].body)},m(r,i){y(r,e,i),v(e,n),v(n,l);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(l,null);v(n,o);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[18](e),a=!0,c||(u=T(e,"scroll",t[16]),c=!0)},p(t,o){if(14&o[0]){let e;for(d=ot(t[1]),e=0;e<d.length;e+=1){const n=So(t,d,e);f[e]?f[e].p(n,o):(f[e]=Lo(n),f[e].c(),f[e].m(l,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=d.length}if((!a||4&o[0]&&r!==(r=t[2].lines))&&E(l,"class",r),16&o[0]){let e;for(h=ot(t[4]),e=0;e<h.length;e+=1){const l=Eo(t,h,e);p[e]?(p[e].p(l,o),lt(p[e],1)):(p[e]=Ho(l),p[e].c(),lt(p[e],1),p[e].m(n,null))}for(et(),e=h.length;e<p.length;e+=1)m(e);nt()}(!a||4&o[0]&&i!==(i=t[2].content))&&E(n,"class",i),(!a||4&o[0]&&s!==(s=t[2].body))&&E(e,"class",s)},i(t){if(!a){for(let t=0;t<h.length;t+=1)lt(p[t]);a=!0}},o(t){p=p.filter(Boolean);for(let t=0;t<p.length;t+=1)rt(p[t]);a=!1},d(n){n&&w(e),b(f,n),b(p,n),t[18](null),c=!1,u()}}}function No(t,e,n){let l,r,o,i,s,a,u,d,f,h,p,g,{_bodyEl:$,_headerEl:v,_sidebarEl:y,_dayTimes:w,_dayTimeLimits:b,_viewResources:k,_viewDates:x,scrollTime:_,slotDuration:C,slotWidth:T,theme:D}=R("state");return c(t,$,(t=>n(22,a=t))),c(t,v,(t=>n(24,d=t))),c(t,y,(t=>n(23,u=t))),c(t,w,(t=>n(3,h=t))),c(t,b,(t=>n(21,s=t))),c(t,k,(t=>n(4,p=t))),c(t,x,(t=>n(1,i=t))),c(t,_,(t=>n(17,o=t))),c(t,C,(t=>n(20,r=t))),c(t,T,(t=>n(19,l=t))),c(t,D,(t=>n(2,f=t))),t.$$.update=()=>{1&t.$$.dirty[0]&&m($,a=g,a),131075&t.$$.dirty[0]&&g&&function(){let t=s[i[0].getTime()];t&&n(0,g.scrollLeft=(Bt(o)-Bt(t.min))/Bt(r)*l,g)}()},[g,i,f,h,p,$,v,y,w,b,k,x,_,C,T,D,function(){m(v,d.scrollLeft=a.scrollLeft,d),m(y,u.scrollTop=a.scrollTop,u)},o,function(t){I[t?"unshift":"push"]((()=>{g=t,n(0,g)}))}]}class Ao extends ft{constructor(t){super(),dt(this,t,No,Bo,i,{},null,[-1,-1])}}function Fo(t){let e,n,l,r,o,i,s,a,c,u;return n=new no({}),o=new co({}),s=new Ao({}),{c(){e=k("div"),at(n.$$.fragment),l=_(),r=k("div"),at(o.$$.fragment),i=_(),at(s.$$.fragment),E(r,"class",a=t[0].main),E(e,"class",c=t[0].container)},m(t,a){y(t,e,a),ct(n,e,null),v(e,l),v(e,r),ct(o,r,null),v(r,i),ct(s,r,null),u=!0},p(t,n){let[l]=n;(!u||1&l&&a!==(a=t[0].main))&&E(r,"class",a),(!u||1&l&&c!==(c=t[0].container))&&E(e,"class",c)},i(t){u||(lt(n.$$.fragment,t),lt(o.$$.fragment,t),lt(s.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(o.$$.fragment,t),rt(s.$$.fragment,t),u=!1},d(t){t&&w(e),ut(n),ut(o),ut(s)}}}function Ro(t,e,n){let l,{theme:r}=R("state");return c(t,r,(t=>n(0,l=t))),[l,r]}class Po extends ft{constructor(t){super(),dt(this,t,Ro,Fo,i,{})}}var zo={createOptions(t){t.buttonText.resourceTimelineDay="timeline",t.buttonText.resourceTimelineWeek="timeline",t.dayHeaderAriaLabelFormat={dateStyle:"long",timeStyle:"short"},t.theme.main="ec-main",t.theme.times="ec-times",t.theme.container="ec-container",t.view="resourceTimelineWeek",t.views.resourceTimelineDay={buttonText:be,component:Po,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotDuration:"01:00",theme:Te("ec-timeline ec-resource-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.resourceTimelineWeek={buttonText:ke,component:Po,displayEventEnd:!1,duration:{weeks:1},slotDuration:"01:00",theme:Te("ec-timeline ec-resource-week-view")}},createStores(t){t._headerEl=mt(void 0),t._dayTimeLimits=function(t){return gt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>{let[e,n,l,r,o]=t,i={};for(let t of r)i[t.getTime()]=Ue(e,n,l,[t],o);return i}))}(t),t._dayTimes=function(t){return gt([t._viewDates,t.slotDuration,t._dayTimeLimits,t._intlSlotLabel,t._intlDayHeaderAL],(t=>{let[e,n,l,r,o]=t,i={};for(let t of e){let e=t.getTime();i[e]=e in l?Me(t,n,l[e],r,o):[]}return i}))}(t),t._resHs=mt(new Map),t._sidebarEl=mt(void 0)}};let Io=!1;function jo(t,e,n){return Wt(e,Ot(n,t))}const{window:Oo}=$;function Wo(e){let n,l;return{c:t,m(t,r){n||(l=[T(Oo,"pointermove",e[33]),T(Oo,"pointerup",e[34]),T(Oo,"pointercancel",e[34]),T(Oo,"scroll",e[0]),T(Oo,"selectstart",qo(e[35])),T(Oo,"contextmenu",(function(){o(qo(e[43]))&&qo(e[43]).apply(this,arguments)})),T(Oo,"touchstart",e[36]),T(Oo,"touchmove",e[42],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,r(l)}}}function Go(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function qo(t){return e=>{t()&&e.preventDefault()}}function Yo(t,e,n){let l,i,s,a,u,d,f,h,p,g,$,v,y,w,b,k,x,_,C,D,E,S,M,U,L,H,B,N,A,F,z,I,j,O,W,G,q,Y,X,V,J,K,Q,Z,tt,et,nt,lt,rt,ot,it,st,at,ct,ut,dt,ft,{_iEvents:ht,_iClass:pt,_events:mt,_view:gt,_dayGrid:$t,_draggable:vt,_bodyEl:yt,dateClick:wt,dragScroll:bt,datesAboveResources:Dt,eventDragMinDistance:Et,eventDragStart:Ut,eventDragStop:Lt,eventDrop:Ht,eventLongPressDelay:Bt,eventResizeStart:Nt,eventResizeStop:At,eventResize:Ft,longPressDelay:Rt,selectable:zt,select:It,selectBackgroundColor:jt,selectLongPressDelay:Gt,selectMinDistance:Xt,slotDuration:Vt,slotHeight:Jt,slotWidth:Kt,unselect:le,unselectAuto:re,unselectCancel:oe,view:ie}=R("state");function se(t){window.getSelection().removeAllRanges(),V=K=t.clientX,J=Q=t.clientY;let e=Zt(K,Q);({allDay:rt,date:G,resource:Y}=Qt(e)(K,Q)),ne(f)?Z=et=N:(Z=Yt(e,Y?4:3),et=Yt(e,Y&&(1===I||B)?2:1)),ce(),"mouse"!==t.pointerType&&n(1,ut=setTimeout((()=>{I&&(j=!0,ae(t))}),(me()?H:L)??U))}function ae(t){if(j||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(K-V,2)+Math.pow(Q-J,2))>=(me()?M:S)){j=!0,$e(t),m(pt,h=ot,h),a[0]||(me()?m(ht,a[0]={id:"{select}",allDay:O.allDay,start:O.start,title:"",display:"preview",extendedProps:{},backgroundColor:u,resourceIds:O.resourceIds},a):function(t,e){o(e)&&e({event:de(O),jsEvent:t,view:te(l)});W=O.display,O.display="preview",m(ht,a[0]=fe(O),a),void 0!==ft&&m(ht,a[0]._margin=ft,a);O.display="ghost",mt.set(s)}(t,pe()?E:D));let e=Zt(jo(K,dt[0],dt[1]),jo(Q,dt[2],dt[3]));if(e){let t;({allDay:t,date:q,resource:X}=Qt(e)(K,Q)),t===rt&&(lt=kt((q-G)/1e3),m(ht,a[0].end=_t(xt(O.end),lt),a),pe()?a[0].end<it&&m(ht,a[0].end=it,a):me()?a[0].end<O.end?(m(ht,a[0].start=Ct(a[0].end,st),a),m(ht,a[0].end=O.end,a)):m(ht,a[0].start=O.start,a):(m(ht,a[0].start=_t(xt(O.start),lt),a),Y&&(m(ht,a[0].resourceIds=O.resourceIds.filter((t=>t!==Y.id)),a),a[0].resourceIds.push(X.id))))}}if(C){let t=2*_,n=x;e=()=>{Z&&(Q<t&&window.scrollBy(0,Wt(-10,(Q-t)/3)),Q<tt.top+t&&(Z.scrollTop+=Wt(-10,(Q-tt.top-t)/3)),Q>window.innerHeight-t&&window.scrollBy(0,Ot(10,(Q-window.innerHeight+t)/3)),Q>tt.bottom-t&&(Z.scrollTop+=Ot(10,(Q-tt.bottom+t)/3)),ne(f)&&(K<tt.left+n&&(Z.scrollLeft+=Wt(-10,(K-tt.left-n)/3)),K>tt.right-n&&(Z.scrollLeft+=Ot(10,(K-tt.right+n)/3))))},Io||(Io=!0,window.requestAnimationFrame((()=>{e(),Io=!1})))}var e}function ce(){tt=qt(Z),nt=qt(et),dt=[Wt(0,nt.left+(ne(f)?1:d?0:8)),Ot(document.documentElement.clientWidth,nt.left+et.clientWidth)-2,Wt(0,tt.top),Ot(document.documentElement.clientHeight,tt.top+Z.clientHeight)-2]}function ue(){m(ht,a[0]=null,a)}function he(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,mt.set(s)}function pe(){return 2===I}function me(){return 3===I}function ge(){return I&&I<4}function $e(t){at&&(at=!1,ue(),o(i)&&i({jsEvent:t,view:te(l)}))}c(t,ht,(t=>n(72,a=t))),c(t,pt,(t=>n(76,h=t))),c(t,mt,(t=>n(71,s=t))),c(t,gt,(t=>n(69,l=t))),c(t,$t,(t=>n(74,d=t))),c(t,vt,(t=>n(99,z=t))),c(t,yt,(t=>n(96,N=t))),c(t,wt,(t=>n(77,p=t))),c(t,bt,(t=>n(87,C=t))),c(t,Dt,(t=>n(95,B=t))),c(t,Et,(t=>n(90,S=t))),c(t,Ut,(t=>n(88,D=t))),c(t,Lt,(t=>n(80,v=t))),c(t,Ht,(t=>n(78,g=t))),c(t,Bt,(t=>n(93,L=t))),c(t,Nt,(t=>n(89,E=t))),c(t,At,(t=>n(81,y=t))),c(t,Ft,(t=>n(79,$=t))),c(t,Rt,(t=>n(92,U=t))),c(t,zt,(t=>n(98,F=t))),c(t,It,(t=>n(82,w=t))),c(t,jt,(t=>n(73,u=t))),c(t,Gt,(t=>n(94,H=t))),c(t,Xt,(t=>n(91,M=t))),c(t,Vt,(t=>n(97,A=t))),c(t,Jt,(t=>n(86,_=t))),c(t,Kt,(t=>n(85,x=t))),c(t,le,(t=>n(70,i=t))),c(t,re,(t=>n(84,k=t))),c(t,oe,(t=>n(83,b=t))),c(t,ie,(t=>n(75,f=t))),gt.subscribe($e);return[function(){ge()&&(ce(),ae())},ut,ht,pt,mt,gt,$t,vt,yt,wt,bt,Dt,Et,Ut,Lt,Ht,Bt,Nt,At,Ft,Rt,zt,It,jt,Gt,Xt,Vt,Jt,Kt,le,re,oe,ie,function(t){ge()&&t.isPrimary&&(K=t.clientX,Q=t.clientY,ae(t))},function(t){if(!at||!k||b&&t.target.closest(b)||$e(t),I&&t.isPrimary){if(j)if(me()){if(at=!0,o(w)){let{start:e,end:n}=de(a[0]);w({start:e,end:n,startStr:Mt(a[0].start),endStr:Mt(a[0].end),allDay:rt,jsEvent:t,view:te(l),resource:Y})}}else{O.display=W;let e=pe()?y:v;o(e)&&e({event:de(O),jsEvent:t,view:te(l)});let n=fe(O);if(he(O,a[0]),ue(),e=pe()?$:g,o(e)){let r,o=O;r=pe()?{endDelta:lt}:{delta:lt,oldResource:Y!==X?Y:void 0,newResource:Y!==X?X:void 0},e(Pt(r,{event:de(O),oldEvent:de(n),jsEvent:t,view:te(l),revert(){he(o,n)}}))}}else if((4===I||me())&&o(p)&&!ct){K=t.clientX,Q=t.clientY;let e=Zt(K,Q);if(e){let{allDay:n,date:r,resource:o}=Qt(e)(K,Q);p({allDay:n,date:St(r),dateStr:Mt(r),dayEl:e,jsEvent:t,view:te(l),resource:o})}}j=!1,I=V=J=K=Q=O=W=G=q=Y=X=lt=rt=m(pt,h=it=st=ft=void 0,h),Z=et=tt=nt=void 0,ut&&(clearTimeout(ut),n(1,ut=void 0))}ct=!1},ge,function(t){if(ge()){let e=t.target,n=[],l=()=>r(n);n.push(T(e,"touchmove",qo((()=>j)))),n.push(T(e,"touchend",l)),n.push(T(e,"touchcancel",l))}},function(t,e,n,l,r){I||(I=Go(e)?n?2:z(t)?1:5:5,ge()&&(O=t,se(e),l&&(G=l),r&&(ft=r),ot=n?"x"==n?"resizingX":"resizingY":"dragging",n&&(it=xt(O.start),rt?(it.setUTCHours(O.end.getUTCHours(),O.end.getUTCMinutes(),O.end.getUTCSeconds(),0),it<O.start&&Tt(it)):_t(it,A)),ae(e)))},function(t){I||(I=Go(t)?F&&!ee(f)?3:4:5,ge()&&(se(t),ot="selecting",st=rt?kt({day:1}):A,O={allDay:rt,start:G,end:_t(xt(G),st),resourceIds:Y?[Y.id]:[]},ae(t)))},function(){I||(I=5)},$e,function(){ct=!0},function(e){P.call(this,t,e)},()=>ut]}class Xo extends ft{constructor(t){super(),dt(this,t,Yo,Wo,i,{drag:37,select:38,noAction:39,handleScroll:0,unselect:40,noClick:41},null,[-1,-1,-1,-1])}get drag(){return this.$$.ctx[37]}get select(){return this.$$.ctx[38]}get noAction(){return this.$$.ctx[39]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[40]}get noClick(){return this.$$.ctx[41]}}function Vo(e){let n,l;return{c:t,m(t,r){n||(l=[T(window,"pointermove",e[3]),T(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,r(l)}}}function Jo(t){return t.isPrimary&&"mouse"===t.pointerType}function Ko(t,e,n){let l,r,{_iEvents:o,slotDuration:i}=R("state");c(t,o,(t=>n(5,l=t))),c(t,i,(t=>n(8,r=t)));let s=0,a=0;function u(){let t=Zt(s,a);if(t){let{date:e,resource:n}=Qt(t)(s,a);l[1]||m(o,l[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent"},l),m(o,l[1].start=e,l),m(o,l[1].end=_t(xt(e),r),l),m(o,l[1].resourceIds=n?[n.id]:[],l)}}function d(){m(o,l[1]=null,l)}return t.$$.update=()=>{32&t.$$.dirty&&l[0]&&d()},[function(){u()},o,i,function(t){Jo(t)&&(s=t.clientX,a=t.clientY,u())},function(t){Jo(t)&&d()},l]}class Qo extends ft{constructor(t){super(),dt(this,t,Ko,Vo,i,{leave:4,handleScroll:0})}get leave(){return this.$$.ctx[4]}get handleScroll(){return this.$$.ctx[0]}}function Zo(t){let e,n,l,r;return{c(){e=k("div"),E(e,"class",n=t[1].resizer)},m(n,o){y(n,e,o),l||(r=T(e,"pointerdown",t[8]),l=!0)},p(t,l){2&l&&n!==(n=t[1].resizer)&&E(e,"class",n)},d(t){t&&w(e),l=!1,r()}}}function ti(e){let n,l=e[0]&&Zo(e);return{c(){l&&l.c(),n=C()},m(t,e){l&&l.m(t,e),y(t,n,e)},p(t,e){let[r]=e;t[0]?l?l.p(t,r):(l=Zo(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:t,o:t,d(t){t&&w(n),l&&l.d(t)}}}function ei(t,e,n){let l,r,o,i,{event:s}=e,{theme:a,eventDurationEditable:u,editable:d}=R("state");return c(t,a,(t=>n(1,o=t))),c(t,u,(t=>n(7,r=t))),c(t,d,(t=>n(6,l=t))),t.$$set=t=>{"event"in t&&n(5,s=t.event)},t.$$.update=()=>{224&t.$$.dirty&&n(0,i=!ye(s.display)&&!ve(s.display)&&((s.durationEditable??r)||(s.editable??l)))},[i,o,a,u,d,s,l,r,function(e){P.call(this,t,e)}]}class ni extends ft{constructor(t){super(),dt(this,t,ei,ti,i,{event:5})}}function li(t){let e,n;return e=new Qo({props:{}}),t[16](e),{c(){at(e.$$.fragment)},m(t,l){ct(e,t,l),n=!0},p(t,n){e.$set({})},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(n){t[16](null),ut(e,n)}}}function ri(t){let e,n,l,r;e=new Xo({props:{}}),t[15](e);let o=t[1]&&li(t);return{c(){at(e.$$.fragment),n=_(),o&&o.c(),l=C()},m(t,i){ct(e,t,i),y(t,n,i),o&&o.m(t,i),y(t,l,i),r=!0},p(t,n){let[r]=n;e.$set({}),t[1]?o?(o.p(t,r),2&r&&lt(o,1)):(o=li(t),o.c(),lt(o,1),o.m(l.parentNode,l)):o&&(et(),rt(o,1,1,(()=>{o=null})),nt())},i(t){r||(lt(e.$$.fragment,t),lt(o),r=!0)},o(t){rt(e.$$.fragment,t),rt(o),r=!1},d(r){r&&(w(n),w(l)),t[15](null),ut(e,r),o&&o.d(r)}}}function oi(t,e,n){let l,r,o,i,s,a,u,d,{theme:f,editable:h,eventStartEditable:p,eventDurationEditable:g,pointer:$,_bodyEl:v,_interaction:y,_iClasses:w,_draggable:b}=R("state");function k(){for(let t of Object.values(l))t?.handleScroll?.()}return c(t,f,(t=>n(11,o=t))),c(t,h,(t=>n(13,a=t))),c(t,p,(t=>n(14,u=t))),c(t,$,(t=>n(1,d=t))),c(t,v,(t=>n(10,r=t))),c(t,y,(t=>n(0,l=t))),c(t,w,(t=>n(17,s=t))),c(t,b,(t=>n(12,i=t))),m(y,l.resizer=ni,l),t.$$.update=()=>{24576&t.$$.dirty&&m(b,i=t=>(t.startEditable??u)||(t.editable??a),i),6144&t.$$.dirty&&m(w,s=(t,e)=>{let{display:n}=e;return ve(n)?[o[n]]:!ye(n)&&i(e)?[o.draggable]:[]},s),1024&t.$$.dirty&&r&&T(r,"scroll",k)},[l,d,f,h,p,$,v,y,w,b,r,o,i,a,u,function(t){I[t?"unshift":"push"]((()=>{l.action=t,y.set(l)}))},function(t){I[t?"unshift":"push"]((()=>{l.pointer=t,y.set(l)}))}]}class ii extends ft{constructor(t){super(),dt(this,t,oi,ri,i,{})}}var si={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=mt(t),e._auxiliary.update((t=>[...t,ii]))}};return class extends dn{constructor(t,e){super({target:t,props:{plugins:[qn,dl,hr,Xr,zo,si],options:e}})}get view(){return this.getView()}}}();
6
6
  //# sourceMappingURL=event-calendar.min.js.map