@event-calendar/build 5.0.5 → 5.0.6
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.0.
|
|
2
|
+
* EventCalendar v5.0.6
|
|
3
3
|
* https://github.com/vkurko/calendar
|
|
4
4
|
*/
|
|
5
|
-
var EventCalendar=(function(Hr){"use strict";var vo=Array.isArray,dl=Array.prototype.indexOf,Wr=Array.from,go=Object.defineProperty,An=Object.getOwnPropertyDescriptor,_o=Object.getOwnPropertyDescriptors,hl=Object.prototype,vl=Array.prototype,vi=Object.getPrototypeOf,mo=Object.isExtensible;const _t=()=>{};function gl(e){return e()}function Ur(e){for(var t=0;t<e.length;t++)e[t]()}function yo(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function _l(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const at=2,gi=4,zr=8,bo=1<<24,fn=16,dn=32,On=64,Br=128,Vt=512,dt=1024,Rt=2048,en=4096,It=8192,hn=16384,_i=32768,kn=65536,wo=1<<17,po=1<<18,Jn=1<<19,$o=1<<20,vn=1<<25,Fn=32768,mi=1<<21,yi=1<<22,Cn=1<<23,Nn=Symbol("$state"),ml=Symbol("legacy props"),yl=Symbol(""),Qn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Do(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function bl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $l(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function El(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function kl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Tl(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Sl=1,Rl=2,Eo=4,Il=8,Ll=16,Ml=1,Pl=2,Al=4,Ol=8,Fl=16,Nl=1,Hl=2,ht=Symbol(),Wl="http://www.w3.org/1999/xhtml";function Ul(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ko(e){return e===this.v}function Co(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function To(e){return!Co(e,this.v)}let jn=!1,Cf=!1;function zl(){jn=!0}let Ue=null;function er(e){Ue=e}function Te(e){return xo().get(e)}function Bl(e,t){return xo().set(e,t),t}function ye(e,t=!1,n){Ue={p:Ue,i:!1,c:null,e:null,s:e,x:null,l:jn&&!t?{s:null,u:null,$:[]}:null}}function be(e){var t=Ue,n=t.e;if(n!==null){t.e=null;for(var r of n)Vo(r)}return e!==void 0&&(t.x=e),t.i=!0,Ue=t.p,e??{}}function vr(){return!jn||Ue!==null&&Ue.l===null}function xo(e){return Ue===null&&Do(),Ue.c??=new Map(Vl(Ue)||void 0)}function Vl(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Hn=[];function So(){var e=Hn;Hn=[],Ur(e)}function Wn(e){if(Hn.length===0&&!gr){var t=Hn;queueMicrotask(()=>{t===Hn&&So()})}Hn.push(e)}function Gl(){for(;Hn.length>0;)So()}function Ro(e){var t=Le;if(t===null)return pe.f|=Cn,e;if((t.f&_i)===0){if((t.f&Br)===0)throw e;t.b.error(e)}else tr(e,t)}function tr(e,t){for(;t!==null;){if((t.f&Br)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Vr=new Set;let ze=null,Nt=null,Ht=[],Gr=null,bi=!1,gr=!1;class tn{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#o=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){Ht=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#a(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects)):(ze=null,Lo(n.render_effects),Lo(n.effects),this.#s?.resolve()),Nt=null}#a(t,n){t.f^=dt;for(var r=t.first;r!==null;){var i=r.f,o=(i&(dn|On))!==0,l=o&&(i&dt)!==0,s=l||(i&It)!==0||this.skipped_effects.has(r);if((r.f&Br)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!s&&r.fn!==null){o?r.f^=dt:(i&gi)!==0?n.effects.push(r):$r(r)&&((r.f&fn)!==0&&this.#o.add(r),Dr(r));var u=r.first;if(u!==null){r=u;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)c===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),n=n.parent),r=c.next,c=c.parent}}#l(t){for(const n of t)(n.f&Rt)!==0?this.#o.add(n):(n.f&en)!==0&&this.#i.add(n),this.#u(n.deps),vt(n,dt)}#u(t){if(t!==null)for(const n of t)(n.f&at)===0||(n.f&Fn)===0||(n.f^=Fn,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Cn)===0&&(this.current.set(t,t.v),Nt?.set(t,t.v))}activate(){ze=this,this.apply()}deactivate(){ze===this&&(ze=null,Nt=null)}flush(){if(this.activate(),Ht.length>0){if(Io(),ze!==null&&ze!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#c(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#f()}#f(){if(Vr.size>1){this.previous.clear();var t=Nt,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const o of Vr){if(o===this){n=!1;continue}const l=[];for(const[u,c]of this.current){if(o.current.has(u))if(n&&c!==o.current.get(u))o.current.set(u,c);else continue;l.push(u)}if(l.length===0)continue;const s=[...o.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=Ht;Ht=[];const u=new Set,c=new Map;for(const f of l)Mo(f,s,u,c);if(Ht.length>0){ze=o,o.apply();for(const f of Ht)o.#a(f,r);o.deactivate()}Ht=i}}ze=null,Nt=t}this.committed=!0,Vr.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.#o)this.#i.delete(t),vt(t,Rt),Un(t);for(const t of this.#i)vt(t,en),Un(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=yo()).promise}static ensure(){if(ze===null){const t=ze=new tn;Vr.add(ze),gr||tn.enqueue(()=>{ze===t&&t.flush()})}return ze}static enqueue(t){Wn(t)}apply(){}}function Yl(e){var t=gr;gr=!0;try{for(var n;;){if(Gl(),Ht.length===0&&(ze?.flush(),Ht.length===0))return Gr=null,n;Io()}}finally{gr=t}}function Io(){var e=Gn;bi=!0;var t=null;try{var n=0;for(Kr(!0);Ht.length>0;){var r=tn.ensure();if(n++>1e3){var i,o;ql()}r.process(Ht),Tn.clear()}}finally{bi=!1,Kr(e),Gr=null}}function ql(){try{Dl()}catch(e){tr(e,Gr)}}let gn=null;function Lo(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(hn|It))===0&&$r(r)&&(gn=new Set,Dr(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?Xo(r):r.fn=null),gn?.size>0)){Tn.clear();for(const i of gn){if((i.f&(hn|It))!==0)continue;const o=[i];let l=i.parent;for(;l!==null;)gn.has(l)&&(gn.delete(l),o.push(l)),l=l.parent;for(let s=o.length-1;s>=0;s--){const u=o[s];(u.f&(hn|It))===0&&Dr(u)}}gn.clear()}}gn=null}}function Mo(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&at)!==0?Mo(i,t,n,r):(o&(yi|fn))!==0&&(o&Rt)===0&&Po(i,t,r)&&(vt(i,Rt),Un(i))}}function Po(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&at)!==0&&Po(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Un(e){for(var t=Gr=e;t.parent!==null;){t=t.parent;var n=t.f;if(bi&&t===Le&&(n&fn)!==0&&(n&po)===0)return;if((n&(On|dn))!==0){if((n&dt)===0)return;t.f^=dt}}Ht.push(t)}function Xl(e){let t=0,n=zn(0),r;return()=>{br()&&(a(n),Go(()=>(t===0&&(r=W(()=>e(()=>mr(n)))),t+=1,()=>{Wn(()=>{t-=1,t===0&&(r?.(),r=void 0,mr(n))})})))}}var Kl=kn|Jn|Br;function Zl(e,t,n){new Jl(e,t,n)}class Jl{parent;#e=!1;#t;#n=null;#r;#s;#o;#i=null;#a=null;#l=null;#u=null;#c=null;#f=0;#d=0;#v=!1;#h=null;#b=Xl(()=>(this.#h=zn(this.#f),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#s=r,this.parent=Le.b,this.#e=!!this.#r.pending,this.#o=wr(()=>{Le.b=this;{var i=this.#m();try{this.#i=Lt(()=>r(i))}catch(o){this.error(o)}this.#d>0?this.#_():this.#e=!1}return()=>{this.#c?.remove()}},Kl)}#w(){try{this.#i=Lt(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#p(){const t=this.#r.pending;t&&(this.#a=Lt(()=>t(this.#t)),tn.enqueue(()=>{var n=this.#m();this.#i=this.#g(()=>(tn.ensure(),Lt(()=>this.#s(n)))),this.#d>0?this.#_():(Vn(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#m(){var t=this.#t;return this.#e&&(this.#c=_n(),this.#t.before(this.#c),t=this.#c),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var n=Le,r=pe,i=Ue;rn(this.#o),Dt(this.#o),er(this.#o.ctx);try{return t()}catch(o){return Ro(o),null}finally{rn(n),Dt(r),er(i)}}#_(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#c),Jo(this.#i,this.#u)),this.#a===null&&(this.#a=Lt(()=>t(this.#t)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#d+=t,this.#d===0&&(this.#e=!1,this.#a&&Vn(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#y(t),this.#f+=t,this.#h&&nr(this.#h,this.#f)}get_effect_pending(){return this.#b(),a(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(mt(this.#i),this.#i=null),this.#a&&(mt(this.#a),this.#a=null),this.#l&&(mt(this.#l),this.#l=null);var i=!1,o=!1;const l=()=>{if(i){Ul();return}i=!0,o&&xl(),tn.ensure(),this.#f=0,this.#l!==null&&Vn(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#g(()=>(this.#v=!1,Lt(()=>this.#s(this.#t)))),this.#d>0?this.#_():this.#e=!1};var s=pe;try{Dt(null),o=!0,n?.(t,l),o=!1}catch(u){tr(u,this.#o&&this.#o.parent)}finally{Dt(s)}r&&Wn(()=>{this.#l=this.#g(()=>{tn.ensure(),this.#v=!0;try{return Lt(()=>{r(this.#t,()=>t,()=>l)})}catch(u){return tr(u,this.#o.parent),null}finally{this.#v=!1}})})}}function Ql(e,t,n,r){const i=vr()?_r:wi;if(n.length===0&&e.length===0){r(t.map(i));return}var o=ze,l=Le,s=jl();function u(){Promise.all(n.map(c=>es(c))).then(c=>{s();try{r([...t.map(i),...c])}catch(f){(l.f&hn)===0&&tr(f,l)}o?.deactivate(),Yr()}).catch(c=>{tr(c,l)})}e.length>0?Promise.all(e).then(()=>{s();try{return u()}finally{o?.deactivate(),Yr()}}):u()}function jl(){var e=Le,t=pe,n=Ue,r=ze;return function(o=!0){rn(e),Dt(t),er(n),o&&r?.activate()}}function Yr(){rn(null),Dt(null),er(null)}function _r(e){var t=at|Rt,n=pe!==null&&(pe.f&at)!==0?pe:null;return Le!==null&&(Le.f|=Jn),{ctx:Ue,deps:null,effects:null,equals:ko,f:t,fn:e,reactions:null,rv:0,v:ht,wv:0,parent:n??Le,ac:null}}function es(e,t){let n=Le;n===null&&bl();var r=n.b,i=void 0,o=zn(ht),l=!pe,s=new Map;return ss(()=>{var u=yo();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{c===ze&&c.committed&&c.deactivate(),Yr()})}catch(h){u.reject(h),Yr()}var c=ze;if(l){var f=!r.is_pending();r.update_pending_count(1),c.increment(f),s.get(c)?.reject(Qn),s.delete(c),s.set(c,u)}const v=(h,_=void 0)=>{if(c.activate(),_)_!==Qn&&(o.f|=Cn,nr(o,_));else{(o.f&Cn)!==0&&(o.f^=Cn),nr(o,h);for(const[m,w]of s){if(s.delete(m),m===c)break;w.reject(Qn)}}l&&(r.update_pending_count(-1),c.decrement(f))};u.promise.then(v,h=>v(null,h||"unknown"))}),Xr(()=>{for(const u of s.values())u.reject(Qn)}),new Promise(u=>{function c(f){function v(){f===i?u(o):c(i)}f.then(v,v)}c(i)})}function y(e){const t=_r(e);return jo(t),t}function wi(e){const t=_r(e);return t.equals=To,t}function Ao(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)mt(t[n])}}function ts(e){for(var t=e.parent;t!==null;){if((t.f&at)===0)return(t.f&hn)===0?t:null;t=t.parent}return null}function pi(e){var t,n=Le;rn(ts(e));try{e.f&=~Fn,Ao(e),t=ia(e)}finally{rn(n)}return t}function Oo(e){var t=pi(e);if(e.equals(t)||(ze?.is_fork||(e.v=t),e.wv=na()),!Yn)if(Nt!==null)(br()||ze?.is_fork)&&Nt.set(e,t);else{var n=(e.f&Vt)===0?en:dt;vt(e,n)}}let $i=new Set;const Tn=new Map;let Fo=!1;function zn(e,t){var n={f:0,v:e,reactions:null,equals:ko,rv:0,wv:0};return n}function Ie(e,t){const n=zn(e);return jo(n),n}function Di(e,t=!1,n=!0){const r=zn(e);return t||(r.equals=To),jn&&n&&Ue!==null&&Ue.l!==null&&(Ue.l.s??=[]).push(r),r}function Z(e,t,n=!1){pe!==null&&(!nn||(pe.f&wo)!==0)&&vr()&&(pe.f&(at|fn|yi|wo))!==0&&!mn?.includes(e)&&Tl();let r=n?Bn(t):t;return nr(e,r)}function nr(e,t){if(!e.equals(t)){var n=e.v;Yn?Tn.set(e,t):Tn.set(e,n),e.v=t;var r=tn.ensure();r.capture(e,n),(e.f&at)!==0&&((e.f&Rt)!==0&&pi(e),vt(e,(e.f&Vt)!==0?dt:en)),e.wv=na(),No(e,Rt),vr()&&Le!==null&&(Le.f&dt)!==0&&(Le.f&(dn|On))===0&&(Wt===null?ds([e]):Wt.push(e)),!r.is_fork&&$i.size>0&&!Fo&&ns()}return t}function ns(){Fo=!1;var e=Gn;Kr(!0);const t=Array.from($i);try{for(const n of t)(n.f&dt)!==0&&vt(n,en),$r(n)&&Dr(n)}finally{Kr(e)}$i.clear()}function mr(e){Z(e,e.v+1)}function No(e,t){var n=e.reactions;if(n!==null)for(var r=vr(),i=n.length,o=0;o<i;o++){var l=n[o],s=l.f;if(!(!r&&l===Le)){var u=(s&Rt)===0;if(u&&vt(l,t),(s&at)!==0){var c=l;Nt?.delete(c),(s&Fn)===0&&(s&Vt&&(l.f|=Fn),No(c,en))}else u&&((s&fn)!==0&&gn!==null&&gn.add(l),Un(l))}}}function Bn(e){if(typeof e!="object"||e===null||Nn in e)return e;const t=vi(e);if(t!==hl&&t!==vl)return e;var n=new Map,r=vo(e),i=Ie(0),o=qn,l=s=>{if(qn===o)return s();var u=pe,c=qn;Dt(null),ta(o);var f=s();return Dt(u),ta(c),f};return r&&n.set("length",Ie(e.length)),new Proxy(e,{defineProperty(s,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&kl();var f=n.get(u);return f===void 0?f=l(()=>{var v=Ie(c.value);return n.set(u,v),v}):Z(f,c.value,!0),!0},deleteProperty(s,u){var c=n.get(u);if(c===void 0){if(u in s){const f=l(()=>Ie(ht));n.set(u,f),mr(i)}}else Z(c,ht),mr(i);return!0},get(s,u,c){if(u===Nn)return e;var f=n.get(u),v=u in s;if(f===void 0&&(!v||An(s,u)?.writable)&&(f=l(()=>{var _=Bn(v?s[u]:ht),m=Ie(_);return m}),n.set(u,f)),f!==void 0){var h=a(f);return h===ht?void 0:h}return Reflect.get(s,u,c)},getOwnPropertyDescriptor(s,u){var c=Reflect.getOwnPropertyDescriptor(s,u);if(c&&"value"in c){var f=n.get(u);f&&(c.value=a(f))}else if(c===void 0){var v=n.get(u),h=v?.v;if(v!==void 0&&h!==ht)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(s,u){if(u===Nn)return!0;var c=n.get(u),f=c!==void 0&&c.v!==ht||Reflect.has(s,u);if(c!==void 0||Le!==null&&(!f||An(s,u)?.writable)){c===void 0&&(c=l(()=>{var h=f?Bn(s[u]):ht,_=Ie(h);return _}),n.set(u,c));var v=a(c);if(v===ht)return!1}return f},set(s,u,c,f){var v=n.get(u),h=u in s;if(r&&u==="length")for(var _=c;_<v.v;_+=1){var m=n.get(_+"");m!==void 0?Z(m,ht):_ in s&&(m=l(()=>Ie(ht)),n.set(_+"",m))}if(v===void 0)(!h||An(s,u)?.writable)&&(v=l(()=>Ie(void 0)),Z(v,Bn(c)),n.set(u,v));else{h=v.v!==ht;var w=l(()=>Bn(c));Z(v,w)}var g=Reflect.getOwnPropertyDescriptor(s,u);if(g?.set&&g.set.call(f,c),!h){if(r&&typeof u=="string"){var b=n.get("length"),D=Number(u);Number.isInteger(D)&&D>=b.v&&Z(b,D+1)}mr(i)}return!0},ownKeys(s){a(i);var u=Reflect.ownKeys(s).filter(v=>{var h=n.get(v);return h===void 0||h.v!==ht});for(var[c,f]of n)f.v!==ht&&!(c in s)&&u.push(c);return u},setPrototypeOf(){Cl()}})}var Gt,Ho,Wo,Uo;function rs(){if(Gt===void 0){Gt=window,Ho=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wo=An(t,"firstChild").get,Uo=An(t,"nextSibling").get,mo(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mo(n)&&(n.__t=void 0)}}function _n(e=""){return document.createTextNode(e)}function qr(e){return Wo.call(e)}function yr(e){return Uo.call(e)}function fe(e,t){return qr(e)}function J(e,t=!1){{var n=qr(e);return n instanceof Comment&&n.data===""?yr(n):n}}function ne(e,t=1,n=!1){let r=e;for(;t--;)r=yr(r);return r}function is(e){e.textContent=""}function zo(){return!1}function os(e,t){{const n=document.body;e.autofocus=!0,Wn(()=>{document.activeElement===n&&e.focus()})}}function Ei(e){var t=pe,n=Le;Dt(null),rn(null);try{return e()}finally{Dt(t),rn(n)}}function Bo(e){Le===null&&(pe===null&&$l(),pl()),Yn&&wl()}function as(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Yt(e,t,n){var r=Le;r!==null&&(r.f&It)!==0&&(e|=It);var i={ctx:Ue,deps:null,nodes:null,f:e|Rt|Vt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Dr(i),i.f|=_i}catch(s){throw mt(i),s}else t!==null&&Un(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Jn)===0&&(o=o.first,(e&fn)!==0&&(e&kn)!==0&&o!==null&&(o.f|=kn)),o!==null&&(o.parent=r,r!==null&&as(o,r),pe!==null&&(pe.f&at)!==0&&(e&On)===0)){var l=pe;(l.effects??=[]).push(o)}return i}function br(){return pe!==null&&!nn}function Xr(e){const t=Yt(zr,null,!1);return vt(t,dt),t.teardown=e,t}function et(e){Bo();var t=Le.f,n=!pe&&(t&dn)!==0&&(t&_i)===0;if(n){var r=Ue;(r.e??=[]).push(e)}else return Vo(e)}function Vo(e){return Yt(gi|$o,e,!1)}function rr(e){return Bo(),Yt(zr|$o,e,!0)}function ls(e){tn.ensure();const t=Yt(On|Jn,e,!0);return(n={})=>new Promise(r=>{n.outro?Vn(t,()=>{mt(t),r(void 0)}):(mt(t),r(void 0))})}function ki(e){return Yt(gi,e,!1)}function ss(e){return Yt(yi|Jn,e,!0)}function Go(e,t=0){return Yt(zr|t,e,!0)}function le(e,t=[],n=[],r=[]){Ql(r,t,n,i=>{Yt(zr,()=>e(...i.map(a)),!0)})}function wr(e,t=0){var n=Yt(fn|t,e,!0);return n}function us(e,t=0){var n=Yt(bo|t,e,!0);return n}function Lt(e){return Yt(dn|Jn,e,!0)}function Yo(e){var t=e.teardown;if(t!==null){const n=Yn,r=pe;Qo(!0),Dt(null);try{t.call(null)}finally{Qo(n),Dt(r)}}}function qo(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Ei(()=>{i.abort(Qn)});var r=n.next;(n.f&On)!==0?n.parent=null:mt(n,t),n=r}}function cs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&dn)===0&&mt(t),t=n}}function mt(e,t=!0){var n=!1;(t||(e.f&po)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(fs(e.nodes.start,e.nodes.end),n=!0),qo(e,t&&!n),Zr(e,0),vt(e,hn);var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)o.stop();Yo(e);var i=e.parent;i!==null&&i.first!==null&&Xo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function fs(e,t){for(;e!==null;){var n=e===t?null:yr(e);e.remove(),e=n}}function Xo(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Vn(e,t,n=!0){var r=[];Ko(e,r,!0);var i=()=>{n&&mt(e),t&&t()},o=r.length;if(o>0){var l=()=>--o||i();for(var s of r)s.out(l)}else i()}function Ko(e,t,n){if((e.f&It)===0){e.f^=It;var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)(s.is_global||n)&&t.push(s);for(var i=e.first;i!==null;){var o=i.next,l=(i.f&kn)!==0||(i.f&dn)!==0&&(e.f&fn)!==0;Ko(i,t,l?n:!1),i=o}}}function Ci(e){Zo(e,!0)}function Zo(e,t){if((e.f&It)!==0){e.f^=It,(e.f&dt)===0&&(vt(e,Rt),Un(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&kn)!==0||(n.f&dn)!==0;Zo(n,i?t:!1),n=r}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function Jo(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:yr(n);t.append(n),n=i}}let Gn=!1;function Kr(e){Gn=e}let Yn=!1;function Qo(e){Yn=e}let pe=null,nn=!1;function Dt(e){pe=e}let Le=null;function rn(e){Le=e}let mn=null;function jo(e){pe!==null&&(mn===null?mn=[e]:mn.push(e))}let yt=null,Mt=0,Wt=null;function ds(e){Wt=e}let ea=1,pr=0,qn=pr;function ta(e){qn=e}function na(){return++ea}function $r(e){var t=e.f;if((t&Rt)!==0)return!0;if(t&at&&(e.f&=~Fn),(t&en)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if($r(o)&&Oo(o),o.wv>e.wv)return!0}(t&Vt)!==0&&Nt===null&&vt(e,dt)}return!1}function ra(e,t,n=!0){var r=e.reactions;if(r!==null&&!mn?.includes(e))for(var i=0;i<r.length;i++){var o=r[i];(o.f&at)!==0?ra(o,t,!1):t===o&&(n?vt(o,Rt):(o.f&dt)!==0&&vt(o,en),Un(o))}}function ia(e){var t=yt,n=Mt,r=Wt,i=pe,o=mn,l=Ue,s=nn,u=qn,c=e.f;yt=null,Mt=0,Wt=null,pe=(c&(dn|On))===0?e:null,mn=null,er(e.ctx),nn=!1,qn=++pr,e.ac!==null&&(Ei(()=>{e.ac.abort(Qn)}),e.ac=null);try{e.f|=mi;var f=e.fn,v=f(),h=e.deps;if(yt!==null){var _;if(Zr(e,Mt),h!==null&&Mt>0)for(h.length=Mt+yt.length,_=0;_<yt.length;_++)h[Mt+_]=yt[_];else e.deps=h=yt;if(br()&&(e.f&Vt)!==0)for(_=Mt;_<h.length;_++)(h[_].reactions??=[]).push(e)}else h!==null&&Mt<h.length&&(Zr(e,Mt),h.length=Mt);if(vr()&&Wt!==null&&!nn&&h!==null&&(e.f&(at|en|Rt))===0)for(_=0;_<Wt.length;_++)ra(Wt[_],e);return i!==null&&i!==e&&(pr++,Wt!==null&&(r===null?r=Wt:r.push(...Wt))),(e.f&Cn)!==0&&(e.f^=Cn),v}catch(m){return Ro(m)}finally{e.f^=mi,yt=t,Mt=n,Wt=r,pe=i,mn=o,er(l),nn=s,qn=u}}function hs(e,t){let n=t.reactions;if(n!==null){var r=dl.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&at)!==0&&(yt===null||!yt.includes(t))&&(vt(t,en),(t.f&Vt)!==0&&(t.f^=Vt,t.f&=~Fn),Ao(t),Zr(t,0))}function Zr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)hs(e,n[r])}function Dr(e){var t=e.f;if((t&hn)===0){vt(e,dt);var n=Le,r=Gn;Le=e,Gn=!0;try{(t&(fn|bo))!==0?cs(e):qo(e),Yo(e);var i=ia(e);e.teardown=typeof i=="function"?i:null,e.wv=ea;var o}finally{Gn=r,Le=n}}}async function Jr(){await Promise.resolve(),Yl()}function a(e){var t=e.f,n=(t&at)!==0;if(pe!==null&&!nn){var r=Le!==null&&(Le.f&hn)!==0;if(!r&&!mn?.includes(e)){var i=pe.deps;if((pe.f&mi)!==0)e.rv<pr&&(e.rv=pr,yt===null&&i!==null&&i[Mt]===e?Mt++:yt===null?yt=[e]:yt.includes(e)||yt.push(e));else{(pe.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[pe]:o.includes(pe)||o.push(pe)}}}if(Yn){if(Tn.has(e))return Tn.get(e);if(n){var l=e,s=l.v;return((l.f&dt)===0&&l.reactions!==null||aa(l))&&(s=pi(l)),Tn.set(l,s),s}}else n&&(!Nt?.has(e)||ze?.is_fork&&!br())&&(l=e,$r(l)&&Oo(l),Gn&&br()&&(l.f&Vt)===0&&oa(l));if(Nt?.has(e))return Nt.get(e);if((e.f&Cn)!==0)throw e.v;return e.v}function oa(e){if(e.deps!==null){e.f^=Vt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&at)!==0&&(t.f&Vt)===0&&oa(t)}}function aa(e){if(e.v===ht)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Tn.has(t)||(t.f&at)!==0&&aa(t))return!0;return!1}function W(e){var t=nn;try{return nn=!0,e()}finally{nn=t}}const vs=-7169;function vt(e,t){e.f=e.f&vs|t}function gs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Nn in e)Ti(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Nn in n&&Ti(n)}}}function Ti(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ti(e[r],t)}catch{}const n=vi(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=_o(n);for(let i in r){const o=r[i].get;if(o)try{o.call(e)}catch{}}}}}const _s=["touchstart","touchmove"];function ms(e){return _s.includes(e)}const la=new Set,xi=new Set;function ys(e,t,n,r={}){function i(o){if(r.capture||Er.call(t,o),!o.cancelBubble)return Ei(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Wn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Pt(e,t,n,r,i){var o={capture:r,passive:i},l=ys(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xr(()=>{t.removeEventListener(e,l,o)})}function xn(e){for(var t=0;t<e.length;t++)la.add(e[t]);for(var n of xi)n(e)}let sa=null;function Er(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;sa=e;var l=0,s=sa===e&&e.__root;if(s){var u=i.indexOf(s);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;u<=c&&(l=u)}if(o=i[l]||e.target,o!==t){go(e,"currentTarget",{configurable:!0,get(){return o||n}});var f=pe,v=Le;Dt(null),rn(null);try{for(var h,_=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var w=o["__"+r];w!=null&&(!o.disabled||e.target===o)&&w.call(o,e)}catch(g){h?_.push(g):h=g}if(e.cancelBubble||m===t||m===null)break;o=m}if(h){for(let g of _)queueMicrotask(()=>{throw g});throw h}}finally{e.__root=t,delete e.currentTarget,Dt(f),rn(v)}}}function bs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Qr(e,t){var n=Le;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function j(e,t){var n=(t&Nl)!==0,r=(t&Hl)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=bs(o?e:"<!>"+e),n||(i=qr(i)));var l=r||Ho?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=qr(l),u=l.lastChild;Qr(s,u)}else Qr(l,l);return l}}function ua(e=""){{var t=_n(e+"");return Qr(t,t),t}}function _e(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_n();return e.append(t,n),Qr(t,n),e}function x(e,t){e!==null&&e.before(t)}function ca(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function ws(e,t){return ps(e,t)}const ir=new Map;function ps(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:l=!0}){rs();var s=new Set,u=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!s.has(_)){s.add(_);var m=ms(_);t.addEventListener(_,Er,{passive:m});var w=ir.get(_);w===void 0?(document.addEventListener(_,Er,{passive:m}),ir.set(_,1)):ir.set(_,w+1)}}};u(Wr(la)),xi.add(u);var c=void 0,f=ls(()=>{var v=n??t.appendChild(_n());return Zl(v,{pending:()=>{}},h=>{if(o){ye({});var _=Ue;_.c=o}i&&(r.$$events=i),c=e(h,r)||{},o&&be()}),()=>{for(var h of s){t.removeEventListener(h,Er);var _=ir.get(h);--_===0?(document.removeEventListener(h,Er),ir.delete(h)):ir.set(h,_)}xi.delete(u),v!==n&&v.parentNode?.removeChild(v)}});return Si.set(c,f),c}let Si=new WeakMap;function $s(e,t){const n=Si.get(e);return n?(Si.delete(e),n(t)):Promise.resolve()}class Ri{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#o=()=>{var t=ze;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)Ci(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const s=this.#n.get(l);s&&(mt(s.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===n||this.#r.has(o))continue;const s=()=>{if(Array.from(this.#e.values()).includes(o)){var c=document.createDocumentFragment();Jo(l,c),c.append(_n()),this.#n.set(o,{effect:l,fragment:c})}else mt(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!r?(this.#r.add(o),Vn(l,s,!1)):s()}}};#i=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(mt(i.effect),this.#n.delete(r))};ensure(t,n){var r=ze,i=zo();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var o=document.createDocumentFragment(),l=_n();o.append(l),this.#n.set(t,{effect:Lt(()=>n(l)),fragment:o})}else this.#t.set(t,Lt(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[s,u]of this.#t)s===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[s,u]of this.#n)s===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#o),r.ondiscard(this.#i)}else this.#o()}}function $e(e,t,n=!1){var r=new Ri(e),i=n?kn:0;function o(l,s){r.ensure(l,s)}wr(()=>{var l=!1;t((s,u=!0)=>{l=!0,o(u,s)}),l||o(!1,null)},i)}function se(e,t){return t}function Ds(e,t,n){for(var r=[],i=t.length,o,l=t.length,s=0;s<i;s++){let v=t[s];Vn(v,()=>{if(o){if(o.pending.delete(v),o.done.add(v),o.pending.size===0){var h=e.outrogroups;Ii(Wr(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var u=r.length===0&&n!==null;if(u){var c=n,f=c.parentNode;is(f),f.append(c),e.items.clear()}Ii(t,!u)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Ii(e,t=!0){for(var n=0;n<e.length;n++)mt(e[n],t)}var fa;function oe(e,t,n,r,i,o=null){var l=e,s=new Map,u=(t&Eo)!==0;if(u){var c=e;l=c.appendChild(_n())}var f=null,v=wi(()=>{var b=n();return vo(b)?b:b==null?[]:Wr(b)}),h,_=!0;function m(){g.fallback=f,Es(g,h,l,t,r),f!==null&&(h.length===0?(f.f&vn)===0?Ci(f):(f.f^=vn,kr(f,null,l)):Vn(f,()=>{f=null}))}var w=wr(()=>{h=a(v);for(var b=h.length,D=new Set,p=ze,C=zo(),$=0;$<b;$+=1){var k=h[$],I=r(k,$),E=_?null:s.get(I);E?(E.v&&nr(E.v,k),E.i&&nr(E.i,$),C&&p.skipped_effects.delete(E.e)):(E=ks(s,_?l:fa??=_n(),k,I,$,i,t,n),_||(E.e.f|=vn),s.set(I,E)),D.add(I)}if(b===0&&o&&!f&&(_?f=Lt(()=>o(l)):(f=Lt(()=>o(fa??=_n())),f.f|=vn)),!_)if(C){for(const[L,T]of s)D.has(L)||p.skipped_effects.add(T.e);p.oncommit(m),p.ondiscard(()=>{})}else m();a(v)}),g={effect:w,items:s,outrogroups:null,fallback:f};_=!1}function Es(e,t,n,r,i){var o=(r&Il)!==0,l=t.length,s=e.items,u=e.effect.first,c,f=null,v,h=[],_=[],m,w,g,b;if(o)for(b=0;b<l;b+=1)m=t[b],w=i(m,b),g=s.get(w).e,(g.f&vn)===0&&(g.nodes?.a?.measure(),(v??=new Set).add(g));for(b=0;b<l;b+=1){if(m=t[b],w=i(m,b),g=s.get(w).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(g),T.done.delete(g);if((g.f&vn)!==0)if(g.f^=vn,g===u)kr(g,null,n);else{var D=f?f.next:u;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),Sn(e,f,g),Sn(e,g,D),kr(g,D,n),f=g,h=[],_=[],u=f.next;continue}if((g.f&It)!==0&&(Ci(g),o&&(g.nodes?.a?.unfix(),(v??=new Set).delete(g))),g!==u){if(c!==void 0&&c.has(g)){if(h.length<_.length){var p=_[0],C;f=p.prev;var $=h[0],k=h[h.length-1];for(C=0;C<h.length;C+=1)kr(h[C],p,n);for(C=0;C<_.length;C+=1)c.delete(_[C]);Sn(e,$.prev,k.next),Sn(e,f,$),Sn(e,k,p),u=p,f=k,b-=1,h=[],_=[]}else c.delete(g),kr(g,u,n),Sn(e,g.prev,g.next),Sn(e,g,f===null?e.effect.first:f.next),Sn(e,f,g),f=g;continue}for(h=[],_=[];u!==null&&u!==g;)(c??=new Set).add(u),_.push(u),u=u.next;if(u===null)continue}(g.f&vn)===0&&h.push(g),f=g,u=g.next}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(Ii(Wr(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||c!==void 0){var I=[];if(c!==void 0)for(g of c)(g.f&It)===0&&I.push(g);for(;u!==null;)(u.f&It)===0&&u!==e.fallback&&I.push(u),u=u.next;var E=I.length;if(E>0){var L=(r&Eo)!==0&&l===0?n:null;if(o){for(b=0;b<E;b+=1)I[b].nodes?.a?.measure();for(b=0;b<E;b+=1)I[b].nodes?.a?.fix()}Ds(e,I,L)}}o&&Wn(()=>{if(v!==void 0)for(g of v)g.nodes?.a?.apply()})}function ks(e,t,n,r,i,o,l,s){var u=(l&Sl)!==0?(l&Ll)===0?Di(n,!1,!1):zn(n):null,c=(l&Rl)!==0?zn(i):null;return{v:u,i:c,e:Lt(()=>(o(t,u??n,c??i,s),()=>{e.delete(r)}))}}function kr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,o=t&&(t.f&vn)===0?t.nodes.start:n;r!==null;){var l=yr(r);if(o.before(r),r===i)return;r=l}}function Sn(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function yn(e,t,...n){var r=new Ri(e);wr(()=>{const i=t()??null;r.ensure(i,i&&(o=>i(o,...n)))},kn)}function Li(e,t,n){var r=new Ri(e);wr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},kn)}function Ye(e,t){var n=void 0,r;us(()=>{n!==(n=t())&&(r&&(mt(r),r=null),n&&(r=Lt(()=>{ki(()=>n(e))})))})}function da(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=da(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Cs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=da(e))&&(r&&(r+=" "),r+=t);return r}function on(e){return typeof e=="object"?Cs(e):e??""}function Ts(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ha(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var o=e[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function Mi(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function xs(e,t){if(t){var n="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,s=!1,u=[];r&&u.push(...Object.keys(r).map(Mi)),i&&u.push(...Object.keys(i).map(Mi));var c=0,f=-1;const w=e.length;for(var v=0;v<w;v++){var h=e[v];if(s?h==="/"&&e[v-1]==="*"&&(s=!1):o?o===h&&(o=!1):h==="/"&&e[v+1]==="*"?s=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!s&&o===!1&&l===0){if(h===":"&&f===-1)f=v;else if(h===";"||v===w-1){if(f!==-1){var _=Mi(e.substring(c,f).trim());if(!u.includes(_)){h!==";"&&v++;var m=e.substring(c,v).trim();n+=" "+m+";"}}c=v+1,f=-1}}}}return r&&(n+=ha(r)),i&&(n+=ha(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function N(e,t,n,r,i,o){var l=e.__className;if(l!==n||l===void 0){var s=Ts(n);s==null?e.removeAttribute("class"):e.className=s,e.__className=n}return o}function Pi(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function qt(e,t,n,r){var i=e.__style;if(i!==t){var o=xs(t,r);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else r&&(Array.isArray(r)?(Pi(e,n?.[0],r[0]),Pi(e,n?.[1],r[1],"important")):Pi(e,n,r));return r}const Ss=Symbol("is custom element"),Rs=Symbol("is html");function Be(e,t,n,r){var i=Is(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[yl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ls(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Is(e){return e.__attributes??={[Ss]:e.nodeName.includes("-"),[Rs]:e.namespaceURI===Wl}}var va=new Map;function Ls(e){var t=e.getAttribute("is")||e.nodeName,n=va.get(t);if(n)return n;va.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=_o(i);for(var l in r)r[l].set&&n.push(l);i=vi(i)}return n}function Rn(e,t,n){var r=An(e,t);r&&r.set&&(e[t]=n,Xr(()=>{e[t]=null}))}class Ai{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,n){var r=this.#e.get(t)||new Set;return r.add(n),this.#e.set(t,r),this.#r().observe(t,this.#n),()=>{var i=this.#e.get(t);i.delete(n),i.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var n of t){Ai.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var Ms=new Ai({box:"border-box"});function jr(e,t,n){var r=Ms.observe(e,()=>n(e[t]));ki(()=>(W(()=>n(e[t])),r))}function ga(e,t){return e===t||e?.[Nn]===t}function bt(e={},t,n,r){return ki(()=>{var i,o;return Go(()=>{i=o,o=r?.()||[],W(()=>{e!==n(...o)&&(t(e,...o),i&&ga(n(...i),e)&&t(null,...i))})}),()=>{Wn(()=>{o&&ga(n(...o),e)&&t(null,...o)})}}),e}function Ps(e=!1){const t=Ue,n=t.l.u;if(!n)return;let r=()=>gs(t.s);if(e){let i=0,o={};const l=_r(()=>{let s=!1;const u=t.s;for(const c in u)u[c]!==o[c]&&(o[c]=u[c],s=!0);return s&&i++,i});r=()=>a(l)}n.b.length&&rr(()=>{_a(t,r),Ur(n.b)}),et(()=>{const i=W(()=>n.m.map(gl));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&et(()=>{_a(t,r),Ur(n.a)})}function _a(e,t){if(e.l.s)for(const n of e.l.s)a(n);t()}function Oi(e,t,n){if(e==null)return t(void 0),n&&n(void 0),_t;const r=W(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const or=[];function ma(e,t){return{subscribe:lt(e,t).subscribe}}function lt(e,t=_t){let n=null;const r=new Set;function i(s){if(Co(e,s)&&(e=s,n)){const u=!or.length;for(const c of r)c[1](),or.push(c,e);if(u){for(let c=0;c<or.length;c+=2)or[c][0](or[c+1]);or.length=0}}}function o(s){i(s(e))}function l(s,u=_t){const c=[s,u];return r.add(c),r.size===1&&(n=t(i,o)||_t),s(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:l}}function tt(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return ma(n,(l,s)=>{let u=!1;const c=[];let f=0,v=_t;const h=()=>{if(f)return;v();const m=t(r?c[0]:c,l,s);o?l(m):v=typeof m=="function"?m:_t},_=i.map((m,w)=>Oi(m,g=>{c[w]=g,f&=~(1<<w),u&&h()},()=>{f|=1<<w}));return u=!0,h(),function(){Ur(_),v(),u=!1}})}function Cr(e){let t;return Oi(e,n=>t=n)(),t}let ei=!1,Fi=Symbol();function d(e,t,n){const r=n[t]??={store:null,source:Di(void 0),unsubscribe:_t};if(r.store!==e&&!(Fi in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_t;else{var i=!0;r.unsubscribe=Oi(e,o=>{i?r.source.v=o:Z(r.source,o)}),i=!1}return e&&Fi in n?Cr(e):a(r.source)}function Me(e,t){return e.set(t),t}function Ee(){const e={};function t(){Xr(()=>{for(var n in e)e[n].unsubscribe();go(e,Fi,{enumerable:!1,value:!0})})}return[e,t]}function Ve(e,t,n){return e.set(n),t}function As(e){var t=ei;try{return ei=!1,[e(),ei]}finally{ei=t}}function Pe(e,t,n,r){var i=!jn||(n&Pl)!==0,o=(n&Ol)!==0,l=(n&Fl)!==0,s=r,u=!0,c=()=>(u&&(u=!1,s=l?W(r):r),s),f;if(o){var v=Nn in e||ml in e;f=An(e,t)?.set??(v&&t in e?p=>e[t]=p:void 0)}var h,_=!1;o?[h,_]=As(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),f&&(i&&El(),f(h)));var m;if(i?m=()=>{var p=e[t];return p===void 0?c():(u=!0,p)}:m=()=>{var p=e[t];return p!==void 0&&(s=void 0),p===void 0?s:p},i&&(n&Al)===0)return m;if(f){var w=e.$$legacy;return(function(p,C){return arguments.length>0?((!i||!C||w||_)&&f(C?m():p),p):m()})}var g=!1,b=((n&Ml)!==0?_r:wi)(()=>(g=!1,m()));o&&a(b);var D=Le;return(function(p,C){if(arguments.length>0){const $=C?a(b):i&&o?Bn(p):p;return Z(b,$),g=!0,s!==void 0&&(s=$),p}return Yn&&g||(D.f&hn)!==0?b.v:a(b)})}function ar(e){Ue===null&&Do(),jn&&Ue.l!==null?Os(Ue).m.push(e):et(()=>{const t=W(e);if(typeof t=="function")return t})}function Os(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Fs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Fs);function Ni(e,t=void 0){return function(n){return n.key==="Enter"||n.key===" "&&!n.preventDefault()?e.call(t,n):void 0}}function st(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Ns(e){return t=>{let n=r=>{t&&!t.contains(r.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:r}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function Hi(e){return t=>{let n=new ResizeObserver(r=>{for(let i of r)e(t,i)});return n.observe(t),()=>{n.unobserve(t)}}}function ya(e,t){return n=>{let r=new IntersectionObserver(i=>{for(let o of i)e(n,o)},t);return r.observe(n),()=>{r.unobserve(n)}}}const Tr=86400;function an(e=void 0){return e!==void 0?e instanceof Date?Da(e):Us(e):Da(new Date)}function it(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let n=0,r=2;for(let i of e.split(":",3))n+=parseInt(i,10)*Math.pow(60,r--);e={seconds:n}}else e instanceof Date&&(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 X(e){return new Date(e.getTime())}function Fe(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)In(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function ti(e,t,n=1){return Fe(e,t,-n)}function Xt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function In(e,t=1){return Xt(e,-t)}function Kt(e){return e.setUTCHours(0,0,0,0),e}function Je(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function At(e,t=19){return e.toISOString().substring(0,t)}function Et(e,...t){return t.every(n=>e.getTime()===n.getTime())}function Hs(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ba(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function wa(e){return typeof e=="string"&&e.length<=10}function Wi(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function xe(e){return e.seconds}function pa(e,t){return Fe(e,t),e}function $a(e,t,n){if(ti(e,t),n.length&&n.length<7)for(;n.includes(e.getUTCDay());)In(e);return e}function Ws(e,t){e=X(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-n)/1e3/Tr+1)/7)}function Da(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function Us(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)))}function gt(...e){return Object.assign(...e)}function bn(e){return Object.keys(e)}function zs(e){return Object.entries(e)}function Ui(e){return Math.floor(e)}function Bs(e){return Math.ceil(e)}function ln(...e){return Math.min(...e)}function Ot(...e){return Math.max(...e)}function Vs(){return Symbol("ec")}function Ea(e){return Array.isArray(e)}function De(e){return typeof e=="function"}function Gs(e){for(let t in e)if(Object.hasOwn(e,t))return!1;return!0}function Ys(e){return e()}function ka(e){e.forEach(Ys)}function qs(){}const wn=e=>e;function zi(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function xr(){return window.getComputedStyle(document.documentElement).direction==="rtl"}let Bi=Vs();function Ca(e,t){e[Bi]=t}function Xs(e){return!!e?.[Bi]}function pn(e){return e[Bi]}function Ta(e,t,n,r=[]){let i=document.createElement(e);i.className=t,typeof n=="string"?i.innerText=n:n.domNodes?i.replaceChildren(...n.domNodes):n.html&&(i.innerHTML=n.html);for(let o of r)i.setAttribute(...o);return i}function Ln(e){return e.getBoundingClientRect()}function xa(e,t){for(;t--;)e=e.parentElement;return e}function Xn(e){return Ln(e).height}function lr(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(Xs(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let o=lr(e,t,i.shadowRoot,r);if(o)return o}}return null}function Sr(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ks(e,t,n,r){return{type:e,title:t,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}function wt(e){return e=gt({},e),e.currentStart=Je(e.currentStart),e.currentEnd=Je(e.currentEnd),e.activeStart=Je(e.activeStart),e.activeEnd=Je(e.activeEnd),e}function Sa(e){return e.startsWith("list")}function Zs(e){return e.includes("Timeline")}let Js=1;function ni(e){return e.map(t=>{let n={id:"id"in t?String(t.id):`{generated-${Js++}}`,resourceIds:Vi(t,"resourceId").map(String),allDay:t.allDay??(wa(t.start)&&wa(t.end)),start:an(t.start),end:an(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:Vi(t,"className"),styles:Vi(t,"style")};if(n.allDay){Kt(n.start);let r=X(n.end);Kt(n.end),(!Et(n.end,r)||Et(n.end,n.start))&&Xt(n.end)}return n})}function Vi(e,t){let n=e[t+"s"]??e[t]??[];return Ea(n)?n:[n]}function Qs(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 js(e,t,n,r,i,o){let l=i.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Wi(X(e.start),e.end):e.start),s;if(n&&(s=De(n)?n({event:ut(e.event),timeText:l,view:wt(o)}):n),s===void 0){let u;switch(e.event.display){case"background":u=[];break;case"pointer":u=e.event.allDay?[]:[Ra(l,e,r)];break;default:u=[...e.event.allDay?[]:[Ra(l,e,r)],Ta("h4",r.eventTitle,e.event.title)]}s={domNodes:u}}return[l,s]}function Ra(e,t,n){return Ta("time",n.eventTime,e,[["datetime",At(t.start)]])}function eu(e,t,n){let r=t.classNames;return e&&(De(e)&&(e=e({event:ut(t),view:wt(n)})),r=[...Ea(e)?e:[e],...r]),r}function ut(e){return Ia(e,Je)}function Gi(e){return Ia(e,X)}function Ia(e,t){return e=gt({},e),e.start=t(e.start),e.end=t(e.end),e}function Yi(e,t){e.length=t.length;for(let n of e)n?.reposition()}function Rr(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function ri(e){return tu(e)||nu(e)||ru(e)}function Ut(e){return e==="background"}function tu(e){return e==="preview"}function nu(e){return e==="ghost"}function ru(e){return e==="pointer"}function Ir(e,t,n){let r={start:e.start>t?e.start:t,end:e.end<n?e.end:n,event:e};return r.zeroDuration=Et(r.start,r.end),r}function sr(e,t){let n=[],r,i,o;for(let{gridColumn:l,gridRow:s,resource:u,dayStart:c,dayEnd:f,disabled:v}of t)!v&&Rr(e,c,f,u)&&(n.push(c),r=f,i||(i=l,o=s));if(n.length){let l=Ir(e,n[0],r);return gt(l,{gridColumn:i,gridRow:o,dates:n}),[l]}return[]}function La(e){let t={},n={};for(let r of e){let{gridColumn:i,gridRow:o}=r;for(let s=1;s<r.dates.length;++s){let u=`${o}_${i+s}`;n[u]?n[u].chunks.push(r):n[u]={sorted:!1,chunks:[r]}}let l=`${o}_${i}`;r.long=n[l],r.prev=t[l],t[l]=r}}function Ma(e,t,n=0){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let i=e.long;i.sorted||(i.chunks.sort((o,l)=>o.top-l.top),i.sorted=!0);for(let o of i.chunks)if(n<o.bottom&&r>o.top){let l=o.bottom-n+1;n+=l,r+=l}}return gt(e,{top:n,bottom:r}),n}function Pa(e,t,n){n.update(r=>r.set(t,e))}function iu(e){ka(e),e.clear()}function ou(e,t,n){t??=e,n.has(t)||n.set(t,setTimeout(()=>{n.delete(t),e()}))}function ii(e){return ai(e,"day")}function oi(e){return ai(e,"week")}function qi(e){return ai(e,"month")}function au(e){return ai(e,"year")}function ai(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function zt(e){return t=>({...t,view:e})}function lu(e){let t,n;return e&&({start:t,end:n}=e,t&&(t=Kt(an(t))),n&&(n=Kt(an(n)))),{start:t,end:n}}function ur(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Aa(e){let t=[];return Oa(e,0,t),t}function Oa(e,t,n){let r=[];for(let i of e){let o=su(i);r.push(o),n.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ca(o,l),i.children&&(l.children=Oa(i.children,t+1,n))}return r}function su(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function uu(e,t){return Fa(e,t)?.eventBackgroundColor}function cu(e,t){return Fa(e,t)?.eventTextColor}function Fa(e,t){return t.find(n=>e.resourceIds.includes(n.id))}function Na(e,t,n,r,i){let o=[];e=X(e);let l=X(e);for(Fe(e,r.min),Fe(l,r.max);e<l;)o.push([At(e),i.format(e)]),Fe(e,t,n);let s=Ui((e-l)/1e3/xe(t));return s&&s!==n&&(o.at(-1)[2]=n-s),o}function Ha(e,t,n,r,i){let o=it(e),l=it(t);if(n){let s=it(ln(xe(o),Ot(0,xe(l)-Tr))),u=it(Ot(xe(l),xe(s)+Tr)),c=De(n?.eventFilter)?n.eventFilter:f=>!Ut(f.display);e:for(let f of r){let v=Fe(X(f),o),h=Fe(X(f),l),_=Fe(X(f),s),m=Fe(X(f),u);for(let w of i)if(!w.allDay&&c(w)&&w.start<m&&w.end>_){if(w.start<v){let g=Ot((w.start-f)/1e3,xe(s));g<xe(o)&&(o.seconds=g)}if(w.end>h){let g=ln((w.end-f)/1e3,xe(u));g>xe(l)&&(l.seconds=g)}if(xe(o)===xe(s)&&xe(l)===xe(u))break e}}}return{min:o,max:l}}function Kn(e,t){return tt([e,t],([n,r])=>{let i=De(r)?{format:r}:new Intl.DateTimeFormat(n,r);return{format:o=>i.format(Je(o))}})}function Wa(e,t){return tt([e,t],([n,r])=>{let i;if(De(r))i=r;else{let o=new Intl.DateTimeFormat(n,r);i=(l,s)=>{if(l<=s)return o.formatRange(l,s);{let u=o.formatRangeToParts(s,l),c="",f=["startRange","endRange"],v=[!1,!1];for(let h of u){let _=f.indexOf(h.source);_>=0?v[_]||(c+=fu(f[1-_],u),v[_]=!0):c+=h.value}return c}}}return{formatRange:(o,l)=>i(Je(o),Je(l))}})}function fu(e,t){let n="";for(let r of t)r.source==e&&(n+=r.value);return n}const Ua=["buttonText","customButtons","theme"];function du(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:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",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 n of e)n.createOptions?.(t);return t}function hu(e){let t={date:n=>Kt(an(n)),duration:it,events:ni,eventSources:Qs,hiddenDays:n=>[...new Set(n)],highlightedDates:n=>n.map(r=>Kt(an(r))),resources:Aa,validRange:lu};for(let n of e)n.createParsers?.(t);return t}function vu(e,t){let n=[];for(let r of bn(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function gu(e){return tt(e.view,t=>t?.startsWith("dayGrid"))}function _u(e){return tt([e._currentRange,e._activeRangeExt],([t,n])=>n({start:X(t.start),end:X(t.end)}))}function mu(e){return tt([e.date,e.duration,e.firstDay],([t,n,r])=>{let i=X(t),o;return n.months?i.setUTCDate(1):n.inWeeks&&ba(i,r),o=Fe(X(i),n),{start:i,end:o}})}function yu(e){return tt([e._activeRange,e.hiddenDays],([t,n])=>{let r=[],i=Kt(X(t.start)),o=Kt(X(t.end));for(;i<o;)n.includes(i.getUTCDay())||r.push(X(i)),Xt(i);return!r.length&&n.length&&n.length<7&&(e.date.update(l=>{for(;n.includes(l.getUTCDay());)Xt(l);return l}),r=Cr(e._viewDates)),r})}function bu(e){return tt([e.date,e._activeRange,e._intlTitle,e._dayGrid],([t,n,r,i])=>i?r.formatRange(t,t):r.formatRange(n.start,In(X(n.end))))}function wu(e){return tt([e.view,e._viewTitle,e._currentRange,e._activeRange],t=>Ks(...t))}function pu(e){let t=lt([]),n,r=0,i={};return tt([e.events,e.eventSources,e._activeRange,e._fetchedRange,e.lazyFetching,e.loading],(o,l)=>Pa(()=>{let[s,u,c,f,v,h]=o;if(!u.length){l(s);return}if(!f.start||f.start>c.start||f.end<c.end||!v){n&&n.abort(),n=new AbortController,De(h)&&!r&&h(!0);let _=()=>{--r===0&&De(h)&&h(!1)},m=[],w=p=>_(),g=p=>{m=m.concat(ni(p)),l(m),_()},b=At(c.start),D=At(c.end);for(let p of u){if(De(p.events)){let C=p.events({start:Je(c.start),end:Je(c.end),startStr:b,endStr:D},g,w);C!==void 0&&Promise.resolve(C).then(g,w)}else{let C=De(p.extraParams)?p.extraParams():gt({},p.extraParams);C.start=b,C.end=D,C=new URLSearchParams(C);let $=p.url,k={},I;["GET","HEAD"].includes(p.method)?$+=($.includes("?")?"&":"?")+C:(k["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",I=String(C)),fetch($,{method:p.method,headers:k,body:I,signal:n.signal,credentials:"same-origin"}).then(E=>E.json()).then(g).catch(w)}++r}f.start=c.start,f.end=c.end}},i,e._queue),[]).subscribe(t.set),t}function $u(e){let t;e._view.subscribe(r=>t=r);let n={};return tt([e._events,e.eventFilter,e.eventOrder,e.filterEventsWithResources,e.resources],(r,i)=>Pa(()=>{let[o,l,s,u,c]=r,f=[...o];if(De(l)){let v=o.map(ut);f=f.filter((h,_)=>l({event:ut(h),index:_,events:v,view:t}))}u&&(f=f.filter(v=>c.some(h=>v.resourceIds.includes(h.id)))),De(s)?f.sort((v,h)=>s(ut(v),ut(h))):f.sort((v,h)=>v.start-h.start||h.allDay-v.allDay),i(f)},n,e._queue),[])}function Du(){return ma(an(),e=>{let t=setInterval(()=>{e(an())},1e3);return()=>clearInterval(t)})}function Eu(e){let t=Kt(an()),n=lt(t);return e._now.subscribe(r=>{let i=Kt(X(r));Et(t,i)||(t=i,n.set(i))}),n}class ku{constructor(t,n){t=t||[];let r=du(t),i=hu(t);r=Xi(r,i),n=Xi(n,i);for(let[l,s]of Object.entries(r))this[l]=lt(s);this._queue=lt(new Map),this._tasks=new Map,this._auxiliary=lt([]),this._dayGrid=gu(this),this._currentRange=mu(this),this._activeRangeExt=lt(wn),this._activeRange=_u(this),this._fetchedRange=lt({start:void 0,end:void 0}),this._events=pu(this),this._mainEl=lt(void 0),this._now=Du(),this._today=Eu(this),this._intlEventTime=Wa(this.locale,this.eventTimeFormat),this._intlDayHeader=Kn(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Kn(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Wa(this.locale,this.titleFormat),this._viewTitle=bu(this),this._viewDates=yu(this),this._view=wu(this),this._viewComponent=lt(void 0),this._filteredEvents=$u(this),this._interaction=lt({}),this._iEvents=lt([null,null]),this._iClasses=lt(wn),this._iClass=lt(void 0),this._set=(l,s)=>{Ki(l,this)&&(i[l]&&(s=i[l](s)),this[l].set(s))},this._get=l=>Ki(l,this)?Cr(this[l]):void 0;for(let l of t)l.createStores?.(this);n.view&&this.view.set(n.view);let o=new Set([...bn(r.views),...bn(n.views??{})]);for(let l of o){let s=za(r,r.views[l]??{}),u=za(s,n,n.views?.[l]??{}),c=u.component;Cu(u,this);for(let f of bn(u)){let{set:v,_set:h=v,..._}=this[f];this[f]={set:Ua.includes(f)?m=>{if(De(m)){let w=m(s[f]);u[f]=w,v(v===h?w:m)}else u[f]=m,v(m)}:m=>{u[f]=m,v(m)},_set:h,..._}}this.view.subscribe(f=>{if(f===l){this._viewComponent.set(c),De(u.viewDidMount)&&Jr().then(()=>u.viewDidMount({view:wt(Cr(this._view))}));for(let v of bn(u))this[v]._set(u[v])}})}}}function Xi(e,t){let n={...e};for(let r of bn(t))r in n&&(n[r]=t[r](n[r]));if(e.views){n.views={};for(let r of bn(e.views))n.views[r]=Xi(e.views[r],t)}return n}function za(...e){let t={};for(let n of e){let r={};for(let i of Ua)De(n[i])&&(r[i]=n[i](t[i]));t={...t,...n,...r}}return t}function Cu(e,t){bn(e).filter(n=>!Ki(n,t)||n==="view").forEach(n=>delete e[n])}function Ki(e,t){return t.hasOwnProperty(e)&&e[0]!=="_"}var Tu=j("<h2></h2>"),xu=j("<button><i></i></button>"),Su=j("<button><i></i></button>"),Ru=j("<button> </button>"),Iu=j("<button></button>"),Lu=j("<button> </button>");function Ba(e,t){ye(t,!0);const n=()=>d(p,"$_viewDates",m),r=()=>d(T,"$validRange",m),i=()=>d(b,"$_today",m),o=()=>d(g,"$_currentRange",m),l=()=>d(k,"$date",m),s=()=>d(I,"$duration",m),u=()=>d(E,"$hiddenDays",m),c=()=>d(L,"$theme",m),f=()=>d(D,"$_viewTitle",m),v=()=>d(C,"$buttonText",m),h=()=>d($,"$customButtons",m),_=()=>d(M,"$view",m),[m,w]=Ee();let{_currentRange:g,_today:b,_viewTitle:D,_viewDates:p,buttonText:C,customButtons:$,date:k,duration:I,hiddenDays:E,theme:L,validRange:T,view:M}=Te("state"),A=Ie(!1),U=Ie(!1),G=Ie(!1),q=!1;rr(()=>{n(),r(),t.buttons,W(()=>{q||(q=!0,t.buttons.includes("prev")&&(Z(A,!1),r().start&&Z(A,te(O),!0)),t.buttons.includes("next")&&(Z(U,!1),r().end&&Z(U,te(Y),!0)),t.buttons.includes("today")&&(Z(G,i()>=o().start&&i()<o().end,!0),!a(G)&&(r().start||r().end)&&Z(G,te(B),!0)),Jr().then(()=>q=!1))})});function te(de){let V=X(l());de();let Ae=n().every(re=>ur(re,r()));return Me(k,V),Ae}function O(){Me(k,$a(l(),s(),u()))}function Y(){Me(k,pa(l(),s()))}function B(){Me(k,X(i()))}var K=_e(),ue=J(K);oe(ue,17,()=>t.buttons,se,(de,V)=>{var Ae=_e(),re=J(Ae);{var ke=He=>{var ae=Tu();Ye(ae,()=>st(f())),le(()=>N(ae,1,c().title)),x(He,ae)},Xe=He=>{var ae=_e(),he=J(ae);{var kt=Ke=>{var P=xu();P.__click=O;var me=fe(P);le(()=>{N(P,1,`${c().button??""} ec-${a(V)??""}`),Be(P,"aria-label",v().prev),Be(P,"title",v().prev),P.disabled=a(A),N(me,1,`${c().icon??""} ec-${a(V)??""}`)}),x(Ke,P)},Ct=Ke=>{var P=_e(),me=J(P);{var Qe=Q=>{var ge=Su();ge.__click=Y;var Ce=fe(ge);le(()=>{N(ge,1,`${c().button??""} ec-${a(V)??""}`),Be(ge,"aria-label",v().next),Be(ge,"title",v().next),ge.disabled=a(U),N(Ce,1,`${c().icon??""} ec-${a(V)??""}`)}),x(Q,ge)},ve=Q=>{var ge=_e(),Ce=J(ge);{var Ge=je=>{var qe=Ru();qe.__click=B;var pt=fe(qe);le(()=>{N(qe,1,`${c().button??""} ec-${a(V)??""}`),qe.disabled=a(G),ca(pt,v()[a(V)])}),x(je,qe)},ot=je=>{var qe=_e(),pt=J(qe);{var sn=Bt=>{var Ft=Iu();Ft.__click=function(...Zt){h()[a(V)].click?.apply(this,Zt)},Ye(Ft,()=>st(h()[a(V)].text)),le(()=>N(Ft,1,on([c().button,`ec-${a(V)}`,h()[a(V)].active&&c().active]))),x(Bt,Ft)},Mn=Bt=>{var Ft=_e(),Zt=J(Ft);{var Jt=Tt=>{var xt=Lu();xt.__click=()=>Me(M,a(V));var un=fe(xt);le(()=>{N(xt,1,on([c().button,`ec-${a(V)}`,_()===a(V)&&c().active])),ca(un,v()[a(V)])}),x(Tt,xt)};$e(Zt,Tt=>{a(V)!==""&&Tt(Jt)},!0)}x(Bt,Ft)};$e(pt,Bt=>{h()[a(V)]?Bt(sn):Bt(Mn,!1)},!0)}x(je,qe)};$e(Ce,je=>{a(V)==="today"?je(Ge):je(ot,!1)},!0)}x(Q,ge)};$e(me,Q=>{a(V)==="next"?Q(Qe):Q(ve,!1)},!0)}x(Ke,P)};$e(he,Ke=>{a(V)==="prev"?Ke(kt):Ke(Ct,!1)},!0)}x(He,ae)};$e(re,He=>{a(V)==="title"?He(ke):He(Xe,!1)})}x(de,Ae)}),x(e,K),be(),w()}xn(["click"]);var Mu=j("<div><!></div>"),Pu=j("<div></div>"),Au=j("<nav></nav>");function Ou(e,t){ye(t,!0);const n=()=>d(l,"$headerToolbar",i),r=()=>d(s,"$theme",i),[i,o]=Ee();let{headerToolbar:l,theme:s}=Te("state"),u=y(()=>{let f={};for(let v of["start","center","end"])f[v]=n()[v]?.split(" ").map(h=>h.split(","))??[];return f});var c=Au();oe(c,21,()=>bn(a(u)),se,(f,v)=>{var h=Pu();oe(h,21,()=>a(u)[a(v)],se,(_,m)=>{var w=_e(),g=J(w);{var b=p=>{var C=Mu(),$=fe(C);Ba($,{get buttons(){return a(m)}}),le(()=>N(C,1,r().buttonGroup)),x(p,C)},D=p=>{Ba(p,{get buttons(){return a(m)}})};$e(g,p=>{a(m).length>1?p(b):p(D,!1)})}x(_,w)}),le(()=>N(h,1,`ec-${a(v)??""}`)),x(f,h)}),le(()=>N(c,1,r().toolbar)),x(e,c),be(),o()}function Fu(e,t){ye(t,!0);const n=()=>d(m,"$_activeRange",c),r=()=>d(v,"$datesSet",c),i=()=>d(D,"$_view",c),o=()=>d(w,"$_filteredEvents",c),l=()=>d(h,"$eventAllUpdated",c),s=()=>d(b,"$_queue",c),u=()=>d(_,"$_auxiliary",c),[c,f]=Ee();let{datesSet:v,eventAllUpdated:h,_auxiliary:_,_activeRange:m,_filteredEvents:w,_tasks:g,_queue:b,_view:D}=Te("state");et(()=>{n(),W(()=>{De(r())&&r()({start:Je(n().start),end:Je(n().end),startStr:At(n().start),endStr:At(n().end),view:wt(i())})})}),et(()=>{o(),W(()=>{De(l())&&ou(()=>l()({view:wt(i())}),"eau",g)})}),et(()=>{s(),W(()=>{iu(s())})});var p=_e(),C=J(p);oe(C,1,u,se,($,k)=>{var I=_e(),E=J(I);Li(E,()=>a(k),(L,T)=>{T(L,{})}),x($,I)}),x(e,p),be(),f()}var Nu=j("<div><!> <!></div> <!>",1);function Hu(e,t){ye(t,!0);const n=()=>d(C,"$_events",h),r=()=>d(D,"$_interaction",h),i=()=>d($,"$date",h),o=()=>d(k,"$duration",h),l=()=>d(I,"$hiddenDays",h),s=()=>d(b,"$_viewComponent",h),u=()=>d(L,"$theme",h),c=()=>d(p,"$_iClass",h),f=()=>d(E,"$height",h),v=()=>d(T,"$view",h),[h,_]=Ee();let m=Pe(t,"plugins",19,()=>[]),w=Pe(t,"options",19,()=>({})),g=new ku(m(),w());Bl("state",g);let{_viewComponent:b,_interaction:D,_iClass:p,_events:C,date:$,duration:k,hiddenDays:I,height:E,theme:L,view:T}=g,M={...w()};et(()=>{for(let[P,me]of vu(w(),M))W(()=>{A(P,me)});gt(M,w())});function A(P,me){return g._set(P,me),this}function U(P){let me=g._get(P);return me instanceof Date?Je(me):me}function G(){return g._fetchedRange.set({start:void 0,end:void 0}),this}function q(){return n().map(ut)}function te(P){for(let me of n())if(me.id==P)return ut(me);return null}function O(P){return P=ni([P])[0],n().push(P),Me(C,n()),ut(P)}function Y(P){let me=String(P.id),Qe=n().findIndex(ve=>ve.id===me);return Qe>=0?(P=ni([P])[0],Ve(C,W(n)[Qe]=P,W(n)),ut(P)):null}function B(P){P=String(P);let me=n().findIndex(Qe=>Qe.id===P);return me>=0&&(n().splice(me,1),Me(C,n())),this}function K(){return wt(Cr(g._view))}function ue(){return r().action?.unselect(),this}function de(P,me){let Qe=lr(P,me);if(Qe){let ve=pn(Qe)(P,me);return ve.date=Je(ve.date),ve}return null}function V(){return Me($,pa(i(),o())),this}function Ae(){return Me($,$a(i(),o(),l())),this}let re=y(s);var ke={setOption:A,getOption:U,refetchEvents:G,getEvents:q,getEventById:te,addEvent:O,updateEvent:Y,removeEventById:B,getView:K,unselect:ue,dateFromPoint:de,next:V,prev:Ae},Xe=Nu(),He=J(Xe);let ae;var he=fe(He);Ou(he,{});var kt=ne(he,2);Li(kt,()=>a(re),(P,me)=>{me(P,{})});var Ct=ne(He,2);Fu(Ct,{}),le(P=>{N(He,1,on([u().calendar,u().view,c()&&u()[c()]])),Be(He,"role",P),ae=qt(He,"",ae,{height:f()})},[()=>Sa(v())?"list":"table"]),x(e,Xe);var Ke=be(ke);return _(),Ke}function Wu(e){return tt(e.hiddenDays,t=>7-t.length)}var Uu=j("<div><!></div>");function li(e,t){ye(t,!0);const n=()=>d(D,"$_today",o),r=()=>d(p,"$theme",o),i=()=>d(b,"$_interaction",o),[o,l]=Ee();let s=Pe(t,"el",15),u=Pe(t,"allDay",3,!1),c=Pe(t,"resource",3,void 0),f=Pe(t,"dateFromPoint",3,()=>t.date),v=Pe(t,"classes",3,wn),h=Pe(t,"disabled",3,!1),_=Pe(t,"highlight",3,!1),m=Pe(t,"role",3,"cell"),w=Pe(t,"noIeb",3,!1),g=Pe(t,"noBeb",3,!1),{_interaction:b,_today:D,theme:p}=Te("state"),C=y(()=>Et(t.date,n())),$=y(()=>v()([r().day,r().weekdays?.[t.date.getUTCDay()],a(C)&&r().today,_()&&r().highlight,h()&&r().disabled,w()&&r().noIeb,g()&&r().noBeb]));ar(()=>{Ca(s(),(E,L)=>({allDay:u(),date:f()(E,L),resource:c(),dayEl:s(),disabled:h()}))});var k=Uu();k.__pointerdown=function(...E){(h()?void 0:i().action?.select)?.apply(this,E)};var I=fe(k);yn(I,()=>t.children??_t),bt(k,E=>s(E),()=>s()),le(()=>{N(k,1,on(a($))),Be(k,"role",m())}),x(e,k),be(),l()}xn(["pointerdown"]);var zu=j("<div></div>"),Bu=j("<article><!></article>");function Va(e,t){ye(t,!0);const n=()=>d(q,"$resources",g),r=()=>d(k,"$eventBackgroundColor",g),i=()=>d(I,"$eventColor",g),o=()=>d(G,"$eventTextColor",g),l=()=>d(te,"$theme",g),s=()=>d(M,"$eventClassNames",g),u=()=>d(O,"$_view",g),c=()=>d($,"$displayEventEnd",g),f=()=>d(E,"$eventContent",g),v=()=>d(Y,"$_intlEventTime",g),h=()=>d(T,"$eventDidMount",g),_=()=>d(L,"$eventClick",g),m=()=>d(A,"$eventMouseEnter",g),w=()=>d(U,"$eventMouseLeave",g),[g,b]=Ee();let D=Pe(t,"el",15),p=Pe(t,"classes",3,wn),C=Pe(t,"styles",3,wn),{displayEventEnd:$,eventBackgroundColor:k,eventColor:I,eventContent:E,eventClick:L,eventDidMount:T,eventClassNames:M,eventMouseEnter:A,eventMouseLeave:U,eventTextColor:G,resources:q,theme:te,_view:O,_intlEventTime:Y}=Te("state"),B=y(()=>t.chunk.event),K=y(()=>t.chunk.event.display),ue=y(()=>a(B).backgroundColor??uu(a(B),n())??r()??i()),de=y(()=>a(B).textColor??cu(a(B),n())??o()),V=y(()=>zs(C()({"background-color":a(ue),color:a(de)})).map(Q=>`${Q[0]}:${Q[1]}`).concat(a(B).styles).join(";")),Ae=y(()=>p()([Ut(a(K))?l().bgEvent:l().event,...eu(s(),a(B),u())])),re=y(()=>js(t.chunk,c(),f(),l(),v(),u())),ke=y(()=>_l(a(re),2)),Xe=y(()=>a(ke)[0]),He=y(()=>a(ke)[1]);ar(()=>{De(h())&&h()({event:ut(a(B)),timeText:a(Xe),el:D(),view:wt(u())})});function ae(Q,ge){return!ri(ge)&&De(Q)?Ce=>Q({event:ut(a(B)),el:D(),jsEvent:Ce,view:wt(u())}):void 0}let he=y(()=>!Ut(a(K))&&ae(_(),a(K))||void 0),kt=y(()=>a(he)&&Ni(a(he))),Ct=y(()=>ae(m(),a(K))),Ke=y(()=>ae(w(),a(K)));var P=Bu();P.__click=function(...Q){a(he)?.apply(this,Q)},P.__keydown=function(...Q){a(kt)?.apply(this,Q)},P.__pointerdown=function(...Q){t.onpointerdown?.apply(this,Q)};{const Q=ge=>{var Ce=zu();Ye(Ce,()=>st(a(He))),le(()=>N(Ce,1,on(l().eventBody))),x(ge,Ce)};var me=fe(P);{var Qe=ge=>{var Ce=_e(),Ge=J(Ce);yn(Ge,()=>t.body,()=>Q,()=>a(ue),()=>a(de)),x(ge,Ce)},ve=ge=>{Q(ge)};$e(me,ge=>{t.body?ge(Qe):ge(ve,!1)})}bt(P,ge=>D(ge),()=>D())}le(()=>{N(P,1,on(a(Ae))),qt(P,a(V)),Be(P,"role",a(he)?"button":void 0),Be(P,"tabindex",a(he)?0:void 0)}),Pt("mouseenter",P,function(...Q){a(Ct)?.apply(this,Q)}),Pt("mouseleave",P,function(...Q){a(Ke)?.apply(this,Q)}),x(e,P),be(),b()}xn(["click","keydown","pointerdown"]);var Vu=j("<div><!></div>");function Lr(e,t){ye(t,!0);const n=()=>d(h,"$theme",i),r=()=>d(v,"$_today",i),[i,o]=Ee();let l=Pe(t,"weekday",3,!0),s=Pe(t,"colSpan",3,1),u=Pe(t,"ariaHidden",3,!1),c=Pe(t,"disabled",3,!1),f=Pe(t,"highlight",3,!1),{_today:v,theme:h}=Te("state");var _=Vu(),m=fe(_);yn(m,()=>t.children),le(w=>{N(_,1,w),Be(_,"role",u()?null:"columnheader"),Be(_,"aria-colspan",u()||s()<=1?null:s()),Be(_,"aria-colindex",u()?null:t.colIndex),Be(_,"aria-hidden",u()?"true":null)},[()=>on([t.className??n().colHead,l()&&n().weekdays?.[t.date.getUTCDay()],l()&&Et(t.date,r())&&n().today,f()&&n().highlight,c()&&n().disabled])]),x(e,_),be(),o()}var Gu=j("<time></time>");function si(e,t){ye(t,!0);const n=()=>d(u,"$_intlDayHeaderAL",i),r=()=>d(s,"$_intlDayHeader",i),[i,o]=Ee();let l=Pe(t,"alPrefix",3,""),{_intlDayHeader:s,_intlDayHeaderAL:u}=Te("state");var c=Gu();Ye(c,()=>st(r().format(t.date))),le((f,v)=>{Be(c,"datetime",f),Be(c,"aria-label",`${l()??""}${v??""}`)},[()=>At(t.date,10),()=>n().format(t.date)]),x(e,c),be(),o()}function ui(e,t){ye(t,!0);const n=()=>d(u,"$_iClasses",i),r=()=>d(s,"$_interaction",i),[i,o]=Ee();let l=Pe(t,"el",15),{_interaction:s,_iClasses:u}=Te("state"),c=y(()=>t.chunk.event),f=y(()=>t.chunk.event.display),v=y(()=>w=>n()(w,a(c)));function h(w){return r().action?.draggable(w)?g=>r().action.drag(w,g,t.forceDate,t.forceMargin):r().action?.noAction}let _=y(()=>!Ut(a(f))&&!ri(a(f))?h(a(c)):void 0),m=y(()=>r().resizer);Va(e,{get chunk(){return t.chunk},get classes(){return a(v)},get styles(){return t.styles},get onpointerdown(){return a(_)},get el(){return l()},set el(g){l(g)},body:(g,b=_t)=>{var D=_e(),p=J(D);{var C=k=>{var I=_e(),E=J(I);Li(E,()=>a(m),(L,T)=>{T(L,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(M,A)=>{var U=_e(),G=J(U);yn(G,b),x(M,U)},$$slots:{default:!0}})}),x(k,I)},$=k=>{var I=_e(),E=J(I);yn(E,b),x(k,I)};$e(p,k=>{a(m)?k(C):k($,!1)})}x(g,D)},$$slots:{body:!0}}),be(),o()}var Yu=j("<span></span>"),qu=j('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Xu=j("<div><time></time> <!></div> <div><!></div>",1);function Ku(e,t){ye(t,!0);const n=()=>d(h,"$date",f),r=()=>d(w,"$theme",f),i=()=>d(g,"$weekNumbers",f),o=()=>d(_,"$firstDay",f),l=()=>d(b,"$weekNumberContent",f),s=()=>d(D,"$_hiddenChunks",f),u=()=>d(m,"$moreLinkContent",f),c=()=>d(p,"$_intlDayCell",f),[f,v]=Ee();let{date:h,firstDay:_,moreLinkContent:m,theme:w,weekNumbers:g,weekNumberContent:b,_hiddenChunks:D,_intlDayCell:p,_popupDay:C}=Te("state"),$=y(()=>t.day.dayStart),k=y(()=>t.day.disabled),I=y(()=>t.day.highlight),E=y(()=>a($).getUTCMonth()!==n().getUTCMonth()),L=y(()=>q=>[...q,a(E)&&r().otherMonth]),T=y(()=>i()&&a($).getUTCDay()===(o()?1:0)),M=y(()=>{let q;if(a(T)){let te=Ws(a($),o());l()?q=De(l())?l()({date:Je(a($)),week:te}):l():q="W"+String(te).padStart(2,"0")}return q}),A=y(()=>s()[a($).getTime()]),U=y(()=>{let q="";if(a(A)){let te="+"+a(A).length+" more";u()?q=De(u())?u()({num:a(A).length,text:te}):u():q=te}return q});function G(){Me(C,t.day)}li(e,{get date(){return a($)},allDay:!0,get classes(){return a(L)},get disabled(){return a(k)},get highlight(){return a(I)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(q,te)=>{var O=Xu(),Y=J(O),B=fe(Y);Ye(B,()=>st(c().format(a($))));var K=ne(B,2);{var ue=re=>{var ke=Yu();Ye(ke,()=>st(a(M))),le(()=>N(ke,1,r().weekNumber)),x(re,ke)};$e(K,re=>{a(T)&&re(ue)})}var de=ne(Y,2),V=fe(de);{var Ae=re=>{var ke=qu(),Xe=y(()=>zi(G));ke.__click=function(...he){a(Xe)?.apply(this,he)};var He=y(()=>Ni(G));ke.__keydown=function(...he){a(He)?.apply(this,he)};var ae=y(zi);ke.__pointerdown=function(...he){a(ae)?.apply(this,he)},Ye(ke,()=>st(a(U))),x(re,ke)};$e(V,re=>{a(A)&&re(Ae)})}le(re=>{N(Y,1,r().dayHead),Be(B,"datetime",re),N(de,1,r().dayFoot)},[()=>At(a($),10)]),x(q,O)},$$slots:{default:!0}}),be(),v()}xn(["click","keydown","pointerdown"]);function ci(e,t){ye(t,!0);const n=()=>d(c,"$_colsCount",l),r=()=>d(h,"$dayMaxEvents",l),i=()=>d(f,"$_hiddenChunks",l),o=()=>d(v,"$_popupDay",l),[l,s]=Ee();let u=Pe(t,"inPopup",3,!1),{_colsCount:c,_hiddenChunks:f,_popupDay:v,dayMaxEvents:h}=Te("state"),_=Ie(void 0),m=Ie(0),w=Ie(!1),g=y(()=>t.chunk.event),b=y(()=>t.chunk.event.display),D=y(()=>t.gridEl?.children.item((t.chunk.gridRow-1)*n()+t.chunk.gridColumn-1));et(()=>{a(D)&&Z(m,Xn(a(D).firstElementChild),!0)});let p=y(()=>L=>{if(L["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,L["grid-row"]=t.chunk.gridRow,!Ut(a(b))){let T=u()?1:a(m);if(a(g)._margin){let[M,A]=a(g)._margin;M>T&&t.chunk.gridRow===A&&(T=M)}L["margin-block-start"]=`${T}px`}return a(w)&&(L.visibility="hidden"),L});function C(){Z(m,Ma(t.chunk,Xn(a(_)),Xn(a(D).firstElementChild)),!0)}function $(){if(r()===!0){let L=Xn(a(D))-k(a(D));if(Z(w,t.chunk.bottom>L),a(w))for(let T of t.chunk.dates){let M=T.getTime();i()[M]?i()[M].includes(t.chunk)||Ve(f,W(i)[M]=[...i()[M],t.chunk],W(i)):Ve(f,W(i)[M]=[t.chunk],W(i))}}else Z(w,!1),Gs(i())||Me(f,{})}function k(L){let T=0;for(let M=0;M<t.chunk.dates.length&&(T=Ot(T,Xn(L.lastElementChild)),L=L.nextElementSibling,!!L);++M);return T}var I={reposition:C,hide:$};{let L=y(()=>u()&&o().dayStart),T=y(()=>[a(m),t.chunk.gridRow]);ui(e,{get chunk(){return t.chunk},get styles(){return a(p)},axis:"x",get forceDate(){return a(L)},get forceMargin(){return a(T)},get el(){return a(_)},set el(M){Z(_,M,!0)}})}var E=be(I);return s(),E}var Zu=j('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>');function Ju(e,t){ye(t,!0);const n=()=>d(_,"$_popupDay",u),r=()=>d(f,"$_colsCount",u),i=()=>d(v,"$_interaction",u),o=()=>d(w,"$theme",u),l=()=>d(h,"$_intlDayPopover",u),s=()=>d(m,"$buttonText",u),[u,c]=Ee();let{_colsCount:f,_interaction:v,_intlDayPopover:h,_popupDay:_,buttonText:m,theme:w}=Te("state"),g=Ie(void 0),b=Ie(""),D=y(()=>n().gridColumn),p=y(()=>n().gridRow),C=y(()=>n().dayStart),$=y(()=>n().dayEnd),k=y(()=>{let Y=[];for(let B of t.chunks)B.gridRow===a(p)&&B.gridColumn<=a(D)&&B.gridColumn+B.dates.length>a(D)&&Y.push(gt({},B,Ir(B.event,a(C),a($))));return Y.sort((B,K)=>B.top-K.top),Y});ar(()=>{a(g).show()}),et(()=>{a(k).length?W(I):E()});function I(){let Y=t.gridEl.children.item((a(p)-1)*r()+a(D)-1),B=Ln(a(g)),K=Ln(Y),ue=Ln(t.gridEl);Z(b,"");let de;if(B.width>=ue.width){de=ue.left-K.left;let Ae=K.right-ue.right;Z(b,a(b)+`inset-inline-end:${Ae}px;`)}else de=(K.width-B.width)/2,K.left+de<ue.left?de=ue.left-K.left:K.left+de+B.width>ue.right&&(de=ue.right-K.left-B.width);Z(b,a(b)+`inset-inline-start:${de}px;`);let V;if(B.height>=ue.height){V=ue.top-K.top;let Ae=K.bottom-ue.bottom;Z(b,a(b)+`inset-block-end:${Ae}px;`)}else V=(K.height-B.height)/2,K.top+V<ue.top?V=ue.top-K.top:K.top+V+B.height>ue.bottom&&(V=ue.bottom-K.top-B.height);Z(b,a(b)+`inset-block-start:${V}px;`)}function E(){Me(_,null)}function L(){E(),i().action?.noClick()}var T=Zu();let M;var A=fe(T),U=fe(A);Ye(U,()=>st(l().format(a(C))));var G=ne(U,2);os(G);var q=y(()=>zi(E));G.__click=function(...Y){a(q)?.apply(this,Y)};var te=y(()=>Ni(E));G.__keydown=function(...Y){a(te)?.apply(this,Y)};var O=ne(A,2);oe(O,21,()=>a(k),se,(Y,B)=>{ci(Y,{get chunk(){return a(B)},inPopup:!0})}),bt(T,Y=>Z(g,Y),()=>a(g)),Ye(T,()=>Ns("pointerdown")),le(Y=>{N(T,1,o().popup),M=qt(T,a(b),M,{"grid-area":`${a(p)+1} / ${a(D)}`}),N(A,1,o().dayHead),Be(U,"datetime",Y),Be(G,"aria-label",s().close),N(O,1,o().events)},[()=>At(a(C),10)]),Pt("pointerdownoutside",T,L),Pt("close",T,E),x(e,T),be(),c()}xn(["click","keydown"]);function Qu(e,t,n,r){let i=[],o=[],l=1,s=1;for(let u of e)o.push({gridColumn:l,gridRow:s,resource:void 0,dayStart:u,dayEnd:Xt(X(u)),disabled:ur(u,n),highlight:r.some(c=>Et(c,u))}),l===t&&(i.push(o),o=[],l=0,++s),++l;return i}function ju(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ut(i.display)?i.allDay&&(r=r.concat(sr(i,o))):n=n.concat(sr(i,o));return La(n),{chunks:n,bgChunks:r}}function ec(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(sr(r,i));return n}var tc=j('<div role="columnheader"><span></span></div>'),nc=j('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function rc(e,t){ye(t,!0);const n=()=>d(M,"$_viewDates",g),r=()=>d(C,"$_colsCount",g),i=()=>d(te,"$validRange",g),o=()=>d(G,"$highlightedDates",g),l=()=>d($,"$_filteredEvents",g),s=()=>d(I,"$_iEvents",g),u=()=>d(U,"$firstDay",g),c=()=>d(k,"$_hiddenChunks",g),f=()=>d(p,"$_mainEl",g),v=()=>d(q,"$theme",g),h=()=>d(A,"$dayMaxEvents",g),_=()=>d(L,"$_intlDayHeaderAL",g),m=()=>d(E,"$_intlDayHeader",g),w=()=>d(T,"$_popupDay",g),[g,b]=Ee();let{_activeRangeExt:D,_mainEl:p,_colsCount:C,_filteredEvents:$,_hiddenChunks:k,_iEvents:I,_intlDayHeader:E,_intlDayHeaderAL:L,_popupDay:T,_viewDates:M,dayMaxEvents:A,firstDay:U,highlightedDates:G,theme:q,validRange:te}=Te("state"),O=Ie(void 0),Y=y(()=>Qu(n(),r(),i(),o())),B=y(()=>ju(l(),a(Y))),K=y(()=>a(B).chunks),ue=y(()=>a(B).bgChunks),de=y(()=>ec(s(),a(Y)));rr(()=>(Me(D,({start:ve,end:Q})=>({start:ba(ve,u()),end:Hs(Q,u())})),()=>{Me(D,wn)}));let V=[];function Ae(){Me(k,{}),Yi(V,a(K))}et(Ae),et(()=>{c(),V.forEach(ve=>ve.hide())});var re=nc();let ke;var Xe=fe(re),He=fe(Xe);oe(He,21,()=>a(Y)[0],se,(ve,Q,ge)=>{let Ce=()=>a(Q).dayStart;var Ge=tc();Be(Ge,"aria-colindex",1+ge);var ot=fe(Ge);Ye(ot,()=>st(m().format(Ce()))),le((je,qe)=>{N(Ge,1,je),Be(ot,"aria-label",qe)},[()=>on([v().colHead,v().weekdays?.[Ce().getUTCDay()]]),()=>_().format(Ce())]),x(ve,Ge)});var ae=ne(Xe,2),he=fe(ae);oe(he,21,()=>a(Y),se,(ve,Q,ge)=>{var Ce=_e(),Ge=J(Ce);oe(Ge,17,()=>a(Q),se,(ot,je,qe)=>{{let pt=y(()=>qe+1===a(Q).length),sn=y(()=>ge+1===a(Y).length);Ku(ot,{get day(){return a(je)},get noIeb(){return a(pt)},get noBeb(){return a(sn)}})}}),x(ve,Ce)}),bt(he,ve=>Z(O,ve),()=>a(O));var kt=ne(he,2),Ct=fe(kt);oe(Ct,17,()=>a(K),se,(ve,Q,ge)=>{bt(ci(ve,{get chunk(){return a(Q)},get gridEl(){return a(O)}}),(Ce,Ge)=>V[Ge]=Ce,Ce=>V?.[Ce],()=>[ge])});var Ke=ne(Ct,2);oe(Ke,17,()=>a(ue),se,(ve,Q)=>{ci(ve,{get chunk(){return a(Q)}})});var P=ne(Ke,2);oe(P,17,()=>a(de),se,(ve,Q)=>{ci(ve,{get chunk(){return a(Q)},get gridEl(){return a(O)}})});var me=ne(ae,2);{var Qe=ve=>{Ju(ve,{get gridEl(){return a(O)},get chunks(){return a(K)}})};$e(me,ve=>{w()&&ve(Qe)})}bt(re,ve=>Me(p,ve),()=>f()),Ye(re,()=>Hi(Ae)),le(()=>{N(re,1,on([v().main,h()===!0&&v().uniform])),ke=qt(re,"",ke,{"--ec-grid-cols":a(Y)[0].length,"--ec-grid-rows":a(Y).length}),N(Xe,1,v().header),N(He,1,v().grid),N(ae,1,v().body),N(he,1,v().grid),N(kt,1,v().events)}),x(e,re),be(),b()}const ic={createOptions(e){e.dayMaxEvents=!1,e.dayCellFormat={day:"numeric"},e.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},e.moreLinkContent=void 0,e.weekNumbers=!1,e.weekNumberContent=void 0,e.buttonText.dayGridMonth="month",e.buttonText.close="Close",e.theme.uniform="ec-uniform",e.theme.dayFoot="ec-day-foot",e.theme.otherMonth="ec-other-month",e.theme.popup="ec-popup",e.theme.weekNumber="ec-week-number",e.view="dayGridMonth",e.views.dayGridMonth={buttonText:qi,component:rc,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:zt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(e){e._colsCount=Wu(e),e._intlDayCell=Kn(e.locale,e.dayCellFormat),e._intlDayPopover=Kn(e.locale,e.dayPopoverFormat),e._hiddenChunks=lt({}),e._popupDay=lt(null)}};function Ga(e,t,n){return e.startEditable??t??e.editable??n}function oc(e,t,n){return e.durationEditable??t??e.editable??n}let Zi=!1;function ac(e){Zi||(Zi=!0,window.requestAnimationFrame(()=>{e(),Zi=!1}))}function Ya(e,t,n){return Ot(t,ln(n,e))}zl();function lc(e,t){ye(t,!1);const n=()=>d(He,"$eventStartEditable",O),r=()=>d(Xe,"$editable",O),i=()=>d(pt,"$slotDuration",O),o=()=>d(ge,"$selectable",O),l=()=>d(Zt,"$view",O),s=()=>d(V,"$_mainEl",O),u=()=>d(je,"$selectLongPressDelay",O),c=()=>d(Ke,"$eventLongPressDelay",O),f=()=>d(ve,"$longPressDelay",O),v=()=>d(qe,"$selectMinDistance",O),h=()=>d(ae,"$eventDragMinDistance",O),_=()=>d(B,"$_iEvents",O),m=()=>d(P,"$eventResizeStart",O),w=()=>d(he,"$eventDragStart",O),g=()=>d(Q,"$resizeConstraint",O),b=()=>d(ot,"$selectConstraint",O),D=()=>d(re,"$dragConstraint",O),p=()=>d(ke,"$dragScroll",O),C=()=>d(Mn,"$unselectAuto",O),$=()=>d(Bt,"$unselectCancel",O),k=()=>d(Ce,"$selectFn",O),I=()=>d(me,"$eventResizeStop",O),E=()=>d(kt,"$eventDragStop",O),L=()=>d(de,"$_view",O),T=()=>d(Qe,"$eventResize",O),M=()=>d(Ct,"$eventDrop",O),A=()=>d(Ae,"$dateClick",O),U=()=>d(Ft,"$validRange",O),G=()=>d(ue,"$_events",O),q=()=>d(Ge,"$selectBackgroundColor",O),te=()=>d(sn,"$unselectFn",O),[O,Y]=Ee();let{_iEvents:B,_iClass:K,_events:ue,_view:de,_mainEl:V,dateClick:Ae,dragConstraint:re,dragScroll:ke,editable:Xe,eventStartEditable:He,eventDragMinDistance:ae,eventDragStart:he,eventDragStop:kt,eventDrop:Ct,eventLongPressDelay:Ke,eventResizeStart:P,eventResizeStop:me,eventResize:Qe,longPressDelay:ve,resizeConstraint:Q,selectable:ge,select:Ce,selectBackgroundColor:Ge,selectConstraint:ot,selectLongPressDelay:je,selectMinDistance:qe,slotDuration:pt,unselect:sn,unselectAuto:Mn,unselectCancel:Bt,validRange:Ft,view:Zt}=Te("state");const Jt=1,Tt=2,xt=3,un=4,$n=5,Dn=6;let Ze,cn,S,H,z,ie,ce,Oe,Se,nt,Ne,we,ct,Qt,rt,ft,jt,We,En,cr,lo,Mr=Di(),$t,Pr,fr;function el(R){return Ga(R,n(),r())}function tl(R,F,Re,ee){Ze||(Ze=co(F)?Jt:Dn,Zn()&&(S=R,so(F),Re&&(z=Re),ee&&(Pr=ee),jt="dragging",dr(F)))}function nl(R,F,Re,ee,St,Nr,ho){Ze||(Ze=co(F)?Re?xt:Tt:Dn,Zn()&&(S=R,so(F),St&&(z=St),Nr&&(Pr=Nr),jt=ee==="x"?"resizingX":"resizingY",hi()?(We=X(S.end),ft?(Wi(We,S.start),We>=S.end&&In(We)):(ti(We,i()),We<S.start&&(We=S.start),z=S.start)):(We=X(S.start),ft?(Wi(We,S.end),We<=S.start&&!ho&&Xt(We)):(Fe(We,i()),We>S.end&&(We=S.end),z=S.end,ho||(z=ti(X(z),i()))),ho&&!ft&&(fr=i())),dr(F)))}function rl(R){Ze||(Ze=co(R)?o()&&!Sa(l())?un:$n:Dn,Zn()&&(so(R),jt="selecting",En=ft?it({day:1}):i(),S={allDay:ft,start:z,end:Fe(X(z),En),resourceIds:ce?[ce.id]:[]},dr(R)))}function il(){Ze||(Ze=Dn)}function so(R){window.getSelection().removeAllRanges(),Se=Ne=R.clientX,nt=we=R.clientY;let F=lr(Ne,we);({allDay:ft,date:z,resource:ce}=pn(F)(Ne,we)),Qt=s()!==xa(F,3),ct=xa(F,1),al(),R.pointerType!=="mouse"&&Z(Mr,setTimeout(()=>{Ze&&(cn=!0,dr(R))},(Pn()?u():c())??f()))}function dr(R){if(cn||R&&R.pointerType==="mouse"&&yf()>=(Pn()?v():h())){cn=!0,Fr(R),Me(K,jt),_()[0]||(Pn()?mf():_f(R,hr()?m():w()));let F=Ar(gf());if(F){let Re;if({allDay:Re,date:ie,resource:Oe}=F,Re===ft){let ee=Or({},_()[0]),St=g();rt=it((ie-z)/1e3),hi()?(ee.start=Fe(X(S.start),rt),ee.start>We&&(ee.start=We,rt=it((We-S.start)/1e3))):(ee.end=Fe(X(S.end),rt),fr&&Fe(ee.end,fr),hr()?ee.end<We&&(ee.end=We,rt=it((We-S.end)/1e3)):Pn()?(ee.end<S.end?(ee.start=ti(ee.end,En),ee.end=S.end):ee.start=S.start,St=b()):(ee.start=Fe(X(S.start),rt),ce&&(ee.resourceIds=S.resourceIds.filter(Nr=>Nr!==ce.id),ee.resourceIds.push(Oe.id)),St=D()));do{if(St!==void 0&&(ee=Or(Gi(S),ee),St(Pn()?ul(ee,R):cl(ee,S,R))===!1)){Ve(B,W(_)[0]=Or(_()[0],S),W(_));break}Ve(B,W(_)[0]=Or(_()[0],ee),W(_))}while(!1)}}}if(p()){let F=24,Re=24;ac(()=>{$t&&(Qt||(we<$t.top+F&&Ve(V,W(s).scrollTop+=Ot(-8,(we-$t.top-F)/3),W(s)),we>$t.bottom-F&&Ve(V,W(s).scrollTop+=ln(8,(we-$t.bottom+F)/3),W(s))),Ne<$t.left+Re&&Ve(V,W(s).scrollLeft+=Ot(-8,(Ne-$t.left-Re)/3),W(s)),Ne>$t.right-Re&&Ve(V,W(s).scrollLeft+=ln(8,(Ne-$t.right+Re)/3),W(s)),we<F&&window.scrollBy(0,Ot(-8,(we-F)/3)),we>window.innerHeight-F&&window.scrollBy(0,ln(8,(we-window.innerHeight+F)/3)))})}}function uo(){Zn()&&(al(),dr())}function vf(R){Zn()&&R.isPrimary&&(Ne=R.clientX,we=R.clientY,dr(R))}function ol(R){if(cr&&C()&&!($()&&R.target.closest($()))&&Fr(R),Ze&&R.isPrimary){if(cn)if(Pn()){if(cr=!0,De(k())){let F=ul(_()[0],R);k()(F)}}else{S.display=H;let F=hr()?I():E();De(F)&&F({event:ut(S),jsEvent:R,view:wt(L())});let Re=Gi(S);if(sl(S,_()[0]),ll(),F=hr()?T():M(),De(F)){let ee=S,St=cl(S,Re,R);F(gt(St,{revert(){sl(ee,Re)}}))}}else if((bf()||Pn())&&De(A())&&!lo){Ne=R.clientX,we=R.clientY;let F=lr(Ne,we);if(F){let{allDay:Re,date:ee,resource:St}=pn(F)(Ne,we);A()({allDay:Re,date:Je(ee),dateStr:At(ee),dayEl:F,jsEvent:R,view:wt(L()),resource:St})}}cn=!1,Ze=Se=nt=Ne=we=S=H=z=ie=ce=Oe=rt=fr=ft=Me(K,We=En=Pr=ct=$t=void 0),a(Mr)&&(clearTimeout(a(Mr)),Z(Mr,void 0))}lo=!1}function gf(){return lr(Ya(Ne,$t.left,$t.right),Ya(we,$t.top,$t.bottom))}function Ar(R){if(R){let F=pn(R)(Ne,we);if(F.disabled){if(!U().end||F.date<U().end)return Ar(R.nextElementSibling);if(!U().start||F.date>U().start)return Ar(R.previousElementSibling)}else return(Pn()||hr())&&F.resource&&!_()[0].resourceIds.includes(F.resource.id)&&!Zs(l())?Ne>Se?Ar(R.previousElementSibling):Ar(R.nextElementSibling):F}return null}function al(){let R=Ln(s()),F=Ln(ct),Re=R.width/s().offsetWidth,ee=R.height/s().offsetHeight,St=xr();$t={left:Ot(0,St?R.right-s().clientWidth*Re:F.left+s().scrollLeft*Re),right:ln(document.documentElement.clientWidth,St?F.right+s().scrollLeft*Re:R.left+s().clientWidth*Re)-2,top:Ot(0,F.top+(Qt?0:s().scrollTop)*ee),bottom:ln(document.documentElement.clientHeight,Qt?F.bottom:R.top+s().clientHeight*ee)-2}}function _f(R,F){De(F)&&F({event:ut(S),jsEvent:R,view:wt(L())}),H=S.display,S.display="preview",Ve(B,W(_)[0]=Gi(S),W(_)),Pr!==void 0&&Ve(B,W(_)[0]._margin=Pr,W(_)),fr&&Fe(_()[0].end,fr),S.display="ghost",Me(ue,G())}function mf(){Ve(B,W(_)[0]={id:"{select}",allDay:S.allDay,start:S.start,title:"",display:"preview",extendedProps:{},backgroundColor:q(),resourceIds:S.resourceIds,classNames:[],styles:[]},W(_))}function ll(){Ve(B,W(_)[0]=null,W(_))}function Or(R,F){return R.start=F.start,R.end=F.end,R.resourceIds=F.resourceIds,R}function sl(R,F){Or(R,F),Me(ue,G())}function ul(R,F){let{start:Re,end:ee}=ut(R);return{start:Re,end:ee,startStr:At(R.start),endStr:At(R.end),allDay:ft,view:wt(L()),resource:ce,jsEvent:F}}function cl(R,F,Re){let ee;return hr()?ee=hi()?{startDelta:rt,endDelta:it(0)}:{startDelta:it(0),endDelta:rt}:ee={delta:rt,oldResource:ce!==Oe?ce:void 0,newResource:ce!==Oe?Oe:void 0},gt(ee,{event:ut(R),oldEvent:ut(F),view:wt(L()),jsEvent:Re}),ee}function yf(){return Math.sqrt(Math.pow(Ne-Se,2)+Math.pow(we-nt,2))}function hr(){return Ze===Tt||hi()}function hi(){return Ze===xt}function bf(){return Ze===$n}function Pn(){return Ze===un}function Zn(){return Ze&&Ze<$n}function co(R){return R.isPrimary&&(R.pointerType!=="mouse"||R.buttons&1)}function Fr(R){cr&&(cr=!1,ll(),De(te())&&te()({jsEvent:R,view:wt(L())}))}function fl(){lo=!0}de.subscribe(Fr);function wf(R){if(Zn()){let F=R.target,Re=[],ee=()=>ka(Re);Re.push(Sr(F,"touchmove",fo(()=>cn))),Re.push(Sr(F,"touchend",ee)),Re.push(Sr(F,"touchcancel",ee))}}function fo(R){return F=>{R()&&F.preventDefault()}}ar(()=>Sr(window,"touchmove",qs,{passive:!1}));var pf={draggable:el,drag:tl,resize:nl,select:rl,noAction:il,handleScroll:uo,unselect:Fr,noClick:fl};Ps(),Pt("pointermove",Gt,vf),Pt("pointerup",Gt,ol),Pt("pointercancel",Gt,ol),Pt("scroll",Gt,uo);var $f=y(()=>fo(Zn));Pt("selectstart",Gt,function(...R){a($f)?.apply(this,R)});var Df=y(()=>fo(()=>a(Mr)));Pt("contextmenu",Gt,function(...R){a(Df)?.apply(this,R)}),Pt("touchstart",Gt,wf,void 0,!0),Rn(t,"draggable",el),Rn(t,"drag",tl),Rn(t,"resize",nl),Rn(t,"select",rl),Rn(t,"noAction",il),Rn(t,"handleScroll",uo),Rn(t,"unselect",Fr),Rn(t,"noClick",fl);var Ef=be(pf);return Y(),Ef}function sc(e,t){ye(t,!0);const n=()=>d(l,"$_iEvents",i),r=()=>d(s,"$slotDuration",i),[i,o]=Ee();let{_iEvents:l,slotDuration:s}=Te("state"),u=0,c=0;et(()=>{n()[0]&&m()});function f(){let D=lr(u,c);if(D){let{allDay:p,date:C,resource:$,disabled:k}=pn(D)(u,c);if(!k){n()[1]||_(),Ve(l,W(n)[1].allDay=p,W(n)),Ve(l,W(n)[1].start=C,W(n)),Ve(l,W(n)[1].end=Fe(X(C),r()),W(n)),Ve(l,W(n)[1].resourceIds=$?[$.id]:[],W(n));return}}m()}function v(){f()}function h(D){w(D)&&(u=D.clientX,c=D.clientY,f())}function _(){Ve(l,W(n)[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},W(n))}function m(){n()[1]&&Ve(l,W(n)[1]=null,W(n))}function w(D){return D.isPrimary&&D.pointerType==="mouse"}var g={handleScroll:v};Pt("pointermove",Gt,h),Pt("scroll",Gt,v);var b=be(g);return o(),b}var uc=j("<div></div>"),cc=j("<div></div>"),fc=j("<!> <!> <!>",1);function dc(e,t){ye(t,!0);const n=()=>d(h,"$eventDurationEditable",s),r=()=>d(m,"$editable",s),i=()=>d(w,"$_interaction",s),o=()=>d(_,"$eventResizableFromStart",s),l=()=>d(v,"$theme",s),[s,u]=Ee();let c=Pe(t,"forceDate",3,void 0),f=Pe(t,"forceMargin",3,void 0),{theme:v,eventDurationEditable:h,eventResizableFromStart:_,editable:m,_interaction:w}=Te("state"),g=y(()=>t.chunk.event),b=y(()=>t.chunk.event.display),D=y(()=>!Ut(a(b))&&!ri(a(b))&&oc(a(g),n(),r()));function p(T){return M=>i().action.resize(a(g),M,T,t.axis,c(),f(),t.chunk.zeroDuration)}var C=fc(),$=J(C);{var k=T=>{var M=uc(),A=y(()=>p(!0));M.__pointerdown=function(...U){a(A)?.apply(this,U)},le(()=>N(M,1,`${l().resizer??""} ${l().start??""}`)),x(T,M)};$e($,T=>{a(D)&&o()&&T(k)})}var I=ne($,2);yn(I,()=>t.children);var E=ne(I,2);{var L=T=>{var M=cc(),A=y(()=>p(!1));M.__pointerdown=function(...U){a(A)?.apply(this,U)},le(()=>N(M,1,l().resizer)),x(T,M)};$e(E,T=>{a(D)&&T(L)})}x(e,C),be(),u()}xn(["pointerdown"]);var hc=j("<!> <!>",1);function vc(e,t){ye(t,!0);const n=()=>d(w,"$_interaction",u),r=()=>d(f,"$theme",u),i=()=>d(h,"$eventStartEditable",u),o=()=>d(v,"$editable",u),l=()=>d(m,"$_mainEl",u),s=()=>d(_,"$pointer",u),[u,c]=Ee();let{theme:f,editable:v,eventStartEditable:h,pointer:_,_mainEl:m,_interaction:w,_iClasses:g}=Te("state");Ve(w,W(n).resizer=dc,W(n)),et(()=>{r(),i(),o(),Me(g,(k,I)=>{let{display:E}=I;return[...k,ri(E)?[r()[E]]:!Ut(E)&&Ga(I,i(),o())?[r().draggable]:[]]})}),et(()=>{if(l())return Sr(l(),"scroll",b)});function b(){for(let k of Object.values(n()))k?.handleScroll?.()}var D=hc(),p=J(D);bt(lc(p,{}),k=>Ve(w,W(n).action=k,W(n)),()=>n()?.action);var C=ne(p,2);{var $=k=>{bt(sc(k,{}),I=>Ve(w,W(n).pointer=I,W(n)),()=>n()?.pointer)};$e(C,k=>{s()&&k($)})}x(e,D),be(),c()}const gc={createOptions(e){e.dateClick=void 0,e.dragConstraint=void 0,e.dragScroll=!0,e.editable=!1,e.eventDragMinDistance=5,e.eventDragStart=void 0,e.eventDragStop=void 0,e.eventDrop=void 0,e.eventDurationEditable=!0,e.eventLongPressDelay=void 0,e.eventResizableFromStart=!1,e.eventResizeStart=void 0,e.eventResizeStop=void 0,e.eventResize=void 0,e.eventStartEditable=!0,e.longPressDelay=1e3,e.pointer=!1,e.resizeConstraint=void 0,e.select=void 0,e.selectBackgroundColor=void 0,e.selectConstraint=void 0,e.selectLongPressDelay=void 0,e.selectMinDistance=5,e.unselect=void 0,e.unselectAuto=!0,e.unselectCancel="",e.theme.draggable="ec-draggable",e.theme.ghost="ec-ghost",e.theme.preview="ec-preview",e.theme.pointer="ec-pointer",e.theme.resizer="ec-resizer",e.theme.start="ec-start",e.theme.dragging="ec-dragging",e.theme.resizingY="ec-resizing-y",e.theme.resizingX="ec-resizing-x",e.theme.selecting="ec-selecting"},createStores(e){e._auxiliary.update(t=>[...t,vc])}};var _c=j("<div></div> <!>",1);function mc(e,t){ye(t,!0);const n=()=>d(s,"$_interaction",i),r=()=>d(l,"$theme",i),[i,o]=Ee();let{theme:l,_interaction:s}=Te("state"),u=y(()=>c=>(delete c["background-color"],delete c.color,c));{const c=(v,h=_t,_=_t,m=_t)=>{var w=_c(),g=J(w);let b;var D=ne(g,2);yn(D,h),le(()=>{N(g,1,r().eventTag),b=qt(g,"",b,{"background-color":_()})}),x(v,w)};let f=y(()=>n().action?.noAction);Va(e,{get chunk(){return t.chunk},get styles(){return a(u)},get onpointerdown(){return a(f)},body:c,$$slots:{body:!0}})}be(),o()}var yc=j("<h4><time></time> <time></time></h4> <!>",1);function bc(e,t){ye(t,!0);const n=()=>d(_,"$highlightedDates",u),r=()=>d(w,"$validRange",u),i=()=>d(f,"$_filteredEvents",u),o=()=>d(m,"$theme",u),l=()=>d(v,"$_intlListDay",u),s=()=>d(h,"$_intlListDaySide",u),[u,c]=Ee();let{_filteredEvents:f,_intlListDay:v,_intlListDaySide:h,highlightedDates:_,theme:m,validRange:w}=Te("state"),g=y(()=>n().some(I=>Et(I,t.date))),b=y(()=>ur(t.date,r())),D=y(()=>At(t.date,10)),p=y(()=>{let I=[];if(!a(b)){let E=t.date,L=Xt(X(t.date));for(let T of i())if(!Ut(T.display)&&Rr(T,E,L)){let M=Ir(T,E,L);I.push(M)}}return I});var C=_e(),$=J(C);{var k=I=>{li(I,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return a(b)},get highlight(){return a(g)},children:(E,L)=>{var T=yc(),M=J(T),A=fe(M);Ye(A,()=>st(l().format(t.date)));var U=ne(A,2);Ye(U,()=>st(s().format(t.date)));var G=ne(M,2);oe(G,17,()=>a(p),q=>q.event,(q,te)=>{mc(q,{get chunk(){return a(te)}})}),le(()=>{N(M,1,o().dayHead),Be(A,"datetime",a(D)),N(U,1,o().daySide),Be(U,"datetime",a(D))}),x(E,T)},$$slots:{default:!0}})};$e($,I=>{a(p).length&&I(k)})}x(e,C),be(),c()}var wc=j("<div></div>"),pc=j("<section><!></section>");function fi(e,t){ye(t,!0);const n=()=>d(m,"$_viewDates",c),r=()=>d(h,"$_filteredEvents",c),i=()=>d(g,"$noEventsContent",c),o=()=>d(w,"$noEventsClick",c),l=()=>d(_,"$_view",c),s=()=>d(v,"$_mainEl",c),u=()=>d(b,"$theme",c),[c,f]=Ee();let{_mainEl:v,_filteredEvents:h,_view:_,_viewDates:m,noEventsClick:w,noEventsContent:g,theme:b}=Te("state"),D=y(()=>{let L=!0;if(n().length){let T=n()[0],M=Xt(X(n().at(-1)));for(let A of r())if(!Ut(A.display)&&A.start<M&&A.end>T){L=!1;break}}return L}),p=y(()=>De(i())?i()():i());function C(L){De(o())&&o()({jsEvent:L,view:wt(l())})}var $=pc(),k=fe($);{var I=L=>{var T=wc();T.__click=C,Ye(T,()=>st(a(p))),le(()=>N(T,1,u().noEvents)),x(L,T)},E=L=>{var T=_e(),M=J(T);oe(M,1,n,se,(A,U)=>{bc(A,{get date(){return a(U)}})}),x(L,T)};$e(k,L=>{a(D)?L(I):L(E,!1)})}bt($,L=>Me(v,L),()=>s()),le(()=>N($,1,u().main)),x(e,$),be(),f()}xn(["click"]);const $c={createOptions(e){e.buttonText.listDay="list",e.buttonText.listWeek="list",e.buttonText.listMonth="list",e.buttonText.listYear="list",e.listDayFormat={weekday:"long"},e.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},e.noEventsClick=void 0,e.noEventsContent="No events",e.theme.daySide="ec-day-side",e.theme.eventTag="ec-event-tag",e.theme.noEvents="ec-no-events",e.view="listWeek",e.views.listDay={buttonText:ii,component:fi,duration:{days:1},theme:zt("ec-list ec-day-view")},e.views.listWeek={buttonText:oi,component:fi,duration:{weeks:1},theme:zt("ec-list ec-week-view")},e.views.listMonth={buttonText:qi,component:fi,duration:{months:1},theme:zt("ec-list ec-month-view")},e.views.listYear={buttonText:au,component:fi,duration:{years:1},theme:zt("ec-list ec-year-view")}},createStores(e){e._intlListDay=Kn(e.locale,e.listDayFormat),e._intlListDaySide=Kn(e.locale,e.listDaySideFormat)}};function qa(e){"allDaySlot"in e||gt(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0})}function Ji(e){"scrollTime"in e||(gt(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"}),gt(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function Qi(e){"scrollTime"in e||gt(e,{scrollTime:it,slotDuration:it,slotLabelInterval:t=>t!==void 0?it(t):void 0,slotMaxTime:it,slotMinTime:it})}function Dc(e){return tt([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],t=>Ha(...t))}function Ec(e){return tt([e.slotDuration,e.slotLabelInterval],([t,n])=>n===void 0?xe(t)<3600?2:1:Bs(xe(n)/xe(t))||1)}function kc(e){return tt([e.slotDuration,e._slotLabelPeriodicity,e._slotTimeLimits,e._intlSlotLabel],t=>Na(Kt(an()),...t))}function ji(e){"_sidebarWidth"in e||(e._intlSlotLabel=Kn(e.locale,e.slotLabelFormat),e._slotLabelPeriodicity=Ec(e),e._sidebarWidth=lt(0))}function Xa(e){"_slots"in e||(e._slotTimeLimits=Dc(e),e._slots=kc(e))}function Ka(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Cc(e){return tt([e.resources,e.filterResourcesWithEvents,e._filteredEvents,e._activeRange],([t,n,r,i])=>{let o=t.filter(l=>!pn(l).hidden);return n&&(o=t.filter(l=>r.some(s=>Rr(s,i.start,i.end,l)))),o.length||(o=Aa([{}])),o})}function Za(e){"_viewResources"in e||(e._viewResources=Cc(e))}function Tc(e,t,n,r,i,o){let l=[],s=1,u=r?[e,t]:[t,e];for(let c of u[0]){let f=[];for(let v of u[1]){let h=r?c:v,_=r?v:c;f.push({gridColumn:s,gridRow:1,resource:_,start:Fe(X(h),n.min),end:Fe(X(h),n.max),dayStart:h,dayEnd:Xt(X(h)),disabled:ur(h,i),highlight:o.some(m=>Et(m,h))}),++s}l.push(f)}return l}var xc=j("<span></span>");function Ja(e,t){ye(t,!0);const n=()=>d(c,"$resourceLabelContent",o),r=()=>d(v,"$_intlDayHeaderAL",o),i=()=>d(f,"$resourceLabelDidMount",o),[o,l]=Ee();let s=Pe(t,"date",3,void 0),u=Pe(t,"setLabel",3,void 0),{resourceLabelContent:c,resourceLabelDidMount:f,_intlDayHeaderAL:v}=Te("state"),h=Ie(void 0),_=y(()=>n()?De(n())?n()({resource:t.resource,date:s()?Je(s()):void 0}):n():t.resource.title),m=Ie(void 0);et(()=>{a(_),W(()=>{s()?Z(m,r().format(s())+", "+a(h).innerText):u()&&(Z(m,void 0),u()(a(h).innerText))})}),ar(()=>{De(i())&&i()({resource:t.resource,date:s()?Je(s()):void 0,el:a(h)})});var w=xc();bt(w,g=>Z(h,g),()=>a(h)),Ye(w,()=>st(a(_))),le(()=>Be(w,"aria-label",a(m))),x(e,w),be(),l()}function Sc(e,t,n,r){let i=[],o=1;for(let l of e)i.push({gridColumn:o,gridRow:1,resource:void 0,start:Fe(X(l),t.min),end:Fe(X(l),t.max),dayStart:l,dayEnd:Xt(X(l)),disabled:ur(l,n),highlight:r.some(s=>Et(s,l))}),++o;return[i]}function Rc(e,t){let n=[],r=[],i=[],o=[];for(let l of e)for(let s of t)Ut(l.display)?(r=r.concat(eo(l,s)),l.allDay&&(o=o.concat(sr(l,s)))):l.allDay?i=i.concat(sr(l,s)):n=n.concat(eo(l,s));return Lc(n),La(i),{chunks:n,bgChunks:r,allDayChunks:i,allDayBgChunks:o}}function Ic(e,t){let n=[],r=[];for(let i of e)if(i)for(let o of t)i.allDay?r=r.concat(sr(i,o)):n=n.concat(eo(i,o));return{iChunks:n,allDayIChunks:r}}function eo(e,t){let n=[];for(let{gridColumn:r,gridRow:i,resource:o,start:l,end:s,disabled:u}of t)if(!u&&Rr(e,l,s,o)){let c=Ir(e,l,s);gt(c,{gridColumn:r,gridRow:i,top:(c.start-l)/1e3,height:(c.end-c.start)/1e3,maxHeight:(s-c.start)/1e3}),n.push(c)}return n}function Lc(e){let t={};for(let n of e){let{gridColumn:r}=n,i=t[r],o=0;if(i&&n.start<i.end){for(;o<i.columns.length&&!(i.columns[o].at(-1).end<=n.start);++o);n.end>i.end&&(i.end=n.end)}else i={columns:[],end:n.end};i.columns.length<o+1&&i.columns.push([]),i.columns[o].push(n),t[r]=i,n.group=i,n.groupColumn=o}}function Mc(e){let t="all-day",n;return e?(n=De(e)?e({text:t}):e,typeof n=="string"&&(n={html:n})):n={html:t},n}function Qa(e,t){ye(t,!0);const n=()=>d(s,"$slotDuration",i),r=()=>d(u,"$slotHeight",i),[i,o]=Ee();let l=Pe(t,"allDay",3,!1),{slotDuration:s,slotHeight:u}=Te("state"),c=y(()=>t.day.dayStart),f=y(()=>t.day.start),v=y(()=>t.day.resource),h=y(()=>t.day.disabled),_=y(()=>t.day.highlight),m=Ie(void 0);function w(g,b){if(l())return a(c);{let D=Ln(a(m)),p=D.height/a(m).offsetHeight;return Fe(X(a(f)),n(),Ui((b-D.top)/(r()*p)))}}li(e,{get date(){return a(c)},get allDay(){return l()},get resource(){return a(v)},dateFromPoint:w,get disabled(){return a(h)},get highlight(){return a(_)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(m)},set el(g){Z(m,g,!0)}}),be(),o()}function to(e,t){ye(t,!0);const n=()=>d(u,"$slotDuration",o),r=()=>d(c,"$slotHeight",o),i=()=>d(s,"$slotEventOverlap",o),[o,l]=Ee();let{slotEventOverlap:s,slotDuration:u,slotHeight:c}=Te("state"),f=y(()=>v=>{let h=xe(n()),_=t.chunk.top/h*r(),m=t.chunk.height/h*r()||r(),w=t.chunk.maxHeight/h*r();v["grid-column"]=t.chunk.gridColumn,v["inset-block-start"]=`${_}px`,v["min-block-size"]=`${m}px`,v["block-size"]=`${m}px`,v["max-block-size"]=`${w}px`;let g="100% - var(--ec-event-col-gap)";if(t.chunk.group){let b=t.chunk.group.columns.length;v["z-index"]=`${t.chunk.groupColumn+1}`,v["inset-inline-start"]=`calc((${g}) / ${b} * ${t.chunk.groupColumn})`,v["inline-size"]=`calc((${g}) / ${b} * ${i()?.5*(1+b-t.chunk.groupColumn):1})`}return v});ui(e,{get chunk(){return t.chunk},get styles(){return a(f)},axis:"y"}),be(),l()}function no(e,t){ye(t,!0);let n=Ie(void 0),r=Ie(0),i=y(()=>t.chunk.event),o=y(()=>u=>(u["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(a(r)||a(i)._margin)&&(u["margin-block-start"]=`${a(i)._margin??a(r)}px`),u));function l(){Z(r,Ma(t.chunk,Xn(a(n))),!0)}var s={reposition:l};return ui(e,{get chunk(){return t.chunk},get styles(){return a(o)},axis:"x",get forceMargin(){return a(r)},get el(){return a(n)},set el(u){Z(n,u,!0)}}),be(s)}var Pc=j("<div></div>");function di(e,t){ye(t,!0);const n=()=>d(m,"$_today",c),r=()=>d(_,"$_now",c),i=()=>d(g,"$slotDuration",c),o=()=>d(b,"$slotHeight",c),l=()=>d(h,"$_mainEl",c),s=()=>d(w,"$_sidebarWidth",c),u=()=>d(D,"$theme",c),[c,f]=Ee();let v=Pe(t,"span",3,1),{_mainEl:h,_now:_,_today:m,_sidebarWidth:w,slotDuration:g,slotHeight:b,theme:D}=Te("state"),p=y(()=>{for(let U of t.days)if(Et(U.dayStart,n()))return U;return{}}),C=y(()=>a(p).gridColumn),$=y(()=>a(p).start),k=y(()=>a(p).end),I=y(()=>{if(r()<a($)||r()>a(k))return null;let U=xe(i());return(r()-a($))/1e3/U*o()}),E=y(()=>({root:l(),rootMargin:xr()?`0px -${s()+5.5}px 0px 0px`:`0px 0px 0px -${s()+5.5}px`,threshold:0}));function L(U,G){U.classList.toggle(u().hidden,!G.isIntersecting)}var T=_e(),M=J(T);{var A=U=>{var G=Pc();let q;Ye(G,()=>ya(L,a(E))),le(()=>{N(G,1,u().nowIndicator),q=qt(G,"",q,{"grid-column":`${a(C)+1} / span ${v()??""}`,"inset-block-start":`${a(I)??""}px`})}),x(U,G)};$e(M,U=>{a(C)&&a(I)!==null&&U(A)})}x(e,T),be(),f()}var Ac=j('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Oc=j("<div><time></time></div>"),Fc=j('<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 ro(e,t){ye(t,!0);const n=()=>d(te,"$allDayContent",$),r=()=>d(q,"$_viewDates",$),i=()=>d(U,"$_slotTimeLimits",$),o=()=>d(ke,"$validRange",$),l=()=>d(B,"$highlightedDates",$),s=()=>d(L,"$_filteredEvents",$),u=()=>d(T,"$_iEvents",$),c=()=>d(Ae,"$slotMaxTime",$),f=()=>d(ue,"$scrollTime",$),v=()=>d(E,"$_mainEl",$),h=()=>d(V,"$slotDuration",$),_=()=>d(de,"$slotHeight",$),m=()=>d(re,"$theme",$),w=()=>d(Y,"$columnWidth",$),g=()=>d(A,"$_slotLabelPeriodicity",$),b=()=>d(M,"$_sidebarWidth",$),D=()=>d(O,"$allDaySlot",$),p=()=>d(G,"$_slots",$),C=()=>d(K,"$showNowIndicator",$),[$,k]=Ee();let{_activeRangeExt:I,_mainEl:E,_filteredEvents:L,_iEvents:T,_sidebarWidth:M,_slotLabelPeriodicity:A,_slotTimeLimits:U,_slots:G,_viewDates:q,allDayContent:te,allDaySlot:O,columnWidth:Y,highlightedDates:B,nowIndicator:K,scrollTime:ue,slotHeight:de,slotDuration:V,slotMaxTime:Ae,theme:re,validRange:ke}=Te("state"),Xe=Ie(0),He=y(()=>Mc(n())),ae=y(()=>t.createGridFn?.()??Sc(r(),i(),o(),l())),he=y(()=>Rc(s(),a(ae))),kt=y(()=>a(he).chunks),Ct=y(()=>a(he).bgChunks),Ke=y(()=>a(he).allDayChunks),P=y(()=>a(he).allDayBgChunks),me=y(()=>Ic(u(),a(ae))),Qe=y(()=>a(me).iChunks),ve=y(()=>a(me).allDayIChunks);rr(()=>(Me(I,({start:H,end:z})=>{if(c().days||c().seconds>Tr){Fe(In(z),c());let ie=In(X(z));ie<H&&(H=ie)}return{start:H,end:z}}),()=>{Me(I,wn)})),et(()=>{r(),f(),Jr().then(Q)});function Q(){Ve(E,W(v).scrollTop=((xe(f())-xe(i().min))/xe(h())-.5)*_(),W(v))}let ge=[];function Ce(){Yi(ge,a(Ke))}et(Ce);var Ge=Fc();let ot;var je=fe(Ge),qe=fe(je),pt=ne(qe,2),sn=fe(pt);{var Mn=H=>{var z=_e(),ie=J(z);yn(ie,()=>t.header,()=>a(ae)),x(H,z)},Bt=H=>{var z=_e(),ie=J(z);oe(ie,17,()=>a(ae)[0],se,(ce,Oe,Se)=>{let nt=()=>a(Oe).dayStart,Ne=()=>a(Oe).disabled,we=()=>a(Oe).highlight;Lr(ce,{get date(){return nt()},colIndex:1+Se,get disabled(){return Ne()},get highlight(){return we()},children:(ct,Qt)=>{si(ct,{get date(){return nt()}})},$$slots:{default:!0}})}),x(H,z)};$e(sn,H=>{t.header?H(Mn):H(Bt,!1)})}var Ft=ne(pt,2);{var Zt=H=>{var z=Ac(),ie=fe(z);Ye(ie,()=>st(a(He)));var ce=ne(ie,2);oe(ce,21,()=>a(ae),se,(we,ct,Qt)=>{var rt=_e(),ft=J(rt);oe(ft,17,()=>a(ct),se,(jt,We,En)=>{{let cr=y(()=>Qt+1===a(ae).length&&En+1===a(ct).length);Qa(jt,{get day(){return a(We)},allDay:!0,get noIeb(){return a(cr)}})}}),x(we,rt)});var Oe=ne(ce,2),Se=fe(Oe);oe(Se,17,()=>a(Ke),se,(we,ct,Qt)=>{bt(no(we,{get chunk(){return a(ct)}}),(rt,ft)=>ge[ft]=rt,rt=>ge?.[rt],()=>[Qt])});var nt=ne(Se,2);oe(nt,17,()=>a(P),se,(we,ct)=>{no(we,{get chunk(){return a(ct)}})});var Ne=ne(nt,2);oe(Ne,17,()=>a(ve),se,(we,ct)=>{no(we,{get chunk(){return a(ct)}})}),le(()=>{N(z,1,m().allDay),N(ie,1,m().sidebar),N(ce,1,m().grid),N(Oe,1,m().events)}),x(H,z)};$e(Ft,H=>{D()&&H(Zt)})}var Jt=ne(je,2),Tt=fe(Jt);oe(Tt,5,p,se,(H,z,ie)=>{var ce=Oc();let Oe;var Se=fe(ce);Ye(Se,()=>st(a(z)[1])),le(()=>{N(ce,1,on([m().slot,!ie&&m().hidden])),Oe=qt(ce,"",Oe,{"--ec-slot-label-periodicity":a(z)[2]}),Be(Se,"datetime",a(z)[0])}),x(H,ce)});var xt=ne(Tt,2);oe(xt,21,()=>a(ae),se,(H,z,ie)=>{var ce=_e(),Oe=J(ce);oe(Oe,17,()=>a(z),se,(Se,nt,Ne)=>{{let we=y(()=>ie+1===a(ae).length&&Ne+1===a(z).length);Qa(Se,{get day(){return a(nt)},get noIeb(){return a(we)},noBeb:!0})}}),x(H,ce)});var un=ne(xt,2),$n=fe(un);oe($n,17,()=>a(kt),se,(H,z)=>{to(H,{get chunk(){return a(z)}})});var Dn=ne($n,2);oe(Dn,17,()=>a(Ct),se,(H,z)=>{to(H,{get chunk(){return a(z)}})});var Ze=ne(Dn,2);oe(Ze,17,()=>a(Qe),se,(H,z)=>{to(H,{get chunk(){return a(z)}})});var cn=ne(Jt,2);{var S=H=>{var z=_e(),ie=J(z);{var ce=Se=>{var nt=_e(),Ne=J(nt);yn(Ne,()=>t.nowIndicator,()=>a(ae)),x(Se,nt)},Oe=Se=>{di(Se,{get days(){return a(ae)[0]}})};$e(ie,Se=>{t.nowIndicator?Se(ce):Se(Oe,!1)})}x(H,z)};$e(cn,H=>{C()&&H(S)})}bt(Ge,H=>Me(E,H),()=>v()),Ye(Ge,()=>Hi(Ce)),le(()=>{N(Ge,1,m().main),ot=qt(Ge,"",ot,{"--ec-grid-cols":a(ae).length*a(ae)[0].length,"--ec-col-group-span":a(ae)[0].length,"--ec-col-width":w()??"minmax(0, 1fr)","--ec-slot-label-periodicity":g(),"--ec-slot-height":`${_()??""}px`,"--ec-header-height":`${a(Xe)??""}px`,"--ec-sidebar-width":`${b()??""}px`}),N(je,1,m().header),N(qe,1,m().sidebar),N(pt,1,m().grid),N(Jt,1,m().body),N(Tt,1,m().sidebar),N(xt,1,m().grid),N(un,1,m().events)}),jr(qe,"offsetWidth",H=>Me(M,H)),jr(je,"offsetHeight",H=>Z(Xe,H)),x(e,Ge),be(),k()}var Nc=j("<!> <!>",1);function ja(e,t){ye(t,!0);const n=()=>d(v,"$_viewDates",c),r=()=>d(h,"$_viewResources",c),i=()=>d(_,"$_slotTimeLimits",c),o=()=>d(m,"$datesAboveResources",c),l=()=>d(g,"$validRange",c),s=()=>d(w,"$highlightedDates",c),u=()=>d(b,"$theme",c),[c,f]=Ee();let{_viewDates:v,_viewResources:h,_slotTimeLimits:_,datesAboveResources:m,highlightedDates:w,validRange:g,theme:b}=Te("state"),D=Bn([]);ro(e,{createGridFn:()=>Tc(n(),r(),i(),o(),l(),s()),header:($,k=_t)=>{var I=Nc(),E=J(I);oe(E,17,k,se,(M,A,U)=>{const G=y(()=>{const{dayStart:q,resource:te,disabled:O,highlight:Y}=a(A)[0];return{date:q,resource:te,disabled:O,highlight:Y}});{let q=y(()=>k()[0].length>1?u().colGroup:void 0),te=y(()=>1+U*a(A).length),O=y(()=>o()&&a(G).disabled),Y=y(()=>o()&&a(G).highlight);Lr(M,{get date(){return a(G).date},get className(){return a(q)},get weekday(){return o()},get colSpan(){return a(A).length},get colIndex(){return a(te)},get disabled(){return a(O)},get highlight(){return a(Y)},children:(B,K)=>{var ue=_e(),de=J(ue);{var V=re=>{si(re,{get date(){return a(G).date}})},Ae=re=>{Ja(re,{get resource(){return a(G).resource},setLabel:ke=>D[U]=ke+", "})};$e(de,re=>{o()?re(V):re(Ae,!1)})}x(B,ue)},$$slots:{default:!0}})}});var L=ne(E,2);{var T=M=>{var A=_e(),U=J(A);oe(U,17,k,se,(G,q,te)=>{var O=_e(),Y=J(O);oe(Y,17,()=>a(q),se,(B,K,ue)=>{const de=y(()=>{const{dayStart:V,resource:Ae,disabled:re,highlight:ke}=a(K);return{date:V,resource:Ae,disabled:re,highlight:ke}});{let V=y(()=>1+ue+te*a(q).length);Lr(B,{get date(){return a(de).date},get colIndex(){return a(V)},get disabled(){return a(de).disabled},get highlight(){return a(de).highlight},children:(Ae,re)=>{var ke=_e(),Xe=J(ke);{var He=he=>{Ja(he,{get resource(){return a(de).resource},get date(){return a(de).date}})},ae=he=>{si(he,{get date(){return a(de).date},get alPrefix(){return D[te]}})};$e(Xe,he=>{o()?he(He):he(ae,!1)})}x(Ae,ke)},$$slots:{default:!0}})}}),x(G,O)}),x(M,A)};$e(L,M=>{k()[0].length>1&&M(T)})}x($,I)},nowIndicator:($,k=_t)=>{var I=_e(),E=J(I);{var L=M=>{{let A=y(()=>k().flat());di(M,{get days(){return a(A)},get span(){return k()[0].length}})}},T=M=>{var A=_e(),U=J(A);{var G=te=>{var O=_e(),Y=J(O);oe(Y,17,k,se,(B,K)=>{di(B,{get days(){return a(K)}})}),x(te,O)},q=te=>{{let O=y(()=>k().flat());di(te,{get days(){return a(O)},get span(){return k().length}})}};$e(U,te=>{k()[0].length>1?te(G):te(q,!1)})}x(M,A)};$e(E,M=>{o()?M(L):M(T,!1)})}x($,I)},$$slots:{header:!0,nowIndicator:!0}}),be(),f()}const Hc={createOptions(e){qa(e),Ji(e),Ka(e),e.datesAboveResources=!1,e.buttonText.resourceTimeGridDay="resources",e.buttonText.resourceTimeGridWeek="resources",e.theme.colGroup="ec-col-group",e.view="resourceTimeGridWeek",e.views.resourceTimeGridDay={buttonText:ii,component:ja,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:zt("ec-resource ec-time-grid ec-day-view")},e.views.resourceTimeGridWeek={buttonText:oi,component:ja,duration:{weeks:1},theme:zt("ec-resource ec-time-grid ec-week-view")}},createParsers(e){Qi(e)},createStores(e){ji(e),Xa(e),Za(e)}};function Wc(e){return tt([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],([t,n,r,i,o])=>{let l={};for(let s of i)l[s.getTime()]=Ha(t,n,r,[s],o);return l})}function Uc(e){return tt([e._viewDates,e.slotDuration,e._slotLabelPeriodicity,e._dayTimeLimits,e._intlSlotLabel],([t,n,r,i,o])=>{let l={};for(let s of t){let u=s.getTime();l[u]=u in i?Na(s,n,r,i[u],o):[]}return l})}function zc(e){return tt(e.resources,t=>t.some(n=>pn(n).children.length))}function Bc(e){return tt(e.slotDuration,t=>!xe(t))}function Vc(e,t,n,r,i){let o=[],l=1;for(let s of t){let u=[],c=1;for(let f of e){let v=n[f.getTime()];u.push({gridColumn:c,gridRow:l,resource:s,start:Fe(X(f),v.min),end:Fe(X(f),v.max),dayStart:f,dayEnd:Xt(X(f)),disabled:ur(f,r),highlight:i.some(h=>Et(h,f))}),++c}o.push(u),++l}return o}function Gc(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ut(i.display)?r=r.concat(io(i,o)):n=n.concat(io(i,o));return qc(n),{chunks:n,bgChunks:r}}function Yc(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(io(r,i));return n}function io(e,t){let n=[],r,i,o,l,s,u=0;for(let{gridColumn:c,gridRow:f,resource:v,dayStart:h,start:_,end:m,disabled:w}of t)!w&&Rr(e,_,m,v)&&(n.length||(r=_,o=c,l=f,s=Ot(e.start-_,0)/1e3),n.push(h),i=m,u+=(ln(m,e.end)-Ot(_,e.start))/1e3);if(n.length){let c=Ir(e,r,i);return gt(c,{gridColumn:o,gridRow:l,dates:n,left:s,width:u}),[c]}return[]}function qc(e){let t={};for(let n of e){let{gridColumn:r,gridRow:i}=n;for(let l=0;l<n.dates.length;++l){let s=`${i}_${r+l}`;t[s]?t[s].push(n):t[s]=[n]}let o=`${i}_${r}`;n.day=t[o]}}function Xc(e,t,n){let r=0,i=r+t,o=e.day;o.sort((l,s)=>(l.top??Number.POSITIVE_INFINITY)-(s.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(n||e.start<l.end&&e.end>l.start)&&r<l.bottom&&i>l.top){let s=l.bottom-r+1;r+=s,i+=s}return gt(e,{top:r,bottom:i}),r}function Kc(e,t){return e[t.getTime()]??{min:it(0),max:it("24:00:00")}}function Zc(e,t){ye(t,!0);const n=()=>d(s,"$_monthView",o),r=()=>d(u,"$slotDuration",o),i=()=>d(c,"$slotWidth",o),[o,l]=Ee();let{_monthView:s,slotDuration:u,slotWidth:c}=Te("state"),f=y(()=>t.day.dayStart),v=y(()=>t.day.start),h=y(()=>t.day.resource),_=y(()=>t.day.disabled),m=y(()=>t.day.highlight),w=Ie(void 0);function g(b,D){if(n())return a(f);{let p=Ln(a(w)),C=p.width/a(w).offsetWidth;return Fe(X(a(v)),r(),Ui((xr()?p.right-b:b-p.left)/(i()*C)))}}li(e,{get allDay(){return n()},get date(){return a(f)},get resource(){return a(h)},dateFromPoint:g,get disabled(){return a(_)},get highlight(){return a(m)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(w)},set el(b){Z(w,b,!0)}}),be(),l()}function oo(e,t){ye(t,!0);const n=()=>d(c,"$_monthView",o),r=()=>d(s,"$slotDuration",o),i=()=>d(u,"$slotWidth",o),[o,l]=Ee();let{slotDuration:s,slotWidth:u,_monthView:c}=Te("state"),f=Ie(void 0),v=Ie(0),h=y(()=>t.chunk.event),_=y(()=>b=>{if(b["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,b["grid-row"]=t.chunk.gridRow,!n()){let p=t.chunk.left/xe(r())*i();b["inset-inline-start"]=`${p}px`,b["inline-size"]=`${t.chunk.width/xe(r())*i()}px`}let D=a(v);if(a(h)._margin){let[p,C]=a(h)._margin;t.chunk.gridRow===C&&(D=p)}return b["margin-block-start"]=`${D}px`,b});function m(){Z(v,Xc(t.chunk,Xn(a(f)),n()),!0)}var w={reposition:m};{let b=y(()=>[a(v),t.chunk.gridRow]);ui(e,{get chunk(){return t.chunk},get styles(){return a(_)},axis:"x",get forceMargin(){return a(b)},get el(){return a(f)},set el(D){Z(f,D,!0)}})}var g=be(w);return l(),g}var Jc=j("<span></span>");function Qc(e,t){ye(t,!0);const n=()=>d(s,"$resourceLabelContent",i),r=()=>d(u,"$resourceLabelDidMount",i),[i,o]=Ee();let l=Pe(t,"date",3,void 0),{resourceLabelContent:s,resourceLabelDidMount:u}=Te("state"),c=Ie(void 0),f=y(()=>n()?De(n())?n()({resource:t.resource,date:l()?Je(l()):void 0}):n():t.resource.title);ar(()=>{De(r())&&r()({resource:t.resource,date:l()?Je(l()):void 0,el:a(c)})});var v=Jc();bt(v,h=>Z(c,h),()=>a(c)),Ye(v,()=>st(a(f))),x(e,v),be(),o()}var jc=j("<span></span>"),ef=j("<button><!></button>"),tf=j("<!> <span><!></span>",1);function nf(e,t){ye(t,!0);const n=()=>d(l,"$theme",r),[r,i]=Ee();let{resources:o,theme:l}=Te("state"),s=Ie({}),u=Ie(!0);rr(()=>{Z(s,pn(t.resource)),Z(u,a(s).expanded,!0)});function c(){Z(u,!a(u)),a(s).expanded=a(u),f(a(s).children,a(u)),o.update(wn)}function f(g,b){for(let D of g){let p=pn(D);p.hidden=!b,p.expanded&&f(p.children,b)}}var v=tf(),h=J(v);oe(h,17,()=>Array(a(s).level),se,(g,b)=>{var D=jc();le(()=>N(D,1,n().expander)),x(g,D)});var _=ne(h,2),m=fe(_);{var w=g=>{var b=ef();b.__click=c;var D=fe(b);{var p=$=>{var k=ua("−");x($,k)},C=$=>{var k=ua("+");x($,k)};$e(D,$=>{a(u)?$(p):$(C,!1)})}le(()=>N(b,1,n().button)),x(g,b)};$e(m,g=>{a(s).children?.length&&g(w)})}le(()=>N(_,1,n().expander)),x(e,v),be(),i()}xn(["click"]);var rf=j("<div></div>");function of(e,t){ye(t,!0);const n=()=>d(_,"$_today",c),r=()=>d(h,"$_now",c),i=()=>d(w,"$slotDuration",c),o=()=>d(g,"$slotWidth",c),l=()=>d(v,"$_mainEl",c),s=()=>d(m,"$_sidebarWidth",c),u=()=>d(b,"$theme",c),[c,f]=Ee();let{_mainEl:v,_now:h,_today:_,_sidebarWidth:m,slotDuration:w,slotWidth:g,theme:b}=Te("state"),D=y(()=>{for(let A of t.grid[0])if(Et(A.dayStart,n()))return A;return{}}),p=y(()=>a(D).gridColumn),C=y(()=>a(D).start),$=y(()=>a(D).end),k=y(()=>{if(r()<a(C)||r()>a($))return null;let A=xe(i());return(r()-a(C))/1e3/A*o()}),I=y(()=>({root:l(),rootMargin:xr()?`0px -${s()+1}px 0px 0px`:`0px 0px 0px -${s()+1}px`,threshold:0}));function E(A,U){A.classList.toggle(u().hidden,!U.isIntersecting)}var L=_e(),T=J(L);{var M=A=>{var U=rf();let G;Ye(U,()=>ya(E,a(I))),le(()=>{N(U,1,u().nowIndicator),G=qt(U,"",G,{"grid-column":a(p)+1,"grid-row":`2 / span ${t.grid.length??""}`,"inset-inline-start":`${a(k)??""}px`})}),x(A,U)};$e(T,A=>{a(p)&&a(k)!==null&&A(M)})}x(e,L),be(),f()}var af=j("<div><time></time></div>"),lf=j('<div role="rowheader"><!> <!></div>'),sf=j('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function ao(e,t){ye(t,!0);const n=()=>d(de,"$_viewDates",E),r=()=>d(ue,"$_viewResources",E),i=()=>d(A,"$_dayTimeLimits",E),o=()=>d(Ct,"$validRange",E),l=()=>d(Ae,"$highlightedDates",E),s=()=>d(U,"$_filteredEvents",E),u=()=>d(G,"$_iEvents",E),c=()=>d(ae,"$slotMaxTime",E),f=()=>d(ke,"$scrollTime",E),v=()=>d(te,"$_monthView",E),h=()=>d(K,"$_today",E),_=()=>d(q,"$_mainEl",E),m=()=>d(Xe,"$slotDuration",E),w=()=>d(he,"$slotWidth",E),g=()=>d(kt,"$theme",E),b=()=>d(V,"$columnWidth",E),D=()=>d(B,"$_slotLabelPeriodicity",E),p=()=>d(He,"$slotHeight",E),C=()=>d(Y,"$_sidebarWidth",E),$=()=>d(M,"$_daySlots",E),k=()=>d(O,"$_nestedResources",E),I=()=>d(re,"$nowIndicator",E),[E,L]=Ee();let{_activeRangeExt:T,_daySlots:M,_dayTimeLimits:A,_filteredEvents:U,_iEvents:G,_mainEl:q,_monthView:te,_nestedResources:O,_sidebarWidth:Y,_slotLabelPeriodicity:B,_today:K,_viewResources:ue,_viewDates:de,columnWidth:V,highlightedDates:Ae,nowIndicator:re,scrollTime:ke,slotDuration:Xe,slotHeight:He,slotMaxTime:ae,slotWidth:he,theme:kt,validRange:Ct}=Te("state"),Ke=Ie(0),P=y(()=>Vc(n(),r(),i(),o(),l())),me=y(()=>Gc(s(),a(P))),Qe=y(()=>a(me).chunks),ve=y(()=>a(me).bgChunks),Q=y(()=>Yc(u(),a(P)));rr(()=>(Me(T,({start:S,end:H})=>{if(c().days||c().seconds>Tr){Fe(In(H),c());let z=In(X(H));z<S&&(S=z)}return{start:S,end:H}}),()=>{Me(T,wn)})),et(()=>{n(),f(),Jr().then(ge)});function ge(){if(v())return;let S=0,H=h()<n()[0]||h()>n().at(-1);for(let z of n()){let ie=Kc(i(),z);if(H||Et(z,h())){S+=Ot(ln(xe(f()),xe(ie.max))-xe(ie.min),0);break}else S+=xe(ie.max)-xe(ie.min)}Ve(q,W(_).scrollLeft=S/xe(m())*w()*(xr()?-1:1),W(_))}let Ce=[];function Ge(){Yi(Ce,a(Qe))}et(Ge);var ot=sf();let je;var qe=fe(ot),pt=fe(qe),sn=ne(pt,2),Mn=fe(sn);oe(Mn,17,()=>a(P)[0],se,(S,H,z)=>{let ie=()=>a(H).dayStart,ce=()=>a(H).disabled,Oe=()=>a(H).highlight;Lr(S,{get date(){return ie()},colIndex:1+z,get disabled(){return ce()},get highlight(){return Oe()},children:(Se,nt)=>{si(Se,{get date(){return ie()}})},$$slots:{default:!0}})});var Bt=ne(Mn,2);{var Ft=S=>{var H=_e(),z=J(H);oe(z,17,()=>a(P)[0],se,(ie,ce)=>{let Oe=()=>a(ce).dayStart,Se=()=>a(ce).disabled,nt=()=>a(ce).highlight;Lr(ie,{get date(){return Oe()},get className(){return g().slots},get disabled(){return Se()},get highlight(){return nt()},ariaHidden:!0,children:(Ne,we)=>{var ct=_e(),Qt=J(ct);oe(Qt,1,()=>$()[Oe().getTime()],se,(rt,ft)=>{var jt=af();let We;var En=fe(jt);Ye(En,()=>st(a(ft)[1])),le(()=>{N(jt,1,g().slot),We=qt(jt,"",We,{"--ec-slot-label-periodicity":a(ft)[2]}),Be(En,"datetime",a(ft)[0])}),x(rt,jt)}),x(Ne,ct)},$$slots:{default:!0}})}),x(S,H)};$e(Bt,S=>{v()||S(Ft)})}var Zt=ne(qe,2),Jt=fe(Zt);oe(Jt,5,r,se,(S,H)=>{var z=lf(),ie=fe(z);{var ce=Se=>{nf(Se,{get resource(){return a(H)}})};$e(ie,Se=>{k()&&Se(ce)})}var Oe=ne(ie,2);Qc(Oe,{get resource(){return a(H)}}),le(()=>N(z,1,g().rowHead)),x(S,z)});var Tt=ne(Jt,2);oe(Tt,21,()=>a(P),se,(S,H,z)=>{var ie=_e(),ce=J(ie);oe(ce,17,()=>a(H),se,(Oe,Se,nt)=>{{let Ne=y(()=>nt+1===a(H).length),we=y(()=>z+1===a(P).length);Zc(Oe,{get day(){return a(Se)},get noIeb(){return a(Ne)},get noBeb(){return a(we)}})}}),x(S,ie)});var xt=ne(Tt,2),un=fe(xt);oe(un,17,()=>a(Qe),se,(S,H,z)=>{bt(oo(S,{get chunk(){return a(H)}}),(ie,ce)=>Ce[ce]=ie,ie=>Ce?.[ie],()=>[z])});var $n=ne(un,2);oe($n,17,()=>a(ve),se,(S,H)=>{oo(S,{get chunk(){return a(H)}})});var Dn=ne($n,2);oe(Dn,17,()=>a(Q),se,(S,H)=>{oo(S,{get chunk(){return a(H)}})});var Ze=ne(Zt,2);{var cn=S=>{of(S,{get grid(){return a(P)}})};$e(Ze,S=>{I()&&!v()&&S(cn)})}bt(ot,S=>Me(q,S),()=>_()),Ye(ot,()=>Hi(Ge)),le(()=>{N(ot,1,g().main),je=qt(ot,"",je,{"--ec-grid-cols":a(P)[0].length,"--ec-grid-rows":`${a(P).length>1?`repeat(${a(P).length-1}, auto)`:""} minmax(auto, 1fr)`,"--ec-col-width":b()??"minmax(4em, 1fr)","--ec-slot-label-periodicity":D(),"--ec-slot-height":`${p()??""}px`,"--ec-slot-width":`${w()??""}px`,"--ec-header-height":`${a(Ke)??""}px`,"--ec-sidebar-width":`${C()??""}px`}),N(qe,1,g().header),N(pt,1,g().sidebar),N(sn,1,g().grid),N(Zt,1,g().body),N(Jt,1,g().sidebar),N(Tt,1,g().grid),N(xt,1,g().events)}),jr(pt,"offsetWidth",S=>Me(Y,S)),jr(qe,"offsetHeight",S=>Z(Ke,S)),x(e,ot),be(),L()}const uf={createOptions(e){Ji(e),Ka(e),e.slotWidth=16,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:ii,component:ao,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:zt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:oi,component:ao,displayEventEnd:!1,duration:{weeks:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:zt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:qi,component:ao,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:zt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){Qi(e)},createStores(e){ji(e),Za(e),e._dayTimeLimits=Wc(e),e._daySlots=Uc(e),e._monthView=Bc(e),e._nestedResources=zc(e)}},cf={createOptions(e){qa(e),Ji(e),e.buttonText.timeGridDay="day",e.buttonText.timeGridWeek="week",e.view="timeGridWeek",e.views.timeGridDay={buttonText:ii,component:ro,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:zt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.timeGridWeek={buttonText:oi,component:ro,duration:{weeks:1},theme:zt("ec-time-grid ec-week-view")}},createParsers(e){Qi(e)},createStores(e){ji(e),Xa(e)}};function ff(e,t,n){return ws(Hu,{target:e,props:{plugins:t,options:n}})}function df(e){return $s(e)}function hf(e,t){return ff(e,[ic,gc,$c,Hc,uf,cf],t)}return Hr.create=hf,Hr.destroy=df,Object.defineProperty(Hr,Symbol.toStringTag,{value:"Module"}),Hr})({});
|
|
5
|
+
var EventCalendar=(function(Hr){"use strict";var vo=Array.isArray,dl=Array.prototype.indexOf,Wr=Array.from,go=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,_o=Object.getOwnPropertyDescriptors,hl=Object.prototype,vl=Array.prototype,vi=Object.getPrototypeOf,mo=Object.isExtensible;const _t=()=>{};function gl(e){return e()}function Ur(e){for(var t=0;t<e.length;t++)e[t]()}function yo(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function _l(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const at=2,gi=4,zr=8,bo=1<<24,fn=16,dn=32,An=64,Br=128,Vt=512,dt=1024,Rt=2048,en=4096,It=8192,hn=16384,_i=32768,En=65536,wo=1<<17,po=1<<18,Qn=1<<19,$o=1<<20,vn=1<<25,On=32768,mi=1<<21,yi=1<<22,kn=1<<23,Fn=Symbol("$state"),ml=Symbol("legacy props"),yl=Symbol(""),jn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Do(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function bl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $l(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function El(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function kl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Tl(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Sl=1,Rl=2,Eo=4,Il=8,Ll=16,Ml=1,Pl=2,Al=4,Ol=8,Fl=16,Nl=1,Hl=2,ht=Symbol(),Wl="http://www.w3.org/1999/xhtml";function Ul(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ko(e){return e===this.v}function Co(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function To(e){return!Co(e,this.v)}let er=!1,Cf=!1;function zl(){er=!0}let Ue=null;function tr(e){Ue=e}function Te(e){return xo().get(e)}function Bl(e,t){return xo().set(e,t),t}function ye(e,t=!1,n){Ue={p:Ue,i:!1,c:null,e:null,s:e,x:null,l:er&&!t?{s:null,u:null,$:[]}:null}}function be(e){var t=Ue,n=t.e;if(n!==null){t.e=null;for(var r of n)Vo(r)}return e!==void 0&&(t.x=e),t.i=!0,Ue=t.p,e??{}}function vr(){return!er||Ue!==null&&Ue.l===null}function xo(e){return Ue===null&&Do(),Ue.c??=new Map(Vl(Ue)||void 0)}function Vl(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Nn=[];function So(){var e=Nn;Nn=[],Ur(e)}function Hn(e){if(Nn.length===0&&!gr){var t=Nn;queueMicrotask(()=>{t===Nn&&So()})}Nn.push(e)}function Gl(){for(;Nn.length>0;)So()}function Ro(e){var t=Le;if(t===null)return pe.f|=kn,e;if((t.f&_i)===0){if((t.f&Br)===0)throw e;t.b.error(e)}else nr(e,t)}function nr(e,t){for(;t!==null;){if((t.f&Br)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Vr=new Set;let ze=null,Nt=null,Ht=[],Gr=null,bi=!1,gr=!1;class tn{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#o=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){Ht=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#a(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects)):(ze=null,Lo(n.render_effects),Lo(n.effects),this.#s?.resolve()),Nt=null}#a(t,n){t.f^=dt;for(var r=t.first;r!==null;){var i=r.f,o=(i&(dn|An))!==0,l=o&&(i&dt)!==0,s=l||(i&It)!==0||this.skipped_effects.has(r);if((r.f&Br)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!s&&r.fn!==null){o?r.f^=dt:(i&gi)!==0?n.effects.push(r):$r(r)&&((r.f&fn)!==0&&this.#o.add(r),Dr(r));var u=r.first;if(u!==null){r=u;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)c===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),n=n.parent),r=c.next,c=c.parent}}#l(t){for(const n of t)(n.f&Rt)!==0?this.#o.add(n):(n.f&en)!==0&&this.#i.add(n),this.#u(n.deps),vt(n,dt)}#u(t){if(t!==null)for(const n of t)(n.f&at)===0||(n.f&On)===0||(n.f^=On,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&kn)===0&&(this.current.set(t,t.v),Nt?.set(t,t.v))}activate(){ze=this,this.apply()}deactivate(){ze===this&&(ze=null,Nt=null)}flush(){if(this.activate(),Ht.length>0){if(Io(),ze!==null&&ze!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#c(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#f()}#f(){if(Vr.size>1){this.previous.clear();var t=Nt,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const o of Vr){if(o===this){n=!1;continue}const l=[];for(const[u,c]of this.current){if(o.current.has(u))if(n&&c!==o.current.get(u))o.current.set(u,c);else continue;l.push(u)}if(l.length===0)continue;const s=[...o.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=Ht;Ht=[];const u=new Set,c=new Map;for(const f of l)Mo(f,s,u,c);if(Ht.length>0){ze=o,o.apply();for(const f of Ht)o.#a(f,r);o.deactivate()}Ht=i}}ze=null,Nt=t}this.committed=!0,Vr.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.#o)this.#i.delete(t),vt(t,Rt),Wn(t);for(const t of this.#i)vt(t,en),Wn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=yo()).promise}static ensure(){if(ze===null){const t=ze=new tn;Vr.add(ze),gr||tn.enqueue(()=>{ze===t&&t.flush()})}return ze}static enqueue(t){Hn(t)}apply(){}}function Yl(e){var t=gr;gr=!0;try{for(var n;;){if(Gl(),Ht.length===0&&(ze?.flush(),Ht.length===0))return Gr=null,n;Io()}}finally{gr=t}}function Io(){var e=Gn;bi=!0;var t=null;try{var n=0;for(Kr(!0);Ht.length>0;){var r=tn.ensure();if(n++>1e3){var i,o;ql()}r.process(Ht),Cn.clear()}}finally{bi=!1,Kr(e),Gr=null}}function ql(){try{Dl()}catch(e){nr(e,Gr)}}let gn=null;function Lo(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(hn|It))===0&&$r(r)&&(gn=new Set,Dr(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?Xo(r):r.fn=null),gn?.size>0)){Cn.clear();for(const i of gn){if((i.f&(hn|It))!==0)continue;const o=[i];let l=i.parent;for(;l!==null;)gn.has(l)&&(gn.delete(l),o.push(l)),l=l.parent;for(let s=o.length-1;s>=0;s--){const u=o[s];(u.f&(hn|It))===0&&Dr(u)}}gn.clear()}}gn=null}}function Mo(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&at)!==0?Mo(i,t,n,r):(o&(yi|fn))!==0&&(o&Rt)===0&&Po(i,t,r)&&(vt(i,Rt),Wn(i))}}function Po(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&at)!==0&&Po(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Wn(e){for(var t=Gr=e;t.parent!==null;){t=t.parent;var n=t.f;if(bi&&t===Le&&(n&fn)!==0&&(n&po)===0)return;if((n&(An|dn))!==0){if((n&dt)===0)return;t.f^=dt}}Ht.push(t)}function Xl(e){let t=0,n=Un(0),r;return()=>{br()&&(a(n),Go(()=>(t===0&&(r=U(()=>e(()=>mr(n)))),t+=1,()=>{Hn(()=>{t-=1,t===0&&(r?.(),r=void 0,mr(n))})})))}}var Kl=En|Qn|Br;function Zl(e,t,n){new Jl(e,t,n)}class Jl{parent;#e=!1;#t;#n=null;#r;#s;#o;#i=null;#a=null;#l=null;#u=null;#c=null;#f=0;#d=0;#v=!1;#h=null;#b=Xl(()=>(this.#h=Un(this.#f),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#s=r,this.parent=Le.b,this.#e=!!this.#r.pending,this.#o=wr(()=>{Le.b=this;{var i=this.#m();try{this.#i=Lt(()=>r(i))}catch(o){this.error(o)}this.#d>0?this.#_():this.#e=!1}return()=>{this.#c?.remove()}},Kl)}#w(){try{this.#i=Lt(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#p(){const t=this.#r.pending;t&&(this.#a=Lt(()=>t(this.#t)),tn.enqueue(()=>{var n=this.#m();this.#i=this.#g(()=>(tn.ensure(),Lt(()=>this.#s(n)))),this.#d>0?this.#_():(Vn(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#m(){var t=this.#t;return this.#e&&(this.#c=_n(),this.#t.before(this.#c),t=this.#c),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var n=Le,r=pe,i=Ue;rn(this.#o),Dt(this.#o),tr(this.#o.ctx);try{return t()}catch(o){return Ro(o),null}finally{rn(n),Dt(r),tr(i)}}#_(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#c),Jo(this.#i,this.#u)),this.#a===null&&(this.#a=Lt(()=>t(this.#t)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#d+=t,this.#d===0&&(this.#e=!1,this.#a&&Vn(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#y(t),this.#f+=t,this.#h&&rr(this.#h,this.#f)}get_effect_pending(){return this.#b(),a(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(mt(this.#i),this.#i=null),this.#a&&(mt(this.#a),this.#a=null),this.#l&&(mt(this.#l),this.#l=null);var i=!1,o=!1;const l=()=>{if(i){Ul();return}i=!0,o&&xl(),tn.ensure(),this.#f=0,this.#l!==null&&Vn(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#g(()=>(this.#v=!1,Lt(()=>this.#s(this.#t)))),this.#d>0?this.#_():this.#e=!1};var s=pe;try{Dt(null),o=!0,n?.(t,l),o=!1}catch(u){nr(u,this.#o&&this.#o.parent)}finally{Dt(s)}r&&Hn(()=>{this.#l=this.#g(()=>{tn.ensure(),this.#v=!0;try{return Lt(()=>{r(this.#t,()=>t,()=>l)})}catch(u){return nr(u,this.#o.parent),null}finally{this.#v=!1}})})}}function Ql(e,t,n,r){const i=vr()?_r:wi;if(n.length===0&&e.length===0){r(t.map(i));return}var o=ze,l=Le,s=jl();function u(){Promise.all(n.map(c=>es(c))).then(c=>{s();try{r([...t.map(i),...c])}catch(f){(l.f&hn)===0&&nr(f,l)}o?.deactivate(),Yr()}).catch(c=>{nr(c,l)})}e.length>0?Promise.all(e).then(()=>{s();try{return u()}finally{o?.deactivate(),Yr()}}):u()}function jl(){var e=Le,t=pe,n=Ue,r=ze;return function(o=!0){rn(e),Dt(t),tr(n),o&&r?.activate()}}function Yr(){rn(null),Dt(null),tr(null)}function _r(e){var t=at|Rt,n=pe!==null&&(pe.f&at)!==0?pe:null;return Le!==null&&(Le.f|=Qn),{ctx:Ue,deps:null,effects:null,equals:ko,f:t,fn:e,reactions:null,rv:0,v:ht,wv:0,parent:n??Le,ac:null}}function es(e,t){let n=Le;n===null&&bl();var r=n.b,i=void 0,o=Un(ht),l=!pe,s=new Map;return ss(()=>{var u=yo();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{c===ze&&c.committed&&c.deactivate(),Yr()})}catch(h){u.reject(h),Yr()}var c=ze;if(l){var f=!r.is_pending();r.update_pending_count(1),c.increment(f),s.get(c)?.reject(jn),s.delete(c),s.set(c,u)}const v=(h,_=void 0)=>{if(c.activate(),_)_!==jn&&(o.f|=kn,rr(o,_));else{(o.f&kn)!==0&&(o.f^=kn),rr(o,h);for(const[m,w]of s){if(s.delete(m),m===c)break;w.reject(jn)}}l&&(r.update_pending_count(-1),c.decrement(f))};u.promise.then(v,h=>v(null,h||"unknown"))}),Xr(()=>{for(const u of s.values())u.reject(jn)}),new Promise(u=>{function c(f){function v(){f===i?u(o):c(i)}f.then(v,v)}c(i)})}function y(e){const t=_r(e);return jo(t),t}function wi(e){const t=_r(e);return t.equals=To,t}function Ao(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)mt(t[n])}}function ts(e){for(var t=e.parent;t!==null;){if((t.f&at)===0)return(t.f&hn)===0?t:null;t=t.parent}return null}function pi(e){var t,n=Le;rn(ts(e));try{e.f&=~On,Ao(e),t=ia(e)}finally{rn(n)}return t}function Oo(e){var t=pi(e);if(e.equals(t)||(ze?.is_fork||(e.v=t),e.wv=na()),!Yn)if(Nt!==null)(br()||ze?.is_fork)&&Nt.set(e,t);else{var n=(e.f&Vt)===0?en:dt;vt(e,n)}}let $i=new Set;const Cn=new Map;let Fo=!1;function Un(e,t){var n={f:0,v:e,reactions:null,equals:ko,rv:0,wv:0};return n}function Ie(e,t){const n=Un(e);return jo(n),n}function Di(e,t=!1,n=!0){const r=Un(e);return t||(r.equals=To),er&&n&&Ue!==null&&Ue.l!==null&&(Ue.l.s??=[]).push(r),r}function Z(e,t,n=!1){pe!==null&&(!nn||(pe.f&wo)!==0)&&vr()&&(pe.f&(at|fn|yi|wo))!==0&&!mn?.includes(e)&&Tl();let r=n?zn(t):t;return rr(e,r)}function rr(e,t){if(!e.equals(t)){var n=e.v;Yn?Cn.set(e,t):Cn.set(e,n),e.v=t;var r=tn.ensure();r.capture(e,n),(e.f&at)!==0&&((e.f&Rt)!==0&&pi(e),vt(e,(e.f&Vt)!==0?dt:en)),e.wv=na(),No(e,Rt),vr()&&Le!==null&&(Le.f&dt)!==0&&(Le.f&(dn|An))===0&&(Wt===null?ds([e]):Wt.push(e)),!r.is_fork&&$i.size>0&&!Fo&&ns()}return t}function ns(){Fo=!1;var e=Gn;Kr(!0);const t=Array.from($i);try{for(const n of t)(n.f&dt)!==0&&vt(n,en),$r(n)&&Dr(n)}finally{Kr(e)}$i.clear()}function mr(e){Z(e,e.v+1)}function No(e,t){var n=e.reactions;if(n!==null)for(var r=vr(),i=n.length,o=0;o<i;o++){var l=n[o],s=l.f;if(!(!r&&l===Le)){var u=(s&Rt)===0;if(u&&vt(l,t),(s&at)!==0){var c=l;Nt?.delete(c),(s&On)===0&&(s&Vt&&(l.f|=On),No(c,en))}else u&&((s&fn)!==0&&gn!==null&&gn.add(l),Wn(l))}}}function zn(e){if(typeof e!="object"||e===null||Fn in e)return e;const t=vi(e);if(t!==hl&&t!==vl)return e;var n=new Map,r=vo(e),i=Ie(0),o=qn,l=s=>{if(qn===o)return s();var u=pe,c=qn;Dt(null),ta(o);var f=s();return Dt(u),ta(c),f};return r&&n.set("length",Ie(e.length)),new Proxy(e,{defineProperty(s,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&kl();var f=n.get(u);return f===void 0?f=l(()=>{var v=Ie(c.value);return n.set(u,v),v}):Z(f,c.value,!0),!0},deleteProperty(s,u){var c=n.get(u);if(c===void 0){if(u in s){const f=l(()=>Ie(ht));n.set(u,f),mr(i)}}else Z(c,ht),mr(i);return!0},get(s,u,c){if(u===Fn)return e;var f=n.get(u),v=u in s;if(f===void 0&&(!v||Pn(s,u)?.writable)&&(f=l(()=>{var _=zn(v?s[u]:ht),m=Ie(_);return m}),n.set(u,f)),f!==void 0){var h=a(f);return h===ht?void 0:h}return Reflect.get(s,u,c)},getOwnPropertyDescriptor(s,u){var c=Reflect.getOwnPropertyDescriptor(s,u);if(c&&"value"in c){var f=n.get(u);f&&(c.value=a(f))}else if(c===void 0){var v=n.get(u),h=v?.v;if(v!==void 0&&h!==ht)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(s,u){if(u===Fn)return!0;var c=n.get(u),f=c!==void 0&&c.v!==ht||Reflect.has(s,u);if(c!==void 0||Le!==null&&(!f||Pn(s,u)?.writable)){c===void 0&&(c=l(()=>{var h=f?zn(s[u]):ht,_=Ie(h);return _}),n.set(u,c));var v=a(c);if(v===ht)return!1}return f},set(s,u,c,f){var v=n.get(u),h=u in s;if(r&&u==="length")for(var _=c;_<v.v;_+=1){var m=n.get(_+"");m!==void 0?Z(m,ht):_ in s&&(m=l(()=>Ie(ht)),n.set(_+"",m))}if(v===void 0)(!h||Pn(s,u)?.writable)&&(v=l(()=>Ie(void 0)),Z(v,zn(c)),n.set(u,v));else{h=v.v!==ht;var w=l(()=>zn(c));Z(v,w)}var g=Reflect.getOwnPropertyDescriptor(s,u);if(g?.set&&g.set.call(f,c),!h){if(r&&typeof u=="string"){var b=n.get("length"),$=Number(u);Number.isInteger($)&&$>=b.v&&Z(b,$+1)}mr(i)}return!0},ownKeys(s){a(i);var u=Reflect.ownKeys(s).filter(v=>{var h=n.get(v);return h===void 0||h.v!==ht});for(var[c,f]of n)f.v!==ht&&!(c in s)&&u.push(c);return u},setPrototypeOf(){Cl()}})}var Gt,Ho,Wo,Uo;function rs(){if(Gt===void 0){Gt=window,Ho=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wo=Pn(t,"firstChild").get,Uo=Pn(t,"nextSibling").get,mo(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mo(n)&&(n.__t=void 0)}}function _n(e=""){return document.createTextNode(e)}function qr(e){return Wo.call(e)}function yr(e){return Uo.call(e)}function fe(e,t){return qr(e)}function J(e,t=!1){{var n=qr(e);return n instanceof Comment&&n.data===""?yr(n):n}}function ne(e,t=1,n=!1){let r=e;for(;t--;)r=yr(r);return r}function is(e){e.textContent=""}function zo(){return!1}function os(e,t){{const n=document.body;e.autofocus=!0,Hn(()=>{document.activeElement===n&&e.focus()})}}function Ei(e){var t=pe,n=Le;Dt(null),rn(null);try{return e()}finally{Dt(t),rn(n)}}function Bo(e){Le===null&&(pe===null&&$l(),pl()),Yn&&wl()}function as(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Yt(e,t,n){var r=Le;r!==null&&(r.f&It)!==0&&(e|=It);var i={ctx:Ue,deps:null,nodes:null,f:e|Rt|Vt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Dr(i),i.f|=_i}catch(s){throw mt(i),s}else t!==null&&Wn(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Qn)===0&&(o=o.first,(e&fn)!==0&&(e&En)!==0&&o!==null&&(o.f|=En)),o!==null&&(o.parent=r,r!==null&&as(o,r),pe!==null&&(pe.f&at)!==0&&(e&An)===0)){var l=pe;(l.effects??=[]).push(o)}return i}function br(){return pe!==null&&!nn}function Xr(e){const t=Yt(zr,null,!1);return vt(t,dt),t.teardown=e,t}function et(e){Bo();var t=Le.f,n=!pe&&(t&dn)!==0&&(t&_i)===0;if(n){var r=Ue;(r.e??=[]).push(e)}else return Vo(e)}function Vo(e){return Yt(gi|$o,e,!1)}function Bn(e){return Bo(),Yt(zr|$o,e,!0)}function ls(e){tn.ensure();const t=Yt(An|Qn,e,!0);return(n={})=>new Promise(r=>{n.outro?Vn(t,()=>{mt(t),r(void 0)}):(mt(t),r(void 0))})}function ki(e){return Yt(gi,e,!1)}function ss(e){return Yt(yi|Qn,e,!0)}function Go(e,t=0){return Yt(zr|t,e,!0)}function le(e,t=[],n=[],r=[]){Ql(r,t,n,i=>{Yt(zr,()=>e(...i.map(a)),!0)})}function wr(e,t=0){var n=Yt(fn|t,e,!0);return n}function us(e,t=0){var n=Yt(bo|t,e,!0);return n}function Lt(e){return Yt(dn|Qn,e,!0)}function Yo(e){var t=e.teardown;if(t!==null){const n=Yn,r=pe;Qo(!0),Dt(null);try{t.call(null)}finally{Qo(n),Dt(r)}}}function qo(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Ei(()=>{i.abort(jn)});var r=n.next;(n.f&An)!==0?n.parent=null:mt(n,t),n=r}}function cs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&dn)===0&&mt(t),t=n}}function mt(e,t=!0){var n=!1;(t||(e.f&po)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(fs(e.nodes.start,e.nodes.end),n=!0),qo(e,t&&!n),Zr(e,0),vt(e,hn);var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)o.stop();Yo(e);var i=e.parent;i!==null&&i.first!==null&&Xo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function fs(e,t){for(;e!==null;){var n=e===t?null:yr(e);e.remove(),e=n}}function Xo(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Vn(e,t,n=!0){var r=[];Ko(e,r,!0);var i=()=>{n&&mt(e),t&&t()},o=r.length;if(o>0){var l=()=>--o||i();for(var s of r)s.out(l)}else i()}function Ko(e,t,n){if((e.f&It)===0){e.f^=It;var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)(s.is_global||n)&&t.push(s);for(var i=e.first;i!==null;){var o=i.next,l=(i.f&En)!==0||(i.f&dn)!==0&&(e.f&fn)!==0;Ko(i,t,l?n:!1),i=o}}}function Ci(e){Zo(e,!0)}function Zo(e,t){if((e.f&It)!==0){e.f^=It,(e.f&dt)===0&&(vt(e,Rt),Wn(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&En)!==0||(n.f&dn)!==0;Zo(n,i?t:!1),n=r}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function Jo(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:yr(n);t.append(n),n=i}}let Gn=!1;function Kr(e){Gn=e}let Yn=!1;function Qo(e){Yn=e}let pe=null,nn=!1;function Dt(e){pe=e}let Le=null;function rn(e){Le=e}let mn=null;function jo(e){pe!==null&&(mn===null?mn=[e]:mn.push(e))}let yt=null,Mt=0,Wt=null;function ds(e){Wt=e}let ea=1,pr=0,qn=pr;function ta(e){qn=e}function na(){return++ea}function $r(e){var t=e.f;if((t&Rt)!==0)return!0;if(t&at&&(e.f&=~On),(t&en)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if($r(o)&&Oo(o),o.wv>e.wv)return!0}(t&Vt)!==0&&Nt===null&&vt(e,dt)}return!1}function ra(e,t,n=!0){var r=e.reactions;if(r!==null&&!mn?.includes(e))for(var i=0;i<r.length;i++){var o=r[i];(o.f&at)!==0?ra(o,t,!1):t===o&&(n?vt(o,Rt):(o.f&dt)!==0&&vt(o,en),Wn(o))}}function ia(e){var t=yt,n=Mt,r=Wt,i=pe,o=mn,l=Ue,s=nn,u=qn,c=e.f;yt=null,Mt=0,Wt=null,pe=(c&(dn|An))===0?e:null,mn=null,tr(e.ctx),nn=!1,qn=++pr,e.ac!==null&&(Ei(()=>{e.ac.abort(jn)}),e.ac=null);try{e.f|=mi;var f=e.fn,v=f(),h=e.deps;if(yt!==null){var _;if(Zr(e,Mt),h!==null&&Mt>0)for(h.length=Mt+yt.length,_=0;_<yt.length;_++)h[Mt+_]=yt[_];else e.deps=h=yt;if(br()&&(e.f&Vt)!==0)for(_=Mt;_<h.length;_++)(h[_].reactions??=[]).push(e)}else h!==null&&Mt<h.length&&(Zr(e,Mt),h.length=Mt);if(vr()&&Wt!==null&&!nn&&h!==null&&(e.f&(at|en|Rt))===0)for(_=0;_<Wt.length;_++)ra(Wt[_],e);return i!==null&&i!==e&&(pr++,Wt!==null&&(r===null?r=Wt:r.push(...Wt))),(e.f&kn)!==0&&(e.f^=kn),v}catch(m){return Ro(m)}finally{e.f^=mi,yt=t,Mt=n,Wt=r,pe=i,mn=o,tr(l),nn=s,qn=u}}function hs(e,t){let n=t.reactions;if(n!==null){var r=dl.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&at)!==0&&(yt===null||!yt.includes(t))&&(vt(t,en),(t.f&Vt)!==0&&(t.f^=Vt,t.f&=~On),Ao(t),Zr(t,0))}function Zr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)hs(e,n[r])}function Dr(e){var t=e.f;if((t&hn)===0){vt(e,dt);var n=Le,r=Gn;Le=e,Gn=!0;try{(t&(fn|bo))!==0?cs(e):qo(e),Yo(e);var i=ia(e);e.teardown=typeof i=="function"?i:null,e.wv=ea;var o}finally{Gn=r,Le=n}}}async function Jr(){await Promise.resolve(),Yl()}function a(e){var t=e.f,n=(t&at)!==0;if(pe!==null&&!nn){var r=Le!==null&&(Le.f&hn)!==0;if(!r&&!mn?.includes(e)){var i=pe.deps;if((pe.f&mi)!==0)e.rv<pr&&(e.rv=pr,yt===null&&i!==null&&i[Mt]===e?Mt++:yt===null?yt=[e]:yt.includes(e)||yt.push(e));else{(pe.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[pe]:o.includes(pe)||o.push(pe)}}}if(Yn){if(Cn.has(e))return Cn.get(e);if(n){var l=e,s=l.v;return((l.f&dt)===0&&l.reactions!==null||aa(l))&&(s=pi(l)),Cn.set(l,s),s}}else n&&(!Nt?.has(e)||ze?.is_fork&&!br())&&(l=e,$r(l)&&Oo(l),Gn&&br()&&(l.f&Vt)===0&&oa(l));if(Nt?.has(e))return Nt.get(e);if((e.f&kn)!==0)throw e.v;return e.v}function oa(e){if(e.deps!==null){e.f^=Vt;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&at)!==0&&(t.f&Vt)===0&&oa(t)}}function aa(e){if(e.v===ht)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Cn.has(t)||(t.f&at)!==0&&aa(t))return!0;return!1}function U(e){var t=nn;try{return nn=!0,e()}finally{nn=t}}const vs=-7169;function vt(e,t){e.f=e.f&vs|t}function gs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Fn in e)Ti(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Fn in n&&Ti(n)}}}function Ti(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ti(e[r],t)}catch{}const n=vi(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=_o(n);for(let i in r){const o=r[i].get;if(o)try{o.call(e)}catch{}}}}}const _s=["touchstart","touchmove"];function ms(e){return _s.includes(e)}const la=new Set,xi=new Set;function ys(e,t,n,r={}){function i(o){if(r.capture||Er.call(t,o),!o.cancelBubble)return Ei(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Hn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Pt(e,t,n,r,i){var o={capture:r,passive:i},l=ys(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xr(()=>{t.removeEventListener(e,l,o)})}function Tn(e){for(var t=0;t<e.length;t++)la.add(e[t]);for(var n of xi)n(e)}let sa=null;function Er(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;sa=e;var l=0,s=sa===e&&e.__root;if(s){var u=i.indexOf(s);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;u<=c&&(l=u)}if(o=i[l]||e.target,o!==t){go(e,"currentTarget",{configurable:!0,get(){return o||n}});var f=pe,v=Le;Dt(null),rn(null);try{for(var h,_=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var w=o["__"+r];w!=null&&(!o.disabled||e.target===o)&&w.call(o,e)}catch(g){h?_.push(g):h=g}if(e.cancelBubble||m===t||m===null)break;o=m}if(h){for(let g of _)queueMicrotask(()=>{throw g});throw h}}finally{e.__root=t,delete e.currentTarget,Dt(f),rn(v)}}}function bs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Qr(e,t){var n=Le;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function j(e,t){var n=(t&Nl)!==0,r=(t&Hl)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=bs(o?e:"<!>"+e),n||(i=qr(i)));var l=r||Ho?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=qr(l),u=l.lastChild;Qr(s,u)}else Qr(l,l);return l}}function ua(e=""){{var t=_n(e+"");return Qr(t,t),t}}function _e(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_n();return e.append(t,n),Qr(t,n),e}function x(e,t){e!==null&&e.before(t)}function ca(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function ws(e,t){return ps(e,t)}const ir=new Map;function ps(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:l=!0}){rs();var s=new Set,u=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!s.has(_)){s.add(_);var m=ms(_);t.addEventListener(_,Er,{passive:m});var w=ir.get(_);w===void 0?(document.addEventListener(_,Er,{passive:m}),ir.set(_,1)):ir.set(_,w+1)}}};u(Wr(la)),xi.add(u);var c=void 0,f=ls(()=>{var v=n??t.appendChild(_n());return Zl(v,{pending:()=>{}},h=>{if(o){ye({});var _=Ue;_.c=o}i&&(r.$$events=i),c=e(h,r)||{},o&&be()}),()=>{for(var h of s){t.removeEventListener(h,Er);var _=ir.get(h);--_===0?(document.removeEventListener(h,Er),ir.delete(h)):ir.set(h,_)}xi.delete(u),v!==n&&v.parentNode?.removeChild(v)}});return Si.set(c,f),c}let Si=new WeakMap;function $s(e,t){const n=Si.get(e);return n?(Si.delete(e),n(t)):Promise.resolve()}class Ri{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#o=()=>{var t=ze;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)Ci(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const s=this.#n.get(l);s&&(mt(s.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===n||this.#r.has(o))continue;const s=()=>{if(Array.from(this.#e.values()).includes(o)){var c=document.createDocumentFragment();Jo(l,c),c.append(_n()),this.#n.set(o,{effect:l,fragment:c})}else mt(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!r?(this.#r.add(o),Vn(l,s,!1)):s()}}};#i=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(mt(i.effect),this.#n.delete(r))};ensure(t,n){var r=ze,i=zo();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var o=document.createDocumentFragment(),l=_n();o.append(l),this.#n.set(t,{effect:Lt(()=>n(l)),fragment:o})}else this.#t.set(t,Lt(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[s,u]of this.#t)s===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[s,u]of this.#n)s===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#o),r.ondiscard(this.#i)}else this.#o()}}function $e(e,t,n=!1){var r=new Ri(e),i=n?En:0;function o(l,s){r.ensure(l,s)}wr(()=>{var l=!1;t((s,u=!0)=>{l=!0,o(u,s)}),l||o(!1,null)},i)}function se(e,t){return t}function Ds(e,t,n){for(var r=[],i=t.length,o,l=t.length,s=0;s<i;s++){let v=t[s];Vn(v,()=>{if(o){if(o.pending.delete(v),o.done.add(v),o.pending.size===0){var h=e.outrogroups;Ii(Wr(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var u=r.length===0&&n!==null;if(u){var c=n,f=c.parentNode;is(f),f.append(c),e.items.clear()}Ii(t,!u)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Ii(e,t=!0){for(var n=0;n<e.length;n++)mt(e[n],t)}var fa;function oe(e,t,n,r,i,o=null){var l=e,s=new Map,u=(t&Eo)!==0;if(u){var c=e;l=c.appendChild(_n())}var f=null,v=wi(()=>{var b=n();return vo(b)?b:b==null?[]:Wr(b)}),h,_=!0;function m(){g.fallback=f,Es(g,h,l,t,r),f!==null&&(h.length===0?(f.f&vn)===0?Ci(f):(f.f^=vn,kr(f,null,l)):Vn(f,()=>{f=null}))}var w=wr(()=>{h=a(v);for(var b=h.length,$=new Set,p=ze,T=zo(),D=0;D<b;D+=1){var k=h[D],L=r(k,D),E=_?null:s.get(L);E?(E.v&&rr(E.v,k),E.i&&rr(E.i,D),T&&p.skipped_effects.delete(E.e)):(E=ks(s,_?l:fa??=_n(),k,L,D,i,t,n),_||(E.e.f|=vn),s.set(L,E)),$.add(L)}if(b===0&&o&&!f&&(_?f=Lt(()=>o(l)):(f=Lt(()=>o(fa??=_n())),f.f|=vn)),!_)if(T){for(const[H,C]of s)$.has(H)||p.skipped_effects.add(C.e);p.oncommit(m),p.ondiscard(()=>{})}else m();a(v)}),g={effect:w,items:s,outrogroups:null,fallback:f};_=!1}function Es(e,t,n,r,i){var o=(r&Il)!==0,l=t.length,s=e.items,u=e.effect.first,c,f=null,v,h=[],_=[],m,w,g,b;if(o)for(b=0;b<l;b+=1)m=t[b],w=i(m,b),g=s.get(w).e,(g.f&vn)===0&&(g.nodes?.a?.measure(),(v??=new Set).add(g));for(b=0;b<l;b+=1){if(m=t[b],w=i(m,b),g=s.get(w).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(g),C.done.delete(g);if((g.f&vn)!==0)if(g.f^=vn,g===u)kr(g,null,n);else{var $=f?f.next:u;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),xn(e,f,g),xn(e,g,$),kr(g,$,n),f=g,h=[],_=[],u=f.next;continue}if((g.f&It)!==0&&(Ci(g),o&&(g.nodes?.a?.unfix(),(v??=new Set).delete(g))),g!==u){if(c!==void 0&&c.has(g)){if(h.length<_.length){var p=_[0],T;f=p.prev;var D=h[0],k=h[h.length-1];for(T=0;T<h.length;T+=1)kr(h[T],p,n);for(T=0;T<_.length;T+=1)c.delete(_[T]);xn(e,D.prev,k.next),xn(e,f,D),xn(e,k,p),u=p,f=k,b-=1,h=[],_=[]}else c.delete(g),kr(g,u,n),xn(e,g.prev,g.next),xn(e,g,f===null?e.effect.first:f.next),xn(e,f,g),f=g;continue}for(h=[],_=[];u!==null&&u!==g;)(c??=new Set).add(u),_.push(u),u=u.next;if(u===null)continue}(g.f&vn)===0&&h.push(g),f=g,u=g.next}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Ii(Wr(C.done)),e.outrogroups?.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||c!==void 0){var L=[];if(c!==void 0)for(g of c)(g.f&It)===0&&L.push(g);for(;u!==null;)(u.f&It)===0&&u!==e.fallback&&L.push(u),u=u.next;var E=L.length;if(E>0){var H=(r&Eo)!==0&&l===0?n:null;if(o){for(b=0;b<E;b+=1)L[b].nodes?.a?.measure();for(b=0;b<E;b+=1)L[b].nodes?.a?.fix()}Ds(e,L,H)}}o&&Hn(()=>{if(v!==void 0)for(g of v)g.nodes?.a?.apply()})}function ks(e,t,n,r,i,o,l,s){var u=(l&Sl)!==0?(l&Ll)===0?Di(n,!1,!1):Un(n):null,c=(l&Rl)!==0?Un(i):null;return{v:u,i:c,e:Lt(()=>(o(t,u??n,c??i,s),()=>{e.delete(r)}))}}function kr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,o=t&&(t.f&vn)===0?t.nodes.start:n;r!==null;){var l=yr(r);if(o.before(r),r===i)return;r=l}}function xn(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function yn(e,t,...n){var r=new Ri(e);wr(()=>{const i=t()??null;r.ensure(i,i&&(o=>i(o,...n)))},En)}function Li(e,t,n){var r=new Ri(e);wr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},En)}function Ye(e,t){var n=void 0,r;us(()=>{n!==(n=t())&&(r&&(mt(r),r=null),n&&(r=Lt(()=>{ki(()=>n(e))})))})}function da(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=da(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Cs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=da(e))&&(r&&(r+=" "),r+=t);return r}function on(e){return typeof e=="object"?Cs(e):e??""}function Ts(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ha(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var o=e[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function Mi(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function xs(e,t){if(t){var n="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,s=!1,u=[];r&&u.push(...Object.keys(r).map(Mi)),i&&u.push(...Object.keys(i).map(Mi));var c=0,f=-1;const w=e.length;for(var v=0;v<w;v++){var h=e[v];if(s?h==="/"&&e[v-1]==="*"&&(s=!1):o?o===h&&(o=!1):h==="/"&&e[v+1]==="*"?s=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!s&&o===!1&&l===0){if(h===":"&&f===-1)f=v;else if(h===";"||v===w-1){if(f!==-1){var _=Mi(e.substring(c,f).trim());if(!u.includes(_)){h!==";"&&v++;var m=e.substring(c,v).trim();n+=" "+m+";"}}c=v+1,f=-1}}}}return r&&(n+=ha(r)),i&&(n+=ha(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function N(e,t,n,r,i,o){var l=e.__className;if(l!==n||l===void 0){var s=Ts(n);s==null?e.removeAttribute("class"):e.className=s,e.__className=n}return o}function Pi(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function qt(e,t,n,r){var i=e.__style;if(i!==t){var o=xs(t,r);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else r&&(Array.isArray(r)?(Pi(e,n?.[0],r[0]),Pi(e,n?.[1],r[1],"important")):Pi(e,n,r));return r}const Ss=Symbol("is custom element"),Rs=Symbol("is html");function Be(e,t,n,r){var i=Is(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[yl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ls(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Is(e){return e.__attributes??={[Ss]:e.nodeName.includes("-"),[Rs]:e.namespaceURI===Wl}}var va=new Map;function Ls(e){var t=e.getAttribute("is")||e.nodeName,n=va.get(t);if(n)return n;va.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=_o(i);for(var l in r)r[l].set&&n.push(l);i=vi(i)}return n}function Sn(e,t,n){var r=Pn(e,t);r&&r.set&&(e[t]=n,Xr(()=>{e[t]=null}))}class Ai{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,n){var r=this.#e.get(t)||new Set;return r.add(n),this.#e.set(t,r),this.#r().observe(t,this.#n),()=>{var i=this.#e.get(t);i.delete(n),i.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var n of t){Ai.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var Ms=new Ai({box:"border-box"});function jr(e,t,n){var r=Ms.observe(e,()=>n(e[t]));ki(()=>(U(()=>n(e[t])),r))}function ga(e,t){return e===t||e?.[Fn]===t}function bt(e={},t,n,r){return ki(()=>{var i,o;return Go(()=>{i=o,o=r?.()||[],U(()=>{e!==n(...o)&&(t(e,...o),i&&ga(n(...i),e)&&t(null,...i))})}),()=>{Hn(()=>{o&&ga(n(...o),e)&&t(null,...o)})}}),e}function Ps(e=!1){const t=Ue,n=t.l.u;if(!n)return;let r=()=>gs(t.s);if(e){let i=0,o={};const l=_r(()=>{let s=!1;const u=t.s;for(const c in u)u[c]!==o[c]&&(o[c]=u[c],s=!0);return s&&i++,i});r=()=>a(l)}n.b.length&&Bn(()=>{_a(t,r),Ur(n.b)}),et(()=>{const i=U(()=>n.m.map(gl));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&et(()=>{_a(t,r),Ur(n.a)})}function _a(e,t){if(e.l.s)for(const n of e.l.s)a(n);t()}function Oi(e,t,n){if(e==null)return t(void 0),n&&n(void 0),_t;const r=U(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const or=[];function ma(e,t){return{subscribe:lt(e,t).subscribe}}function lt(e,t=_t){let n=null;const r=new Set;function i(s){if(Co(e,s)&&(e=s,n)){const u=!or.length;for(const c of r)c[1](),or.push(c,e);if(u){for(let c=0;c<or.length;c+=2)or[c][0](or[c+1]);or.length=0}}}function o(s){i(s(e))}function l(s,u=_t){const c=[s,u];return r.add(c),r.size===1&&(n=t(i,o)||_t),s(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:l}}function tt(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return ma(n,(l,s)=>{let u=!1;const c=[];let f=0,v=_t;const h=()=>{if(f)return;v();const m=t(r?c[0]:c,l,s);o?l(m):v=typeof m=="function"?m:_t},_=i.map((m,w)=>Oi(m,g=>{c[w]=g,f&=~(1<<w),u&&h()},()=>{f|=1<<w}));return u=!0,h(),function(){Ur(_),v(),u=!1}})}function Cr(e){let t;return Oi(e,n=>t=n)(),t}let ei=!1,Fi=Symbol();function d(e,t,n){const r=n[t]??={store:null,source:Di(void 0),unsubscribe:_t};if(r.store!==e&&!(Fi in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_t;else{var i=!0;r.unsubscribe=Oi(e,o=>{i?r.source.v=o:Z(r.source,o)}),i=!1}return e&&Fi in n?Cr(e):a(r.source)}function Oe(e,t){return e.set(t),t}function Ee(){const e={};function t(){Xr(()=>{for(var n in e)e[n].unsubscribe();go(e,Fi,{enumerable:!1,value:!0})})}return[e,t]}function Ve(e,t,n){return e.set(n),t}function As(e){var t=ei;try{return ei=!1,[e(),ei]}finally{ei=t}}function Me(e,t,n,r){var i=!er||(n&Pl)!==0,o=(n&Ol)!==0,l=(n&Fl)!==0,s=r,u=!0,c=()=>(u&&(u=!1,s=l?U(r):r),s),f;if(o){var v=Fn in e||ml in e;f=Pn(e,t)?.set??(v&&t in e?p=>e[t]=p:void 0)}var h,_=!1;o?[h,_]=As(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),f&&(i&&El(),f(h)));var m;if(i?m=()=>{var p=e[t];return p===void 0?c():(u=!0,p)}:m=()=>{var p=e[t];return p!==void 0&&(s=void 0),p===void 0?s:p},i&&(n&Al)===0)return m;if(f){var w=e.$$legacy;return(function(p,T){return arguments.length>0?((!i||!T||w||_)&&f(T?m():p),p):m()})}var g=!1,b=((n&Ml)!==0?_r:wi)(()=>(g=!1,m()));o&&a(b);var $=Le;return(function(p,T){if(arguments.length>0){const D=T?a(b):i&&o?zn(p):p;return Z(b,D),g=!0,s!==void 0&&(s=D),p}return Yn&&g||($.f&hn)!==0?b.v:a(b)})}function ar(e){Ue===null&&Do(),er&&Ue.l!==null?Os(Ue).m.push(e):et(()=>{const t=U(e);if(typeof t=="function")return t})}function Os(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Fs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Fs);function Ni(e,t=void 0){return function(n){return n.key==="Enter"||n.key===" "&&!n.preventDefault()?e.call(t,n):void 0}}function st(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Ns(e){return t=>{let n=r=>{t&&!t.contains(r.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:r}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function Hi(e){return t=>{let n=new ResizeObserver(r=>{for(let i of r)e(t,i)});return n.observe(t),()=>{n.unobserve(t)}}}function ya(e,t){return n=>{let r=new IntersectionObserver(i=>{for(let o of i)e(n,o)},t);return r.observe(n),()=>{r.unobserve(n)}}}const Tr=86400;function an(e=void 0){return e!==void 0?e instanceof Date?Da(e):Us(e):Da(new Date)}function it(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let n=0,r=2;for(let i of e.split(":",3))n+=parseInt(i,10)*Math.pow(60,r--);e={seconds:n}}else e instanceof Date&&(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 X(e){return new Date(e.getTime())}function Fe(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)Rn(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function ti(e,t,n=1){return Fe(e,t,-n)}function Xt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Rn(e,t=1){return Xt(e,-t)}function Kt(e){return e.setUTCHours(0,0,0,0),e}function Je(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function At(e,t=19){return e.toISOString().substring(0,t)}function Et(e,...t){return t.every(n=>e.getTime()===n.getTime())}function Hs(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ba(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function wa(e){return typeof e=="string"&&e.length<=10}function Wi(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function xe(e){return e.seconds}function pa(e,t){return Fe(e,t),e}function $a(e,t,n){if(ti(e,t),n.length&&n.length<7)for(;n.includes(e.getUTCDay());)Rn(e);return e}function Ws(e,t){e=X(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-n)/1e3/Tr+1)/7)}function Da(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function Us(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)))}function gt(...e){return Object.assign(...e)}function bn(e){return Object.keys(e)}function zs(e){return Object.entries(e)}function Ui(e){return Math.floor(e)}function Bs(e){return Math.ceil(e)}function ln(...e){return Math.min(...e)}function Ot(...e){return Math.max(...e)}function Vs(){return Symbol("ec")}function Ea(e){return Array.isArray(e)}function De(e){return typeof e=="function"}function Gs(e){for(let t in e)if(Object.hasOwn(e,t))return!1;return!0}function Ys(e){return e()}function ka(e){e.forEach(Ys)}function qs(){}const Xn=e=>e;function zi(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function xr(){return window.getComputedStyle(document.documentElement).direction==="rtl"}let Bi=Vs();function Ca(e,t){e[Bi]=t}function Xs(e){return!!e?.[Bi]}function wn(e){return e[Bi]}function Ta(e,t,n,r=[]){let i=document.createElement(e);i.className=t,typeof n=="string"?i.innerText=n:n.domNodes?i.replaceChildren(...n.domNodes):n.html&&(i.innerHTML=n.html);for(let o of r)i.setAttribute(...o);return i}function In(e){return e.getBoundingClientRect()}function xa(e,t){for(;t--;)e=e.parentElement;return e}function Kn(e){return In(e).height}function lr(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(Xs(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let o=lr(e,t,i.shadowRoot,r);if(o)return o}}return null}function Sr(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ks(e,t,n,r){return{type:e,title:t,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}function wt(e){return e=gt({},e),e.currentStart=Je(e.currentStart),e.currentEnd=Je(e.currentEnd),e.activeStart=Je(e.activeStart),e.activeEnd=Je(e.activeEnd),e}function Sa(e){return e.startsWith("list")}function Zs(e){return e.includes("Timeline")}let Js=1;function ni(e){return e.map(t=>{let n={id:"id"in t?String(t.id):`{generated-${Js++}}`,resourceIds:Vi(t,"resourceId").map(String),allDay:t.allDay??(wa(t.start)&&wa(t.end)),start:an(t.start),end:an(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:Vi(t,"className"),styles:Vi(t,"style")};if(n.allDay){Kt(n.start);let r=X(n.end);Kt(n.end),(!Et(n.end,r)||Et(n.end,n.start))&&Xt(n.end)}return n})}function Vi(e,t){let n=e[t+"s"]??e[t]??[];return Ea(n)?n:[n]}function Qs(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 js(e,t,n,r,i,o){let l=i.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Wi(X(e.start),e.end):e.start),s;if(n&&(s=De(n)?n({event:ut(e.event),timeText:l,view:wt(o)}):n),s===void 0){let u;switch(e.event.display){case"background":u=[];break;case"pointer":u=e.event.allDay?[]:[Ra(l,e,r)];break;default:u=[...e.event.allDay?[]:[Ra(l,e,r)],Ta("h4",r.eventTitle,e.event.title)]}s={domNodes:u}}return[l,s]}function Ra(e,t,n){return Ta("time",n.eventTime,e,[["datetime",At(t.start)]])}function eu(e,t,n){let r=t.classNames;return e&&(De(e)&&(e=e({event:ut(t),view:wt(n)})),r=[...Ea(e)?e:[e],...r]),r}function ut(e){return Ia(e,Je)}function Gi(e){return Ia(e,X)}function Ia(e,t){return e=gt({},e),e.start=t(e.start),e.end=t(e.end),e}function Yi(e,t){e.length=t.length;for(let n of e)n?.reposition()}function Rr(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function ri(e){return tu(e)||nu(e)||ru(e)}function Ut(e){return e==="background"}function tu(e){return e==="preview"}function nu(e){return e==="ghost"}function ru(e){return e==="pointer"}function Ir(e,t,n){let r={start:e.start>t?e.start:t,end:e.end<n?e.end:n,event:e};return r.zeroDuration=Et(r.start,r.end),r}function sr(e,t){let n=[],r,i,o;for(let{gridColumn:l,gridRow:s,resource:u,dayStart:c,dayEnd:f,disabled:v}of t)!v&&Rr(e,c,f,u)&&(n.push(c),r=f,i||(i=l,o=s));if(n.length){let l=Ir(e,n[0],r);return gt(l,{gridColumn:i,gridRow:o,dates:n}),[l]}return[]}function La(e){let t={},n={};for(let r of e){let{gridColumn:i,gridRow:o}=r;for(let s=1;s<r.dates.length;++s){let u=`${o}_${i+s}`;n[u]?n[u].chunks.push(r):n[u]={sorted:!1,chunks:[r]}}let l=`${o}_${i}`;r.long=n[l],r.prev=t[l],t[l]=r}}function Ma(e,t,n=0){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let i=e.long;i.sorted||(i.chunks.sort((o,l)=>o.top-l.top),i.sorted=!0);for(let o of i.chunks)if(n<o.bottom&&r>o.top){let l=o.bottom-n+1;n+=l,r+=l}}return gt(e,{top:n,bottom:r}),n}function Pa(e,t,n){n.update(r=>r.set(t,e))}function iu(e){ka(e),e.clear()}function ou(e,t,n){t??=e,n.has(t)||n.set(t,setTimeout(()=>{n.delete(t),e()}))}function ii(e){return ai(e,"day")}function oi(e){return ai(e,"week")}function qi(e){return ai(e,"month")}function au(e){return ai(e,"year")}function ai(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function zt(e){return t=>({...t,view:e})}function lu(e){let t,n;return e&&({start:t,end:n}=e,t&&(t=Kt(an(t))),n&&(n=Kt(an(n)))),{start:t,end:n}}function ur(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Aa(e){let t=[];return Oa(e,0,t),t}function Oa(e,t,n){let r=[];for(let i of e){let o=su(i);r.push(o),n.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ca(o,l),i.children&&(l.children=Oa(i.children,t+1,n))}return r}function su(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function uu(e,t){return Fa(e,t)?.eventBackgroundColor}function cu(e,t){return Fa(e,t)?.eventTextColor}function Fa(e,t){return t.find(n=>e.resourceIds.includes(n.id))}function Na(e,t,n,r,i){let o=[];e=X(e);let l=X(e);for(Fe(e,r.min),Fe(l,r.max);e<l;)o.push([At(e),i.format(e)]),Fe(e,t,n);let s=Ui((e-l)/1e3/xe(t));return s&&s!==n&&(o.at(-1)[2]=n-s),o}function Ha(e,t,n,r,i){let o=it(e),l=it(t);if(n){let s=it(ln(xe(o),Ot(0,xe(l)-Tr))),u=it(Ot(xe(l),xe(s)+Tr)),c=De(n?.eventFilter)?n.eventFilter:f=>!Ut(f.display);e:for(let f of r){let v=Fe(X(f),o),h=Fe(X(f),l),_=Fe(X(f),s),m=Fe(X(f),u);for(let w of i)if(!w.allDay&&c(w)&&w.start<m&&w.end>_){if(w.start<v){let g=Ot((w.start-f)/1e3,xe(s));g<xe(o)&&(o.seconds=g)}if(w.end>h){let g=ln((w.end-f)/1e3,xe(u));g>xe(l)&&(l.seconds=g)}if(xe(o)===xe(s)&&xe(l)===xe(u))break e}}}return{min:o,max:l}}function Zn(e,t){return tt([e,t],([n,r])=>{let i=De(r)?{format:r}:new Intl.DateTimeFormat(n,r);return{format:o=>i.format(Je(o))}})}function Wa(e,t){return tt([e,t],([n,r])=>{let i;if(De(r))i=r;else{let o=new Intl.DateTimeFormat(n,r);i=(l,s)=>{if(l<=s)return o.formatRange(l,s);{let u=o.formatRangeToParts(s,l),c="",f=["startRange","endRange"],v=[!1,!1];for(let h of u){let _=f.indexOf(h.source);_>=0?v[_]||(c+=fu(f[1-_],u),v[_]=!0):c+=h.value}return c}}}return{formatRange:(o,l)=>i(Je(o),Je(l))}})}function fu(e,t){let n="";for(let r of t)r.source==e&&(n+=r.value);return n}const Ua=["buttonText","customButtons","theme"];function du(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:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",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 n of e)n.createOptions?.(t);return t}function hu(e){let t={date:n=>Kt(an(n)),duration:it,events:ni,eventSources:Qs,hiddenDays:n=>[...new Set(n)],highlightedDates:n=>n.map(r=>Kt(an(r))),resources:Aa,validRange:lu};for(let n of e)n.createParsers?.(t);return t}function vu(e,t){let n=[];for(let r of bn(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function gu(e){return tt(e.view,t=>t?.startsWith("dayGrid"))}function _u(e){return tt([e._currentRange,e._activeRangeExt],([t,n])=>n({start:X(t.start),end:X(t.end)}))}function mu(e){return tt([e.date,e.duration,e.firstDay],([t,n,r])=>{let i=X(t),o;return n.months?i.setUTCDate(1):n.inWeeks&&ba(i,r),o=Fe(X(i),n),{start:i,end:o}})}function yu(e){return tt([e._activeRange,e.hiddenDays],([t,n])=>{let r=[],i=Kt(X(t.start)),o=Kt(X(t.end));for(;i<o;)n.includes(i.getUTCDay())||r.push(X(i)),Xt(i);return!r.length&&n.length&&n.length<7&&(e.date.update(l=>{for(;n.includes(l.getUTCDay());)Xt(l);return l}),r=Cr(e._viewDates)),r})}function bu(e){return tt([e.date,e._activeRange,e._intlTitle,e._dayGrid],([t,n,r,i])=>i?r.formatRange(t,t):r.formatRange(n.start,Rn(X(n.end))))}function wu(e){return tt([e.view,e._viewTitle,e._currentRange,e._activeRange],t=>Ks(...t))}function pu(e){let t=lt([]),n,r=0,i={};return tt([e.events,e.eventSources,e._activeRange,e._fetchedRange,e.lazyFetching,e.loading],(o,l)=>Pa(()=>{let[s,u,c,f,v,h]=o;if(!u.length){l(s);return}if(!f.start||f.start>c.start||f.end<c.end||!v){n&&n.abort(),n=new AbortController,De(h)&&!r&&h(!0);let _=()=>{--r===0&&De(h)&&h(!1)},m=[],w=p=>_(),g=p=>{m=m.concat(ni(p)),l(m),_()},b=At(c.start),$=At(c.end);for(let p of u){if(De(p.events)){let T=p.events({start:Je(c.start),end:Je(c.end),startStr:b,endStr:$},g,w);T!==void 0&&Promise.resolve(T).then(g,w)}else{let T=De(p.extraParams)?p.extraParams():gt({},p.extraParams);T.start=b,T.end=$,T=new URLSearchParams(T);let D=p.url,k={},L;["GET","HEAD"].includes(p.method)?D+=(D.includes("?")?"&":"?")+T:(k["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",L=String(T)),fetch(D,{method:p.method,headers:k,body:L,signal:n.signal,credentials:"same-origin"}).then(E=>E.json()).then(g).catch(w)}++r}f.start=c.start,f.end=c.end}},i,e._queue),[]).subscribe(t.set),t}function $u(e){let t;e._view.subscribe(r=>t=r);let n={};return tt([e._events,e.eventFilter,e.eventOrder,e.filterEventsWithResources,e.resources],(r,i)=>Pa(()=>{let[o,l,s,u,c]=r,f=[...o];if(De(l)){let v=o.map(ut);f=f.filter((h,_)=>l({event:ut(h),index:_,events:v,view:t}))}u&&(f=f.filter(v=>c.some(h=>v.resourceIds.includes(h.id)))),De(s)?f.sort((v,h)=>s(ut(v),ut(h))):f.sort((v,h)=>v.start-h.start||h.allDay-v.allDay),i(f)},n,e._queue),[])}function Du(){return ma(an(),e=>{let t=setInterval(()=>{e(an())},1e3);return()=>clearInterval(t)})}function Eu(e){let t=Kt(an()),n=lt(t);return e._now.subscribe(r=>{let i=Kt(X(r));Et(t,i)||(t=i,n.set(i))}),n}class ku{constructor(t,n){t=t||[];let r=du(t),i=hu(t);r=Xi(r,i),n=Xi(n,i);for(let[l,s]of Object.entries(r))this[l]=lt(s);this._queue=lt(new Map),this._tasks=new Map,this._auxiliary=lt([]),this._dayGrid=gu(this),this._currentRange=mu(this),this._activeRangeExt=lt(Xn),this._activeRange=_u(this),this._fetchedRange=lt({start:void 0,end:void 0}),this._events=pu(this),this._mainEl=lt(void 0),this._now=Du(),this._today=Eu(this),this._intlEventTime=Wa(this.locale,this.eventTimeFormat),this._intlDayHeader=Zn(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Zn(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Wa(this.locale,this.titleFormat),this._viewTitle=bu(this),this._viewDates=yu(this),this._view=wu(this),this._viewComponent=lt(void 0),this._filteredEvents=$u(this),this._interaction=lt({}),this._iEvents=lt([null,null]),this._iClasses=lt(Xn),this._iClass=lt(void 0),this._set=(l,s)=>{Ki(l,this)&&(i[l]&&(s=i[l](s)),this[l].set(s))},this._get=l=>Ki(l,this)?Cr(this[l]):void 0;for(let l of t)l.createStores?.(this);n.view&&this.view.set(n.view);let o=new Set([...bn(r.views),...bn(n.views??{})]);for(let l of o){let s=za(r,r.views[l]??{}),u=za(s,n,n.views?.[l]??{}),c=u.component;Cu(u,this);for(let f of bn(u)){let{set:v,_set:h=v,..._}=this[f];this[f]={set:Ua.includes(f)?m=>{if(De(m)){let w=m(s[f]);u[f]=w,v(v===h?w:m)}else u[f]=m,v(m)}:m=>{u[f]=m,v(m)},_set:h,..._}}this.view.subscribe(f=>{if(f===l){this._viewComponent.set(c),De(u.viewDidMount)&&Jr().then(()=>u.viewDidMount({view:wt(Cr(this._view))}));for(let v of bn(u))this[v]._set(u[v])}})}}}function Xi(e,t){let n={...e};for(let r of bn(t))r in n&&(n[r]=t[r](n[r]));if(e.views){n.views={};for(let r of bn(e.views))n.views[r]=Xi(e.views[r],t)}return n}function za(...e){let t={};for(let n of e){let r={};for(let i of Ua)De(n[i])&&(r[i]=n[i](t[i]));t={...t,...n,...r}}return t}function Cu(e,t){bn(e).filter(n=>!Ki(n,t)||n==="view").forEach(n=>delete e[n])}function Ki(e,t){return t.hasOwnProperty(e)&&e[0]!=="_"}var Tu=j("<h2></h2>"),xu=j("<button><i></i></button>"),Su=j("<button><i></i></button>"),Ru=j("<button> </button>"),Iu=j("<button></button>"),Lu=j("<button> </button>");function Ba(e,t){ye(t,!0);const n=()=>d(p,"$_viewDates",m),r=()=>d(C,"$validRange",m),i=()=>d(b,"$_today",m),o=()=>d(g,"$_currentRange",m),l=()=>d(k,"$date",m),s=()=>d(L,"$duration",m),u=()=>d(E,"$hiddenDays",m),c=()=>d(H,"$theme",m),f=()=>d($,"$_viewTitle",m),v=()=>d(T,"$buttonText",m),h=()=>d(D,"$customButtons",m),_=()=>d(S,"$view",m),[m,w]=Ee();let{_currentRange:g,_today:b,_viewTitle:$,_viewDates:p,buttonText:T,customButtons:D,date:k,duration:L,hiddenDays:E,theme:H,validRange:C,view:S}=Te("state"),P=Ie(!1),A=Ie(!1),G=Ie(!1),q=!1;Bn(()=>{n(),r(),t.buttons,U(()=>{q||(q=!0,t.buttons.includes("prev")&&(Z(P,!1),r().start&&Z(P,te(O),!0)),t.buttons.includes("next")&&(Z(A,!1),r().end&&Z(A,te(Y),!0)),t.buttons.includes("today")&&(Z(G,i()>=o().start&&i()<o().end,!0),!a(G)&&(r().start||r().end)&&Z(G,te(B),!0)),Jr().then(()=>q=!1))})});function te(de){let V=X(l());de();let Pe=n().every(re=>ur(re,r()));return Oe(k,V),Pe}function O(){Oe(k,$a(l(),s(),u()))}function Y(){Oe(k,pa(l(),s()))}function B(){Oe(k,X(i()))}var K=_e(),ue=J(K);oe(ue,17,()=>t.buttons,se,(de,V)=>{var Pe=_e(),re=J(Pe);{var ke=He=>{var ae=Tu();Ye(ae,()=>st(f())),le(()=>N(ae,1,c().title)),x(He,ae)},Xe=He=>{var ae=_e(),he=J(ae);{var kt=Ke=>{var M=xu();M.__click=O;var me=fe(M);le(()=>{N(M,1,`${c().button??""} ec-${a(V)??""}`),Be(M,"aria-label",v().prev),Be(M,"title",v().prev),M.disabled=a(P),N(me,1,`${c().icon??""} ec-${a(V)??""}`)}),x(Ke,M)},Ct=Ke=>{var M=_e(),me=J(M);{var Qe=Q=>{var ge=Su();ge.__click=Y;var Ce=fe(ge);le(()=>{N(ge,1,`${c().button??""} ec-${a(V)??""}`),Be(ge,"aria-label",v().next),Be(ge,"title",v().next),ge.disabled=a(A),N(Ce,1,`${c().icon??""} ec-${a(V)??""}`)}),x(Q,ge)},ve=Q=>{var ge=_e(),Ce=J(ge);{var Ge=je=>{var qe=Ru();qe.__click=B;var pt=fe(qe);le(()=>{N(qe,1,`${c().button??""} ec-${a(V)??""}`),qe.disabled=a(G),ca(pt,v()[a(V)])}),x(je,qe)},ot=je=>{var qe=_e(),pt=J(qe);{var sn=Bt=>{var Ft=Iu();Ft.__click=function(...Zt){h()[a(V)].click?.apply(this,Zt)},Ye(Ft,()=>st(h()[a(V)].text)),le(()=>N(Ft,1,on([c().button,`ec-${a(V)}`,h()[a(V)].active&&c().active]))),x(Bt,Ft)},Ln=Bt=>{var Ft=_e(),Zt=J(Ft);{var Jt=Tt=>{var xt=Lu();xt.__click=()=>Oe(S,a(V));var un=fe(xt);le(()=>{N(xt,1,on([c().button,`ec-${a(V)}`,_()===a(V)&&c().active])),ca(un,v()[a(V)])}),x(Tt,xt)};$e(Zt,Tt=>{a(V)!==""&&Tt(Jt)},!0)}x(Bt,Ft)};$e(pt,Bt=>{h()[a(V)]?Bt(sn):Bt(Ln,!1)},!0)}x(je,qe)};$e(Ce,je=>{a(V)==="today"?je(Ge):je(ot,!1)},!0)}x(Q,ge)};$e(me,Q=>{a(V)==="next"?Q(Qe):Q(ve,!1)},!0)}x(Ke,M)};$e(he,Ke=>{a(V)==="prev"?Ke(kt):Ke(Ct,!1)},!0)}x(He,ae)};$e(re,He=>{a(V)==="title"?He(ke):He(Xe,!1)})}x(de,Pe)}),x(e,K),be(),w()}Tn(["click"]);var Mu=j("<div><!></div>"),Pu=j("<div></div>"),Au=j("<nav></nav>");function Ou(e,t){ye(t,!0);const n=()=>d(l,"$headerToolbar",i),r=()=>d(s,"$theme",i),[i,o]=Ee();let{headerToolbar:l,theme:s}=Te("state"),u=y(()=>{let f={};for(let v of["start","center","end"])f[v]=n()[v]?.split(" ").map(h=>h.split(","))??[];return f});var c=Au();oe(c,21,()=>bn(a(u)),se,(f,v)=>{var h=Pu();oe(h,21,()=>a(u)[a(v)],se,(_,m)=>{var w=_e(),g=J(w);{var b=p=>{var T=Mu(),D=fe(T);Ba(D,{get buttons(){return a(m)}}),le(()=>N(T,1,r().buttonGroup)),x(p,T)},$=p=>{Ba(p,{get buttons(){return a(m)}})};$e(g,p=>{a(m).length>1?p(b):p($,!1)})}x(_,w)}),le(()=>N(h,1,`ec-${a(v)??""}`)),x(f,h)}),le(()=>N(c,1,r().toolbar)),x(e,c),be(),o()}function Fu(e,t){ye(t,!0);const n=()=>d(m,"$_activeRange",c),r=()=>d(v,"$datesSet",c),i=()=>d($,"$_view",c),o=()=>d(w,"$_filteredEvents",c),l=()=>d(h,"$eventAllUpdated",c),s=()=>d(b,"$_queue",c),u=()=>d(_,"$_auxiliary",c),[c,f]=Ee();let{datesSet:v,eventAllUpdated:h,_auxiliary:_,_activeRange:m,_filteredEvents:w,_tasks:g,_queue:b,_view:$}=Te("state");et(()=>{n(),U(()=>{De(r())&&r()({start:Je(n().start),end:Je(n().end),startStr:At(n().start),endStr:At(n().end),view:wt(i())})})}),et(()=>{o(),U(()=>{De(l())&&ou(()=>l()({view:wt(i())}),"eau",g)})}),et(()=>{s(),U(()=>{iu(s())})});var p=_e(),T=J(p);oe(T,1,u,se,(D,k)=>{var L=_e(),E=J(L);Li(E,()=>a(k),(H,C)=>{C(H,{})}),x(D,L)}),x(e,p),be(),f()}var Nu=j("<div><!> <!></div> <!>",1);function Hu(e,t){ye(t,!0);const n=()=>d(T,"$_events",h),r=()=>d($,"$_interaction",h),i=()=>d(D,"$date",h),o=()=>d(k,"$duration",h),l=()=>d(L,"$hiddenDays",h),s=()=>d(b,"$_viewComponent",h),u=()=>d(H,"$theme",h),c=()=>d(p,"$_iClass",h),f=()=>d(E,"$height",h),v=()=>d(C,"$view",h),[h,_]=Ee();let m=Me(t,"plugins",19,()=>[]),w=Me(t,"options",19,()=>({})),g=new ku(m(),w());Bl("state",g);let{_viewComponent:b,_interaction:$,_iClass:p,_events:T,date:D,duration:k,hiddenDays:L,height:E,theme:H,view:C}=g,S={...w()};et(()=>{for(let[M,me]of vu(w(),S))U(()=>{P(M,me)});gt(S,w())});function P(M,me){return g._set(M,me),this}function A(M){let me=g._get(M);return me instanceof Date?Je(me):me}function G(){return g._fetchedRange.set({start:void 0,end:void 0}),this}function q(){return n().map(ut)}function te(M){for(let me of n())if(me.id==M)return ut(me);return null}function O(M){return M=ni([M])[0],n().push(M),Oe(T,n()),ut(M)}function Y(M){let me=String(M.id),Qe=n().findIndex(ve=>ve.id===me);return Qe>=0?(M=ni([M])[0],Ve(T,U(n)[Qe]=M,U(n)),ut(M)):null}function B(M){M=String(M);let me=n().findIndex(Qe=>Qe.id===M);return me>=0&&(n().splice(me,1),Oe(T,n())),this}function K(){return wt(Cr(g._view))}function ue(){return r().action?.unselect(),this}function de(M,me){let Qe=lr(M,me);if(Qe){let ve=wn(Qe)(M,me);return ve.date=Je(ve.date),ve}return null}function V(){return Oe(D,pa(i(),o())),this}function Pe(){return Oe(D,$a(i(),o(),l())),this}let re=y(s);var ke={setOption:P,getOption:A,refetchEvents:G,getEvents:q,getEventById:te,addEvent:O,updateEvent:Y,removeEventById:B,getView:K,unselect:ue,dateFromPoint:de,next:V,prev:Pe},Xe=Nu(),He=J(Xe);let ae;var he=fe(He);Ou(he,{});var kt=ne(he,2);Li(kt,()=>a(re),(M,me)=>{me(M,{})});var Ct=ne(He,2);Fu(Ct,{}),le(M=>{N(He,1,on([u().calendar,u().view,c()&&u()[c()]])),Be(He,"role",M),ae=qt(He,"",ae,{height:f()})},[()=>Sa(v())?"list":"table"]),x(e,Xe);var Ke=be(ke);return _(),Ke}function Wu(e){return tt(e.hiddenDays,t=>7-t.length)}var Uu=j("<div><!></div>");function li(e,t){ye(t,!0);const n=()=>d($,"$_today",o),r=()=>d(p,"$theme",o),i=()=>d(b,"$_interaction",o),[o,l]=Ee();let s=Me(t,"el",15),u=Me(t,"allDay",3,!1),c=Me(t,"resource",3,void 0),f=Me(t,"dateFromPoint",3,()=>t.date),v=Me(t,"classes",3,Xn),h=Me(t,"disabled",3,!1),_=Me(t,"highlight",3,!1),m=Me(t,"role",3,"cell"),w=Me(t,"noIeb",3,!1),g=Me(t,"noBeb",3,!1),{_interaction:b,_today:$,theme:p}=Te("state"),T=y(()=>Et(t.date,n())),D=y(()=>v()([r().day,r().weekdays?.[t.date.getUTCDay()],a(T)&&r().today,_()&&r().highlight,h()&&r().disabled,w()&&r().noIeb,g()&&r().noBeb]));ar(()=>{Ca(s(),(E,H)=>({allDay:u(),date:f()(E,H),resource:c(),dayEl:s(),disabled:h()}))});var k=Uu();k.__pointerdown=function(...E){(h()?void 0:i().action?.select)?.apply(this,E)};var L=fe(k);yn(L,()=>t.children??_t),bt(k,E=>s(E),()=>s()),le(()=>{N(k,1,on(a(D))),Be(k,"role",m())}),x(e,k),be(),l()}Tn(["pointerdown"]);var zu=j("<div></div>"),Bu=j("<article><!></article>");function Va(e,t){ye(t,!0);const n=()=>d(q,"$resources",g),r=()=>d(k,"$eventBackgroundColor",g),i=()=>d(L,"$eventColor",g),o=()=>d(G,"$eventTextColor",g),l=()=>d(te,"$theme",g),s=()=>d(S,"$eventClassNames",g),u=()=>d(O,"$_view",g),c=()=>d(D,"$displayEventEnd",g),f=()=>d(E,"$eventContent",g),v=()=>d(Y,"$_intlEventTime",g),h=()=>d(C,"$eventDidMount",g),_=()=>d(H,"$eventClick",g),m=()=>d(P,"$eventMouseEnter",g),w=()=>d(A,"$eventMouseLeave",g),[g,b]=Ee();let $=Me(t,"el",15),p=Me(t,"classes",3,Xn),T=Me(t,"styles",3,Xn),{displayEventEnd:D,eventBackgroundColor:k,eventColor:L,eventContent:E,eventClick:H,eventDidMount:C,eventClassNames:S,eventMouseEnter:P,eventMouseLeave:A,eventTextColor:G,resources:q,theme:te,_view:O,_intlEventTime:Y}=Te("state"),B=y(()=>t.chunk.event),K=y(()=>t.chunk.event.display),ue=y(()=>a(B).backgroundColor??uu(a(B),n())??r()??i()),de=y(()=>a(B).textColor??cu(a(B),n())??o()),V=y(()=>zs(T()({"background-color":a(ue),color:a(de)})).map(Q=>`${Q[0]}:${Q[1]}`).concat(a(B).styles).join(";")),Pe=y(()=>p()([Ut(a(K))?l().bgEvent:l().event,...eu(s(),a(B),u())])),re=y(()=>js(t.chunk,c(),f(),l(),v(),u())),ke=y(()=>_l(a(re),2)),Xe=y(()=>a(ke)[0]),He=y(()=>a(ke)[1]);ar(()=>{De(h())&&h()({event:ut(a(B)),timeText:a(Xe),el:$(),view:wt(u())})});function ae(Q,ge){return!ri(ge)&&De(Q)?Ce=>Q({event:ut(a(B)),el:$(),jsEvent:Ce,view:wt(u())}):void 0}let he=y(()=>!Ut(a(K))&&ae(_(),a(K))||void 0),kt=y(()=>a(he)&&Ni(a(he))),Ct=y(()=>ae(m(),a(K))),Ke=y(()=>ae(w(),a(K)));var M=Bu();M.__click=function(...Q){a(he)?.apply(this,Q)},M.__keydown=function(...Q){a(kt)?.apply(this,Q)},M.__pointerdown=function(...Q){t.onpointerdown?.apply(this,Q)};{const Q=ge=>{var Ce=zu();Ye(Ce,()=>st(a(He))),le(()=>N(Ce,1,on(l().eventBody))),x(ge,Ce)};var me=fe(M);{var Qe=ge=>{var Ce=_e(),Ge=J(Ce);yn(Ge,()=>t.body,()=>Q,()=>a(ue),()=>a(de)),x(ge,Ce)},ve=ge=>{Q(ge)};$e(me,ge=>{t.body?ge(Qe):ge(ve,!1)})}bt(M,ge=>$(ge),()=>$())}le(()=>{N(M,1,on(a(Pe))),qt(M,a(V)),Be(M,"role",a(he)?"button":void 0),Be(M,"tabindex",a(he)?0:void 0)}),Pt("mouseenter",M,function(...Q){a(Ct)?.apply(this,Q)}),Pt("mouseleave",M,function(...Q){a(Ke)?.apply(this,Q)}),x(e,M),be(),b()}Tn(["click","keydown","pointerdown"]);var Vu=j("<div><!></div>");function Lr(e,t){ye(t,!0);const n=()=>d(h,"$theme",i),r=()=>d(v,"$_today",i),[i,o]=Ee();let l=Me(t,"weekday",3,!0),s=Me(t,"colSpan",3,1),u=Me(t,"ariaHidden",3,!1),c=Me(t,"disabled",3,!1),f=Me(t,"highlight",3,!1),{_today:v,theme:h}=Te("state");var _=Vu(),m=fe(_);yn(m,()=>t.children),le(w=>{N(_,1,w),Be(_,"role",u()?null:"columnheader"),Be(_,"aria-colspan",u()||s()<=1?null:s()),Be(_,"aria-colindex",u()?null:t.colIndex),Be(_,"aria-hidden",u()?"true":null)},[()=>on([t.className??n().colHead,l()&&n().weekdays?.[t.date.getUTCDay()],l()&&Et(t.date,r())&&n().today,f()&&n().highlight,c()&&n().disabled])]),x(e,_),be(),o()}var Gu=j("<time></time>");function si(e,t){ye(t,!0);const n=()=>d(u,"$_intlDayHeaderAL",i),r=()=>d(s,"$_intlDayHeader",i),[i,o]=Ee();let l=Me(t,"alPrefix",3,""),{_intlDayHeader:s,_intlDayHeaderAL:u}=Te("state");var c=Gu();Ye(c,()=>st(r().format(t.date))),le((f,v)=>{Be(c,"datetime",f),Be(c,"aria-label",`${l()??""}${v??""}`)},[()=>At(t.date,10),()=>n().format(t.date)]),x(e,c),be(),o()}function ui(e,t){ye(t,!0);const n=()=>d(u,"$_iClasses",i),r=()=>d(s,"$_interaction",i),[i,o]=Ee();let l=Me(t,"el",15),{_interaction:s,_iClasses:u}=Te("state"),c=y(()=>t.chunk.event),f=y(()=>t.chunk.event.display),v=y(()=>w=>n()(w,a(c)));function h(w){return r().action?.draggable(w)?g=>r().action.drag(w,g,t.forceDate,t.forceMargin):r().action?.noAction}let _=y(()=>!Ut(a(f))&&!ri(a(f))?h(a(c)):void 0),m=y(()=>r().resizer);Va(e,{get chunk(){return t.chunk},get classes(){return a(v)},get styles(){return t.styles},get onpointerdown(){return a(_)},get el(){return l()},set el(g){l(g)},body:(g,b=_t)=>{var $=_e(),p=J($);{var T=k=>{var L=_e(),E=J(L);Li(E,()=>a(m),(H,C)=>{C(H,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(S,P)=>{var A=_e(),G=J(A);yn(G,b),x(S,A)},$$slots:{default:!0}})}),x(k,L)},D=k=>{var L=_e(),E=J(L);yn(E,b),x(k,L)};$e(p,k=>{a(m)?k(T):k(D,!1)})}x(g,$)},$$slots:{body:!0}}),be(),o()}var Yu=j("<span></span>"),qu=j('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Xu=j("<div><time></time> <!></div> <div><!></div>",1);function Ku(e,t){ye(t,!0);const n=()=>d(h,"$date",f),r=()=>d(w,"$theme",f),i=()=>d(g,"$weekNumbers",f),o=()=>d(_,"$firstDay",f),l=()=>d(b,"$weekNumberContent",f),s=()=>d($,"$_hiddenChunks",f),u=()=>d(m,"$moreLinkContent",f),c=()=>d(p,"$_intlDayCell",f),[f,v]=Ee();let{date:h,firstDay:_,moreLinkContent:m,theme:w,weekNumbers:g,weekNumberContent:b,_hiddenChunks:$,_intlDayCell:p,_popupDay:T}=Te("state"),D=y(()=>t.day.dayStart),k=y(()=>t.day.disabled),L=y(()=>t.day.highlight),E=y(()=>a(D).getUTCMonth()!==n().getUTCMonth()),H=y(()=>q=>[...q,a(E)&&r().otherMonth]),C=y(()=>i()&&a(D).getUTCDay()===(o()?1:0)),S=y(()=>{let q;if(a(C)){let te=Ws(a(D),o());l()?q=De(l())?l()({date:Je(a(D)),week:te}):l():q="W"+String(te).padStart(2,"0")}return q}),P=y(()=>s()[a(D).getTime()]),A=y(()=>{let q="";if(a(P)){let te="+"+a(P).length+" more";u()?q=De(u())?u()({num:a(P).length,text:te}):u():q=te}return q});function G(){Oe(T,t.day)}li(e,{get date(){return a(D)},allDay:!0,get classes(){return a(H)},get disabled(){return a(k)},get highlight(){return a(L)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(q,te)=>{var O=Xu(),Y=J(O),B=fe(Y);Ye(B,()=>st(c().format(a(D))));var K=ne(B,2);{var ue=re=>{var ke=Yu();Ye(ke,()=>st(a(S))),le(()=>N(ke,1,r().weekNumber)),x(re,ke)};$e(K,re=>{a(C)&&re(ue)})}var de=ne(Y,2),V=fe(de);{var Pe=re=>{var ke=qu(),Xe=y(()=>zi(G));ke.__click=function(...he){a(Xe)?.apply(this,he)};var He=y(()=>Ni(G));ke.__keydown=function(...he){a(He)?.apply(this,he)};var ae=y(zi);ke.__pointerdown=function(...he){a(ae)?.apply(this,he)},Ye(ke,()=>st(a(A))),x(re,ke)};$e(V,re=>{a(P)&&re(Pe)})}le(re=>{N(Y,1,r().dayHead),Be(B,"datetime",re),N(de,1,r().dayFoot)},[()=>At(a(D),10)]),x(q,O)},$$slots:{default:!0}}),be(),v()}Tn(["click","keydown","pointerdown"]);function ci(e,t){ye(t,!0);const n=()=>d(c,"$_colsCount",l),r=()=>d(h,"$dayMaxEvents",l),i=()=>d(f,"$_hiddenChunks",l),o=()=>d(v,"$_popupDay",l),[l,s]=Ee();let u=Me(t,"inPopup",3,!1),{_colsCount:c,_hiddenChunks:f,_popupDay:v,dayMaxEvents:h}=Te("state"),_=Ie(void 0),m=Ie(0),w=Ie(!1),g=y(()=>t.chunk.event),b=y(()=>t.chunk.event.display),$=y(()=>t.gridEl?.children.item((t.chunk.gridRow-1)*n()+t.chunk.gridColumn-1));et(()=>{a($)&&Z(m,Kn(a($).firstElementChild),!0)});let p=y(()=>H=>{if(H["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,H["grid-row"]=t.chunk.gridRow,!Ut(a(b))){let C=u()?1:a(m);if(a(g)._margin){let[S,P]=a(g)._margin;S>C&&t.chunk.gridRow===P&&(C=S)}H["margin-block-start"]=`${C}px`}return a(w)&&(H.visibility="hidden"),H});function T(){Z(m,Ma(t.chunk,Kn(a(_)),Kn(a($).firstElementChild)),!0)}function D(){if(r()===!0){let H=Kn(a($))-k(a($));if(Z(w,t.chunk.bottom>H),a(w))for(let C of t.chunk.dates){let S=C.getTime();i()[S]?i()[S].includes(t.chunk)||Ve(f,U(i)[S]=[...i()[S],t.chunk],U(i)):Ve(f,U(i)[S]=[t.chunk],U(i))}}else Z(w,!1),Gs(i())||Oe(f,{})}function k(H){let C=0;for(let S=0;S<t.chunk.dates.length&&(C=Ot(C,Kn(H.lastElementChild)),H=H.nextElementSibling,!!H);++S);return C}var L={reposition:T,hide:D};{let H=y(()=>u()&&o().dayStart),C=y(()=>[a(m),t.chunk.gridRow]);ui(e,{get chunk(){return t.chunk},get styles(){return a(p)},axis:"x",get forceDate(){return a(H)},get forceMargin(){return a(C)},get el(){return a(_)},set el(S){Z(_,S,!0)}})}var E=be(L);return s(),E}var Zu=j('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>');function Ju(e,t){ye(t,!0);const n=()=>d(_,"$_popupDay",u),r=()=>d(f,"$_colsCount",u),i=()=>d(v,"$_interaction",u),o=()=>d(w,"$theme",u),l=()=>d(h,"$_intlDayPopover",u),s=()=>d(m,"$buttonText",u),[u,c]=Ee();let{_colsCount:f,_interaction:v,_intlDayPopover:h,_popupDay:_,buttonText:m,theme:w}=Te("state"),g=Ie(void 0),b=Ie(""),$=y(()=>n().gridColumn),p=y(()=>n().gridRow),T=y(()=>n().dayStart),D=y(()=>n().dayEnd),k=y(()=>{let Y=[];for(let B of t.chunks)B.gridRow===a(p)&&B.gridColumn<=a($)&&B.gridColumn+B.dates.length>a($)&&Y.push(gt({},B,Ir(B.event,a(T),a(D))));return Y.sort((B,K)=>B.top-K.top),Y});ar(()=>{a(g).show()}),et(()=>{a(k).length?U(L):E()});function L(){let Y=t.gridEl.children.item((a(p)-1)*r()+a($)-1),B=In(a(g)),K=In(Y),ue=In(t.gridEl);Z(b,"");let de;if(B.width>=ue.width){de=ue.left-K.left;let Pe=K.right-ue.right;Z(b,a(b)+`inset-inline-end:${Pe}px;`)}else de=(K.width-B.width)/2,K.left+de<ue.left?de=ue.left-K.left:K.left+de+B.width>ue.right&&(de=ue.right-K.left-B.width);Z(b,a(b)+`inset-inline-start:${de}px;`);let V;if(B.height>=ue.height){V=ue.top-K.top;let Pe=K.bottom-ue.bottom;Z(b,a(b)+`inset-block-end:${Pe}px;`)}else V=(K.height-B.height)/2,K.top+V<ue.top?V=ue.top-K.top:K.top+V+B.height>ue.bottom&&(V=ue.bottom-K.top-B.height);Z(b,a(b)+`inset-block-start:${V}px;`)}function E(){Oe(_,null)}function H(){E(),i().action?.noClick()}var C=Zu();let S;var P=fe(C),A=fe(P);Ye(A,()=>st(l().format(a(T))));var G=ne(A,2);os(G);var q=y(()=>zi(E));G.__click=function(...Y){a(q)?.apply(this,Y)};var te=y(()=>Ni(E));G.__keydown=function(...Y){a(te)?.apply(this,Y)};var O=ne(P,2);oe(O,21,()=>a(k),se,(Y,B)=>{ci(Y,{get chunk(){return a(B)},inPopup:!0})}),bt(C,Y=>Z(g,Y),()=>a(g)),Ye(C,()=>Ns("pointerdown")),le(Y=>{N(C,1,o().popup),S=qt(C,a(b),S,{"grid-area":`${a(p)+1} / ${a($)}`}),N(P,1,o().dayHead),Be(A,"datetime",Y),Be(G,"aria-label",s().close),N(O,1,o().events)},[()=>At(a(T),10)]),Pt("pointerdownoutside",C,H),Pt("close",C,E),x(e,C),be(),c()}Tn(["click","keydown"]);function Qu(e,t,n,r){let i=[],o=[],l=1,s=1;for(let u of e)o.push({gridColumn:l,gridRow:s,resource:void 0,dayStart:u,dayEnd:Xt(X(u)),disabled:ur(u,n),highlight:r.some(c=>Et(c,u))}),l===t&&(i.push(o),o=[],l=0,++s),++l;return i}function ju(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ut(i.display)?i.allDay&&(r=r.concat(sr(i,o))):n=n.concat(sr(i,o));return La(n),{chunks:n,bgChunks:r}}function ec(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(sr(r,i));return n}var tc=j('<div role="columnheader"><span></span></div>'),nc=j('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function rc(e,t){ye(t,!0);const n=()=>d(S,"$_viewDates",g),r=()=>d(T,"$_colsCount",g),i=()=>d(te,"$validRange",g),o=()=>d(G,"$highlightedDates",g),l=()=>d(D,"$_filteredEvents",g),s=()=>d(L,"$_iEvents",g),u=()=>d(A,"$firstDay",g),c=()=>d(k,"$_hiddenChunks",g),f=()=>d(p,"$_mainEl",g),v=()=>d(q,"$theme",g),h=()=>d(P,"$dayMaxEvents",g),_=()=>d(H,"$_intlDayHeaderAL",g),m=()=>d(E,"$_intlDayHeader",g),w=()=>d(C,"$_popupDay",g),[g,b]=Ee();let{_activeRangeExt:$,_mainEl:p,_colsCount:T,_filteredEvents:D,_hiddenChunks:k,_iEvents:L,_intlDayHeader:E,_intlDayHeaderAL:H,_popupDay:C,_viewDates:S,dayMaxEvents:P,firstDay:A,highlightedDates:G,theme:q,validRange:te}=Te("state"),O=Ie(void 0),Y=y(()=>Qu(n(),r(),i(),o())),B=y(()=>ju(l(),a(Y))),K=y(()=>a(B).chunks),ue=y(()=>a(B).bgChunks),de=y(()=>ec(s(),a(Y)));Bn(()=>{Oe($,({start:ve,end:Q})=>({start:ba(ve,u()),end:Hs(Q,u())}))});let V=[];function Pe(){Oe(k,{}),Yi(V,a(K))}et(Pe),et(()=>{c(),V.forEach(ve=>ve.hide())});var re=nc();let ke;var Xe=fe(re),He=fe(Xe);oe(He,21,()=>a(Y)[0],se,(ve,Q,ge)=>{let Ce=()=>a(Q).dayStart;var Ge=tc();Be(Ge,"aria-colindex",1+ge);var ot=fe(Ge);Ye(ot,()=>st(m().format(Ce()))),le((je,qe)=>{N(Ge,1,je),Be(ot,"aria-label",qe)},[()=>on([v().colHead,v().weekdays?.[Ce().getUTCDay()]]),()=>_().format(Ce())]),x(ve,Ge)});var ae=ne(Xe,2),he=fe(ae);oe(he,21,()=>a(Y),se,(ve,Q,ge)=>{var Ce=_e(),Ge=J(Ce);oe(Ge,17,()=>a(Q),se,(ot,je,qe)=>{{let pt=y(()=>qe+1===a(Q).length),sn=y(()=>ge+1===a(Y).length);Ku(ot,{get day(){return a(je)},get noIeb(){return a(pt)},get noBeb(){return a(sn)}})}}),x(ve,Ce)}),bt(he,ve=>Z(O,ve),()=>a(O));var kt=ne(he,2),Ct=fe(kt);oe(Ct,17,()=>a(K),se,(ve,Q,ge)=>{bt(ci(ve,{get chunk(){return a(Q)},get gridEl(){return a(O)}}),(Ce,Ge)=>V[Ge]=Ce,Ce=>V?.[Ce],()=>[ge])});var Ke=ne(Ct,2);oe(Ke,17,()=>a(ue),se,(ve,Q)=>{ci(ve,{get chunk(){return a(Q)}})});var M=ne(Ke,2);oe(M,17,()=>a(de),se,(ve,Q)=>{ci(ve,{get chunk(){return a(Q)},get gridEl(){return a(O)}})});var me=ne(ae,2);{var Qe=ve=>{Ju(ve,{get gridEl(){return a(O)},get chunks(){return a(K)}})};$e(me,ve=>{w()&&ve(Qe)})}bt(re,ve=>Oe(p,ve),()=>f()),Ye(re,()=>Hi(Pe)),le(()=>{N(re,1,on([v().main,h()===!0&&v().uniform])),ke=qt(re,"",ke,{"--ec-grid-cols":a(Y)[0].length,"--ec-grid-rows":a(Y).length}),N(Xe,1,v().header),N(He,1,v().grid),N(ae,1,v().body),N(he,1,v().grid),N(kt,1,v().events)}),x(e,re),be(),b()}const ic={createOptions(e){e.dayMaxEvents=!1,e.dayCellFormat={day:"numeric"},e.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},e.moreLinkContent=void 0,e.weekNumbers=!1,e.weekNumberContent=void 0,e.buttonText.dayGridMonth="month",e.buttonText.close="Close",e.theme.uniform="ec-uniform",e.theme.dayFoot="ec-day-foot",e.theme.otherMonth="ec-other-month",e.theme.popup="ec-popup",e.theme.weekNumber="ec-week-number",e.view="dayGridMonth",e.views.dayGridMonth={buttonText:qi,component:rc,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:zt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(e){e._colsCount=Wu(e),e._intlDayCell=Zn(e.locale,e.dayCellFormat),e._intlDayPopover=Zn(e.locale,e.dayPopoverFormat),e._hiddenChunks=lt({}),e._popupDay=lt(null)}};function Ga(e,t,n){return e.startEditable??t??e.editable??n}function oc(e,t,n){return e.durationEditable??t??e.editable??n}let Zi=!1;function ac(e){Zi||(Zi=!0,window.requestAnimationFrame(()=>{e(),Zi=!1}))}function Ya(e,t,n){return Ot(t,ln(n,e))}zl();function lc(e,t){ye(t,!1);const n=()=>d(He,"$eventStartEditable",O),r=()=>d(Xe,"$editable",O),i=()=>d(pt,"$slotDuration",O),o=()=>d(ge,"$selectable",O),l=()=>d(Zt,"$view",O),s=()=>d(V,"$_mainEl",O),u=()=>d(je,"$selectLongPressDelay",O),c=()=>d(Ke,"$eventLongPressDelay",O),f=()=>d(ve,"$longPressDelay",O),v=()=>d(qe,"$selectMinDistance",O),h=()=>d(ae,"$eventDragMinDistance",O),_=()=>d(B,"$_iEvents",O),m=()=>d(M,"$eventResizeStart",O),w=()=>d(he,"$eventDragStart",O),g=()=>d(Q,"$resizeConstraint",O),b=()=>d(ot,"$selectConstraint",O),$=()=>d(re,"$dragConstraint",O),p=()=>d(ke,"$dragScroll",O),T=()=>d(Ln,"$unselectAuto",O),D=()=>d(Bt,"$unselectCancel",O),k=()=>d(Ce,"$selectFn",O),L=()=>d(me,"$eventResizeStop",O),E=()=>d(kt,"$eventDragStop",O),H=()=>d(de,"$_view",O),C=()=>d(Qe,"$eventResize",O),S=()=>d(Ct,"$eventDrop",O),P=()=>d(Pe,"$dateClick",O),A=()=>d(Ft,"$validRange",O),G=()=>d(ue,"$_events",O),q=()=>d(Ge,"$selectBackgroundColor",O),te=()=>d(sn,"$unselectFn",O),[O,Y]=Ee();let{_iEvents:B,_iClass:K,_events:ue,_view:de,_mainEl:V,dateClick:Pe,dragConstraint:re,dragScroll:ke,editable:Xe,eventStartEditable:He,eventDragMinDistance:ae,eventDragStart:he,eventDragStop:kt,eventDrop:Ct,eventLongPressDelay:Ke,eventResizeStart:M,eventResizeStop:me,eventResize:Qe,longPressDelay:ve,resizeConstraint:Q,selectable:ge,select:Ce,selectBackgroundColor:Ge,selectConstraint:ot,selectLongPressDelay:je,selectMinDistance:qe,slotDuration:pt,unselect:sn,unselectAuto:Ln,unselectCancel:Bt,validRange:Ft,view:Zt}=Te("state");const Jt=1,Tt=2,xt=3,un=4,pn=5,$n=6;let Ze,cn,R,W,z,ie,ce,Ae,Se,nt,Ne,we,ct,Qt,rt,ft,jt,We,Dn,cr,lo,Mr=Di(),$t,Pr,fr;function el(I){return Ga(I,n(),r())}function tl(I,F,Re,ee){Ze||(Ze=co(F)?Jt:$n,Jn()&&(R=I,so(F),Re&&(z=Re),ee&&(Pr=ee),jt="dragging",dr(F)))}function nl(I,F,Re,ee,St,Nr,ho){Ze||(Ze=co(F)?Re?xt:Tt:$n,Jn()&&(R=I,so(F),St&&(z=St),Nr&&(Pr=Nr),jt=ee==="x"?"resizingX":"resizingY",hi()?(We=X(R.end),ft?(Wi(We,R.start),We>=R.end&&Rn(We)):(ti(We,i()),We<R.start&&(We=R.start),z=R.start)):(We=X(R.start),ft?(Wi(We,R.end),We<=R.start&&!ho&&Xt(We)):(Fe(We,i()),We>R.end&&(We=R.end),z=R.end,ho||(z=ti(X(z),i()))),ho&&!ft&&(fr=i())),dr(F)))}function rl(I){Ze||(Ze=co(I)?o()&&!Sa(l())?un:pn:$n,Jn()&&(so(I),jt="selecting",Dn=ft?it({day:1}):i(),R={allDay:ft,start:z,end:Fe(X(z),Dn),resourceIds:ce?[ce.id]:[]},dr(I)))}function il(){Ze||(Ze=$n)}function so(I){window.getSelection().removeAllRanges(),Se=Ne=I.clientX,nt=we=I.clientY;let F=lr(Ne,we);({allDay:ft,date:z,resource:ce}=wn(F)(Ne,we)),Qt=s()!==xa(F,3),ct=xa(F,1),al(),I.pointerType!=="mouse"&&Z(Mr,setTimeout(()=>{Ze&&(cn=!0,dr(I))},(Mn()?u():c())??f()))}function dr(I){if(cn||I&&I.pointerType==="mouse"&&yf()>=(Mn()?v():h())){cn=!0,Fr(I),Oe(K,jt),_()[0]||(Mn()?mf():_f(I,hr()?m():w()));let F=Ar(gf());if(F){let Re;if({allDay:Re,date:ie,resource:Ae}=F,Re===ft){let ee=Or({},_()[0]),St=g();rt=it((ie-z)/1e3),hi()?(ee.start=Fe(X(R.start),rt),ee.start>We&&(ee.start=We,rt=it((We-R.start)/1e3))):(ee.end=Fe(X(R.end),rt),fr&&Fe(ee.end,fr),hr()?ee.end<We&&(ee.end=We,rt=it((We-R.end)/1e3)):Mn()?(ee.end<R.end?(ee.start=ti(ee.end,Dn),ee.end=R.end):ee.start=R.start,St=b()):(ee.start=Fe(X(R.start),rt),ce&&(ee.resourceIds=R.resourceIds.filter(Nr=>Nr!==ce.id),ee.resourceIds.push(Ae.id)),St=$()));do{if(St!==void 0&&(ee=Or(Gi(R),ee),St(Mn()?ul(ee,I):cl(ee,R,I))===!1)){Ve(B,U(_)[0]=Or(_()[0],R),U(_));break}Ve(B,U(_)[0]=Or(_()[0],ee),U(_))}while(!1)}}}if(p()){let F=24,Re=24;ac(()=>{$t&&(Qt||(we<$t.top+F&&Ve(V,U(s).scrollTop+=Ot(-8,(we-$t.top-F)/3),U(s)),we>$t.bottom-F&&Ve(V,U(s).scrollTop+=ln(8,(we-$t.bottom+F)/3),U(s))),Ne<$t.left+Re&&Ve(V,U(s).scrollLeft+=Ot(-8,(Ne-$t.left-Re)/3),U(s)),Ne>$t.right-Re&&Ve(V,U(s).scrollLeft+=ln(8,(Ne-$t.right+Re)/3),U(s)),we<F&&window.scrollBy(0,Ot(-8,(we-F)/3)),we>window.innerHeight-F&&window.scrollBy(0,ln(8,(we-window.innerHeight+F)/3)))})}}function uo(){Jn()&&(al(),dr())}function vf(I){Jn()&&I.isPrimary&&(Ne=I.clientX,we=I.clientY,dr(I))}function ol(I){if(cr&&T()&&!(D()&&I.target.closest(D()))&&Fr(I),Ze&&I.isPrimary){if(cn)if(Mn()){if(cr=!0,De(k())){let F=ul(_()[0],I);k()(F)}}else{R.display=W;let F=hr()?L():E();De(F)&&F({event:ut(R),jsEvent:I,view:wt(H())});let Re=Gi(R);if(sl(R,_()[0]),ll(),F=hr()?C():S(),De(F)){let ee=R,St=cl(R,Re,I);F(gt(St,{revert(){sl(ee,Re)}}))}}else if((bf()||Mn())&&De(P())&&!lo){Ne=I.clientX,we=I.clientY;let F=lr(Ne,we);if(F){let{allDay:Re,date:ee,resource:St}=wn(F)(Ne,we);P()({allDay:Re,date:Je(ee),dateStr:At(ee),dayEl:F,jsEvent:I,view:wt(H()),resource:St})}}cn=!1,Ze=Se=nt=Ne=we=R=W=z=ie=ce=Ae=rt=fr=ft=Oe(K,We=Dn=Pr=ct=$t=void 0),a(Mr)&&(clearTimeout(a(Mr)),Z(Mr,void 0))}lo=!1}function gf(){return lr(Ya(Ne,$t.left,$t.right),Ya(we,$t.top,$t.bottom))}function Ar(I){if(I){let F=wn(I)(Ne,we);if(F.disabled){if(!A().end||F.date<A().end)return Ar(I.nextElementSibling);if(!A().start||F.date>A().start)return Ar(I.previousElementSibling)}else return(Mn()||hr())&&F.resource&&!_()[0].resourceIds.includes(F.resource.id)&&!Zs(l())?Ne>Se?Ar(I.previousElementSibling):Ar(I.nextElementSibling):F}return null}function al(){let I=In(s()),F=In(ct),Re=I.width/s().offsetWidth,ee=I.height/s().offsetHeight,St=xr();$t={left:Ot(0,St?I.right-s().clientWidth*Re:F.left+s().scrollLeft*Re),right:ln(document.documentElement.clientWidth,St?F.right+s().scrollLeft*Re:I.left+s().clientWidth*Re)-2,top:Ot(0,F.top+(Qt?0:s().scrollTop)*ee),bottom:ln(document.documentElement.clientHeight,Qt?F.bottom:I.top+s().clientHeight*ee)-2}}function _f(I,F){De(F)&&F({event:ut(R),jsEvent:I,view:wt(H())}),W=R.display,R.display="preview",Ve(B,U(_)[0]=Gi(R),U(_)),Pr!==void 0&&Ve(B,U(_)[0]._margin=Pr,U(_)),fr&&Fe(_()[0].end,fr),R.display="ghost",Oe(ue,G())}function mf(){Ve(B,U(_)[0]={id:"{select}",allDay:R.allDay,start:R.start,title:"",display:"preview",extendedProps:{},backgroundColor:q(),resourceIds:R.resourceIds,classNames:[],styles:[]},U(_))}function ll(){Ve(B,U(_)[0]=null,U(_))}function Or(I,F){return I.start=F.start,I.end=F.end,I.resourceIds=F.resourceIds,I}function sl(I,F){Or(I,F),Oe(ue,G())}function ul(I,F){let{start:Re,end:ee}=ut(I);return{start:Re,end:ee,startStr:At(I.start),endStr:At(I.end),allDay:ft,view:wt(H()),resource:ce,jsEvent:F}}function cl(I,F,Re){let ee;return hr()?ee=hi()?{startDelta:rt,endDelta:it(0)}:{startDelta:it(0),endDelta:rt}:ee={delta:rt,oldResource:ce!==Ae?ce:void 0,newResource:ce!==Ae?Ae:void 0},gt(ee,{event:ut(I),oldEvent:ut(F),view:wt(H()),jsEvent:Re}),ee}function yf(){return Math.sqrt(Math.pow(Ne-Se,2)+Math.pow(we-nt,2))}function hr(){return Ze===Tt||hi()}function hi(){return Ze===xt}function bf(){return Ze===pn}function Mn(){return Ze===un}function Jn(){return Ze&&Ze<pn}function co(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Fr(I){cr&&(cr=!1,ll(),De(te())&&te()({jsEvent:I,view:wt(H())}))}function fl(){lo=!0}de.subscribe(Fr);function wf(I){if(Jn()){let F=I.target,Re=[],ee=()=>ka(Re);Re.push(Sr(F,"touchmove",fo(()=>cn))),Re.push(Sr(F,"touchend",ee)),Re.push(Sr(F,"touchcancel",ee))}}function fo(I){return F=>{I()&&F.preventDefault()}}ar(()=>Sr(window,"touchmove",qs,{passive:!1}));var pf={draggable:el,drag:tl,resize:nl,select:rl,noAction:il,handleScroll:uo,unselect:Fr,noClick:fl};Ps(),Pt("pointermove",Gt,vf),Pt("pointerup",Gt,ol),Pt("pointercancel",Gt,ol),Pt("scroll",Gt,uo);var $f=y(()=>fo(Jn));Pt("selectstart",Gt,function(...I){a($f)?.apply(this,I)});var Df=y(()=>fo(()=>a(Mr)));Pt("contextmenu",Gt,function(...I){a(Df)?.apply(this,I)}),Pt("touchstart",Gt,wf,void 0,!0),Sn(t,"draggable",el),Sn(t,"drag",tl),Sn(t,"resize",nl),Sn(t,"select",rl),Sn(t,"noAction",il),Sn(t,"handleScroll",uo),Sn(t,"unselect",Fr),Sn(t,"noClick",fl);var Ef=be(pf);return Y(),Ef}function sc(e,t){ye(t,!0);const n=()=>d(l,"$_iEvents",i),r=()=>d(s,"$slotDuration",i),[i,o]=Ee();let{_iEvents:l,slotDuration:s}=Te("state"),u=0,c=0;et(()=>{n()[0]&&m()});function f(){let $=lr(u,c);if($){let{allDay:p,date:T,resource:D,disabled:k}=wn($)(u,c);if(!k){n()[1]||_(),Ve(l,U(n)[1].allDay=p,U(n)),Ve(l,U(n)[1].start=T,U(n)),Ve(l,U(n)[1].end=Fe(X(T),r()),U(n)),Ve(l,U(n)[1].resourceIds=D?[D.id]:[],U(n));return}}m()}function v(){f()}function h($){w($)&&(u=$.clientX,c=$.clientY,f())}function _(){Ve(l,U(n)[1]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},U(n))}function m(){n()[1]&&Ve(l,U(n)[1]=null,U(n))}function w($){return $.isPrimary&&$.pointerType==="mouse"}var g={handleScroll:v};Pt("pointermove",Gt,h),Pt("scroll",Gt,v);var b=be(g);return o(),b}var uc=j("<div></div>"),cc=j("<div></div>"),fc=j("<!> <!> <!>",1);function dc(e,t){ye(t,!0);const n=()=>d(h,"$eventDurationEditable",s),r=()=>d(m,"$editable",s),i=()=>d(w,"$_interaction",s),o=()=>d(_,"$eventResizableFromStart",s),l=()=>d(v,"$theme",s),[s,u]=Ee();let c=Me(t,"forceDate",3,void 0),f=Me(t,"forceMargin",3,void 0),{theme:v,eventDurationEditable:h,eventResizableFromStart:_,editable:m,_interaction:w}=Te("state"),g=y(()=>t.chunk.event),b=y(()=>t.chunk.event.display),$=y(()=>!Ut(a(b))&&!ri(a(b))&&oc(a(g),n(),r()));function p(C){return S=>i().action.resize(a(g),S,C,t.axis,c(),f(),t.chunk.zeroDuration)}var T=fc(),D=J(T);{var k=C=>{var S=uc(),P=y(()=>p(!0));S.__pointerdown=function(...A){a(P)?.apply(this,A)},le(()=>N(S,1,`${l().resizer??""} ${l().start??""}`)),x(C,S)};$e(D,C=>{a($)&&o()&&C(k)})}var L=ne(D,2);yn(L,()=>t.children);var E=ne(L,2);{var H=C=>{var S=cc(),P=y(()=>p(!1));S.__pointerdown=function(...A){a(P)?.apply(this,A)},le(()=>N(S,1,l().resizer)),x(C,S)};$e(E,C=>{a($)&&C(H)})}x(e,T),be(),u()}Tn(["pointerdown"]);var hc=j("<!> <!>",1);function vc(e,t){ye(t,!0);const n=()=>d(w,"$_interaction",u),r=()=>d(f,"$theme",u),i=()=>d(h,"$eventStartEditable",u),o=()=>d(v,"$editable",u),l=()=>d(m,"$_mainEl",u),s=()=>d(_,"$pointer",u),[u,c]=Ee();let{theme:f,editable:v,eventStartEditable:h,pointer:_,_mainEl:m,_interaction:w,_iClasses:g}=Te("state");Ve(w,U(n).resizer=dc,U(n)),et(()=>{r(),i(),o(),Oe(g,(k,L)=>{let{display:E}=L;return[...k,ri(E)?[r()[E]]:!Ut(E)&&Ga(L,i(),o())?[r().draggable]:[]]})}),et(()=>{if(l())return Sr(l(),"scroll",b)});function b(){for(let k of Object.values(n()))k?.handleScroll?.()}var $=hc(),p=J($);bt(lc(p,{}),k=>Ve(w,U(n).action=k,U(n)),()=>n()?.action);var T=ne(p,2);{var D=k=>{bt(sc(k,{}),L=>Ve(w,U(n).pointer=L,U(n)),()=>n()?.pointer)};$e(T,k=>{s()&&k(D)})}x(e,$),be(),c()}const gc={createOptions(e){e.dateClick=void 0,e.dragConstraint=void 0,e.dragScroll=!0,e.editable=!1,e.eventDragMinDistance=5,e.eventDragStart=void 0,e.eventDragStop=void 0,e.eventDrop=void 0,e.eventDurationEditable=!0,e.eventLongPressDelay=void 0,e.eventResizableFromStart=!1,e.eventResizeStart=void 0,e.eventResizeStop=void 0,e.eventResize=void 0,e.eventStartEditable=!0,e.longPressDelay=1e3,e.pointer=!1,e.resizeConstraint=void 0,e.select=void 0,e.selectBackgroundColor=void 0,e.selectConstraint=void 0,e.selectLongPressDelay=void 0,e.selectMinDistance=5,e.unselect=void 0,e.unselectAuto=!0,e.unselectCancel="",e.theme.draggable="ec-draggable",e.theme.ghost="ec-ghost",e.theme.preview="ec-preview",e.theme.pointer="ec-pointer",e.theme.resizer="ec-resizer",e.theme.start="ec-start",e.theme.dragging="ec-dragging",e.theme.resizingY="ec-resizing-y",e.theme.resizingX="ec-resizing-x",e.theme.selecting="ec-selecting"},createStores(e){e._auxiliary.update(t=>[...t,vc])}};var _c=j("<div></div> <!>",1);function mc(e,t){ye(t,!0);const n=()=>d(s,"$_interaction",i),r=()=>d(l,"$theme",i),[i,o]=Ee();let{theme:l,_interaction:s}=Te("state"),u=y(()=>c=>(delete c["background-color"],delete c.color,c));{const c=(v,h=_t,_=_t,m=_t)=>{var w=_c(),g=J(w);let b;var $=ne(g,2);yn($,h),le(()=>{N(g,1,r().eventTag),b=qt(g,"",b,{"background-color":_()})}),x(v,w)};let f=y(()=>n().action?.noAction);Va(e,{get chunk(){return t.chunk},get styles(){return a(u)},get onpointerdown(){return a(f)},body:c,$$slots:{body:!0}})}be(),o()}var yc=j("<h4><time></time> <time></time></h4> <!>",1);function bc(e,t){ye(t,!0);const n=()=>d(_,"$highlightedDates",u),r=()=>d(w,"$validRange",u),i=()=>d(f,"$_filteredEvents",u),o=()=>d(m,"$theme",u),l=()=>d(v,"$_intlListDay",u),s=()=>d(h,"$_intlListDaySide",u),[u,c]=Ee();let{_filteredEvents:f,_intlListDay:v,_intlListDaySide:h,highlightedDates:_,theme:m,validRange:w}=Te("state"),g=y(()=>n().some(L=>Et(L,t.date))),b=y(()=>ur(t.date,r())),$=y(()=>At(t.date,10)),p=y(()=>{let L=[];if(!a(b)){let E=t.date,H=Xt(X(t.date));for(let C of i())if(!Ut(C.display)&&Rr(C,E,H)){let S=Ir(C,E,H);L.push(S)}}return L});var T=_e(),D=J(T);{var k=L=>{li(L,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return a(b)},get highlight(){return a(g)},children:(E,H)=>{var C=yc(),S=J(C),P=fe(S);Ye(P,()=>st(l().format(t.date)));var A=ne(P,2);Ye(A,()=>st(s().format(t.date)));var G=ne(S,2);oe(G,17,()=>a(p),q=>q.event,(q,te)=>{mc(q,{get chunk(){return a(te)}})}),le(()=>{N(S,1,o().dayHead),Be(P,"datetime",a($)),N(A,1,o().daySide),Be(A,"datetime",a($))}),x(E,C)},$$slots:{default:!0}})};$e(D,L=>{a(p).length&&L(k)})}x(e,T),be(),c()}var wc=j("<div></div>"),pc=j("<section><!></section>");function fi(e,t){ye(t,!0);const n=()=>d(w,"$_viewDates",c),r=()=>d(_,"$_filteredEvents",c),i=()=>d(b,"$noEventsContent",c),o=()=>d(g,"$noEventsClick",c),l=()=>d(m,"$_view",c),s=()=>d(h,"$_mainEl",c),u=()=>d($,"$theme",c),[c,f]=Ee();let{_activeRangeExt:v,_mainEl:h,_filteredEvents:_,_view:m,_viewDates:w,noEventsClick:g,noEventsContent:b,theme:$}=Te("state");Bn(()=>{Oe(v,Xn)});let p=y(()=>{let C=!0;if(n().length){let S=n()[0],P=Xt(X(n().at(-1)));for(let A of r())if(!Ut(A.display)&&A.start<P&&A.end>S){C=!1;break}}return C}),T=y(()=>De(i())?i()():i());function D(C){De(o())&&o()({jsEvent:C,view:wt(l())})}var k=pc(),L=fe(k);{var E=C=>{var S=wc();S.__click=D,Ye(S,()=>st(a(T))),le(()=>N(S,1,u().noEvents)),x(C,S)},H=C=>{var S=_e(),P=J(S);oe(P,1,n,se,(A,G)=>{bc(A,{get date(){return a(G)}})}),x(C,S)};$e(L,C=>{a(p)?C(E):C(H,!1)})}bt(k,C=>Oe(h,C),()=>s()),le(()=>N(k,1,u().main)),x(e,k),be(),f()}Tn(["click"]);const $c={createOptions(e){e.buttonText.listDay="list",e.buttonText.listWeek="list",e.buttonText.listMonth="list",e.buttonText.listYear="list",e.listDayFormat={weekday:"long"},e.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},e.noEventsClick=void 0,e.noEventsContent="No events",e.theme.daySide="ec-day-side",e.theme.eventTag="ec-event-tag",e.theme.noEvents="ec-no-events",e.view="listWeek",e.views.listDay={buttonText:ii,component:fi,duration:{days:1},theme:zt("ec-list ec-day-view")},e.views.listWeek={buttonText:oi,component:fi,duration:{weeks:1},theme:zt("ec-list ec-week-view")},e.views.listMonth={buttonText:qi,component:fi,duration:{months:1},theme:zt("ec-list ec-month-view")},e.views.listYear={buttonText:au,component:fi,duration:{years:1},theme:zt("ec-list ec-year-view")}},createStores(e){e._intlListDay=Zn(e.locale,e.listDayFormat),e._intlListDaySide=Zn(e.locale,e.listDaySideFormat)}};function qa(e){"allDaySlot"in e||gt(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0})}function Ji(e){"scrollTime"in e||(gt(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"}),gt(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function Qi(e){"scrollTime"in e||gt(e,{scrollTime:it,slotDuration:it,slotLabelInterval:t=>t!==void 0?it(t):void 0,slotMaxTime:it,slotMinTime:it})}function Dc(e){return tt([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],t=>Ha(...t))}function Ec(e){return tt([e.slotDuration,e.slotLabelInterval],([t,n])=>n===void 0?xe(t)<3600?2:1:Bs(xe(n)/xe(t))||1)}function kc(e){return tt([e.slotDuration,e._slotLabelPeriodicity,e._slotTimeLimits,e._intlSlotLabel],t=>Na(Kt(an()),...t))}function ji(e){"_sidebarWidth"in e||(e._intlSlotLabel=Zn(e.locale,e.slotLabelFormat),e._slotLabelPeriodicity=Ec(e),e._sidebarWidth=lt(0))}function Xa(e){"_slots"in e||(e._slotTimeLimits=Dc(e),e._slots=kc(e))}function Ka(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Cc(e){return tt([e.resources,e.filterResourcesWithEvents,e._filteredEvents,e._activeRange],([t,n,r,i])=>{let o=t.filter(l=>!wn(l).hidden);return n&&(o=t.filter(l=>r.some(s=>Rr(s,i.start,i.end,l)))),o.length||(o=Aa([{}])),o})}function Za(e){"_viewResources"in e||(e._viewResources=Cc(e))}function Tc(e,t,n,r,i,o){let l=[],s=1,u=r?[e,t]:[t,e];for(let c of u[0]){let f=[];for(let v of u[1]){let h=r?c:v,_=r?v:c;f.push({gridColumn:s,gridRow:1,resource:_,start:Fe(X(h),n.min),end:Fe(X(h),n.max),dayStart:h,dayEnd:Xt(X(h)),disabled:ur(h,i),highlight:o.some(m=>Et(m,h))}),++s}l.push(f)}return l}var xc=j("<span></span>");function Ja(e,t){ye(t,!0);const n=()=>d(c,"$resourceLabelContent",o),r=()=>d(v,"$_intlDayHeaderAL",o),i=()=>d(f,"$resourceLabelDidMount",o),[o,l]=Ee();let s=Me(t,"date",3,void 0),u=Me(t,"setLabel",3,void 0),{resourceLabelContent:c,resourceLabelDidMount:f,_intlDayHeaderAL:v}=Te("state"),h=Ie(void 0),_=y(()=>n()?De(n())?n()({resource:t.resource,date:s()?Je(s()):void 0}):n():t.resource.title),m=Ie(void 0);et(()=>{a(_),U(()=>{s()?Z(m,r().format(s())+", "+a(h).innerText):u()&&(Z(m,void 0),u()(a(h).innerText))})}),ar(()=>{De(i())&&i()({resource:t.resource,date:s()?Je(s()):void 0,el:a(h)})});var w=xc();bt(w,g=>Z(h,g),()=>a(h)),Ye(w,()=>st(a(_))),le(()=>Be(w,"aria-label",a(m))),x(e,w),be(),l()}function Sc(e,t,n,r){let i=[],o=1;for(let l of e)i.push({gridColumn:o,gridRow:1,resource:void 0,start:Fe(X(l),t.min),end:Fe(X(l),t.max),dayStart:l,dayEnd:Xt(X(l)),disabled:ur(l,n),highlight:r.some(s=>Et(s,l))}),++o;return[i]}function Rc(e,t){let n=[],r=[],i=[],o=[];for(let l of e)for(let s of t)Ut(l.display)?(r=r.concat(eo(l,s)),l.allDay&&(o=o.concat(sr(l,s)))):l.allDay?i=i.concat(sr(l,s)):n=n.concat(eo(l,s));return Lc(n),La(i),{chunks:n,bgChunks:r,allDayChunks:i,allDayBgChunks:o}}function Ic(e,t){let n=[],r=[];for(let i of e)if(i)for(let o of t)i.allDay?r=r.concat(sr(i,o)):n=n.concat(eo(i,o));return{iChunks:n,allDayIChunks:r}}function eo(e,t){let n=[];for(let{gridColumn:r,gridRow:i,resource:o,start:l,end:s,disabled:u}of t)if(!u&&Rr(e,l,s,o)){let c=Ir(e,l,s);gt(c,{gridColumn:r,gridRow:i,top:(c.start-l)/1e3,height:(c.end-c.start)/1e3,maxHeight:(s-c.start)/1e3}),n.push(c)}return n}function Lc(e){let t={};for(let n of e){let{gridColumn:r}=n,i=t[r],o=0;if(i&&n.start<i.end){for(;o<i.columns.length&&!(i.columns[o].at(-1).end<=n.start);++o);n.end>i.end&&(i.end=n.end)}else i={columns:[],end:n.end};i.columns.length<o+1&&i.columns.push([]),i.columns[o].push(n),t[r]=i,n.group=i,n.groupColumn=o}}function Mc(e){let t="all-day",n;return e?(n=De(e)?e({text:t}):e,typeof n=="string"&&(n={html:n})):n={html:t},n}function Qa(e,t){ye(t,!0);const n=()=>d(s,"$slotDuration",i),r=()=>d(u,"$slotHeight",i),[i,o]=Ee();let l=Me(t,"allDay",3,!1),{slotDuration:s,slotHeight:u}=Te("state"),c=y(()=>t.day.dayStart),f=y(()=>t.day.start),v=y(()=>t.day.resource),h=y(()=>t.day.disabled),_=y(()=>t.day.highlight),m=Ie(void 0);function w(g,b){if(l())return a(c);{let $=In(a(m)),p=$.height/a(m).offsetHeight;return Fe(X(a(f)),n(),Ui((b-$.top)/(r()*p)))}}li(e,{get date(){return a(c)},get allDay(){return l()},get resource(){return a(v)},dateFromPoint:w,get disabled(){return a(h)},get highlight(){return a(_)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(m)},set el(g){Z(m,g,!0)}}),be(),o()}function to(e,t){ye(t,!0);const n=()=>d(u,"$slotDuration",o),r=()=>d(c,"$slotHeight",o),i=()=>d(s,"$slotEventOverlap",o),[o,l]=Ee();let{slotEventOverlap:s,slotDuration:u,slotHeight:c}=Te("state"),f=y(()=>v=>{let h=xe(n()),_=t.chunk.top/h*r(),m=t.chunk.height/h*r()||r(),w=t.chunk.maxHeight/h*r();v["grid-column"]=t.chunk.gridColumn,v["inset-block-start"]=`${_}px`,v["min-block-size"]=`${m}px`,v["block-size"]=`${m}px`,v["max-block-size"]=`${w}px`;let g="100% - var(--ec-event-col-gap)";if(t.chunk.group){let b=t.chunk.group.columns.length;v["z-index"]=`${t.chunk.groupColumn+1}`,v["inset-inline-start"]=`calc((${g}) / ${b} * ${t.chunk.groupColumn})`,v["inline-size"]=`calc((${g}) / ${b} * ${i()?.5*(1+b-t.chunk.groupColumn):1})`}return v});ui(e,{get chunk(){return t.chunk},get styles(){return a(f)},axis:"y"}),be(),l()}function no(e,t){ye(t,!0);let n=Ie(void 0),r=Ie(0),i=y(()=>t.chunk.event),o=y(()=>u=>(u["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(a(r)||a(i)._margin)&&(u["margin-block-start"]=`${a(i)._margin??a(r)}px`),u));function l(){Z(r,Ma(t.chunk,Kn(a(n))),!0)}var s={reposition:l};return ui(e,{get chunk(){return t.chunk},get styles(){return a(o)},axis:"x",get forceMargin(){return a(r)},get el(){return a(n)},set el(u){Z(n,u,!0)}}),be(s)}var Pc=j("<div></div>");function di(e,t){ye(t,!0);const n=()=>d(m,"$_today",c),r=()=>d(_,"$_now",c),i=()=>d(g,"$slotDuration",c),o=()=>d(b,"$slotHeight",c),l=()=>d(h,"$_mainEl",c),s=()=>d(w,"$_sidebarWidth",c),u=()=>d($,"$theme",c),[c,f]=Ee();let v=Me(t,"span",3,1),{_mainEl:h,_now:_,_today:m,_sidebarWidth:w,slotDuration:g,slotHeight:b,theme:$}=Te("state"),p=y(()=>{for(let A of t.days)if(Et(A.dayStart,n()))return A;return{}}),T=y(()=>a(p).gridColumn),D=y(()=>a(p).start),k=y(()=>a(p).end),L=y(()=>{if(r()<a(D)||r()>a(k))return null;let A=xe(i());return(r()-a(D))/1e3/A*o()}),E=y(()=>({root:l(),rootMargin:xr()?`0px -${s()+5.5}px 0px 0px`:`0px 0px 0px -${s()+5.5}px`,threshold:0}));function H(A,G){A.classList.toggle(u().hidden,!G.isIntersecting)}var C=_e(),S=J(C);{var P=A=>{var G=Pc();let q;Ye(G,()=>ya(H,a(E))),le(()=>{N(G,1,u().nowIndicator),q=qt(G,"",q,{"grid-column":`${a(T)+1} / span ${v()??""}`,"inset-block-start":`${a(L)??""}px`})}),x(A,G)};$e(S,A=>{a(T)&&a(L)!==null&&A(P)})}x(e,C),be(),f()}var Ac=j('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Oc=j("<div><time></time></div>"),Fc=j('<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 ro(e,t){ye(t,!0);const n=()=>d(te,"$allDayContent",D),r=()=>d(q,"$_viewDates",D),i=()=>d(A,"$_slotTimeLimits",D),o=()=>d(ke,"$validRange",D),l=()=>d(B,"$highlightedDates",D),s=()=>d(H,"$_filteredEvents",D),u=()=>d(C,"$_iEvents",D),c=()=>d(Pe,"$slotMaxTime",D),f=()=>d(ue,"$scrollTime",D),v=()=>d(E,"$_mainEl",D),h=()=>d(V,"$slotDuration",D),_=()=>d(de,"$slotHeight",D),m=()=>d(re,"$theme",D),w=()=>d(Y,"$columnWidth",D),g=()=>d(P,"$_slotLabelPeriodicity",D),b=()=>d(S,"$_sidebarWidth",D),$=()=>d(O,"$allDaySlot",D),p=()=>d(G,"$_slots",D),T=()=>d(K,"$showNowIndicator",D),[D,k]=Ee();let{_activeRangeExt:L,_mainEl:E,_filteredEvents:H,_iEvents:C,_sidebarWidth:S,_slotLabelPeriodicity:P,_slotTimeLimits:A,_slots:G,_viewDates:q,allDayContent:te,allDaySlot:O,columnWidth:Y,highlightedDates:B,nowIndicator:K,scrollTime:ue,slotHeight:de,slotDuration:V,slotMaxTime:Pe,theme:re,validRange:ke}=Te("state"),Xe=Ie(0),He=y(()=>Mc(n())),ae=y(()=>t.createGridFn?.()??Sc(r(),i(),o(),l())),he=y(()=>Rc(s(),a(ae))),kt=y(()=>a(he).chunks),Ct=y(()=>a(he).bgChunks),Ke=y(()=>a(he).allDayChunks),M=y(()=>a(he).allDayBgChunks),me=y(()=>Ic(u(),a(ae))),Qe=y(()=>a(me).iChunks),ve=y(()=>a(me).allDayIChunks);Bn(()=>{Oe(L,({start:W,end:z})=>{if(c().days||c().seconds>Tr){Fe(Rn(z),c());let ie=Rn(X(z));ie<W&&(W=ie)}return{start:W,end:z}})}),et(()=>{r(),f(),Jr().then(Q)});function Q(){Ve(E,U(v).scrollTop=((xe(f())-xe(i().min))/xe(h())-.5)*_(),U(v))}let ge=[];function Ce(){Yi(ge,a(Ke))}et(Ce);var Ge=Fc();let ot;var je=fe(Ge),qe=fe(je),pt=ne(qe,2),sn=fe(pt);{var Ln=W=>{var z=_e(),ie=J(z);yn(ie,()=>t.header,()=>a(ae)),x(W,z)},Bt=W=>{var z=_e(),ie=J(z);oe(ie,17,()=>a(ae)[0],se,(ce,Ae,Se)=>{let nt=()=>a(Ae).dayStart,Ne=()=>a(Ae).disabled,we=()=>a(Ae).highlight;Lr(ce,{get date(){return nt()},colIndex:1+Se,get disabled(){return Ne()},get highlight(){return we()},children:(ct,Qt)=>{si(ct,{get date(){return nt()}})},$$slots:{default:!0}})}),x(W,z)};$e(sn,W=>{t.header?W(Ln):W(Bt,!1)})}var Ft=ne(pt,2);{var Zt=W=>{var z=Ac(),ie=fe(z);Ye(ie,()=>st(a(He)));var ce=ne(ie,2);oe(ce,21,()=>a(ae),se,(we,ct,Qt)=>{var rt=_e(),ft=J(rt);oe(ft,17,()=>a(ct),se,(jt,We,Dn)=>{{let cr=y(()=>Qt+1===a(ae).length&&Dn+1===a(ct).length);Qa(jt,{get day(){return a(We)},allDay:!0,get noIeb(){return a(cr)}})}}),x(we,rt)});var Ae=ne(ce,2),Se=fe(Ae);oe(Se,17,()=>a(Ke),se,(we,ct,Qt)=>{bt(no(we,{get chunk(){return a(ct)}}),(rt,ft)=>ge[ft]=rt,rt=>ge?.[rt],()=>[Qt])});var nt=ne(Se,2);oe(nt,17,()=>a(M),se,(we,ct)=>{no(we,{get chunk(){return a(ct)}})});var Ne=ne(nt,2);oe(Ne,17,()=>a(ve),se,(we,ct)=>{no(we,{get chunk(){return a(ct)}})}),le(()=>{N(z,1,m().allDay),N(ie,1,m().sidebar),N(ce,1,m().grid),N(Ae,1,m().events)}),x(W,z)};$e(Ft,W=>{$()&&W(Zt)})}var Jt=ne(je,2),Tt=fe(Jt);oe(Tt,5,p,se,(W,z,ie)=>{var ce=Oc();let Ae;var Se=fe(ce);Ye(Se,()=>st(a(z)[1])),le(()=>{N(ce,1,on([m().slot,!ie&&m().hidden])),Ae=qt(ce,"",Ae,{"--ec-slot-label-periodicity":a(z)[2]}),Be(Se,"datetime",a(z)[0])}),x(W,ce)});var xt=ne(Tt,2);oe(xt,21,()=>a(ae),se,(W,z,ie)=>{var ce=_e(),Ae=J(ce);oe(Ae,17,()=>a(z),se,(Se,nt,Ne)=>{{let we=y(()=>ie+1===a(ae).length&&Ne+1===a(z).length);Qa(Se,{get day(){return a(nt)},get noIeb(){return a(we)},noBeb:!0})}}),x(W,ce)});var un=ne(xt,2),pn=fe(un);oe(pn,17,()=>a(kt),se,(W,z)=>{to(W,{get chunk(){return a(z)}})});var $n=ne(pn,2);oe($n,17,()=>a(Ct),se,(W,z)=>{to(W,{get chunk(){return a(z)}})});var Ze=ne($n,2);oe(Ze,17,()=>a(Qe),se,(W,z)=>{to(W,{get chunk(){return a(z)}})});var cn=ne(Jt,2);{var R=W=>{var z=_e(),ie=J(z);{var ce=Se=>{var nt=_e(),Ne=J(nt);yn(Ne,()=>t.nowIndicator,()=>a(ae)),x(Se,nt)},Ae=Se=>{di(Se,{get days(){return a(ae)[0]}})};$e(ie,Se=>{t.nowIndicator?Se(ce):Se(Ae,!1)})}x(W,z)};$e(cn,W=>{T()&&W(R)})}bt(Ge,W=>Oe(E,W),()=>v()),Ye(Ge,()=>Hi(Ce)),le(()=>{N(Ge,1,m().main),ot=qt(Ge,"",ot,{"--ec-grid-cols":a(ae).length*a(ae)[0].length,"--ec-col-group-span":a(ae)[0].length,"--ec-col-width":w()??"minmax(0, 1fr)","--ec-slot-label-periodicity":g(),"--ec-slot-height":`${_()??""}px`,"--ec-header-height":`${a(Xe)??""}px`,"--ec-sidebar-width":`${b()??""}px`}),N(je,1,m().header),N(qe,1,m().sidebar),N(pt,1,m().grid),N(Jt,1,m().body),N(Tt,1,m().sidebar),N(xt,1,m().grid),N(un,1,m().events)}),jr(qe,"offsetWidth",W=>Oe(S,W)),jr(je,"offsetHeight",W=>Z(Xe,W)),x(e,Ge),be(),k()}var Nc=j("<!> <!>",1);function ja(e,t){ye(t,!0);const n=()=>d(v,"$_viewDates",c),r=()=>d(h,"$_viewResources",c),i=()=>d(_,"$_slotTimeLimits",c),o=()=>d(m,"$datesAboveResources",c),l=()=>d(g,"$validRange",c),s=()=>d(w,"$highlightedDates",c),u=()=>d(b,"$theme",c),[c,f]=Ee();let{_viewDates:v,_viewResources:h,_slotTimeLimits:_,datesAboveResources:m,highlightedDates:w,validRange:g,theme:b}=Te("state"),$=zn([]);ro(e,{createGridFn:()=>Tc(n(),r(),i(),o(),l(),s()),header:(D,k=_t)=>{var L=Nc(),E=J(L);oe(E,17,k,se,(S,P,A)=>{const G=y(()=>{const{dayStart:q,resource:te,disabled:O,highlight:Y}=a(P)[0];return{date:q,resource:te,disabled:O,highlight:Y}});{let q=y(()=>k()[0].length>1?u().colGroup:void 0),te=y(()=>1+A*a(P).length),O=y(()=>o()&&a(G).disabled),Y=y(()=>o()&&a(G).highlight);Lr(S,{get date(){return a(G).date},get className(){return a(q)},get weekday(){return o()},get colSpan(){return a(P).length},get colIndex(){return a(te)},get disabled(){return a(O)},get highlight(){return a(Y)},children:(B,K)=>{var ue=_e(),de=J(ue);{var V=re=>{si(re,{get date(){return a(G).date}})},Pe=re=>{Ja(re,{get resource(){return a(G).resource},setLabel:ke=>$[A]=ke+", "})};$e(de,re=>{o()?re(V):re(Pe,!1)})}x(B,ue)},$$slots:{default:!0}})}});var H=ne(E,2);{var C=S=>{var P=_e(),A=J(P);oe(A,17,k,se,(G,q,te)=>{var O=_e(),Y=J(O);oe(Y,17,()=>a(q),se,(B,K,ue)=>{const de=y(()=>{const{dayStart:V,resource:Pe,disabled:re,highlight:ke}=a(K);return{date:V,resource:Pe,disabled:re,highlight:ke}});{let V=y(()=>1+ue+te*a(q).length);Lr(B,{get date(){return a(de).date},get colIndex(){return a(V)},get disabled(){return a(de).disabled},get highlight(){return a(de).highlight},children:(Pe,re)=>{var ke=_e(),Xe=J(ke);{var He=he=>{Ja(he,{get resource(){return a(de).resource},get date(){return a(de).date}})},ae=he=>{si(he,{get date(){return a(de).date},get alPrefix(){return $[te]}})};$e(Xe,he=>{o()?he(He):he(ae,!1)})}x(Pe,ke)},$$slots:{default:!0}})}}),x(G,O)}),x(S,P)};$e(H,S=>{k()[0].length>1&&S(C)})}x(D,L)},nowIndicator:(D,k=_t)=>{var L=_e(),E=J(L);{var H=S=>{{let P=y(()=>k().flat());di(S,{get days(){return a(P)},get span(){return k()[0].length}})}},C=S=>{var P=_e(),A=J(P);{var G=te=>{var O=_e(),Y=J(O);oe(Y,17,k,se,(B,K)=>{di(B,{get days(){return a(K)}})}),x(te,O)},q=te=>{{let O=y(()=>k().flat());di(te,{get days(){return a(O)},get span(){return k().length}})}};$e(A,te=>{k()[0].length>1?te(G):te(q,!1)})}x(S,P)};$e(E,S=>{o()?S(H):S(C,!1)})}x(D,L)},$$slots:{header:!0,nowIndicator:!0}}),be(),f()}const Hc={createOptions(e){qa(e),Ji(e),Ka(e),e.datesAboveResources=!1,e.buttonText.resourceTimeGridDay="resources",e.buttonText.resourceTimeGridWeek="resources",e.theme.colGroup="ec-col-group",e.view="resourceTimeGridWeek",e.views.resourceTimeGridDay={buttonText:ii,component:ja,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:zt("ec-resource ec-time-grid ec-day-view")},e.views.resourceTimeGridWeek={buttonText:oi,component:ja,duration:{weeks:1},theme:zt("ec-resource ec-time-grid ec-week-view")}},createParsers(e){Qi(e)},createStores(e){ji(e),Xa(e),Za(e)}};function Wc(e){return tt([e.slotMinTime,e.slotMaxTime,e.flexibleSlotTimeLimits,e._viewDates,e._filteredEvents],([t,n,r,i,o])=>{let l={};for(let s of i)l[s.getTime()]=Ha(t,n,r,[s],o);return l})}function Uc(e){return tt([e._viewDates,e.slotDuration,e._slotLabelPeriodicity,e._dayTimeLimits,e._intlSlotLabel],([t,n,r,i,o])=>{let l={};for(let s of t){let u=s.getTime();l[u]=u in i?Na(s,n,r,i[u],o):[]}return l})}function zc(e){return tt(e.resources,t=>t.some(n=>wn(n).children.length))}function Bc(e){return tt(e.slotDuration,t=>!xe(t))}function Vc(e,t,n,r,i){let o=[],l=1;for(let s of t){let u=[],c=1;for(let f of e){let v=n[f.getTime()];u.push({gridColumn:c,gridRow:l,resource:s,start:Fe(X(f),v.min),end:Fe(X(f),v.max),dayStart:f,dayEnd:Xt(X(f)),disabled:ur(f,r),highlight:i.some(h=>Et(h,f))}),++c}o.push(u),++l}return o}function Gc(e,t){let n=[],r=[];for(let i of e)for(let o of t)Ut(i.display)?r=r.concat(io(i,o)):n=n.concat(io(i,o));return qc(n),{chunks:n,bgChunks:r}}function Yc(e,t){let n=[];for(let r of e)if(r)for(let i of t)n=n.concat(io(r,i));return n}function io(e,t){let n=[],r,i,o,l,s,u=0;for(let{gridColumn:c,gridRow:f,resource:v,dayStart:h,start:_,end:m,disabled:w}of t)!w&&Rr(e,_,m,v)&&(n.length||(r=_,o=c,l=f,s=Ot(e.start-_,0)/1e3),n.push(h),i=m,u+=(ln(m,e.end)-Ot(_,e.start))/1e3);if(n.length){let c=Ir(e,r,i);return gt(c,{gridColumn:o,gridRow:l,dates:n,left:s,width:u}),[c]}return[]}function qc(e){let t={};for(let n of e){let{gridColumn:r,gridRow:i}=n;for(let l=0;l<n.dates.length;++l){let s=`${i}_${r+l}`;t[s]?t[s].push(n):t[s]=[n]}let o=`${i}_${r}`;n.day=t[o]}}function Xc(e,t,n){let r=0,i=r+t,o=e.day;o.sort((l,s)=>(l.top??Number.POSITIVE_INFINITY)-(s.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(n||e.start<l.end&&e.end>l.start)&&r<l.bottom&&i>l.top){let s=l.bottom-r+1;r+=s,i+=s}return gt(e,{top:r,bottom:i}),r}function Kc(e,t){return e[t.getTime()]??{min:it(0),max:it("24:00:00")}}function Zc(e,t){ye(t,!0);const n=()=>d(s,"$_monthView",o),r=()=>d(u,"$slotDuration",o),i=()=>d(c,"$slotWidth",o),[o,l]=Ee();let{_monthView:s,slotDuration:u,slotWidth:c}=Te("state"),f=y(()=>t.day.dayStart),v=y(()=>t.day.start),h=y(()=>t.day.resource),_=y(()=>t.day.disabled),m=y(()=>t.day.highlight),w=Ie(void 0);function g(b,$){if(n())return a(f);{let p=In(a(w)),T=p.width/a(w).offsetWidth;return Fe(X(a(v)),r(),Ui((xr()?p.right-b:b-p.left)/(i()*T)))}}li(e,{get allDay(){return n()},get date(){return a(f)},get resource(){return a(h)},dateFromPoint:g,get disabled(){return a(_)},get highlight(){return a(m)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return a(w)},set el(b){Z(w,b,!0)}}),be(),l()}function oo(e,t){ye(t,!0);const n=()=>d(c,"$_monthView",o),r=()=>d(s,"$slotDuration",o),i=()=>d(u,"$slotWidth",o),[o,l]=Ee();let{slotDuration:s,slotWidth:u,_monthView:c}=Te("state"),f=Ie(void 0),v=Ie(0),h=y(()=>t.chunk.event),_=y(()=>b=>{if(b["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,b["grid-row"]=t.chunk.gridRow,!n()){let p=t.chunk.left/xe(r())*i();b["inset-inline-start"]=`${p}px`,b["inline-size"]=`${t.chunk.width/xe(r())*i()}px`}let $=a(v);if(a(h)._margin){let[p,T]=a(h)._margin;t.chunk.gridRow===T&&($=p)}return b["margin-block-start"]=`${$}px`,b});function m(){Z(v,Xc(t.chunk,Kn(a(f)),n()),!0)}var w={reposition:m};{let b=y(()=>[a(v),t.chunk.gridRow]);ui(e,{get chunk(){return t.chunk},get styles(){return a(_)},axis:"x",get forceMargin(){return a(b)},get el(){return a(f)},set el($){Z(f,$,!0)}})}var g=be(w);return l(),g}var Jc=j("<span></span>");function Qc(e,t){ye(t,!0);const n=()=>d(s,"$resourceLabelContent",i),r=()=>d(u,"$resourceLabelDidMount",i),[i,o]=Ee();let l=Me(t,"date",3,void 0),{resourceLabelContent:s,resourceLabelDidMount:u}=Te("state"),c=Ie(void 0),f=y(()=>n()?De(n())?n()({resource:t.resource,date:l()?Je(l()):void 0}):n():t.resource.title);ar(()=>{De(r())&&r()({resource:t.resource,date:l()?Je(l()):void 0,el:a(c)})});var v=Jc();bt(v,h=>Z(c,h),()=>a(c)),Ye(v,()=>st(a(f))),x(e,v),be(),o()}var jc=j("<span></span>"),ef=j("<button><!></button>"),tf=j("<!> <span><!></span>",1);function nf(e,t){ye(t,!0);const n=()=>d(l,"$theme",r),[r,i]=Ee();let{resources:o,theme:l}=Te("state"),s=Ie({}),u=Ie(!0);Bn(()=>{Z(s,wn(t.resource)),Z(u,a(s).expanded,!0)});function c(){Z(u,!a(u)),a(s).expanded=a(u),f(a(s).children,a(u)),o.update(Xn)}function f(g,b){for(let $ of g){let p=wn($);p.hidden=!b,p.expanded&&f(p.children,b)}}var v=tf(),h=J(v);oe(h,17,()=>Array(a(s).level),se,(g,b)=>{var $=jc();le(()=>N($,1,n().expander)),x(g,$)});var _=ne(h,2),m=fe(_);{var w=g=>{var b=ef();b.__click=c;var $=fe(b);{var p=D=>{var k=ua("−");x(D,k)},T=D=>{var k=ua("+");x(D,k)};$e($,D=>{a(u)?D(p):D(T,!1)})}le(()=>N(b,1,n().button)),x(g,b)};$e(m,g=>{a(s).children?.length&&g(w)})}le(()=>N(_,1,n().expander)),x(e,v),be(),i()}Tn(["click"]);var rf=j("<div></div>");function of(e,t){ye(t,!0);const n=()=>d(_,"$_today",c),r=()=>d(h,"$_now",c),i=()=>d(w,"$slotDuration",c),o=()=>d(g,"$slotWidth",c),l=()=>d(v,"$_mainEl",c),s=()=>d(m,"$_sidebarWidth",c),u=()=>d(b,"$theme",c),[c,f]=Ee();let{_mainEl:v,_now:h,_today:_,_sidebarWidth:m,slotDuration:w,slotWidth:g,theme:b}=Te("state"),$=y(()=>{for(let P of t.grid[0])if(Et(P.dayStart,n()))return P;return{}}),p=y(()=>a($).gridColumn),T=y(()=>a($).start),D=y(()=>a($).end),k=y(()=>{if(r()<a(T)||r()>a(D))return null;let P=xe(i());return(r()-a(T))/1e3/P*o()}),L=y(()=>({root:l(),rootMargin:xr()?`0px -${s()+1}px 0px 0px`:`0px 0px 0px -${s()+1}px`,threshold:0}));function E(P,A){P.classList.toggle(u().hidden,!A.isIntersecting)}var H=_e(),C=J(H);{var S=P=>{var A=rf();let G;Ye(A,()=>ya(E,a(L))),le(()=>{N(A,1,u().nowIndicator),G=qt(A,"",G,{"grid-column":a(p)+1,"grid-row":`2 / span ${t.grid.length??""}`,"inset-inline-start":`${a(k)??""}px`})}),x(P,A)};$e(C,P=>{a(p)&&a(k)!==null&&P(S)})}x(e,H),be(),f()}var af=j("<div><time></time></div>"),lf=j('<div role="rowheader"><!> <!></div>'),sf=j('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function ao(e,t){ye(t,!0);const n=()=>d(de,"$_viewDates",E),r=()=>d(ue,"$_viewResources",E),i=()=>d(P,"$_dayTimeLimits",E),o=()=>d(Ct,"$validRange",E),l=()=>d(Pe,"$highlightedDates",E),s=()=>d(A,"$_filteredEvents",E),u=()=>d(G,"$_iEvents",E),c=()=>d(ae,"$slotMaxTime",E),f=()=>d(ke,"$scrollTime",E),v=()=>d(te,"$_monthView",E),h=()=>d(K,"$_today",E),_=()=>d(q,"$_mainEl",E),m=()=>d(Xe,"$slotDuration",E),w=()=>d(he,"$slotWidth",E),g=()=>d(kt,"$theme",E),b=()=>d(V,"$columnWidth",E),$=()=>d(B,"$_slotLabelPeriodicity",E),p=()=>d(He,"$slotHeight",E),T=()=>d(Y,"$_sidebarWidth",E),D=()=>d(S,"$_daySlots",E),k=()=>d(O,"$_nestedResources",E),L=()=>d(re,"$nowIndicator",E),[E,H]=Ee();let{_activeRangeExt:C,_daySlots:S,_dayTimeLimits:P,_filteredEvents:A,_iEvents:G,_mainEl:q,_monthView:te,_nestedResources:O,_sidebarWidth:Y,_slotLabelPeriodicity:B,_today:K,_viewResources:ue,_viewDates:de,columnWidth:V,highlightedDates:Pe,nowIndicator:re,scrollTime:ke,slotDuration:Xe,slotHeight:He,slotMaxTime:ae,slotWidth:he,theme:kt,validRange:Ct}=Te("state"),Ke=Ie(0),M=y(()=>Vc(n(),r(),i(),o(),l())),me=y(()=>Gc(s(),a(M))),Qe=y(()=>a(me).chunks),ve=y(()=>a(me).bgChunks),Q=y(()=>Yc(u(),a(M)));Bn(()=>{Oe(C,({start:R,end:W})=>{if(c().days||c().seconds>Tr){Fe(Rn(W),c());let z=Rn(X(W));z<R&&(R=z)}return{start:R,end:W}})}),et(()=>{n(),f(),Jr().then(ge)});function ge(){if(v())return;let R=0,W=h()<n()[0]||h()>n().at(-1);for(let z of n()){let ie=Kc(i(),z);if(W||Et(z,h())){R+=Ot(ln(xe(f()),xe(ie.max))-xe(ie.min),0);break}else R+=xe(ie.max)-xe(ie.min)}Ve(q,U(_).scrollLeft=R/xe(m())*w()*(xr()?-1:1),U(_))}let Ce=[];function Ge(){Yi(Ce,a(Qe))}et(Ge);var ot=sf();let je;var qe=fe(ot),pt=fe(qe),sn=ne(pt,2),Ln=fe(sn);oe(Ln,17,()=>a(M)[0],se,(R,W,z)=>{let ie=()=>a(W).dayStart,ce=()=>a(W).disabled,Ae=()=>a(W).highlight;Lr(R,{get date(){return ie()},colIndex:1+z,get disabled(){return ce()},get highlight(){return Ae()},children:(Se,nt)=>{si(Se,{get date(){return ie()}})},$$slots:{default:!0}})});var Bt=ne(Ln,2);{var Ft=R=>{var W=_e(),z=J(W);oe(z,17,()=>a(M)[0],se,(ie,ce)=>{let Ae=()=>a(ce).dayStart,Se=()=>a(ce).disabled,nt=()=>a(ce).highlight;Lr(ie,{get date(){return Ae()},get className(){return g().slots},get disabled(){return Se()},get highlight(){return nt()},ariaHidden:!0,children:(Ne,we)=>{var ct=_e(),Qt=J(ct);oe(Qt,1,()=>D()[Ae().getTime()],se,(rt,ft)=>{var jt=af();let We;var Dn=fe(jt);Ye(Dn,()=>st(a(ft)[1])),le(()=>{N(jt,1,g().slot),We=qt(jt,"",We,{"--ec-slot-label-periodicity":a(ft)[2]}),Be(Dn,"datetime",a(ft)[0])}),x(rt,jt)}),x(Ne,ct)},$$slots:{default:!0}})}),x(R,W)};$e(Bt,R=>{v()||R(Ft)})}var Zt=ne(qe,2),Jt=fe(Zt);oe(Jt,5,r,se,(R,W)=>{var z=lf(),ie=fe(z);{var ce=Se=>{nf(Se,{get resource(){return a(W)}})};$e(ie,Se=>{k()&&Se(ce)})}var Ae=ne(ie,2);Qc(Ae,{get resource(){return a(W)}}),le(()=>N(z,1,g().rowHead)),x(R,z)});var Tt=ne(Jt,2);oe(Tt,21,()=>a(M),se,(R,W,z)=>{var ie=_e(),ce=J(ie);oe(ce,17,()=>a(W),se,(Ae,Se,nt)=>{{let Ne=y(()=>nt+1===a(W).length),we=y(()=>z+1===a(M).length);Zc(Ae,{get day(){return a(Se)},get noIeb(){return a(Ne)},get noBeb(){return a(we)}})}}),x(R,ie)});var xt=ne(Tt,2),un=fe(xt);oe(un,17,()=>a(Qe),se,(R,W,z)=>{bt(oo(R,{get chunk(){return a(W)}}),(ie,ce)=>Ce[ce]=ie,ie=>Ce?.[ie],()=>[z])});var pn=ne(un,2);oe(pn,17,()=>a(ve),se,(R,W)=>{oo(R,{get chunk(){return a(W)}})});var $n=ne(pn,2);oe($n,17,()=>a(Q),se,(R,W)=>{oo(R,{get chunk(){return a(W)}})});var Ze=ne(Zt,2);{var cn=R=>{of(R,{get grid(){return a(M)}})};$e(Ze,R=>{L()&&!v()&&R(cn)})}bt(ot,R=>Oe(q,R),()=>_()),Ye(ot,()=>Hi(Ge)),le(()=>{N(ot,1,g().main),je=qt(ot,"",je,{"--ec-grid-cols":a(M)[0].length,"--ec-grid-rows":`${a(M).length>1?`repeat(${a(M).length-1}, auto)`:""} minmax(auto, 1fr)`,"--ec-col-width":b()??"minmax(4em, 1fr)","--ec-slot-label-periodicity":$(),"--ec-slot-height":`${p()??""}px`,"--ec-slot-width":`${w()??""}px`,"--ec-header-height":`${a(Ke)??""}px`,"--ec-sidebar-width":`${T()??""}px`}),N(qe,1,g().header),N(pt,1,g().sidebar),N(sn,1,g().grid),N(Zt,1,g().body),N(Jt,1,g().sidebar),N(Tt,1,g().grid),N(xt,1,g().events)}),jr(pt,"offsetWidth",R=>Oe(Y,R)),jr(qe,"offsetHeight",R=>Z(Ke,R)),x(e,ot),be(),H()}const uf={createOptions(e){Ji(e),Ka(e),e.slotWidth=16,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:ii,component:ao,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:zt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:oi,component:ao,displayEventEnd:!1,duration:{weeks:1},slotLabelInterval:"01:00",slotDuration:"00:15",theme:zt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:qi,component:ao,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:zt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){Qi(e)},createStores(e){ji(e),Za(e),e._dayTimeLimits=Wc(e),e._daySlots=Uc(e),e._monthView=Bc(e),e._nestedResources=zc(e)}},cf={createOptions(e){qa(e),Ji(e),e.buttonText.timeGridDay="day",e.buttonText.timeGridWeek="week",e.view="timeGridWeek",e.views.timeGridDay={buttonText:ii,component:ro,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:zt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.timeGridWeek={buttonText:oi,component:ro,duration:{weeks:1},theme:zt("ec-time-grid ec-week-view")}},createParsers(e){Qi(e)},createStores(e){ji(e),Xa(e)}};function ff(e,t,n){return ws(Hu,{target:e,props:{plugins:t,options:n}})}function df(e){return $s(e)}function hf(e,t){return ff(e,[ic,gc,$c,Hc,uf,cf],t)}return Hr.create=hf,Hr.destroy=df,Object.defineProperty(Hr,Symbol.toStringTag,{value:"Module"}),Hr})({});
|
|
6
6
|
//# sourceMappingURL=event-calendar.min.js.map
|