@event-calendar/build 5.2.0 → 5.2.2

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.0
2
+ * EventCalendar v5.2.2
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(Jn){"use strict";var ki=Array.isArray,wo=Array.prototype.indexOf,Qn=Array.from,Ci=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,bo=Object.getOwnPropertyDescriptors,ko=Object.prototype,Co=Array.prototype,Di=Object.getPrototypeOf,Ei=Object.isExtensible;const Gt=()=>{};function Do(e){for(var t=0;t<e.length;t++)e[t]()}function Ti(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Eo(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,xi=1<<24,Pt=16,Mt=32,en=64,$n=128,_t=512,Ve=1024,st=2048,Ct=4096,ot=8192,At=16384,Tr=32768,Yt=65536,Si=1<<17,Ri=1<<18,pn=1<<19,Ii=1<<20,Ot=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,Ln=Symbol("$state"),To=Symbol("legacy props"),xo=Symbol(""),_n=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Li(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function So(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ro(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Io(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Lo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Po(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Mo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Ao(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Oo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function No(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ho(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Wo=1,Uo=2,Pi=4,zo=8,Vo=16,Bo=1,Go=4,Yo=8,qo=16,Xo=1,Ko=2,Be=Symbol(),Zo="http://www.w3.org/1999/xhtml";function Jo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Mi(e){return e===this.v}function Qo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ai(e){return!Qo(e,this.v)}let Jf=!1,Ge=null;function yn(e){Ge=e}function te(e){return Ni().get(e)}function Pn(e,t){return Ni().set(e,t),t}function we(e,t=!1,r){Ge={p:Ge,i:!1,c:null,e:null,s:e,x:null,l:null}}function be(e){var t=Ge,r=t.e;if(r!==null){t.e=null;for(var i of r)es(i)}return e!==void 0&&(t.x=e),t.i=!0,Ge=t.p,e??{}}function Oi(){return!0}function Ni(e){return Ge===null&&Li(),Ge.c??=new Map(jo(Ge)||void 0)}function jo(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 Fi(){var e=nn;nn=[],Do(e)}function rn(e){if(nn.length===0&&!Mn){var t=nn;queueMicrotask(()=>{t===nn&&Fi()})}nn.push(e)}function $o(){for(;nn.length>0;)Fi()}function Hi(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 wn(e,t)}function wn(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,Ui(r.render_effects),Ui(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(Wi(),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 h of l)zi(h,u,f,d);if(vt.length>0){Le=o,o.apply();for(const h of vt)o.#a(h,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??=Ti()).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 ea(e){var t=Mn;Mn=!0;try{for(var r;;){if($o(),vt.length===0&&(Le?.flush(),vt.length===0))return tr=null,r;Wi()}}finally{Mn=t}}function Wi(){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;ta()}i.process(vt),Xt.clear()}}finally{Rr=!1,sr(e),tr=null}}function ta(){try{Po()}catch(e){wn(e,tr)}}let Nt=null;function Ui(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?is(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 zi(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?zi(s,t,r,i):(o&(Sr|Pt))!==0&&(o&st)===0&&Vi(s,t,i)&&(qe(s,st),sn(s))}}function Vi(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&&Vi(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&Ri)===0)return;if((r&(en|Mt))!==0){if((r&Ve)===0)return;t.f^=Ve}}vt.push(t)}function na(e){let t=0,r=Kt(0),i;return()=>{On()&&(n(r),ts(()=>(t===0&&(i=ee(()=>e(()=>Et(r)))),t+=1,()=>{rn(()=>{t-=1,t===0&&(i?.(),i=void 0,Et(r))})})))}}var ra=Yt|pn|$n;function ia(e,t,r){new sa(e,t,r)}class sa{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=na(()=>(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()}},ra)}#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),tt(this.#i),yn(this.#i.ctx);try{return t()}catch(o){return Hi(o),null}finally{xt(r),tt(i),yn(s)}}#m(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),as(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&&bn(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&&(Qe(this.#o),this.#o=null),this.#a&&(Qe(this.#a),this.#a=null),this.#l&&(Qe(this.#l),this.#l=null);var s=!1,o=!1;const l=()=>{if(s){Jo();return}s=!0,o&&Ho(),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{tt(null),o=!0,r?.(t,l),o=!1}catch(f){wn(f,this.#i&&this.#i.parent)}finally{tt(u)}i&&rn(()=>{this.#l=this.#g(()=>{Dt.ensure(),this.#v=!0;try{return at(()=>{i(this.#t,()=>t,()=>l)})}catch(f){return wn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function oa(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=aa();function f(){Promise.all(r.map(d=>la(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(h){(l.f&At)===0&&wn(h,l)}o?.deactivate(),nr()}).catch(d=>{wn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),nr()}}):f()}function aa(){var e=Te,t=he,r=Ge,i=Le;return function(o=!0){xt(e),tt(t),yn(r),o&&i?.activate()}}function nr(){xt(null),tt(null),yn(null)}function rr(e){var t=We|st,r=he!==null&&(he.f&We)!==0?he:null;return Te!==null&&(Te.f|=pn),{ctx:Ge,deps:null,effects:null,equals:Mi,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Te,ac:null}}function la(e,t){let r=Te;r===null&&So();var i=r.b,s=void 0,o=Kt(Be),l=!he,u=new Map;return ma(()=>{var f=Ti();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{d===Le&&d.committed&&d.deactivate(),nr()})}catch(c){f.reject(c),nr()}var d=Le;if(l){var h=!i.is_pending();i.update_pending_count(1),d.increment(h),u.get(d)?.reject(_n),u.delete(d),u.set(d,f)}const g=(c,v=void 0)=>{if(d.activate(),v)v!==_n&&(o.f|=qt,bn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),bn(o,c);for(const[_,p]of u){if(u.delete(_),_===d)break;p.reject(_n)}}l&&(i.update_pending_count(-1),d.decrement(h))};f.promise.then(g,c=>g(null,c||"unknown"))}),Mr(()=>{for(const f of u.values())f.reject(_n)}),new Promise(f=>{function d(h){function g(){h===s?f(o):d(s)}h.then(g,g)}d(s)})}function a(e){const t=rr(e);return us(t),t}function Bi(e){const t=rr(e);return t.equals=Ai,t}function Gi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qe(t[r])}}function ua(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(ua(e));try{e.f&=~tn,Gi(e),t=vs(e)}finally{xt(r)}return t}function Yi(e){var t=Ir(e);if(e.equals(t)||(Le?.is_fork||(e.v=t),e.wv=cs()),!un)if(ht!==null)(On()||Le?.is_fork)&&ht.set(e,t);else{var r=(e.f&_t)===0?Ct:Ve;qe(e,r)}}let Lr=new Set;const Xt=new Map;let qi=!1;function Kt(e,t){var r={f:0,v:e,reactions:null,equals:Mi,rv:0,wv:0};return r}function Z(e,t){const r=Kt(e);return us(r),r}function Xi(e,t=!1,r=!0){const i=Kt(e);return t||(i.equals=Ai),i}function b(e,t,r=!1){he!==null&&(!Tt||(he.f&Si)!==0)&&Oi()&&(he.f&(We|Pt|Sr|Si))!==0&&!Ht?.includes(e)&&Fo();let i=r?et(t):t;return bn(e,i)}function bn(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&_t)!==0?Ve:Ct)),e.wv=cs(),Ki(e,st),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(Mt|en))===0&&(gt===null?wa([e]):gt.push(e)),!i.is_fork&&Lr.size>0&&!qi&&fa()}return t}function fa(){qi=!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 Ki(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&_t&&(o.f|=tn),Ki(f,Ct))}else u&&((l&Pt)!==0&&Nt!==null&&Nt.add(o),sn(o))}}function et(e){if(typeof e!="object"||e===null||Ln in e)return e;const t=Di(e);if(t!==ko&&t!==Co)return e;var r=new Map,i=ki(e),s=Z(0),o=Wt,l=u=>{if(Wt===o)return u();var f=he,d=Wt;tt(null),ds(o);var h=u();return tt(f),ds(d),h};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)&&Oo();var h=r.get(f);return h===void 0?h=l(()=>{var g=Z(d.value);return r.set(f,g),g}):b(h,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const h=l(()=>Z(Be));r.set(f,h),Et(s)}}else b(d,Be),Et(s);return!0},get(u,f,d){if(f===Ln)return e;var h=r.get(f),g=f in u;if(h===void 0&&(!g||mn(u,f)?.writable)&&(h=l(()=>{var v=et(g?u[f]:Be),_=Z(v);return _}),r.set(f,h)),h!==void 0){var c=n(h);return c===Be?void 0:c}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var h=r.get(f);h&&(d.value=n(h))}else if(d===void 0){var g=r.get(f),c=g?.v;if(g!==void 0&&c!==Be)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return d},has(u,f){if(f===Ln)return!0;var d=r.get(f),h=d!==void 0&&d.v!==Be||Reflect.has(u,f);if(d!==void 0||Te!==null&&(!h||mn(u,f)?.writable)){d===void 0&&(d=l(()=>{var c=h?et(u[f]):Be,v=Z(c);return v}),r.set(f,d));var g=n(d);if(g===Be)return!1}return h},set(u,f,d,h){var g=r.get(f),c=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var _=r.get(v+"");_!==void 0?b(_,Be):v in u&&(_=l(()=>Z(Be)),r.set(v+"",_))}if(g===void 0)(!c||mn(u,f)?.writable)&&(g=l(()=>Z(void 0)),b(g,et(d)),r.set(f,g));else{c=g.v!==Be;var p=l(()=>et(d));b(g,p)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(h,d),!c){if(i&&typeof f=="string"){var y=r.get("length"),k=Number(f);Number.isInteger(k)&&k>=y.v&&b(y,k+1)}Et(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var c=r.get(g);return c===void 0||c.v!==Be});for(var[d,h]of r)h.v!==Be&&!(d in u)&&f.push(d);return f},setPrototypeOf(){No()}})}var yt,Zi,Ji,Qi;function da(){if(yt===void 0){yt=window,Zi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ji=mn(t,"firstChild").get,Qi=mn(t,"nextSibling").get,Ei(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ei(r)&&(r.__t=void 0)}}function Ft(e=""){return document.createTextNode(e)}function ir(e){return Ji.call(e)}function An(e){return Qi.call(e)}function fe(e,t){return ir(e)}function J(e,t=!1){{var r=ir(e);return r instanceof Comment&&r.data===""?An(r):r}}function ie(e,t=1,r=!1){let i=e;for(;t--;)i=An(i);return i}function ca(e){e.textContent=""}function ji(){return!1}function ha(e,t){{const r=document.body;e.autofocus=!0,rn(()=>{document.activeElement===r&&e.focus()})}}function Pr(e){var t=he,r=Te;tt(null),xt(null);try{return e()}finally{tt(t),xt(r)}}function $i(e){Te===null&&(he===null&&Lo(),Io()),un&&Ro()}function va(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function wt(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|_t,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 Qe(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&pn)===0&&(o=o.first,(e&Pt)!==0&&(e&Yt)!==0&&o!==null&&(o.f|=Yt)),o!==null&&(o.parent=i,i!==null&&va(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=wt(jn,null,!1);return qe(t,Ve),t.teardown=e,t}function Ye(e){$i();var t=Te.f,r=!he&&(t&Mt)!==0&&(t&Tr)===0;if(r){var i=Ge;(i.e??=[]).push(e)}else return es(e)}function es(e){return wt(Er|Ii,e,!1)}function on(e){return $i(),wt(jn|Ii,e,!0)}function ga(e){Dt.ensure();const t=wt(en|pn,e,!0);return(r={})=>new Promise(i=>{r.outro?an(t,()=>{Qe(t),i(void 0)}):(Qe(t),i(void 0))})}function Ar(e){return wt(Er,e,!1)}function ma(e){return wt(Sr|pn,e,!0)}function ts(e,t=0){return wt(jn|t,e,!0)}function oe(e,t=[],r=[],i=[]){oa(i,t,r,s=>{wt(jn,()=>e(...s.map(n)),!0)})}function Nn(e,t=0){var r=wt(Pt|t,e,!0);return r}function pa(e,t=0){var r=wt(xi|t,e,!0);return r}function at(e){return wt(Mt|pn,e,!0)}function ns(e){var t=e.teardown;if(t!==null){const r=un,i=he;ls(!0),tt(null);try{t.call(null)}finally{ls(r),tt(i)}}}function rs(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Pr(()=>{s.abort(_n)});var i=r.next;(r.f&en)!==0?r.parent=null:Qe(r,t),r=i}}function _a(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Mt)===0&&Qe(t),t=r}}function Qe(e,t=!0){var r=!1;(t||(e.f&Ri)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ya(e.nodes.start,e.nodes.end),r=!0),rs(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();ns(e);var s=e.parent;s!==null&&s.first!==null&&is(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ya(e,t){for(;e!==null;){var r=e===t?null:An(e);e.remove(),e=r}}function is(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=[];ss(e,i,!0);var s=()=>{r&&Qe(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function ss(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;ss(s,t,l?r:!1),s=o}}}function Or(e){os(e,!0)}function os(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;os(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 as(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 ls(e){un=e}let he=null,Tt=!1;function tt(e){he=e}let Te=null;function xt(e){Te=e}let Ht=null;function us(e){he!==null&&(Ht===null?Ht=[e]:Ht.push(e))}let je=null,lt=0,gt=null;function wa(e){gt=e}let fs=1,Fn=0,Wt=Fn;function ds(e){Wt=e}function cs(){return++fs}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)&&Yi(o),o.wv>e.wv)return!0}(t&_t)!==0&&ht===null&&qe(e,Ve)}return!1}function hs(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?hs(o,t,!1):t===o&&(r?qe(o,st):(o.f&Ve)!==0&&qe(o,Ct),sn(o))}}function vs(e){var t=je,r=lt,i=gt,s=he,o=Ht,l=Ge,u=Tt,f=Wt,d=e.f;je=null,lt=0,gt=null,he=(d&(Mt|en))===0?e:null,Ht=null,yn(e.ctx),Tt=!1,Wt=++Fn,e.ac!==null&&(Pr(()=>{e.ac.abort(_n)}),e.ac=null);try{e.f|=xr;var h=e.fn,g=h(),c=e.deps;if(je!==null){var v;if(or(e,lt),c!==null&&lt>0)for(c.length=lt+je.length,v=0;v<je.length;v++)c[lt+v]=je[v];else e.deps=c=je;if(On()&&(e.f&_t)!==0)for(v=lt;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&lt<c.length&&(or(e,lt),c.length=lt);if(Oi()&&gt!==null&&!Tt&&c!==null&&(e.f&(We|Ct|st))===0)for(v=0;v<gt.length;v++)hs(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(_){return Hi(_)}finally{e.f^=xr,je=t,lt=r,gt=i,he=s,Ht=o,yn(l),Tt=u,Wt=f}}function ba(e,t){let r=t.reactions;if(r!==null){var i=wo.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&&(je===null||!je.includes(t))&&(qe(t,Ct),(t.f&_t)!==0&&(t.f^=_t,t.f&=~tn),Gi(t),or(t,0))}function or(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ba(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|xi))!==0?_a(e):rs(e),ns(e);var s=vs(e);e.teardown=typeof s=="function"?s:null,e.wv=fs;var o}finally{ln=i,Te=r}}}async function kn(){await Promise.resolve(),ea()}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,je===null&&s!==null&&s[lt]===e?lt++:je===null?je=[e]:je.includes(e)||je.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||ms(l))&&(u=Ir(l)),Xt.set(l,u),u}}else r&&(!ht?.has(e)||Le?.is_fork&&!On())&&(l=e,Hn(l)&&Yi(l),ln&&On()&&(l.f&_t)===0&&gs(l));if(ht?.has(e))return ht.get(e);if((e.f&qt)!==0)throw e.v;return e.v}function gs(e){if(e.deps!==null){e.f^=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&We)!==0&&(t.f&_t)===0&&gs(t)}}function ms(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&&ms(t))return!0;return!1}function ee(e){var t=Tt;try{return Tt=!0,e()}finally{Tt=t}}const ka=-7169;function qe(e,t){e.f=e.f&ka|t}const Ca=["touchstart","touchmove"];function Da(e){return Ca.includes(e)}const ps=new Set,Nr=new Set;function Ea(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=Ea(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++)ps.add(e[t]);for(var r of Nr)r(e)}let _s=null;function Un(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;_s=e;var l=0,u=_s===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){Ci(e,"currentTarget",{configurable:!0,get(){return o||r}});var h=he,g=Te;tt(null),xt(null);try{for(var c,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){c?v.push(m):c=m}if(e.cancelBubble||_===t||_===null)break;o=_}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,tt(h),xt(g)}}}function Ta(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&Xo)!==0,i=(t&Ko)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Ta(o?e:"<!>"+e),r||(s=ir(s)));var l=i||Zi?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 ys(e=""){{var t=Ft(e+"");return ar(t,t),t}}function ce(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Ft();return e.append(t,r),ar(t,r),e}function T(e,t){e!==null&&e.before(t)}function ws(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xa(e,t){return Sa(e,t)}const Cn=new Map;function Sa(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){da();var u=new Set,f=g=>{for(var c=0;c<g.length;c++){var v=g[c];if(!u.has(v)){u.add(v);var _=Da(v);t.addEventListener(v,Un,{passive:_});var p=Cn.get(v);p===void 0?(document.addEventListener(v,Un,{passive:_}),Cn.set(v,1)):Cn.set(v,p+1)}}};f(Qn(ps)),Nr.add(f);var d=void 0,h=ga(()=>{var g=r??t.appendChild(Ft());return ia(g,{pending:()=>{}},c=>{if(o){we({});var v=Ge;v.c=o}s&&(i.$$events=s),d=e(c,i)||{},o&&be()}),()=>{for(var c of u){t.removeEventListener(c,Un);var v=Cn.get(c);--v===0?(document.removeEventListener(c,Un),Cn.delete(c)):Cn.set(c,v)}Nr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Fr.set(d,h),d}let Fr=new WeakMap;function Ra(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&&(Qe(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();as(l,d),d.append(Ft()),this.#n.set(o,{effect:l,fragment:d})}else Qe(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)||(Qe(s.effect),this.#n.delete(i))};ensure(t,r){var i=Le,s=ji();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 Ia(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 c=e.outrogroups;Wr(Qn(o.done)),c.delete(o),c.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,h=d.parentNode;ca(h),h.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++)Qe(e[r],t)}var bs;function ae(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Pi)!==0;if(f){var d=e;l=d.appendChild(Ft())}var h=null,g=Bi(()=>{var y=r();return ki(y)?y:y==null?[]:Qn(y)}),c,v=!0;function _(){m.fallback=h,La(m,c,l,t,i),h!==null&&(c.length===0?(h.f&Ot)===0?Or(h):(h.f^=Ot,zn(h,null,l)):an(h,()=>{h=null}))}var p=Nn(()=>{c=n(g);for(var y=c.length,k=new Set,R=Le,E=ji(),D=0;D<y;D+=1){var w=c[D],C=i(w,D),M=v?null:u.get(C);M?(M.v&&bn(M.v,w),M.i&&bn(M.i,D),E&&R.skipped_effects.delete(M.e)):(M=Pa(u,v?l:bs??=Ft(),w,C,D,s,t,r),v||(M.e.f|=Ot),u.set(C,M)),k.add(C)}if(y===0&&o&&!h&&(v?h=at(()=>o(l)):(h=at(()=>o(bs??=Ft())),h.f|=Ot)),!v)if(E){for(const[q,I]of u)k.has(q)||R.skipped_effects.add(I.e);R.oncommit(_),R.ondiscard(()=>{})}else _();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:h};v=!1}function La(e,t,r,i,s){var o=(i&zo)!==0,l=t.length,u=e.items,f=e.effect.first,d,h=null,g,c=[],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&Ot)===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 I of e.outrogroups)I.pending.delete(m),I.done.delete(m);if((m.f&Ot)!==0)if(m.f^=Ot,m===f)zn(m,null,r);else{var k=h?h.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,h,m),Jt(e,m,k),zn(m,k,r),h=m,c=[],v=[],f=h.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(c.length<v.length){var R=v[0],E;h=R.prev;var D=c[0],w=c[c.length-1];for(E=0;E<c.length;E+=1)zn(c[E],R,r);for(E=0;E<v.length;E+=1)d.delete(v[E]);Jt(e,D.prev,w.next),Jt(e,h,D),Jt(e,w,R),f=R,h=w,y-=1,c=[],v=[]}else d.delete(m),zn(m,f,r),Jt(e,m.prev,m.next),Jt(e,m,h===null?e.effect.first:h.next),Jt(e,h,m),h=m;continue}for(c=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&Ot)===0&&c.push(m),h=m,f=m.next}if(e.outrogroups!==null){for(const I of e.outrogroups)I.pending.size===0&&(Wr(Qn(I.done)),e.outrogroups?.delete(I));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&Pi)!==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()}Ia(e,C,q)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Pa(e,t,r,i,s,o,l,u){var f=(l&Wo)!==0?(l&Vo)===0?Xi(r,!1,!1):Kt(r):null,d=(l&Uo)!==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;pa(()=>{r!==(r=t())&&(i&&(Qe(i),i=null),r&&(i=at(()=>{Ar(()=>r(e))})))})}function ks(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=ks(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Ma(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=ks(e))&&(i&&(i+=" "),i+=t);return i}function St(e){return typeof e=="object"?Ma(e):e??""}function Aa(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Cs(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 Oa(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,h=-1;const p=e.length;for(var g=0;g<p;g++){var c=e[g];if(u?c==="/"&&e[g-1]==="*"&&(u=!1):o?o===c&&(o=!1):c==="/"&&e[g+1]==="*"?u=!0:c==='"'||c==="'"?o=c:c==="("?l++:c===")"&&l--,!u&&o===!1&&l===0){if(c===":"&&h===-1)h=g;else if(c===";"||g===p-1){if(h!==-1){var v=zr(e.substring(d,h).trim());if(!f.includes(v)){c!==";"&&g++;var _=e.substring(d,g).trim();r+=" "+_+";"}}d=g+1,h=-1}}}}return i&&(r+=Cs(i)),s&&(r+=Cs(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function N(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Aa(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 bt(e,t,r,i){var s=e.__style;if(s!==t){var o=Oa(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 Na=Symbol("is custom element"),Fa=Symbol("is html");function Pe(e,t,r,i){var s=Ha(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Wa(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ha(e){return e.__attributes??={[Na]:e.nodeName.includes("-"),[Fa]:e.namespaceURI===Zo}}var Ds=new Map;function Wa(e){var t=e.getAttribute("is")||e.nodeName,r=Ds.get(t);if(r)return r;Ds.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=bo(s);for(var l in i)i[l].set&&r.push(l);s=Di(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 Ua=new Br({box:"border-box"});function lr(e,t,r){var i=Ua.observe(e,()=>r(e[t]));Ar(()=>(ee(()=>r(e[t])),i))}function Es(e,t){return e===t||e?.[Ln]===t}function nt(e={},t,r,i){return Ar(()=>{var s,o;return ts(()=>{s=o,o=i?.()||[],ee(()=>{e!==r(...o)&&(t(e,...o),s&&Es(r(...s),e)&&t(null,...s))})}),()=>{rn(()=>{o&&Es(r(...o),e)&&t(null,...o)})}}),e}function Ts(e,t,r){if(e==null)return t(void 0),Gt;const i=ee(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function za(e){let t;return Ts(e,r=>t=r)(),t}let ur=!1,Gr=Symbol();function Va(e,t,r){const i=r[t]??={store:null,source:Xi(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=Ts(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Gr in r?za(e):n(i.source)}function Ba(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();Ci(e,Gr,{enumerable:!1,value:!0})})}return[e,t]}function Ga(e){var t=ur;try{return ur=!1,[e(),ur]}finally{ur=t}}function Ee(e,t,r,i){var s=(r&Yo)!==0,o=(r&qo)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?ee(i):i),l),d;if(s){var h=Ln in e||To in e;d=mn(e,t)?.set??(h&&t in e?k=>e[t]=k:void 0)}var g,c=!1;s?[g,c]=Ga(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Ao(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&Go)===0)return v;if(d){var _=e.$$legacy;return(function(k,R){return arguments.length>0?((!R||_||c)&&d(R?v():k),k):v()})}var p=!1,m=((r&Bo)!==0?rr:Bi)(()=>(p=!1,v()));s&&n(m);var y=Te;return(function(k,R){if(arguments.length>0){const E=R?n(m):s?et(k):k;return b(m,E),p=!0,l!==void 0&&(l=E),k}return un&&p||(y.f&At)!==0?m.v:n(m)})}function Ya(){return he===null&&Mo(),(he.ac??=new AbortController).signal}function Vn(e){Ge===null&&Li(),Ye(()=>{const t=ee(e);if(typeof t=="function")return t})}const qa="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(qa);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 Xa(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 xs(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 fn(e){return Object.keys(e)}function Ss(e){return Object.entries(e)}function Xr(e){return Math.floor(e)}function Ka(e){return Math.ceil(e)}function Rt(...e){return Math.min(...e)}function ft(...e){return Math.max(...e)}function Za(){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 Qa(e){return e()}function ja(e){e.forEach(Qa)}function $a(){}const fr=e=>e;function Jr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function dn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const dr=86400;function It(e=void 0){return e!==void 0?Zr(e)?Ms(e):nl(e):Ms(new Date)}function Ne(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 Y(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 kt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Dn(e,t=1){return kt(e,-t)}function zt(e){return e.setUTCHours(0,0,0,0),e}function Fe(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 el(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Rs(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Is(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 Ls(e,t){return Se(e,t),e}function Ps(e,t,r){if(cr(e,t),r.length&&r.length<7)for(;r.includes(e.getUTCDay());)Dn(e);return e}function tl(e,t){e=Y(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 Ms(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function nl(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=Za();function As(e,t){e[jr]=t}function rl(e){return!!e?.[jr]}function Vt(e){return e[jr]}function Os(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 Ns(e,t){for(;t--;)e=e.parentElement;return e}function cn(e){return Qt(e).height}function En(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(rl(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 il(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=Fe(e.currentStart),e.currentEnd=Fe(e.currentEnd),e.activeStart=Fe(e.activeStart),e.activeEnd=Fe(e.activeEnd),e}let sl=1;function hr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${sl++}}`,resourceIds:$r(t,"resourceId").map(String),allDay:t.allDay??(Is(t.start)&&Is(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=Y(r.end);zt(r.end),(!Ke(r.end,i)||Ke(r.end,r.start))&&kt(r.end)}return r})}function $r(e,t){let r=e[t+"s"]??e[t]??[];return Kr(r)?r:[r]}function ol(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 al(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Qr(Y(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?[]:[Fs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Fs(l,e,i)],Os("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Fs(e,t,r){return Os("time",r.eventTime,e,[["datetime",dt(t.start)]])}function ll(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 Hs(e,Fe)}function ei(e){return Hs(e,Y)}function Hs(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 ul(e)||fl(e)||dl(e)}function mt(e){return e==="background"}function ul(e){return e==="preview"}function fl(e){return e==="ghost"}function dl(e){return e==="pointer"}const Ws=new WeakMap;let cl=1;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,get id(){let i=Ws.get(e);return i||(i=cl++,Ws.set(e,i)),delete this.id,this.id=`${i}-${t.getTime()}`,this.id},zeroDuration:Ke(t,r)}}function xn(e,t){let r=[],i,s,o;for(let{gridColumn:l,gridRow:u,resource:f,dayStart:d,dayEnd:h,disabled:g}of t)!g&&Tn(e,d,h,f)&&(r.push(d),i=h,s||(s=l,o=u));if(r.length){let l=Gn(e,r[0],i);return ge(l,{gridColumn:s,gridRow:o,dates:r}),[l]}return[]}function Us(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 zs(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}function hn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{s=Ce(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Fe(o))}}}function Vs(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{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="",h=["startRange","endRange"],g=[!1,!1];for(let c of f){let v=h.indexOf(c.source);v>=0?g[v]||(d+=hl(h[1-v],f),g[v]=!0):d+=c.value}return d}}}}),{formatRange:(o,l)=>s(Fe(o),Fe(l))}}}function hl(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 ni(e){return gr(e,"month")}function vl(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function rt(e){return t=>({...t,view:e})}function gl(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 Bs(e){let t=[];return Gs(e,0,t),t}function Gs(e,t,r){let i=[];for(let s of e){let o=ml(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};As(o,l),s.children&&(l.children=Gs(s.children,t+1,r))}return i}function ml(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function pl(e,t){return Ys(e,t)?.eventBackgroundColor}function _l(e,t){return Ys(e,t)?.eventTextColor}function Ys(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function qs(e,t,r,i,s){let o=[];e=Y(e);let l=Y(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 Xs(e,t,r,i,s){let o=Ne(e),l=Ne(t);if(r){let u=Ne(Rt(_e(o),ft(0,_e(l)-dr))),f=Ne(ft(_e(l),_e(u)+dr)),d=Ce(r?.eventFilter)?r.eventFilter:h=>!mt(h.display);e:for(let h of i){let g=Se(Y(h),o),c=Se(Y(h),l),v=Se(Y(h),u),_=Se(Y(h),f);for(let p of s)if(!p.allDay&&d(p)&&p.start<_&&p.end>v){if(p.start<g){let m=ft((p.start-h)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(p.end>c){let m=Rt((p.end-h)/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 ri 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(h=>f.has(h));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 yl(e){let t={buttonText:{today:"today"},customButtons:{},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",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 wl(e){let t={date:r=>zt(It(r)),duration:Ne,events:hr,eventSources:ol,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>zt(It(i))),resources:Bs,validRange:gl};for(let r of e)r.createParsers?.(t);return t}const Ks=["buttonText","customButtons","theme"];function bl(e,t,r){let i=yl(t),s=wl(t);i=ii(i,s),r=ii(r,s);let o=si(i,"views")??{},l=si(r,"views")??{},u=new ri;Js(u,i);let f={},d={};function h(){r.view&&u.set("view",r.view);let g=new Set([...fn(o),...fn(l)]);for(let c of g){let v=l[c]??{},_=Zs(i,o[c]??o[v.type]??{}),p=Zs(_,r,v),m=si(p,"component");delete p.view;for(let y of fn(p))u.has(y)?(f[y]||(f[y]=[]),f[y].push(Ks.includes(y)?k=>p[y]=Ce(k)?k(_[y]):k:k=>p[y]=k)):delete p[y];on(()=>{let y=u.get("view");ee(()=>{y===c&&(e.setViewComponent(m),d=p,Js(u,p))})})}}return{proxy:new Proxy(u,{set(g,c,v){return d[c]=v,g.set(c,v),!0},get(g,c){return g.get(c)}}),setOption(g,c,v){u.has(g)&&(!v&&g in s&&(c=s[g](c)),f[g]?.forEach(_=>_(c)),u.set(g,d[g]??c))},initEffects:h}}function ii(e,t){let r={...e};for(let i of fn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of fn(e.views))r.views[i]=ii(e.views[i],t)}return r}function si(e,t){let r=e[t];return delete e[t],r}function Zs(...e){let t={};for(let r of e){let i={};for(let s of Ks)Ce(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Js(e,t){for(let[r,i]of Ss(t))e.set(r,i)}function kl(e,t){let r=[];for(let i of fn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Cl(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,options:{events:s,eventSources:o,lazyFetching:l,loading:u}}=e;ee(()=>{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=[],h=_=>f(),g=_=>{d=d.concat(hr(_)),e.events=d,f()},c=dt(r.start),v=dt(r.end);for(let _ of o){if(Ce(_.events)){let p=_.events({start:Fe(r.start),end:Fe(r.end),startStr:c,endStr:v},g,h);p!==void 0&&Promise.resolve(p).then(g,h)}else{let p=Ce(_.extraParams)?_.extraParams():ge({},_.extraParams);p.start=c,p.end=v,p=new URLSearchParams(p);let m=_.url,y={},k;["GET","HEAD"].includes(_.method)?m+=(m.includes("?")?"&":"?")+p:(y["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",k=String(p)),fetch(m,{method:_.method,headers:y,body:k,signal:Ya(),credentials:"same-origin"}).then(R=>R.json()).then(g).catch(h)}++t}ge(i,r)}})}}function Dl(e){return()=>{let t=setInterval(()=>{let r=It(),i=zt(Y(r));e.now=r,Ke(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function El(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;ee(()=>{Ce(r)&&r({start:Fe(t.start),end:Fe(t.end),startStr:dt(t.start),endStr:dt(t.end),view:Ze(e.view)})})}}function Tl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;ee(()=>{Ce(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function xl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;ee(()=>{Ce(r)&&kn().then(()=>r({view:Ze(e.view)}))})}}function Sl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return ee(()=>{s=Y(t),r.months?s.setUTCDate(1):r.inWeeks&&Rs(s,i),o=Se(Y(s),r)}),{start:s,end:o}}}function Rl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return ee(()=>{i=Y(t.start),s=Y(t.end)}),r?r(i,s):{start:i,end:s}}}function Il(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o}}=e,l=[...t];return ee(()=>{if(Ce(r)){let u=t.map(Ue),f=Ze(e.view);l=l.filter((d,h)=>r({event:Ue(d),index:h,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 Ll(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return ee(()=>{let o=Y(r.start),l=Y(r.end);for(;o<l;)i.includes(o.getUTCDay())||s.push(Y(o)),kt(o);if(!s.length&&i.length&&i.length<7)for(;i.includes(t.date.getUTCDay());)e.setOption("date",kt(Y(t.date)))}),s}}function Pl(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return ee(()=>{i=r.formatRange(t.start,Dn(Y(t.end)))}),i}}function Ml(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return ee(()=>{o=il(s,i,r,t)}),o}}class Al{#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}=bl(this,t,r);this.options=i,this.#k=s,this.#e=Z(et([])),this.#t=a(Sl(this)),this.#n=a(Rl(this)),this.#r=Z({start:void 0,end:void 0}),this.#s=Z([]),this.#i=a(Il(this)),this.#o=Z(),this.#a=Z(et(It())),this.#l=Z(et(zt(It()))),this.#u=a(Vs(this,"eventTimeFormat")),this.#f=a(hn(this,"dayHeaderFormat")),this.#d=a(hn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Vs(this,"titleFormat")),this.#v=a(Ll(this)),this.#h=a(Pl(this)),this.#y=a(Ml(this)),this.#w=Z(),this.#b=Z(et({})),this.#p=Z(et([])),this.#g=Z(et({})),this.iEvents=new ri,this.#m=Z(et(fr)),this.#_=Z();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){on(Dl(this)),Ye(Cl(this)),Ye(El(this)),Ye(Tl(this)),Ye(xl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Ol=Q("<h2></h2>"),Nl=Q("<button><i></i></button>"),Fl=Q("<button><i></i></button>"),Hl=Q("<button> </button>"),Wl=Q("<button></button>"),Ul=Q("<button> </button>");function Qs(e,t){we(t,!0);let r=te("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),h=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),c=a(()=>r.options.theme),v=a(()=>r.options.validRange),_=a(()=>r.options.view),p=Z(!1),m=Z(!1),y=Z(!1),k=!1;on(()=>{n(l),n(v),t.buttons,ee(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,R(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,R(D),!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,R(w),!0)),kn().then(()=>k=!1))})});function R(q){let I=n(d);q();let ne=n(l).every(pe=>Sn(pe,n(v)));return r.setOption("date",I),ne}function E(){r.setOption("date",Ps(Y(n(d)),n(h),n(g)))}function D(){r.setOption("date",Ls(Y(n(d)),n(h)))}function w(){r.setOption("date",Y(n(s)))}var C=ce(),M=J(C);ae(M,17,()=>t.buttons,De,(q,I)=>{var ne=ce(),pe=J(ne);{var W=H=>{var A=Ol();Me(A,()=>Xe(n(o))),oe(()=>N(A,1,n(c).title)),T(H,A)},z=H=>{var A=ce(),K=J(A);{var ue=ke=>{var se=Nl();se.__click=E;var P=fe(se);oe(()=>{N(se,1,`${n(c).button??""} ec-${n(I)??""}`),Pe(se,"aria-label",n(u).prev),Pe(se,"title",n(u).prev),se.disabled=n(p),N(P,1,`${n(c).icon??""} ec-${n(I)??""}`)}),T(ke,se)},X=ke=>{var se=ce(),P=J(se);{var x=L=>{var j=Fl();j.__click=D;var it=fe(j);oe(()=>{N(j,1,`${n(c).button??""} ec-${n(I)??""}`),Pe(j,"aria-label",n(u).next),Pe(j,"title",n(u).next),j.disabled=n(m),N(it,1,`${n(c).icon??""} ec-${n(I)??""}`)}),T(L,j)},B=L=>{var j=ce(),it=J(j);{var He=V=>{var le=Hl();le.__click=w;var xe=fe(le);oe(()=>{N(le,1,`${n(c).button??""} ec-${n(I)??""}`),le.disabled=n(y),ws(xe,n(u)[n(I)])}),T(V,le)},Lt=V=>{var le=ce(),xe=J(le);{var F=G=>{var de=Wl();de.__click=function(...Re){n(f)[n(I)].click?.apply(this,Re)},Me(de,()=>Xe(n(f)[n(I)].text)),oe(()=>N(de,1,St([n(c).button,`ec-${n(I)}`,n(f)[n(I)].active&&n(c).active]))),T(G,de)},U=G=>{var de=ce(),Re=J(de);{var ye=Ie=>{var Ae=Ul();Ae.__click=()=>r.setOption("view",n(I));var re=fe(Ae);oe(()=>{N(Ae,1,St([n(c).button,`ec-${n(I)}`,n(_)===n(I)&&n(c).active])),ws(re,n(u)[n(I)])}),T(Ie,Ae)};ve(Re,Ie=>{n(I)!==""&&Ie(ye)},!0)}T(G,de)};ve(xe,G=>{n(f)[n(I)]?G(F):G(U,!1)},!0)}T(V,le)};ve(it,V=>{n(I)==="today"?V(He):V(Lt,!1)},!0)}T(L,j)};ve(P,L=>{n(I)==="next"?L(x):L(B,!1)},!0)}T(ke,se)};ve(K,ke=>{n(I)==="prev"?ke(ue):ke(X,!1)},!0)}T(H,A)};ve(pe,H=>{n(I)==="title"?H(W):H(z,!1)})}T(q,ne)}),T(e,C),be()}Zt(["click"]);var zl=Q("<div><!></div>"),Vl=Q("<div></div>"),Bl=Q("<nav></nav>");function Gl(e,t){we(t,!0);let r=a(()=>te("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=Bl();ae(l,21,()=>fn(n(o)),De,(u,f)=>{var d=Vl();ae(d,21,()=>n(o)[n(f)],De,(h,g)=>{var c=ce(),v=J(c);{var _=m=>{var y=zl(),k=fe(y);Qs(k,{get buttons(){return n(g)}}),oe(()=>N(y,1,n(s).buttonGroup)),T(m,y)},p=m=>{Qs(m,{get buttons(){return n(g)}})};ve(v,m=>{n(g).length>1?m(_):m(p,!1)})}T(h,c)}),oe(()=>N(d,1,`ec-${n(f)??""}`)),T(u,d)}),oe(()=>N(l,1,n(s).toolbar)),T(e,l),be()}var Yl=Q("<div><!> <!> <!></div>");function ql(e,t){we(t,!0);let r=Ee(t,"plugins",19,()=>[]),i=Ee(t,"options",19,()=>({})),s=new Al(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),h=a(()=>s.view),g=a(()=>s.viewComponent),c=a(()=>s.options.date),v=a(()=>s.options.duration),_=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.theme),y={...i()};on(()=>{for(let[P,x]of kl(i(),y))ee(()=>{k(P,x)});ge(y,i())});function k(P,x){return Ja(x)&&(x={...x}),Kr(x)&&(x=[...x]),s.setOption(P,x,!1),this}function R(P){let x=s.options[P];return Zr(x)?Fe(x):x}function E(){return s.fetchedRange={start:void 0,end:void 0},this}function D(){return n(u).map(Ue)}function w(P){P=String(P);for(let x of n(u))if(x.id===P)return Ue(x);return null}function C(P){return P=hr([P])[0],n(u).push(P),s.events=[...n(u)],Ue(P)}function M(P){let x=String(P.id),B=n(u).findIndex(L=>L.id===x);return B>=0?(P=hr([P])[0],n(u)[B]=P,s.events=[...n(u)],Ue(P)):null}function q(P){P=String(P);let x=n(u).findIndex(B=>B.id===P);return x>=0&&(n(u).splice(x,1),s.events=[...n(u)]),this}function I(){return Ze(n(h))}function ne(){return n(f).action?.unselect(),this}function pe(P,x){let B=En(P,x);if(B){let L=Vt(B)(P,x);return L.date=Fe(L.date),L}return null}function W(){return s.setOption("date",Ls(Y(n(c)),n(v))),this}function z(){return s.setOption("date",Ps(Y(n(c)),n(v),n(p))),this}var H={setOption:k,getOption:R,refetchEvents:E,getEvents:D,getEventById:w,addEvent:C,updateEvent:M,removeEventById:q,getView:I,unselect:ne,dateFromPoint:pe,next:W,prev:z},A=Yl();let K;var ue=fe(A);Gl(ue,{});var X=ie(ue,2);{var ke=P=>{var x=ce(),B=J(x);Ur(B,()=>n(g),(L,j)=>{j(L,{})}),T(P,x)};ve(X,P=>{n(g)&&P(ke)})}var se=ie(X,2);return ae(se,17,()=>n(o),De,(P,x)=>{var B=ce(),L=J(B);Ur(L,()=>n(x),(j,it)=>{it(j,{})}),T(P,B)}),oe(P=>{N(A,1,St([n(m).calendar,n(m).view,n(d)&&n(m)[n(d)]])),Pe(A,"role",P),K=bt(A,"",K,{height:n(_)})},[()=>n(l).includes("list")?"list":"table"]),T(e,A),be(H)}function Xl(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return ee(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function Kl(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return ee(()=>{let u=[],f=1,d=1;for(let h of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:h,dayEnd:kt(Y(h)),disabled:Sn(h,i),highlight:r.some(g=>Ke(g,h))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Zl(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return ee(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(xn(l,u))):s=s.concat(xn(l,u));Us(s)}),{chunks:s,bgChunks:o}}}function Jl(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&ee(()=>{for(let l of i)s=s.concat(xn(o,l))});return s}}let Ql=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(Xl(t)),this.#t=a(Kl(t,this)),this.#n=Z();let r=a(Zl(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 ri,this.#o=a(hn(t,"dayCellFormat")),this.#a=a(hn(t,"dayPopoverFormat")),this.#l=Z(null)}};var jl=Q("<div><!></div>");function mr(e,t){we(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"),h=Ee(t,"noIeb",3,!1),g=Ee(t,"noBeb",3,!1),c=a(()=>te("state")),v=a(()=>n(c).today),_=a(()=>n(c).interaction.action),p=a(()=>n(c).options.theme),m=a(()=>te("view-state")),y=a(()=>n(m).snap),k=a(()=>Ke(t.date,n(v))),R=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,f()&&n(p).highlight,u()&&n(p).disabled,h()&&n(p).noIeb,g()&&n(p).noBeb]));Vn(()=>{As(r(),(C,M)=>({allDay:i(),date:o()(C,M),resource:s(),dayEl:r(),disabled:u()}))});let E=a(()=>!u()&&n(_)?C=>n(_).select(C,n(y)):void 0);var D=jl();D.__pointerdown=function(...C){n(E)?.apply(this,C)};var w=fe(D);Ut(w,()=>t.children??Gt),nt(D,C=>r(C),()=>r()),oe(()=>{N(D,1,St(n(R))),Pe(D,"role",d())}),T(e,D),be()}Zt(["pointerdown"]);var $l=Q("<div></div>"),eu=Q("<article><!></article>");function js(e,t){we(t,!0);let r=Ee(t,"el",15),i=Ee(t,"classes",3,fr),s=Ee(t,"styles",3,fr),o=a(()=>te("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),f=a(()=>n(o).options.displayEventEnd),d=a(()=>n(o).options.eventBackgroundColor),h=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),c=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),_=a(()=>n(o).options.eventClassNames),p=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),y=a(()=>n(o).options.eventTextColor),k=a(()=>n(o).options.resources),R=a(()=>n(o).options.theme),E=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(E).backgroundColor??pl(n(E),n(k))??n(d)??n(h)),C=a(()=>n(E).textColor??_l(n(E),n(k))??n(y)),M=a(()=>Ss(s()({"background-color":n(w),color:n(C)})).map(x=>`${x[0]}:${x[1]}`).concat(n(E).styles).join(";")),q=a(()=>i()([mt(n(D))?n(R).bgEvent:n(R).event,...ll(n(_),n(E),n(u))])),I=a(()=>al(t.chunk,n(f),n(g),n(R),n(l),n(u))),ne=a(()=>Eo(n(I),2)),pe=a(()=>n(ne)[0]),W=a(()=>n(ne)[1]);Vn(()=>{Ce(n(v))&&n(v)({event:Ue(n(E)),timeText:n(pe),el:r(),view:Ze(n(u))})});function z(x,B){return Ce(x)&&!vr(B)?L=>x({event:Ue(n(E)),el:r(),jsEvent:L,view:Ze(n(u))}):void 0}let H=a(()=>!mt(n(D))&&z(n(c),n(D))||void 0),A=a(()=>n(H)&&Yr(n(H))),K=a(()=>z(n(p),n(D))),ue=a(()=>z(n(m),n(D)));var X=eu();X.__click=function(...x){n(H)?.apply(this,x)},X.__keydown=function(...x){n(A)?.apply(this,x)},X.__pointerdown=function(...x){t.onpointerdown?.apply(this,x)};{const x=B=>{var L=$l();Me(L,()=>Xe(n(W))),oe(()=>N(L,1,St(n(R).eventBody))),T(B,L)};var ke=fe(X);{var se=B=>{var L=ce(),j=J(L);Ut(j,()=>t.body,()=>x,()=>n(w),()=>n(C)),T(B,L)},P=B=>{x(B)};ve(ke,B=>{t.body?B(se):B(P,!1)})}nt(X,B=>r(B),()=>r())}oe(()=>{N(X,1,St(n(q))),bt(X,n(M)),Pe(X,"role",n(H)?"button":void 0),Pe(X,"tabindex",n(H)?0:void 0)}),ut("mouseenter",X,function(...x){n(K)?.apply(this,x)}),ut("mouseleave",X,function(...x){n(ue)?.apply(this,x)}),T(e,X),be()}Zt(["click","keydown","pointerdown"]);var tu=Q("<div><!></div>");function Xn(e,t){we(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(()=>te("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var h=tu(),g=fe(h);Ut(g,()=>t.children),oe(c=>{N(h,1,c),Pe(h,"role",s()?null:"columnheader"),Pe(h,"aria-colspan",s()||i()<=1?null:i()),Pe(h,"aria-colindex",s()?null:t.colIndex),Pe(h,"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])]),T(e,h),be()}var nu=Q("<time></time>");function pr(e,t){we(t,!0);let r=Ee(t,"alPrefix",3,""),i=a(()=>te("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=nu();Me(l,()=>Xe(n(s).format(t.date))),oe((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>dt(t.date,10),()=>n(o).format(t.date)]),T(e,l),be()}function _r(e,t){we(t,!0);let r=Ee(t,"el",15),i=a(()=>te("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>te("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),h=a(()=>t.chunk.event.display),g=a(()=>_=>n(s)(_,n(d)));function c(_){return n(o)?.draggable(_)?p=>n(o).drag(_,p,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(h))&&!vr(n(h))?c(n(d)):void 0);js(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 y=ce(),k=J(y);{var R=D=>{var w=ce(),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:(I,ne)=>{var pe=ce(),W=J(pe);Ut(W,m),T(I,pe)},$$slots:{default:!0}})}),T(D,w)},E=D=>{var w=ce(),C=J(w);Ut(C,m),T(D,w)};ve(k,D=>{n(l)?D(R):D(E,!1)})}T(p,y)},$$slots:{body:!0}}),be()}var ru=Q("<time></time>"),iu=Q("<span></span>"),su=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),ou=Q("<div><!> <!></div> <div><!></div>",1);function au(e,t){we(t,!0);const r=()=>Va(n(d),"$firstDay",i),[i,s]=Ba();let o=te("state"),l=te("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),h=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),c=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),R=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),E=a(()=>I=>[...I,n(R)&&n(g).otherMonth]),D=a(()=>n(c)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let I;if(n(D)){let ne=tl(n(m),r());n(v)?I=Ce(n(v))?n(v)({date:Fe(n(m)),week:ne}):n(v):I="W"+String(ne).padStart(2,"0")}return I}),C=a(()=>n(_).get(n(m).getTime())),M=a(()=>{let I="";if(n(C)){let ne="+"+n(C).length+" more";n(h)?I=Ce(n(h))?n(h)({num:n(C).length,text:ne}):n(h):I=ne}return I});function q(){l.popupDay=t.day}mr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(y)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(I,ne)=>{var pe=ou(),W=J(pe),z=fe(W);{var H=se=>{var P=ru();Me(P,()=>Xe(n(p).format(n(m)))),oe(x=>Pe(P,"datetime",x),[()=>dt(n(m),10)]),T(se,P)};ve(z,se=>{n(u).includes("dayNumber")&&se(H)})}var A=ie(z,2);{var K=se=>{var P=iu();Me(P,()=>Xe(n(w))),oe(()=>N(P,1,n(g).weekNumber)),T(se,P)};ve(A,se=>{n(D)&&se(K)})}var ue=ie(W,2),X=fe(ue);{var ke=se=>{var P=su(),x=a(()=>Jr(q));P.__click=function(...j){n(x)?.apply(this,j)};var B=a(()=>Yr(q));P.__keydown=function(...j){n(B)?.apply(this,j)};var L=a(Jr);P.__pointerdown=function(...j){n(L)?.apply(this,j)},Me(P,()=>Xe(n(M))),T(se,P)};ve(X,se=>{n(C)&&se(ke)})}oe(()=>{N(W,1,n(g).dayHead),N(ue,1,n(g).dayFoot)}),T(I,pe)},$$slots:{default:!0}}),be(),s()}Zt(["click","keydown","pointerdown"]);function yr(e,t){we(t,!0);let r=Ee(t,"inPopup",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>te("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),h=Z(void 0),g=Z(1),c=Z(!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));Ye(()=>{r()||b(g,cn(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,!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)}D["margin-block-start"]=`${w}px`}return n(c)&&(D.visibility="hidden"),D});function y(){b(g,zs(t.chunk,cn(n(h)),cn(n(p).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let D=cn(n(p))-R(n(p));if(b(c,t.chunk.bottom>D),n(c))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(c,!1),n(f).size&&n(f).clear()}function R(D){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=ft(w,cn(D.lastElementChild)),D=D.nextElementSibling,!!D);++C);return w}var E={reposition:y,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(h)},set el(C){b(h,C,!0)}})}return be(E)}var lu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function uu(e,t){we(t,!0);let r=te("view-state"),i=a(()=>te("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),h=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),c=Z(void 0),v=Z(""),_=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),k=a(()=>{let z=[];for(let H of n(f))H.gridRow===n(p)&&H.gridColumn<=n(_)&&H.gridColumn+H.dates.length>n(_)&&z.push(ge({},H,Gn(H.event,n(m),n(y))));return z.sort((H,A)=>H.top-A.top),z});Vn(()=>{n(c).show()}),Ye(()=>{n(k).length?ee(R):E()});function R(){let z=n(d).children.item((n(p)-1)*n(u)+n(_)-1),H=Qt(n(c)),A=Qt(z),K=Qt(n(d));b(v,"");let ue;if(H.width>=K.width){ue=K.left-A.left;let ke=A.right-K.right;b(v,n(v)+`inset-inline-end:${ke}px;`)}else ue=(A.width-H.width)/2,A.left+ue<K.left?ue=K.left-A.left:A.left+ue+H.width>K.right&&(ue=K.right-A.left-H.width);b(v,n(v)+`inset-inline-start:${ue}px;`);let X;H.height>=K.height?(X=K.top-A.top,b(v,n(v)+`block-size:${K.height}px;`)):(X=(A.height-H.height)/2,A.top+X<K.top?X=K.top-A.top:A.top+X+H.height>K.bottom&&(X=K.bottom-A.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=lu();let C;var M=fe(w),q=fe(M);Me(q,()=>Xe(n(h).format(n(m))));var I=ie(q,2);ha(I);var ne=a(()=>Jr(E));I.__click=function(...z){n(ne)?.apply(this,z)};var pe=a(()=>Yr(E));I.__keydown=function(...z){n(pe)?.apply(this,z)};var W=ie(M,2);ae(W,21,()=>n(k),De,(z,H)=>{yr(z,{get chunk(){return n(H)},inPopup:!0})}),nt(w,z=>b(c,z),()=>n(c)),Me(w,()=>Xa("pointerdown")),oe(z=>{N(w,1,n(l).popup),C=bt(w,n(v),C,{"grid-area":`${n(p)+1} / ${n(_)}`}),N(M,1,n(l).dayHead),Pe(q,"datetime",z),Pe(I,"aria-label",n(o).close),N(W,1,n(l).events)},[()=>dt(n(m),10)]),ut("pointerdownoutside",w,D),ut("close",w,E),T(e,w),be()}Zt(["click","keydown"]);var fu=Q('<div role="columnheader"><span></span></div>'),du=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function oi(e,t){we(t,!0);let r=te("state"),i=new Ql(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),h=a(()=>i.bgChunks),g=a(()=>i.iChunks),c=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),_=[];function p(){ti(_,n(d)),n(c).clear(),kn().then(m)}function m(){n(c).size,_.forEach(W=>W.hide())}Ye(p),Ye(m);var y=du();let k;var R=fe(y),E=fe(R);ae(E,21,()=>n(f)[0],De,(W,z,H)=>{let A=()=>n(z).dayStart;var K=fu();Pe(K,"aria-colindex",1+H);var ue=fe(K);Me(ue,()=>Xe(n(s).format(A()))),oe((X,ke)=>{N(K,1,X),Pe(ue,"aria-label",ke)},[()=>St([n(u).colHead,n(u).weekdays?.[A().getUTCDay()]]),()=>n(o).format(A())]),T(W,K)});var D=ie(R,2),w=fe(D);ae(w,21,()=>n(f),De,(W,z,H)=>{var A=ce(),K=J(A);ae(K,17,()=>n(z),De,(ue,X,ke)=>{{let se=a(()=>ke+1===n(z).length),P=a(()=>H+1===n(f).length);au(ue,{get day(){return n(X)},get noIeb(){return n(se)},get noBeb(){return n(P)}})}}),T(W,A)}),nt(w,W=>i.gridEl=W,()=>i?.gridEl);var C=ie(w,2),M=fe(C);ae(M,19,()=>n(d),W=>W.id,(W,z,H)=>{nt(yr(W,{get chunk(){return n(z)}}),(A,K)=>_[K]=A,A=>_?.[A],()=>[n(H)])});var q=ie(M,2);ae(q,17,()=>n(h),W=>W.id,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var I=ie(q,2);ae(I,17,()=>n(g),De,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var ne=ie(D,2);{var pe=W=>{uu(W,{})};ve(ne,W=>{n(v)&&W(pe)})}nt(y,W=>r.mainEl=W,()=>r?.mainEl),Me(y,()=>qr(p)),oe(()=>{N(y,1,St([n(u).main,n(l)===!0&&n(u).uniform])),k=bt(y,"",k,{"--ec-grid-cols":n(f)[0].length,"--ec-grid-rows":n(f).length}),N(R,1,n(u).header),N(E,1,n(u).grid),N(D,1,n(u).body),N(w,1,n(u).grid),N(C,1,n(u).events)}),T(e,y),be()}const cu={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:()=>oi,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:rt("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:qn,component:()=>oi,displayEventEnd:!1,theme:rt("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:ni,component:hu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:rt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function hu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Rs(t,i),end:el(r,i)}},oi}function $s(e,t,r){return e.startEditable??t??e.editable??r}function vu(e,t,r){return e.durationEditable??t??e.editable??r}let ai=!1;function gu(e){ai||(ai=!0,window.requestAnimationFrame(()=>{e(),ai=!1}))}function eo(e,t,r){return ft(t,Rt(r,e))}function mu(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]]:!mt(l)&&$s(o,r,t)?[i.draggable]:[]]}}}function pu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Bn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class _u{constructor(t){this.#e(t)}#e(t){on(mu(t)),Ye(pu(t))}}function yu(e,t){we(t,!0);let r=te("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),h=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),c=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),R=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),I=a(()=>r.options.selectConstraint),ne=a(()=>r.options.selectLongPressDelay),pe=a(()=>r.options.selectMinDistance),W=a(()=>r.options.unselect),z=a(()=>r.options.unselectAuto),H=a(()=>r.options.unselectCancel),A=a(()=>r.options.validRange);const K=1,ue=2,X=3,ke=4,se=5,P=6;let x,B,L,j,it,He,Lt,V,le,xe,F,U,G,de,Re,ye,Ie,Ae,re,ze,ct,$e,pt,Oe,vn,Bt,jt;function Pf(S){return $s(S,n(c),n(g))}function Mf(S,O,me,$,Je){x||(x=yi(O)?K:P,gn()&&(L=S,_i(O,Je),me&&(He=me),$&&(vn=$),Ae="dragging",Rn(O)))}function Af(S,O,me,$,Je,Zn,bi,Kf){x||(x=yi(O)?me?X:ue:P,gn()&&(L=S,_i(O,Kf),Je&&(He=Je),Zn&&(vn=Zn),Ae=$==="x"?"resizingX":"resizingY",Cr()?(re=Y(L.end),Ie?(Qr(re,L.start),re>=L.end&&Dn(re)):(cr(re,Bt),re<L.start&&(re=L.start),He=L.start)):(re=Y(L.start),Ie?(Qr(re,L.end),re<=L.start&&!bi&&kt(re)):(Se(re,Bt),re>L.end&&(re=L.end),He=L.end,bi||(He=cr(Y(He),Bt))),bi&&!Ie&&(jt=Bt)),Rn(O)))}function Of(S,O){x||(x=yi(S)?n(C)&&!n(o).includes("list")?ke:se:P,gn()&&(_i(S,O),Ae="selecting",ze=Ie?Ne({day:1}):Bt,L={allDay:Ie,start:He,end:Se(Y(He),ze),resourceIds:V?[V.id]:[]},Rn(S)))}function Nf(){x||(x=P)}function _i(S,O){window.getSelection().removeAllRanges(),xe=U=S.clientX,F=G=S.clientY,Bt=O?.duration;let me=En(U,G);({allDay:Ie,date:He,resource:V}=Vt(me)(U,G)),Re=n(u)!==Ns(me,3),de=Ns(me,1),vo(),S.pointerType!=="mouse"&&(pt=setTimeout(()=>{x&&(B=!0,Rn(S))},($t()?n(ne):n(y))??n(D)))}function Rn(S){if(B||S&&S.pointerType==="mouse"&&zf()>=($t()?n(pe):n(v))){B=!0,Dr(S),r.iClass=Ae,j||($t()?Uf():Wf(S,In()?n(k):n(_)));let O=Kn(Hf());if(O){let me;if({allDay:me,date:Lt,resource:le}=O,me===Ie){let $=kr({},j),Je=n(w);ye=Ne((Lt-He)/1e3),Cr()?($.start=Se(Y(L.start),ye),$.start>re&&($.start=re,ye=Ne((re-L.start)/1e3))):($.end=Se(Y(L.end),ye),jt&&Se($.end,jt),In()?$.end<re&&($.end=re,ye=Ne((re-L.end)/1e3)):$t()?($.end<L.end?($.start=cr($.end,ze),$.end=L.end):$.start=L.start,Je=n(I)):($.start=Se(Y(L.start),ye),V&&($.resourceIds=L.resourceIds.filter(Zn=>Zn!==V.id),$.resourceIds.push(le.id)),Je=n(d)));do{if(Je!==void 0&&($=kr(ei(L),$),Je($t()?_o($,S):yo($,L,S))===!1)){po(L);break}po($)}while(!1)}}}if(n(h)){let O=24,me=24;gu(()=>{Oe&&(Re||(G<Oe.top+O&&(n(u).scrollTop+=ft(-8,(G-Oe.top-O)/3)),G>Oe.bottom-O&&(n(u).scrollTop+=Rt(8,(G-Oe.bottom+O)/3))),U<Oe.left+me&&(n(u).scrollLeft+=ft(-8,(U-Oe.left-me)/3)),U>Oe.right-me&&(n(u).scrollLeft+=Rt(8,(U-Oe.right+me)/3)),G<O&&window.scrollBy(0,ft(-8,(G-O)/3)),G>window.innerHeight-O&&window.scrollBy(0,Rt(8,(G-window.innerHeight+O)/3)))})}}function co(){gn()&&(vo(),Rn())}function Ff(S){gn()&&S.isPrimary&&(U=S.clientX,G=S.clientY,Rn(S))}function ho(S){if(ct&&n(z)&&!(n(H)&&S.target.closest(n(H)))&&Dr(S),x&&S.isPrimary){if(B)if($t()){if(ct=!0,Ce(n(M))){let O=_o(j,S);n(M)(O)}}else{L.display=it;let O=In()?n(R):n(p);Ce(O)&&O({event:Ue(L),jsEvent:S,view:Ze(n(l))});let me=ei(L);if(mo(L,j),go(),O=In()?n(E):n(m),Ce(O)){let $=L,Je=yo(L,me,S);O(ge(Je,{revert(){mo($,me)}}))}}else if((Vf()||$t())&&Ce(n(f))&&!$e){U=S.clientX,G=S.clientY;let O=En(U,G);if(O){let{allDay:me,date:$,resource:Je}=Vt(O)(U,G);n(f)({allDay:me,date:Fe($),dateStr:dt($),dayEl:O,jsEvent:S,view:Ze(n(l)),resource:Je})}}B=!1,x=xe=F=U=G=L=it=He=Lt=V=le=ye=jt=Ie=re=ze=vn=de=Oe=Bt=void 0,r.iClass=void 0,pt&&(clearTimeout(pt),pt=void 0)}$e=!1}function Hf(){return En(eo(U,Oe.left,Oe.right),eo(G,Oe.top,Oe.bottom))}function Kn(S){if(S){let O=Vt(S)(U,G);if(O.disabled){if(!n(A).end||O.date<n(A).end)return Kn(S.nextElementSibling);if(!n(A).start||O.date>n(A).start)return Kn(S.previousElementSibling)}else return($t()||In())&&O.resource&&!j.resourceIds.includes(O.resource.id)&&!n(o).includes("timeline")?U>xe?Kn(S.previousElementSibling):Kn(S.nextElementSibling):O}return null}function vo(){let S=Qt(n(u)),O=Qt(de),me=S.width/n(u).offsetWidth,$=S.height/n(u).offsetHeight,Je=dn();Oe={left:ft(0,Je?S.right-n(u).clientWidth*me:O.left+n(u).scrollLeft*me),right:Rt(document.documentElement.clientWidth,Je?O.right+n(u).scrollLeft*me:S.left+n(u).clientWidth*me)-2,top:ft(0,O.top+(Re?0:n(u).scrollTop)*$),bottom:Rt(document.documentElement.clientHeight,Re?O.bottom:S.top+n(u).clientHeight*$)-2}}function Wf(S,O){Ce(O)&&O({event:Ue(L),jsEvent:S,view:Ze(n(l))}),it=L.display,L.display="preview",j=ei(L),vn!==void 0&&(j._margin=vn),jt&&Se(j.end,jt),L.display="ghost",r.events=[...n(i)]}function Uf(){j={id:"{select}",allDay:L.allDay,start:L.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(q),resourceIds:L.resourceIds,classNames:[],styles:[]}}function go(){j=void 0,n(s).delete("action")}function kr(S,O){return S.start=O.start,S.end=O.end,S.resourceIds=O.resourceIds,{...S}}function mo(S,O){kr(S,O),r.events=[...n(i)]}function po(S){j=kr(j,S),n(s).set("action",j)}function _o(S,O){let{start:me,end:$}=Ue(S);return{start:me,end:$,startStr:dt(S.start),endStr:dt(S.end),allDay:Ie,view:Ze(n(l)),resource:V,jsEvent:O}}function yo(S,O,me){let $;return In()?$=Cr()?{startDelta:ye,endDelta:Ne(0)}:{startDelta:Ne(0),endDelta:ye}:$={delta:ye,oldResource:V!==le?V:void 0,newResource:V!==le?le:void 0},ge($,{event:Ue(S),oldEvent:Ue(O),view:Ze(n(l)),jsEvent:me}),$}function zf(){return Math.sqrt(Math.pow(U-xe,2)+Math.pow(G-F,2))}function In(){return x===ue||Cr()}function Cr(){return x===X}function Vf(){return x===se}function $t(){return x===ke}function gn(){return x&&x<se}function yi(S){return S.isPrimary&&(S.pointerType!=="mouse"||S.buttons&1)}function Dr(S){ct&&(ct=!1,go(),Ce(n(W))&&n(W)({jsEvent:S,view:Ze(n(l))}))}on(()=>{n(l),Dr()});function Bf(){$e=!0}function Gf(S){if(gn()){let O=S.target,me=[],$=()=>ja(me);me.push(Bn(O,"touchmove",wi(()=>B))),me.push(Bn(O,"touchend",$)),me.push(Bn(O,"touchcancel",$))}}function wi(S){return O=>{S()&&O.preventDefault()}}Vn(()=>Bn(window,"touchmove",$a,{passive:!1}));var Yf={draggable:Pf,drag:Mf,resize:Af,select:Of,noAction:Nf,handleScroll:co,unselect:Dr,noClick:Bf};ut("pointermove",yt,Ff),ut("pointerup",yt,ho),ut("pointercancel",yt,ho),ut("scroll",yt,co);var qf=a(()=>wi(gn));ut("selectstart",yt,function(...S){n(qf)?.apply(this,S)});var Xf=a(()=>wi(()=>pt));return ut("contextmenu",yt,function(...S){n(Xf)?.apply(this,S)}),ut("touchstart",yt,Gf,void 0,!0),be(Yf)}function wu(e,t){we(t,!0);let r=a(()=>te("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:y,resource:k,disabled:R}=Vt(p)(o,l);if(!R){u||g(),u.allDay=m,u.start=y,u.end=Se(Y(y),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}c()}function d(){f()}function h(p){v(p)&&(o=p.clientX,l=p.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function c(){u=void 0,n(i).delete("pointer")}function v(p){return p.isPrimary&&p.pointerType==="mouse"}var _={handleScroll:d};return ut("pointermove",yt,h),ut("scroll",yt,d),be(_)}var bu=Q("<div></div>"),ku=Q("<div></div>"),Cu=Q("<!> <!> <!>",1);function Du(e,t){we(t,!0);let r=Ee(t,"forceDate",3,void 0),i=Ee(t,"forceMargin",3,void 0),s=a(()=>te("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),h=a(()=>te("view-state")),g=a(()=>n(h).snap),c=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),_=a(()=>!mt(n(v))&&!vr(n(v))&&vu(n(c),n(u),n(l)));function p(w){return C=>n(o).resize(n(c),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Cu(),y=J(m);{var k=w=>{var C=bu(),M=a(()=>p(!0));C.__pointerdown=function(...q){n(M)?.apply(this,q)},oe(()=>N(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),T(w,C)};ve(y,w=>{n(_)&&n(f)&&w(k)})}var R=ie(y,2);Ut(R,()=>t.children);var E=ie(R,2);{var D=w=>{var C=ku(),M=a(()=>p(!1));C.__pointerdown=function(...q){n(M)?.apply(this,q)},oe(()=>N(C,1,n(d).resizer)),T(w,C)};ve(E,w=>{n(_)&&w(D)})}T(e,m),be()}Zt(["pointerdown"]);var Eu=Q("<!> <!>",1);function Tu(e,t){we(t,!0);let r=te("state");new _u(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Du;var o=Eu(),l=J(o);nt(yu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=ie(l,2);{var f=d=>{nt(wu(d,{}),h=>n(i).pointer=h,()=>n(i)?.pointer)};ve(u,d=>{n(s)&&d(f)})}T(e,o),be()}const xu={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(Tu)}};let Su=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(hn(t,"listDayFormat")),this.#t=a(hn(t,"listDaySideFormat"))}};var Ru=Q("<div></div> <!>",1);function Iu(e,t){we(t,!0);let r=a(()=>te("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,h=Gt,g=Gt)=>{var c=Ru(),v=J(c);let _;var p=ie(v,2);Ut(p,d),oe(()=>{N(v,1,n(s).eventTag),_=bt(v,"",_,{"background-color":h()})}),T(f,c)};let u=a(()=>n(i).action?.noAction);js(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}be()}var Lu=Q("<h4><time></time> <time></time></h4> <!>",1);function Pu(e,t){we(t,!0);let r=a(()=>te("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(()=>te("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),h=a(()=>n(s).some(y=>Ke(y,t.date))),g=a(()=>Sn(t.date,n(l))),c=a(()=>dt(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let k=t.date,R=kt(Y(t.date));for(let E of n(i))if(!mt(E.display)&&Tn(E,k,R)){let D=Gn(E,k,R);y.push(D)}}return y});var _=ce(),p=J(_);{var m=y=>{mr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(h)},children:(k,R)=>{var E=Lu(),D=J(E),w=fe(D);Me(w,()=>Xe(n(f).format(t.date)));var C=ie(w,2);Me(C,()=>Xe(n(d).format(t.date)));var M=ie(D,2);ae(M,17,()=>n(v),q=>q.id,(q,I)=>{Iu(q,{get chunk(){return n(I)}})}),oe(()=>{N(D,1,n(o).dayHead),Pe(w,"datetime",n(c)),N(C,1,n(o).daySide),Pe(C,"datetime",n(c))}),T(k,E)},$$slots:{default:!0}})};ve(p,y=>{n(v).length&&y(m)})}T(e,_),be()}var Mu=Q("<div></div>"),Au=Q("<section><!></section>");function Ou(e,t){we(t,!0);let r=te("state"),i=new Su(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),h=a(()=>{let y=!0;if(n(l).length){let k=n(l)[0],R=kt(Y(n(l).at(-1)));for(let E of n(s))if(!mt(E.display)&&E.start<R&&E.end>k){y=!1;break}}return y}),g=a(()=>Ce(n(f))?n(f)():n(f));function c(y){Ce(n(u))&&n(u)({jsEvent:y,view:Ze(n(o))})}var v=Au(),_=fe(v);{var p=y=>{var k=Mu();k.__click=c,Me(k,()=>Xe(n(g))),oe(()=>N(k,1,n(d).noEvents)),T(y,k)},m=y=>{var k=ce(),R=J(k);ae(R,17,()=>n(l),De,(E,D)=>{Pu(E,{get date(){return n(D)}})}),T(y,k)};ve(_,y=>{n(h)?y(p):y(m,!1)})}nt(v,y=>r.mainEl=y,()=>r?.mainEl),oe(()=>N(v,1,n(d).main)),T(e,v),be()}Zt(["click"]);const Nu={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:rt("ec-list ec-day-view")},listWeek:{buttonText:qn,component:wr,duration:{weeks:1},theme:rt("ec-list ec-week-view")},listMonth:{buttonText:ni,component:wr,duration:{months:1},theme:rt("ec-list ec-month-view")},listYear:{buttonText:vl,component:wr,duration:{years:1},theme:rt("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Ou}function li(e,t){let r=[];for(let{gridColumn:i,gridRow:s,resource:o,start:l,end:u,disabled:f}of t)if(!f&&Tn(e,l,u,o)){let d=Gn(e,l,u);ge(d,{gridColumn:i,gridRow:s,top:(d.start-l)/1e3,height:(d.end-d.start)/1e3,maxHeight:(u-d.start)/1e3}),r.push(d)}return r}function Fu(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 Hu(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 ui(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>dr){Se(Dn(r),i);let s=Dn(Y(r));s<t&&(t=s)}return{start:t,end:r}}}function fi(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 to(e){"allDaySlot"in e||(ge(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ge(e.theme,{allDay:"ec-all-day"}))}function di(e){"scrollTime"in e||ge(e,{scrollTime:Ne,slotDuration:Ne,slotLabelInterval:t=>t!==void 0?Ne(t):void 0,slotMaxTime:Ne,slotMinTime:Ne,snapDuration:t=>t!==void 0?Ne(t):void 0})}function no(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Wu(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return ee(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(Y(f),o.min),end:Se(Y(f),o.max),dayStart:f,dayEnd:kt(Y(f)),disabled:Sn(f,s),highlight:i.some(d=>Ke(d,f))}),++u}),[l]}}function Uu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return ee(()=>{for(let f of r)for(let d of i)mt(f.display)?(o=o.concat(li(f,d)),f.allDay&&(u=u.concat(xn(f,d)))):f.allDay?l=l.concat(xn(f,d)):s=s.concat(li(f,d));Fu(s),Us(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function zu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&ee(()=>{for(let u of i)l.allDay?o=o.concat(xn(l,u)):s=s.concat(li(l,u))});return{iChunks:s,allDayIChunks:o}}}function Vu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return ee(()=>{l=Xs(s,o,i,r,t)}),l}}function Bu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return ee(()=>{i=r===void 0?_e(t)<3600?2:1:Ka(_e(r)/_e(t))||1}),i}}function Gu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return ee(()=>{l=qs(zt(It()),r,s,o,i)}),l}}function Yu(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function ci(){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(hn(e,"slotLabelFormat")),this.#t=a(Bu(e)),this.#n=Z(0),this.#r=a(Yu(e))}}}function ro(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(Vu(t)),this.#t=a(Gu(t,this));let r=a(Uu(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(zu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let qu=class extends ro(ci()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Wu(t,this))}};function Xu(e){return()=>{let{activeRange:t,filteredEvents:r,options:{filterResourcesWithEvents:i,resources:s},extensions:{viewResources:o}}=e,l=o?o(s):s;return ee(()=>{i&&(l=s.filter(u=>r.some(f=>Tn(f,t.start,t.end,u)))),l.length||(l=Bs([{}]))}),l}}function Ku(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return ee(()=>{let d=1,h=i?[r,u]:[u,r];for(let g of h[0]){let c=[];for(let v of h[1]){let _=i?g:v,p=i?v:g;c.push({gridColumn:d,gridRow:1,resource:p,start:Se(Y(_),l.min),end:Se(Y(_),l.max),dayStart:_,dayEnd:kt(Y(_)),disabled:Sn(_,o),highlight:s.some(m=>Ke(m,_))}),++d}f.push(c)}}),f}}function io(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(Xu(t))}}}let Zu=class extends io(ro(ci())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Ku(t,this))}};var Ju=Q("<span></span>");function hi(e,t){we(t,!0);let r=Ee(t,"date",3,void 0),i=Ee(t,"setLabel",3,void 0),s=a(()=>te("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()?Fe(r()):void 0}):n(l):t.resource.title),h=Z(void 0);Ye(()=>{n(d),ee(()=>{r()?b(h,n(o).format(r())+", "+n(f).innerText):i()&&(b(h,void 0),i()(n(f).innerText))})}),Vn(()=>{Ce(n(u))&&n(u)({resource:t.resource,date:r()?Fe(r()):void 0,el:n(f)})});var g=Ju();nt(g,c=>b(f,c),()=>n(f)),Me(g,()=>Xe(n(d))),oe(()=>Pe(g,"aria-label",n(h))),T(e,g),be()}function so(e,t){we(t,!0);let r=Ee(t,"allDay",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>te("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),h=a(()=>t.day.disabled),g=a(()=>t.day.highlight),c=Z(void 0);function v(_,p){if(r())return n(u);{let m=Qt(n(c)),y=m.height/n(c).offsetHeight;return Se(Y(n(f)),n(l).duration,Xr((p-m.top)/(n(s)*n(l).ratio*y)))}}mr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(h)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(c)},set el(_){b(c,_,!0)}}),be()}function vi(e,t){we(t,!0);let r=a(()=>te("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),h=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"]=`${h}px`,u["block-size"]=`${h}px`,u["max-block-size"]=`${g}px`;let c="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((${c}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${c}) / ${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"}),be()}function gi(e,t){we(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,zs(t.chunk,cn(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)}}),be(u)}var Qu=Q("<div></div>");function br(e,t){we(t,!0);let r=Ee(t,"span",3,1),i=a(()=>te("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),h=a(()=>te("view-state")),g=a(()=>n(h).sidebarWidth),c=a(()=>{for(let w of t.days)if(Ke(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(c).gridColumn),_=a(()=>n(c).start),p=a(()=>n(c).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:dn()?`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 R=ce(),E=J(R);{var D=w=>{var C=Qu();let M;Me(C,()=>xs(k,n(y))),oe(()=>{N(C,1,n(d).nowIndicator),M=bt(C,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),T(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}T(e,R),be()}var ju=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),$u=Q("<div><time></time></div>"),ef=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 oo(e,t){we(t,!0);let r=Ee(t,"viewState",7),i=te("state");r()||r(new qu(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),h=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),c=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),R=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),I=a(()=>Hu(n(l)));Ye(()=>{n(o),n(h),kn().then(ne)});function ne(){n(s).scrollTop=((_e(n(h))-_e(n(M).min))/_e(n(c))-.5)*n(g)}let pe=[];function W(){ti(pe,n(_))}Ye(W);var z=ef();let H;var A=fe(z),K=fe(A),ue=ie(K,2),X=fe(ue);{var ke=F=>{var U=ce(),G=J(U);Ut(G,()=>t.header),T(F,U)},se=F=>{var U=ce(),G=J(U);ae(G,17,()=>n(E)[0],De,(de,Re,ye)=>{let Ie=()=>n(Re).dayStart,Ae=()=>n(Re).disabled,re=()=>n(Re).highlight;Xn(de,{get date(){return Ie()},colIndex:1+ye,get disabled(){return Ae()},get highlight(){return re()},children:(ze,ct)=>{pr(ze,{get date(){return Ie()}})},$$slots:{default:!0}})}),T(F,U)};ve(X,F=>{t.header?F(ke):F(se,!1)})}var P=ie(ue,2);{var x=F=>{var U=ju(),G=fe(U);Me(G,()=>Xe(n(I)));var de=ie(G,2);ae(de,21,()=>n(E),De,(re,ze,ct)=>{var $e=ce(),pt=J($e);ae(pt,17,()=>n(ze),De,(Oe,vn,Bt)=>{{let jt=a(()=>ct+1===n(E).length&&Bt+1===n(ze).length);so(Oe,{get day(){return n(vn)},allDay:!0,get noIeb(){return n(jt)}})}}),T(re,$e)});var Re=ie(de,2),ye=fe(Re);ae(ye,19,()=>n(_),re=>re.id,(re,ze,ct)=>{nt(gi(re,{get chunk(){return n(ze)}}),($e,pt)=>pe[pt]=$e,$e=>pe?.[$e],()=>[n(ct)])});var Ie=ie(ye,2);ae(Ie,17,()=>n(p),re=>re.id,(re,ze)=>{gi(re,{get chunk(){return n(ze)}})});var Ae=ie(Ie,2);ae(Ae,17,()=>n(m),De,(re,ze)=>{gi(re,{get chunk(){return n(ze)}})}),oe(()=>{N(U,1,n(v).allDay),N(G,1,n(v).sidebar),N(de,1,n(v).grid),N(Re,1,n(v).events)}),T(F,U)};ve(P,F=>{n(u)&&F(x)})}var B=ie(A,2),L=fe(B);ae(L,21,()=>n(w),De,(F,U,G)=>{var de=$u();let Re;var ye=fe(de);Me(ye,()=>Xe(n(U)[1])),oe(()=>{N(de,1,St([n(v).slot,!G&&n(v).hidden])),Re=bt(de,"",Re,{"--ec-slot-label-periodicity":n(U)[2]}),Pe(ye,"datetime",n(U)[0])}),T(F,de)});var j=ie(L,2);ae(j,21,()=>n(E),De,(F,U,G)=>{var de=ce(),Re=J(de);ae(Re,17,()=>n(U),De,(ye,Ie,Ae)=>{{let re=a(()=>G+1===n(E).length&&Ae+1===n(U).length);so(ye,{get day(){return n(Ie)},get noIeb(){return n(re)},noBeb:!0})}}),T(F,de)});var it=ie(j,2),He=fe(it);ae(He,17,()=>n(k),F=>F.id,(F,U)=>{vi(F,{get chunk(){return n(U)}})});var Lt=ie(He,2);ae(Lt,17,()=>n(y),F=>F.id,(F,U)=>{vi(F,{get chunk(){return n(U)}})});var V=ie(Lt,2);ae(V,17,()=>n(R),De,(F,U)=>{vi(F,{get chunk(){return n(U)}})});var le=ie(B,2);{var xe=F=>{var U=ce(),G=J(U);{var de=ye=>{var Ie=ce(),Ae=J(Ie);Ut(Ae,()=>t.nowIndicator),T(ye,Ie)},Re=ye=>{br(ye,{get days(){return n(E)[0]}})};ve(G,ye=>{t.nowIndicator?ye(de):ye(Re,!1)})}T(F,U)};ve(le,F=>{n(d)&&F(xe)})}nt(z,F=>i.mainEl=F,()=>i?.mainEl),Me(z,()=>qr(W)),oe(()=>{N(z,1,n(v).main),H=bt(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`}),N(A,1,n(v).header),N(K,1,n(v).sidebar),N(ue,1,n(v).grid),N(B,1,n(v).body),N(L,1,n(v).sidebar),N(j,1,n(v).grid),N(it,1,n(v).events)}),lr(K,"offsetWidth",F=>r().sidebarWidth=F),lr(A,"offsetHeight",F=>b(q,F)),T(e,z),be()}var tf=Q("<!> <!>",1);function nf(e,t){we(t,!0);let r=te("state"),i=new Zu(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),h=a(()=>i.grid),g=a(()=>i.sidebarWidth),c=et([]);Ye(()=>{n(f)&&(n(l),n(u),kn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let _ of n(h)){let p=_[0];if(Ke(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(h).length*_.length)*(p.gridColumn-1)*(dn()?-1:1);break}}}oo(e,{get viewState(){return i},header:m=>{var y=tf(),k=J(y);ae(k,17,()=>n(h),De,(D,w,C)=>{const M=a(()=>{const{dayStart:q,resource:I,disabled:ne,highlight:pe}=n(w)[0];return{date:q,resource:I,disabled:ne,highlight:pe}});{let q=a(()=>n(h)[0].length>1?n(d).colGroup:void 0),I=a(()=>1+C*n(w).length),ne=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(I)},get disabled(){return n(ne)},get highlight(){return n(pe)},children:(W,z)=>{var H=ce(),A=J(H);{var K=X=>{pr(X,{get date(){return n(M).date}})},ue=X=>{hi(X,{get resource(){return n(M).resource},setLabel:ke=>c[C]=ke+", "})};ve(A,X=>{n(f)?X(K):X(ue,!1)})}T(W,H)},$$slots:{default:!0}})}});var R=ie(k,2);{var E=D=>{var w=ce(),C=J(w);ae(C,17,()=>n(h),De,(M,q,I)=>{var ne=ce(),pe=J(ne);ae(pe,17,()=>n(q),De,(W,z,H)=>{const A=a(()=>{const{dayStart:K,resource:ue,disabled:X,highlight:ke}=n(z);return{date:K,resource:ue,disabled:X,highlight:ke}});{let K=a(()=>1+H+I*n(q).length);Xn(W,{get date(){return n(A).date},get colIndex(){return n(K)},get disabled(){return n(A).disabled},get highlight(){return n(A).highlight},children:(ue,X)=>{var ke=ce(),se=J(ke);{var P=B=>{hi(B,{get resource(){return n(A).resource},get date(){return n(A).date}})},x=B=>{pr(B,{get date(){return n(A).date},get alPrefix(){return c[I]}})};ve(se,B=>{n(f)?B(P):B(x,!1)})}T(ue,ke)},$$slots:{default:!0}})}}),T(M,ne)}),T(D,w)};ve(R,D=>{n(h)[0].length>1&&D(E)})}T(m,y)},nowIndicator:m=>{var y=ce(),k=J(y);{var R=D=>{{let w=a(()=>n(h).flat());br(D,{get days(){return n(w)},get span(){return n(h)[0].length}})}},E=D=>{var w=ce(),C=J(w);{var M=I=>{var ne=ce(),pe=J(ne);ae(pe,17,()=>n(h),De,(W,z)=>{br(W,{get days(){return n(z)}})}),T(I,ne)},q=I=>{{let ne=a(()=>n(h).flat());br(I,{get days(){return n(ne)},get span(){return n(h).length}})}};ve(C,I=>{n(h)[0].length>1?I(M):I(q,!1)})}T(D,w)};ve(k,D=>{n(f)?D(R):D(E,!1)})}T(m,y)},$$slots:{header:!0,nowIndicator:!0}}),be()}const rf={createOptions(e){to(e),fi(e),no(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:ao,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:rt("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:qn,component:ao,duration:{weeks:1},theme:rt("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){di(e)}};function ao(e){return ui(e),nf}function mi(e,t,r){let i=[],s,o,l,u,f,d=0;for(let{gridColumn:h,gridRow:g,resource:c,dayStart:v,dayEnd:_,start:p,end:m,disabled:y}of t)y||(r?Tn(e,v,_,c)&&(i.length||(s=v,l=h,u=g),i.push(v),o=m):Tn(e,p,m,c)&&(i.length||(s=p,l=h,u=g,f=ft(e.start-p,0)/1e3),i.push(v),o=m,d+=(Rt(m,e.end)-ft(p,e.start))/1e3));if(i.length){let h=Gn(e,s,o);return ge(h,{gridColumn:l,gridRow:u,dates:i,left:f,width:d}),[h]}return[]}function sf(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 of(e,t,r){let i=0,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 af(e,t){return e[t.getTime()]??{min:Ne(0),max:Ne("24:00:00")}}function lf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return ee(()=>{let f=1;for(let d of l){let h=[],g=1;for(let c of r){let v=o[c.getTime()];h.push({gridColumn:g,gridRow:f,resource:d,start:Se(Y(c),v.min),end:Se(Y(c),v.max),dayStart:c,dayEnd:kt(Y(c)),disabled:Sn(c,s),highlight:i.some(_=>Ke(_,c))}),++g}u.push(h),++f}}),u}}function uf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return ee(()=>{for(let u of r)for(let f of i)mt(u.display)?(!s||u.allDay)&&(l=l.concat(mi(u,f,s))):o=o.concat(mi(u,f,s));sf(o)}),{chunks:o,bgChunks:l}}}function ff(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&ee(()=>{for(let l of i)s=s.concat(mi(o,l))});return s}}function df(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return ee(()=>{for(let u of r)l[u.getTime()]=Xs(s,o,i,[u],t)}),l}}function cf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return ee(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?qs(f,i,l,s[d],o):[]}}),u}}function hf(e){return()=>{let{options:{resources:t}}=e,r;return ee(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function vf(e){return()=>{let{options:{slotDuration:t}}=e,r;return ee(()=>{r=!_e(t)}),r}}class gf extends io(ci()){#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(df(t)),this.#t=a(cf(t,this)),this.#n=a(lf(t,this)),this.#r=a(vf(t));let r=a(uf(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(ff(t,this)),this.#a=a(hf(t))}}function mf(e,t){we(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>te("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),h=a(()=>t.day.disabled),g=a(()=>t.day.highlight),c=Z(void 0);function v(_,p){if(n(o))return n(u);{let m=Qt(n(c)),y=m.width/n(c).offsetWidth;return Se(Y(n(f)),n(l).duration,Xr((dn()?m.right-_:_-m.left)/(n(i)*n(l).ratio*y)))}}mr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(h)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(c)},set el(_){b(c,_,!0)}}),be()}function pi(e,t){we(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>te("view-state")),l=a(()=>n(o).monthView),u=Z(void 0),f=Z(0),d=a(()=>t.chunk.event),h=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,of(t.chunk,cn(n(u)),n(l)),!0)}var c={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(h)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(_){b(u,_,!0)}})}return be(c)}var pf=Q("<span></span>"),_f=Q("<button><!></button>"),yf=Q("<!> <span><!></span>",1);function wf(e,t){we(t,!0);let r=a(()=>te("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 y of p){let k=Vt(y);k.hidden=!m,k.expanded&&d(k.children,m)}}var h=yf(),g=J(h);ae(g,17,()=>Array(n(l).level),De,(p,m)=>{var y=pf();oe(()=>N(y,1,n(o).expander)),T(p,y)});var c=ie(g,2),v=fe(c);{var _=p=>{var m=_f();m.__click=f;var y=fe(m);{var k=E=>{var D=ys("−");T(E,D)},R=E=>{var D=ys("+");T(E,D)};ve(y,E=>{n(u)?E(k):E(R,!1)})}oe(()=>N(m,1,n(o).button)),T(p,m)};ve(v,p=>{n(l).children?.length&&p(_)})}oe(()=>N(c,1,n(o).expander)),T(e,h),be()}Zt(["click"]);var bf=Q("<div></div>");function kf(e,t){we(t,!0);let r=a(()=>te("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(()=>te("view-state")),h=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),c=a(()=>{for(let w of n(h)[0])if(Ke(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(c).gridColumn),_=a(()=>n(c).start),p=a(()=>n(c).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:dn()?`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 R=ce(),E=J(R);{var D=w=>{var C=bf();let M;Me(C,()=>xs(k,n(y))),oe(()=>{N(C,1,n(f).nowIndicator),M=bt(C,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(h).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),T(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}T(e,R),be()}var Cf=Q("<div><time></time></div>"),Df=Q('<div role="rowheader"><!> <!></div>'),Ef=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Tf(e,t){we(t,!0);let r=te("state"),i=new gf(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),h=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),c=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),R=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),kn().then(I)});function I(){let V=0,le=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(E)){if(!le){let xe=n(R)[0];for(let F of xe)if(Ke(F.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/xe.length*(F.gridColumn-1)*(dn()?-1:1);break}}}else{for(let xe of n(l)){let F=af(n(k),xe);if(le||Ke(xe,n(o))){V+=ft(Rt(_e(n(d)),_e(F.max))-_e(F.min),0);break}else V+=_e(F.max)-_e(F.min)}n(s).scrollLeft=V/_e(n(h))*n(c)*(dn()?-1:1)}}let ne=[];function pe(){ti(ne,n(_))}Ye(pe);var W=Ef();let z;var H=fe(W),A=fe(H),K=ie(A,2),ue=fe(K);ae(ue,17,()=>n(R)[0],De,(V,le,xe)=>{let F=()=>n(le).dayStart,U=()=>n(le).disabled,G=()=>n(le).highlight;Xn(V,{get date(){return F()},colIndex:1+xe,get disabled(){return U()},get highlight(){return G()},children:(de,Re)=>{pr(de,{get date(){return F()}})},$$slots:{default:!0}})});var X=ie(ue,2);{var ke=V=>{var le=ce(),xe=J(le);ae(xe,17,()=>n(R)[0],De,(F,U)=>{let G=()=>n(U).dayStart,de=()=>n(U).disabled,Re=()=>n(U).highlight;Xn(F,{get date(){return G()},get className(){return n(v).slots},get disabled(){return de()},get highlight(){return Re()},ariaHidden:!0,children:(ye,Ie)=>{var Ae=ce(),re=J(Ae);ae(re,17,()=>n(y)[G().getTime()],De,(ze,ct)=>{var $e=Cf();let pt;var Oe=fe($e);Me(Oe,()=>Xe(n(ct)[1])),oe(()=>{N($e,1,n(v).slot),pt=bt($e,"",pt,{"--ec-slot-label-periodicity":n(ct)[2]}),Pe(Oe,"datetime",n(ct)[0])}),T(ze,$e)}),T(ye,Ae)},$$slots:{default:!0}})}),T(V,le)};ve(X,V=>{n(E)||V(ke)})}var se=ie(H,2),P=fe(se);ae(P,21,()=>n(M),De,(V,le)=>{var xe=Df(),F=fe(xe);{var U=de=>{wf(de,{get resource(){return n(le)}})};ve(F,de=>{n(D)&&de(U)})}var G=ie(F,2);hi(G,{get resource(){return n(le)}}),oe(()=>N(xe,1,n(v).rowHead)),T(V,xe)});var x=ie(P,2);ae(x,21,()=>n(R),De,(V,le,xe)=>{var F=ce(),U=J(F);ae(U,17,()=>n(le),De,(G,de,Re)=>{{let ye=a(()=>Re+1===n(le).length),Ie=a(()=>xe+1===n(R).length);mf(G,{get day(){return n(de)},get noIeb(){return n(ye)},get noBeb(){return n(Ie)}})}}),T(V,F)});var B=ie(x,2),L=fe(B);ae(L,19,()=>n(_),V=>V.id,(V,le,xe)=>{nt(pi(V,{get chunk(){return n(le)}}),(F,U)=>ne[U]=F,F=>ne?.[F],()=>[n(xe)])});var j=ie(L,2);ae(j,17,()=>n(p),V=>V.id,(V,le)=>{pi(V,{get chunk(){return n(le)}})});var it=ie(j,2);ae(it,17,()=>n(m),De,(V,le)=>{pi(V,{get chunk(){return n(le)}})});var He=ie(se,2);{var Lt=V=>{kf(V,{})};ve(He,V=>{n(f)&&!n(E)&&V(Lt)})}nt(W,V=>r.mainEl=V,()=>r?.mainEl),Me(W,()=>qr(pe)),oe(()=>{N(W,1,n(v).main),z=bt(W,"",z,{"--ec-grid-cols":n(R)[0].length,"--ec-grid-rows":`${n(R).length>1?`repeat(${n(R).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(c)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),N(H,1,n(v).header),N(A,1,n(v).sidebar),N(K,1,n(v).grid),N(se,1,n(v).body),N(P,1,n(v).sidebar),N(x,1,n(v).grid),N(B,1,n(v).events)}),lr(A,"offsetWidth",V=>i.sidebarWidth=V),lr(H,"offsetHeight",V=>b(q,V)),T(e,W),be()}const xf={createOptions(e){fi(e),no(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:lo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:rt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:qn,component:lo,displayEventEnd:!1,duration:{weeks:1},theme:rt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ni,component:uo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:rt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){di(e)}};function lo(e){return ui(e),uo(e)}function uo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),Tf}const Sf={createOptions(e){fi(e),to(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Yn,component:fo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:rt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:qn,component:fo,duration:{weeks:1},theme:rt("ec-time-grid ec-week-view")}})},createParsers(e){di(e)}};function fo(e){return ui(e),oo}function Rf(e,t,r){return xa(ql,{target:e,props:{plugins:t,options:r}})}function If(e){return Ra(e)}function Lf(e,t){return Rf(e,[cu,xu,Nu,rf,xf,Sf],t)}return Jn.create=Lf,Jn.destroy=If,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"}),Jn})({});
5
+ var EventCalendar=(function(Jn){"use strict";var Ci=Array.isArray,bo=Array.prototype.indexOf,Qn=Array.from,Di=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,ko=Object.getOwnPropertyDescriptors,Co=Object.prototype,Do=Array.prototype,Ei=Object.getPrototypeOf,Ti=Object.isExtensible;const Gt=()=>{};function Eo(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 To(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,_t=512,Ve=1024,st=2048,Ct=4096,ot=8192,At=16384,Tr=32768,Yt=65536,Ri=1<<17,Ii=1<<18,pn=1<<19,Li=1<<20,Ot=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,Ln=Symbol("$state"),xo=Symbol("legacy props"),So=Symbol(""),_n=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 Ro(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Po(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Mo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ao(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Oo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function No(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ho(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Wo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Uo=1,zo=2,Mi=4,Vo=8,Bo=16,Go=1,Yo=4,qo=8,Xo=16,Ko=1,Zo=2,Be=Symbol(),Jo="http://www.w3.org/1999/xhtml";function Qo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ai(e){return e===this.v}function jo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Oi(e){return!jo(e,this.v)}let Qf=!1,Ge=null;function yn(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($o(Ge)||void 0)}function $o(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=[],Eo(e)}function rn(e){if(nn.length===0&&!Mn){var t=nn;queueMicrotask(()=>{t===nn&&Hi()})}nn.push(e)}function ea(){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 wn(e,t)}function wn(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 ta(e){var t=Mn;Mn=!0;try{for(var r;;){if(ea(),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;na()}i.process(vt),Xt.clear()}}finally{Rr=!1,sr(e),tr=null}}function na(){try{Mo()}catch(e){wn(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 ra(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 ia=Yt|pn|$n;function sa(e,t,r){new oa(e,t,r)}class oa{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=ra(()=>(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()}},ia)}#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),yn(this.#i.ctx);try{return t()}catch(o){return Wi(o),null}finally{xt(r),nt(i),yn(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&&bn(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){Qo();return}s=!0,o&&Wo(),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){wn(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 wn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function aa(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=la();function f(){Promise.all(r.map(d=>ua(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(c){(l.f&At)===0&&wn(c,l)}o?.deactivate(),nr()}).catch(d=>{wn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),nr()}}):f()}function la(){var e=Te,t=he,r=Ge,i=Le;return function(o=!0){xt(e),nt(t),yn(r),o&&i?.activate()}}function nr(){xt(null),nt(null),yn(null)}function rr(e){var t=We|st,r=he!==null&&(he.f&We)!==0?he:null;return Te!==null&&(Te.f|=pn),{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 ua(e,t){let r=Te;r===null&&Ro();var i=r.b,s=void 0,o=Kt(Be),l=!he,u=new Map;return pa(()=>{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(_n),u.delete(d),u.set(d,f)}const g=(h,v=void 0)=>{if(d.activate(),v)v!==_n&&(o.f|=qt,bn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),bn(o,h);for(const[y,_]of u){if(u.delete(y),y===d)break;_.reject(_n)}}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(_n)}),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 fa(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(fa(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&_t)===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)&&Ho();let i=r?tt(t):t;return bn(e,i)}function bn(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&_t)!==0?Ve:Ct)),e.wv=hs(),Zi(e,st),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(Mt|en))===0&&(gt===null?ba([e]):gt.push(e)),!i.is_fork&&Lr.size>0&&!Xi&&da()}return t}function da(){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&_t&&(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!==Co&&t!==Do)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)&&No();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||mn(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||mn(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||mn(u,f)?.writable)&&(g=l(()=>Z(void 0)),b(g,tt(d)),r.set(f,g));else{h=g.v!==Be;var _=l(()=>tt(d));b(g,_)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var p=r.get("length"),k=Number(f);Number.isInteger(k)&&k>=p.v&&b(p,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(){Fo()}})}var yt,Ji,Qi,ji;function ca(){if(yt===void 0){yt=window,Ji=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qi=mn(t,"firstChild").get,ji=mn(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 ha(e){e.textContent=""}function $i(){return!1}function va(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&&Po(),Lo()),un&&Io()}function ga(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function wt(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|_t,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&pn)===0&&(o=o.first,(e&Pt)!==0&&(e&Yt)!==0&&o!==null&&(o.f|=Yt)),o!==null&&(o.parent=i,i!==null&&ga(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=wt(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 wt(Er|Li,e,!1)}function on(e){return es(),wt(jn|Li,e,!0)}function ma(e){Dt.ensure();const t=wt(en|pn,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 wt(Er,e,!1)}function pa(e){return wt(Sr|pn,e,!0)}function ns(e,t=0){return wt(jn|t,e,!0)}function se(e,t=[],r=[],i=[]){aa(i,t,r,s=>{wt(jn,()=>e(...s.map(n)),!0)})}function Nn(e,t=0){var r=wt(Pt|t,e,!0);return r}function _a(e,t=0){var r=wt(Si|t,e,!0);return r}function at(e){return wt(Mt|pn,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(_n)});var i=r.next;(r.f&en)!==0?r.parent=null:je(r,t),r=i}}function ya(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&&(wa(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 wa(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 ba(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&_t)!==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,yn(e.ctx),Tt=!1,Wt=++Fn,e.ac!==null&&(Pr(()=>{e.ac.abort(_n)}),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&_t)!==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,yn(l),Tt=u,Wt=f}}function ka(e,t){let r=t.reactions;if(r!==null){var i=bo.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&_t)!==0&&(t.f^=_t,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++)ka(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?ya(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 kn(){await Promise.resolve(),ta()}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&_t)===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^=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&We)!==0&&(t.f&_t)===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 Ca=-7169;function qe(e,t){e.f=e.f&Ca|t}const Da=["touchstart","touchmove"];function Ea(e){return Da.includes(e)}const _s=new Set,Nr=new Set;function Ta(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=Ta(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 _=o["__"+i];_!=null&&(!o.disabled||e.target===o)&&_.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 xa(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&Ko)!==0,i=(t&Zo)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=xa(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 Sa(e,t){return Ra(e,t)}const Cn=new Map;function Ra(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){ca();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=Ea(v);t.addEventListener(v,Un,{passive:y});var _=Cn.get(v);_===void 0?(document.addEventListener(v,Un,{passive:y}),Cn.set(v,1)):Cn.set(v,_+1)}}};f(Qn(_s)),Nr.add(f);var d=void 0,c=ma(()=>{var g=r??t.appendChild(Ft());return sa(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 Ia(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 La(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;ha(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 p=r();return Ci(p)?p:p==null?[]:Qn(p)}),h,v=!0;function y(){m.fallback=c,Pa(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 _=Nn(()=>{h=n(g);for(var p=h.length,k=new Set,S=Le,E=$i(),D=0;D<p;D+=1){var w=h[D],C=i(w,D),M=v?null:u.get(C);M?(M.v&&bn(M.v,w),M.i&&bn(M.i,D),E&&S.skipped_effects.delete(M.e)):(M=Ma(u,v?l:ks??=Ft(),w,C,D,s,t,r),v||(M.e.f|=Ot),u.set(C,M)),k.add(C)}if(p===0&&o&&!c&&(v?c=at(()=>o(l)):(c=at(()=>o(ks??=Ft())),c.f|=Ot)),!v)if(E){for(const[X,L]of u)k.has(X)||S.skipped_effects.add(L.e);S.oncommit(y),S.ondiscard(()=>{})}else y();n(g)}),m={effect:_,items:u,outrogroups:null,fallback:c};v=!1}function Pa(e,t,r,i,s){var o=(i&Vo)!==0,l=t.length,u=e.items,f=e.effect.first,d,c=null,g,h=[],v=[],y,_,m,p;if(o)for(p=0;p<l;p+=1)y=t[p],_=s(y,p),m=u.get(_).e,(m.f&Ot)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(p=0;p<l;p+=1){if(y=t[p],_=s(y,p),m=u.get(_).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,p-=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 X=(i&Mi)!==0&&l===0?r:null;if(o){for(p=0;p<M;p+=1)C[p].nodes?.a?.measure();for(p=0;p<M;p+=1)C[p].nodes?.a?.fix()}La(e,C,X)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Ma(e,t,r,i,s,o,l,u){var f=(l&Uo)!==0?(l&Bo)===0?Ki(r,!1,!1):Kt(r):null,d=(l&zo)!==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;_a(()=>{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 Aa(){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"?Aa(e):e??""}function Oa(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 Na(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 _=e.length;for(var g=0;g<_;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===_-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=Oa(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 bt(e,t,r,i){var s=e.__style;if(s!==t){var o=Na(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 Fa=Symbol("is custom element"),Ha=Symbol("is html");function Pe(e,t,r,i){var s=Wa(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[So]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ua(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Wa(e){return e.__attributes??={[Fa]:e.nodeName.includes("-"),[Ha]:e.namespaceURI===Jo}}var Es=new Map;function Ua(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=ko(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 za=new Br({box:"border-box"});function lr(e,t,r){var i=za.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 Va(e){let t;return xs(e,r=>t=r)(),t}let ur=!1,Gr=Symbol();function Ba(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?Va(e):n(i.source)}function Ga(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();Di(e,Gr,{enumerable:!1,value:!0})})}return[e,t]}function Ya(e){var t=ur;try{return ur=!1,[e(),ur]}finally{ur=t}}function Ee(e,t,r,i){var s=(r&qo)!==0,o=(r&Xo)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?$(i):i),l),d;if(s){var c=Ln in e||xo in e;d=mn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=Ya(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Oo(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&Yo)===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 _=!1,m=((r&Go)!==0?rr:Gi)(()=>(_=!1,v()));s&&n(m);var p=Te;return(function(k,S){if(arguments.length>0){const E=S?n(m):s?tt(k):k;return b(m,E),_=!0,l!==void 0&&(l=E),k}return un&&_||(p.f&At)!==0?m.v:n(m)})}function qa(){return he===null&&Ao(),(he.ac??=new AbortController).signal}function Vn(e){Ge===null&&Pi(),Ye(()=>{const t=$(e);if(typeof t=="function")return t})}const Xa="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xa);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 Ka(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 fn(e){return Object.keys(e)}function Rs(e){return Object.entries(e)}function Xr(e){return Math.floor(e)}function Za(e){return Math.ceil(e)}function Rt(...e){return Math.min(...e)}function ft(...e){return Math.max(...e)}function Ja(){return Symbol("ec")}function Kr(e){return Array.isArray(e)}function Ce(e){return typeof e=="function"}function Qa(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 ja(e){return e()}function $a(e){e.forEach(ja)}function el(){}const fr=e=>e;function Jr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function dn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const dr=86400;function It(e=void 0){return e!==void 0?Zr(e)?As(e):rl(e):As(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 q(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 kt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Dn(e,t=1){return kt(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 tl(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){return Se(e,t),e}function Ms(e,t,r){if(cr(e,t),r.length&&r.length<7)for(;r.includes(e.getUTCDay());)Dn(e);return e}function nl(e,t){e=q(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 As(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function rl(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=Ja();function Os(e,t){e[jr]=t}function il(e){return!!e?.[jr]}function Vt(e){return e[jr]}function Ns(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 Fs(e,t){for(;t--;)e=e.parentElement;return e}function cn(e){return Qt(e).height}function En(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(il(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 sl(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 ol=1;function hr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${ol++}}`,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=q(r.end);zt(r.end),(!Ke(r.end,i)||Ke(r.end,r.start))&&kt(r.end)}return r})}function $r(e,t){let r=e[t+"s"]??e[t]??[];return Kr(r)?r:[r]}function al(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 ll(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Qr(q(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?[]:[Hs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Hs(l,e,i)],Ns("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Hs(e,t,r){return Ns("time",r.eventTime,e,[["datetime",dt(t.start)]])}function ul(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 Ws(e,He)}function ei(e){return Ws(e,q)}function Ws(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 fl(e)||dl(e)||cl(e)}function mt(e){return e==="background"}function fl(e){return e==="preview"}function dl(e){return e==="ghost"}function cl(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 Us(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 zs(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 Vs=new WeakMap;let hl=1;function ni(e){let{event:t,gridColumn:r,gridRow:i}=e,s=Vs.get(t);s||(s=hl++,Vs.set(t,s)),e.id=`${s}-${r}-${i}`}function hn(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 Bs(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+=vl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(He(o),He(l))}}}function vl(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 gl(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 ml(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 Gs(e){let t=[];return Ys(e,0,t),t}function Ys(e,t,r){let i=[];for(let s of e){let o=pl(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Os(o,l),s.children&&(l.children=Ys(s.children,t+1,r))}return i}function pl(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function _l(e,t){return qs(e,t)?.eventBackgroundColor}function yl(e,t){return qs(e,t)?.eventTextColor}function qs(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function Xs(e,t,r,i,s){let o=[];e=q(e);let l=q(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 Ks(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=>!mt(c.display);e:for(let c of i){let g=Se(q(c),o),h=Se(q(c),l),v=Se(q(c),u),y=Se(q(c),f);for(let _ of s)if(!_.allDay&&d(_)&&_.start<y&&_.end>v){if(_.start<g){let m=ft((_.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(_.end>h){let m=Rt((_.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 wl(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 bl(e){let t={date:r=>zt(It(r)),duration:Fe,events:hr,eventSources:al,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>zt(It(i))),resources:Gs,validRange:ml};for(let r of e)r.createParsers?.(t);return t}const Zs=["buttonText","customButtons","theme"];function kl(e,t,r){let i=wl(t),s=bl(t);i=si(i,s),r=si(r,s);let o=oi(i,"views")??{},l=oi(r,"views")??{},u=new ii;Qs(u,i);let f={},d={};function c(){r.view&&u.set("view",r.view);let g=new Set([...fn(o),...fn(l)]);for(let h of g){let v=l[h]??{},y=Js(i,o[h]??o[v.type]??{}),_=Js(y,r,v),m=oi(_,"component");delete _.view;for(let p of fn(_))u.has(p)?(f[p]||(f[p]=[]),f[p].push(Zs.includes(p)?k=>_[p]=Ce(k)?k(y[p]):k:k=>_[p]=k)):delete _[p];on(()=>{let p=u.get("view");$(()=>{p===h&&(e.setViewComponent(m),d=_,Qs(u,_))})})}}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 fn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of fn(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 Js(...e){let t={};for(let r of e){let i={};for(let s of Zs)Ce(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Qs(e,t){for(let[r,i]of Rs(t))e.set(r,i)}function Cl(e,t){let r=[];for(let i of fn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Dl(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 _=y.events({start:He(r.start),end:He(r.end),startStr:h,endStr:v},g,c);_!==void 0&&Promise.resolve(_).then(g,c)}else{let _=Ce(y.extraParams)?y.extraParams():ge({},y.extraParams);_.start=h,_.end=v,_=new URLSearchParams(_);let m=y.url,p={},k;["GET","HEAD"].includes(y.method)?m+=(m.includes("?")?"&":"?")+_:(p["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",k=String(_)),fetch(m,{method:y.method,headers:p,body:k,signal:qa(),credentials:"same-origin"}).then(S=>S.json()).then(g).catch(c)}++t}ge(i,r)}})}}function El(e){return()=>{let t=setInterval(()=>{let r=It(),i=zt(q(r));e.now=r,Ke(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function Tl(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 xl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;$(()=>{Ce(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function Sl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;$(()=>{Ce(r)&&kn().then(()=>r({view:Ze(e.view)}))})}}function Rl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return $(()=>{s=q(t),r.months?s.setUTCDate(1):r.inWeeks&&Is(s,i),o=Se(q(s),r)}),{start:s,end:o}}}function Il(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return $(()=>{i=q(t.start),s=q(t.end)}),r?r(i,s):{start:i,end:s}}}function Ll(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 Pl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return $(()=>{let o=q(r.start),l=q(r.end);for(;o<l;)i.includes(o.getUTCDay())||s.push(q(o)),kt(o);if(!s.length&&i.length&&i.length<7)for(;i.includes(t.date.getUTCDay());)e.setOption("date",kt(q(t.date)))}),s}}function Ml(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return $(()=>{i=r.formatRange(t.start,Dn(q(t.end)))}),i}}function Al(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return $(()=>{o=sl(s,i,r,t)}),o}}class Ol{#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}=kl(this,t,r);this.options=i,this.#k=s,this.#e=Z(tt([])),this.#t=a(Rl(this)),this.#n=a(Il(this)),this.#r=Z({start:void 0,end:void 0}),this.#s=Z([]),this.#i=a(Ll(this)),this.#o=Z(),this.#a=Z(tt(It())),this.#l=Z(tt(zt(It()))),this.#u=a(Bs(this,"eventTimeFormat")),this.#f=a(hn(this,"dayHeaderFormat")),this.#d=a(hn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Bs(this,"titleFormat")),this.#v=a(Pl(this)),this.#h=a(Ml(this)),this.#y=a(Al(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(El(this)),Ye(Dl(this)),Ye(Tl(this)),Ye(xl(this)),Ye(Sl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Nl=Q("<h2></h2>"),Fl=Q("<button><i></i></button>"),Hl=Q("<button><i></i></button>"),Wl=Q("<button> </button>"),Ul=Q("<button></button>"),zl=Q("<button> </button>");function js(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),_=Z(!1),m=Z(!1),p=Z(!1),k=!1;on(()=>{n(l),n(v),t.buttons,$(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(_,!1),n(v).start&&b(_,S(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(D),!0)),t.buttons.includes("today")&&(b(p,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(p)&&(n(v).start||n(v).end)&&b(p,S(w),!0)),kn().then(()=>k=!1))})});function S(X){let L=n(d);X();let te=n(l).every(pe=>Sn(pe,n(v)));return r.setOption("date",L),te}function E(){r.setOption("date",Ms(q(n(d)),n(c),n(g)))}function D(){r.setOption("date",Ps(q(n(d)),n(c)))}function w(){r.setOption("date",q(n(s)))}var C=de(),M=J(C);oe(M,17,()=>t.buttons,De,(X,L)=>{var te=de(),pe=J(te);{var W=H=>{var F=Nl();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=Fl();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(_),O(ce,1,`${n(h).icon??""} ec-${n(L)??""}`)}),x(ye,ie)},K=ye=>{var ie=de(),ce=J(ie);{var T=R=>{var G=Hl();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=Wl();ae.__click=w;var xe=ue(ae);se(()=>{O(ae,1,`${n(h).button??""} ec-${n(L)??""}`),ae.disabled=n(p),bs(xe,n(u)[n(L)])}),x(V,ae)},Lt=V=>{var ae=de(),xe=J(ae);{var N=Y=>{var fe=Ul();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=zl();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(K,!1)},!0)}x(H,F)};ve(pe,H=>{n(L)==="title"?H(W):H(z,!1)})}x(X,te)}),x(e,C),ke()}Zt(["click"]);var Vl=Q("<div><!></div>"),Bl=Q("<div></div>"),Gl=Q("<nav></nav>");function Yl(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=Gl();oe(l,21,()=>fn(n(o)),De,(u,f)=>{var d=Bl();oe(d,21,()=>n(o)[n(f)],De,(c,g)=>{var h=de(),v=J(h);{var y=m=>{var p=Vl(),k=ue(p);js(k,{get buttons(){return n(g)}}),se(()=>O(p,1,n(s).buttonGroup)),x(m,p)},_=m=>{js(m,{get buttons(){return n(g)}})};ve(v,m=>{n(g).length>1?m(y):m(_,!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 ql=Q("<div><!> <!> <!></div>");function Xl(e,t){be(t,!0);let r=Ee(t,"plugins",19,()=>[]),i=Ee(t,"options",19,()=>({})),s=new Ol(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),_=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),p=a(()=>s.options.theme),k={...i()};on(()=>{for(let[T,P]of Cl(i(),k))$(()=>{S(T,P)});ge(k,i())});function S(T,P){return Qa(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 X(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(q(n(h)),n(v))),this}function H(){return s.setOption("date",Ms(q(n(h)),n(v),n(_))),this}var F={setOption:S,getOption:E,refetchEvents:D,getEvents:w,getEventById:C,addEvent:M,updateEvent:X,removeEventById:L,getView:te,unselect:pe,dateFromPoint:W,next:z,prev:H},B=ql();let le;var K=ue(B);Yl(K,{});var ye=re(K,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(p).calendar,n(p).view,n(d)&&n(p)[n(d)],n(m)&&n(p).customScrollbars])),Pe(B,"role",T),le=bt(B,"",le,{height:n(y)})},[()=>n(l).includes("list")?"list":"table"]),x(e,B),ke(F)}function Kl(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 Zl(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:kt(q(c)),disabled:Sn(c,i),highlight:r.some(g=>Ke(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Jl(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return $(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(xn(l,u))):s=s.concat(xn(l,u));Us(s)}),{chunks:s,bgChunks:o}}}function Ql(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 jl=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(Kl(t)),this.#t=a(Zl(t,this)),this.#n=Z();let r=a(Jl(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(Ql(t,this)),this.hiddenChunks=new ii,this.#o=a(hn(t,"dayCellFormat")),this.#a=a(hn(t,"dayPopoverFormat")),this.#l=Z(null)}};var $l=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),_=a(()=>n(h).options.theme),m=a(()=>ee("view-state")),p=a(()=>n(m).snap),k=a(()=>Ke(t.date,n(v))),S=a(()=>l()([n(_).day,n(_).weekdays?.[t.date.getUTCDay()],n(k)&&n(_).today,f()&&n(_).highlight,u()&&n(_).disabled,c()&&n(_).noIeb,g()&&n(_).noBeb]));Vn(()=>{Os(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(p)):void 0);var D=$l();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 eu=Q("<div></div>"),tu=Q("<article><!></article>");function $s(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),_=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),p=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??_l(n(E),n(k))??n(d)??n(c)),C=a(()=>n(E).textColor??yl(n(E),n(k))??n(p)),M=a(()=>Rs(s()({"background-color":n(w),color:n(C)})).map(T=>`${T[0]}:${T[1]}`).concat(n(E).styles).join(";")),X=a(()=>i()([mt(n(D))?n(S).bgEvent:n(S).event,...ul(n(y),n(E),n(u))])),L=a(()=>ll(t.chunk,n(f),n(g),n(S),n(l),n(u))),te=a(()=>To(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(()=>!mt(n(D))&&z(n(h),n(D))||void 0),F=a(()=>n(H)&&Yr(n(H))),B=a(()=>z(n(_),n(D))),le=a(()=>z(n(m),n(D)));var K=tu();K.__click=function(...T){n(H)?.apply(this,T)},K.__keydown=function(...T){n(F)?.apply(this,T)},K.__pointerdown=function(...T){t.onpointerdown?.apply(this,T)};{const T=P=>{var R=eu();Me(R,()=>Xe(n(W))),se(()=>O(R,1,St(n(S).eventBody))),x(P,R)};var ye=ue(K);{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(K,P=>r(P),()=>r())}se(()=>{O(K,1,St(n(X))),bt(K,n(M)),Pe(K,"role",n(H)?"button":void 0),Pe(K,"tabindex",n(H)?0:void 0)}),ut("mouseenter",K,function(...T){n(B)?.apply(this,T)}),ut("mouseleave",K,function(...T){n(le)?.apply(this,T)}),x(e,K),ke()}Zt(["click","keydown","pointerdown"]);var nu=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=nu(),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 ru=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=ru();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)?_=>n(o).drag(y,_,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(c))&&!vr(n(c))?h(n(d)):void 0);$s(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(_){r(_)},body:(_,m=Gt)=>{var p=de(),k=J(p);{var S=D=>{var w=de(),C=J(w);Ur(C,()=>n(l),(M,X)=>{X(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 iu=Q("<time></time>"),su=Q("<span></span>"),ou=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),au=Q("<div><!> <!></div> <div><!></div>",1);function lu(e,t){be(t,!0);const r=()=>Ba(n(d),"$firstDay",i),[i,s]=Ga();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),_=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),p=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=nl(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 X(){l.popupDay=t.day}mr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(p)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(L,te)=>{var pe=au(),W=J(pe),z=ue(W);{var H=ie=>{var ce=iu();Me(ce,()=>Xe(n(_).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=su();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),K=ue(le);{var ye=ie=>{var ce=ou(),T=a(()=>Jr(X));ce.__click=function(...G){n(T)?.apply(this,G)};var P=a(()=>Yr(X));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(K,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),_=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ye(()=>{r()||b(g,cn(n(_).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,!mt(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 p(){b(g,zs(t.chunk,cn(n(c)),cn(n(_).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let D=cn(n(_))-S(n(_));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,cn(D.lastElementChild)),D=D.nextElementSibling,!!D);++C);return w}var E={reposition:p,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 uu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function fu(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),_=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),p=a(()=>n(g).dayEnd),k=a(()=>{let z=[];for(let H of n(f))H.gridRow===n(_)&&H.gridColumn<=n(y)&&H.gridColumn+H.dates.length>n(y)&&z.push(ge({},H,Gn(H.event,n(m),n(p))));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(_)-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 K;H.height>=B.height?(K=B.top-F.top,b(v,n(v)+`block-size:${B.height}px;`)):(K=(F.height-H.height)/2,F.top+K<B.top?K=B.top-F.top:F.top+K+H.height>B.bottom&&(K=B.bottom-F.top-H.height)),b(v,n(v)+`inset-block-start:${K}px;`)}function E(){r.popupDay=null}function D(){E(),n(s).action?.noClick()}var w=uu();let C;var M=ue(w),X=ue(M);Me(X,()=>Xe(n(c).format(n(m))));var L=re(X,2);va(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,()=>Ka("pointerdown")),se(z=>{O(w,1,n(l).popup),C=bt(w,n(v),C,{"grid-area":`${n(_)+1} / ${n(y)}`}),O(M,1,n(l).dayHead),Pe(X,"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 du=Q('<div role="columnheader"><span></span></div>'),cu=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 jl(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 _(){ti(y,n(d)),n(h).clear(),kn().then(m)}function m(){n(h).size,y.forEach(W=>W.hide())}Ye(_),Ye(m);var p=cu();let k;var S=ue(p),E=ue(S);oe(E,21,()=>n(f)[0],De,(W,z,H)=>{let F=()=>n(z).dayStart;var B=du();Pe(B,"aria-colindex",1+H);var le=ue(B);Me(le,()=>Xe(n(s).format(F()))),se((K,ye)=>{O(B,1,K),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,K,ye)=>{{let ie=a(()=>ye+1===n(z).length),ce=a(()=>H+1===n(f).length);lu(le,{get day(){return n(K)},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 X=re(M,2);oe(X,17,()=>n(c),W=>W.id,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var L=re(X,2);oe(L,17,()=>n(g),De,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var te=re(D,2);{var pe=W=>{fu(W,{})};ve(te,W=>{n(v)&&W(pe)})}rt(p,W=>r.mainEl=W,()=>r?.mainEl),Me(p,()=>qr(_)),se(()=>{O(p,1,St([n(u).main,n(l)===!0&&n(u).uniform])),k=bt(p,"",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,p),ke()}const hu={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:vu,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 vu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Is(t,i),end:tl(r,i)}},ai}function eo(e,t,r){return e.startEditable??t??e.editable??r}function gu(e,t,r){return e.durationEditable??t??e.editable??r}let li=!1;function mu(e){li||(li=!0,window.requestAnimationFrame(()=>{e(),li=!1}))}function to(e,t,r){return ft(t,Rt(r,e))}function pu(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]]:!mt(l)&&eo(o,r,t)?[i.draggable]:[]]}}}function _u(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Bn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class yu{constructor(t){this.#e(t)}#e(t){on(pu(t)),Ye(_u(t))}}function wu(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),_=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),p=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),X=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,K=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,pt,Ne,vn,Bt,jt;function Mf(I){return eo(I,n(h),n(g))}function Af(I,A,me,j,Qe){T||(T=wi(A)?B:ce,gn()&&(R=I,yi(A,Qe),me&&(Ae=me),j&&(vn=j),Oe="dragging",Rn(A)))}function Of(I,A,me,j,Qe,Zn,ki,Zf){T||(T=wi(A)?me?K:le:ce,gn()&&(R=I,yi(A,Zf),Qe&&(Ae=Qe),Zn&&(vn=Zn),Oe=j==="x"?"resizingX":"resizingY",Cr()?(ne=q(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=q(R.start),Ie?(Qr(ne,R.end),ne<=R.start&&!ki&&kt(ne)):(Se(ne,Bt),ne>R.end&&(ne=R.end),Ae=R.end,ki||(Ae=cr(q(Ae),Bt))),ki&&!Ie&&(jt=Bt)),Rn(A)))}function Nf(I,A){T||(T=wi(I)?n(C)&&!n(o).includes("list")?ye:ie:ce,gn()&&(yi(I,A),Oe="selecting",ze=Ie?Fe({day:1}):Bt,R={allDay:Ie,start:Ae,end:Se(q(Ae),ze),resourceIds:V?[V.id]:[]},Rn(I)))}function Ff(){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)!==Fs(me,3),fe=Fs(me,1),go(),I.pointerType!=="mouse"&&(pt=setTimeout(()=>{T&&(P=!0,Rn(I))},($t()?n(te):n(p))??n(D)))}function Rn(I){if(P||I&&I.pointerType==="mouse"&&Vf()>=($t()?n(pe):n(v))){P=!0,Dr(I),r.iClass=Oe,G||($t()?zf():Uf(I,In()?n(k):n(y)));let A=Kn(Wf());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(q(R.start),we),j.start>ne&&(j.start=ne,we=Fe((ne-R.start)/1e3))):(j.end=Se(q(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(q(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()?yo(j,I):wo(j,R,I))===!1)){_o(R);break}_o(j)}while(!1)}}}if(n(c)){let A=24,me=24;mu(()=>{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 ho(){gn()&&(go(),Rn())}function Hf(I){gn()&&I.isPrimary&&(U=I.clientX,Y=I.clientY,Rn(I))}function vo(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=yo(G,I);n(M)(A)}}else{R.display=Je;let A=In()?n(S):n(_);Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))});let me=ei(R);if(po(R,G),mo(),A=In()?n(E):n(m),Ce(A)){let j=R,Qe=wo(R,me,I);A(ge(Qe,{revert(){po(j,me)}}))}}else if((Bf()||$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=vn=fe=Ne=Bt=void 0,r.iClass=void 0,pt&&(clearTimeout(pt),pt=void 0)}et=!1}function Wf(){return En(to(U,Ne.left,Ne.right),to(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 go(){let I=Qt(n(u)),A=Qt(fe),me=I.width/n(u).offsetWidth,j=I.height/n(u).offsetHeight,Qe=dn();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 Uf(I,A){Ce(A)&&A({event:Ue(R),jsEvent:I,view:Ze(n(l))}),Je=R.display,R.display="preview",G=ei(R),vn!==void 0&&(G._margin=vn),jt&&Se(G.end,jt),R.display="ghost",r.events=[...n(i)]}function zf(){G={id:"{select}",allDay:R.allDay,start:R.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(X),resourceIds:R.resourceIds,classNames:[],styles:[]}}function mo(){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 po(I,A){kr(I,A),r.events=[...n(i)]}function _o(I){G=kr(G,I),n(s).set("action",G)}function yo(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 wo(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 Vf(){return Math.sqrt(Math.pow(U-xe,2)+Math.pow(Y-N,2))}function In(){return T===le||Cr()}function Cr(){return T===K}function Bf(){return T===ie}function $t(){return T===ye}function gn(){return T&&T<ie}function wi(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Dr(I){ct&&(ct=!1,mo(),Ce(n(W))&&n(W)({jsEvent:I,view:Ze(n(l))}))}on(()=>{n(l),Dr()});function Gf(){et=!0}function Yf(I){if(gn()){let A=I.target,me=[],j=()=>$a(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",el,{passive:!1}));var qf={draggable:Mf,drag:Af,resize:Of,select:Nf,noAction:Ff,handleScroll:ho,unselect:Dr,noClick:Gf};ut("pointermove",yt,Hf),ut("pointerup",yt,vo),ut("pointercancel",yt,vo),ut("scroll",yt,ho);var Xf=a(()=>bi(gn));ut("selectstart",yt,function(...I){n(Xf)?.apply(this,I)});var Kf=a(()=>bi(()=>pt));return ut("contextmenu",yt,function(...I){n(Kf)?.apply(this,I)}),ut("touchstart",yt,Yf,void 0,!0),ke(qf)}function bu(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 _=En(o,l);if(_&&!n(i).has("action")){let{allDay:m,date:p,resource:k,disabled:S}=Vt(_)(o,l);if(!S){u||g(),u.allDay=m,u.start=p,u.end=Se(q(p),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(_){v(_)&&(o=_.clientX,l=_.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(_){return _.isPrimary&&_.pointerType==="mouse"}var y={handleScroll:d};return ut("pointermove",yt,c),ut("scroll",yt,d),ke(y)}var ku=Q("<div></div>"),Cu=Q("<div></div>"),Du=Q("<!> <!> <!>",1);function Eu(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(()=>!mt(n(v))&&!vr(n(v))&&gu(n(h),n(u),n(l)));function _(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Du(),p=J(m);{var k=w=>{var C=ku(),M=a(()=>_(!0));C.__pointerdown=function(...X){n(M)?.apply(this,X)},se(()=>O(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),x(w,C)};ve(p,w=>{n(y)&&n(f)&&w(k)})}var S=re(p,2);Ut(S,()=>t.children);var E=re(S,2);{var D=w=>{var C=Cu(),M=a(()=>_(!1));C.__pointerdown=function(...X){n(M)?.apply(this,X)},se(()=>O(C,1,n(d).resizer)),x(w,C)};ve(E,w=>{n(y)&&w(D)})}x(e,m),ke()}Zt(["pointerdown"]);var Tu=Q("<!> <!>",1);function xu(e,t){be(t,!0);let r=ee("state");new yu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Eu;var o=Tu(),l=J(o);rt(wu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=re(l,2);{var f=d=>{rt(bu(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};ve(u,d=>{n(s)&&d(f)})}x(e,o),ke()}const Su={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(xu)}};let Ru=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(hn(t,"listDayFormat")),this.#t=a(hn(t,"listDaySideFormat"))}};var Iu=Q("<div></div> <!>",1);function Lu(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=Iu(),v=J(h);let y;var _=re(v,2);Ut(_,d),se(()=>{O(v,1,n(s).eventTag),y=bt(v,"",y,{"background-color":c()})}),x(f,h)};let u=a(()=>n(i).action?.noAction);$s(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}ke()}var Pu=Q("<h4><time></time> <time></time></h4> <!>",1);function Mu(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(p=>Ke(p,t.date))),g=a(()=>Sn(t.date,n(l))),h=a(()=>dt(t.date,10)),v=a(()=>{let p=[];if(!n(g)){let k=t.date,S=kt(q(t.date));for(let E of n(i))if(!mt(E.display)&&Tn(E,k,S)){let D=Gn(E,k,S);p.push(D)}}return p});var y=de(),_=J(y);{var m=p=>{mr(p,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,S)=>{var E=Pu(),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),X=>X.event,(X,L)=>{Lu(X,{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&&p(m)})}x(e,y),ke()}var Au=Q("<div></div>"),Ou=Q("<section><!></section>");function Nu(e,t){be(t,!0);let r=ee("state"),i=new Ru(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 p=!0;if(n(l).length){let k=n(l)[0],S=kt(q(n(l).at(-1)));for(let E of n(s))if(!mt(E.display)&&E.start<S&&E.end>k){p=!1;break}}return p}),g=a(()=>Ce(n(f))?n(f)():n(f));function h(p){Ce(n(u))&&n(u)({jsEvent:p,view:Ze(n(o))})}var v=Ou(),y=ue(v);{var _=p=>{var k=Au();k.__click=h,Me(k,()=>Xe(n(g))),se(()=>O(k,1,n(d).noEvents)),x(p,k)},m=p=>{var k=de(),S=J(k);oe(S,17,()=>n(l),De,(E,D)=>{Mu(E,{get date(){return n(D)}})}),x(p,k)};ve(y,p=>{n(c)?p(_):p(m,!1)})}rt(v,p=>r.mainEl=p,()=>r?.mainEl),se(()=>O(v,1,n(d).main)),x(e,v),ke()}Zt(["click"]);const Fu={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:gl,component:wr,duration:{years:1},theme:it("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Nu}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 Hu(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 Wu(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(q(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 no(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 ro(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Uu(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(q(f),o.min),end:Se(q(f),o.max),dayStart:f,dayEnd:kt(q(f)),disabled:Sn(f,s),highlight:i.some(d=>Ke(d,f))}),++u}),[l]}}function zu(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)mt(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));Hu(s),Us(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Vu(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 Bu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return $(()=>{l=Ks(s,o,i,r,t)}),l}}function Gu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return $(()=>{i=r===void 0?_e(t)<3600?2:1:Za(_e(r)/_e(t))||1}),i}}function Yu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return $(()=>{l=Xs(zt(It()),r,s,o,i)}),l}}function qu(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(hn(e,"slotLabelFormat")),this.#t=a(Gu(e)),this.#n=Z(0),this.#r=a(qu(e))}}}function io(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(Bu(t)),this.#t=a(Yu(t,this));let r=a(zu(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(Vu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let Xu=class extends io(hi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Uu(t,this))}};function Ku(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=Gs([{}]))}),l}}function Zu(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,_=i?v:g;h.push({gridColumn:d,gridRow:1,resource:_,start:Se(q(y),l.min),end:Se(q(y),l.max),dayStart:y,dayEnd:kt(q(y)),disabled:Sn(y,o),highlight:s.some(m=>Ke(m,y))}),++d}f.push(h)}}),f}}function so(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(Ku(t))}}}let Ju=class extends so(io(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))}};var Qu=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=Qu();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 oo(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,_){if(r())return n(u);{let m=Qt(n(h)),p=m.height/n(h).offsetHeight;return Se(q(n(f)),n(l).duration,Xr((_-m.top)/(n(s)*n(l).ratio*p)))}}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,zs(t.chunk,cn(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 ju=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),_=a(()=>n(h).end),m=a(()=>{if(n(o)<n(y)||n(o)>n(_))return null;let w=_e(n(u));return(n(o)-n(y))/1e3/w*n(f)}),p=a(()=>({root:n(s),rootMargin:dn()?`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=ju();let M;Me(C,()=>Ss(k,n(p))),se(()=>{O(C,1,n(d).nowIndicator),M=bt(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 $u=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),ef=Q("<div><time></time></div>"),tf=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 ao(e,t){be(t,!0);let r=Ee(t,"viewState",7),i=ee("state");r()||r(new Xu(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),_=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),p=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),X=Z(0),L=a(()=>Wu(n(l)));Ye(()=>{n(o),n(c),kn().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=tf();let H;var F=ue(z),B=ue(F),le=re(B,2),K=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(K,N=>{t.header?N(ye):N(ie,!1)})}var ce=re(le,2);{var T=N=>{var U=$u(),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(),pt=J(et);oe(pt,17,()=>n(ze),De,(Ne,vn,Bt)=>{{let jt=a(()=>ct+1===n(E).length&&Bt+1===n(ze).length);oo(Ne,{get day(){return n(vn)},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,pt)=>pe[pt]=et,et=>pe?.[et],()=>[n(ct)])});var Ie=re(we,2);oe(Ie,17,()=>n(_),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=ef();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=bt(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);oo(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(p),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=bt(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(X)??""}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(X,N)),x(e,z),ke()}var nf=Q("<!> <!>",1);function rf(e,t){be(t,!0);let r=ee("state"),i=new Ju(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),kn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let y of n(c)){let _=y[0];if(Ke(_.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(c).length*y.length)*(_.gridColumn-1)*(dn()?-1:1);break}}}ao(e,{get viewState(){return i},header:m=>{var p=nf(),k=J(p);oe(k,17,()=>n(c),De,(D,w,C)=>{const M=a(()=>{const{dayStart:X,resource:L,disabled:te,highlight:pe}=n(w)[0];return{date:X,resource:L,disabled:te,highlight:pe}});{let X=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(X)},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=K=>{pr(K,{get date(){return n(M).date}})},le=K=>{vi(K,{get resource(){return n(M).resource},setLabel:ye=>h[C]=ye+", "})};ve(F,K=>{n(f)?K(B):K(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,X,L)=>{var te=de(),pe=J(te);oe(pe,17,()=>n(X),De,(W,z,H)=>{const F=a(()=>{const{dayStart:B,resource:le,disabled:K,highlight:ye}=n(z);return{date:B,resource:le,disabled:K,highlight:ye}});{let B=a(()=>1+H+L*n(X).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,K)=>{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,p)},nowIndicator:m=>{var p=de(),k=J(p);{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)},X=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(X,!1)})}x(D,w)};ve(k,D=>{n(f)?D(S):D(E,!1)})}x(m,p)},$$slots:{header:!0,nowIndicator:!0}}),ke()}const sf={createOptions(e){no(e),di(e),ro(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:lo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:it("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:qn,component:lo,duration:{weeks:1},theme:it("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function lo(e){return fi(e),rf}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:_,start:m,end:p,disabled:k}of t)k||(r?Tn(e,y,_,v)&&(s.length||(o=y,u=g,f=h),s.push(y),l=p):Tn(e,m,p,v)&&(s.length||(o=m,u=g,f=h,d=ft(e.start-m,0)/1e3),s.push(y),l=p,c+=(Rt(p,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 of(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 af(e,t,r){let i=0,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 lf(e,t){return e[t.getTime()]??{min:Fe(0),max:Fe("24:00:00")}}function uf(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(q(h),v.min),end:Se(q(h),v.max),dayStart:h,dayEnd:kt(q(h)),disabled:Sn(h,s),highlight:i.some(y=>Ke(y,h))}),++g}u.push(c),++f}}),u}}function ff(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)mt(u.display)?(!s||u.allDay)&&(l=l.concat(pi(u,f,s))):o=o.concat(pi(u,f,s));of(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&&$(()=>{for(let u of i)o=o.concat(pi(l,u,s,!1))});return o}}function cf(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()]=Ks(s,o,i,[u],t)}),l}}function hf(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?Xs(f,i,l,s[d],o):[]}}),u}}function vf(e){return()=>{let{options:{resources:t}}=e,r;return $(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function gf(e){return()=>{let{options:{slotDuration:t}}=e,r;return $(()=>{r=!_e(t)}),r}}class mf extends so(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(cf(t)),this.#t=a(hf(t,this)),this.#n=a(uf(t,this)),this.#r=a(gf(t));let r=a(ff(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(vf(t))}}function pf(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,_){if(n(o))return n(u);{let m=Qt(n(h)),p=m.width/n(h).offsetWidth;return Se(q(n(f)),n(l).duration,Xr((dn()?m.right-y:y-m.left)/(n(i)*n(l).ratio*p)))}}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(0),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 _=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${_}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let y=n(f);if(n(d)._margin){let[_,m]=n(d)._margin;t.chunk.gridRow===m&&(y=_)}return v["margin-block-start"]=`${y}px`,v});function g(){b(f,af(t.chunk,cn(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 _f=Q("<span></span>"),yf=Q("<button><!></button>"),wf=Q("<!> <span><!></span>",1);function bf(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(_,m){for(let p of _){let k=Vt(p);k.hidden=!m,k.expanded&&d(k.children,m)}}var c=wf(),g=J(c);oe(g,17,()=>Array(n(l).level),De,(_,m)=>{var p=_f();se(()=>O(p,1,n(o).expander)),x(_,p)});var h=re(g,2),v=ue(h);{var y=_=>{var m=yf();m.__click=f;var p=ue(m);{var k=E=>{var D=ws("−");x(E,D)},S=E=>{var D=ws("+");x(E,D)};ve(p,E=>{n(u)?E(k):E(S,!1)})}se(()=>O(m,1,n(o).button)),x(_,m)};ve(v,_=>{n(l).children?.length&&_(y)})}se(()=>O(h,1,n(o).expander)),x(e,c),ke()}Zt(["click"]);var kf=Q("<div></div>");function Cf(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),_=a(()=>n(h).end),m=a(()=>{if(n(s)<n(y)||n(s)>n(_))return null;let w=_e(n(l));return(n(s)-n(y))/1e3/w*n(u)}),p=a(()=>({root:n(i),rootMargin:dn()?`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=kf();let M;Me(C,()=>Ss(k,n(p))),se(()=>{O(C,1,n(f).nowIndicator),M=bt(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 Df=Q("<div><time></time></div>"),Ef=Q('<div role="rowheader"><!> <!></div>'),Tf=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function xf(e,t){be(t,!0);let r=ee("state"),i=new mf(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),_=a(()=>i.bgChunks),m=a(()=>i.iChunks),p=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),X=Z(0);Ye(()=>{n(l),n(d),kn().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)*(dn()?-1:1);break}}}else{for(let xe of n(l)){let N=lf(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)*(dn()?-1:1)}}let te=[];function pe(){ti(te,n(y))}Ye(pe);var W=Tf();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 K=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(p)[Y().getTime()],De,(ze,ct)=>{var et=Df();let pt;var Ne=ue(et);Me(Ne,()=>Xe(n(ct)[1])),se(()=>{O(et,1,n(v).slot),pt=bt(et,"",pt,{"--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(K,V=>{n(E)||V(ye)})}var ie=re(H,2),ce=ue(ie);oe(ce,21,()=>n(M),De,(V,ae)=>{var xe=Ef(),N=ue(xe);{var U=fe=>{bf(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);pf(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(_),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=>{Cf(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=bt(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(X)??""}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(X,V)),x(e,W),ke()}const Sf={createOptions(e){di(e),ro(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:uo,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:uo,displayEventEnd:!1,duration:{weeks:1},theme:it("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ri,component:fo,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 uo(e){return fi(e),fo(e)}function fo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),xf}const Rf={createOptions(e){di(e),no(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Yn,component:co,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:co,duration:{weeks:1},theme:it("ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function co(e){return fi(e),ao}function If(e,t,r){return Sa(Xl,{target:e,props:{plugins:t,options:r}})}function Lf(e){return Ia(e)}function Pf(e,t){return If(e,[hu,Su,Fu,sf,Sf,Rf],t)}return Jn.create=Pf,Jn.destroy=Lf,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"}),Jn})({});
6
6
  //# sourceMappingURL=event-calendar.min.js.map