@event-calendar/build 5.2.3 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * EventCalendar v5.2.3
2
+ * EventCalendar v5.3.0
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(Jn){"use strict";var Ci=Array.isArray,ko=Array.prototype.indexOf,Qn=Array.from,Di=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,Co=Object.getOwnPropertyDescriptors,Do=Object.prototype,Eo=Array.prototype,Ei=Object.getPrototypeOf,Ti=Object.isExtensible;const Gt=()=>{};function To(e){for(var t=0;t<e.length;t++)e[t]()}function xi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function xo(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const We=2,Er=4,jn=8,Si=1<<24,Pt=16,Mt=32,en=64,$n=128,yt=512,Ve=1024,st=2048,Ct=4096,ot=8192,At=16384,Tr=32768,Yt=65536,Ri=1<<17,Ii=1<<18,_n=1<<19,Li=1<<20,Ot=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,Ln=Symbol("$state"),So=Symbol("legacy props"),Ro=Symbol(""),yn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Pi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Io(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Lo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Po(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ao(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Oo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function No(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Fo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ho(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Uo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const zo=1,Vo=2,Mi=4,Bo=8,Go=16,Yo=1,qo=4,Xo=8,Ko=16,Zo=1,Jo=2,Be=Symbol(),Qo="http://www.w3.org/1999/xhtml";function jo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ai(e){return e===this.v}function $o(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Oi(e){return!$o(e,this.v)}let jf=!1,Ge=null;function wn(e){Ge=e}function ee(e){return Fi().get(e)}function Pn(e,t){return Fi().set(e,t),t}function be(e,t=!1,r){Ge={p:Ge,i:!1,c:null,e:null,s:e,x:null,l:null}}function ke(e){var t=Ge,r=t.e;if(r!==null){t.e=null;for(var i of r)ts(i)}return e!==void 0&&(t.x=e),t.i=!0,Ge=t.p,e??{}}function Ni(){return!0}function Fi(e){return Ge===null&&Pi(),Ge.c??=new Map(ea(Ge)||void 0)}function ea(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let nn=[];function Hi(){var e=nn;nn=[],To(e)}function rn(e){if(nn.length===0&&!Mn){var t=nn;queueMicrotask(()=>{t===nn&&Hi()})}nn.push(e)}function ta(){for(;nn.length>0;)Hi()}function Wi(e){var t=Te;if(t===null)return he.f|=qt,e;if((t.f&Tr)===0){if((t.f&$n)===0)throw e;t.b.error(e)}else bn(e,t)}function bn(e,t){for(;t!==null;){if((t.f&$n)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const er=new Set;let Le=null,ht=null,vt=[],tr=null,Rr=!1,Mn=!1;class Dt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#i=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){vt=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[]};for(const i of t)this.#a(i,r);this.is_fork||this.#f(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects)):(Le=null,zi(r.render_effects),zi(r.effects),this.#s?.resolve()),ht=null}#a(t,r){t.f^=Ve;for(var i=t.first;i!==null;){var s=i.f,o=(s&(Mt|en))!==0,l=o&&(s&Ve)!==0,u=l||(s&ot)!==0||this.skipped_effects.has(i);if((i.f&$n)!==0&&i.b?.is_pending()&&(r={parent:r,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){o?i.f^=Ve:(s&Er)!==0?r.effects.push(i):Hn(i)&&((i.f&Pt)!==0&&this.#i.add(i),Wn(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),r=r.parent),i=d.next,d=d.parent}}#l(t){for(const r of t)(r.f&st)!==0?this.#i.add(r):(r.f&Ct)!==0&&this.#o.add(r),this.#u(r.deps),qe(r,Ve)}#u(t){if(t!==null)for(const r of t)(r.f&We)===0||(r.f&tn)===0||(r.f^=tn,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&qt)===0&&(this.current.set(t,t.v),ht?.set(t,t.v))}activate(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,ht=null)}flush(){if(this.activate(),vt.length>0){if(Ui(),Le!==null&&Le!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#f(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#d()}#d(){if(er.size>1){this.previous.clear();var t=ht,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of er){if(o===this){r=!1;continue}const l=[];for(const[f,d]of this.current){if(o.current.has(f))if(r&&d!==o.current.get(f))o.current.set(f,d);else continue;l.push(f)}if(l.length===0)continue;const u=[...o.current.keys()].filter(f=>!this.current.has(f));if(u.length>0){var s=vt;vt=[];const f=new Set,d=new Map;for(const c of l)Vi(c,u,f,d);if(vt.length>0){Le=o,o.apply();for(const c of vt)o.#a(c,i);o.deactivate()}vt=s}}Le=null,ht=t}this.committed=!0,er.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)this.#o.delete(t),qe(t,st),sn(t);for(const t of this.#o)qe(t,Ct),sn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=xi()).promise}static ensure(){if(Le===null){const t=Le=new Dt;er.add(Le),Mn||Dt.enqueue(()=>{Le===t&&t.flush()})}return Le}static enqueue(t){rn(t)}apply(){}}function na(e){var t=Mn;Mn=!0;try{for(var r;;){if(ta(),vt.length===0&&(Le?.flush(),vt.length===0))return tr=null,r;Ui()}}finally{Mn=t}}function Ui(){var e=ln;Rr=!0;var t=null;try{var r=0;for(sr(!0);vt.length>0;){var i=Dt.ensure();if(r++>1e3){var s,o;ra()}i.process(vt),Xt.clear()}}finally{Rr=!1,sr(e),tr=null}}function ra(){try{Ao()}catch(e){bn(e,tr)}}let Nt=null;function zi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(At|ot))===0&&Hn(i)&&(Nt=new Set,Wn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?ss(i):i.fn=null),Nt?.size>0)){Xt.clear();for(const s of Nt){if((s.f&(At|ot))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Nt.has(l)&&(Nt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(At|ot))===0&&Wn(f)}}Nt.clear()}}Nt=null}}function Vi(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&We)!==0?Vi(s,t,r,i):(o&(Sr|Pt))!==0&&(o&st)===0&&Bi(s,t,i)&&(qe(s,st),sn(s))}}function Bi(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&We)!==0&&Bi(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function sn(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Rr&&t===Te&&(r&Pt)!==0&&(r&Ii)===0)return;if((r&(en|Mt))!==0){if((r&Ve)===0)return;t.f^=Ve}}vt.push(t)}function ia(e){let t=0,r=Kt(0),i;return()=>{On()&&(n(r),ns(()=>(t===0&&(i=$(()=>e(()=>Et(r)))),t+=1,()=>{rn(()=>{t-=1,t===0&&(i?.(),i=void 0,Et(r))})})))}}var sa=Yt|_n|$n;function oa(e,t,r){new aa(e,t,r)}class aa{parent;#e=!1;#t;#n=null;#r;#s;#i;#o=null;#a=null;#l=null;#u=null;#f=null;#d=0;#c=0;#v=!1;#h=null;#y=ia(()=>(this.#h=Kt(this.#d),()=>{this.#h=null}));constructor(t,r,i){this.#t=t,this.#r=r,this.#s=i,this.parent=Te.b,this.#e=!!this.#r.pending,this.#i=Nn(()=>{Te.b=this;{var s=this.#p();try{this.#o=at(()=>i(s))}catch(o){this.error(o)}this.#c>0?this.#m():this.#e=!1}return()=>{this.#f?.remove()}},sa)}#w(){try{this.#o=at(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#b(){const t=this.#r.pending;t&&(this.#a=at(()=>t(this.#t)),Dt.enqueue(()=>{var r=this.#p();this.#o=this.#g(()=>(Dt.ensure(),at(()=>this.#s(r)))),this.#c>0?this.#m():(an(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#p(){var t=this.#t;return this.#e&&(this.#f=Ft(),this.#t.before(this.#f),t=this.#f),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var r=Te,i=he,s=Ge;xt(this.#i),nt(this.#i),wn(this.#i.ctx);try{return t()}catch(o){return Wi(o),null}finally{xt(r),nt(i),wn(s)}}#m(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),ls(this.#o,this.#u)),this.#a===null&&(this.#a=at(()=>t(this.#t)))}#_(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t);return}this.#c+=t,this.#c===0&&(this.#e=!1,this.#a&&an(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#_(t),this.#d+=t,this.#h&&kn(this.#h,this.#d)}get_effect_pending(){return this.#y(),n(this.#h)}error(t){var r=this.#r.onerror;let i=this.#r.failed;if(this.#v||!r&&!i)throw t;this.#o&&(je(this.#o),this.#o=null),this.#a&&(je(this.#a),this.#a=null),this.#l&&(je(this.#l),this.#l=null);var s=!1,o=!1;const l=()=>{if(s){jo();return}s=!0,o&&Uo(),Dt.ensure(),this.#d=0,this.#l!==null&&an(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#o=this.#g(()=>(this.#v=!1,at(()=>this.#s(this.#t)))),this.#c>0?this.#m():this.#e=!1};var u=he;try{nt(null),o=!0,r?.(t,l),o=!1}catch(f){bn(f,this.#i&&this.#i.parent)}finally{nt(u)}i&&rn(()=>{this.#l=this.#g(()=>{Dt.ensure(),this.#v=!0;try{return at(()=>{i(this.#t,()=>t,()=>l)})}catch(f){return bn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function la(e,t,r,i){const s=rr;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Le,l=Te,u=ua();function f(){Promise.all(r.map(d=>fa(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(c){(l.f&At)===0&&bn(c,l)}o?.deactivate(),nr()}).catch(d=>{bn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),nr()}}):f()}function ua(){var e=Te,t=he,r=Ge,i=Le;return function(o=!0){xt(e),nt(t),wn(r),o&&i?.activate()}}function nr(){xt(null),nt(null),wn(null)}function rr(e){var t=We|st,r=he!==null&&(he.f&We)!==0?he:null;return Te!==null&&(Te.f|=_n),{ctx:Ge,deps:null,effects:null,equals:Ai,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Te,ac:null}}function fa(e,t){let r=Te;r===null&&Io();var i=r.b,s=void 0,o=Kt(Be),l=!he,u=new Map;return _a(()=>{var f=xi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{d===Le&&d.committed&&d.deactivate(),nr()})}catch(h){f.reject(h),nr()}var d=Le;if(l){var c=!i.is_pending();i.update_pending_count(1),d.increment(c),u.get(d)?.reject(yn),u.delete(d),u.set(d,f)}const g=(h,v=void 0)=>{if(d.activate(),v)v!==yn&&(o.f|=qt,kn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),kn(o,h);for(const[y,p]of u){if(u.delete(y),y===d)break;p.reject(yn)}}l&&(i.update_pending_count(-1),d.decrement(c))};f.promise.then(g,h=>g(null,h||"unknown"))}),Mr(()=>{for(const f of u.values())f.reject(yn)}),new Promise(f=>{function d(c){function g(){c===s?f(o):d(s)}c.then(g,g)}d(s)})}function a(e){const t=rr(e);return fs(t),t}function Gi(e){const t=rr(e);return t.equals=Oi,t}function Yi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)je(t[r])}}function da(e){for(var t=e.parent;t!==null;){if((t.f&We)===0)return(t.f&At)===0?t:null;t=t.parent}return null}function Ir(e){var t,r=Te;xt(da(e));try{e.f&=~tn,Yi(e),t=gs(e)}finally{xt(r)}return t}function qi(e){var t=Ir(e);if(e.equals(t)||(Le?.is_fork||(e.v=t),e.wv=hs()),!un)if(ht!==null)(On()||Le?.is_fork)&&ht.set(e,t);else{var r=(e.f&yt)===0?Ct:Ve;qe(e,r)}}let Lr=new Set;const Xt=new Map;let Xi=!1;function Kt(e,t){var r={f:0,v:e,reactions:null,equals:Ai,rv:0,wv:0};return r}function Z(e,t){const r=Kt(e);return fs(r),r}function Ki(e,t=!1,r=!0){const i=Kt(e);return t||(i.equals=Oi),i}function b(e,t,r=!1){he!==null&&(!Tt||(he.f&Ri)!==0)&&Ni()&&(he.f&(We|Pt|Sr|Ri))!==0&&!Ht?.includes(e)&&Wo();let i=r?tt(t):t;return kn(e,i)}function kn(e,t){if(!e.equals(t)){var r=e.v;un?Xt.set(e,t):Xt.set(e,r),e.v=t;var i=Dt.ensure();i.capture(e,r),(e.f&We)!==0&&((e.f&st)!==0&&Ir(e),qe(e,(e.f&yt)!==0?Ve:Ct)),e.wv=hs(),Zi(e,st),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(Mt|en))===0&&(gt===null?ka([e]):gt.push(e)),!i.is_fork&&Lr.size>0&&!Xi&&ca()}return t}function ca(){Xi=!1;var e=ln;sr(!0);const t=Array.from(Lr);try{for(const r of t)(r.f&Ve)!==0&&qe(r,Ct),Hn(r)&&Wn(r)}finally{sr(e)}Lr.clear()}function Et(e){b(e,e.v+1)}function Zi(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&st)===0;if(u&&qe(o,t),(l&We)!==0){var f=o;ht?.delete(f),(l&tn)===0&&(l&yt&&(o.f|=tn),Zi(f,Ct))}else u&&((l&Pt)!==0&&Nt!==null&&Nt.add(o),sn(o))}}function tt(e){if(typeof e!="object"||e===null||Ln in e)return e;const t=Ei(e);if(t!==Do&&t!==Eo)return e;var r=new Map,i=Ci(e),s=Z(0),o=Wt,l=u=>{if(Wt===o)return u();var f=he,d=Wt;nt(null),cs(o);var c=u();return nt(f),cs(d),c};return i&&r.set("length",Z(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Fo();var c=r.get(f);return c===void 0?c=l(()=>{var g=Z(d.value);return r.set(f,g),g}):b(c,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const c=l(()=>Z(Be));r.set(f,c),Et(s)}}else b(d,Be),Et(s);return!0},get(u,f,d){if(f===Ln)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||pn(u,f)?.writable)&&(c=l(()=>{var v=tt(g?u[f]:Be),y=Z(v);return y}),r.set(f,c)),c!==void 0){var h=n(c);return h===Be?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Be)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Ln)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Be||Reflect.has(u,f);if(d!==void 0||Te!==null&&(!c||pn(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?tt(u[f]):Be,v=Z(h);return v}),r.set(f,d));var g=n(d);if(g===Be)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var y=r.get(v+"");y!==void 0?b(y,Be):v in u&&(y=l(()=>Z(Be)),r.set(v+"",y))}if(g===void 0)(!h||pn(u,f)?.writable)&&(g=l(()=>Z(void 0)),b(g,tt(d)),r.set(f,g));else{h=g.v!==Be;var p=l(()=>tt(d));b(g,p)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var _=r.get("length"),k=Number(f);Number.isInteger(k)&&k>=_.v&&b(_,k+1)}Et(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Be});for(var[d,c]of r)c.v!==Be&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Ho()}})}var wt,Ji,Qi,ji;function ha(){if(wt===void 0){wt=window,Ji=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qi=pn(t,"firstChild").get,ji=pn(t,"nextSibling").get,Ti(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ti(r)&&(r.__t=void 0)}}function Ft(e=""){return document.createTextNode(e)}function ir(e){return Qi.call(e)}function An(e){return ji.call(e)}function ue(e,t){return ir(e)}function J(e,t=!1){{var r=ir(e);return r instanceof Comment&&r.data===""?An(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=An(i);return i}function va(e){e.textContent=""}function $i(){return!1}function ga(e,t){{const r=document.body;e.autofocus=!0,rn(()=>{document.activeElement===r&&e.focus()})}}function Pr(e){var t=he,r=Te;nt(null),xt(null);try{return e()}finally{nt(t),xt(r)}}function es(e){Te===null&&(he===null&&Mo(),Po()),un&&Lo()}function ma(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function bt(e,t,r){var i=Te;i!==null&&(i.f&ot)!==0&&(e|=ot);var s={ctx:Ge,deps:null,nodes:null,f:e|st|yt,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Wn(s),s.f|=Tr}catch(u){throw je(s),u}else t!==null&&sn(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&_n)===0&&(o=o.first,(e&Pt)!==0&&(e&Yt)!==0&&o!==null&&(o.f|=Yt)),o!==null&&(o.parent=i,i!==null&&ma(o,i),he!==null&&(he.f&We)!==0&&(e&en)===0)){var l=he;(l.effects??=[]).push(o)}return s}function On(){return he!==null&&!Tt}function Mr(e){const t=bt(jn,null,!1);return qe(t,Ve),t.teardown=e,t}function Ye(e){es();var t=Te.f,r=!he&&(t&Mt)!==0&&(t&Tr)===0;if(r){var i=Ge;(i.e??=[]).push(e)}else return ts(e)}function ts(e){return bt(Er|Li,e,!1)}function on(e){return es(),bt(jn|Li,e,!0)}function pa(e){Dt.ensure();const t=bt(en|_n,e,!0);return(r={})=>new Promise(i=>{r.outro?an(t,()=>{je(t),i(void 0)}):(je(t),i(void 0))})}function Ar(e){return bt(Er,e,!1)}function _a(e){return bt(Sr|_n,e,!0)}function ns(e,t=0){return bt(jn|t,e,!0)}function se(e,t=[],r=[],i=[]){la(i,t,r,s=>{bt(jn,()=>e(...s.map(n)),!0)})}function Nn(e,t=0){var r=bt(Pt|t,e,!0);return r}function ya(e,t=0){var r=bt(Si|t,e,!0);return r}function at(e){return bt(Mt|_n,e,!0)}function rs(e){var t=e.teardown;if(t!==null){const r=un,i=he;us(!0),nt(null);try{t.call(null)}finally{us(r),nt(i)}}}function is(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Pr(()=>{s.abort(yn)});var i=r.next;(r.f&en)!==0?r.parent=null:je(r,t),r=i}}function wa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Mt)===0&&je(t),t=r}}function je(e,t=!0){var r=!1;(t||(e.f&Ii)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ba(e.nodes.start,e.nodes.end),r=!0),is(e,t&&!r),or(e,0),qe(e,At);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();rs(e);var s=e.parent;s!==null&&s.first!==null&&ss(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ba(e,t){for(;e!==null;){var r=e===t?null:An(e);e.remove(),e=r}}function ss(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function an(e,t,r=!0){var i=[];os(e,i,!0);var s=()=>{r&&je(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function os(e,t,r){if((e.f&ot)===0){e.f^=ot;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,l=(s.f&Yt)!==0||(s.f&Mt)!==0&&(e.f&Pt)!==0;os(s,t,l?r:!1),s=o}}}function Or(e){as(e,!0)}function as(e,t){if((e.f&ot)!==0){e.f^=ot,(e.f&Ve)===0&&(qe(e,st),sn(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Yt)!==0||(r.f&Mt)!==0;as(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function ls(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:An(r);t.append(r),r=s}}let ln=!1;function sr(e){ln=e}let un=!1;function us(e){un=e}let he=null,Tt=!1;function nt(e){he=e}let Te=null;function xt(e){Te=e}let Ht=null;function fs(e){he!==null&&(Ht===null?Ht=[e]:Ht.push(e))}let $e=null,lt=0,gt=null;function ka(e){gt=e}let ds=1,Fn=0,Wt=Fn;function cs(e){Wt=e}function hs(){return++ds}function Hn(e){var t=e.f;if((t&st)!==0)return!0;if(t&We&&(e.f&=~tn),(t&Ct)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Hn(o)&&qi(o),o.wv>e.wv)return!0}(t&yt)!==0&&ht===null&&qe(e,Ve)}return!1}function vs(e,t,r=!0){var i=e.reactions;if(i!==null&&!Ht?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&We)!==0?vs(o,t,!1):t===o&&(r?qe(o,st):(o.f&Ve)!==0&&qe(o,Ct),sn(o))}}function gs(e){var t=$e,r=lt,i=gt,s=he,o=Ht,l=Ge,u=Tt,f=Wt,d=e.f;$e=null,lt=0,gt=null,he=(d&(Mt|en))===0?e:null,Ht=null,wn(e.ctx),Tt=!1,Wt=++Fn,e.ac!==null&&(Pr(()=>{e.ac.abort(yn)}),e.ac=null);try{e.f|=xr;var c=e.fn,g=c(),h=e.deps;if($e!==null){var v;if(or(e,lt),h!==null&&lt>0)for(h.length=lt+$e.length,v=0;v<$e.length;v++)h[lt+v]=$e[v];else e.deps=h=$e;if(On()&&(e.f&yt)!==0)for(v=lt;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&&lt<h.length&&(or(e,lt),h.length=lt);if(Ni()&&gt!==null&&!Tt&&h!==null&&(e.f&(We|Ct|st))===0)for(v=0;v<gt.length;v++)vs(gt[v],e);return s!==null&&s!==e&&(Fn++,gt!==null&&(i===null?i=gt:i.push(...gt))),(e.f&qt)!==0&&(e.f^=qt),g}catch(y){return Wi(y)}finally{e.f^=xr,$e=t,lt=r,gt=i,he=s,Ht=o,wn(l),Tt=u,Wt=f}}function Ca(e,t){let r=t.reactions;if(r!==null){var i=ko.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&We)!==0&&($e===null||!$e.includes(t))&&(qe(t,Ct),(t.f&yt)!==0&&(t.f^=yt,t.f&=~tn),Yi(t),or(t,0))}function or(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Ca(e,r[i])}function Wn(e){var t=e.f;if((t&At)===0){qe(e,Ve);var r=Te,i=ln;Te=e,ln=!0;try{(t&(Pt|Si))!==0?wa(e):is(e),rs(e);var s=gs(e);e.teardown=typeof s=="function"?s:null,e.wv=ds;var o}finally{ln=i,Te=r}}}async function fn(){await Promise.resolve(),na()}function n(e){var t=e.f,r=(t&We)!==0;if(he!==null&&!Tt){var i=Te!==null&&(Te.f&At)!==0;if(!i&&!Ht?.includes(e)){var s=he.deps;if((he.f&xr)!==0)e.rv<Fn&&(e.rv=Fn,$e===null&&s!==null&&s[lt]===e?lt++:$e===null?$e=[e]:$e.includes(e)||$e.push(e));else{(he.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[he]:o.includes(he)||o.push(he)}}}if(un){if(Xt.has(e))return Xt.get(e);if(r){var l=e,u=l.v;return((l.f&Ve)===0&&l.reactions!==null||ps(l))&&(u=Ir(l)),Xt.set(l,u),u}}else r&&(!ht?.has(e)||Le?.is_fork&&!On())&&(l=e,Hn(l)&&qi(l),ln&&On()&&(l.f&yt)===0&&ms(l));if(ht?.has(e))return ht.get(e);if((e.f&qt)!==0)throw e.v;return e.v}function ms(e){if(e.deps!==null){e.f^=yt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&We)!==0&&(t.f&yt)===0&&ms(t)}}function ps(e){if(e.v===Be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xt.has(t)||(t.f&We)!==0&&ps(t))return!0;return!1}function $(e){var t=Tt;try{return Tt=!0,e()}finally{Tt=t}}const Da=-7169;function qe(e,t){e.f=e.f&Da|t}const Ea=["touchstart","touchmove"];function Ta(e){return Ea.includes(e)}const _s=new Set,Nr=new Set;function xa(e,t,r,i={}){function s(o){if(i.capture||Un.call(t,o),!o.cancelBubble)return Pr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?rn(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ut(e,t,r,i,s){var o={capture:i,passive:s},l=xa(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Mr(()=>{t.removeEventListener(e,l,o)})}function Zt(e){for(var t=0;t<e.length;t++)_s.add(e[t]);for(var r of Nr)r(e)}let ys=null;function Un(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;ys=e;var l=0,u=ys===e&&e.__root;if(u){var f=s.indexOf(u);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var d=s.indexOf(t);if(d===-1)return;f<=d&&(l=f)}if(o=s[l]||e.target,o!==t){Di(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=he,g=Te;nt(null),xt(null);try{for(var h,v=[];o!==null;){var y=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+i];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||y===t||y===null)break;o=y}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,nt(c),xt(g)}}}function Sa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ar(e,t){var r=Te;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var r=(t&Zo)!==0,i=(t&Jo)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Sa(o?e:"<!>"+e),r||(s=ir(s)));var l=i||Ji?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ir(l),f=l.lastChild;ar(u,f)}else ar(l,l);return l}}function ws(e=""){{var t=Ft(e+"");return ar(t,t),t}}function de(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Ft();return e.append(t,r),ar(t,r),e}function x(e,t){e!==null&&e.before(t)}function bs(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ra(e,t){return Ia(e,t)}const Cn=new Map;function Ia(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){ha();var u=new Set,f=g=>{for(var h=0;h<g.length;h++){var v=g[h];if(!u.has(v)){u.add(v);var y=Ta(v);t.addEventListener(v,Un,{passive:y});var p=Cn.get(v);p===void 0?(document.addEventListener(v,Un,{passive:y}),Cn.set(v,1)):Cn.set(v,p+1)}}};f(Qn(_s)),Nr.add(f);var d=void 0,c=pa(()=>{var g=r??t.appendChild(Ft());return oa(g,{pending:()=>{}},h=>{if(o){be({});var v=Ge;v.c=o}s&&(i.$$events=s),d=e(h,i)||{},o&&ke()}),()=>{for(var h of u){t.removeEventListener(h,Un);var v=Cn.get(h);--v===0?(document.removeEventListener(h,Un),Cn.delete(h)):Cn.set(h,v)}Nr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Fr.set(d,c),d}let Fr=new WeakMap;function La(e,t){const r=Fr.get(e);return r?(Fr.delete(e),r(t)):Promise.resolve()}class Hr{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#i=()=>{var t=Le;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#t.get(r);if(i)Or(i),this.#r.delete(r);else{var s=this.#n.get(r);s&&(this.#t.set(r,s.effect),this.#n.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#n.get(l);u&&(je(u.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();ls(l,d),d.append(Ft()),this.#n.set(o,{effect:l,fragment:d})}else je(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!i?(this.#r.add(o),an(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#n)r.includes(i)||(je(s.effect),this.#n.delete(i))};ensure(t,r){var i=Le,s=$i();if(r&&!this.#t.has(t)&&!this.#n.has(t))if(s){var o=document.createDocumentFragment(),l=Ft();o.append(l),this.#n.set(t,{effect:at(()=>r(l)),fragment:o})}else this.#t.set(t,at(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#t)u===t?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[u,f]of this.#n)u===t?i.skipped_effects.delete(f.effect):i.skipped_effects.add(f.effect);i.oncommit(this.#i),i.ondiscard(this.#o)}else this.#i()}}function ve(e,t,r=!1){var i=new Hr(e),s=r?Yt:0;function o(l,u){i.ensure(l,u)}Nn(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function De(e,t){return t}function Pa(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];an(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Wr(Qn(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,c=d.parentNode;va(c),c.append(d),e.items.clear()}Wr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Wr(e,t=!0){for(var r=0;r<e.length;r++)je(e[r],t)}var ks;function oe(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Mi)!==0;if(f){var d=e;l=d.appendChild(Ft())}var c=null,g=Gi(()=>{var _=r();return Ci(_)?_:_==null?[]:Qn(_)}),h,v=!0;function y(){m.fallback=c,Ma(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Ot)===0?Or(c):(c.f^=Ot,zn(c,null,l)):an(c,()=>{c=null}))}var p=Nn(()=>{h=n(g);for(var _=h.length,k=new Set,S=Le,E=$i(),D=0;D<_;D+=1){var w=h[D],C=i(w,D),M=v?null:u.get(C);M?(M.v&&kn(M.v,w),M.i&&kn(M.i,D),E&&S.skipped_effects.delete(M.e)):(M=Aa(u,v?l:ks??=Ft(),w,C,D,s,t,r),v||(M.e.f|=Ot),u.set(C,M)),k.add(C)}if(_===0&&o&&!c&&(v?c=at(()=>o(l)):(c=at(()=>o(ks??=Ft())),c.f|=Ot)),!v)if(E){for(const[q,L]of u)k.has(q)||S.skipped_effects.add(L.e);S.oncommit(y),S.ondiscard(()=>{})}else y();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:c};v=!1}function Ma(e,t,r,i,s){var o=(i&Bo)!==0,l=t.length,u=e.items,f=e.effect.first,d,c=null,g,h=[],v=[],y,p,m,_;if(o)for(_=0;_<l;_+=1)y=t[_],p=s(y,_),m=u.get(p).e,(m.f&Ot)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(_=0;_<l;_+=1){if(y=t[_],p=s(y,_),m=u.get(p).e,e.outrogroups!==null)for(const L of e.outrogroups)L.pending.delete(m),L.done.delete(m);if((m.f&Ot)!==0)if(m.f^=Ot,m===f)zn(m,null,r);else{var k=c?c.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Jt(e,c,m),Jt(e,m,k),zn(m,k,r),c=m,h=[],v=[],f=c.next;continue}if((m.f&ot)!==0&&(Or(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(h.length<v.length){var S=v[0],E;c=S.prev;var D=h[0],w=h[h.length-1];for(E=0;E<h.length;E+=1)zn(h[E],S,r);for(E=0;E<v.length;E+=1)d.delete(v[E]);Jt(e,D.prev,w.next),Jt(e,c,D),Jt(e,w,S),f=S,c=w,_-=1,h=[],v=[]}else d.delete(m),zn(m,f,r),Jt(e,m.prev,m.next),Jt(e,m,c===null?e.effect.first:c.next),Jt(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&Ot)===0&&h.push(m),c=m,f=m.next}if(e.outrogroups!==null){for(const L of e.outrogroups)L.pending.size===0&&(Wr(Qn(L.done)),e.outrogroups?.delete(L));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var C=[];if(d!==void 0)for(m of d)(m.f&ot)===0&&C.push(m);for(;f!==null;)(f.f&ot)===0&&f!==e.fallback&&C.push(f),f=f.next;var M=C.length;if(M>0){var q=(i&Mi)!==0&&l===0?r:null;if(o){for(_=0;_<M;_+=1)C[_].nodes?.a?.measure();for(_=0;_<M;_+=1)C[_].nodes?.a?.fix()}Pa(e,C,q)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Aa(e,t,r,i,s,o,l,u){var f=(l&zo)!==0?(l&Go)===0?Ki(r,!1,!1):Kt(r):null,d=(l&Vo)!==0?Kt(s):null;return{v:f,i:d,e:at(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function zn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Ot)===0?t.nodes.start:r;i!==null;){var l=An(i);if(o.before(i),i===s)return;i=l}}function Jt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Ut(e,t,...r){var i=new Hr(e);Nn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Yt)}function Ur(e,t,r){var i=new Hr(e);Nn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Yt)}function Me(e,t){var r=void 0,i;ya(()=>{r!==(r=t())&&(i&&(je(i),i=null),r&&(i=at(()=>{Ar(()=>r(e))})))})}function Cs(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Cs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Oa(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Cs(e))&&(i&&(i+=" "),i+=t);return i}function St(e){return typeof e=="object"?Oa(e):e??""}function Na(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Ds(e,t=!1){var r=t?" !important;":";",i="";for(var s in e){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function zr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Fa(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,u=!1,f=[];i&&f.push(...Object.keys(i).map(zr)),s&&f.push(...Object.keys(s).map(zr));var d=0,c=-1;const p=e.length;for(var g=0;g<p;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===p-1){if(c!==-1){var v=zr(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var y=e.substring(d,g).trim();r+=" "+y+";"}}d=g+1,c=-1}}}}return i&&(r+=Ds(i)),s&&(r+=Ds(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function O(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Na(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Vr(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function kt(e,t,r,i){var s=e.__style;if(s!==t){var o=Fa(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Vr(e,r?.[0],i[0]),Vr(e,r?.[1],i[1],"important")):Vr(e,r,i));return i}const Ha=Symbol("is custom element"),Wa=Symbol("is html");function Pe(e,t,r,i){var s=Ua(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Ro]=r),r==null?e.removeAttribute(t):typeof r!="string"&&za(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ua(e){return e.__attributes??={[Ha]:e.nodeName.includes("-"),[Wa]:e.namespaceURI===Qo}}var Es=new Map;function za(e){var t=e.getAttribute("is")||e.nodeName,r=Es.get(t);if(r)return r;Es.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Co(s);for(var l in i)i[l].set&&r.push(l);s=Ei(s)}return r}class Br{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#r().observe(t,this.#n),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var r of t){Br.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var Va=new Br({box:"border-box"});function lr(e,t,r){var i=Va.observe(e,()=>r(e[t]));Ar(()=>($(()=>r(e[t])),i))}function Ts(e,t){return e===t||e?.[Ln]===t}function rt(e={},t,r,i){return Ar(()=>{var s,o;return ns(()=>{s=o,o=i?.()||[],$(()=>{e!==r(...o)&&(t(e,...o),s&&Ts(r(...s),e)&&t(null,...s))})}),()=>{rn(()=>{o&&Ts(r(...o),e)&&t(null,...o)})}}),e}function xs(e,t,r){if(e==null)return t(void 0),Gt;const i=$(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function Ba(e){let t;return xs(e,r=>t=r)(),t}let ur=!1,Gr=Symbol();function Ga(e,t,r){const i=r[t]??={store:null,source:Ki(void 0),unsubscribe:Gt};if(i.store!==e&&!(Gr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Gt;else{var s=!0;i.unsubscribe=xs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Gr in r?Ba(e):n(i.source)}function Ya(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();Di(e,Gr,{enumerable:!1,value:!0})})}return[e,t]}function qa(e){var t=ur;try{return ur=!1,[e(),ur]}finally{ur=t}}function Ee(e,t,r,i){var s=(r&Xo)!==0,o=(r&Ko)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?$(i):i),l),d;if(s){var c=Ln in e||So in e;d=pn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=qa(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(No(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&qo)===0)return v;if(d){var y=e.$$legacy;return(function(k,S){return arguments.length>0?((!S||y||h)&&d(S?v():k),k):v()})}var p=!1,m=((r&Yo)!==0?rr:Gi)(()=>(p=!1,v()));s&&n(m);var _=Te;return(function(k,S){if(arguments.length>0){const E=S?n(m):s?tt(k):k;return b(m,E),p=!0,l!==void 0&&(l=E),k}return un&&p||(_.f&At)!==0?m.v:n(m)})}function Xa(){return he===null&&Oo(),(he.ac??=new AbortController).signal}function Vn(e){Ge===null&&Pi(),Ye(()=>{const t=$(e);if(typeof t=="function")return t})}const Ka="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ka);function Yr(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Xe(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Za(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function qr(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Ss(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function ge(...e){return Object.assign(...e)}function dn(e){return Object.keys(e)}function Rs(e){return Object.entries(e)}function Xr(e){return Math.floor(e)}function Ja(e){return Math.ceil(e)}function Rt(...e){return Math.min(...e)}function ft(...e){return Math.max(...e)}function Qa(){return Symbol("ec")}function Kr(e){return Array.isArray(e)}function Ce(e){return typeof e=="function"}function ja(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Zr(e){return e instanceof Date}function $a(e){return e()}function el(e){e.forEach($a)}function tl(){}const fr=e=>e;function Jr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function cn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const dr=86400;function It(e=void 0){return e!==void 0?Zr(e)?Os(e):il(e):Os(new Date)}function Fe(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else Zr(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function K(e){return new Date(e.getTime())}function Se(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)Dn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function cr(e,t,r=1){return Se(e,t,-r)}function mt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Dn(e,t=1){return mt(e,-t)}function zt(e){return e.setUTCHours(0,0,0,0),e}function He(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function dt(e,t=19){return e.toISOString().substring(0,t)}function Ke(e,...t){return t.every(r=>e.getTime()===r.getTime())}function nl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Is(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Ls(e){return typeof e=="string"&&e.length<=10}function Qr(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Ps(e,t,r){return Se(e,t),As(e,r,mt),e}function Ms(e,t,r){return cr(e,t),As(e,r,Dn),e}function As(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function rl(e,t){e=K(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/dr+1)/7)}function Os(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function il(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let jr=Qa();function Ns(e,t){e[jr]=t}function sl(e){return!!e?.[jr]}function Vt(e){return e[jr]}function Fs(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function Qt(e){return e.getBoundingClientRect()}function Hs(e,t){for(;t--;)e=e.parentElement;return e}function hn(e){return Qt(e).height}function En(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(sl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=En(e,t,s.shadowRoot,i);if(o)return o}}return null}function Bn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ol(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function Ze(e){return e=ge({},e),e.currentStart=He(e.currentStart),e.currentEnd=He(e.currentEnd),e.activeStart=He(e.activeStart),e.activeEnd=He(e.activeEnd),e}let al=1;function hr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${al++}}`,resourceIds:$r(t,"resourceId").map(String),allDay:t.allDay??(Ls(t.start)&&Ls(t.end)),start:It(t.start),end:It(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:$r(t,"className"),styles:$r(t,"style")};if(r.allDay){zt(r.start);let i=K(r.end);zt(r.end),(!Ke(r.end,i)||Ke(r.end,r.start))&&mt(r.end)}return r})}function $r(e,t){let r=e[t+"s"]??e[t]??[];return Kr(r)?r:[r]}function ll(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function ul(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Qr(K(e.start),e.end):e.start),u;if(r&&(u=Ce(r)?r({event:Ue(e.event),timeText:l,view:Ze(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Ws(l,e,i)];break;default:f=[...e.event.allDay?[]:[Ws(l,e,i)],Fs("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Ws(e,t,r){return Fs("time",r.eventTime,e,[["datetime",dt(t.start)]])}function fl(e,t,r){let i=t.classNames;return e&&(Ce(e)&&(e=e({event:Ue(t),view:Ze(r)})),i=[...Kr(e)?e:[e],...i]),i}function Ue(e){return Us(e,He)}function ei(e){return Us(e,K)}function Us(e,t){return e=ge({},e),e.start=t(e.start),e.end=t(e.end),e}function ti(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Tn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function vr(e){return dl(e)||cl(e)||hl(e)}function pt(e){return e==="background"}function dl(e){return e==="preview"}function cl(e){return e==="ghost"}function hl(e){return e==="pointer"}function Gn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:Ke(t,r)}}function xn(e,t,r=!0){let i=[],s,o,l;for(let{gridColumn:u,gridRow:f,resource:d,dayStart:c,dayEnd:g,disabled:h}of t)!h&&Tn(e,c,g,d)&&(i.push(c),s=g,o||(o=u,l=f));if(i.length){let u=Gn(e,i[0],s);return ge(u,{gridColumn:o,gridRow:l,dates:i}),r&&ni(u),[u]}return[]}function zs(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let f=`${o}_${s+u}`;r[f]?r[f].chunks.push(i):r[f]={sorted:!1,chunks:[i]}}let l=`${o}_${s}`;i.long=r[l],i.prev=t[l],t[l]=i}}function Vs(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return ge(e,{top:r,bottom:i}),r}const Bs=new WeakMap;let vl=1;function ni(e){let{event:t,gridColumn:r,gridRow:i}=e,s=Bs.get(t);s||(s=vl++,Bs.set(t,s)),e.id=`${s}-${r}-${i}`}function vn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{s=Ce(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(He(o))}}}function Gs(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{if(Ce(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",c=["startRange","endRange"],g=[!1,!1];for(let h of f){let v=c.indexOf(h.source);v>=0?g[v]||(d+=gl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(He(o),He(l))}}}function gl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Yn(e){return gr(e,"day")}function qn(e){return gr(e,"week")}function ri(e){return gr(e,"month")}function ml(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function it(e){return t=>({...t,view:e})}function pl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=zt(It(t))),r&&(r=zt(It(r)))),{start:t,end:r}}function Sn(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Ys(e){let t=[];return qs(e,0,t),t}function qs(e,t,r){let i=[];for(let s of e){let o=_l(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ns(o,l),s.children&&(l.children=qs(s.children,t+1,r))}return i}function _l(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function yl(e,t){return Xs(e,t)?.eventBackgroundColor}function wl(e,t){return Xs(e,t)?.eventTextColor}function Xs(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function Ks(e,t,r,i,s){let o=[];e=K(e);let l=K(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([dt(e),s.format(e)]),Se(e,t,r);let u=Xr((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function Zs(e,t,r,i,s){let o=Fe(e),l=Fe(t);if(r){let u=Fe(Rt(_e(o),ft(0,_e(l)-dr))),f=Fe(ft(_e(l),_e(u)+dr)),d=Ce(r?.eventFilter)?r.eventFilter:c=>!pt(c.display);e:for(let c of i){let g=Se(K(c),o),h=Se(K(c),l),v=Se(K(c),u),y=Se(K(c),f);for(let p of s)if(!p.allDay&&d(p)&&p.start<y&&p.end>v){if(p.start<g){let m=ft((p.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(p.end>h){let m=Rt((p.end-c)/1e3,_e(f));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(f))break e}}}return{min:o,max:l}}class ii extends Map{#e=new Map;#t=Z(0);#n=Z(0);#r=Wt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#n.v=super.size}}#s(t){return Wt===this.#r?Z(t):Kt(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else return n(this.#t),!1}return n(i),!0}forEach(t,r){this.#i(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else{n(this.#t);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#t;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#n,super.size),Et(u);else if(o!==r){Et(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&Et(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#n,super.size),b(i,-1),Et(this.#t)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#n,0);for(var r of t.values())b(r,-1);Et(this.#t),t.clear()}}#i(){n(this.#t);var t=this.#e;if(this.#n.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#s(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#t),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#n),super.size}}function bl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function kl(e){let t={date:r=>zt(It(r)),duration:Fe,events:hr,eventSources:ll,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>zt(It(i))),resources:Ys,validRange:pl};for(let r of e)r.createParsers?.(t);return t}const Js=["buttonText","customButtons","theme"];function Cl(e,t,r){let i=bl(t),s=kl(t);i=si(i,s),r=si(r,s);let o=oi(i,"views")??{},l=oi(r,"views")??{},u=new ii;js(u,i);let f={},d={};function c(){r.view&&u.set("view",r.view);let g=new Set([...dn(o),...dn(l)]);for(let h of g){let v=l[h]??{},y=Qs(i,o[h]??o[v.type]??{}),p=Qs(y,r,v),m=oi(p,"component");delete p.view;for(let _ of dn(p))u.has(_)?(f[_]||(f[_]=[]),f[_].push(Js.includes(_)?k=>p[_]=Ce(k)?k(y[_]):k:k=>p[_]=k)):delete p[_];on(()=>{let _=u.get("view");$(()=>{_===h&&(e.setViewComponent(m),d=p,js(u,p))})})}}return{proxy:new Proxy(u,{set(g,h,v){return d[h]=v,g.set(h,v),!0},get(g,h){return g.get(h)}}),setOption(g,h,v){u.has(g)&&(!v&&g in s&&(h=s[g](h)),f[g]?.forEach(y=>y(h)),u.set(g,d[g]??h))},initEffects:c}}function si(e,t){let r={...e};for(let i of dn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of dn(e.views))r.views[i]=si(e.views[i],t)}return r}function oi(e,t){let r=e[t];return delete e[t],r}function Qs(...e){let t={};for(let r of e){let i={};for(let s of Js)Ce(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function js(e,t){for(let[r,i]of Rs(t))e.set(r,i)}function Dl(e,t){let r=[];for(let i of dn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function El(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,options:{events:s,eventSources:o,lazyFetching:l,loading:u}}=e;$(()=>{if(o.length||(e.events=s),!i.start||i.start>r.start||i.end<r.end||!l){Ce(u)&&!t&&u(!0);let f=()=>{--t===0&&Ce(u)&&u(!1)},d=[],c=y=>f(),g=y=>{d=d.concat(hr(y)),e.events=d,f()},h=dt(r.start),v=dt(r.end);for(let y of o){if(Ce(y.events)){let p=y.events({start:He(r.start),end:He(r.end),startStr:h,endStr:v},g,c);p!==void 0&&Promise.resolve(p).then(g,c)}else{let p=Ce(y.extraParams)?y.extraParams():ge({},y.extraParams);p.start=h,p.end=v,p=new URLSearchParams(p);let m=y.url,_={},k;["GET","HEAD"].includes(y.method)?m+=(m.includes("?")?"&":"?")+p:(_["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",k=String(p)),fetch(m,{method:y.method,headers:_,body:k,signal:Xa(),credentials:"same-origin"}).then(S=>S.json()).then(g).catch(c)}++t}ge(i,r)}})}}function Tl(e){return()=>{let t=setInterval(()=>{let r=It(),i=zt(K(r));e.now=r,Ke(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function xl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;$(()=>{Ce(r)&&r({start:He(t.start),end:He(t.end),startStr:dt(t.start),endStr:dt(t.end),view:Ze(e.view)})})}}function Sl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;$(()=>{Ce(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function Rl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;$(()=>{Ce(r)&&fn().then(()=>r({view:Ze(e.view)}))})}}function Il(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return $(()=>{s=K(t),r.months?s.setUTCDate(1):r.inWeeks&&Is(s,i),o=Se(K(s),r)}),{start:s,end:o}}}function Ll(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return $(()=>{i=K(t.start),s=K(t.end)}),r?r(i,s):{start:i,end:s}}}function Pl(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o}}=e,l=[...t];return $(()=>{if(Ce(r)){let u=t.map(Ue),f=Ze(e.view);l=l.filter((d,c)=>r({event:Ue(d),index:c,events:u,view:f}))}s&&(l=l.filter(u=>o.some(f=>u.resourceIds.includes(f.id)))),Ce(i)?l.sort((u,f)=>i(Ue(u),Ue(f))):l.sort((u,f)=>u.start-f.start||f.allDay-u.allDay)}),l}}function Ml(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return $(()=>{let o=K(r.start),l=K(r.end);for(;o<l;)i.includes(o.getUTCDay())||s.push(K(o)),mt(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)mt(o);fn().then(()=>{e.setOption("date",o)})}}),s}}function Al(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return $(()=>{i=r.formatRange(t.start,Dn(K(t.end)))}),i}}function Ol(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return $(()=>{o=ol(s,i,r,t)}),o}}class Nl{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#t;get currentRange(){return n(this.#t)}set currentRange(t){b(this.#t,t)}#n;get activeRange(){return n(this.#n)}set activeRange(t){b(this.#n,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t)}#s;get events(){return n(this.#s)}set events(t){b(this.#s,t)}#i;get filteredEvents(){return n(this.#i)}set filteredEvents(t){b(this.#i,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get today(){return n(this.#l)}set today(t){b(this.#l,t,!0)}#u;get intlEventTime(){return n(this.#u)}set intlEventTime(t){b(this.#u,t)}#f;get intlDayHeader(){return n(this.#f)}set intlDayHeader(t){b(this.#f,t)}#d;get intlDayHeaderAL(){return n(this.#d)}set intlDayHeaderAL(t){b(this.#d,t)}#c;get intlTitle(){return n(this.#c)}set intlTitle(t){b(this.#c,t)}#v;get viewDates(){return n(this.#v)}set viewDates(t){b(this.#v,t)}#h;get viewTitle(){return n(this.#h)}set viewTitle(t){b(this.#h,t)}#y;get view(){return n(this.#y)}set view(t){b(this.#y,t)}#w;get viewComponent(){return n(this.#w)}set viewComponent(t){b(this.#w,t,!0)}#b;get extensions(){return n(this.#b)}set extensions(t){b(this.#b,t,!0)}#p;get features(){return n(this.#p)}set features(t){b(this.#p,t,!0)}#g;get interaction(){return n(this.#g)}set interaction(t){b(this.#g,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){b(this.#m,t,!0)}#_;get iClass(){return n(this.#_)}set iClass(t){b(this.#_,t,!0)}#k;constructor(t,r){let{proxy:i,setOption:s,initEffects:o}=Cl(this,t,r);this.options=i,this.#k=s,this.#e=Z(tt([])),this.#t=a(Il(this)),this.#n=a(Ll(this)),this.#r=Z({start:void 0,end:void 0}),this.#s=Z([]),this.#i=a(Pl(this)),this.#o=Z(),this.#a=Z(tt(It())),this.#l=Z(tt(zt(It()))),this.#u=a(Gs(this,"eventTimeFormat")),this.#f=a(vn(this,"dayHeaderFormat")),this.#d=a(vn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Gs(this,"titleFormat")),this.#v=a(Ml(this)),this.#h=a(Al(this)),this.#y=a(Ol(this)),this.#w=Z(),this.#b=Z(tt({})),this.#p=Z(tt([])),this.#g=Z(tt({})),this.iEvents=new ii,this.#m=Z(tt(fr)),this.#_=Z();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){on(Tl(this)),Ye(El(this)),Ye(xl(this)),Ye(Sl(this)),Ye(Rl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Fl=Q("<h2></h2>"),Hl=Q("<button><i></i></button>"),Wl=Q("<button><i></i></button>"),Ul=Q("<button> </button>"),zl=Q("<button></button>"),Vl=Q("<button> </button>");function $s(e,t){be(t,!0);let r=ee("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),y=a(()=>r.options.view),p=Z(!1),m=Z(!1),_=Z(!1),k=!1;on(()=>{n(l),n(v),t.buttons,$(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,S(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(D),!0)),t.buttons.includes("today")&&(b(_,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(_)&&(n(v).start||n(v).end)&&b(_,S(w),!0)),fn().then(()=>k=!1))})});function S(q){let L=n(d);q();let te=n(l).every(pe=>Sn(pe,n(v)));return r.setOption("date",L),te}function E(){r.setOption("date",Ms(K(n(d)),n(c),n(g)))}function D(){r.setOption("date",Ps(K(n(d)),n(c),n(g)))}function w(){r.setOption("date",K(n(s)))}var C=de(),M=J(C);oe(M,17,()=>t.buttons,De,(q,L)=>{var te=de(),pe=J(te);{var W=H=>{var F=Fl();Me(F,()=>Xe(n(o))),se(()=>O(F,1,n(h).title)),x(H,F)},z=H=>{var F=de(),B=J(F);{var le=ye=>{var ie=Hl();ie.__click=E;var ce=ue(ie);se(()=>{O(ie,1,`${n(h).button??""} ec-${n(L)??""}`),Pe(ie,"aria-label",n(u).prev),Pe(ie,"title",n(u).prev),ie.disabled=n(p),O(ce,1,`${n(h).icon??""} ec-${n(L)??""}`)}),x(ye,ie)},X=ye=>{var ie=de(),ce=J(ie);{var T=R=>{var G=Wl();G.__click=D;var Je=ue(G);se(()=>{O(G,1,`${n(h).button??""} ec-${n(L)??""}`),Pe(G,"aria-label",n(u).next),Pe(G,"title",n(u).next),G.disabled=n(m),O(Je,1,`${n(h).icon??""} ec-${n(L)??""}`)}),x(R,G)},P=R=>{var G=de(),Je=J(G);{var Ae=V=>{var ae=Ul();ae.__click=w;var xe=ue(ae);se(()=>{O(ae,1,`${n(h).button??""} ec-${n(L)??""}`),ae.disabled=n(_),bs(xe,n(u)[n(L)])}),x(V,ae)},Lt=V=>{var ae=de(),xe=J(ae);{var N=Y=>{var fe=zl();fe.__click=function(...Re){n(f)[n(L)].click?.apply(this,Re)},Me(fe,()=>Xe(n(f)[n(L)].text)),se(()=>O(fe,1,St([n(h).button,`ec-${n(L)}`,n(f)[n(L)].active&&n(h).active]))),x(Y,fe)},U=Y=>{var fe=de(),Re=J(fe);{var we=Ie=>{var Oe=Vl();Oe.__click=()=>r.setOption("view",n(L));var ne=ue(Oe);se(()=>{O(Oe,1,St([n(h).button,`ec-${n(L)}`,n(y)===n(L)&&n(h).active])),bs(ne,n(u)[n(L)])}),x(Ie,Oe)};ve(Re,Ie=>{n(L)!==""&&Ie(we)},!0)}x(Y,fe)};ve(xe,Y=>{n(f)[n(L)]?Y(N):Y(U,!1)},!0)}x(V,ae)};ve(Je,V=>{n(L)==="today"?V(Ae):V(Lt,!1)},!0)}x(R,G)};ve(ce,R=>{n(L)==="next"?R(T):R(P,!1)},!0)}x(ye,ie)};ve(B,ye=>{n(L)==="prev"?ye(le):ye(X,!1)},!0)}x(H,F)};ve(pe,H=>{n(L)==="title"?H(W):H(z,!1)})}x(q,te)}),x(e,C),ke()}Zt(["click"]);var Bl=Q("<div><!></div>"),Gl=Q("<div></div>"),Yl=Q("<nav></nav>");function ql(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.headerToolbar),s=a(()=>n(r).options.theme),o=a(()=>{let u={};for(let f of["start","center","end"])u[f]=n(i)[f]?.split(" ").map(d=>d.split(","))??[];return u});var l=Yl();oe(l,21,()=>dn(n(o)),De,(u,f)=>{var d=Gl();oe(d,21,()=>n(o)[n(f)],De,(c,g)=>{var h=de(),v=J(h);{var y=m=>{var _=Bl(),k=ue(_);$s(k,{get buttons(){return n(g)}}),se(()=>O(_,1,n(s).buttonGroup)),x(m,_)},p=m=>{$s(m,{get buttons(){return n(g)}})};ve(v,m=>{n(g).length>1?m(y):m(p,!1)})}x(c,h)}),se(()=>O(d,1,`ec-${n(f)??""}`)),x(u,d)}),se(()=>O(l,1,n(s).toolbar)),x(e,l),ke()}var Xl=Q("<div><!> <!> <!></div>");function Kl(e,t){be(t,!0);let r=Ee(t,"plugins",19,()=>[]),i=Ee(t,"options",19,()=>({})),s=new Nl(r(),i());Pn("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),y=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),_=a(()=>s.options.theme),k={...i()};on(()=>{for(let[T,P]of Dl(i(),k))$(()=>{S(T,P)});ge(k,i())});function S(T,P){return ja(P)&&(P={...P}),Kr(P)&&(P=[...P]),s.setOption(T,P,!1),this}function E(T){let P=s.options[T];return Zr(P)?He(P):P}function D(){return s.fetchedRange={start:void 0,end:void 0},this}function w(){return n(u).map(Ue)}function C(T){T=String(T);for(let P of n(u))if(P.id===T)return Ue(P);return null}function M(T){return T=hr([T])[0],n(u).push(T),s.events=[...n(u)],Ue(T)}function q(T){let P=String(T.id),R=n(u).findIndex(G=>G.id===P);return R>=0?(T=hr([T])[0],n(u)[R]=T,s.events=[...n(u)],Ue(T)):null}function L(T){T=String(T);let P=n(u).findIndex(R=>R.id===T);return P>=0&&(n(u).splice(P,1),s.events=[...n(u)]),this}function te(){return Ze(n(c))}function pe(){return n(f).action?.unselect(),this}function W(T,P){let R=En(T,P);if(R){let G=Vt(R)(T,P);return G.date=He(G.date),G}return null}function z(){return s.setOption("date",Ps(K(n(h)),n(v),n(p))),this}function H(){return s.setOption("date",Ms(K(n(h)),n(v),n(p))),this}var F={setOption:S,getOption:E,refetchEvents:D,getEvents:w,getEventById:C,addEvent:M,updateEvent:q,removeEventById:L,getView:te,unselect:pe,dateFromPoint:W,next:z,prev:H},B=Xl();let le;var X=ue(B);ql(X,{});var ye=re(X,2);{var ie=T=>{var P=de(),R=J(P);Ur(R,()=>n(g),(G,Je)=>{Je(G,{})}),x(T,P)};ve(ye,T=>{n(g)&&T(ie)})}var ce=re(ye,2);return oe(ce,17,()=>n(o),De,(T,P)=>{var R=de(),G=J(R);Ur(G,()=>n(P),(Je,Ae)=>{Ae(Je,{})}),x(T,R)}),se(T=>{O(B,1,St([n(_).calendar,n(_).view,n(d)&&n(_)[n(d)],n(m)&&n(_).customScrollbars])),Pe(B,"role",T),le=kt(B,"",le,{height:n(y)})},[()=>n(l).includes("list")?"list":"table"]),x(e,B),ke(F)}function Zl(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return $(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function Jl(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return $(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:mt(K(c)),disabled:Sn(c,i),highlight:r.some(g=>Ke(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Ql(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return $(()=>{for(let l of r)for(let u of i)pt(l.display)?l.allDay&&(o=o.concat(xn(l,u))):s=s.concat(xn(l,u));zs(s)}),{chunks:s,bgChunks:o}}}function jl(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&$(()=>{for(let l of i)s=s.concat(xn(o,l,!1))});return s}}let $l=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#n;get gridEl(){return n(this.#n)}set gridEl(t){b(this.#n,t,!0)}#r;get chunks(){return n(this.#r)}set chunks(t){b(this.#r,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){b(this.#s,t)}#i;get iChunks(){return n(this.#i)}set iChunks(t){b(this.#i,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){b(this.#o,t)}#a;get intlDayPopover(){return n(this.#a)}set intlDayPopover(t){b(this.#a,t)}#l;get popupDay(){return n(this.#l)}set popupDay(t){b(this.#l,t,!0)}constructor(t){this.#e=a(Zl(t)),this.#t=a(Jl(t,this)),this.#n=Z();let r=a(Ql(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#i=a(jl(t,this)),this.hiddenChunks=new ii,this.#o=a(vn(t,"dayCellFormat")),this.#a=a(vn(t,"dayPopoverFormat")),this.#l=Z(null)}};var eu=Q("<div><!></div>");function mr(e,t){be(t,!0);let r=Ee(t,"el",15),i=Ee(t,"allDay",3,!1),s=Ee(t,"resource",3,void 0),o=Ee(t,"dateFromPoint",3,()=>t.date),l=Ee(t,"classes",3,fr),u=Ee(t,"disabled",3,!1),f=Ee(t,"highlight",3,!1),d=Ee(t,"role",3,"cell"),c=Ee(t,"noIeb",3,!1),g=Ee(t,"noBeb",3,!1),h=a(()=>ee("state")),v=a(()=>n(h).today),y=a(()=>n(h).interaction.action),p=a(()=>n(h).options.theme),m=a(()=>ee("view-state")),_=a(()=>n(m).snap),k=a(()=>Ke(t.date,n(v))),S=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,f()&&n(p).highlight,u()&&n(p).disabled,c()&&n(p).noIeb,g()&&n(p).noBeb]));Vn(()=>{Ns(r(),(C,M)=>({allDay:i(),date:o()(C,M),resource:s(),dayEl:r(),disabled:u()}))});let E=a(()=>!u()&&n(y)?C=>n(y).select(C,n(_)):void 0);var D=eu();D.__pointerdown=function(...C){n(E)?.apply(this,C)};var w=ue(D);Ut(w,()=>t.children??Gt),rt(D,C=>r(C),()=>r()),se(()=>{O(D,1,St(n(S))),Pe(D,"role",d())}),x(e,D),ke()}Zt(["pointerdown"]);var tu=Q("<div></div>"),nu=Q("<article><!></article>");function eo(e,t){be(t,!0);let r=Ee(t,"el",15),i=Ee(t,"classes",3,fr),s=Ee(t,"styles",3,fr),o=a(()=>ee("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),f=a(()=>n(o).options.displayEventEnd),d=a(()=>n(o).options.eventBackgroundColor),c=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),h=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),y=a(()=>n(o).options.eventClassNames),p=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),_=a(()=>n(o).options.eventTextColor),k=a(()=>n(o).options.resources),S=a(()=>n(o).options.theme),E=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(E).backgroundColor??yl(n(E),n(k))??n(d)??n(c)),C=a(()=>n(E).textColor??wl(n(E),n(k))??n(_)),M=a(()=>Rs(s()({"background-color":n(w),color:n(C)})).map(T=>`${T[0]}:${T[1]}`).concat(n(E).styles).join(";")),q=a(()=>i()([pt(n(D))?n(S).bgEvent:n(S).event,...fl(n(y),n(E),n(u))])),L=a(()=>ul(t.chunk,n(f),n(g),n(S),n(l),n(u))),te=a(()=>xo(n(L),2)),pe=a(()=>n(te)[0]),W=a(()=>n(te)[1]);Vn(()=>{Ce(n(v))&&n(v)({event:Ue(n(E)),timeText:n(pe),el:r(),view:Ze(n(u))})});function z(T,P){return Ce(T)&&!vr(P)?R=>T({event:Ue(n(E)),el:r(),jsEvent:R,view:Ze(n(u))}):void 0}let H=a(()=>!pt(n(D))&&z(n(h),n(D))||void 0),F=a(()=>n(H)&&Yr(n(H))),B=a(()=>z(n(p),n(D))),le=a(()=>z(n(m),n(D)));var X=nu();X.__click=function(...T){n(H)?.apply(this,T)},X.__keydown=function(...T){n(F)?.apply(this,T)},X.__pointerdown=function(...T){t.onpointerdown?.apply(this,T)};{const T=P=>{var R=tu();Me(R,()=>Xe(n(W))),se(()=>O(R,1,St(n(S).eventBody))),x(P,R)};var ye=ue(X);{var ie=P=>{var R=de(),G=J(R);Ut(G,()=>t.body,()=>T,()=>n(w),()=>n(C)),x(P,R)},ce=P=>{T(P)};ve(ye,P=>{t.body?P(ie):P(ce,!1)})}rt(X,P=>r(P),()=>r())}se(()=>{O(X,1,St(n(q))),kt(X,n(M)),Pe(X,"role",n(H)?"button":void 0),Pe(X,"tabindex",n(H)?0:void 0)}),ut("mouseenter",X,function(...T){n(B)?.apply(this,T)}),ut("mouseleave",X,function(...T){n(le)?.apply(this,T)}),x(e,X),ke()}Zt(["click","keydown","pointerdown"]);var ru=Q("<div><!></div>");function Xn(e,t){be(t,!0);let r=Ee(t,"weekday",3,!0),i=Ee(t,"colSpan",3,1),s=Ee(t,"ariaHidden",3,!1),o=Ee(t,"disabled",3,!1),l=Ee(t,"highlight",3,!1),u=a(()=>ee("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=ru(),g=ue(c);Ut(g,()=>t.children),se(h=>{O(c,1,h),Pe(c,"role",s()?null:"columnheader"),Pe(c,"aria-colspan",s()||i()<=1?null:i()),Pe(c,"aria-colindex",s()?null:t.colIndex),Pe(c,"aria-hidden",s()?"true":null)},[()=>St([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Ke(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),x(e,c),ke()}var iu=Q("<time></time>");function pr(e,t){be(t,!0);let r=Ee(t,"alPrefix",3,""),i=a(()=>ee("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=iu();Me(l,()=>Xe(n(s).format(t.date))),se((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>dt(t.date,10),()=>n(o).format(t.date)]),x(e,l),ke()}function _r(e,t){be(t,!0);let r=Ee(t,"el",15),i=a(()=>ee("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>ee("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>y=>n(s)(y,n(d)));function h(y){return n(o)?.draggable(y)?p=>n(o).drag(y,p,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!pt(n(c))&&!vr(n(c))?h(n(d)):void 0);eo(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(p){r(p)},body:(p,m=Gt)=>{var _=de(),k=J(_);{var S=D=>{var w=de(),C=J(w);Ur(C,()=>n(l),(M,q)=>{q(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(L,te)=>{var pe=de(),W=J(pe);Ut(W,m),x(L,pe)},$$slots:{default:!0}})}),x(D,w)},E=D=>{var w=de(),C=J(w);Ut(C,m),x(D,w)};ve(k,D=>{n(l)?D(S):D(E,!1)})}x(p,_)},$$slots:{body:!0}}),ke()}var su=Q("<time></time>"),ou=Q("<span></span>"),au=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),lu=Q("<div><!> <!></div> <div><!></div>",1);function uu(e,t){be(t,!0);const r=()=>Ga(n(d),"$firstDay",i),[i,s]=Ya();let o=ee("state"),l=ee("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),y=a(()=>l.hiddenChunks),p=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),_=a(()=>t.day.disabled),k=a(()=>t.day.highlight),S=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),E=a(()=>L=>[...L,n(S)&&n(g).otherMonth]),D=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let L;if(n(D)){let te=rl(n(m),r());n(v)?L=Ce(n(v))?n(v)({date:He(n(m)),week:te}):n(v):L="W"+String(te).padStart(2,"0")}return L}),C=a(()=>n(y).get(n(m).getTime())),M=a(()=>{let L="";if(n(C)){let te="+"+n(C).length+" more";n(c)?L=Ce(n(c))?n(c)({num:n(C).length,text:te}):n(c):L=te}return L});function q(){l.popupDay=t.day}mr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(_)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(L,te)=>{var pe=lu(),W=J(pe),z=ue(W);{var H=ie=>{var ce=su();Me(ce,()=>Xe(n(p).format(n(m)))),se(T=>Pe(ce,"datetime",T),[()=>dt(n(m),10)]),x(ie,ce)};ve(z,ie=>{n(u).includes("dayNumber")&&ie(H)})}var F=re(z,2);{var B=ie=>{var ce=ou();Me(ce,()=>Xe(n(w))),se(()=>O(ce,1,n(g).weekNumber)),x(ie,ce)};ve(F,ie=>{n(D)&&ie(B)})}var le=re(W,2),X=ue(le);{var ye=ie=>{var ce=au(),T=a(()=>Jr(q));ce.__click=function(...G){n(T)?.apply(this,G)};var P=a(()=>Yr(q));ce.__keydown=function(...G){n(P)?.apply(this,G)};var R=a(Jr);ce.__pointerdown=function(...G){n(R)?.apply(this,G)},Me(ce,()=>Xe(n(M))),x(ie,ce)};ve(X,ie=>{n(C)&&ie(ye)})}se(()=>{O(W,1,n(g).dayHead),O(le,1,n(g).dayFoot)}),x(L,pe)},$$slots:{default:!0}}),ke(),s()}Zt(["click","keydown","pointerdown"]);function yr(e,t){be(t,!0);let r=Ee(t,"inPopup",3,!1),i=a(()=>ee("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>ee("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=Z(void 0),g=Z(1),h=Z(!1),v=a(()=>t.chunk.event),y=a(()=>t.chunk.event.display),p=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ye(()=>{r()||b(g,hn(n(p).firstElementChild)||1,!0)});let m=a(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!pt(n(y))){let w=r()?1:n(g);if(n(v)._margin){let[C,M]=n(v)._margin;C>w&&t.chunk.gridRow===M&&(w=C)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function _(){b(g,Vs(t.chunk,hn(n(c)),hn(n(p).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let D=hn(n(p))-S(n(p));if(b(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let M=n(f).get(C);M.includes(t.chunk)||n(f).set(C,[...M,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function S(D){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=ft(w,hn(D.lastElementChild)),D=D.nextElementSibling,!!D);++C);return w}var E={reposition:_,hide:k};{let D=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(D)},get forceMargin(){return n(w)},get el(){return n(c)},set el(C){b(c,C,!0)}})}return ke(E)}var fu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function du(e,t){be(t,!0);let r=ee("view-state"),i=a(()=>ee("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=Z(void 0),v=Z(""),y=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),_=a(()=>n(g).dayEnd),k=a(()=>{let z=[];for(let H of n(f))H.gridRow===n(p)&&H.gridColumn<=n(y)&&H.gridColumn+H.dates.length>n(y)&&z.push(ge({},H,Gn(H.event,n(m),n(_))));return z.sort((H,F)=>H.top-F.top),z});Vn(()=>{n(h).show()}),Ye(()=>{n(k).length?$(S):E()});function S(){let z=n(d).children.item((n(p)-1)*n(u)+n(y)-1),H=Qt(n(h)),F=Qt(z),B=Qt(n(d));b(v,"");let le;if(H.width>=B.width){le=B.left-F.left;let ye=F.right-B.right;b(v,n(v)+`inset-inline-end:${ye}px;`)}else le=(F.width-H.width)/2,F.left+le<B.left?le=B.left-F.left:F.left+le+H.width>B.right&&(le=B.right-F.left-H.width);b(v,n(v)+`inset-inline-start:${le}px;`);let X;H.height>=B.height?(X=B.top-F.top,b(v,n(v)+`block-size:${B.height}px;`)):(X=(F.height-H.height)/2,F.top+X<B.top?X=B.top-F.top:F.top+X+H.height>B.bottom&&(X=B.bottom-F.top-H.height)),b(v,n(v)+`inset-block-start:${X}px;`)}function E(){r.popupDay=null}function D(){E(),n(s).action?.noClick()}var w=fu();let C;var M=ue(w),q=ue(M);Me(q,()=>Xe(n(c).format(n(m))));var L=re(q,2);ga(L);var te=a(()=>Jr(E));L.__click=function(...z){n(te)?.apply(this,z)};var pe=a(()=>Yr(E));L.__keydown=function(...z){n(pe)?.apply(this,z)};var W=re(M,2);oe(W,21,()=>n(k),De,(z,H)=>{yr(z,{get chunk(){return n(H)},inPopup:!0})}),rt(w,z=>b(h,z),()=>n(h)),Me(w,()=>Za("pointerdown")),se(z=>{O(w,1,n(l).popup),C=kt(w,n(v),C,{"grid-area":`${n(p)+1} / ${n(y)}`}),O(M,1,n(l).dayHead),Pe(q,"datetime",z),Pe(L,"aria-label",n(o).close),O(W,1,n(l).events)},[()=>dt(n(m),10)]),ut("pointerdownoutside",w,D),ut("close",w,E),x(e,w),ke()}Zt(["click","keydown"]);var cu=Q('<div role="columnheader"><span></span></div>'),hu=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function ai(e,t){be(t,!0);let r=ee("state"),i=new $l(r);Pn("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),y=[];function p(){ti(y,n(d)),n(h).clear(),fn().then(m)}function m(){n(h).size,y.forEach(W=>W.hide())}Ye(p),Ye(m);var _=hu();let k;var S=ue(_),E=ue(S);oe(E,21,()=>n(f)[0],De,(W,z,H)=>{let F=()=>n(z).dayStart;var B=cu();Pe(B,"aria-colindex",1+H);var le=ue(B);Me(le,()=>Xe(n(s).format(F()))),se((X,ye)=>{O(B,1,X),Pe(le,"aria-label",ye)},[()=>St([n(u).colHead,n(u).weekdays?.[F().getUTCDay()]]),()=>n(o).format(F())]),x(W,B)});var D=re(S,2),w=ue(D);oe(w,21,()=>n(f),De,(W,z,H)=>{var F=de(),B=J(F);oe(B,17,()=>n(z),De,(le,X,ye)=>{{let ie=a(()=>ye+1===n(z).length),ce=a(()=>H+1===n(f).length);uu(le,{get day(){return n(X)},get noIeb(){return n(ie)},get noBeb(){return n(ce)}})}}),x(W,F)}),rt(w,W=>i.gridEl=W,()=>i?.gridEl);var C=re(w,2),M=ue(C);oe(M,19,()=>n(d),W=>W.id,(W,z,H)=>{rt(yr(W,{get chunk(){return n(z)}}),(F,B)=>y[B]=F,F=>y?.[F],()=>[n(H)])});var q=re(M,2);oe(q,17,()=>n(c),W=>W.id,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var L=re(q,2);oe(L,17,()=>n(g),De,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var te=re(D,2);{var pe=W=>{du(W,{})};ve(te,W=>{n(v)&&W(pe)})}rt(_,W=>r.mainEl=W,()=>r?.mainEl),Me(_,()=>qr(p)),se(()=>{O(_,1,St([n(u).main,n(l)===!0&&n(u).uniform])),k=kt(_,"",k,{"--ec-grid-cols":n(f)[0].length,"--ec-grid-rows":n(f).length}),O(S,1,n(u).header),O(E,1,n(u).grid),O(D,1,n(u).body),O(w,1,n(u).grid),O(C,1,n(u).events)}),x(e,_),ke()}const vu={createOptions(e){ge(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ge(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ge(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ge(e.views,{dayGridDay:{buttonText:Yn,component:()=>ai,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:it("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:qn,component:()=>ai,displayEventEnd:!1,theme:it("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:ri,component:gu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:it("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function gu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Is(t,i),end:nl(r,i)}},ai}function to(e,t,r){return e.startEditable??t??e.editable??r}function mu(e,t,r){return e.durationEditable??t??e.editable??r}let li=!1;function pu(e){li||(li=!0,window.requestAnimationFrame(()=>{e(),li=!1}))}function no(e,t,r){return ft(t,Rt(r,e))}function _u(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,vr(l)?[i[l]]:!pt(l)&&to(o,r,t)?[i.draggable]:[]]}}}function yu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Bn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class wu{constructor(t){this.#e(t)}#e(t){on(_u(t)),Ye(yu(t))}}function bu(e,t){be(t,!0);let r=ee("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),y=a(()=>r.options.eventDragStart),p=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),_=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),E=a(()=>r.options.eventResize),D=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),M=a(()=>r.options.select),q=a(()=>r.options.selectBackgroundColor),L=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),pe=a(()=>r.options.selectMinDistance),W=a(()=>r.options.unselect),z=a(()=>r.options.unselectAuto),H=a(()=>r.options.unselectCancel),F=a(()=>r.options.validRange);const B=1,le=2,X=3,ye=4,ie=5,ce=6;let T,P,R,G,Je,Ae,Lt,V,ae,xe,N,U,Y,fe,Re,we,Ie,Oe,ne,ze,ct,et,_t,Ne,gn,Bt,jt;function Af(I){return to(I,n(h),n(g))}function Of(I,A,me,j,Qe){T||(T=wi(A)?B:ce,mn()&&(R=I,yi(A,Qe),me&&(Ae=me),j&&(gn=j),Oe="dragging",Rn(A)))}function Nf(I,A,me,j,Qe,Zn,ki,Jf){T||(T=wi(A)?me?X:le:ce,mn()&&(R=I,yi(A,Jf),Qe&&(Ae=Qe),Zn&&(gn=Zn),Oe=j==="x"?"resizingX":"resizingY",Cr()?(ne=K(R.end),Ie?(Qr(ne,R.start),ne>=R.end&&Dn(ne)):(cr(ne,Bt),ne<R.start&&(ne=R.start),Ae=R.start)):(ne=K(R.start),Ie?(Qr(ne,R.end),ne<=R.start&&!ki&&mt(ne)):(Se(ne,Bt),ne>R.end&&(ne=R.end),Ae=R.end,ki||(Ae=cr(K(Ae),Bt))),ki&&!Ie&&(jt=Bt)),Rn(A)))}function Ff(I,A){T||(T=wi(I)?n(C)&&!n(o).includes("list")?ye:ie:ce,mn()&&(yi(I,A),Oe="selecting",ze=Ie?Fe({day:1}):Bt,R={allDay:Ie,start:Ae,end:Se(K(Ae),ze),resourceIds:V?[V.id]:[]},Rn(I)))}function Hf(){T||(T=ce)}function yi(I,A){window.getSelection().removeAllRanges(),xe=U=I.clientX,N=Y=I.clientY,Bt=A?.duration;let me=En(U,Y);({allDay:Ie,date:Ae,resource:V}=Vt(me)(U,Y)),Re=n(u)!==Hs(me,3),fe=Hs(me,1),mo(),I.pointerType!=="mouse"&&(_t=setTimeout(()=>{T&&(P=!0,Rn(I))},($t()?n(te):n(_))??n(D)))}function Rn(I){if(P||I&&I.pointerType==="mouse"&&Bf()>=($t()?n(pe):n(v))){P=!0,Dr(I),r.iClass=Oe,G||($t()?Vf():zf(I,In()?n(k):n(y)));let A=Kn(Uf());if(A){let me;if({allDay:me,date:Lt,resource:ae}=A,me===Ie){let j=kr({},G),Qe=n(w);we=Fe((Lt-Ae)/1e3),Cr()?(j.start=Se(K(R.start),we),j.start>ne&&(j.start=ne,we=Fe((ne-R.start)/1e3))):(j.end=Se(K(R.end),we),jt&&Se(j.end,jt),In()?j.end<ne&&(j.end=ne,we=Fe((ne-R.end)/1e3)):$t()?(j.end<R.end?(j.start=cr(j.end,ze),j.end=R.end):j.start=R.start,Qe=n(L)):(j.start=Se(K(R.start),we),V&&(j.resourceIds=R.resourceIds.filter(Zn=>Zn!==V.id),j.resourceIds.push(ae.id)),Qe=n(d)));do{if(Qe!==void 0&&(j=kr(ei(R),j),Qe($t()?wo(j,I):bo(j,R,I))===!1)){yo(R);break}yo(j)}while(!1)}}}if(n(c)){let A=24,me=24;pu(()=>{Ne&&(Re||(Y<Ne.top+A&&(n(u).scrollTop+=ft(-8,(Y-Ne.top-A)/3)),Y>Ne.bottom-A&&(n(u).scrollTop+=Rt(8,(Y-Ne.bottom+A)/3))),U<Ne.left+me&&(n(u).scrollLeft+=ft(-8,(U-Ne.left-me)/3)),U>Ne.right-me&&(n(u).scrollLeft+=Rt(8,(U-Ne.right+me)/3)),Y<A&&window.scrollBy(0,ft(-8,(Y-A)/3)),Y>window.innerHeight-A&&window.scrollBy(0,Rt(8,(Y-window.innerHeight+A)/3)))})}}function vo(){mn()&&(mo(),Rn())}function Wf(I){mn()&&I.isPrimary&&(U=I.clientX,Y=I.clientY,Rn(I))}function go(I){if(ct&&n(z)&&!(n(H)&&I.target.closest(n(H)))&&Dr(I),T&&I.isPrimary){if(P)if($t()){if(ct=!0,Ce(n(M))){let A=wo(G,I);n(M)(A)}}else{R.display=Je;let A=In()?n(S):n(p);Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))});let me=ei(R);if(_o(R,G),po(),A=In()?n(E):n(m),Ce(A)){let j=R,Qe=bo(R,me,I);A(ge(Qe,{revert(){_o(j,me)}}))}}else if((Gf()||$t())&&Ce(n(f))&&!et){U=I.clientX,Y=I.clientY;let A=En(U,Y);if(A){let{allDay:me,date:j,resource:Qe}=Vt(A)(U,Y);n(f)({allDay:me,date:He(j),dateStr:dt(j),dayEl:A,jsEvent:I,view:Ze(n(l)),resource:Qe})}}P=!1,T=xe=N=U=Y=R=Je=Ae=Lt=V=ae=we=jt=Ie=ne=ze=gn=fe=Ne=Bt=void 0,r.iClass=void 0,_t&&(clearTimeout(_t),_t=void 0)}et=!1}function Uf(){return En(no(U,Ne.left,Ne.right),no(Y,Ne.top,Ne.bottom))}function Kn(I){if(I){let A=Vt(I)(U,Y);if(A.disabled){if(!n(F).end||A.date<n(F).end)return Kn(I.nextElementSibling);if(!n(F).start||A.date>n(F).start)return Kn(I.previousElementSibling)}else return($t()||In())&&A.resource&&!G.resourceIds.includes(A.resource.id)&&!n(o).includes("timeline")?U>xe?Kn(I.previousElementSibling):Kn(I.nextElementSibling):A}return null}function mo(){let I=Qt(n(u)),A=Qt(fe),me=I.width/n(u).offsetWidth,j=I.height/n(u).offsetHeight,Qe=cn();Ne={left:ft(0,Qe?I.right-n(u).clientWidth*me:A.left+n(u).scrollLeft*me),right:Rt(document.documentElement.clientWidth,Qe?A.right+n(u).scrollLeft*me:I.left+n(u).clientWidth*me)-2,top:ft(0,A.top+(Re?0:n(u).scrollTop)*j),bottom:Rt(document.documentElement.clientHeight,Re?A.bottom:I.top+n(u).clientHeight*j)-2}}function zf(I,A){Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))}),Je=R.display,R.display="preview",G=ei(R),gn!==void 0&&(G._margin=gn),jt&&Se(G.end,jt),R.display="ghost",r.events=[...n(i)]}function Vf(){G={id:"{select}",allDay:R.allDay,start:R.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(q),resourceIds:R.resourceIds,classNames:[],styles:[]}}function po(){G=void 0,n(s).delete("action")}function kr(I,A){return I.start=A.start,I.end=A.end,I.resourceIds=A.resourceIds,{...I}}function _o(I,A){kr(I,A),r.events=[...n(i)]}function yo(I){G=kr(G,I),n(s).set("action",G)}function wo(I,A){let{start:me,end:j}=Ue(I);return{start:me,end:j,startStr:dt(I.start),endStr:dt(I.end),allDay:Ie,view:Ze(n(l)),resource:V,jsEvent:A}}function bo(I,A,me){let j;return In()?j=Cr()?{startDelta:we,endDelta:Fe(0)}:{startDelta:Fe(0),endDelta:we}:j={delta:we,oldResource:V!==ae?V:void 0,newResource:V!==ae?ae:void 0},ge(j,{event:Ue(I),oldEvent:Ue(A),view:Ze(n(l)),jsEvent:me}),j}function Bf(){return Math.sqrt(Math.pow(U-xe,2)+Math.pow(Y-N,2))}function In(){return T===le||Cr()}function Cr(){return T===X}function Gf(){return T===ie}function $t(){return T===ye}function mn(){return T&&T<ie}function wi(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Dr(I){ct&&(ct=!1,po(),Ce(n(W))&&n(W)({jsEvent:I,view:Ze(n(l))}))}on(()=>{n(l),Dr()});function Yf(){et=!0}function qf(I){if(mn()){let A=I.target,me=[],j=()=>el(me);me.push(Bn(A,"touchmove",bi(()=>P))),me.push(Bn(A,"touchend",j)),me.push(Bn(A,"touchcancel",j))}}function bi(I){return A=>{I()&&A.preventDefault()}}Vn(()=>Bn(window,"touchmove",tl,{passive:!1}));var Xf={draggable:Af,drag:Of,resize:Nf,select:Ff,noAction:Hf,handleScroll:vo,unselect:Dr,noClick:Yf};ut("pointermove",wt,Wf),ut("pointerup",wt,go),ut("pointercancel",wt,go),ut("scroll",wt,vo);var Kf=a(()=>bi(mn));ut("selectstart",wt,function(...I){n(Kf)?.apply(this,I)});var Zf=a(()=>bi(()=>_t));return ut("contextmenu",wt,function(...I){n(Zf)?.apply(this,I)}),ut("touchstart",wt,qf,void 0,!0),ke(Xf)}function ku(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let p=En(o,l);if(p&&!n(i).has("action")){let{allDay:m,date:_,resource:k,disabled:S}=Vt(p)(o,l);if(!S){u||g(),u.allDay=m,u.start=_,u.end=Se(K(_),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(p){v(p)&&(o=p.clientX,l=p.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(p){return p.isPrimary&&p.pointerType==="mouse"}var y={handleScroll:d};return ut("pointermove",wt,c),ut("scroll",wt,d),ke(y)}var Cu=Q("<div></div>"),Du=Q("<div></div>"),Eu=Q("<!> <!> <!>",1);function Tu(e,t){be(t,!0);let r=Ee(t,"forceDate",3,void 0),i=Ee(t,"forceMargin",3,void 0),s=a(()=>ee("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),c=a(()=>ee("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),y=a(()=>!pt(n(v))&&!vr(n(v))&&mu(n(h),n(u),n(l)));function p(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Eu(),_=J(m);{var k=w=>{var C=Cu(),M=a(()=>p(!0));C.__pointerdown=function(...q){n(M)?.apply(this,q)},se(()=>O(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),x(w,C)};ve(_,w=>{n(y)&&n(f)&&w(k)})}var S=re(_,2);Ut(S,()=>t.children);var E=re(S,2);{var D=w=>{var C=Du(),M=a(()=>p(!1));C.__pointerdown=function(...q){n(M)?.apply(this,q)},se(()=>O(C,1,n(d).resizer)),x(w,C)};ve(E,w=>{n(y)&&w(D)})}x(e,m),ke()}Zt(["pointerdown"]);var xu=Q("<!> <!>",1);function Su(e,t){be(t,!0);let r=ee("state");new wu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Tu;var o=xu(),l=J(o);rt(bu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=re(l,2);{var f=d=>{rt(ku(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};ve(u,d=>{n(s)&&d(f)})}x(e,o),ke()}const Ru={createOptions(e){ge(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),ge(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(Su)}};let Iu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#t;get intlListDaySide(){return n(this.#t)}set intlListDaySide(t){b(this.#t,t)}constructor(t){this.#e=a(vn(t,"listDayFormat")),this.#t=a(vn(t,"listDaySideFormat"))}};var Lu=Q("<div></div> <!>",1);function Pu(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).interaction),s=a(()=>n(r).options.theme),o=a(()=>l=>(delete l["background-color"],delete l.color,l));{const l=(f,d=Gt,c=Gt,g=Gt)=>{var h=Lu(),v=J(h);let y;var p=re(v,2);Ut(p,d),se(()=>{O(v,1,n(s).eventTag),y=kt(v,"",y,{"background-color":c()})}),x(f,h)};let u=a(()=>n(i).action?.noAction);eo(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}ke()}var Mu=Q("<h4><time></time> <time></time></h4> <!>",1);function Au(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).filteredEvents),s=a(()=>n(r).options.highlightedDates),o=a(()=>n(r).options.theme),l=a(()=>n(r).options.validRange),u=a(()=>ee("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(_=>Ke(_,t.date))),g=a(()=>Sn(t.date,n(l))),h=a(()=>dt(t.date,10)),v=a(()=>{let _=[];if(!n(g)){let k=t.date,S=mt(K(t.date));for(let E of n(i))if(!pt(E.display)&&Tn(E,k,S)){let D=Gn(E,k,S);_.push(D)}}return _});var y=de(),p=J(y);{var m=_=>{mr(_,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,S)=>{var E=Mu(),D=J(E),w=ue(D);Me(w,()=>Xe(n(f).format(t.date)));var C=re(w,2);Me(C,()=>Xe(n(d).format(t.date)));var M=re(D,2);oe(M,17,()=>n(v),q=>q.event,(q,L)=>{Pu(q,{get chunk(){return n(L)}})}),se(()=>{O(D,1,n(o).dayHead),Pe(w,"datetime",n(h)),O(C,1,n(o).daySide),Pe(C,"datetime",n(h))}),x(k,E)},$$slots:{default:!0}})};ve(p,_=>{n(v).length&&_(m)})}x(e,y),ke()}var Ou=Q("<div></div>"),Nu=Q("<section><!></section>");function Fu(e,t){be(t,!0);let r=ee("state"),i=new Iu(r);Pn("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),c=a(()=>{let _=!0;if(n(l).length){let k=n(l)[0],S=mt(K(n(l).at(-1)));for(let E of n(s))if(!pt(E.display)&&E.start<S&&E.end>k){_=!1;break}}return _}),g=a(()=>Ce(n(f))?n(f)():n(f));function h(_){Ce(n(u))&&n(u)({jsEvent:_,view:Ze(n(o))})}var v=Nu(),y=ue(v);{var p=_=>{var k=Ou();k.__click=h,Me(k,()=>Xe(n(g))),se(()=>O(k,1,n(d).noEvents)),x(_,k)},m=_=>{var k=de(),S=J(k);oe(S,17,()=>n(l),De,(E,D)=>{Au(E,{get date(){return n(D)}})}),x(_,k)};ve(y,_=>{n(c)?_(p):_(m,!1)})}rt(v,_=>r.mainEl=_,()=>r?.mainEl),se(()=>O(v,1,n(d).main)),x(e,v),ke()}Zt(["click"]);const Hu={createOptions(e){ge(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ge(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ge(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ge(e.views,{listDay:{buttonText:Yn,component:wr,duration:{days:1},theme:it("ec-list ec-day-view")},listWeek:{buttonText:qn,component:wr,duration:{weeks:1},theme:it("ec-list ec-week-view")},listMonth:{buttonText:ri,component:wr,duration:{months:1},theme:it("ec-list ec-month-view")},listYear:{buttonText:ml,component:wr,duration:{years:1},theme:it("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Fu}function ui(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Tn(e,u,f,l)){let c=Gn(e,u,f);ge(c,{gridColumn:s,gridRow:o,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&ni(c),i.push(c)}return i}function Wu(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function Uu(e){let t="all-day",r;return e?(r=Ce(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function fi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>dr){Se(Dn(r),i);let s=Dn(K(r));s<t&&(t=s)}return{start:t,end:r}}}function di(e){"scrollTime"in e||(ge(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),ge(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function ro(e){"allDaySlot"in e||(ge(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ge(e.theme,{allDay:"ec-all-day"}))}function ci(e){"scrollTime"in e||ge(e,{scrollTime:Fe,slotDuration:Fe,slotLabelInterval:t=>t!==void 0?Fe(t):void 0,slotMaxTime:Fe,slotMinTime:Fe,snapDuration:t=>t!==void 0?Fe(t):void 0})}function io(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function zu(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return $(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(K(f),o.min),end:Se(K(f),o.max),dayStart:f,dayEnd:mt(K(f)),disabled:Sn(f,s),highlight:i.some(d=>Ke(d,f))}),++u}),[l]}}function Vu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return $(()=>{for(let f of r)for(let d of i)pt(f.display)?(o=o.concat(ui(f,d)),f.allDay&&(u=u.concat(xn(f,d)))):f.allDay?l=l.concat(xn(f,d)):s=s.concat(ui(f,d));Wu(s),zs(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Bu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&$(()=>{for(let u of i)l.allDay?o=o.concat(xn(l,u,!1)):s=s.concat(ui(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function Gu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return $(()=>{l=Zs(s,o,i,r,t)}),l}}function Yu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return $(()=>{i=r===void 0?_e(t)<3600?2:1:Ja(_e(r)/_e(t))||1}),i}}function qu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return $(()=>{l=Ks(zt(It()),r,s,o,i)}),l}}function Xu(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function hi(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#t;get slotLabelPeriodicity(){return n(this.#t)}set slotLabelPeriodicity(e){b(this.#t,e)}#n;get sidebarWidth(){return n(this.#n)}set sidebarWidth(e){b(this.#n,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(vn(e,"slotLabelFormat")),this.#t=a(Yu(e)),this.#n=Z(0),this.#r=a(Xu(e))}}}function so(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#t;get slots(){return n(this.#t)}set slots(t){b(this.#t,t)}#n;get chunks(){return n(this.#n)}set chunks(t){b(this.#n,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get allDayChunks(){return n(this.#s)}set allDayChunks(t){b(this.#s,t)}#i;get allDayBgChunks(){return n(this.#i)}set allDayBgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get allDayIChunks(){return n(this.#a)}set allDayIChunks(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(Gu(t)),this.#t=a(qu(t,this));let r=a(Vu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#n=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(Bu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let Ku=class extends so(hi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(zu(t,this))}};function Zu(e){return()=>{let{activeRange:t,filteredEvents:r,options:{filterResourcesWithEvents:i,resources:s},extensions:{viewResources:o}}=e,l=o?o(s):s;return $(()=>{i&&(l=s.filter(u=>r.some(f=>Tn(f,t.start,t.end,u)))),l.length||(l=Ys([{}]))}),l}}function Ju(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return $(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let y=i?g:v,p=i?v:g;h.push({gridColumn:d,gridRow:1,resource:p,start:Se(K(y),l.min),end:Se(K(y),l.max),dayStart:y,dayEnd:mt(K(y)),disabled:Sn(y,o),highlight:s.some(m=>Ke(m,y))}),++d}f.push(h)}}),f}}function oo(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Zu(t))}}}let Qu=class extends oo(so(hi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Ju(t,this))}};var ju=Q("<span></span>");function vi(e,t){be(t,!0);let r=Ee(t,"date",3,void 0),i=Ee(t,"setLabel",3,void 0),s=a(()=>ee("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=Z(void 0),d=a(()=>n(l)?Ce(n(l))?n(l)({resource:t.resource,date:r()?He(r()):void 0}):n(l):t.resource.title),c=Z(void 0);Ye(()=>{n(d),$(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Vn(()=>{Ce(n(u))&&n(u)({resource:t.resource,date:r()?He(r()):void 0,el:n(f)})});var g=ju();rt(g,h=>b(f,h),()=>n(f)),Me(g,()=>Xe(n(d))),se(()=>Pe(g,"aria-label",n(c))),x(e,g),ke()}function ao(e,t){be(t,!0);let r=Ee(t,"allDay",3,!1),i=a(()=>ee("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>ee("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,p){if(r())return n(u);{let m=Qt(n(h)),_=m.height/n(h).offsetHeight;return Se(K(n(f)),n(l).duration,Xr((p-m.top)/(n(s)*n(l).ratio*_)))}}mr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),ke()}function gi(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=_e(n(s)),d=t.chunk.top/f*n(o),c=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});_r(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),ke()}function mi(e,t){be(t,!0);let r=Z(void 0),i=Z(0),s=a(()=>t.chunk.event),o=a(()=>f=>(f["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(f["margin-block-start"]=`${n(s)._margin??n(i)}px`),f));function l(){b(i,Vs(t.chunk,hn(n(r))),!0)}var u={reposition:l};return _r(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(f){b(r,f,!0)}}),ke(u)}var $u=Q("<div></div>");function br(e,t){be(t,!0);let r=Ee(t,"span",3,1),i=a(()=>ee("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),c=a(()=>ee("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Ke(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(o)<n(y)||n(o)>n(p))return null;let w=_e(n(u));return(n(o)-n(y))/1e3/w*n(f)}),_=a(()=>({root:n(s),rootMargin:cn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function k(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var S=de(),E=J(S);{var D=w=>{var C=$u();let M;Me(C,()=>Ss(k,n(_))),se(()=>{O(C,1,n(d).nowIndicator),M=kt(C,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),x(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),ke()}var ef=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),tf=Q("<div><time></time></div>"),nf=Q('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function lo(e,t){be(t,!0);let r=Ee(t,"viewState",7),i=ee("state");r()||r(new Ku(i)),Pn("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),y=a(()=>r().allDayChunks),p=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),_=a(()=>r().bgChunks),k=a(()=>r().chunks),S=a(()=>r().iChunks),E=a(()=>r().grid),D=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),q=Z(0),L=a(()=>Uu(n(l)));Ye(()=>{n(o),n(c),fn().then(te)});function te(){n(s).scrollTop=((_e(n(c))-_e(n(M).min))/_e(n(h))-.5)*n(g)}let pe=[];function W(){ti(pe,n(y))}Ye(W);var z=nf();let H;var F=ue(z),B=ue(F),le=re(B,2),X=ue(le);{var ye=N=>{var U=de(),Y=J(U);Ut(Y,()=>t.header),x(N,U)},ie=N=>{var U=de(),Y=J(U);oe(Y,17,()=>n(E)[0],De,(fe,Re,we)=>{let Ie=()=>n(Re).dayStart,Oe=()=>n(Re).disabled,ne=()=>n(Re).highlight;Xn(fe,{get date(){return Ie()},colIndex:1+we,get disabled(){return Oe()},get highlight(){return ne()},children:(ze,ct)=>{pr(ze,{get date(){return Ie()}})},$$slots:{default:!0}})}),x(N,U)};ve(X,N=>{t.header?N(ye):N(ie,!1)})}var ce=re(le,2);{var T=N=>{var U=ef(),Y=ue(U);Me(Y,()=>Xe(n(L)));var fe=re(Y,2);oe(fe,21,()=>n(E),De,(ne,ze,ct)=>{var et=de(),_t=J(et);oe(_t,17,()=>n(ze),De,(Ne,gn,Bt)=>{{let jt=a(()=>ct+1===n(E).length&&Bt+1===n(ze).length);ao(Ne,{get day(){return n(gn)},allDay:!0,get noIeb(){return n(jt)}})}}),x(ne,et)});var Re=re(fe,2),we=ue(Re);oe(we,19,()=>n(y),ne=>ne.id,(ne,ze,ct)=>{rt(mi(ne,{get chunk(){return n(ze)}}),(et,_t)=>pe[_t]=et,et=>pe?.[et],()=>[n(ct)])});var Ie=re(we,2);oe(Ie,17,()=>n(p),ne=>ne.id,(ne,ze)=>{mi(ne,{get chunk(){return n(ze)}})});var Oe=re(Ie,2);oe(Oe,17,()=>n(m),De,(ne,ze)=>{mi(ne,{get chunk(){return n(ze)}})}),se(()=>{O(U,1,n(v).allDay),O(Y,1,n(v).sidebar),O(fe,1,n(v).grid),O(Re,1,n(v).events)}),x(N,U)};ve(ce,N=>{n(u)&&N(T)})}var P=re(F,2),R=ue(P);oe(R,21,()=>n(w),De,(N,U,Y)=>{var fe=tf();let Re;var we=ue(fe);Me(we,()=>Xe(n(U)[1])),se(()=>{O(fe,1,St([n(v).slot,!Y&&n(v).hidden])),Re=kt(fe,"",Re,{"--ec-slot-label-periodicity":n(U)[2]}),Pe(we,"datetime",n(U)[0])}),x(N,fe)});var G=re(R,2);oe(G,21,()=>n(E),De,(N,U,Y)=>{var fe=de(),Re=J(fe);oe(Re,17,()=>n(U),De,(we,Ie,Oe)=>{{let ne=a(()=>Y+1===n(E).length&&Oe+1===n(U).length);ao(we,{get day(){return n(Ie)},get noIeb(){return n(ne)},noBeb:!0})}}),x(N,fe)});var Je=re(G,2),Ae=ue(Je);oe(Ae,17,()=>n(k),N=>N.id,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var Lt=re(Ae,2);oe(Lt,17,()=>n(_),N=>N.id,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var V=re(Lt,2);oe(V,17,()=>n(S),De,(N,U)=>{gi(N,{get chunk(){return n(U)}})});var ae=re(P,2);{var xe=N=>{var U=de(),Y=J(U);{var fe=we=>{var Ie=de(),Oe=J(Ie);Ut(Oe,()=>t.nowIndicator),x(we,Ie)},Re=we=>{br(we,{get days(){return n(E)[0]}})};ve(Y,we=>{t.nowIndicator?we(fe):we(Re,!1)})}x(N,U)};ve(ae,N=>{n(d)&&N(xe)})}rt(z,N=>i.mainEl=N,()=>i?.mainEl),Me(z,()=>qr(W)),se(()=>{O(z,1,n(v).main),H=kt(z,"",H,{"--ec-grid-cols":n(E).length*n(E)[0].length,"--ec-col-group-span":n(E)[0].length,"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`}),O(F,1,n(v).header),O(B,1,n(v).sidebar),O(le,1,n(v).grid),O(P,1,n(v).body),O(R,1,n(v).sidebar),O(G,1,n(v).grid),O(Je,1,n(v).events)}),lr(B,"offsetWidth",N=>r().sidebarWidth=N),lr(F,"offsetHeight",N=>b(q,N)),x(e,z),ke()}var rf=Q("<!> <!>",1);function sf(e,t){be(t,!0);let r=ee("state"),i=new Qu(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=tt([]);Ye(()=>{n(f)&&(n(l),n(u),fn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let y of n(c)){let p=y[0];if(Ke(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(c).length*y.length)*(p.gridColumn-1)*(cn()?-1:1);break}}}lo(e,{get viewState(){return i},header:m=>{var _=rf(),k=J(_);oe(k,17,()=>n(c),De,(D,w,C)=>{const M=a(()=>{const{dayStart:q,resource:L,disabled:te,highlight:pe}=n(w)[0];return{date:q,resource:L,disabled:te,highlight:pe}});{let q=a(()=>n(c)[0].length>1?n(d).colGroup:void 0),L=a(()=>1+C*n(w).length),te=a(()=>n(f)&&n(M).disabled),pe=a(()=>n(f)&&n(M).highlight);Xn(D,{get date(){return n(M).date},get className(){return n(q)},get weekday(){return n(f)},get colSpan(){return n(w).length},get colIndex(){return n(L)},get disabled(){return n(te)},get highlight(){return n(pe)},children:(W,z)=>{var H=de(),F=J(H);{var B=X=>{pr(X,{get date(){return n(M).date}})},le=X=>{vi(X,{get resource(){return n(M).resource},setLabel:ye=>h[C]=ye+", "})};ve(F,X=>{n(f)?X(B):X(le,!1)})}x(W,H)},$$slots:{default:!0}})}});var S=re(k,2);{var E=D=>{var w=de(),C=J(w);oe(C,17,()=>n(c),De,(M,q,L)=>{var te=de(),pe=J(te);oe(pe,17,()=>n(q),De,(W,z,H)=>{const F=a(()=>{const{dayStart:B,resource:le,disabled:X,highlight:ye}=n(z);return{date:B,resource:le,disabled:X,highlight:ye}});{let B=a(()=>1+H+L*n(q).length);Xn(W,{get date(){return n(F).date},get colIndex(){return n(B)},get disabled(){return n(F).disabled},get highlight(){return n(F).highlight},children:(le,X)=>{var ye=de(),ie=J(ye);{var ce=P=>{vi(P,{get resource(){return n(F).resource},get date(){return n(F).date}})},T=P=>{pr(P,{get date(){return n(F).date},get alPrefix(){return h[L]}})};ve(ie,P=>{n(f)?P(ce):P(T,!1)})}x(le,ye)},$$slots:{default:!0}})}}),x(M,te)}),x(D,w)};ve(S,D=>{n(c)[0].length>1&&D(E)})}x(m,_)},nowIndicator:m=>{var _=de(),k=J(_);{var S=D=>{{let w=a(()=>n(c).flat());br(D,{get days(){return n(w)},get span(){return n(c)[0].length}})}},E=D=>{var w=de(),C=J(w);{var M=L=>{var te=de(),pe=J(te);oe(pe,17,()=>n(c),De,(W,z)=>{br(W,{get days(){return n(z)}})}),x(L,te)},q=L=>{{let te=a(()=>n(c).flat());br(L,{get days(){return n(te)},get span(){return n(c).length}})}};ve(C,L=>{n(c)[0].length>1?L(M):L(q,!1)})}x(D,w)};ve(k,D=>{n(f)?D(S):D(E,!1)})}x(m,_)},$$slots:{header:!0,nowIndicator:!0}}),ke()}const of={createOptions(e){ro(e),di(e),io(e),ge(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ge(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ge(e.theme,{colGroup:"ec-col-group"}),ge(e.views,{resourceTimeGridDay:{buttonText:Yn,component:uo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:qn,component:uo,duration:{weeks:1},theme:it("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function uo(e){return fi(e),sf}function pi(e,t,r,i=!0){let s=[],o,l,u,f,d,c=0;for(let{gridColumn:g,gridRow:h,resource:v,dayStart:y,dayEnd:p,start:m,end:_,disabled:k}of t)k||(r?Tn(e,y,p,v)&&(s.length||(o=y,u=g,f=h),s.push(y),l=_):Tn(e,m,_,v)&&(s.length||(o=m,u=g,f=h,d=ft(e.start-m,0)/1e3),s.push(y),l=_,c+=(Rt(_,e.end)-ft(m,e.start))/1e3));if(s.length){let g=Gn(e,o,l);return ge(g,{gridColumn:u,gridRow:f,dates:s,left:d,width:c}),i&&ni(g),[g]}return[]}function af(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let l=0;l<r.dates.length;++l){let u=`${s}_${i+l}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function lf(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return ge(e,{top:i,bottom:s}),i}function uf(e,t){return e[t.getTime()]??{min:Fe(0),max:Fe("24:00:00")}}function ff(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return $(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Se(K(h),v.min),end:Se(K(h),v.max),dayStart:h,dayEnd:mt(K(h)),disabled:Sn(h,s),highlight:i.some(y=>Ke(y,h))}),++g}u.push(c),++f}}),u}}function df(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return $(()=>{for(let u of r)for(let f of i)pt(u.display)?(!s||u.allDay)&&(l=l.concat(pi(u,f,s))):o=o.concat(pi(u,f,s));af(o)}),{chunks:o,bgChunks:l}}}function cf(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&$(()=>{for(let u of i)o=o.concat(pi(l,u,s,!1))});return o}}function hf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return $(()=>{for(let u of r)l[u.getTime()]=Zs(s,o,i,[u],t)}),l}}function vf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return $(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?Ks(f,i,l,s[d],o):[]}}),u}}function gf(e){return()=>{let{options:{resources:t}}=e,r;return $(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function mf(e){return()=>{let{options:{slotDuration:t}}=e,r;return $(()=>{r=!_e(t)}),r}}class pf extends oo(hi()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#t;get daySlots(){return n(this.#t)}set daySlots(t){b(this.#t,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#r;get monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(hf(t)),this.#t=a(vf(t,this)),this.#n=a(ff(t,this)),this.#r=a(mf(t));let r=a(df(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(cf(t,this)),this.#a=a(gf(t))}}function _f(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>ee("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=Z(void 0);function v(y,p){if(n(o))return n(u);{let m=Qt(n(h)),_=m.width/n(h).offsetWidth;return Se(K(n(f)),n(l).duration,Xr((cn()?m.right-y:y-m.left)/(n(i)*n(l).ratio*_)))}}mr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(y){b(h,y,!0)}}),ke()}function _i(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>ee("view-state")),l=a(()=>n(o).monthView),u=Z(void 0),f=Z(1),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let p=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${p}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let y=n(f);if(n(d)._margin){let[p,m]=n(d)._margin;t.chunk.gridRow===m&&(y=p)}return v["margin-block-start"]=`${y}px`,v});function g(){b(f,lf(t.chunk,hn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(y){b(u,y,!0)}})}return ke(h)}var yf=Q("<span></span>"),wf=Q("<button><!></button>"),bf=Q("<!> <span><!></span>",1);function kf(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=Z({}),u=Z(!0);on(()=>{b(l,Vt(t.resource)),b(u,n(l).expanded,!0)});function f(){b(u,!n(u)),n(l).expanded=n(u),d(n(l).children,n(u)),n(i).resources=[...n(s)]}function d(p,m){for(let _ of p){let k=Vt(_);k.hidden=!m,k.expanded&&d(k.children,m)}}var c=bf(),g=J(c);oe(g,17,()=>Array(n(l).level),De,(p,m)=>{var _=yf();se(()=>O(_,1,n(o).expander)),x(p,_)});var h=re(g,2),v=ue(h);{var y=p=>{var m=wf();m.__click=f;var _=ue(m);{var k=E=>{var D=ws("−");x(E,D)},S=E=>{var D=ws("+");x(E,D)};ve(_,E=>{n(u)?E(k):E(S,!1)})}se(()=>O(m,1,n(o).button)),x(p,m)};ve(v,p=>{n(l).children?.length&&p(y)})}se(()=>O(h,1,n(o).expander)),x(e,c),ke()}Zt(["click"]);var Cf=Q("<div></div>");function Df(e,t){be(t,!0);let r=a(()=>ee("state")),i=a(()=>n(r).mainEl),s=a(()=>n(r).now),o=a(()=>n(r).today),l=a(()=>n(r).options.slotDuration),u=a(()=>n(r).options.slotWidth),f=a(()=>n(r).options.theme),d=a(()=>ee("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Ke(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),y=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(s)<n(y)||n(s)>n(p))return null;let w=_e(n(l));return(n(s)-n(y))/1e3/w*n(u)}),_=a(()=>({root:n(i),rootMargin:cn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var S=de(),E=J(S);{var D=w=>{var C=Cf();let M;Me(C,()=>Ss(k,n(_))),se(()=>{O(C,1,n(f).nowIndicator),M=kt(C,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),x(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}x(e,S),ke()}var Ef=Q("<div><time></time></div>"),Tf=Q('<div role="rowheader"><!> <!></div>'),xf=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Sf(e,t){be(t,!0);let r=ee("state"),i=new pf(r);Pn("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),y=a(()=>i.chunks),p=a(()=>i.bgChunks),m=a(()=>i.iChunks),_=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),S=a(()=>i.grid),E=a(()=>i.monthView),D=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),q=Z(0);Ye(()=>{n(l),n(d),fn().then(L)});function L(){let V=0,ae=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(E)){if(!ae){let xe=n(S)[0];for(let N of xe)if(Ke(N.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/xe.length*(N.gridColumn-1)*(cn()?-1:1);break}}}else{for(let xe of n(l)){let N=uf(n(k),xe);if(ae||Ke(xe,n(o))){V+=ft(Rt(_e(n(d)),_e(N.max))-_e(N.min),0);break}else V+=_e(N.max)-_e(N.min)}n(s).scrollLeft=V/_e(n(c))*n(h)*(cn()?-1:1)}}let te=[];function pe(){ti(te,n(y))}Ye(pe);var W=xf();let z;var H=ue(W),F=ue(H),B=re(F,2),le=ue(B);oe(le,17,()=>n(S)[0],De,(V,ae,xe)=>{let N=()=>n(ae).dayStart,U=()=>n(ae).disabled,Y=()=>n(ae).highlight;Xn(V,{get date(){return N()},colIndex:1+xe,get disabled(){return U()},get highlight(){return Y()},children:(fe,Re)=>{pr(fe,{get date(){return N()}})},$$slots:{default:!0}})});var X=re(le,2);{var ye=V=>{var ae=de(),xe=J(ae);oe(xe,17,()=>n(S)[0],De,(N,U)=>{let Y=()=>n(U).dayStart,fe=()=>n(U).disabled,Re=()=>n(U).highlight;Xn(N,{get date(){return Y()},get className(){return n(v).slots},get disabled(){return fe()},get highlight(){return Re()},ariaHidden:!0,children:(we,Ie)=>{var Oe=de(),ne=J(Oe);oe(ne,17,()=>n(_)[Y().getTime()],De,(ze,ct)=>{var et=Ef();let _t;var Ne=ue(et);Me(Ne,()=>Xe(n(ct)[1])),se(()=>{O(et,1,n(v).slot),_t=kt(et,"",_t,{"--ec-slot-label-periodicity":n(ct)[2]}),Pe(Ne,"datetime",n(ct)[0])}),x(ze,et)}),x(we,Oe)},$$slots:{default:!0}})}),x(V,ae)};ve(X,V=>{n(E)||V(ye)})}var ie=re(H,2),ce=ue(ie);oe(ce,21,()=>n(M),De,(V,ae)=>{var xe=Tf(),N=ue(xe);{var U=fe=>{kf(fe,{get resource(){return n(ae)}})};ve(N,fe=>{n(D)&&fe(U)})}var Y=re(N,2);vi(Y,{get resource(){return n(ae)}}),se(()=>O(xe,1,n(v).rowHead)),x(V,xe)});var T=re(ce,2);oe(T,21,()=>n(S),De,(V,ae,xe)=>{var N=de(),U=J(N);oe(U,17,()=>n(ae),De,(Y,fe,Re)=>{{let we=a(()=>Re+1===n(ae).length),Ie=a(()=>xe+1===n(S).length);_f(Y,{get day(){return n(fe)},get noIeb(){return n(we)},get noBeb(){return n(Ie)}})}}),x(V,N)});var P=re(T,2),R=ue(P);oe(R,19,()=>n(y),V=>V.id,(V,ae,xe)=>{rt(_i(V,{get chunk(){return n(ae)}}),(N,U)=>te[U]=N,N=>te?.[N],()=>[n(xe)])});var G=re(R,2);oe(G,17,()=>n(p),V=>V.id,(V,ae)=>{_i(V,{get chunk(){return n(ae)}})});var Je=re(G,2);oe(Je,17,()=>n(m),De,(V,ae)=>{_i(V,{get chunk(){return n(ae)}})});var Ae=re(ie,2);{var Lt=V=>{Df(V,{})};ve(Ae,V=>{n(f)&&!n(E)&&V(Lt)})}rt(W,V=>r.mainEl=V,()=>r?.mainEl),Me(W,()=>qr(pe)),se(()=>{O(W,1,n(v).main),z=kt(W,"",z,{"--ec-grid-cols":n(S)[0].length,"--ec-grid-rows":`${n(S).length>1?`repeat(${n(S).length-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),O(H,1,n(v).header),O(F,1,n(v).sidebar),O(B,1,n(v).grid),O(ie,1,n(v).body),O(ce,1,n(v).sidebar),O(T,1,n(v).grid),O(P,1,n(v).events)}),lr(F,"offsetWidth",V=>i.sidebarWidth=V),lr(H,"offsetHeight",V=>b(q,V)),x(e,W),ke()}const Rf={createOptions(e){di(e),io(e),e.slotWidth=32,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:Yn,component:fo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:qn,component:fo,displayEventEnd:!1,duration:{weeks:1},theme:it("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ri,component:co,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:it("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){ci(e)}};function fo(e){return fi(e),co(e)}function co(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),Sf}const If={createOptions(e){di(e),ro(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Yn,component:ho,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:qn,component:ho,duration:{weeks:1},theme:it("ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function ho(e){return fi(e),lo}function Lf(e,t,r){return Ra(Kl,{target:e,props:{plugins:t,options:r}})}function Pf(e){return La(e)}function Mf(e,t){return Lf(e,[vu,Ru,Hu,of,Rf,If],t)}return Jn.create=Mf,Jn.destroy=Pf,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"}),Jn})({});
5
+ var EventCalendar=(function(er){"use strict";var Pi=Array.isArray,Ao=Array.prototype.indexOf,tr=Array.from,Mi=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Oo=Object.getOwnPropertyDescriptors,No=Object.prototype,Fo=Array.prototype,Ai=Object.getPrototypeOf,Oi=Object.isExtensible;const Zt=()=>{};function Ho(e){for(var t=0;t<e.length;t++)e[t]()}function Ni(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Wo(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Ge=2,nr=4,On=8,Sr=1<<24,Ft=16,Ht=32,on=64,Rr=128,yt=512,Ke=1024,nt=2048,Wt=4096,ft=8192,Ut=16384,Ir=32768,Jt=65536,Fi=1<<17,Hi=1<<18,bn=1<<19,Wi=1<<20,zt=1<<25,an=32768,Lr=1<<21,Pr=1<<22,Qt=1<<23,Nn=Symbol("$state"),Uo=Symbol("legacy props"),zo=Symbol(""),kn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Ui(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Vo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Go(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function qo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Ko(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Zo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Jo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function jo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const $o=1,ea=2,zi=4,ta=8,na=16,ra=1,ia=4,sa=8,oa=16,aa=1,la=2,Ye=Symbol(),ua="http://www.w3.org/1999/xhtml";function fa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Vi(e){return e===this.v}function da(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bi(e){return!da(e,this.v)}let od=!1,Ze=null;function Cn(e){Ze=e}function re(e){return Yi().get(e)}function Fn(e,t){return Yi().set(e,t),t}function ye(e,t=!1,r){Ze={p:Ze,i:!1,c:null,e:null,s:e,x:null,l:null}}function we(e){var t=Ze,r=t.e;if(r!==null){t.e=null;for(var i of r)ds(i)}return e!==void 0&&(t.x=e),t.i=!0,Ze=t.p,e??{}}function Gi(){return!0}function Yi(e){return Ze===null&&Ui(),Ze.c??=new Map(ca(Ze)||void 0)}function ca(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let ln=[];function qi(){var e=ln;ln=[],Ho(e)}function un(e){if(ln.length===0&&!Hn){var t=ln;queueMicrotask(()=>{t===ln&&qi()})}ln.push(e)}function ha(){for(;ln.length>0;)qi()}function Xi(e){var t=Ee;if(t===null)return ce.f|=Qt,e;if((t.f&Ir)===0){if((t.f&Rr)===0)throw e;t.b.error(e)}else Dn(e,t)}function Dn(e,t){for(;t!==null;){if((t.f&Rr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const va=-7169;function ze(e,t){e.f=e.f&va|t}function Mr(e){(e.f&yt)!==0||e.deps===null?ze(e,Ke):ze(e,Wt)}function Ki(e){if(e!==null)for(const t of e)(t.f&Ge)===0||(t.f&an)===0||(t.f^=an,Ki(t.deps))}function Zi(e,t,r){(e.f&nt)!==0?t.add(e):(e.f&Wt)!==0&&r.add(e),Ki(e.deps),ze(e,Ke)}const rr=new Set;let Ae=null,Dt=null,wt=[],ir=null,Ar=!1,Hn=!1;class It{committed=!1;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#r=0;#s=null;#i=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){wt=[],this.apply();var r=[],i=[];for(const s of t)this.#a(s,r,i);this.is_fork||this.#u(),this.is_deferred()?(this.#l(i),this.#l(r)):(Ae=null,Qi(i),Qi(r),this.#s?.resolve()),Dt=null}#a(t,r,i){t.f^=Ke;for(var s=t.first,o=null;s!==null;){var l=s.f,u=(l&(Ht|on))!==0,f=u&&(l&Ke)!==0,d=f||(l&ft)!==0||this.skipped_effects.has(s);if(!d&&s.fn!==null){u?s.f^=Ke:o!==null&&(l&(nr|On|Sr))!==0?o.b.defer_effect(s):(l&nr)!==0?r.push(s):zn(s)&&((l&Ft)!==0&&this.#i.add(s),Vn(s));var c=s.first;if(c!==null){s=c;continue}}var g=s.parent;for(s=s.next;s===null&&g!==null;)g===o&&(o=null),s=g.next,g=g.parent}}#l(t){for(var r=0;r<t.length;r+=1)Zi(t[r],this.#i,this.#o)}capture(t,r){r!==Ye&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Qt)===0&&(this.current.set(t,t.v),Dt?.set(t,t.v))}activate(){Ae=this,this.apply()}deactivate(){Ae===this&&(Ae=null,Dt=null)}flush(){if(this.activate(),wt.length>0){if(Ji(),Ae!==null&&Ae!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#n)t(this);this.#n.clear()}#u(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#t===0&&this.#f()}#f(){if(rr.size>1){this.previous.clear();var t=Dt,r=!0;for(const s of rr){if(s===this){r=!1;continue}const o=[];for(const[u,f]of this.current){if(s.current.has(u))if(r&&f!==s.current.get(u))s.current.set(u,f);else continue;o.push(u)}if(o.length===0)continue;const l=[...s.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var i=wt;wt=[];const u=new Set,f=new Map;for(const d of o)ji(d,l,u,f);if(wt.length>0){Ae=s,s.apply();for(const d of wt)s.#a(d,[],[]);s.deactivate()}wt=i}}Ae=null,Dt=t}this.committed=!0,rr.delete(this)}increment(t){this.#t+=1,t&&(this.#r+=1)}decrement(t){this.#t-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)this.#o.delete(t),ze(t,nt),Bt(t);for(const t of this.#o)ze(t,Wt),Bt(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Ni()).promise}static ensure(){if(Ae===null){const t=Ae=new It;rr.add(Ae),Hn||It.enqueue(()=>{Ae===t&&t.flush()})}return Ae}static enqueue(t){un(t)}apply(){}}function ga(e){var t=Hn;Hn=!0;try{for(var r;;){if(ha(),wt.length===0&&(Ae?.flush(),wt.length===0))return ir=null,r;Ji()}}finally{Hn=t}}function Ji(){var e=cn;Ar=!0;var t=null;try{var r=0;for(lr(!0);wt.length>0;){var i=It.ensure();if(r++>1e3){var s,o;ma()}i.process(wt),jt.clear()}}finally{Ar=!1,lr(e),ir=null}}function ma(){try{qo()}catch(e){Dn(e,ir)}}let Vt=null;function Qi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ut|ft))===0&&zn(i)&&(Vt=new Set,Vn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?gs(i):i.fn=null),Vt?.size>0)){jt.clear();for(const s of Vt){if((s.f&(Ut|ft))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Vt.has(l)&&(Vt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(Ut|ft))===0&&Vn(f)}}Vt.clear()}}Vt=null}}function ji(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Ge)!==0?ji(s,t,r,i):(o&(Pr|Ft))!==0&&(o&nt)===0&&$i(s,t,i)&&(ze(s,nt),Bt(s))}}function $i(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Ge)!==0&&$i(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function Bt(e){for(var t=ir=e;t.parent!==null;){t=t.parent;var r=t.f;if(Ar&&t===Ee&&(r&Ft)!==0&&(r&Hi)===0)return;if((r&(on|Ht))!==0){if((r&Ke)===0)return;t.f^=Ke}}wt.push(t)}function pa(e){let t=0,r=$t(0),i;return()=>{Hr()&&(n(r),cs(()=>(t===0&&(i=j(()=>e(()=>Lt(r)))),t+=1,()=>{un(()=>{t-=1,t===0&&(i?.(),i=void 0,Lt(r))})})))}}var _a=Jt|bn|Rr;function ya(e,t,r){new wa(e,t,r)}class wa{parent;is_pending=!1;#e;#n=null;#t;#r;#s;#i=null;#o=null;#a=null;#l=null;#u=null;#f=0;#d=0;#h=!1;#v=new Set;#g=new Set;#c=null;#w=pa(()=>(this.#c=$t(this.#f),()=>{this.#c=null}));constructor(t,r,i){this.#e=t,this.#t=r,this.#r=i,this.parent=Ee.b,this.is_pending=!!this.#t.pending,this.#s=Un(()=>{Ee.b=this;{var s=this.#_();try{this.#i=dt(()=>i(s))}catch(o){this.error(o)}this.#d>0?this.#p():this.is_pending=!1}return()=>{this.#u?.remove()}},_a)}#b(){try{this.#i=dt(()=>this.#r(this.#e))}catch(t){this.error(t)}}#k(){const t=this.#t.pending;t&&(this.#o=dt(()=>t(this.#e)),It.enqueue(()=>{var r=this.#_();this.#i=this.#m(()=>(It.ensure(),dt(()=>this.#r(r)))),this.#d>0?this.#p():(dn(this.#o,()=>{this.#o=null}),this.is_pending=!1)}))}#_(){var t=this.#e;return this.is_pending&&(this.#u=Gt(),this.#e.before(this.#u),t=this.#u),t}defer_effect(t){Zi(t,this.#v,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=Ee,i=ce,s=Ze;Pt(this.#s),rt(this.#s),Cn(this.#s.ctx);try{return t()}catch(o){return Xi(o),null}finally{Pt(r),rt(i),Cn(s)}}#p(){const t=this.#t.pending;this.#i!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),_s(this.#i,this.#l)),this.#o===null&&(this.#o=dt(()=>t(this.#e)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}if(this.#d+=t,this.#d===0){this.is_pending=!1;for(const r of this.#v)ze(r,nt),Bt(r);for(const r of this.#g)ze(r,Wt),Bt(r);this.#v.clear(),this.#g.clear(),this.#o&&dn(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(t){this.#y(t),this.#f+=t,this.#c&&En(this.#c,this.#f)}get_effect_pending(){return this.#w(),n(this.#c)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(this.#h||!r&&!i)throw t;this.#i&&(tt(this.#i),this.#i=null),this.#o&&(tt(this.#o),this.#o=null),this.#a&&(tt(this.#a),this.#a=null);var s=!1,o=!1;const l=()=>{if(s){fa();return}s=!0,o&&jo(),It.ensure(),this.#f=0,this.#a!==null&&dn(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#m(()=>(this.#h=!1,dt(()=>this.#r(this.#e)))),this.#d>0?this.#p():this.is_pending=!1};var u=ce;try{rt(null),o=!0,r?.(t,l),o=!1}catch(f){Dn(f,this.#s&&this.#s.parent)}finally{rt(u)}i&&un(()=>{this.#a=this.#m(()=>{It.ensure(),this.#h=!0;try{return dt(()=>{i(this.#e,()=>t,()=>l)})}catch(f){return Dn(f,this.#s.parent),null}finally{this.#h=!1}})})}}function ba(e,t,r,i){const s=or;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Ae,l=Ee,u=ka();function f(){Promise.all(r.map(d=>Ca(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(c){(l.f&Ut)===0&&Dn(c,l)}o?.deactivate(),sr()}).catch(d=>{Dn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),sr()}}):f()}function ka(){var e=Ee,t=ce,r=Ze,i=Ae;return function(o=!0){Pt(e),rt(t),Cn(r),o&&i?.activate()}}function sr(){Pt(null),rt(null),Cn(null)}function or(e){var t=Ge|nt,r=ce!==null&&(ce.f&Ge)!==0?ce:null;return Ee!==null&&(Ee.f|=bn),{ctx:Ze,deps:null,effects:null,equals:Vi,f:t,fn:e,reactions:null,rv:0,v:Ye,wv:0,parent:r??Ee,ac:null}}function Ca(e,t,r){let i=Ee;i===null&&Vo();var s=i.b,o=void 0,l=$t(Ye),u=!ce,f=new Map;return La(()=>{var d=Ni();o=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).then(()=>{c===Ae&&c.committed&&c.deactivate(),sr()})}catch(v){d.reject(v),sr()}var c=Ae;if(u){var g=s.is_rendered();s.update_pending_count(1),c.increment(g),f.get(c)?.reject(kn),f.delete(c),f.set(c,d)}const h=(v,_=void 0)=>{if(c.activate(),_)_!==kn&&(l.f|=Qt,En(l,_));else{(l.f&Qt)!==0&&(l.f^=Qt),En(l,v);for(const[p,m]of f){if(f.delete(p),p===c)break;m.reject(kn)}}u&&(s.update_pending_count(-1),c.decrement(g))};d.promise.then(h,v=>h(null,v||"unknown"))}),Wr(()=>{for(const d of f.values())d.reject(kn)}),new Promise(d=>{function c(g){function h(){g===o?d(l):c(o)}g.then(h,h)}c(o)})}function a(e){const t=or(e);return ws(t),t}function es(e){const t=or(e);return t.equals=Bi,t}function ts(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)tt(t[r])}}function Da(e){for(var t=e.parent;t!==null;){if((t.f&Ge)===0)return(t.f&Ut)===0?t:null;t=t.parent}return null}function Or(e){var t,r=Ee;Pt(Da(e));try{e.f&=~an,ts(e),t=Es(e)}finally{Pt(r)}return t}function ns(e){var t=Or(e);if(!e.equals(t)&&(e.wv=Cs(),(!Ae?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){ze(e,Ke);return}en||(Dt!==null?(Hr()||Ae?.is_fork)&&Dt.set(e,t):Mr(e))}let Nr=new Set;const jt=new Map;let rs=!1;function $t(e,t){var r={f:0,v:e,reactions:null,equals:Vi,rv:0,wv:0};return r}function K(e,t){const r=$t(e);return ws(r),r}function is(e,t=!1,r=!0){const i=$t(e);return t||(i.equals=Bi),i}function b(e,t,r=!1){ce!==null&&(!xt||(ce.f&Fi)!==0)&&Gi()&&(ce.f&(Ge|Ft|Pr|Fi))!==0&&!Yt?.includes(e)&&Qo();let i=r?et(t):t;return En(e,i)}function En(e,t){if(!e.equals(t)){var r=e.v;en?jt.set(e,t):jt.set(e,r),e.v=t;var i=It.ensure();if(i.capture(e,r),(e.f&Ge)!==0){const s=e;(e.f&nt)!==0&&Or(s),Mr(s)}e.wv=Cs(),ss(e,nt),Ee!==null&&(Ee.f&Ke)!==0&&(Ee.f&(Ht|on))===0&&(bt===null?Oa([e]):bt.push(e)),!i.is_fork&&Nr.size>0&&!rs&&Ea()}return t}function Ea(){rs=!1;var e=cn;lr(!0);const t=Array.from(Nr);try{for(const r of t)(r.f&Ke)!==0&&ze(r,Wt),zn(r)&&Vn(r)}finally{lr(e)}Nr.clear()}function Lt(e){b(e,e.v+1)}function ss(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&nt)===0;if(u&&ze(o,t),(l&Ge)!==0){var f=o;Dt?.delete(f),(l&an)===0&&(l&yt&&(o.f|=an),ss(f,Wt))}else u&&((l&Ft)!==0&&Vt!==null&&Vt.add(o),Bt(o))}}function et(e){if(typeof e!="object"||e===null||Nn in e)return e;const t=Ai(e);if(t!==No&&t!==Fo)return e;var r=new Map,i=Pi(e),s=K(0),o=qt,l=u=>{if(qt===o)return u();var f=ce,d=qt;rt(null),ks(o);var c=u();return rt(f),ks(d),c};return i&&r.set("length",K(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Zo();var c=r.get(f);return c===void 0?c=l(()=>{var g=K(d.value);return r.set(f,g),g}):b(c,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const c=l(()=>K(Ye));r.set(f,c),Lt(s)}}else b(d,Ye),Lt(s);return!0},get(u,f,d){if(f===Nn)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||wn(u,f)?.writable)&&(c=l(()=>{var v=et(g?u[f]:Ye),_=K(v);return _}),r.set(f,c)),c!==void 0){var h=n(c);return h===Ye?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Ye)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Nn)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Ye||Reflect.has(u,f);if(d!==void 0||Ee!==null&&(!c||wn(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?et(u[f]):Ye,v=K(h);return v}),r.set(f,d));var g=n(d);if(g===Ye)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var _=r.get(v+"");_!==void 0?b(_,Ye):v in u&&(_=l(()=>K(Ye)),r.set(v+"",_))}if(g===void 0)(!h||wn(u,f)?.writable)&&(g=l(()=>K(void 0)),b(g,et(d)),r.set(f,g));else{h=g.v!==Ye;var p=l(()=>et(d));b(g,p)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var y=r.get("length"),k=Number(f);Number.isInteger(k)&&k>=y.v&&b(y,k+1)}Lt(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Ye});for(var[d,c]of r)c.v!==Ye&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Jo()}})}var Et,os,as,ls;function Ta(){if(Et===void 0){Et=window,os=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;as=wn(t,"firstChild").get,ls=wn(t,"nextSibling").get,Oi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Oi(r)&&(r.__t=void 0)}}function Gt(e=""){return document.createTextNode(e)}function ar(e){return as.call(e)}function Wn(e){return ls.call(e)}function de(e,t){return ar(e)}function Q(e,t=!1){{var r=ar(e);return r instanceof Comment&&r.data===""?Wn(r):r}}function se(e,t=1,r=!1){let i=e;for(;t--;)i=Wn(i);return i}function xa(e){e.textContent=""}function us(){return!1}function Sa(e,t){{const r=document.body;e.autofocus=!0,un(()=>{document.activeElement===r&&e.focus()})}}function Fr(e){var t=ce,r=Ee;rt(null),Pt(null);try{return e()}finally{rt(t),Pt(r)}}function fs(e){Ee===null&&(ce===null&&Yo(),Go()),en&&Bo()}function Ra(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Tt(e,t,r){var i=Ee;i!==null&&(i.f&ft)!==0&&(e|=ft);var s={ctx:Ze,deps:null,nodes:null,f:e|nt|yt,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Vn(s),s.f|=Ir}catch(u){throw tt(s),u}else t!==null&&Bt(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&bn)===0&&(o=o.first,(e&Ft)!==0&&(e&Jt)!==0&&o!==null&&(o.f|=Jt)),o!==null&&(o.parent=i,i!==null&&Ra(o,i),ce!==null&&(ce.f&Ge)!==0&&(e&on)===0)){var l=ce;(l.effects??=[]).push(o)}return s}function Hr(){return ce!==null&&!xt}function Wr(e){const t=Tt(On,null,!1);return ze(t,Ke),t.teardown=e,t}function qe(e){fs();var t=Ee.f,r=!ce&&(t&Ht)!==0&&(t&Ir)===0;if(r){var i=Ze;(i.e??=[]).push(e)}else return ds(e)}function ds(e){return Tt(nr|Wi,e,!1)}function fn(e){return fs(),Tt(On|Wi,e,!0)}function Ia(e){It.ensure();const t=Tt(on|bn,e,!0);return(r={})=>new Promise(i=>{r.outro?dn(t,()=>{tt(t),i(void 0)}):(tt(t),i(void 0))})}function Ur(e){return Tt(nr,e,!1)}function La(e){return Tt(Pr|bn,e,!0)}function cs(e,t=0){return Tt(On|t,e,!0)}function ae(e,t=[],r=[],i=[]){ba(i,t,r,s=>{Tt(On,()=>e(...s.map(n)),!0)})}function Un(e,t=0){var r=Tt(Ft|t,e,!0);return r}function Pa(e,t=0){var r=Tt(Sr|t,e,!0);return r}function dt(e){return Tt(Ht|bn,e,!0)}function hs(e){var t=e.teardown;if(t!==null){const r=en,i=ce;ys(!0),rt(null);try{t.call(null)}finally{ys(r),rt(i)}}}function vs(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Fr(()=>{s.abort(kn)});var i=r.next;(r.f&on)!==0?r.parent=null:tt(r,t),r=i}}function Ma(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ht)===0&&tt(t),t=r}}function tt(e,t=!0){var r=!1;(t||(e.f&Hi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Aa(e.nodes.start,e.nodes.end),r=!0),vs(e,t&&!r),ur(e,0),ze(e,Ut);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();hs(e);var s=e.parent;s!==null&&s.first!==null&&gs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Aa(e,t){for(;e!==null;){var r=e===t?null:Wn(e);e.remove(),e=r}}function gs(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function dn(e,t,r=!0){var i=[];ms(e,i,!0);var s=()=>{r&&tt(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function ms(e,t,r){if((e.f&ft)===0){e.f^=ft;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,l=(s.f&Jt)!==0||(s.f&Ht)!==0&&(e.f&Ft)!==0;ms(s,t,l?r:!1),s=o}}}function zr(e){ps(e,!0)}function ps(e,t){if((e.f&ft)!==0){e.f^=ft,(e.f&Ke)===0&&(ze(e,nt),Bt(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Jt)!==0||(r.f&Ht)!==0;ps(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function _s(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Wn(r);t.append(r),r=s}}let cn=!1;function lr(e){cn=e}let en=!1;function ys(e){en=e}let ce=null,xt=!1;function rt(e){ce=e}let Ee=null;function Pt(e){Ee=e}let Yt=null;function ws(e){ce!==null&&(Yt===null?Yt=[e]:Yt.push(e))}let it=null,ct=0,bt=null;function Oa(e){bt=e}let bs=1,hn=0,qt=hn;function ks(e){qt=e}function Cs(){return++bs}function zn(e){var t=e.f;if((t&nt)!==0)return!0;if(t&Ge&&(e.f&=~an),(t&Wt)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(zn(o)&&ns(o),o.wv>e.wv)return!0}(t&yt)!==0&&Dt===null&&ze(e,Ke)}return!1}function Ds(e,t,r=!0){var i=e.reactions;if(i!==null&&!Yt?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ge)!==0?Ds(o,t,!1):t===o&&(r?ze(o,nt):(o.f&Ke)!==0&&ze(o,Wt),Bt(o))}}function Es(e){var t=it,r=ct,i=bt,s=ce,o=Yt,l=Ze,u=xt,f=qt,d=e.f;it=null,ct=0,bt=null,ce=(d&(Ht|on))===0?e:null,Yt=null,Cn(e.ctx),xt=!1,qt=++hn,e.ac!==null&&(Fr(()=>{e.ac.abort(kn)}),e.ac=null);try{e.f|=Lr;var c=e.fn,g=c(),h=e.deps;if(it!==null){var v;if(ur(e,ct),h!==null&&ct>0)for(h.length=ct+it.length,v=0;v<it.length;v++)h[ct+v]=it[v];else e.deps=h=it;if(Hr()&&(e.f&yt)!==0)for(v=ct;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&&ct<h.length&&(ur(e,ct),h.length=ct);if(Gi()&&bt!==null&&!xt&&h!==null&&(e.f&(Ge|Wt|nt))===0)for(v=0;v<bt.length;v++)Ds(bt[v],e);if(s!==null&&s!==e){if(hn++,s.deps!==null)for(let _=0;_<r;_+=1)s.deps[_].rv=hn;if(t!==null)for(const _ of t)_.rv=hn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Qt)!==0&&(e.f^=Qt),g}catch(_){return Xi(_)}finally{e.f^=Lr,it=t,ct=r,bt=i,ce=s,Yt=o,Cn(l),xt=u,qt=f}}function Na(e,t){let r=t.reactions;if(r!==null){var i=Ao.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Ge)!==0&&(it===null||!it.includes(t))){var o=t;(o.f&yt)!==0&&(o.f^=yt,o.f&=~an),Mr(o),ts(o),ur(o,0)}}function ur(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Na(e,r[i])}function Vn(e){var t=e.f;if((t&Ut)===0){ze(e,Ke);var r=Ee,i=cn;Ee=e,cn=!0;try{(t&(Ft|Sr))!==0?Ma(e):vs(e),hs(e);var s=Es(e);e.teardown=typeof s=="function"?s:null,e.wv=bs;var o}finally{cn=i,Ee=r}}}async function vn(){await Promise.resolve(),ga()}function n(e){var t=e.f,r=(t&Ge)!==0;if(ce!==null&&!xt){var i=Ee!==null&&(Ee.f&Ut)!==0;if(!i&&!Yt?.includes(e)){var s=ce.deps;if((ce.f&Lr)!==0)e.rv<hn&&(e.rv=hn,it===null&&s!==null&&s[ct]===e?ct++:it===null?it=[e]:it.push(e));else{(ce.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[ce]:o.includes(ce)||o.push(ce)}}}if(en&&jt.has(e))return jt.get(e);if(r){var l=e;if(en){var u=l.v;return((l.f&Ke)===0&&l.reactions!==null||xs(l))&&(u=Or(l)),jt.set(l,u),u}var f=(l.f&yt)===0&&!xt&&ce!==null&&(cn||(ce.f&yt)!==0),d=l.deps===null;zn(l)&&(f&&(l.f|=yt),ns(l)),f&&!d&&Ts(l)}if(Dt?.has(e))return Dt.get(e);if((e.f&Qt)!==0)throw e.v;return e.v}function Ts(e){if(e.deps!==null){e.f|=yt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ge)!==0&&(t.f&yt)===0&&Ts(t)}}function xs(e){if(e.v===Ye)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(jt.has(t)||(t.f&Ge)!==0&&xs(t))return!0;return!1}function j(e){var t=xt;try{return xt=!0,e()}finally{xt=t}}const Fa=["touchstart","touchmove"];function Ha(e){return Fa.includes(e)}const Ss=new Set,Vr=new Set;function Wa(e,t,r,i={}){function s(o){if(i.capture||Bn.call(t,o),!o.cancelBubble)return Fr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?un(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ht(e,t,r,i,s){var o={capture:i,passive:s},l=Wa(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Wr(()=>{t.removeEventListener(e,l,o)})}function tn(e){for(var t=0;t<e.length;t++)Ss.add(e[t]);for(var r of Vr)r(e)}let Rs=null;function Bn(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Rs=e;var l=0,u=Rs===e&&e.__root;if(u){var f=s.indexOf(u);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var d=s.indexOf(t);if(d===-1)return;f<=d&&(l=f)}if(o=s[l]||e.target,o!==t){Mi(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=ce,g=Ee;rt(null),Pt(null);try{for(var h,v=[];o!==null;){var _=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+i];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||_===t||_===null)break;o=_}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,rt(c),Pt(g)}}}function Ua(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fr(e,t){var r=Ee;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function $(e,t){var r=(t&aa)!==0,i=(t&la)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Ua(o?e:"<!>"+e),r||(s=ar(s)));var l=i||os?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ar(l),f=l.lastChild;fr(u,f)}else fr(l,l);return l}}function Is(e=""){{var t=Gt(e+"");return fr(t,t),t}}function le(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Gt();return e.append(t,r),fr(t,r),e}function x(e,t){e!==null&&e.before(t)}function Ls(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function za(e,t){return Va(e,t)}const Tn=new Map;function Va(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){Ta();var u=new Set,f=g=>{for(var h=0;h<g.length;h++){var v=g[h];if(!u.has(v)){u.add(v);var _=Ha(v);t.addEventListener(v,Bn,{passive:_});var p=Tn.get(v);p===void 0?(document.addEventListener(v,Bn,{passive:_}),Tn.set(v,1)):Tn.set(v,p+1)}}};f(tr(Ss)),Vr.add(f);var d=void 0,c=Ia(()=>{var g=r??t.appendChild(Gt());return ya(g,{pending:()=>{}},h=>{if(o){ye({});var v=Ze;v.c=o}s&&(i.$$events=s),d=e(h,i)||{},o&&we()}),()=>{for(var h of u){t.removeEventListener(h,Bn);var v=Tn.get(h);--v===0?(document.removeEventListener(h,Bn),Tn.delete(h)):Tn.set(h,v)}Vr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Br.set(d,c),d}let Br=new WeakMap;function Ba(e,t){const r=Br.get(e);return r?(Br.delete(e),r(t)):Promise.resolve()}class Gr{anchor;#e=new Map;#n=new Map;#t=new Map;#r=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#i=()=>{var t=Ae;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)zr(i),this.#r.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(l);u&&(tt(u.effect),this.#t.delete(l))}for(const[o,l]of this.#n){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();_s(l,d),d.append(Gt()),this.#t.set(o,{effect:l,fragment:d})}else tt(l);this.#r.delete(o),this.#n.delete(o)};this.#s||!i?(this.#r.add(o),dn(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(tt(s.effect),this.#t.delete(i))};ensure(t,r){var i=Ae,s=us();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),l=Gt();o.append(l),this.#t.set(t,{effect:dt(()=>r(l)),fragment:o})}else this.#n.set(t,dt(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#n)u===t?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[u,f]of this.#t)u===t?i.skipped_effects.delete(f.effect):i.skipped_effects.add(f.effect);i.oncommit(this.#i),i.ondiscard(this.#o)}else this.#i()}}function fe(e,t,r=!1){var i=new Gr(e),s=r?Jt:0;function o(l,u){i.ensure(l,u)}Un(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function Ce(e,t){return t}function Ga(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];dn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Yr(tr(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,c=d.parentNode;xa(c),c.append(d),e.items.clear()}Yr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Yr(e,t=!0){for(var r=0;r<e.length;r++)tt(e[r],t)}var Ps;function ue(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&zi)!==0;if(f){var d=e;l=d.appendChild(Gt())}var c=null,g=es(()=>{var y=r();return Pi(y)?y:y==null?[]:tr(y)}),h,v=!0;function _(){m.fallback=c,Ya(m,h,l,t,i),c!==null&&(h.length===0?(c.f&zt)===0?zr(c):(c.f^=zt,Gn(c,null,l)):dn(c,()=>{c=null}))}var p=Un(()=>{h=n(g);for(var y=h.length,k=new Set,S=Ae,D=us(),E=0;E<y;E+=1){var w=h[E],C=i(w,E),M=v?null:u.get(C);M?(M.v&&En(M.v,w),M.i&&En(M.i,E),D&&S.skipped_effects.delete(M.e)):(M=qa(u,v?l:Ps??=Gt(),w,C,E,s,t,r),v||(M.e.f|=zt),u.set(C,M)),k.add(C)}if(y===0&&o&&!c&&(v?c=dt(()=>o(l)):(c=dt(()=>o(Ps??=Gt())),c.f|=zt)),!v)if(D){for(const[q,R]of u)k.has(q)||S.skipped_effects.add(R.e);S.oncommit(_),S.ondiscard(()=>{})}else _();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:c};v=!1}function Ya(e,t,r,i,s){var o=(i&ta)!==0,l=t.length,u=e.items,f=e.effect.first,d,c=null,g,h=[],v=[],_,p,m,y;if(o)for(y=0;y<l;y+=1)_=t[y],p=s(_,y),m=u.get(p).e,(m.f&zt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(y=0;y<l;y+=1){if(_=t[y],p=s(_,y),m=u.get(p).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(m),R.done.delete(m);if((m.f&zt)!==0)if(m.f^=zt,m===f)Gn(m,null,r);else{var k=c?c.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),nn(e,c,m),nn(e,m,k),Gn(m,k,r),c=m,h=[],v=[],f=c.next;continue}if((m.f&ft)!==0&&(zr(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(h.length<v.length){var S=v[0],D;c=S.prev;var E=h[0],w=h[h.length-1];for(D=0;D<h.length;D+=1)Gn(h[D],S,r);for(D=0;D<v.length;D+=1)d.delete(v[D]);nn(e,E.prev,w.next),nn(e,c,E),nn(e,w,S),f=S,c=w,y-=1,h=[],v=[]}else d.delete(m),Gn(m,f,r),nn(e,m.prev,m.next),nn(e,m,c===null?e.effect.first:c.next),nn(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&zt)===0&&h.push(m),c=m,f=m.next}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(Yr(tr(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var C=[];if(d!==void 0)for(m of d)(m.f&ft)===0&&C.push(m);for(;f!==null;)(f.f&ft)===0&&f!==e.fallback&&C.push(f),f=f.next;var M=C.length;if(M>0){var q=(i&zi)!==0&&l===0?r:null;if(o){for(y=0;y<M;y+=1)C[y].nodes?.a?.measure();for(y=0;y<M;y+=1)C[y].nodes?.a?.fix()}Ga(e,C,q)}}o&&un(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function qa(e,t,r,i,s,o,l,u){var f=(l&$o)!==0?(l&na)===0?is(r,!1,!1):$t(r):null,d=(l&ea)!==0?$t(s):null;return{v:f,i:d,e:dt(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function Gn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&zt)===0?t.nodes.start:r;i!==null;){var l=Wn(i);if(o.before(i),i===s)return;i=l}}function nn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Xt(e,t,...r){var i=new Gr(e);Un(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Jt)}function qr(e,t,r){var i=new Gr(e);Un(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Jt)}function Fe(e,t){var r=void 0,i;Pa(()=>{r!==(r=t())&&(i&&(tt(i),i=null),r&&(i=dt(()=>{Ur(()=>r(e))})))})}function Ms(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ms(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Xa(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ms(e))&&(i&&(i+=" "),i+=t);return i}function Mt(e){return typeof e=="object"?Xa(e):e??""}function Ka(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function As(e,t=!1){var r=t?" !important;":";",i="";for(var s in e){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function Xr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Za(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,u=!1,f=[];i&&f.push(...Object.keys(i).map(Xr)),s&&f.push(...Object.keys(s).map(Xr));var d=0,c=-1;const p=e.length;for(var g=0;g<p;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===p-1){if(c!==-1){var v=Xr(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var _=e.substring(d,g).trim();r+=" "+_+";"}}d=g+1,c=-1}}}}return i&&(r+=As(i)),s&&(r+=As(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function O(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Ka(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Kr(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function St(e,t,r,i){var s=e.__style;if(s!==t){var o=Za(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Kr(e,r?.[0],i[0]),Kr(e,r?.[1],i[1],"important")):Kr(e,r,i));return i}const Ja=Symbol("is custom element"),Qa=Symbol("is html");function Le(e,t,r,i){var s=ja(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[zo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&$a(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ja(e){return e.__attributes??={[Ja]:e.nodeName.includes("-"),[Qa]:e.namespaceURI===ua}}var Os=new Map;function $a(e){var t=e.getAttribute("is")||e.nodeName,r=Os.get(t);if(r)return r;Os.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Oo(s);for(var l in i)i[l].set&&r.push(l);s=Ai(s)}return r}class Zr{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#r().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#r(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){Zr.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var el=new Zr({box:"border-box"});function dr(e,t,r){var i=el.observe(e,()=>r(e[t]));Ur(()=>(j(()=>r(e[t])),i))}function Ns(e,t){return e===t||e?.[Nn]===t}function st(e={},t,r,i){return Ur(()=>{var s,o;return cs(()=>{s=o,o=i?.()||[],j(()=>{e!==r(...o)&&(t(e,...o),s&&Ns(r(...s),e)&&t(null,...s))})}),()=>{un(()=>{o&&Ns(r(...o),e)&&t(null,...o)})}}),e}function Fs(e,t,r){if(e==null)return t(void 0),Zt;const i=j(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function tl(e){let t;return Fs(e,r=>t=r)(),t}let cr=!1,Jr=Symbol();function nl(e,t,r){const i=r[t]??={store:null,source:is(void 0),unsubscribe:Zt};if(i.store!==e&&!(Jr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Zt;else{var s=!0;i.unsubscribe=Fs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Jr in r?tl(e):n(i.source)}function rl(){const e={};function t(){Wr(()=>{for(var r in e)e[r].unsubscribe();Mi(e,Jr,{enumerable:!1,value:!0})})}return[e,t]}function il(e){var t=cr;try{return cr=!1,[e(),cr]}finally{cr=t}}function De(e,t,r,i){var s=(r&sa)!==0,o=(r&oa)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?j(i):i),l),d;if(s){var c=Nn in e||Uo in e;d=wn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=il(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Ko(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&ia)===0)return v;if(d){var _=e.$$legacy;return(function(k,S){return arguments.length>0?((!S||_||h)&&d(S?v():k),k):v()})}var p=!1,m=((r&ra)!==0?or:es)(()=>(p=!1,v()));s&&n(m);var y=Ee;return(function(k,S){if(arguments.length>0){const D=S?n(m):s?et(k):k;return b(m,D),p=!0,l!==void 0&&(l=D),k}return en&&p||(y.f&Ut)!==0?m.v:n(m)})}function sl(){return ce===null&&Xo(),(ce.ac??=new AbortController).signal}function Yn(e){Ze===null&&Ui(),qe(()=>{const t=j(e);if(typeof t=="function")return t})}const ol="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ol);function Qr(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Je(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function al(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function jr(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Hs(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function ge(...e){return Object.assign(...e)}function gn(e){return Object.keys(e)}function Ws(e){return Object.entries(e)}function $r(e){return Math.floor(e)}function ll(e){return Math.ceil(e)}function At(...e){return Math.min(...e)}function vt(...e){return Math.max(...e)}function ul(){return Symbol("ec")}function Te(e){return e.length}function kt(e){return!Te(e)}function qn(e){return Array.isArray(e)}function ke(e){return typeof e=="function"}function fl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ei(e){return e instanceof Date}function dl(e){return e()}function cl(e){e.forEach(dl)}function hl(){}const hr=e=>e;function mn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const vr=86400;function Ot(e=void 0){return e!==void 0?ei(e)?Ys(e):ml(e):Ys(new Date)}function We(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else ei(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Z(e){return new Date(e.getTime())}function Se(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)xn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function gr(e,t,r=1){return Se(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function xn(e,t=1){return Ct(e,-t)}function Rt(e){return e.setUTCHours(0,0,0,0),e}function Ve(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function gt(e,t=19){return e.toISOString().substring(0,t)}function Qe(e,...t){return t.every(r=>e.getTime()===r.getTime())}function vl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Us(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function zs(e){return typeof e=="string"&&e.length<=10}function ti(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Vs(e,t,r){return Se(e,t),Gs(e,r,Ct),e}function Bs(e,t,r){return gr(e,t),Gs(e,r,xn),e}function Gs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function gl(e,t){e=Z(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/vr+1)/7)}function Ys(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function ml(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let ni=ul();function qs(e,t){e[ni]=t}function pl(e){return!!e?.[ni]}function Kt(e){return e[ni]}function Xs(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function rn(e){return e.getBoundingClientRect()}function Ks(e,t){for(;t--;)e=e.parentElement;return e}function pn(e){return rn(e).height}function Sn(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(pl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Sn(e,t,s.shadowRoot,i);if(o)return o}}return null}function Xn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function ri(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function _l(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function je(e){return e=ge({},e),e.currentStart=Ve(e.currentStart),e.currentEnd=Ve(e.currentEnd),e.activeStart=Ve(e.activeStart),e.activeEnd=Ve(e.activeEnd),e}let yl=1;function mr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${yl++}}`,resourceIds:ii(t,"resourceId").map(String),allDay:t.allDay??(zs(t.start)&&zs(t.end)),start:Ot(t.start),end:Ot(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:ii(t,"className"),styles:ii(t,"style")};if(r.allDay){Rt(r.start);let i=Z(r.end);Rt(r.end),(!Qe(r.end,i)||Qe(r.end,r.start))&&Ct(r.end)}return r})}function ii(e,t){let r=e[t+"s"]??e[t]??[];return qn(r)?r:[r]}function wl(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function bl(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?ti(Z(e.start),e.end):e.start),u;if(r&&(u=ke(r)?r({event:Xe(e.event),timeText:l,view:je(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Zs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Zs(l,e,i)],Xs("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Zs(e,t,r){return Xs("time",r.eventTime,e,[["datetime",gt(t.start)]])}function kl(e,t,r){let i=t.classNames;return e&&(ke(e)&&(e=e({event:Xe(t),view:je(r)})),i=[...qn(e)?e:[e],...i]),i}function Xe(e){return Js(e,Ve)}function si(e){return Js(e,Z)}function Js(e,t){return e=ge({},e),e.start=t(e.start),e.end=t(e.end),e}function oi(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Rn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function pr(e){return Cl(e)||Dl(e)||El(e)}function mt(e){return e==="background"}function Cl(e){return e==="preview"}function Dl(e){return e==="ghost"}function El(e){return e==="pointer"}function Kn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:Qe(t,r)}}function In(e,t,r=!0){let i=[],s,o,l,u;for(let{gridColumn:f,gridRow:d,resource:c,dayStart:g,dayEnd:h,disabled:v}of t)!v&&Rn(e,g,h,c)&&(i.push(g),s=h,o||(o=f,l=d,u=c));if(i.length){let f=Kn(e,i[0],s);return ge(f,{gridColumn:o,gridRow:l,resource:u,dates:i}),r&&ai(f),[f]}return[]}function Qs(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let f=`${o}_${s+u}`;r[f]?r[f].chunks.push(i):r[f]={sorted:!1,chunks:[i]}}let l=`${o}_${s}`;i.long=r[l],i.prev=t[l],t[l]=i}}function js(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return ge(e,{top:r,bottom:i}),r}const $s=new WeakMap;let Tl=1;function ai(e){let{event:t,gridColumn:r,gridRow:i}=e,s=$s.get(t);s||(s=Tl++,$s.set(t,s)),e.id=`${s}-${r}-${i}`}function _n(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{s=ke(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Ve(o))}}}function eo(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{if(ke(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",c=["startRange","endRange"],g=[!1,!1];for(let h of f){let v=c.indexOf(h.source);v>=0?g[v]||(d+=xl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(Ve(o),Ve(l))}}}function xl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Zn(e){return _r(e,"day")}function Jn(e){return _r(e,"week")}function li(e){return _r(e,"month")}function Sl(e){return _r(e,"year")}function _r(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function ot(e){return t=>({...t,view:e})}function Rl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Rt(Ot(t))),r&&(r=Rt(Ot(r)))),{start:t,end:r}}function Ln(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ui(e){let t=[];return to(e,0,t),t}function to(e,t,r){let i=[];for(let s of e){let o=Il(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};qs(o,l),s.children&&(l.children=to(s.children,t+1,r))}return i}function Il(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:no(e),eventTextColor:ro(e),extendedProps:e.extendedProps??{}}}function no(e){return e?.eventBackgroundColor}function ro(e){return e?.eventTextColor}function io(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function so(e,t,r,i,s){let o=[];e=Z(e);let l=Z(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([gt(e),s.format(e)]),Se(e,t,r);let u=$r((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function oo(e,t,r,i,s){let o=We(e),l=We(t);if(r){let u=We(At(_e(o),vt(0,_e(l)-vr))),f=We(vt(_e(l),_e(u)+vr)),d=ke(r?.eventFilter)?r.eventFilter:c=>!mt(c.display);e:for(let c of i){let g=Se(Z(c),o),h=Se(Z(c),l),v=Se(Z(c),u),_=Se(Z(c),f);for(let p of s)if(!p.allDay&&d(p)&&p.start<_&&p.end>v){if(p.start<g){let m=vt((p.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(p.end>h){let m=At((p.end-c)/1e3,_e(f));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(f))break e}}}return{min:o,max:l}}class fi extends Map{#e=new Map;#n=K(0);#t=K(0);#r=qt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#s(t){return qt===this.#r?K(t):$t(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else return n(this.#n),!1}return n(i),!0}forEach(t,r){this.#i(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else{n(this.#n);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#n;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#t,super.size),Lt(u);else if(o!==r){Lt(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&Lt(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#t,super.size),b(i,-1),Lt(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#t,0);for(var r of t.values())b(r,-1);Lt(this.#n),t.clear()}}#i(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#s(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function Ll(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function Pl(e){let t={date:r=>Rt(Ot(r)),duration:We,events:mr,eventSources:wl,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Rt(Ot(i))),resources:r=>qn(r)?ui(r):r,validRange:Rl};for(let r of e)r.createParsers?.(t);return t}const ao=["buttonText","customButtons","theme"];function Ml(e,t,r){let i=Ll(t),s=Pl(t);i=di(i,s),r=di(r,s);let o=ci(i,"views")??{},l=ci(r,"views")??{},u=new fi;uo(u,i);let f={},d={};function c(){r.view&&u.set("view",r.view);let g=new Set([...gn(o),...gn(l)]);for(let h of g){let v=l[h]??{},_=lo(i,o[h]??o[v.type]??{}),p=lo(_,r,v),m=ci(p,"component");delete p.view;for(let y of gn(p))u.has(y)?(f[y]||(f[y]=[]),f[y].push(ao.includes(y)?k=>p[y]=ke(k)?k(_[y]):k:k=>p[y]=k)):delete p[y];fn(()=>{let y=u.get("view");j(()=>{y===h&&(e.setViewComponent(m),d=p,uo(u,p))})})}}return{proxy:new Proxy(u,{set(g,h,v){return d[h]=v,g.set(h,v),!0},get(g,h){return g.get(h)}}),setOption(g,h,v){u.has(g)&&(!v&&g in s&&(h=s[g](h)),f[g]?.forEach(_=>_(h)),u.set(g,d[g]??h))},initEffects:c}}function di(e,t){let r={...e};for(let i of gn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of gn(e.views))r.views[i]=di(e.views[i],t)}return r}function ci(e,t){let r=e[t];return delete e[t],r}function lo(...e){let t={};for(let r of e){let i={};for(let s of ao)ke(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function uo(e,t){for(let[r,i]of Ws(t))e.set(r,i)}function Al(e,t){let r=[];for(let i of gn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Ol(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:l,lazyFetching:u}}=e;j(()=>{fo(l.map(f=>ke(f.events)?f.events:f),o,mr,f=>e.events=f,r,i,s,!0,u,t)})}}function Nl(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:l,resources:u}}=e;j(()=>{fo(qn(u)?[]:[u],u,ui,f=>e.resources=f,r,i,s,l,o,t)})}}function fo(e,t,r,i,s,o,l,u,f,d){if(!kt(l)){if(kt(e)){i(t);return}if((u||!o.start)&&(!f||!o.start||o.start>s.start||o.end<s.end)){let c=[],g=p=>d.stop(),h=p=>{c=c.concat(r(p)),i(c),d.stop()},v=gt(s.start),_=gt(s.end);for(let p of e)if(d.start(),ke(p)){let m=p(u?{start:Ve(s.start),end:Ve(s.end),startStr:v,endStr:_}:{},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=ke(p.extraParams)?p.extraParams():ge({},p.extraParams);u&&(m.start=v,m.end=_),m=new URLSearchParams(m);let y=p.url,k={},S;["GET","HEAD"].includes(p.method)?y+=(y.includes("?")?"&":"?")+m:(k["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",S=String(m)),fetch(y,{method:p.method,headers:k,body:S,signal:sl(),credentials:"same-origin"}).then(D=>D.json()).then(h).catch(g)}ge(o,s)}}}function Fl(e){let t=0;function r(i){let{loading:s}=e;ke(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function Hl(e){return()=>{let t=setInterval(()=>{let r=Ot(),i=Rt(Z(r));e.now=r,Qe(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function Wl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;j(()=>{ke(r)&&r({start:Ve(t.start),end:Ve(t.end),startStr:gt(t.start),endStr:gt(t.end),view:je(e.view)})})}}function Ul(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;j(()=>{ke(i)&&(t||(t=setTimeout(()=>{t=null,i({view:je(e.view)})})))})}}function zl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;j(()=>{ke(r)&&vn().then(()=>r({view:je(e.view)}))})}}function Vl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return j(()=>{s=Z(t),r.months?s.setUTCDate(1):r.inWeeks&&Us(s,i),o=Se(Z(s),r)}),{start:s,end:o}}}function Bl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return j(()=>{i=Z(t.start),s=Z(t.end)}),r?r(i,s):{start:i,end:s}}}function Gl(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:l}}=e,u=[...t];return j(()=>{if(ke(r)){let f=t.map(Xe),d=je(e.view);u=u.filter((c,g)=>r({event:Xe(c),index:g,events:f,view:d}))}s&&(u=u.filter(f=>o.some(d=>f.resourceIds.includes(d.id)))),ke(i)?u.sort((f,d)=>i(Xe(f),Xe(d))):u.sort((f,d)=>f.start-d.start||d.allDay-f.allDay)}),u}}function Yl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return j(()=>{let o=Rt(Z(r.start)),l=Rt(Z(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(Z(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);vn().then(()=>{e.setOption("date",o)})}}),s}}function ql(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return j(()=>{i=r.formatRange(t.start,xn(Z(t.end)))}),i}}function Xl(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return j(()=>{o=_l(s,i,r,t)}),o}}class Kl{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){b(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){b(this.#t,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t,!0)}#s;get events(){return n(this.#s)}set events(t){b(this.#s,t)}#i;get filteredEvents(){return n(this.#i)}set filteredEvents(t){b(this.#i,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get resources(){return n(this.#l)}set resources(t){b(this.#l,t)}#u;get today(){return n(this.#u)}set today(t){b(this.#u,t,!0)}#f;get intlEventTime(){return n(this.#f)}set intlEventTime(t){b(this.#f,t)}#d;get intlDayHeader(){return n(this.#d)}set intlDayHeader(t){b(this.#d,t)}#h;get intlDayHeaderAL(){return n(this.#h)}set intlDayHeaderAL(t){b(this.#h,t)}#v;get intlTitle(){return n(this.#v)}set intlTitle(t){b(this.#v,t)}#g;get viewDates(){return n(this.#g)}set viewDates(t){b(this.#g,t)}#c;get viewTitle(){return n(this.#c)}set viewTitle(t){b(this.#c,t)}#w;get view(){return n(this.#w)}set view(t){b(this.#w,t)}#b;get viewComponent(){return n(this.#b)}set viewComponent(t){b(this.#b,t,!0)}#k;get extensions(){return n(this.#k)}set extensions(t){b(this.#k,t,!0)}#_;get features(){return n(this.#_)}set features(t){b(this.#_,t,!0)}#m;get interaction(){return n(this.#m)}set interaction(t){b(this.#m,t,!0)}#p;get iClasses(){return n(this.#p)}set iClasses(t){b(this.#p,t,!0)}#y;get iClass(){return n(this.#y)}set iClass(t){b(this.#y,t,!0)}#C;constructor(t,r){let{proxy:i,setOption:s,initEffects:o}=Ml(this,t,r);this.options=i,this.#C=s,this.#e=K(et([])),this.#n=a(Vl(this)),this.#t=a(Bl(this)),this.#r=K(et({events:{},resources:{}})),this.#s=K([]),this.#i=a(Gl(this)),this.#o=K(),this.#a=K(et(Ot())),this.#l=K([]),this.#u=K(et(Rt(Ot()))),this.#f=a(eo(this,"eventTimeFormat")),this.#d=a(_n(this,"dayHeaderFormat")),this.#h=a(_n(this,"dayHeaderAriaLabelFormat")),this.#v=a(eo(this,"titleFormat")),this.#g=a(Yl(this)),this.#c=a(ql(this)),this.#w=a(Xl(this)),this.#b=K(),this.#k=K(et({})),this.#_=K(et([])),this.#m=K(et({})),this.iEvents=new fi,this.#p=K(et(hr)),this.#y=K();for(let l of t)l.initState?.(this);o(),this.#D()}#D(){let t=Fl(this.options);fn(Hl(this)),qe(Ol(this,t)),qe(Nl(this,t)),qe(Wl(this)),qe(Ul(this)),qe(zl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#C(t,r,i)}}var Zl=$("<h2></h2>"),Jl=$("<button><i></i></button>"),Ql=$("<button><i></i></button>"),jl=$("<button> </button>"),$l=$("<button></button>"),eu=$("<button> </button>");function co(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),_=a(()=>r.options.view),p=K(!1),m=K(!1),y=K(!1),k=!1;fn(()=>{n(l),n(v),t.buttons,j(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,S(D),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(E),!0)),t.buttons.includes("today")&&(b(y,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(y)&&(n(v).start||n(v).end)&&b(y,S(w),!0)),vn().then(()=>k=!1))})});function S(q){let R=n(d);q();let te=n(l).every(he=>Ln(he,n(v)));return r.setOption("date",R),te}function D(){r.setOption("date",Bs(Z(n(d)),n(c),n(g)))}function E(){r.setOption("date",Vs(Z(n(d)),n(c),n(g)))}function w(){r.setOption("date",Z(n(s)))}var C=le(),M=Q(C);ue(M,17,()=>t.buttons,Ce,(q,R)=>{var te=le(),he=Q(te);{var be=X=>{var W=Zl();Fe(W,()=>Je(n(o))),ae(()=>O(W,1,n(h).title)),x(X,W)},ie=X=>{var W=le(),P=Q(W);{var H=G=>{var B=Jl();B.__click=D;var oe=de(B);ae(()=>{O(B,1,`${n(h).button??""} ec-${n(R)??""}`),Le(B,"aria-label",n(u).prev),Le(B,"title",n(u).prev),B.disabled=n(p),O(oe,1,`${n(h).icon??""} ec-${n(R)??""}`)}),x(G,B)},F=G=>{var B=le(),oe=Q(B);{var U=T=>{var z=Ql();z.__click=E;var Oe=de(z);ae(()=>{O(z,1,`${n(h).button??""} ec-${n(R)??""}`),Le(z,"aria-label",n(u).next),Le(z,"title",n(u).next),z.disabled=n(m),O(Oe,1,`${n(h).icon??""} ec-${n(R)??""}`)}),x(T,z)},L=T=>{var z=le(),Oe=Q(z);{var Pe=Me=>{var He=jl();He.__click=w;var pt=de(He);ae(()=>{O(He,1,`${n(h).button??""} ec-${n(R)??""}`),He.disabled=n(y),Ls(pt,n(u)[n(R)])}),x(Me,He)},at=Me=>{var He=le(),pt=Q(He);{var Nt=J=>{var Re=$l();Re.__click=function(...N){n(f)[n(R)].click?.apply(this,N)},Fe(Re,()=>Je(n(f)[n(R)].text)),ae(()=>O(Re,1,Mt([n(h).button,`ec-${n(R)}`,n(f)[n(R)].active&&n(h).active]))),x(J,Re)},V=J=>{var Re=le(),N=Q(Re);{var Y=ve=>{var me=eu();me.__click=()=>r.setOption("view",n(R));var ne=de(me);ae(()=>{O(me,1,Mt([n(h).button,`ec-${n(R)}`,n(_)===n(R)&&n(h).active])),Ls(ne,n(u)[n(R)])}),x(ve,me)};fe(N,ve=>{n(R)!==""&&ve(Y)},!0)}x(J,Re)};fe(pt,J=>{n(f)[n(R)]?J(Nt):J(V,!1)},!0)}x(Me,He)};fe(Oe,Me=>{n(R)==="today"?Me(Pe):Me(at,!1)},!0)}x(T,z)};fe(oe,T=>{n(R)==="next"?T(U):T(L,!1)},!0)}x(G,B)};fe(P,G=>{n(R)==="prev"?G(H):G(F,!1)},!0)}x(X,W)};fe(he,X=>{n(R)==="title"?X(be):X(ie,!1)})}x(q,te)}),x(e,C),we()}tn(["click"]);var tu=$("<div><!></div>"),nu=$("<div></div>"),ru=$("<nav></nav>");function iu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.headerToolbar),s=a(()=>n(r).options.theme),o=a(()=>{let u={};for(let f of["start","center","end"])u[f]=n(i)[f]?.split(" ").map(d=>d.split(","))??[];return u});var l=ru();ue(l,21,()=>gn(n(o)),Ce,(u,f)=>{var d=nu();ue(d,21,()=>n(o)[n(f)],Ce,(c,g)=>{var h=le(),v=Q(h);{var _=m=>{var y=tu(),k=de(y);co(k,{get buttons(){return n(g)}}),ae(()=>O(y,1,n(s).buttonGroup)),x(m,y)},p=m=>{co(m,{get buttons(){return n(g)}})};fe(v,m=>{n(g).length>1?m(_):m(p,!1)})}x(c,h)}),ae(()=>O(d,1,`ec-${n(f)??""}`)),x(u,d)}),ae(()=>O(l,1,n(s).toolbar)),x(e,l),we()}var su=$("<div><!> <!> <!></div>");function ou(e,t){ye(t,!0);let r=De(t,"plugins",19,()=>[]),i=De(t,"options",19,()=>({})),s=new Kl(r(),i());Fn("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),_=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),y=a(()=>s.options.theme),k={...i()};fn(()=>{for(let[L,T]of Al(i(),k))j(()=>{S(L,T)});ge(k,i())});function S(L,T){return fl(T)&&(T={...T}),qn(T)&&(T=[...T]),s.setOption(L,T,!1),this}function D(L){let T=s.options[L];return ei(T)?Ve(T):T}function E(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function C(){return n(u).map(Xe)}function M(L){L=String(L);for(let T of n(u))if(T.id===L)return Xe(T);return null}function q(L){return L=mr([L])[0],n(u).push(L),s.events=[...n(u)],Xe(L)}function R(L){let T=String(L.id),z=n(u).findIndex(Oe=>Oe.id===T);return z>=0?(L=mr([L])[0],n(u)[z]=L,s.events=[...n(u)],Xe(L)):null}function te(L){L=String(L);let T=n(u).findIndex(z=>z.id===L);return T>=0&&(n(u).splice(T,1),s.events=[...n(u)]),this}function he(){return je(n(c))}function be(){return n(f).action?.unselect(),this}function ie(L,T){let z=Sn(L,T);if(z){let Oe=Kt(z)(L,T);return Oe.date=Ve(Oe.date),Oe}return null}function X(){return s.setOption("date",Vs(Z(n(h)),n(v),n(p))),this}function W(){return s.setOption("date",Bs(Z(n(h)),n(v),n(p))),this}var P={setOption:S,getOption:D,refetchResources:E,refetchEvents:w,getEvents:C,getEventById:M,addEvent:q,updateEvent:R,removeEventById:te,getView:he,unselect:be,dateFromPoint:ie,next:X,prev:W},H=su();let F;var G=de(H);iu(G,{});var B=se(G,2);{var oe=L=>{var T=le(),z=Q(T);qr(z,()=>n(g),(Oe,Pe)=>{Pe(Oe,{})}),x(L,T)};fe(B,L=>{n(g)&&L(oe)})}var U=se(B,2);return ue(U,17,()=>n(o),Ce,(L,T)=>{var z=le(),Oe=Q(z);qr(Oe,()=>n(T),(Pe,at)=>{at(Pe,{})}),x(L,z)}),ae(L=>{O(H,1,Mt([n(y).calendar,n(y).view,n(d)&&n(y)[n(d)],n(m)&&n(y).customScrollbars])),Le(H,"role",L),F=St(H,"",F,{height:n(_)})},[()=>n(l).includes("list")?"list":"table"]),x(e,H),we(P)}function au(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return j(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function lu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return j(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:Ct(Z(c)),disabled:Ln(c,i),highlight:r.some(g=>Qe(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function uu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return j(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(In(l,u))):s=s.concat(In(l,u));Qs(s)}),{chunks:s,bgChunks:o}}}function fu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&j(()=>{for(let l of i)s=s.concat(In(o,l,!1))});return s}}let du=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){b(this.#t,t,!0)}#r;get chunks(){return n(this.#r)}set chunks(t){b(this.#r,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){b(this.#s,t)}#i;get iChunks(){return n(this.#i)}set iChunks(t){b(this.#i,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){b(this.#o,t)}#a;get intlDayPopover(){return n(this.#a)}set intlDayPopover(t){b(this.#a,t)}#l;get popupDay(){return n(this.#l)}set popupDay(t){b(this.#l,t,!0)}constructor(t){this.#e=a(au(t)),this.#n=a(lu(t,this)),this.#t=K();let r=a(uu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#i=a(fu(t,this)),this.hiddenChunks=new fi,this.#o=a(_n(t,"dayCellFormat")),this.#a=a(_n(t,"dayPopoverFormat")),this.#l=K(null)}};var cu=$("<div><!></div>");function yr(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"allDay",3,!1),s=De(t,"resource",3,void 0),o=De(t,"dateFromPoint",3,()=>t.date),l=De(t,"classes",3,hr),u=De(t,"disabled",3,!1),f=De(t,"highlight",3,!1),d=De(t,"role",3,"cell"),c=De(t,"noIeb",3,!1),g=De(t,"noBeb",3,!1),h=a(()=>re("state")),v=a(()=>n(h).today),_=a(()=>n(h).interaction.action),p=a(()=>n(h).options.theme),m=a(()=>re("view-state")),y=a(()=>n(m).snap),k=a(()=>Qe(t.date,n(v))),S=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,f()&&n(p).highlight,u()&&n(p).disabled,c()&&n(p).noIeb,g()&&n(p).noBeb]));Yn(()=>{qs(r(),(C,M)=>({allDay:i(),date:o()(C,M),resource:s(),dayEl:r(),disabled:u()}))});let D=a(()=>!u()&&n(_)?C=>n(_).select(C,n(y)):void 0);var E=cu();E.__pointerdown=function(...C){n(D)?.apply(this,C)};var w=de(E);Xt(w,()=>t.children??Zt),st(E,C=>r(C),()=>r()),ae(()=>{O(E,1,Mt(n(S))),Le(E,"role",d())}),x(e,E),we()}tn(["pointerdown"]);var hu=$("<div></div>"),vu=$("<article><!></article>");function ho(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"classes",3,hr),s=De(t,"styles",3,hr),o=a(()=>re("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).resources),f=a(()=>n(o).view),d=a(()=>n(o).options.displayEventEnd),c=a(()=>n(o).options.eventBackgroundColor),g=a(()=>n(o).options.eventColor),h=a(()=>n(o).options.eventContent),v=a(()=>n(o).options.eventClick),_=a(()=>n(o).options.eventDidMount),p=a(()=>n(o).options.eventClassNames),m=a(()=>n(o).options.eventMouseEnter),y=a(()=>n(o).options.eventMouseLeave),k=a(()=>n(o).options.eventTextColor),S=a(()=>n(o).options.theme),D=a(()=>t.chunk.event),E=a(()=>t.chunk.event.display),w=a(()=>n(D).backgroundColor??no(t.chunk.resource??io(n(D),n(u)))??n(c)??n(g)),C=a(()=>n(D).textColor??ro(t.chunk.resource??io(n(D),n(u)))??n(k)),M=a(()=>Ws(s()({"background-color":n(w),color:n(C)})).map(U=>`${U[0]}:${U[1]}`).concat(n(D).styles).join(";")),q=a(()=>i()([mt(n(E))?n(S).bgEvent:n(S).event,...kl(n(p),n(D),n(f))])),R=a(()=>bl(t.chunk,n(d),n(h),n(S),n(l),n(f))),te=a(()=>Wo(n(R),2)),he=a(()=>n(te)[0]),be=a(()=>n(te)[1]);Yn(()=>{ke(n(_))&&n(_)({event:Xe(n(D)),timeText:n(he),el:r(),view:je(n(f))})});function ie(U,L){return ke(U)&&!pr(L)?T=>U({event:Xe(n(D)),el:r(),jsEvent:T,view:je(n(f))}):void 0}let X=a(()=>!mt(n(E))&&ie(n(v),n(E))||void 0),W=a(()=>n(X)&&Qr(n(X))),P=a(()=>ie(n(m),n(E))),H=a(()=>ie(n(y),n(E)));var F=vu();F.__click=function(...U){n(X)?.apply(this,U)},F.__keydown=function(...U){n(W)?.apply(this,U)},F.__pointerdown=function(...U){t.onpointerdown?.apply(this,U)};{const U=L=>{var T=hu();Fe(T,()=>Je(n(be))),ae(()=>O(T,1,Mt(n(S).eventBody))),x(L,T)};var G=de(F);{var B=L=>{var T=le(),z=Q(T);Xt(z,()=>t.body,()=>U,()=>n(w),()=>n(C)),x(L,T)},oe=L=>{U(L)};fe(G,L=>{t.body?L(B):L(oe,!1)})}st(F,L=>r(L),()=>r())}ae(()=>{O(F,1,Mt(n(q))),St(F,n(M)),Le(F,"role",n(X)?"button":void 0),Le(F,"tabindex",n(X)?0:void 0)}),ht("mouseenter",F,function(...U){n(P)?.apply(this,U)}),ht("mouseleave",F,function(...U){n(H)?.apply(this,U)}),x(e,F),we()}tn(["click","keydown","pointerdown"]);var gu=$("<div><!></div>");function Qn(e,t){ye(t,!0);let r=De(t,"weekday",3,!0),i=De(t,"colSpan",3,1),s=De(t,"ariaHidden",3,!1),o=De(t,"disabled",3,!1),l=De(t,"highlight",3,!1),u=a(()=>re("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=gu(),g=de(c);Xt(g,()=>t.children),ae(h=>{O(c,1,h),Le(c,"role",s()?null:"columnheader"),Le(c,"aria-colspan",s()||i()<=1?null:i()),Le(c,"aria-colindex",s()?null:t.colIndex),Le(c,"aria-hidden",s()?"true":null)},[()=>Mt([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Qe(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),x(e,c),we()}var mu=$("<time></time>");function wr(e,t){ye(t,!0);let r=De(t,"alPrefix",3,""),i=a(()=>re("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=mu();Fe(l,()=>Je(n(s).format(t.date))),ae((u,f)=>{Le(l,"datetime",u),Le(l,"aria-label",`${r()??""}${f??""}`)},[()=>gt(t.date,10),()=>n(o).format(t.date)]),x(e,l),we()}function br(e,t){ye(t,!0);let r=De(t,"el",15),i=a(()=>re("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>re("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>_=>n(s)(_,n(d)));function h(_){return n(o)?.draggable(_)?p=>n(o).drag(_,p,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(c))&&!pr(n(c))?h(n(d)):void 0);ho(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(p){r(p)},body:(p,m=Zt)=>{var y=le(),k=Q(y);{var S=E=>{var w=le(),C=Q(w);qr(C,()=>n(l),(M,q)=>{q(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(R,te)=>{var he=le(),be=Q(he);Xt(be,m),x(R,he)},$$slots:{default:!0}})}),x(E,w)},D=E=>{var w=le(),C=Q(w);Xt(C,m),x(E,w)};fe(k,E=>{n(l)?E(S):E(D,!1)})}x(p,y)},$$slots:{body:!0}}),we()}var pu=$("<time></time>"),_u=$("<span></span>"),yu=$('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),wu=$("<div><!> <!></div> <div><!></div>",1);function bu(e,t){ye(t,!0);const r=()=>nl(n(d),"$firstDay",i),[i,s]=rl();let o=re("state"),l=re("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),_=a(()=>l.hiddenChunks),p=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),y=a(()=>t.day.disabled),k=a(()=>t.day.highlight),S=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),D=a(()=>R=>[...R,n(S)&&n(g).otherMonth]),E=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let R;if(n(E)){let te=gl(n(m),r());n(v)?R=ke(n(v))?n(v)({date:Ve(n(m)),week:te}):n(v):R="W"+String(te).padStart(2,"0")}return R}),C=a(()=>n(_).get(n(m).getTime())),M=a(()=>{let R="";if(n(C)){let te="+"+n(C).length+" more";n(c)?R=ke(n(c))?n(c)({num:n(C).length,text:te}):n(c):R=te}return R});function q(){l.popupDay=t.day}yr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(D)},get disabled(){return n(y)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(R,te)=>{var he=wu(),be=Q(he),ie=de(be);{var X=B=>{var oe=pu();Fe(oe,()=>Je(n(p).format(n(m)))),ae(U=>Le(oe,"datetime",U),[()=>gt(n(m),10)]),x(B,oe)};fe(ie,B=>{n(u).includes("dayNumber")&&B(X)})}var W=se(ie,2);{var P=B=>{var oe=_u();Fe(oe,()=>Je(n(w))),ae(()=>O(oe,1,n(g).weekNumber)),x(B,oe)};fe(W,B=>{n(E)&&B(P)})}var H=se(be,2),F=de(H);{var G=B=>{var oe=yu(),U=a(()=>ri(q));oe.__click=function(...z){n(U)?.apply(this,z)};var L=a(()=>Qr(q));oe.__keydown=function(...z){n(L)?.apply(this,z)};var T=a(ri);oe.__pointerdown=function(...z){n(T)?.apply(this,z)},Fe(oe,()=>Je(n(M))),x(B,oe)};fe(F,B=>{n(C)&&B(G)})}ae(()=>{O(be,1,n(g).dayHead),O(H,1,n(g).dayFoot)}),x(R,he)},$$slots:{default:!0}}),we(),s()}tn(["click","keydown","pointerdown"]);function kr(e,t){ye(t,!0);let r=De(t,"inPopup",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>re("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=K(void 0),g=K(1),h=K(!1),v=a(()=>t.chunk.event),_=a(()=>t.chunk.event.display),p=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));qe(()=>{r()||b(g,pn(n(p).firstElementChild)||1,!0)});let m=a(()=>E=>{if(E["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,E["grid-row"]=t.chunk.gridRow,!mt(n(_))){let w=r()?1:n(g);if(n(v)._margin){let[C,M]=n(v)._margin;C>w&&t.chunk.gridRow===M&&(w=C)}E["margin-block-start"]=`${w}px`}return n(h)&&(E.visibility="hidden"),E});function y(){b(g,js(t.chunk,pn(n(c)),pn(n(p).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let E=pn(n(p))-S(n(p));if(b(h,t.chunk.bottom>E),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let M=n(f).get(C);M.includes(t.chunk)||n(f).set(C,[...M,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function S(E){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=vt(w,pn(E.lastElementChild)),E=E.nextElementSibling,!!E);++C);return w}var D={reposition:y,hide:k};{let E=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);br(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(E)},get forceMargin(){return n(w)},get el(){return n(c)},set el(C){b(c,C,!0)}})}return we(D)}var ku=$('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Cu(e,t){ye(t,!0);let r=re("view-state"),i=a(()=>re("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=K(void 0),v=K(""),_=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),k=a(()=>{let ie=[];for(let X of n(f))X.gridRow===n(p)&&X.gridColumn<=n(_)&&X.gridColumn+X.dates.length>n(_)&&ie.push(ge({},X,Kn(X.event,n(m),n(y))));return ie.sort((X,W)=>X.top-W.top),ie});Yn(()=>{n(h).show()}),qe(()=>{n(k).length?j(S):D()});function S(){let ie=n(d).children.item((n(p)-1)*n(u)+n(_)-1),X=rn(n(h)),W=rn(ie),P=rn(n(d));b(v,"");let H;if(X.width>=P.width){H=P.left-W.left;let G=W.right-P.right;b(v,n(v)+`inset-inline-end:${G}px;`)}else H=(W.width-X.width)/2,W.left+H<P.left?H=P.left-W.left:W.left+H+X.width>P.right&&(H=P.right-W.left-X.width);b(v,n(v)+`inset-inline-start:${H}px;`);let F;X.height>=P.height?(F=P.top-W.top,b(v,n(v)+`block-size:${P.height}px;`)):(F=(W.height-X.height)/2,W.top+F<P.top?F=P.top-W.top:W.top+F+X.height>P.bottom&&(F=P.bottom-W.top-X.height)),b(v,n(v)+`inset-block-start:${F}px;`)}function D(){r.popupDay=null}function E(){D(),n(s).action?.noClick()}var w=ku();let C;var M=de(w),q=de(M);Fe(q,()=>Je(n(c).format(n(m))));var R=se(q,2);Sa(R);var te=a(()=>ri(D));R.__click=function(...ie){n(te)?.apply(this,ie)};var he=a(()=>Qr(D));R.__keydown=function(...ie){n(he)?.apply(this,ie)};var be=se(M,2);ue(be,21,()=>n(k),Ce,(ie,X)=>{kr(ie,{get chunk(){return n(X)},inPopup:!0})}),st(w,ie=>b(h,ie),()=>n(h)),Fe(w,()=>al("pointerdown")),ae(ie=>{O(w,1,n(l).popup),C=St(w,n(v),C,{"grid-area":`${n(p)+1} / ${n(_)}`}),O(M,1,n(l).dayHead),Le(q,"datetime",ie),Le(R,"aria-label",n(o).close),O(be,1,n(l).events)},[()=>gt(n(m),10)]),ht("pointerdownoutside",w,E),ht("close",w,D),x(e,w),we()}tn(["click","keydown"]);var Du=$('<div role="columnheader"><span></span></div>'),Eu=$('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function hi(e,t){ye(t,!0);let r=re("state"),i=new du(r);Fn("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),_=[];function p(){oi(_,n(d)),n(h).clear(),vn().then(m)}function m(){n(h).size,_.forEach(D=>D?.hide())}qe(p),qe(m);var y=le(),k=Q(y);{var S=D=>{var E=Eu();let w;var C=de(E),M=de(C);ue(M,21,()=>n(f)[0],Ce,(P,H,F)=>{let G=()=>n(H).dayStart;var B=Du();Le(B,"aria-colindex",1+F);var oe=de(B);Fe(oe,()=>Je(n(s).format(G()))),ae((U,L)=>{O(B,1,U),Le(oe,"aria-label",L)},[()=>Mt([n(u).colHead,n(u).weekdays?.[G().getUTCDay()]]),()=>n(o).format(G())]),x(P,B)});var q=se(C,2),R=de(q);ue(R,21,()=>n(f),Ce,(P,H,F)=>{var G=le(),B=Q(G);ue(B,17,()=>n(H),Ce,(oe,U,L)=>{{let T=a(()=>L+1===Te(n(H))),z=a(()=>F+1===Te(n(f)));bu(oe,{get day(){return n(U)},get noIeb(){return n(T)},get noBeb(){return n(z)}})}}),x(P,G)}),st(R,P=>i.gridEl=P,()=>i?.gridEl);var te=se(R,2),he=de(te);ue(he,19,()=>n(d),P=>P.id,(P,H,F)=>{st(kr(P,{get chunk(){return n(H)}}),(G,B)=>_[B]=G,G=>_?.[G],()=>[n(F)])});var be=se(he,2);ue(be,17,()=>n(c),P=>P.id,(P,H)=>{kr(P,{get chunk(){return n(H)}})});var ie=se(be,2);ue(ie,17,()=>n(g),Ce,(P,H)=>{kr(P,{get chunk(){return n(H)}})});var X=se(q,2);{var W=P=>{Cu(P,{})};fe(X,P=>{n(v)&&P(W)})}st(E,P=>r.mainEl=P,()=>r?.mainEl),Fe(E,()=>jr(p)),ae(P=>{O(E,1,Mt([n(u).main,n(l)===!0&&n(u).uniform])),w=St(E,"",w,P),O(C,1,n(u).header),O(M,1,n(u).grid),O(q,1,n(u).body),O(R,1,n(u).grid),O(te,1,n(u).events)},[()=>({"--ec-grid-cols":Te(n(f)[0]),"--ec-grid-rows":Te(n(f))})]),x(D,E)};fe(k,D=>{!kt(n(f))&&!kt(n(f)[0])&&D(S)})}x(e,y),we()}const Tu={createOptions(e){ge(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ge(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ge(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ge(e.views,{dayGridDay:{buttonText:Zn,component:()=>hi,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:ot("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:Jn,component:()=>hi,displayEventEnd:!1,theme:ot("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:li,component:xu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:ot("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function xu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Us(t,i),end:vl(r,i)}},hi}function vo(e,t,r){return e.startEditable??t??e.editable??r}function Su(e,t,r){return e.durationEditable??t??e.editable??r}let vi=!1;function Ru(e){vi||(vi=!0,window.requestAnimationFrame(()=>{e(),vi=!1}))}function go(e,t,r){return vt(t,At(r,e))}function Iu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,pr(l)?[i[l]]:!mt(l)&&vo(o,r,t)?[i.draggable]:[]]}}}function Lu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Xn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Pu{constructor(t){this.#e(t)}#e(t){fn(Iu(t)),qe(Lu(t))}}function Mu(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),_=a(()=>r.options.eventDragStart),p=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),y=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),D=a(()=>r.options.eventResize),E=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),M=a(()=>r.options.select),q=a(()=>r.options.selectBackgroundColor),R=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),he=a(()=>r.options.selectMinDistance),be=a(()=>r.options.unselect),ie=a(()=>r.options.unselectAuto),X=a(()=>r.options.unselectCancel),W=a(()=>r.options.validRange);const P=1,H=2,F=3,G=4,B=5,oe=6;let U,L,T,z,Oe,Pe,at,Me,He,pt,Nt,V,J,Re,N,Y,ve,me,ne,Ie,Be,lt,Ne,xe,ut,Ue,_t;function Pn(I){return vo(I,n(h),n(g))}function Ei(I,A,pe,ee,$e){U||(U=Ri(A)?P:oe,yn()&&(T=I,Si(A,$e),pe&&(Pe=pe),ee&&(ut=ee),me="dragging",Mn(A)))}function Ti(I,A,pe,ee,$e,$n,Li,id){U||(U=Ri(A)?pe?F:H:oe,yn()&&(T=I,Si(A,id),$e&&(Pe=$e),$n&&(ut=$n),me=ee==="x"?"resizingX":"resizingY",Tr()?(ne=Z(T.end),ve?(ti(ne,T.start),ne>=T.end&&xn(ne)):(gr(ne,Ue),ne<T.start&&(ne=T.start),Pe=T.start)):(ne=Z(T.start),ve?(ti(ne,T.end),ne<=T.start&&!Li&&Ct(ne)):(Se(ne,Ue),ne>T.end&&(ne=T.end),Pe=T.end,Li||(Pe=gr(Z(Pe),Ue))),Li&&!ve&&(_t=Ue)),Mn(A)))}function xi(I,A){U||(U=Ri(I)?n(C)&&!n(o).includes("list")?G:B:oe,yn()&&(Si(I,A),me="selecting",Ie=ve?We({day:1}):Ue,T={allDay:ve,start:Pe,end:Se(Z(Pe),Ie),resourceIds:Me?[Me.id]:[]},Mn(I)))}function qf(){U||(U=oe)}function Si(I,A){window.getSelection().removeAllRanges(),pt=V=I.clientX,Nt=J=I.clientY,Ue=A?.duration;let pe=Sn(V,J);({allDay:ve,date:Pe,resource:Me}=Kt(pe)(V,J)),N=n(u)!==Ks(pe,3),Re=Ks(pe,1),So(),I.pointerType!=="mouse"&&(Ne=setTimeout(()=>{U&&(L=!0,Mn(I))},(sn()?n(te):n(y))??n(E)))}function Mn(I){if(L||I&&I.pointerType==="mouse"&&Qf()>=(sn()?n(he):n(v))){L=!0,xr(I),r.iClass=me,z||(sn()?Jf():Zf(I,An()?n(k):n(_)));let A=jn(Kf());if(A){let pe;if({allDay:pe,date:at,resource:He}=A,pe===ve){let ee=Er({},z),$e=n(w);Y=We((at-Pe)/1e3),Tr()?(ee.start=Se(Z(T.start),Y),ee.start>ne&&(ee.start=ne,Y=We((ne-T.start)/1e3))):(ee.end=Se(Z(T.end),Y),_t&&Se(ee.end,_t),An()?ee.end<ne&&(ee.end=ne,Y=We((ne-T.end)/1e3)):sn()?(ee.end<T.end?(ee.start=gr(ee.end,Ie),ee.end=T.end):ee.start=T.start,$e=n(R)):(ee.start=Se(Z(T.start),Y),Me&&(ee.resourceIds=T.resourceIds.filter($n=>$n!==Me.id),ee.resourceIds.push(He.id)),$e=n(d)));do{if($e!==void 0&&(ee=Er(si(T),ee),$e(sn()?Po(ee,I):Mo(ee,T,I))===!1)){Lo(T);break}Lo(ee)}while(!1)}}}if(n(c)){let A=24,pe=24;Ru(()=>{xe&&(N||(J<xe.top+A&&(n(u).scrollTop+=vt(-8,(J-xe.top-A)/3)),J>xe.bottom-A&&(n(u).scrollTop+=At(8,(J-xe.bottom+A)/3))),V<xe.left+pe&&(n(u).scrollLeft+=vt(-8,(V-xe.left-pe)/3)),V>xe.right-pe&&(n(u).scrollLeft+=At(8,(V-xe.right+pe)/3)),J<A&&window.scrollBy(0,vt(-8,(J-A)/3)),J>window.innerHeight-A&&window.scrollBy(0,At(8,(J-window.innerHeight+A)/3)))})}}function To(){yn()&&(So(),Mn())}function Xf(I){yn()&&I.isPrimary&&(V=I.clientX,J=I.clientY,Mn(I))}function xo(I){if(Be&&n(ie)&&!(n(X)&&I.target.closest(n(X)))&&xr(I),U&&I.isPrimary){if(L)if(sn()){if(Be=!0,ke(n(M))){let A=Po(z,I);n(M)(A)}}else{T.display=Oe;let A=An()?n(S):n(p);ke(A)&&A({event:Xe(T),jsEvent:I,view:je(n(l))});let pe=si(T);if(Io(T,z),Ro(),A=An()?n(D):n(m),ke(A)){let ee=T,$e=Mo(T,pe,I);A(ge($e,{revert(){Io(ee,pe)}}))}}else if((jf()||sn())&&ke(n(f))&&!lt){V=I.clientX,J=I.clientY;let A=Sn(V,J);if(A){let{allDay:pe,date:ee,resource:$e}=Kt(A)(V,J);n(f)({allDay:pe,date:Ve(ee),dateStr:gt(ee),dayEl:A,jsEvent:I,view:je(n(l)),resource:$e})}}L=!1,U=pt=Nt=V=J=T=Oe=Pe=at=Me=He=Y=_t=ve=ne=Ie=ut=Re=xe=Ue=void 0,r.iClass=void 0,Ne&&(clearTimeout(Ne),Ne=void 0)}lt=!1}function Kf(){return Sn(go(V,xe.left,xe.right),go(J,xe.top,xe.bottom))}function jn(I){if(I){let A=Kt(I)(V,J);if(A.disabled){if(!n(W).end||A.date<n(W).end)return jn(I.nextElementSibling);if(!n(W).start||A.date>n(W).start)return jn(I.previousElementSibling)}else return(sn()||An())&&A.resource&&!z.resourceIds.includes(A.resource.id)&&!n(o).includes("timeline")?V>pt?jn(I.previousElementSibling):jn(I.nextElementSibling):A}return null}function So(){let I=rn(n(u)),A=rn(Re),pe=I.width/n(u).offsetWidth,ee=I.height/n(u).offsetHeight,$e=mn();xe={left:vt(0,$e?I.right-n(u).clientWidth*pe:A.left+n(u).scrollLeft*pe),right:At(document.documentElement.clientWidth,$e?A.right+n(u).scrollLeft*pe:I.left+n(u).clientWidth*pe)-2,top:vt(0,A.top+(N?0:n(u).scrollTop)*ee),bottom:At(document.documentElement.clientHeight,N?A.bottom:I.top+n(u).clientHeight*ee)-2}}function Zf(I,A){ke(A)&&A({event:Xe(T),jsEvent:I,view:je(n(l))}),Oe=T.display,T.display="preview",z=si(T),ut!==void 0&&(z._margin=ut),_t&&Se(z.end,_t),T.display="ghost",r.events=[...n(i)]}function Jf(){z={id:"{select}",allDay:T.allDay,start:T.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(q),resourceIds:T.resourceIds,classNames:[],styles:[]}}function Ro(){z=void 0,n(s).delete("action")}function Er(I,A){return I.start=A.start,I.end=A.end,I.resourceIds=A.resourceIds,{...I}}function Io(I,A){Er(I,A),r.events=[...n(i)]}function Lo(I){z=Er(z,I),n(s).set("action",z)}function Po(I,A){let{start:pe,end:ee}=Xe(I);return{start:pe,end:ee,startStr:gt(I.start),endStr:gt(I.end),allDay:ve,view:je(n(l)),resource:Me,jsEvent:A}}function Mo(I,A,pe){let ee;return An()?ee=Tr()?{startDelta:Y,endDelta:We(0)}:{startDelta:We(0),endDelta:Y}:ee={delta:Y,oldResource:Me!==He?Me:void 0,newResource:Me!==He?He:void 0},ge(ee,{event:Xe(I),oldEvent:Xe(A),view:je(n(l)),jsEvent:pe}),ee}function Qf(){return Math.sqrt(Math.pow(V-pt,2)+Math.pow(J-Nt,2))}function An(){return U===H||Tr()}function Tr(){return U===F}function jf(){return U===B}function sn(){return U===G}function yn(){return U&&U<B}function Ri(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function xr(I){Be&&(Be=!1,Ro(),ke(n(be))&&n(be)({jsEvent:I,view:je(n(l))}))}fn(()=>{n(l),xr()});function $f(){lt=!0}function ed(I){if(yn()){let A=I.target,pe=[],ee=()=>cl(pe);pe.push(Xn(A,"touchmove",Ii(()=>L))),pe.push(Xn(A,"touchend",ee)),pe.push(Xn(A,"touchcancel",ee))}}function Ii(I){return A=>{I()&&A.preventDefault()}}Yn(()=>Xn(window,"touchmove",hl,{passive:!1}));var td={draggable:Pn,drag:Ei,resize:Ti,select:xi,noAction:qf,handleScroll:To,unselect:xr,noClick:$f};ht("pointermove",Et,Xf),ht("pointerup",Et,xo),ht("pointercancel",Et,xo),ht("scroll",Et,To);var nd=a(()=>Ii(yn));ht("selectstart",Et,function(...I){n(nd)?.apply(this,I)});var rd=a(()=>Ii(()=>Ne));return ht("contextmenu",Et,function(...I){n(rd)?.apply(this,I)}),ht("touchstart",Et,ed,void 0,!0),we(td)}function Au(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let p=Sn(o,l);if(p&&!n(i).has("action")){let{allDay:m,date:y,resource:k,disabled:S}=Kt(p)(o,l);if(!S){u||g(),u.allDay=m,u.start=y,u.end=Se(Z(y),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(p){v(p)&&(o=p.clientX,l=p.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(p){return p.isPrimary&&p.pointerType==="mouse"}var _={handleScroll:d};return ht("pointermove",Et,c),ht("scroll",Et,d),we(_)}var Ou=$("<div></div>"),Nu=$("<div></div>"),Fu=$("<!> <!> <!>",1);function Hu(e,t){ye(t,!0);let r=De(t,"forceDate",3,void 0),i=De(t,"forceMargin",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),_=a(()=>!mt(n(v))&&!pr(n(v))&&Su(n(h),n(u),n(l)));function p(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Fu(),y=Q(m);{var k=w=>{var C=Ou(),M=a(()=>p(!0));C.__pointerdown=function(...q){n(M)?.apply(this,q)},ae(()=>O(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),x(w,C)};fe(y,w=>{n(_)&&n(f)&&w(k)})}var S=se(y,2);Xt(S,()=>t.children);var D=se(S,2);{var E=w=>{var C=Nu(),M=a(()=>p(!1));C.__pointerdown=function(...q){n(M)?.apply(this,q)},ae(()=>O(C,1,n(d).resizer)),x(w,C)};fe(D,w=>{n(_)&&w(E)})}x(e,m),we()}tn(["pointerdown"]);var Wu=$("<!> <!>",1);function Uu(e,t){ye(t,!0);let r=re("state");new Pu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Hu;var o=Wu(),l=Q(o);st(Mu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=se(l,2);{var f=d=>{st(Au(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};fe(u,d=>{n(s)&&d(f)})}x(e,o),we()}const zu={createOptions(e){ge(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),ge(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(Uu)}};let Vu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){b(this.#n,t)}constructor(t){this.#e=a(_n(t,"listDayFormat")),this.#n=a(_n(t,"listDaySideFormat"))}};var Bu=$("<div></div> <!>",1);function Gu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).interaction),s=a(()=>n(r).options.theme),o=a(()=>l=>(delete l["background-color"],delete l.color,l));{const l=(f,d=Zt,c=Zt,g=Zt)=>{var h=Bu(),v=Q(h);let _;var p=se(v,2);Xt(p,d),ae(()=>{O(v,1,n(s).eventTag),_=St(v,"",_,{"background-color":c()})}),x(f,h)};let u=a(()=>n(i).action?.noAction);ho(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}we()}var Yu=$("<h4><time></time> <time></time></h4> <!>",1);function qu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).filteredEvents),s=a(()=>n(r).options.highlightedDates),o=a(()=>n(r).options.theme),l=a(()=>n(r).options.validRange),u=a(()=>re("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(y=>Qe(y,t.date))),g=a(()=>Ln(t.date,n(l))),h=a(()=>gt(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let k=t.date,S=Ct(Z(t.date));for(let D of n(i))if(!mt(D.display)&&Rn(D,k,S)){let E=Kn(D,k,S);y.push(E)}}return y});var _=le(),p=Q(_);{var m=y=>{yr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,S)=>{var D=Yu(),E=Q(D),w=de(E);Fe(w,()=>Je(n(f).format(t.date)));var C=se(w,2);Fe(C,()=>Je(n(d).format(t.date)));var M=se(E,2);ue(M,17,()=>n(v),q=>q.event,(q,R)=>{Gu(q,{get chunk(){return n(R)}})}),ae(()=>{O(E,1,n(o).dayHead),Le(w,"datetime",n(h)),O(C,1,n(o).daySide),Le(C,"datetime",n(h))}),x(k,D)},$$slots:{default:!0}})};fe(p,y=>{n(v).length&&y(m)})}x(e,_),we()}var Xu=$("<div></div>"),Ku=$("<section><!></section>");function Zu(e,t){ye(t,!0);let r=re("state"),i=new Vu(r);Fn("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),c=a(()=>{let y=!0;if(!kt(n(l))){let k=n(l)[0],S=Ct(Z(n(l).at(-1)));for(let D of n(s))if(!mt(D.display)&&D.start<S&&D.end>k){y=!1;break}}return y}),g=a(()=>ke(n(f))?n(f)():n(f));function h(y){ke(n(u))&&n(u)({jsEvent:y,view:je(n(o))})}var v=Ku(),_=de(v);{var p=y=>{var k=Xu();k.__click=h,Fe(k,()=>Je(n(g))),ae(()=>O(k,1,n(d).noEvents)),x(y,k)},m=y=>{var k=le(),S=Q(k);ue(S,17,()=>n(l),Ce,(D,E)=>{qu(D,{get date(){return n(E)}})}),x(y,k)};fe(_,y=>{n(c)?y(p):y(m,!1)})}st(v,y=>r.mainEl=y,()=>r?.mainEl),ae(()=>O(v,1,n(d).main)),x(e,v),we()}tn(["click"]);const Ju={createOptions(e){ge(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ge(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ge(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ge(e.views,{listDay:{buttonText:Zn,component:Cr,duration:{days:1},theme:ot("ec-list ec-day-view")},listWeek:{buttonText:Jn,component:Cr,duration:{weeks:1},theme:ot("ec-list ec-week-view")},listMonth:{buttonText:li,component:Cr,duration:{months:1},theme:ot("ec-list ec-month-view")},listYear:{buttonText:Sl,component:Cr,duration:{years:1},theme:ot("ec-list ec-year-view")}})}};function Cr(e){return e.features=["list"],Zu}function gi(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Rn(e,u,f,l)){let c=Kn(e,u,f);ge(c,{gridColumn:s,gridRow:o,resource:l,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&ai(c),i.push(c)}return i}function Qu(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function ju(e){let t="all-day",r;return e?(r=ke(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function mi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>vr){Se(xn(r),i);let s=xn(Z(r));s<t&&(t=s)}return{start:t,end:r}}}function pi(e){"scrollTime"in e||(ge(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),ge(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function mo(e){"allDaySlot"in e||(ge(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ge(e.theme,{allDay:"ec-all-day"}))}function _i(e){"scrollTime"in e||ge(e,{scrollTime:We,slotDuration:We,slotLabelInterval:t=>t!==void 0?We(t):void 0,slotMaxTime:We,slotMinTime:We,snapDuration:t=>t!==void 0?We(t):void 0})}function po(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function $u(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return j(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(Z(f),o.min),end:Se(Z(f),o.max),dayStart:f,dayEnd:Ct(Z(f)),disabled:Ln(f,s),highlight:i.some(d=>Qe(d,f))}),++u}),[l]}}function ef(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return j(()=>{for(let f of r)for(let d of i)mt(f.display)?(o=o.concat(gi(f,d)),f.allDay&&(u=u.concat(In(f,d)))):f.allDay?l=l.concat(In(f,d)):s=s.concat(gi(f,d));Qu(s),Qs(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function tf(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)l.allDay?o=o.concat(In(l,u,!1)):s=s.concat(gi(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function nf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return j(()=>{l=oo(s,o,i,r,t)}),l}}function rf(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return j(()=>{i=r===void 0?_e(t)<3600?2:1:ll(_e(r)/_e(t))||1}),i}}function sf(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return j(()=>{l=so(Rt(Ot()),r,s,o,i)}),l}}function of(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function yi(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){b(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){b(this.#t,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(_n(e,"slotLabelFormat")),this.#n=a(rf(e)),this.#t=K(0),this.#r=a(of(e))}}}function _o(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){b(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){b(this.#t,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get allDayChunks(){return n(this.#s)}set allDayChunks(t){b(this.#s,t)}#i;get allDayBgChunks(){return n(this.#i)}set allDayBgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get allDayIChunks(){return n(this.#a)}set allDayIChunks(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(nf(t)),this.#n=a(sf(t,this));let r=a(ef(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#t=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(tf(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let af=class extends _o(yi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a($u(t,this))}};function lf(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,l=o?o(i):i;return j(()=>{s&&(l=i.filter(u=>r.some(f=>!mt(f.display)&&Rn(f,t.start,t.end,u)))),l.length||(l=ui([{}]))}),l}}function uf(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return j(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let _=i?g:v,p=i?v:g;h.push({gridColumn:d,gridRow:1,resource:p,start:Se(Z(_),l.min),end:Se(Z(_),l.max),dayStart:_,dayEnd:Ct(Z(_)),disabled:Ln(_,o),highlight:s.some(m=>Qe(m,_))}),++d}f.push(h)}}),f}}function yo(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(lf(t))}}}let ff=class extends yo(_o(yi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(uf(t,this))}};var df=$("<span></span>");function wi(e,t){ye(t,!0);let r=De(t,"date",3,void 0),i=De(t,"setLabel",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=K(void 0),d=a(()=>n(l)?ke(n(l))?n(l)({resource:t.resource,date:r()?Ve(r()):void 0}):n(l):t.resource.title),c=K(void 0);qe(()=>{n(d),j(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Yn(()=>{ke(n(u))&&n(u)({resource:t.resource,date:r()?Ve(r()):void 0,el:n(f)})});var g=df();st(g,h=>b(f,h),()=>n(f)),Fe(g,()=>Je(n(d))),ae(()=>Le(g,"aria-label",n(c))),x(e,g),we()}function wo(e,t){ye(t,!0);let r=De(t,"allDay",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>re("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=K(void 0);function v(_,p){if(r())return n(u);{let m=rn(n(h)),y=m.height/n(h).offsetHeight;return Se(Z(n(f)),n(l).duration,$r((p-m.top)/(n(s)*n(l).ratio*y)))}}yr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(_){b(h,_,!0)}}),we()}function bi(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=_e(n(s)),d=t.chunk.top/f*n(o),c=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});br(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),we()}function ki(e,t){ye(t,!0);let r=K(void 0),i=K(0),s=a(()=>t.chunk.event),o=a(()=>f=>(f["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(f["margin-block-start"]=`${n(s)._margin??n(i)}px`),f));function l(){b(i,js(t.chunk,pn(n(r))),!0)}var u={reposition:l};return br(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(f){b(r,f,!0)}}),we(u)}var cf=$("<div></div>");function Dr(e,t){ye(t,!0);let r=De(t,"span",3,1),i=a(()=>re("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Qe(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),_=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(o)<n(_)||n(o)>n(p))return null;let w=_e(n(u));return(n(o)-n(_))/1e3/w*n(f)}),y=a(()=>({root:n(s),rootMargin:mn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function k(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var S=le(),D=Q(S);{var E=w=>{var C=cf();let M;Fe(C,()=>Hs(k,n(y))),ae(()=>{O(C,1,n(d).nowIndicator),M=St(C,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),x(w,C)};fe(D,w=>{n(v)&&n(m)!==null&&w(E)})}x(e,S),we()}var hf=$('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),vf=$("<div><time></time></div>"),gf=$('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function bo(e,t){ye(t,!0);let r=De(t,"viewState",7),i=re("state");r()||r(new af(i)),Fn("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),_=a(()=>r().allDayChunks),p=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),y=a(()=>r().bgChunks),k=a(()=>r().chunks),S=a(()=>r().iChunks),D=a(()=>r().grid),E=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),q=K(0),R=a(()=>ju(n(l)));qe(()=>{n(c),kt(n(o))||vn().then(te)});function te(){n(s).scrollTop=((_e(n(c))-_e(n(M).min))/_e(n(h))-.5)*n(g)}let he=[];function be(){oi(he,n(_))}qe(be);var ie=le(),X=Q(ie);{var W=P=>{var H=gf();let F;var G=de(H),B=de(G),oe=se(B,2),U=de(oe);{var L=N=>{var Y=le(),ve=Q(Y);Xt(ve,()=>t.header),x(N,Y)},T=N=>{var Y=le(),ve=Q(Y);ue(ve,17,()=>n(D)[0],Ce,(me,ne,Ie)=>{let Be=()=>n(ne).dayStart,lt=()=>n(ne).disabled,Ne=()=>n(ne).highlight;Qn(me,{get date(){return Be()},colIndex:1+Ie,get disabled(){return lt()},get highlight(){return Ne()},children:(xe,ut)=>{wr(xe,{get date(){return Be()}})},$$slots:{default:!0}})}),x(N,Y)};fe(U,N=>{t.header?N(L):N(T,!1)})}var z=se(oe,2);{var Oe=N=>{var Y=hf(),ve=de(Y);Fe(ve,()=>Je(n(R)));var me=se(ve,2);ue(me,21,()=>n(D),Ce,(Ne,xe,ut)=>{var Ue=le(),_t=Q(Ue);ue(_t,17,()=>n(xe),Ce,(Pn,Ei,Ti)=>{{let xi=a(()=>ut+1===Te(n(D))&&Ti+1===Te(n(xe)));wo(Pn,{get day(){return n(Ei)},allDay:!0,get noIeb(){return n(xi)}})}}),x(Ne,Ue)});var ne=se(me,2),Ie=de(ne);ue(Ie,19,()=>n(_),Ne=>Ne.id,(Ne,xe,ut)=>{st(ki(Ne,{get chunk(){return n(xe)}}),(Ue,_t)=>he[_t]=Ue,Ue=>he?.[Ue],()=>[n(ut)])});var Be=se(Ie,2);ue(Be,17,()=>n(p),Ne=>Ne.id,(Ne,xe)=>{ki(Ne,{get chunk(){return n(xe)}})});var lt=se(Be,2);ue(lt,17,()=>n(m),Ce,(Ne,xe)=>{ki(Ne,{get chunk(){return n(xe)}})}),ae(()=>{O(Y,1,n(v).allDay),O(ve,1,n(v).sidebar),O(me,1,n(v).grid),O(ne,1,n(v).events)}),x(N,Y)};fe(z,N=>{n(u)&&N(Oe)})}var Pe=se(G,2),at=de(Pe);ue(at,21,()=>n(w),Ce,(N,Y,ve)=>{var me=vf();let ne;var Ie=de(me);Fe(Ie,()=>Je(n(Y)[1])),ae(()=>{O(me,1,Mt([n(v).slot,!ve&&n(v).hidden])),ne=St(me,"",ne,{"--ec-slot-label-periodicity":n(Y)[2]}),Le(Ie,"datetime",n(Y)[0])}),x(N,me)});var Me=se(at,2);ue(Me,21,()=>n(D),Ce,(N,Y,ve)=>{var me=le(),ne=Q(me);ue(ne,17,()=>n(Y),Ce,(Ie,Be,lt)=>{{let Ne=a(()=>ve+1===Te(n(D))&&lt+1===Te(n(Y)));wo(Ie,{get day(){return n(Be)},get noIeb(){return n(Ne)},noBeb:!0})}}),x(N,me)});var He=se(Me,2),pt=de(He);ue(pt,17,()=>n(k),N=>N.id,(N,Y)=>{bi(N,{get chunk(){return n(Y)}})});var Nt=se(pt,2);ue(Nt,17,()=>n(y),N=>N.id,(N,Y)=>{bi(N,{get chunk(){return n(Y)}})});var V=se(Nt,2);ue(V,17,()=>n(S),Ce,(N,Y)=>{bi(N,{get chunk(){return n(Y)}})});var J=se(Pe,2);{var Re=N=>{var Y=le(),ve=Q(Y);{var me=Ie=>{var Be=le(),lt=Q(Be);Xt(lt,()=>t.nowIndicator),x(Ie,Be)},ne=Ie=>{Dr(Ie,{get days(){return n(D)[0]}})};fe(ve,Ie=>{t.nowIndicator?Ie(me):Ie(ne,!1)})}x(N,Y)};fe(J,N=>{n(d)&&N(Re)})}st(H,N=>i.mainEl=N,()=>i?.mainEl),Fe(H,()=>jr(be)),ae(N=>{O(H,1,n(v).main),F=St(H,"",F,N),O(G,1,n(v).header),O(B,1,n(v).sidebar),O(oe,1,n(v).grid),O(Pe,1,n(v).body),O(at,1,n(v).sidebar),O(Me,1,n(v).grid),O(He,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(D))*Te(n(D)[0]),"--ec-col-group-span":Te(n(D)[0]),"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(E)??""}px`})]),dr(B,"offsetWidth",N=>r().sidebarWidth=N),dr(G,"offsetHeight",N=>b(q,N)),x(P,H)};fe(X,P=>{!kt(n(D))&&!kt(n(D)[0])&&P(W)})}x(e,ie),we()}var mf=$("<!> <!>",1);function pf(e,t){ye(t,!0);let r=re("state"),i=new ff(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=et([]);qe(()=>{n(f)&&(n(l),n(u),vn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let _ of n(c)){let p=_[0];if(Qe(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(Te(n(c))*Te(_))*(p.gridColumn-1)*(mn()?-1:1);break}}}bo(e,{get viewState(){return i},header:m=>{var y=mf(),k=Q(y);ue(k,17,()=>n(c),Ce,(E,w,C)=>{const M=a(()=>{const{dayStart:q,resource:R,disabled:te,highlight:he}=n(w)[0];return{date:q,resource:R,disabled:te,highlight:he}});{let q=a(()=>Te(n(c)[0])>1?n(d).colGroup:void 0),R=a(()=>Te(n(w))),te=a(()=>1+C*Te(n(w))),he=a(()=>n(f)&&n(M).disabled),be=a(()=>n(f)&&n(M).highlight);Qn(E,{get date(){return n(M).date},get className(){return n(q)},get weekday(){return n(f)},get colSpan(){return n(R)},get colIndex(){return n(te)},get disabled(){return n(he)},get highlight(){return n(be)},children:(ie,X)=>{var W=le(),P=Q(W);{var H=G=>{wr(G,{get date(){return n(M).date}})},F=G=>{wi(G,{get resource(){return n(M).resource},setLabel:B=>h[C]=B+", "})};fe(P,G=>{n(f)?G(H):G(F,!1)})}x(ie,W)},$$slots:{default:!0}})}});var S=se(k,2);{var D=E=>{var w=le(),C=Q(w);ue(C,17,()=>n(c),Ce,(M,q,R)=>{var te=le(),he=Q(te);ue(he,17,()=>n(q),Ce,(be,ie,X)=>{const W=a(()=>{const{dayStart:P,resource:H,disabled:F,highlight:G}=n(ie);return{date:P,resource:H,disabled:F,highlight:G}});{let P=a(()=>1+X+R*Te(n(q)));Qn(be,{get date(){return n(W).date},get colIndex(){return n(P)},get disabled(){return n(W).disabled},get highlight(){return n(W).highlight},children:(H,F)=>{var G=le(),B=Q(G);{var oe=L=>{wi(L,{get resource(){return n(W).resource},get date(){return n(W).date}})},U=L=>{wr(L,{get date(){return n(W).date},get alPrefix(){return h[R]}})};fe(B,L=>{n(f)?L(oe):L(U,!1)})}x(H,G)},$$slots:{default:!0}})}}),x(M,te)}),x(E,w)};fe(S,E=>{Te(n(c)[0])>1&&E(D)})}x(m,y)},nowIndicator:m=>{var y=le(),k=Q(y);{var S=E=>{{let w=a(()=>n(c).flat()),C=a(()=>Te(n(c)[0]));Dr(E,{get days(){return n(w)},get span(){return n(C)}})}},D=E=>{var w=le(),C=Q(w);{var M=R=>{var te=le(),he=Q(te);ue(he,17,()=>n(c),Ce,(be,ie)=>{Dr(be,{get days(){return n(ie)}})}),x(R,te)},q=R=>{{let te=a(()=>n(c).flat()),he=a(()=>Te(n(c)));Dr(R,{get days(){return n(te)},get span(){return n(he)}})}};fe(C,R=>{Te(n(c)[0])>1?R(M):R(q,!1)})}x(E,w)};fe(k,E=>{n(f)?E(S):E(D,!1)})}x(m,y)},$$slots:{header:!0,nowIndicator:!0}}),we()}const _f={createOptions(e){mo(e),pi(e),po(e),ge(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ge(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ge(e.theme,{colGroup:"ec-col-group"}),ge(e.views,{resourceTimeGridDay:{buttonText:Zn,component:ko,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:Jn,component:ko,duration:{weeks:1},theme:ot("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){_i(e)}};function ko(e){return mi(e),pf}function Ci(e,t,r,i=!0){let s=[],o,l,u,f,d,c,g=0;for(let{gridColumn:h,gridRow:v,resource:_,dayStart:p,dayEnd:m,start:y,end:k,disabled:S}of t)S||(r?Rn(e,p,m,_)&&(s.length||(o=p,u=h,f=v,d=_),s.push(p),l=k):Rn(e,y,k,_)&&(s.length||(o=y,u=h,f=v,d=_,c=vt(e.start-y,0)/1e3),s.push(p),l=k,g+=(At(k,e.end)-vt(y,e.start))/1e3));if(s.length){let h=Kn(e,o,l);return ge(h,{gridColumn:u,gridRow:f,resource:d,dates:s,left:c,width:g}),i&&ai(h),[h]}return[]}function yf(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let l=0;l<r.dates.length;++l){let u=`${s}_${i+l}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function wf(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return ge(e,{top:i,bottom:s}),i}function bf(e,t){return e[t.getTime()]??{min:We(0),max:We("24:00:00")}}function kf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return j(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Se(Z(h),v.min),end:Se(Z(h),v.max),dayStart:h,dayEnd:Ct(Z(h)),disabled:Ln(h,s),highlight:i.some(_=>Qe(_,h))}),++g}u.push(c),++f}}),u}}function Cf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return j(()=>{for(let u of r)for(let f of i)mt(u.display)?(!s||u.allDay)&&(l=l.concat(Ci(u,f,s))):o=o.concat(Ci(u,f,s));yf(o)}),{chunks:o,bgChunks:l}}}function Df(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)o=o.concat(Ci(l,u,s,!1))});return o}}function Ef(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return j(()=>{for(let u of r)l[u.getTime()]=oo(s,o,i,[u],t)}),l}}function Tf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return j(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?so(f,i,l,s[d],o):[]}}),u}}function xf(e){return()=>{let{resources:t}=e,r;return j(()=>{r=t.some(i=>Kt(i).children.length)}),r}}function Sf(e){return()=>{let{options:{slotDuration:t}}=e,r;return j(()=>{r=!_e(t)}),r}}class Rf extends yo(yi()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){b(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#r;get monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(Ef(t)),this.#n=a(Tf(t,this)),this.#t=a(kf(t,this)),this.#r=a(Sf(t));let r=a(Cf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(Df(t,this)),this.#a=a(xf(t))}}function If(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>re("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=K(void 0);function v(_,p){if(n(o))return n(u);{let m=rn(n(h)),y=m.width/n(h).offsetWidth;return Se(Z(n(f)),n(l).duration,$r((mn()?m.right-_:_-m.left)/(n(i)*n(l).ratio*y)))}}yr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(_){b(h,_,!0)}}),we()}function Di(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>re("view-state")),l=a(()=>n(o).monthView),u=K(void 0),f=K(1),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let p=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${p}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let _=n(f);if(n(d)._margin){let[p,m]=n(d)._margin;t.chunk.gridRow===m&&(_=p)}return v["margin-block-start"]=`${_}px`,v});function g(){b(f,wf(t.chunk,pn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);br(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(_){b(u,_,!0)}})}return we(h)}var Lf=$("<span></span>"),Pf=$("<button><!></button>"),Mf=$("<!> <span><!></span>",1);function Af(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=K({}),u=K(!0);fn(()=>{b(l,Kt(t.resource)),b(u,n(l).expanded,!0)});function f(){b(u,!n(u)),n(l).expanded=n(u),d(n(l).children,n(u)),n(i).resources=[...n(s)]}function d(p,m){for(let y of p){let k=Kt(y);k.hidden=!m,k.expanded&&d(k.children,m)}}var c=Mf(),g=Q(c);ue(g,17,()=>Array(n(l).level),Ce,(p,m)=>{var y=Lf();ae(()=>O(y,1,n(o).expander)),x(p,y)});var h=se(g,2),v=de(h);{var _=p=>{var m=Pf();m.__click=f;var y=de(m);{var k=D=>{var E=Is("−");x(D,E)},S=D=>{var E=Is("+");x(D,E)};fe(y,D=>{n(u)?D(k):D(S,!1)})}ae(()=>O(m,1,n(o).button)),x(p,m)};fe(v,p=>{n(l).children?.length&&p(_)})}ae(()=>O(h,1,n(o).expander)),x(e,c),we()}tn(["click"]);var Of=$("<div></div>");function Nf(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).mainEl),s=a(()=>n(r).now),o=a(()=>n(r).today),l=a(()=>n(r).options.slotDuration),u=a(()=>n(r).options.slotWidth),f=a(()=>n(r).options.theme),d=a(()=>re("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Qe(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),_=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(s)<n(_)||n(s)>n(p))return null;let w=_e(n(l));return(n(s)-n(_))/1e3/w*n(u)}),y=a(()=>({root:n(i),rootMargin:mn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var S=le(),D=Q(S);{var E=w=>{var C=Of();let M;Fe(C,()=>Hs(k,n(y))),ae(()=>{O(C,1,n(f).nowIndicator),M=St(C,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),x(w,C)};fe(D,w=>{n(v)&&n(m)!==null&&w(E)})}x(e,S),we()}var Ff=$("<div><time></time></div>"),Hf=$('<div role="rowheader"><!> <!></div>'),Wf=$('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Uf(e,t){ye(t,!0);let r=re("state"),i=new Rf(r);Fn("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),_=a(()=>i.chunks),p=a(()=>i.bgChunks),m=a(()=>i.iChunks),y=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),S=a(()=>i.grid),D=a(()=>i.monthView),E=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),q=K(0);qe(()=>{n(d),kt(n(l))||vn().then(R)});function R(){let W=0,P=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(D)){if(!P){let H=n(S)[0];for(let F of H)if(Qe(F.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/Te(H)*(F.gridColumn-1)*(mn()?-1:1);break}}}else{for(let H of n(l)){let F=bf(n(k),H);if(P||Qe(H,n(o))){W+=vt(At(_e(n(d)),_e(F.max))-_e(F.min),0);break}else W+=_e(F.max)-_e(F.min)}n(s).scrollLeft=W/_e(n(c))*n(h)*(mn()?-1:1)}}let te=[];function he(){oi(te,n(_))}qe(he);var be=le(),ie=Q(be);{var X=W=>{var P=Wf();let H;var F=de(P),G=de(F),B=se(G,2),oe=de(B);ue(oe,17,()=>n(S)[0],Ce,(V,J,Re)=>{let N=()=>n(J).dayStart,Y=()=>n(J).disabled,ve=()=>n(J).highlight;Qn(V,{get date(){return N()},colIndex:1+Re,get disabled(){return Y()},get highlight(){return ve()},children:(me,ne)=>{wr(me,{get date(){return N()}})},$$slots:{default:!0}})});var U=se(oe,2);{var L=V=>{var J=le(),Re=Q(J);ue(Re,17,()=>n(S)[0],Ce,(N,Y)=>{let ve=()=>n(Y).dayStart,me=()=>n(Y).disabled,ne=()=>n(Y).highlight;Qn(N,{get date(){return ve()},get className(){return n(v).slots},get disabled(){return me()},get highlight(){return ne()},ariaHidden:!0,children:(Ie,Be)=>{var lt=le(),Ne=Q(lt);ue(Ne,17,()=>n(y)[ve().getTime()],Ce,(xe,ut)=>{var Ue=Ff();let _t;var Pn=de(Ue);Fe(Pn,()=>Je(n(ut)[1])),ae(()=>{O(Ue,1,n(v).slot),_t=St(Ue,"",_t,{"--ec-slot-label-periodicity":n(ut)[2]}),Le(Pn,"datetime",n(ut)[0])}),x(xe,Ue)}),x(Ie,lt)},$$slots:{default:!0}})}),x(V,J)};fe(U,V=>{n(D)||V(L)})}var T=se(F,2),z=de(T);ue(z,21,()=>n(M),Ce,(V,J)=>{var Re=Hf(),N=de(Re);{var Y=me=>{Af(me,{get resource(){return n(J)}})};fe(N,me=>{n(E)&&me(Y)})}var ve=se(N,2);wi(ve,{get resource(){return n(J)}}),ae(()=>O(Re,1,n(v).rowHead)),x(V,Re)});var Oe=se(z,2);ue(Oe,21,()=>n(S),Ce,(V,J,Re)=>{var N=le(),Y=Q(N);ue(Y,17,()=>n(J),Ce,(ve,me,ne)=>{{let Ie=a(()=>ne+1===Te(n(J))),Be=a(()=>Re+1===Te(n(S)));If(ve,{get day(){return n(me)},get noIeb(){return n(Ie)},get noBeb(){return n(Be)}})}}),x(V,N)});var Pe=se(Oe,2),at=de(Pe);ue(at,19,()=>n(_),V=>V.id,(V,J,Re)=>{st(Di(V,{get chunk(){return n(J)}}),(N,Y)=>te[Y]=N,N=>te?.[N],()=>[n(Re)])});var Me=se(at,2);ue(Me,17,()=>n(p),V=>V.id,(V,J)=>{Di(V,{get chunk(){return n(J)}})});var He=se(Me,2);ue(He,17,()=>n(m),Ce,(V,J)=>{Di(V,{get chunk(){return n(J)}})});var pt=se(T,2);{var Nt=V=>{Nf(V,{})};fe(pt,V=>{n(f)&&!n(D)&&V(Nt)})}st(P,V=>r.mainEl=V,()=>r?.mainEl),Fe(P,()=>jr(he)),ae(V=>{O(P,1,n(v).main),H=St(P,"",H,V),O(F,1,n(v).header),O(G,1,n(v).sidebar),O(B,1,n(v).grid),O(T,1,n(v).body),O(z,1,n(v).sidebar),O(Oe,1,n(v).grid),O(Pe,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(S)[0]),"--ec-grid-rows":`${Te(n(S))>1?`repeat(${Te(n(S))-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),dr(G,"offsetWidth",V=>i.sidebarWidth=V),dr(F,"offsetHeight",V=>b(q,V)),x(W,P)};fe(ie,W=>{!kt(n(S))&&!kt(n(S)[0])&&W(X)})}x(e,be),we()}const zf={createOptions(e){pi(e),po(e),e.slotWidth=32,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:Zn,component:Co,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:Jn,component:Co,displayEventEnd:!1,duration:{weeks:1},theme:ot("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:li,component:Do,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:ot("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){_i(e)}};function Co(e){return mi(e),Do(e)}function Do(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Kt(r).hidden),Uf}const Vf={createOptions(e){pi(e),mo(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Zn,component:Eo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:Jn,component:Eo,duration:{weeks:1},theme:ot("ec-time-grid ec-week-view")}})},createParsers(e){_i(e)}};function Eo(e){return mi(e),bo}function Bf(e,t,r){return za(ou,{target:e,props:{plugins:t,options:r}})}function Gf(e){return Ba(e)}function Yf(e,t){return Bf(e,[Tu,zu,Ju,_f,zf,Vf],t)}return er.create=Yf,er.destroy=Gf,Object.defineProperty(er,Symbol.toStringTag,{value:"Module"}),er})({});
6
6
  //# sourceMappingURL=event-calendar.min.js.map