@event-calendar/build 5.4.2 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -17
- package/dist/event-calendar.min.css +3 -2
- package/dist/event-calendar.min.js +4 -3
- package/dist/event-calendar.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* EventCalendar v5.
|
|
2
|
+
* EventCalendar v5.5.1
|
|
3
3
|
* https://github.com/vkurko/calendar
|
|
4
4
|
*/
|
|
5
|
-
var EventCalendar=(function(sr){"use strict";var zi=Array.isArray,Ho=Array.prototype.indexOf,bn=Array.prototype.includes,or=Array.from,zo=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Wo=Object.getOwnPropertyDescriptors,Uo=Object.prototype,Vo=Array.prototype,Wi=Object.getPrototypeOf,Ui=Object.isExtensible;const Cn=()=>{};function Bo(e){for(var t=0;t<e.length;t++)e[t]()}function Vi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Go(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Fe=2,Dn=4,Hn=8,Lr=1<<24,qt=16,Dt=32,an=64,Pr=128,pt=512,He=1024,$e=2048,Et=4096,at=8192,yt=16384,un=32768,Mr=1<<25,Xt=65536,Bi=1<<17,Yo=1<<18,En=1<<19,Gi=1<<20,Pt=1<<25,dn=65536,Ar=1<<21,Or=1<<22,Kt=1<<23,zn=Symbol("$state"),qo=Symbol("legacy props"),Xo=Symbol(""),zt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Yi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ko(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Zo(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Jo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $o(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function el(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function tl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function nl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function il(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const ol=1,ll=2,qi=4,al=8,ul=16,dl=1,fl=4,cl=8,hl=16,vl=1,gl=2,Ge=Symbol(),Xi="http://www.w3.org/1999/xhtml";function ml(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ki(e){return e===this.v}function pl(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zi(e){return!pl(e,this.v)}let _f=!1,Ye=null;function Tn(e){Ye=e}function ee(e){return Qi().get(e)}function Wn(e,t){return Qi().set(e,t),t}function me(e,t=!1,r){Ye={p:Ye,i:!1,c:null,e:null,s:e,x:null,r:fe,l:null}}function pe(e){var t=Ye,r=t.e;if(r!==null){t.e=null;for(var i of r)_s(i)}return e!==void 0&&(t.x=e),t.i=!0,Ye=t.p,e??{}}function Ji(){return!0}function Qi(e){return Ye===null&&Yi(),Ye.c??=new Map(yl(Ye)||void 0)}function yl(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let fn=[];function ji(){var e=fn;fn=[],Bo(e)}function Wt(e){if(fn.length===0&&!Vn){var t=fn;queueMicrotask(()=>{t===fn&&ji()})}fn.push(e)}function _l(){for(;fn.length>0;)ji()}function $i(e){var t=fe;if(t===null)return le.f|=Kt,e;if((t.f&un)===0&&(t.f&Dn)===0)throw e;Zt(e,t)}function Zt(e,t){for(;t!==null;){if((t.f&Pr)!==0){if((t.f&un)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const wl=-7169;function Me(e,t){e.f=e.f&wl|t}function Nr(e){(e.f&pt)!==0||e.deps===null?Me(e,He):Me(e,Et)}function es(e){if(e!==null)for(const t of e)(t.f&Fe)===0||(t.f&dn)===0||(t.f^=dn,es(t.deps))}function ts(e,t,r){(e.f&$e)!==0?t.add(e):(e.f&Et)!==0&&r.add(e),es(e.deps),Me(e,He)}let lr=!1;function bl(e){var t=lr;try{return lr=!1,[e(),lr]}finally{lr=t}}const Un=new Set;let Ee=null,Tt=null,Fr=null,Vn=!1,Hr=!1,xn=null,ar=null;var ns=0;let kl=1;class Jt{id=kl++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#s=0;#i=null;#r=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#u=!1;#d(){return this.is_fork||this.#s>0}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var i of r.d)Me(i,$e),this.schedule(i);for(i of r.m)Me(i,Et),this.schedule(i)}}#c(){ns++>1e3&&Dl();const t=this.#r;this.#r=[],this.apply();var r=xn=[],i=[],s=ar=[];for(const u of t)this.#h(u,r,i);if(Ee=null,s.length>0){var o=Jt.ensure();for(const u of s)o.schedule(u)}if(xn=null,ar=null,this.#d()){this.#v(i),this.#v(r);for(const[u,d]of this.#a)os(u,d)}else{this.#o.clear(),this.#l.clear();for(const u of this.#e)u(this);this.#e.clear(),rs(i),rs(r),this.#t===0&&this.#f(),this.#i?.resolve()}var a=Ee;if(this.#r.length>0){const u=a??=this;u.#r.push(...this.#r.filter(d=>!u.#r.includes(d)))}a!==null&&(Un.add(a),a.#c())}#h(t,r,i){t.f^=He;for(var s=t.first;s!==null;){var o=s.f,a=(o&(Dt|an))!==0,u=a&&(o&He)!==0,d=u||(o&at)!==0||this.#a.has(s);if(!d&&s.fn!==null){a?s.f^=He:(o&Dn)!==0?r.push(s):Yn(s)&&((o&qt)!==0&&this.#l.add(s),Rn(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var c=s.next;if(c!==null){s=c;break}s=s.parent}}}#v(t){for(var r=0;r<t.length;r+=1)ts(t[r],this.#o,this.#l)}capture(t,r){r!==Ge&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Kt)===0&&(this.current.set(t,t.v),Tt?.set(t,t.v))}activate(){Ee=this}deactivate(){Ee=null,Tt=null}flush(){try{if(Hr=!0,Ee=this,!this.#d()){for(const t of this.#o)this.#l.delete(t),Me(t,$e),this.schedule(t);for(const t of this.#l)Me(t,Et),this.schedule(t)}this.#c()}finally{ns=0,Fr=null,xn=null,ar=null,Hr=!1,Ee=null,Tt=null,Qt.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear()}#f(){if(Un.size>1){this.previous.clear();var t=Ee,r=Tt,i=!0;for(const s of Un){if(s===this){i=!1;continue}const o=[];for(const[u,d]of this.current){if(s.current.has(u))if(i&&d!==s.current.get(u))s.current.set(u,d);else continue;o.push(u)}if(o.length===0)continue;const a=[...s.current.keys()].filter(u=>!this.current.has(u));if(a.length>0){s.activate();const u=new Set,d=new Map;for(const f of o)is(f,a,u,d);if(s.#r.length>0){s.apply();for(const f of s.#r)s.#h(f,[],[])}s.deactivate()}}Ee=t,Tt=r}this.#a.clear(),Un.delete(this)}increment(t){this.#t+=1,t&&(this.#s+=1)}decrement(t,r){this.#t-=1,t&&(this.#s-=1),!(this.#u||r)&&(this.#u=!0,Wt(()=>{this.#u=!1,this.flush()}))}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#i??=Vi()).promise}static ensure(){if(Ee===null){const t=Ee=new Jt;Hr||(Un.add(Ee),Vn||Wt(()=>{Ee===t&&t.flush()}))}return Ee}apply(){}schedule(t){if(Fr=t,t.b?.is_pending&&(t.f&(Dn|Hn|Lr))!==0&&(t.f&un)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var i=r.f;if(xn!==null&&r===fe&&(le===null||(le.f&Fe)===0))return;if((i&(an|Dt))!==0){if((i&He)===0)return;r.f^=He}}this.#r.push(r)}}function Cl(e){var t=Vn;Vn=!0;try{for(var r;;){if(_l(),Ee===null)return r;Ee.flush()}}finally{Vn=t}}function Dl(){try{$o()}catch(e){Zt(e,Fr)}}let Ut=null;function rs(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(yt|at))===0&&Yn(i)&&(Ut=new Set,Rn(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&ks(i),Ut?.size>0)){Qt.clear();for(const s of Ut){if((s.f&(yt|at))!==0)continue;const o=[s];let a=s.parent;for(;a!==null;)Ut.has(a)&&(Ut.delete(a),o.push(a)),a=a.parent;for(let u=o.length-1;u>=0;u--){const d=o[u];(d.f&(yt|at))===0&&Rn(d)}}Ut.clear()}}Ut=null}}function is(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Fe)!==0?is(s,t,r,i):(o&(Or|qt))!==0&&(o&$e)===0&&ss(s,t,i)&&(Me(s,$e),zr(s))}}function ss(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(bn.call(t,s))return!0;if((s.f&Fe)!==0&&ss(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function zr(e){Ee.schedule(e)}function os(e,t){if(!((e.f&Dt)!==0&&(e.f&He)!==0)){(e.f&$e)!==0?t.d.push(e):(e.f&Et)!==0&&t.m.push(e),Me(e,He);for(var r=e.first;r!==null;)os(r,t),r=r.next}}function El(e){let t=0,r=jt(0),i;return()=>{Br()&&(n(r),ws(()=>(t===0&&(i=$(()=>e(()=>Mt(r)))),t+=1,()=>{Wt(()=>{t-=1,t===0&&(i?.(),i=void 0,Mt(r))})})))}}var Tl=Xt|En;function xl(e,t,r,i){new Sl(e,t,r,i)}class Sl{parent;is_pending=!1;transform_error;#e;#n=null;#t;#s;#i;#r=null;#o=null;#l=null;#a=null;#u=0;#d=0;#c=!1;#h=new Set;#v=new Set;#f=null;#_=El(()=>(this.#f=jt(this.#u),()=>{this.#f=null}));constructor(t,r,i,s){this.#e=t,this.#t=r,this.#s=o=>{var a=fe;a.b=this,a.f|=Pr,i(o)},this.parent=fe.b,this.transform_error=s??this.parent?.transform_error??(o=>o),this.#i=Gn(()=>{this.#p()},Tl)}#w(){try{this.#r=ut(()=>this.#s(this.#e))}catch(t){this.error(t)}}#b(t){const r=this.#t.failed;r&&(this.#l=ut(()=>{r(this.#e,()=>t,()=>()=>{})}))}#k(){const t=this.#t.pending;if(t){this.is_pending=!0,this.#o=ut(()=>t(this.#e));var r=Ee;Wt(()=>{var i=this.#a=document.createDocumentFragment(),s=$t();i.append(s),this.#r=this.#m(()=>ut(()=>this.#s(s))),this.#d===0&&(this.#e.before(i),this.#a=null,hn(this.#o,()=>{this.#o=null}),this.#g(r))})}}#p(){var t=Ee;try{if(this.is_pending=this.has_pending_snippet(),this.#d=0,this.#u=0,this.#r=ut(()=>{this.#s(this.#e)}),this.#d>0){var r=this.#a=document.createDocumentFragment();Xr(this.#r,r);const i=this.#t.pending;this.#o=ut(()=>i(this.#e))}else this.#g(t)}catch(i){this.error(i)}}#g(t){this.is_pending=!1;for(const r of this.#h)Me(r,$e),t.schedule(r);for(const r of this.#v)Me(r,Et),t.schedule(r);this.#h.clear(),this.#v.clear()}defer_effect(t){ts(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=fe,i=le,s=Ye;At(this.#i),_t(this.#i),Tn(this.#i.ctx);try{return Jt.ensure(),t()}catch(o){return $i(o),null}finally{At(r),_t(i),Tn(s)}}#y(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,r);return}this.#d+=t,this.#d===0&&(this.#g(r),this.#o&&hn(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#y(t,r),this.#u+=t,!(!this.#f||this.#c)&&(this.#c=!0,Wt(()=>{this.#c=!1,this.#f&&Sn(this.#f,this.#u)}))}get_effect_pending(){return this.#_(),n(this.#f)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(!r&&!i)throw t;this.#r&&(it(this.#r),this.#r=null),this.#o&&(it(this.#o),this.#o=null),this.#l&&(it(this.#l),this.#l=null);var s=!1,o=!1;const a=()=>{if(s){ml();return}s=!0,o&&sl(),this.#l!==null&&hn(this.#l,()=>{this.#l=null}),this.#m(()=>{this.#p()})},u=d=>{try{o=!0,r?.(d,a),o=!1}catch(f){Zt(f,this.#i&&this.#i.parent)}i&&(this.#l=this.#m(()=>{try{return ut(()=>{var f=fe;f.b=this,f.f|=Pr,i(this.#e,()=>d,()=>a)})}catch(f){return Zt(f,this.#i.parent),null}}))};Wt(()=>{var d;try{d=this.transform_error(t)}catch(f){Zt(f,this.#i&&this.#i.parent);return}d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(u,f=>Zt(f,this.#i&&this.#i.parent)):u(d)})}}function Rl(e,t,r,i){const s=dr;var o=e.filter(h=>!h.settled);if(r.length===0&&o.length===0){i(t.map(s));return}var a=fe,u=Il(),d=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(h=>h.promise)):null;function f(h){u();try{i(h)}catch(v){(a.f&yt)===0&&Zt(v,a)}ur()}if(r.length===0){d.then(()=>f(t.map(s)));return}var c=ls();function g(){Promise.all(r.map(h=>Ll(h))).then(h=>f([...t.map(s),...h])).catch(h=>Zt(h,a)).finally(()=>c())}d?d.then(()=>{u(),g(),ur()}):g()}function Il(){var e=fe,t=le,r=Ye,i=Ee;return function(o=!0){At(e),_t(t),Tn(r),o&&(e.f&yt)===0&&(i?.activate(),i?.apply())}}function ur(e=!0){At(null),_t(null),Tn(null),e&&Ee?.deactivate()}function ls(){var e=fe.b,t=Ee,r=e.is_rendered();return e.update_pending_count(1,t),t.increment(r),(i=!1)=>{e.update_pending_count(-1,t),t.decrement(r,i)}}function dr(e){var t=Fe|$e,r=le!==null&&(le.f&Fe)!==0?le:null;return fe!==null&&(fe.f|=En),{ctx:Ye,deps:null,effects:null,equals:Ki,f:t,fn:e,reactions:null,rv:0,v:Ge,wv:0,parent:r??fe,ac:null}}function Ll(e,t,r){let i=fe;i===null&&Ko();var s=void 0,o=jt(Ge),a=!le,u=new Map;return Bl(()=>{var d=fe,f=Vi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(ur)}catch(v){f.reject(v),ur()}var c=Ee;if(a){if((d.f&un)!==0)var g=ls();if(i.b.is_rendered())u.get(c)?.reject(zt),u.delete(c);else{for(const v of u.values())v.reject(zt);u.clear()}u.set(c,f)}const h=(v,p=void 0)=>{if(g){var y=p===zt;g(y)}if(!(p===zt||(d.f&yt)!==0)){if(c.activate(),p)o.f|=Kt,Sn(o,p);else{(o.f&Kt)!==0&&(o.f^=Kt),Sn(o,v);for(const[m,_]of u){if(u.delete(m),m===c)break;_.reject(zt)}}c.deactivate()}};f.promise.then(h,v=>h(null,v||"unknown"))}),ys(()=>{for(const d of u.values())d.reject(zt)}),new Promise(d=>{function f(c){function g(){c===s?d(o):f(s)}c.then(g,g)}f(s)})}function l(e){const t=dr(e);return Ts(t),t}function as(e){const t=dr(e);return t.equals=Zi,t}function Pl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)it(t[r])}}function Ml(e){for(var t=e.parent;t!==null;){if((t.f&Fe)===0)return(t.f&yt)===0?t:null;t=t.parent}return null}function Wr(e){var t,r=fe;At(Ml(e));try{e.f&=~dn,Pl(e),t=Ls(e)}finally{At(r)}return t}function us(e){var t=Wr(e);if(!e.equals(t)&&(e.wv=Rs(),(!Ee?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){Me(e,He);return}en||(Tt!==null?(Br()||Ee?.is_fork)&&Tt.set(e,t):Nr(e))}function Al(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(zt),t.teardown=Cn,t.ac=null,qn(t,0),Yr(t))}function ds(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Rn(t)}let Ur=new Set;const Qt=new Map;let fs=!1;function jt(e,t){var r={f:0,v:e,reactions:null,equals:Ki,rv:0,wv:0};return r}function B(e,t){const r=jt(e);return Ts(r),r}function Ol(e,t=!1,r=!0){const i=jt(e);return t||(i.equals=Zi),i}function C(e,t,r=!1){le!==null&&(!Rt||(le.f&Bi)!==0)&&Ji()&&(le.f&(Fe|qt|Or|Bi))!==0&&(wt===null||!bn.call(wt,e))&&il();let i=r?qe(t):t;return Sn(e,i,ar)}function Sn(e,t,r=null){if(!e.equals(t)){var i=e.v;en?Qt.set(e,t):Qt.set(e,i),e.v=t;var s=Jt.ensure();if(s.capture(e,i),(e.f&Fe)!==0){const o=e;(e.f&$e)!==0&&Wr(o),Nr(o)}e.wv=Rs(),cs(e,$e,r),fe!==null&&(fe.f&He)!==0&&(fe.f&(Dt|an))===0&&(bt===null?Xl([e]):bt.push(e)),!s.is_fork&&Ur.size>0&&!fs&&Nl()}return t}function Nl(){fs=!1;for(const e of Ur)(e.f&He)!==0&&Me(e,Et),Yn(e)&&Rn(e);Ur.clear()}function Mt(e){C(e,e.v+1)}function cs(e,t,r){var i=e.reactions;if(i!==null)for(var s=i.length,o=0;o<s;o++){var a=i[o],u=a.f,d=(u&$e)===0;if(d&&Me(a,t),(u&Fe)!==0){var f=a;Tt?.delete(f),(u&dn)===0&&(u&pt&&(a.f|=dn),cs(f,Et,r))}else if(d){var c=a;(u&qt)!==0&&Ut!==null&&Ut.add(c),r!==null?r.push(c):zr(c)}}}function qe(e){if(typeof e!="object"||e===null||zn in e)return e;const t=Wi(e);if(t!==Uo&&t!==Vo)return e;var r=new Map,i=zi(e),s=B(0),o=Vt,a=u=>{if(Vt===o)return u();var d=le,f=Vt;_t(null),Ss(o);var c=u();return _t(d),Ss(f),c};return i&&r.set("length",B(e.length)),new Proxy(e,{defineProperty(u,d,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&nl();var c=r.get(d);return c===void 0?a(()=>{var g=B(f.value);return r.set(d,g),g}):C(c,f.value,!0),!0},deleteProperty(u,d){var f=r.get(d);if(f===void 0){if(d in u){const c=a(()=>B(Ge));r.set(d,c),Mt(s)}}else C(f,Ge),Mt(s);return!0},get(u,d,f){if(d===zn)return e;var c=r.get(d),g=d in u;if(c===void 0&&(!g||kn(u,d)?.writable)&&(c=a(()=>{var v=qe(g?u[d]:Ge),p=B(v);return p}),r.set(d,c)),c!==void 0){var h=n(c);return h===Ge?void 0:h}return Reflect.get(u,d,f)},getOwnPropertyDescriptor(u,d){var f=Reflect.getOwnPropertyDescriptor(u,d);if(f&&"value"in f){var c=r.get(d);c&&(f.value=n(c))}else if(f===void 0){var g=r.get(d),h=g?.v;if(g!==void 0&&h!==Ge)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(u,d){if(d===zn)return!0;var f=r.get(d),c=f!==void 0&&f.v!==Ge||Reflect.has(u,d);if(f!==void 0||fe!==null&&(!c||kn(u,d)?.writable)){f===void 0&&(f=a(()=>{var h=c?qe(u[d]):Ge,v=B(h);return v}),r.set(d,f));var g=n(f);if(g===Ge)return!1}return c},set(u,d,f,c){var g=r.get(d),h=d in u;if(i&&d==="length")for(var v=f;v<g.v;v+=1){var p=r.get(v+"");p!==void 0?C(p,Ge):v in u&&(p=a(()=>B(Ge)),r.set(v+"",p))}if(g===void 0)(!h||kn(u,d)?.writable)&&(g=a(()=>B(void 0)),C(g,qe(f)),r.set(d,g));else{h=g.v!==Ge;var y=a(()=>qe(f));C(g,y)}var m=Reflect.getOwnPropertyDescriptor(u,d);if(m?.set&&m.set.call(c,f),!h){if(i&&typeof d=="string"){var _=r.get("length"),E=Number(d);Number.isInteger(E)&&E>=_.v&&C(_,E+1)}Mt(s)}return!0},ownKeys(u){n(s);var d=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Ge});for(var[f,c]of r)c.v!==Ge&&!(f in u)&&d.push(f);return d},setPrototypeOf(){rl()}})}var xt,hs,vs,gs;function Fl(){if(xt===void 0){xt=window,hs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;vs=kn(t,"firstChild").get,gs=kn(t,"nextSibling").get,Ui(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ui(r)&&(r.__t=void 0)}}function $t(e=""){return document.createTextNode(e)}function fr(e){return vs.call(e)}function Bn(e){return gs.call(e)}function ue(e,t){return fr(e)}function ne(e,t=!1){{var r=fr(e);return r instanceof Comment&&r.data===""?Bn(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=Bn(i);return i}function Hl(e){e.textContent=""}function ms(){return!1}function zl(e,t,r){return document.createElementNS(Xi,e,void 0)}function Wl(e,t){{const r=document.body;e.autofocus=!0,Wt(()=>{document.activeElement===r&&e.focus()})}}function Vr(e){var t=le,r=fe;_t(null),At(null);try{return e()}finally{_t(t),At(r)}}function ps(e){fe===null&&(le===null&&jo(),Qo()),en&&Jo()}function Ul(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function St(e,t){var r=fe;r!==null&&(r.f&at)!==0&&(e|=at);var i={ctx:Ye,deps:null,nodes:null,f:e|$e|pt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},s=i;if((e&Dn)!==0)xn!==null?xn.push(i):Jt.ensure().schedule(i);else if(t!==null){try{Rn(i)}catch(a){throw it(i),a}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&En)===0&&(s=s.first,(e&qt)!==0&&(e&Xt)!==0&&s!==null&&(s.f|=Xt))}if(s!==null&&(s.parent=r,r!==null&&Ul(s,r),le!==null&&(le.f&Fe)!==0&&(e&an)===0)){var o=le;(o.effects??=[]).push(s)}return i}function Br(){return le!==null&&!Rt}function ys(e){const t=St(Hn,null);return Me(t,He),t.teardown=e,t}function Xe(e){ps();var t=fe.f,r=!le&&(t&Dt)!==0&&(t&un)===0;if(r){var i=Ye;(i.e??=[]).push(e)}else return _s(e)}function _s(e){return St(Dn|Gi,e)}function cn(e){return ps(),St(Hn|Gi,e)}function Vl(e){Jt.ensure();const t=St(an|En,e);return(r={})=>new Promise(i=>{r.outro?hn(t,()=>{it(t),i(void 0)}):(it(t),i(void 0))})}function Gr(e){return St(Dn,e)}function Bl(e){return St(Or|En,e)}function ws(e,t=0){return St(Hn|t,e)}function se(e,t=[],r=[],i=[]){Rl(i,t,r,s=>{St(Hn,()=>e(...s.map(n)))})}function Gn(e,t=0){var r=St(qt|t,e);return r}function Gl(e,t=0){var r=St(Lr|t,e);return r}function ut(e){return St(Dt|En,e)}function bs(e){var t=e.teardown;if(t!==null){const r=en,i=le;Es(!0),_t(null);try{t.call(null)}finally{Es(r),_t(i)}}}function Yr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Vr(()=>{s.abort(zt)});var i=r.next;(r.f&an)!==0?r.parent=null:it(r,t),r=i}}function Yl(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Dt)===0&&it(t),t=r}}function it(e,t=!0){var r=!1;(t||(e.f&Yo)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ql(e.nodes.start,e.nodes.end),r=!0),Me(e,Mr),Yr(e,t&&!r),qn(e,0);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();bs(e),e.f^=Mr,e.f|=yt;var s=e.parent;s!==null&&s.first!==null&&ks(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ql(e,t){for(;e!==null;){var r=e===t?null:Bn(e);e.remove(),e=r}}function ks(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function hn(e,t,r=!0){var i=[];Cs(e,i,!0);var s=()=>{r&&it(e),t&&t()},o=i.length;if(o>0){var a=()=>--o||s();for(var u of i)u.out(a)}else s()}function Cs(e,t,r){if((e.f&at)===0){e.f^=at;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,a=(s.f&Xt)!==0||(s.f&Dt)!==0&&(e.f&qt)!==0;Cs(s,t,a?r:!1),s=o}}}function qr(e){Ds(e,!0)}function Ds(e,t){if((e.f&at)!==0){e.f^=at,(e.f&He)===0&&(Me(e,$e),Jt.ensure().schedule(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Xt)!==0||(r.f&Dt)!==0;Ds(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const a of o)(a.is_global||t)&&a.in()}}function Xr(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Bn(r);t.append(r),r=s}}let cr=!1,en=!1;function Es(e){en=e}let le=null,Rt=!1;function _t(e){le=e}let fe=null;function At(e){fe=e}let wt=null;function Ts(e){le!==null&&(wt===null?wt=[e]:wt.push(e))}let st=null,dt=0,bt=null;function Xl(e){bt=e}let xs=1,vn=0,Vt=vn;function Ss(e){Vt=e}function Rs(){return++xs}function Yn(e){var t=e.f;if((t&$e)!==0)return!0;if(t&Fe&&(e.f&=~dn),(t&Et)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(Yn(o)&&us(o),o.wv>e.wv)return!0}(t&pt)!==0&&Tt===null&&Me(e,He)}return!1}function Is(e,t,r=!0){var i=e.reactions;if(i!==null&&!(wt!==null&&bn.call(wt,e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Fe)!==0?Is(o,t,!1):t===o&&(r?Me(o,$e):(o.f&He)!==0&&Me(o,Et),zr(o))}}function Ls(e){var t=st,r=dt,i=bt,s=le,o=wt,a=Ye,u=Rt,d=Vt,f=e.f;st=null,dt=0,bt=null,le=(f&(Dt|an))===0?e:null,wt=null,Tn(e.ctx),Rt=!1,Vt=++vn,e.ac!==null&&(Vr(()=>{e.ac.abort(zt)}),e.ac=null);try{e.f|=Ar;var c=e.fn,g=c();e.f|=un;var h=e.deps,v=Ee?.is_fork;if(st!==null){var p;if(v||qn(e,dt),h!==null&&dt>0)for(h.length=dt+st.length,p=0;p<st.length;p++)h[dt+p]=st[p];else e.deps=h=st;if(Br()&&(e.f&pt)!==0)for(p=dt;p<h.length;p++)(h[p].reactions??=[]).push(e)}else!v&&h!==null&&dt<h.length&&(qn(e,dt),h.length=dt);if(Ji()&&bt!==null&&!Rt&&h!==null&&(e.f&(Fe|Et|$e))===0)for(p=0;p<bt.length;p++)Is(bt[p],e);if(s!==null&&s!==e){if(vn++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=vn;if(t!==null)for(const y of t)y.rv=vn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Kt)!==0&&(e.f^=Kt),g}catch(y){return $i(y)}finally{e.f^=Ar,st=t,dt=r,bt=i,le=s,wt=o,Tn(a),Rt=u,Vt=d}}function Kl(e,t){let r=t.reactions;if(r!==null){var i=Ho.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Fe)!==0&&(st===null||!bn.call(st,t))){var o=t;(o.f&pt)!==0&&(o.f^=pt,o.f&=~dn),Nr(o),Al(o),qn(o,0)}}function qn(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Kl(e,r[i])}function Rn(e){var t=e.f;if((t&yt)===0){Me(e,He);var r=fe,i=cr;fe=e,cr=!0;try{(t&(qt|Lr))!==0?Yl(e):Yr(e),bs(e);var s=Ls(e);e.teardown=typeof s=="function"?s:null,e.wv=xs;var o}finally{cr=i,fe=r}}}async function gn(){await Promise.resolve(),Cl()}function n(e){var t=e.f,r=(t&Fe)!==0;if(le!==null&&!Rt){var i=fe!==null&&(fe.f&yt)!==0;if(!i&&(wt===null||!bn.call(wt,e))){var s=le.deps;if((le.f&Ar)!==0)e.rv<vn&&(e.rv=vn,st===null&&s!==null&&s[dt]===e?dt++:st===null?st=[e]:st.push(e));else{(le.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[le]:bn.call(o,le)||o.push(le)}}}if(en&&Qt.has(e))return Qt.get(e);if(r){var a=e;if(en){var u=a.v;return((a.f&He)===0&&a.reactions!==null||Ms(a))&&(u=Wr(a)),Qt.set(a,u),u}var d=(a.f&pt)===0&&!Rt&&le!==null&&(cr||(le.f&pt)!==0),f=(a.f&un)===0;Yn(a)&&(d&&(a.f|=pt),us(a)),d&&!f&&(ds(a),Ps(a))}if(Tt?.has(e))return Tt.get(e);if((e.f&Kt)!==0)throw e.v;return e.v}function Ps(e){if(e.f|=pt,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Fe)!==0&&(t.f&pt)===0&&(ds(t),Ps(t))}function Ms(e){if(e.v===Ge)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Qt.has(t)||(t.f&Fe)!==0&&Ms(t))return!0;return!1}function $(e){var t=Rt;try{return Rt=!0,e()}finally{Rt=t}}const Zl=["touchstart","touchmove"];function Jl(e){return Zl.includes(e)}const Xn=Symbol("events"),As=new Set,Kr=new Set;function Ql(e,t,r,i={}){function s(o){if(i.capture||Zr.call(t,o),!o.cancelBubble)return Vr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Wt(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ft(e,t,r,i,s){var o={capture:i,passive:s},a=Ql(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ys(()=>{t.removeEventListener(e,a,o)})}function ze(e,t,r){(t[Xn]??={})[e]=r}function tn(e){for(var t=0;t<e.length;t++)As.add(e[t]);for(var r of Kr)r(e)}let Os=null;function Zr(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Os=e;var a=0,u=Os===e&&e[Xn];if(u){var d=s.indexOf(u);if(d!==-1&&(t===document||t===window)){e[Xn]=t;return}var f=s.indexOf(t);if(f===-1)return;d<=f&&(a=d)}if(o=s[a]||e.target,o!==t){zo(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=le,g=fe;_t(null),At(null);try{for(var h,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var y=o[Xn]?.[i];y!=null&&(!o.disabled||e.target===o)&&y.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||p===t||p===null)break;o=p}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e[Xn]=t,delete e.currentTarget,_t(c),At(g)}}}const jl=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function $l(e){return jl?.createHTML(e)??e}function ea(e){var t=zl("template");return t.innerHTML=$l(e.replaceAll("<!>","<!---->")),t.content}function Jr(e,t){var r=fe;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function J(e,t){var r=(t&vl)!==0,i=(t&gl)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=ea(o?e:"<!>"+e),r||(s=fr(s)));var a=i||hs?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=fr(a),d=a.lastChild;Jr(u,d)}else Jr(a,a);return a}}function he(){var e=document.createDocumentFragment(),t=document.createComment(""),r=$t();return e.append(t,r),Jr(t,r),e}function P(e,t){e!==null&&e.before(t)}function Ns(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function ta(e,t){return na(e,t)}const hr=new Map;function na(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:a=!0,transformError:u}){Fl();var d=void 0,f=Vl(()=>{var c=r??t.appendChild($t());xl(c,{pending:()=>{}},v=>{me({});var p=Ye;o&&(p.c=o),s&&(i.$$events=s),d=e(v,i)||{},pe()},u);var g=new Set,h=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!g.has(y)){g.add(y);var m=Jl(y);for(const T of[t,document]){var _=hr.get(T);_===void 0&&(_=new Map,hr.set(T,_));var E=_.get(y);E===void 0?(T.addEventListener(y,Zr,{passive:m}),_.set(y,1)):_.set(y,E+1)}}}};return h(or(As)),Kr.add(h),()=>{for(var v of g)for(const m of[t,document]){var p=hr.get(m),y=p.get(v);--y==0?(m.removeEventListener(v,Zr),p.delete(v),p.size===0&&hr.delete(m)):p.set(v,y)}Kr.delete(h),c!==r&&c.parentNode?.removeChild(c)}});return Qr.set(d,f),d}let Qr=new WeakMap;function ra(e,t){const r=Qr.get(e);return r?(Qr.delete(e),r(t)):Promise.resolve()}class jr{anchor;#e=new Map;#n=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#r=t=>{if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)qr(i),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,a]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(a);u&&(it(u.effect),this.#t.delete(a))}for(const[o,a]of this.#n){if(o===r||this.#s.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var f=document.createDocumentFragment();Xr(a,f),f.append($t()),this.#t.set(o,{effect:a,fragment:f})}else it(a);this.#s.delete(o),this.#n.delete(o)};this.#i||!i?(this.#s.add(o),hn(a,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(it(s.effect),this.#t.delete(i))};ensure(t,r){var i=Ee,s=ms();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),a=$t();o.append(a),this.#t.set(t,{effect:ut(()=>r(a)),fragment:o})}else this.#n.set(t,ut(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,d]of this.#n)u===t?i.unskip_effect(d):i.skip_effect(d);for(const[u,d]of this.#t)u===t?i.unskip_effect(d.effect):i.skip_effect(d.effect);i.oncommit(this.#r),i.ondiscard(this.#o)}else this.#r(i)}}function _e(e,t,r=!1){var i=new jr(e),s=r?Xt:0;function o(a,u){i.ensure(a,u)}Gn(()=>{var a=!1;t((u,d=0)=>{a=!0,o(d,u)}),a||o(-1,null)},s)}function ke(e,t){return t}function ia(e,t,r){for(var i=[],s=t.length,o,a=t.length,u=0;u<s;u++){let g=t[u];hn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;$r(e,or(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var d=i.length===0&&r!==null;if(d){var f=r,c=f.parentNode;Hl(c),c.append(f),e.items.clear()}$r(e,t,!d)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function $r(e,t,r=!0){var i;if(e.pending.size>0){i=new Set;for(const a of e.pending.values())for(const u of a)i.add(e.items.get(u).e)}for(var s=0;s<t.length;s++){var o=t[s];if(i?.has(o)){o.f|=Pt;const a=document.createDocumentFragment();Xr(o,a)}else it(t[s],r)}}var Fs;function oe(e,t,r,i,s,o=null){var a=e,u=new Map,d=(t&qi)!==0;if(d){var f=e;a=f.appendChild($t())}var c=null,g=as(()=>{var T=r();return zi(T)?T:T==null?[]:or(T)}),h,v=new Map,p=!0;function y(T){(E.effect.f&yt)===0&&(E.pending.delete(T),E.fallback=c,sa(E,h,a,t,i),c!==null&&(h.length===0?(c.f&Pt)===0?qr(c):(c.f^=Pt,Zn(c,null,a)):hn(c,()=>{c=null})))}function m(T){E.pending.delete(T)}var _=Gn(()=>{h=n(g);for(var T=h.length,k=new Set,D=Ee,w=ms(),b=0;b<T;b+=1){var F=h[b],V=i(F,b),M=p?null:u.get(V);M?(M.v&&Sn(M.v,F),M.i&&Sn(M.i,b),w&&D.unskip_effect(M.e)):(M=oa(u,p?a:Fs??=$t(),F,V,b,s,t,r),p||(M.e.f|=Pt),u.set(V,M)),k.add(V)}if(T===0&&o&&!c&&(p?c=ut(()=>o(a)):(c=ut(()=>o(Fs??=$t())),c.f|=Pt)),T>k.size&&Zo(),!p)if(v.set(D,k),w){for(const[Z,ie]of u)k.has(Z)||D.skip_effect(ie.e);D.oncommit(y),D.ondiscard(m)}else y(D);n(g)}),E={effect:_,items:u,pending:v,outrogroups:null,fallback:c};p=!1}function Kn(e){for(;e!==null&&(e.f&Dt)===0;)e=e.next;return e}function sa(e,t,r,i,s){var o=(i&al)!==0,a=t.length,u=e.items,d=Kn(e.effect.first),f,c=null,g,h=[],v=[],p,y,m,_;if(o)for(_=0;_<a;_+=1)p=t[_],y=s(p,_),m=u.get(y).e,(m.f&Pt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(_=0;_<a;_+=1){if(p=t[_],y=s(p,_),m=u.get(y).e,e.outrogroups!==null)for(const M of e.outrogroups)M.pending.delete(m),M.done.delete(m);if((m.f&Pt)!==0)if(m.f^=Pt,m===d)Zn(m,null,r);else{var E=c?c.next:d;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),nn(e,c,m),nn(e,m,E),Zn(m,E,r),c=m,h=[],v=[],d=Kn(c.next);continue}if((m.f&at)!==0&&(qr(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==d){if(f!==void 0&&f.has(m)){if(h.length<v.length){var T=v[0],k;c=T.prev;var D=h[0],w=h[h.length-1];for(k=0;k<h.length;k+=1)Zn(h[k],T,r);for(k=0;k<v.length;k+=1)f.delete(v[k]);nn(e,D.prev,w.next),nn(e,c,D),nn(e,w,T),d=T,c=w,_-=1,h=[],v=[]}else f.delete(m),Zn(m,d,r),nn(e,m.prev,m.next),nn(e,m,c===null?e.effect.first:c.next),nn(e,c,m),c=m;continue}for(h=[],v=[];d!==null&&d!==m;)(f??=new Set).add(d),v.push(d),d=Kn(d.next);if(d===null)continue}(m.f&Pt)===0&&h.push(m),c=m,d=Kn(m.next)}if(e.outrogroups!==null){for(const M of e.outrogroups)M.pending.size===0&&($r(e,or(M.done)),e.outrogroups?.delete(M));e.outrogroups.size===0&&(e.outrogroups=null)}if(d!==null||f!==void 0){var b=[];if(f!==void 0)for(m of f)(m.f&at)===0&&b.push(m);for(;d!==null;)(d.f&at)===0&&d!==e.fallback&&b.push(d),d=Kn(d.next);var F=b.length;if(F>0){var V=(i&qi)!==0&&a===0?r:null;if(o){for(_=0;_<F;_+=1)b[_].nodes?.a?.measure();for(_=0;_<F;_+=1)b[_].nodes?.a?.fix()}ia(e,b,V)}}o&&Wt(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function oa(e,t,r,i,s,o,a,u){var d=(a&ol)!==0?(a&ul)===0?Ol(r,!1,!1):jt(r):null,f=(a&ll)!==0?jt(s):null;return{v:d,i:f,e:ut(()=>(o(t,d??r,f??s,u),()=>{e.delete(i)}))}}function Zn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Pt)===0?t.nodes.start:r;i!==null;){var a=Bn(i);if(o.before(i),i===s)return;i=a}}function nn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Bt(e,t,...r){var i=new jr(e);Gn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Xt)}function ei(e,t,r){var i=new jr(e);Gn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Xt)}function Le(e,t){var r=void 0,i;Gl(()=>{r!==(r=t())&&(i&&(it(i),i=null),r&&(i=ut(()=>{Gr(()=>r(e))})))})}function Hs(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Hs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function la(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Hs(e))&&(i&&(i+=" "),i+=t);return i}function Ot(e){return typeof e=="object"?la(e):e??""}function aa(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function zs(e,t=!1){var r=t?" !important;":";",i="";for(var s of Object.keys(e)){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function ti(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ua(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,a=0,u=!1,d=[];i&&d.push(...Object.keys(i).map(ti)),s&&d.push(...Object.keys(s).map(ti));var f=0,c=-1;const y=e.length;for(var g=0;g<y;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?a++:h===")"&&a--,!u&&o===!1&&a===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===y-1){if(c!==-1){var v=ti(e.substring(f,c).trim());if(!d.includes(v)){h!==";"&&g++;var p=e.substring(f,g).trim();r+=" "+p+";"}}f=g+1,c=-1}}}}return i&&(r+=zs(i)),s&&(r+=zs(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function N(e,t,r,i,s,o){var a=e.__className;if(a!==r||a===void 0){var u=aa(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function ni(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function It(e,t,r,i){var s=e.__style;if(s!==t){var o=ua(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(ni(e,r?.[0],i[0]),ni(e,r?.[1],i[1],"important")):ni(e,r,i));return i}const da=Symbol("is custom element"),fa=Symbol("is html");function Se(e,t,r,i){var s=ca(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ha(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ca(e){return e.__attributes??={[da]:e.nodeName.includes("-"),[fa]:e.namespaceURI===Xi}}var Ws=new Map;function ha(e){var t=e.getAttribute("is")||e.nodeName,r=Ws.get(t);if(r)return r;Ws.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Wo(s);for(var a in i)i[a].set&&r.push(a);s=Wi(s)}return r}class ri{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#s().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#s(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){ri.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var va=new ri({box:"border-box"});function vr(e,t,r){var i=va.observe(e,()=>r(e[t]));Gr(()=>($(()=>r(e[t])),i))}function Us(e,t){return e===t||e?.[zn]===t}function ot(e={},t,r,i){var s=Ye.r,o=fe;return Gr(()=>{var a,u;return ws(()=>{a=u,u=i?.()||[],$(()=>{e!==r(...u)&&(t(e,...u),a&&Us(r(...a),e)&&t(null,...a))})}),()=>{let d=o;for(;d!==s&&d.parent!==null&&d.parent.f&Mr;)d=d.parent;const f=()=>{u&&Us(r(...u),e)&&t(null,...u)},c=d.teardown;d.teardown=()=>{f(),c?.()}}}),e}function we(e,t,r,i){var s=(r&cl)!==0,o=(r&hl)!==0,a=i,u=!0,d=()=>(u&&(u=!1,a=o?$(i):i),a);let f;if(s){var c=zn in e||qo in e;f=kn(e,t)?.set??(c&&t in e?E=>e[t]=E:void 0)}var g,h=!1;s?[g,h]=bl(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=d(),f&&(tl(),f(g)));var v;if(v=()=>{var E=e[t];return E===void 0?d():(u=!0,E)},(r&fl)===0)return v;if(f){var p=e.$$legacy;return(function(E,T){return arguments.length>0?((!T||p||h)&&f(T?v():E),E):v()})}var y=!1,m=((r&dl)!==0?dr:as)(()=>(y=!1,v()));s&&n(m);var _=fe;return(function(E,T){if(arguments.length>0){const k=T?n(m):s?qe(E):E;return C(m,k),y=!0,a!==void 0&&(a=k),E}return en&&y||(_.f&yt)!==0?m.v:n(m)})}function ga(){return le===null&&el(),(le.ac??=new AbortController).signal}function Jn(e){Ye===null&&Yi(),Xe(()=>{const t=$(e);if(typeof t=="function")return t})}const ma="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ma);function ii(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Ke(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function pa(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function si(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Vs(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function Q(...e){return Object.assign(...e)}function mn(e){return Object.keys(e)}function ya(e){return Object.entries(e)}function oi(e,t){return Object.hasOwn(e,t)}function li(e){return Math.floor(e)}function _a(e){return Math.ceil(e)}function Nt(...e){return Math.min(...e)}function ct(...e){return Math.max(...e)}function wa(){return Symbol("ec")}function De(e){return e.length}function kt(e){return!De(e)}function Qn(e){return Array.isArray(e)}function ye(e){return typeof e=="function"}function ba(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ai(e){return e instanceof Date}function ka(e){return e()}function Ca(e){e.forEach(ka)}function Da(){}const gr=e=>e;function pn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const mr=86400;function Ft(e=void 0){return e!==void 0?ai(e)?Ks(e):xa(e):Ks(new Date)}function Oe(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else ai(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function G(e){return new Date(e.getTime())}function Te(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)In(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function pr(e,t,r=1){return Te(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function In(e,t=1){return Ct(e,-t)}function Lt(e){return e.setUTCHours(0,0,0,0),e}function We(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function ht(e,t=19){return e.toISOString().substring(0,t)}function et(e,...t){return t.every(r=>e.getTime()===r.getTime())}function Ea(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Bs(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Gs(e){return typeof e=="string"&&e.length<=10}function ui(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function ve(e){return e.seconds}function Ys(e,t,r){return Te(e,t),Xs(e,r,Ct),e}function qs(e,t,r){return pr(e,t),Xs(e,r,In),e}function Xs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function Ta(e,t){e=G(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/mr+1)/7)}function Ks(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function xa(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let di=wa();function Zs(e,t){e[di]=t}function Sa(e){return!!e?.[di]}function Gt(e){return e[di]}function Js(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function rn(e){return e.getBoundingClientRect()}function Qs(e,t){for(;t--;)e=e.parentElement;return e}function yn(e){return rn(e).height}function Ln(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(Sa(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Ln(e,t,s.shadowRoot,i);if(o)return o}}return null}function jn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function fi(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function Ra(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function Ze(e){return e=Q({},e),e.currentStart=We(e.currentStart),e.currentEnd=We(e.currentEnd),e.activeStart=We(e.activeStart),e.activeEnd=We(e.activeEnd),e}let Ia=1;function yr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${Ia++}}`,resourceIds:ci(t,"resourceId").map(String),allDay:t.allDay??(Gs(t.start)&&Gs(t.end)),start:Ft(t.start),end:Ft(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:ci(t,"className"),styles:ci(t,"style")};if(r.allDay){Lt(r.start);let i=G(r.end);Lt(r.end),(!et(r.end,i)||et(r.end,r.start))&&Ct(r.end)}return r})}function ci(e,t){let r=e[t+"s"]??e[t]??[];return Qn(r)?r:[r]}function La(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 Pa(e,t,r,i,s,o){let a=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?ui(G(e.start),e.end):e.start),u;if(r&&(u=ye(r)?r({event:Je(e.event),timeText:a,view:Ze(o)}):r),u===void 0){let d;switch(e.event.display){case"background":d=[];break;case"pointer":d=e.event.allDay?[]:[js(a,e,i)];break;default:d=[...e.event.allDay?[]:[js(a,e,i)],Js("h4",i.eventTitle,e.event.title)]}u={domNodes:d}}return[a,u]}function js(e,t,r){return Js("time",r.eventTime,e,[["datetime",ht(t.start)]])}function Ma(e,t,r){let i=t.classNames;return e&&(ye(e)&&(e=e({event:Je(t),view:Ze(r)})),i=[...Qn(e)?e:[e],...i]),i}function Je(e){return $s(e,We)}function hi(e){return $s(e,G)}function $s(e,t){return e=Q({},e),e.start=t(e.start),e.end=t(e.end),e}function vi(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Pn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function _r(e){return Aa(e)||Oa(e)||Na(e)}function vt(e){return e==="background"}function Aa(e){return e==="preview"}function Oa(e){return e==="ghost"}function Na(e){return e==="pointer"}function $n(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:et(t,r)}}function Mn(e,t,r=!0){let i=[],s,o,a,u;for(let{gridColumn:d,gridRow:f,resource:c,dayStart:g,dayEnd:h,disabled:v}of t)!v&&Pn(e,g,h,c)&&(i.push(g),s=h,o||(o=d,a=f,u=c));if(i.length){let d=$n(e,i[0],s);return Q(d,{gridColumn:o,gridRow:a,resource:u,dates:i}),r&&gi(d),[d]}return[]}function eo(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let d=`${o}_${s+u}`;r[d]?r[d].chunks.push(i):r[d]={sorted:!1,chunks:[i]}}let a=`${o}_${s}`;i.long=r[a],i.prev=t[a],t[a]=i}}function to(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,a)=>o.top-a.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let a=o.bottom-r+1;r+=a,i+=a}}return Q(e,{top:r,bottom:i}),r}const no=new WeakMap;let Fa=1;function gi(e){let{event:t,gridColumn:r,gridRow:i}=e,s=no.get(t);s||(s=Fa++,no.set(t,s)),e.id=`${s}-${r}-${i}`}function _n(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{s=ye(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(We(o))}}}function ro(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{if(ye(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(a,u)=>{if(a<=u)return o.formatRange(a,u);{let d=o.formatRangeToParts(u,a),f="",c=["startRange","endRange"],g=[!1,!1];for(let h of d){let v=c.indexOf(h.source);v>=0?g[v]||(f+=Ha(c[1-v],d),g[v]=!0):f+=h.value}return f}}}}),{formatRange:(o,a)=>s(We(o),We(a))}}}function Ha(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function er(e){return wr(e,"day")}function tr(e){return wr(e,"week")}function mi(e){return wr(e,"month")}function za(e){return wr(e,"year")}function wr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function lt(e){return t=>({...t,view:e})}function Wa(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Lt(Ft(t))),r&&(r=Lt(Ft(r)))),{start:t,end:r}}function An(e,t){return t.start&&e<t.start||t.end&&e>t.end}function pi(e){let t=[];return io(e,0,!1,t),t}function io(e,t,r,i){let s=[];for(let o of e){let a=Ua(o);s.push(a),i.push(a);let u={level:t,children:[],hidden:r};Zs(a,u),o.children&&(u.children=io(o.children,t+1,r||!a.expanded,i))}return s}function Ua(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:so(e),eventTextColor:oo(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function so(e){return e?.eventBackgroundColor}function oo(e){return e?.eventTextColor}function lo(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function ao(e,t,r,i,s){let o=[];e=G(e);let a=G(e);for(Te(e,i.min),Te(a,i.max);e<a;)o.push([ht(e),s.format(e)]),Te(e,t,r);let u=li((e-a)/1e3/ve(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function uo(e,t,r,i,s){let o=Oe(e),a=Oe(t);if(r){let u=Oe(Nt(ve(o),ct(0,ve(a)-mr))),d=Oe(ct(ve(a),ve(u)+mr)),f=ye(r?.eventFilter)?r.eventFilter:c=>!vt(c.display);e:for(let c of i){let g=Te(G(c),o),h=Te(G(c),a),v=Te(G(c),u),p=Te(G(c),d);for(let y of s)if(!y.allDay&&f(y)&&y.start<p&&y.end>v){if(y.start<g){let m=ct((y.start-c)/1e3,ve(u));m<ve(o)&&(o.seconds=m)}if(y.end>h){let m=Nt((y.end-c)/1e3,ve(d));m>ve(a)&&(a.seconds=m)}if(ve(o)===ve(u)&&ve(a)===ve(d))break e}}}return{min:o,max:a}}class fo extends Map{#e=new Map;#n=B(0);#t=B(0);#s=Vt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#i(t){return Vt===this.#s?B(t):jt(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0)if(super.has(t))i=this.#i(0),r.set(t,i);else return n(this.#n),!1;return n(i),!0}forEach(t,r){this.#r(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0)if(super.has(t))i=this.#i(0),r.set(t,i);else{n(this.#n);return}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),a=super.set(t,r),u=this.#n;if(s===void 0)s=this.#i(0),i.set(t,s),C(this.#t,super.size),Mt(u);else if(o!==r){Mt(s);var d=u.reactions===null?null:new Set(u.reactions),f=d===null||!s.reactions?.every(c=>d.has(c));f&&Mt(u)}return a}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),C(i,-1)),s&&(C(this.#t,super.size),Mt(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;C(this.#t,0);for(var r of t.values())C(r,-1);Mt(this.#n),t.clear()}}#r(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#i(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#r(),super.values()}entries(){return this.#r(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function br(e){let t=0,r=B(qe(t));return co(e,()=>n(r),()=>!0,()=>C(r,++t,!0))}function Va(e){let t=0,r=qe({});return co(e,i=>r[i],(i,s)=>i!==s,i=>r[i]=++t)}function co(e,t,r,i){return new Proxy(e,{get(s,o,a){return oi(s,o)&&t(o),Reflect.get(s,o,a)},set(s,o,a,u){let d=r(s[o],a),f=Reflect.set(s,o,a,u);return d&&i(o),f}})}function Ba(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],icons:{},lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function Ga(e){let t={date:r=>Lt(Ft(r)),duration:Oe,events:yr,eventSources:La,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Lt(Ft(i))),resources:r=>Qn(r)?pi(r):r,validRange:Wa};for(let r of e)r.createParsers?.(t);return t}const ho=["buttonText","customButtons","icons","theme"];function Ya(e,t){let r=Ba(e),i=Ga(e);r=yi(r,i),t=yi(t,i);let s=_i(r,"views")??{},o=_i(t,"views")??{},a=Va({});Q(a,r),t.view&&(a.view=t.view);let u={},d={},f={},c=new Set([...mn(s),...mn(o)]);for(let g of c){let h=o[g]??{},v=vo(r,s[g]??s[h.type]??{}),p=vo(v,t,h),y=_i(p,"component");delete p.view;for(let m of mn(p))oi(a,m)?(u[m]||(u[m]=[]),u[m].push(ho.includes(m)?_=>p[m]=ye(_)?_(v[m]):_:_=>p[m]=_)):delete p[m];d[g]=p,f[g]=y}return Q(a,d[a.view]),[a,function(h,v,p=!0){oi(a,h)&&(p||(h in i?v=i[h](v):ba(v)?v={...v}:Qn(v)&&(v=[...v])),u[h]?.forEach(y=>y(v)),a[h]=v)},function(h){return Q(a,d[h]),f[h]}]}function yi(e,t){let r={...e};for(let i of mn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of mn(e.views))r.views[i]=yi(e.views[i],t)}return r}function _i(e,t){let r=e[t];return delete e[t],r}function vo(...e){let t={};for(let r of e){let i={};for(let s of ho)ye(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function qa(e,t){let r=[];for(let i of mn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Xa(e){return()=>{let{options:{view:t}}=e;$(()=>{let r=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=r(e)})}}function Ka(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:a,lazyFetching:u}}=e;$(()=>{go(a.map(d=>ye(d.events)?d.events:d),o,yr,d=>e.events=br(d),r,i,s,!0,u,t)})}}function Za(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:a,resources:u}}=e;$(()=>{go(Qn(u)?[]:[u],u,pi,d=>e.resources=br(d),r,i,s,a,o,t)})}}function go(e,t,r,i,s,o,a,u,d,f){if(!kt(a)){if(kt(e)){i(t);return}if((u||!o.start)&&(!d||!o.start||o.start>s.start||o.end<s.end)){let c=[],g=y=>f.stop(),h=y=>{c=c.concat(r(y)),i(c),f.stop()},v=ht(s.start),p=ht(s.end);for(let y of e)if(f.start(),ye(y)){let m=y(u?{start:We(s.start),end:We(s.end),startStr:v,endStr:p}:{},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=ye(y.extraParams)?y.extraParams():Q({},y.extraParams);u&&(m.start=v,m.end=p),m=new URLSearchParams(m);let _=y.url,E={},T;["GET","HEAD"].includes(y.method)?_+=(_.includes("?")?"&":"?")+m:(E["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",T=String(m)),fetch(_,{method:y.method,headers:E,body:T,signal:ga(),credentials:"same-origin"}).then(k=>k.json()).then(h).catch(g)}Q(o,s)}}}function Ja(e){let t=0;function r(i){let{options:{loading:s}}=e;ye(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function Qa(e){return()=>{let t=setInterval(()=>{let r=Ft(),i=Lt(G(r));e.now=r,et(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function ja(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;$(()=>{ye(r)&&r({start:We(t.start),end:We(t.end),startStr:ht(t.start),endStr:ht(t.end),view:Ze(e.view)})})}}function $a(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;$(()=>{ye(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function eu(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;$(()=>{ye(r)&&gn().then(()=>r({view:Ze(e.view)}))})}}function tu(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return $(()=>{s=G(t),r.months?s.setUTCDate(1):r.inWeeks&&Bs(s,i),o=Te(G(s),r)}),{start:s,end:o}}}function nu(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return $(()=>{i=G(t.start),s=G(t.end)}),r?r(i,s):{start:i,end:s}}}function ru(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:a}}=e,u=[...t];return $(()=>{if(ye(r)){let d=t.map(Je),f=Ze(e.view);u=u.filter((c,g)=>r({event:Je(c),index:g,events:d,view:f}))}s&&(u=u.filter(d=>o.some(f=>d.resourceIds.includes(f.id)))),ye(i)?u.sort((d,f)=>i(Je(d),Je(f))):u.sort((d,f)=>d.start-f.start||f.allDay-d.allDay)}),u}}function iu(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return $(()=>{let o=Lt(G(r.start)),a=Lt(G(r.end));for(;o<a;)i.includes(o.getUTCDay())||s.push(G(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);gn().then(()=>{e.setOption("date",o)})}}),s}}function su(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return $(()=>{i=r.formatRange(t.start,In(G(t.end)))}),i}}function ou(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return $(()=>{o=Ra(s,i,r,t)}),o}}class lu{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){C(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){C(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){C(this.#t,t)}#s;get fetchedRange(){return n(this.#s)}set fetchedRange(t){C(this.#s,t,!0)}#i;get events(){return n(this.#i)}set events(t){C(this.#i,t)}#r;get filteredEvents(){return n(this.#r)}set filteredEvents(t){C(this.#r,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){C(this.#o,t,!0)}#l;get now(){return n(this.#l)}set now(t){C(this.#l,t,!0)}#a;get resources(){return n(this.#a)}set resources(t){C(this.#a,t)}#u;get today(){return n(this.#u)}set today(t){C(this.#u,t,!0)}#d;get intlEventTime(){return n(this.#d)}set intlEventTime(t){C(this.#d,t)}#c;get intlDayHeader(){return n(this.#c)}set intlDayHeader(t){C(this.#c,t)}#h;get intlDayHeaderAL(){return n(this.#h)}set intlDayHeaderAL(t){C(this.#h,t)}#v;get intlTitle(){return n(this.#v)}set intlTitle(t){C(this.#v,t)}#f;get viewDates(){return n(this.#f)}set viewDates(t){C(this.#f,t)}#_;get viewTitle(){return n(this.#_)}set viewTitle(t){C(this.#_,t)}#w;get view(){return n(this.#w)}set view(t){C(this.#w,t)}#b;get viewComponent(){return n(this.#b)}set viewComponent(t){C(this.#b,t,!0)}#k;get extensions(){return n(this.#k)}set extensions(t){C(this.#k,t,!0)}#p;get features(){return n(this.#p)}set features(t){C(this.#p,t,!0)}#g;get interaction(){return n(this.#g)}set interaction(t){C(this.#g,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){C(this.#m,t,!0)}#y;get iClass(){return n(this.#y)}set iClass(t){C(this.#y,t,!0)}options;setOption;setViewOptions;constructor(t,r){[this.options,this.setOption,this.setViewOptions]=Ya(t,r),this.#e=B(qe([])),this.#n=l(tu(this)),this.#t=l(nu(this)),this.#s=B(qe({events:{},resources:{}})),this.#i=B(br(this.options.events)),this.#r=l(ru(this)),this.#o=B(),this.#l=B(qe(Ft())),this.#a=B(br(this.options.resources)),this.#u=B(qe(Lt(Ft()))),this.#d=l(ro(this,"eventTimeFormat")),this.#c=l(_n(this,"dayHeaderFormat")),this.#h=l(_n(this,"dayHeaderAriaLabelFormat")),this.#v=l(ro(this,"titleFormat")),this.#f=l(iu(this)),this.#_=l(su(this)),this.#w=l(ou(this)),this.#b=B(),this.#k=B(qe({})),this.#p=B(qe([])),this.#g=B(qe({})),this.iEvents=new fo,this.#m=B(qe(gr)),this.#y=B();for(let i of t)i.initState?.(this);this.#C()}#C(){let t=Ja(this);cn(Xa(this)),cn(Qa(this)),Xe(Ka(this,t)),Xe(Za(this,t)),Xe(ja(this)),Xe($a(this)),Xe(eu(this))}}var au=J("<h2></h2>"),uu=J("<button><i></i></button>"),du=J("<button><i></i></button>"),fu=J("<button> </button>"),cu=J("<button></button>"),hu=J("<button> </button>");function mo(e,t){me(t,!0);let r=ee("state"),i=l(()=>r.currentRange),s=l(()=>r.today),o=l(()=>r.viewTitle),a=l(()=>r.viewDates),u=l(()=>r.options.buttonText),d=l(()=>r.options.customButtons),f=l(()=>r.options.date),c=l(()=>r.options.duration),g=l(()=>r.options.hiddenDays),h=l(()=>r.options.theme),v=l(()=>r.options.validRange),p=l(()=>r.options.view),y=B(!1),m=B(!1),_=B(!1),E=!1;cn(()=>{n(a),n(v),t.buttons,$(()=>{E||(E=!0,t.buttons.includes("prev")&&(C(y,!1),n(v).start&&C(y,T(k),!0)),t.buttons.includes("next")&&(C(m,!1),n(v).end&&C(m,T(D),!0)),t.buttons.includes("today")&&(C(_,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(_)&&(n(v).start||n(v).end)&&C(_,T(w),!0)),gn().then(()=>E=!1))})});function T(V){let M=n(f);V();let Z=n(a).every(ie=>An(ie,n(v)));return r.setOption("date",M),Z}function k(){r.setOption("date",qs(G(n(f)),n(c),n(g)))}function D(){r.setOption("date",Ys(G(n(f)),n(c),n(g)))}function w(){r.setOption("date",G(n(s)))}var b=he(),F=ne(b);oe(F,17,()=>t.buttons,ke,(V,M)=>{var Z=he(),ie=ne(Z);{var ce=x=>{var S=au();Le(S,()=>Ke(n(o))),se(()=>N(S,1,n(h).title)),P(x,S)},te=x=>{var S=uu(),W=ue(S);se(()=>{N(S,1,`${n(h).button??""} ec-${n(M)??""}`),Se(S,"aria-label",n(u).prev),Se(S,"title",n(u).prev),S.disabled=n(y),N(W,1,`${n(h).icon??""} ec-${n(M)??""}`)}),ze("click",S,k),P(x,S)},X=x=>{var S=du(),W=ue(S);se(()=>{N(S,1,`${n(h).button??""} ec-${n(M)??""}`),Se(S,"aria-label",n(u).next),Se(S,"title",n(u).next),S.disabled=n(m),N(W,1,`${n(h).icon??""} ec-${n(M)??""}`)}),ze("click",S,D),P(x,S)},ae=x=>{var S=fu(),W=ue(S);se(()=>{N(S,1,`${n(h).button??""} ec-${n(M)??""}`),S.disabled=n(_),Ns(W,n(u)[n(M)])}),ze("click",S,w),P(x,S)},K=x=>{var S=cu();Le(S,()=>Ke(n(d)[n(M)].text)),se(()=>N(S,1,Ot([n(h).button,`ec-${n(M)}`,n(d)[n(M)].active&&n(h).active]))),ze("click",S,function(...W){n(d)[n(M)].click?.apply(this,W)}),P(x,S)},A=x=>{var S=hu(),W=ue(S);se(()=>{N(S,1,Ot([n(h).button,`ec-${n(M)}`,n(p)===n(M)&&n(h).active])),Ns(W,n(u)[n(M)])}),ze("click",S,()=>r.setOption("view",n(M))),P(x,S)};_e(ie,x=>{n(M)==="title"?x(ce):n(M)==="prev"?x(te,1):n(M)==="next"?x(X,2):n(M)==="today"?x(ae,3):n(d)[n(M)]?x(K,4):n(M)!==""&&x(A,5)})}P(V,Z)}),P(e,b),pe()}tn(["click"]);var vu=J("<div><!></div>"),gu=J("<div></div>"),mu=J("<nav></nav>");function pu(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.headerToolbar),s=l(()=>n(r).options.theme),o=l(()=>{let u={};for(let d of["start","center","end"])u[d]=n(i)[d]?.split(" ").map(f=>f.split(","))??[];return u});var a=mu();oe(a,21,()=>mn(n(o)),ke,(u,d)=>{var f=gu();oe(f,21,()=>n(o)[n(d)],ke,(c,g)=>{var h=he(),v=ne(h);{var p=m=>{var _=vu(),E=ue(_);mo(E,{get buttons(){return n(g)}}),se(()=>N(_,1,n(s).buttonGroup)),P(m,_)},y=m=>{mo(m,{get buttons(){return n(g)}})};_e(v,m=>{n(g).length>1?m(p):m(y,-1)})}P(c,h)}),se(()=>N(f,1,`ec-${n(d)??""}`)),P(u,f)}),se(()=>N(a,1,n(s).toolbar)),P(e,a),pe()}var yu=J("<div><!> <!> <!></div>");function _u(e,t){me(t,!0);let r=we(t,"plugins",19,()=>[]),i=we(t,"options",19,()=>({})),s=new lu(r(),i());Wn("state",s);let o=l(()=>s.auxComponents),a=l(()=>s.features),u=l(()=>s.events),d=l(()=>s.interaction),f=l(()=>s.iClass),c=l(()=>s.view),g=l(()=>s.viewComponent),h=l(()=>s.options.date),v=l(()=>s.options.duration),p=l(()=>s.options.height),y=l(()=>s.options.hiddenDays),m=l(()=>s.options.customScrollbars),_=l(()=>s.options.theme),E={...i()};cn(()=>{for(let[R,z]of qa(i(),E))$(()=>{T(R,z)});Q(E,i())});function T(R,z){return s.setOption(R,z,!1),this}function k(R){let z=s.options[R];return ai(z)?We(z):z}function D(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function b(){return n(u).map(Je)}function F(R){R=String(R);for(let z of n(u))if(z.id===R)return Je(z);return null}function V(R){return R=yr([R])[0],n(u).push(R),Je(R)}function M(R){let z=String(R.id),L=n(u).findIndex(be=>be.id===z);return L>=0?(R=yr([R])[0],n(u)[L]=R,Je(R)):null}function Z(R){R=String(R);let z=n(u).findIndex(L=>L.id===R);return z>=0&&n(u).splice(z,1),this}function ie(){return Ze(n(c))}function ce(){return n(d).action?.unselect(),this}function te(R,z){let L=Ln(R,z);if(L){let be=Gt(L)(R,z);return be.date=We(be.date),be}return null}function X(){return s.setOption("date",Ys(G(n(h)),n(v),n(y))),this}function ae(){return s.setOption("date",qs(G(n(h)),n(v),n(y))),this}var K={setOption:T,getOption:k,refetchResources:D,refetchEvents:w,getEvents:b,getEventById:F,addEvent:V,updateEvent:M,removeEventById:Z,getView:ie,unselect:ce,dateFromPoint:te,next:X,prev:ae},A=yu();let x;var S=ue(A);pu(S,{});var W=re(S,2);ei(W,()=>n(g),(R,z)=>{z(R,{})});var Ce=re(W,2);return oe(Ce,17,()=>n(o),ke,(R,z)=>{var L=he(),be=ne(L);ei(be,()=>n(z),(gt,Ne)=>{Ne(gt,{})}),P(R,L)}),se(R=>{N(A,1,Ot([n(_).calendar,n(_).view,n(f)&&n(_)[n(f)],n(m)&&n(_).customScrollbars])),Se(A,"role",R),x=It(A,"",x,{height:n(p)})},[()=>n(a).includes("list")?"list":"table"]),P(e,A),pe(K)}function wu(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return $(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function bu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,a=[];return $(()=>{let u=[],d=1,f=1;for(let c of s)u.push({gridColumn:d,gridRow:f,resource:void 0,dayStart:c,dayEnd:Ct(G(c)),disabled:An(c,i),highlight:r.some(g=>et(g,c))}),d===o&&(a.push(u),u=[],d=0,++f),++d}),a}}function ku(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return $(()=>{for(let a of r)for(let u of i)vt(a.display)?a.allDay&&(o=o.concat(Mn(a,u))):s=s.concat(Mn(a,u));eo(s)}),{chunks:s,bgChunks:o}}}function Cu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&$(()=>{for(let a of i)s=s.concat(Mn(o,a,!1))});return s}}let Du=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){C(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){C(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){C(this.#t,t,!0)}#s;get chunks(){return n(this.#s)}set chunks(t){C(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){C(this.#i,t)}#r;get iChunks(){return n(this.#r)}set iChunks(t){C(this.#r,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){C(this.#o,t)}#l;get intlDayPopover(){return n(this.#l)}set intlDayPopover(t){C(this.#l,t)}#a;get popupDay(){return n(this.#a)}set popupDay(t){C(this.#a,t,!0)}constructor(t){this.#e=l(wu(t)),this.#n=l(bu(t,this)),this.#t=B();let r=l(ku(t,this)),i=l(()=>n(r).chunks),s=l(()=>n(r).bgChunks);this.#s=l(()=>n(i)),this.#i=l(()=>n(s)),this.#r=l(Cu(t,this)),this.hiddenChunks=new fo,this.#o=l(_n(t,"dayCellFormat")),this.#l=l(_n(t,"dayPopoverFormat")),this.#a=B(null)}};var Eu=J("<div><!></div>");function kr(e,t){me(t,!0);let r=we(t,"el",15),i=we(t,"allDay",3,!1),s=we(t,"resource",3,void 0),o=we(t,"dateFromPoint",3,()=>t.date),a=we(t,"classes",3,gr),u=we(t,"disabled",3,!1),d=we(t,"highlight",3,!1),f=we(t,"role",3,"cell"),c=we(t,"noIeb",3,!1),g=we(t,"noBeb",3,!1),h=l(()=>ee("state")),v=l(()=>n(h).today),p=l(()=>n(h).interaction.action),y=l(()=>n(h).options.theme),m=l(()=>ee("view-state")),_=l(()=>n(m).snap),E=l(()=>et(t.date,n(v))),T=l(()=>a()([n(y).day,n(y).weekdays?.[t.date.getUTCDay()],n(E)&&n(y).today,d()&&n(y).highlight,u()&&n(y).disabled,c()&&n(y).noIeb,g()&&n(y).noBeb]));Jn(()=>{Zs(r(),(b,F)=>({allDay:i(),date:o()(b,F),resource:s(),dayEl:r(),disabled:u()}))});let k=l(()=>!u()&&n(p)?b=>n(p).select(b,n(_)):void 0);var D=Eu(),w=ue(D);Bt(w,()=>t.children??Cn),ot(D,b=>r(b),()=>r()),se(()=>{N(D,1,Ot(n(T))),Se(D,"role",f())}),ze("pointerdown",D,function(...b){n(k)?.apply(this,b)}),P(e,D),pe()}tn(["pointerdown"]);var Tu=J("<div></div>"),xu=J("<article><!></article>");function po(e,t){me(t,!0);let r=we(t,"el",15),i=we(t,"classes",3,gr),s=we(t,"styles",3,gr),o=l(()=>ee("state")),a=l(()=>n(o).intlEventTime),u=l(()=>n(o).resources),d=l(()=>n(o).view),f=l(()=>n(o).options.displayEventEnd),c=l(()=>n(o).options.eventBackgroundColor),g=l(()=>n(o).options.eventColor),h=l(()=>n(o).options.eventContent),v=l(()=>n(o).options.eventClick),p=l(()=>n(o).options.eventDidMount),y=l(()=>n(o).options.eventClassNames),m=l(()=>n(o).options.eventMouseEnter),_=l(()=>n(o).options.eventMouseLeave),E=l(()=>n(o).options.eventTextColor),T=l(()=>n(o).options.theme),k=l(()=>t.chunk.event),D=l(()=>t.chunk.event.display),w=l(()=>n(k).backgroundColor??so(t.chunk.resource??lo(n(k),n(u)))??n(c)??n(g)),b=l(()=>n(k).textColor??oo(t.chunk.resource??lo(n(k),n(u)))??n(E)),F=l(()=>ya(s()({"background-color":n(w),color:n(b)})).map(R=>`${R[0]}:${R[1]}`).concat(n(k).styles).join(";")),V=l(()=>i()([vt(n(D))?n(T).bgEvent:n(T).event,...Ma(n(y),n(k),n(d))])),M=l(()=>Pa(t.chunk,n(f),n(h),n(T),n(a),n(d))),Z=l(()=>Go(n(M),2)),ie=l(()=>n(Z)[0]),ce=l(()=>n(Z)[1]);Jn(()=>{ye(n(p))&&n(p)({event:Je(n(k)),timeText:n(ie),el:r(),view:Ze(n(d))})});function te(R,z){return ye(R)&&!_r(z)?L=>R({event:Je(n(k)),el:r(),jsEvent:L,view:Ze(n(d))}):void 0}let X=l(()=>!vt(n(D))&&te(n(v),n(D))||void 0),ae=l(()=>n(X)&&ii(n(X))),K=l(()=>te(n(m),n(D))),A=l(()=>te(n(_),n(D)));var x=xu();{const R=z=>{var L=Tu();Le(L,()=>Ke(n(ce))),se(()=>N(L,1,Ot(n(T).eventBody))),P(z,L)};var S=ue(x);{var W=z=>{var L=he(),be=ne(L);Bt(be,()=>t.body,()=>R,()=>n(w),()=>n(b)),P(z,L)},Ce=z=>{R(z)};_e(S,z=>{t.body?z(W):z(Ce,-1)})}ot(x,z=>r(z),()=>r())}se(()=>{N(x,1,Ot(n(V))),It(x,n(F)),Se(x,"role",n(X)?"button":void 0),Se(x,"tabindex",n(X)?0:void 0)}),ze("click",x,function(...R){n(X)?.apply(this,R)}),ze("keydown",x,function(...R){n(ae)?.apply(this,R)}),ft("mouseenter",x,function(...R){n(K)?.apply(this,R)}),ft("mouseleave",x,function(...R){n(A)?.apply(this,R)}),ze("pointerdown",x,function(...R){t.onpointerdown?.apply(this,R)}),P(e,x),pe()}tn(["click","keydown","pointerdown"]);var Su=J("<div><!></div>");function nr(e,t){me(t,!0);let r=we(t,"weekday",3,!0),i=we(t,"colSpan",3,1),s=we(t,"ariaHidden",3,!1),o=we(t,"disabled",3,!1),a=we(t,"highlight",3,!1),u=l(()=>ee("state")),d=l(()=>n(u).today),f=l(()=>n(u).options.theme);var c=Su(),g=ue(c);Bt(g,()=>t.children),se(h=>{N(c,1,h),Se(c,"role",s()?null:"columnheader"),Se(c,"aria-colspan",s()||i()<=1?null:i()),Se(c,"aria-colindex",s()?null:t.colIndex),Se(c,"aria-hidden",s()?"true":null)},[()=>Ot([t.className??n(f).colHead,r()&&n(f).weekdays?.[t.date.getUTCDay()],r()&&et(t.date,n(d))&&n(f).today,a()&&n(f).highlight,o()&&n(f).disabled])]),P(e,c),pe()}var Ru=J("<time></time>");function Cr(e,t){me(t,!0);let r=we(t,"alPrefix",3,""),i=l(()=>ee("state")),s=l(()=>n(i).intlDayHeader),o=l(()=>n(i).intlDayHeaderAL);var a=Ru();Le(a,()=>Ke(n(s).format(t.date))),se((u,d)=>{Se(a,"datetime",u),Se(a,"aria-label",`${r()??""}${d??""}`)},[()=>ht(t.date,10),()=>n(o).format(t.date)]),P(e,a),pe()}function Dr(e,t){me(t,!0);let r=we(t,"el",15),i=l(()=>ee("state")),s=l(()=>n(i).iClasses),o=l(()=>n(i).interaction.action),a=l(()=>n(i).interaction.resizer),u=l(()=>ee("view-state")),d=l(()=>n(u).snap),f=l(()=>t.chunk.event),c=l(()=>t.chunk.event.display),g=l(()=>p=>n(s)(p,n(f)));function h(p){return n(o)?.draggable(p)?y=>n(o).drag(p,y,t.forceDate,t.forceMargin,n(d)):n(o)?.noAction}let v=l(()=>!vt(n(c))&&!_r(n(c))?h(n(f)):void 0);po(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(y){r(y)},body:(y,m=Cn)=>{var _=he(),E=ne(_);{var T=D=>{var w=he(),b=ne(w);ei(b,()=>n(a),(F,V)=>{V(F,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(M,Z)=>{var ie=he(),ce=ne(ie);Bt(ce,m),P(M,ie)},$$slots:{default:!0}})}),P(D,w)},k=D=>{var w=he(),b=ne(w);Bt(b,m),P(D,w)};_e(E,D=>{n(a)?D(T):D(k,-1)})}P(y,_)},$$slots:{body:!0}}),pe()}var Iu=J("<time></time>"),Lu=J("<span></span>"),Pu=J('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Mu=J("<div><!> <!></div> <div><!></div>",1);function Au(e,t){me(t,!0);let r=ee("state"),i=ee("view-state"),s=l(()=>r.features),o=l(()=>r.options.date),a=l(()=>r.options.firstDay),u=l(()=>r.options.moreLinkContent),d=l(()=>r.options.theme),f=l(()=>r.options.weekNumbers),c=l(()=>r.options.weekNumberContent),g=l(()=>i.hiddenChunks),h=l(()=>i.intlDayCell),v=l(()=>t.day.dayStart),p=l(()=>t.day.disabled),y=l(()=>t.day.highlight),m=l(()=>n(v).getUTCMonth()!==n(o).getUTCMonth()),_=l(()=>b=>[...b,n(m)&&n(d).otherMonth]),E=l(()=>n(f)&&n(v).getUTCDay()===(n(a)?1:0)),T=l(()=>{let b;if(n(E)){let F=Ta(n(v),n(a));n(c)?b=ye(n(c))?n(c)({date:We(n(v)),week:F}):n(c):b="W"+String(F).padStart(2,"0")}return b}),k=l(()=>n(g).get(n(v).getTime())),D=l(()=>{let b="";if(n(k)){let F="+"+n(k).length+" more";n(u)?b=ye(n(u))?n(u)({num:n(k).length,text:F}):n(u):b=F}return b});function w(){i.popupDay=t.day}kr(e,{get date(){return n(v)},allDay:!0,get classes(){return n(_)},get disabled(){return n(p)},get highlight(){return n(y)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(b,F)=>{var V=Mu(),M=ne(V),Z=ue(M);{var ie=x=>{var S=Iu();Le(S,()=>Ke(n(h).format(n(v)))),se(W=>Se(S,"datetime",W),[()=>ht(n(v),10)]),P(x,S)},ce=l(()=>n(s).includes("dayNumber"));_e(Z,x=>{n(ce)&&x(ie)})}var te=re(Z,2);{var X=x=>{var S=Lu();Le(S,()=>Ke(n(T))),se(()=>N(S,1,n(d).weekNumber)),P(x,S)};_e(te,x=>{n(E)&&x(X)})}var ae=re(M,2),K=ue(ae);{var A=x=>{var S=Pu(),W=l(()=>fi(w)),Ce=l(()=>ii(w)),R=l(fi);Le(S,()=>Ke(n(D))),ze("click",S,function(...z){n(W)?.apply(this,z)}),ze("keydown",S,function(...z){n(Ce)?.apply(this,z)}),ze("pointerdown",S,function(...z){n(R)?.apply(this,z)}),P(x,S)};_e(K,x=>{n(k)&&x(A)})}se(()=>{N(M,1,n(d).dayHead),N(ae,1,n(d).dayFoot)}),P(b,V)},$$slots:{default:!0}}),pe()}tn(["click","keydown","pointerdown"]);function Er(e,t){me(t,!0);let r=we(t,"inPopup",3,!1),i=l(()=>ee("state")),s=l(()=>n(i).options.dayMaxEvents),o=l(()=>ee("view-state")),a=l(()=>n(o).colsCount),u=l(()=>n(o).gridEl),d=l(()=>n(o).hiddenChunks),f=l(()=>n(o).popupDay),c=B(void 0),g=B(1),h=B(!1),v=l(()=>t.chunk.event),p=l(()=>t.chunk.event.display),y=l(()=>n(u).children.item((t.chunk.gridRow-1)*n(a)+t.chunk.gridColumn-1));Xe(()=>{r()||C(g,yn(n(y).firstElementChild)||1,!0)});let m=l(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!vt(n(p))){let w=r()?1:n(g);if(n(v)._margin){let[b,F]=n(v)._margin;b>w&&t.chunk.gridRow===F&&(w=b)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function _(){C(g,to(t.chunk,yn(n(c)),yn(n(y).firstElementChild)||1),!0)}function E(){if(n(s)===!0){let D=yn(n(y))-T(n(y));if(C(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let b=w.getTime();if(n(d).has(b)){let F=n(d).get(b);F.includes(t.chunk)||n(d).set(b,[...F,t.chunk])}else n(d).set(b,[t.chunk])}}else C(h,!1),n(d).size&&n(d).clear()}function T(D){let w=0;for(let b=0;b<t.chunk.dates.length&&(w=ct(w,yn(D.lastElementChild)),D=D.nextElementSibling,!!D);++b);return w}var k={reposition:_,hide:E};{let D=l(()=>r()&&n(f).dayStart),w=l(()=>[n(g),t.chunk.gridRow]);Dr(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(D)},get forceMargin(){return n(w)},get el(){return n(c)},set el(b){C(c,b,!0)}})}return pe(k)}var Ou=J('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>');function Nu(e,t){me(t,!0);let r=ee("view-state"),i=l(()=>ee("state")),s=l(()=>n(i).interaction),o=l(()=>n(i).options.buttonText),a=l(()=>n(i).options.theme),u=l(()=>r.colsCount),d=l(()=>r.chunks),f=l(()=>r.gridEl),c=l(()=>r.intlDayPopover),g=l(()=>r.popupDay),h=B(void 0),v=B(""),p=l(()=>n(g).gridColumn),y=l(()=>n(g).gridRow),m=l(()=>n(g).dayStart),_=l(()=>n(g).dayEnd),E=l(()=>{let te=[];for(let X of n(d))X.gridRow===n(y)&&X.gridColumn<=n(p)&&X.gridColumn+X.dates.length>n(p)&&te.push(Q({},X,$n(X.event,n(m),n(_))));return te.sort((X,ae)=>X.top-ae.top),te});Jn(()=>{n(h).show()}),Xe(()=>{n(E).length?$(T):k()});function T(){let te=n(f).children.item((n(y)-1)*n(u)+n(p)-1),X=rn(n(h)),ae=rn(te),K=rn(n(f));C(v,"");let A;if(X.width>=K.width){A=K.left-ae.left;let S=ae.right-K.right;C(v,n(v)+`inset-inline-end:${S}px;`)}else A=(ae.width-X.width)/2,ae.left+A<K.left?A=K.left-ae.left:ae.left+A+X.width>K.right&&(A=K.right-ae.left-X.width);C(v,n(v)+`inset-inline-start:${A}px;`);let x;X.height>=K.height?(x=K.top-ae.top,C(v,n(v)+`block-size:${K.height}px;`)):(x=(ae.height-X.height)/2,ae.top+x<K.top?x=K.top-ae.top:ae.top+x+X.height>K.bottom&&(x=K.bottom-ae.top-X.height)),C(v,n(v)+`inset-block-start:${x}px;`)}function k(){r.popupDay=null}function D(){k(),n(s).action?.noClick()}var w=Ou();let b;var F=ue(w),V=ue(F);Le(V,()=>Ke(n(c).format(n(m))));var M=re(V,2);Wl(M);var Z=l(()=>fi(k)),ie=l(()=>ii(k)),ce=re(F,2);oe(ce,21,()=>n(E),ke,(te,X)=>{Er(te,{get chunk(){return n(X)},inPopup:!0})}),ot(w,te=>C(h,te),()=>n(h)),Le(w,()=>pa("pointerdown")),se(te=>{N(w,1,n(a).popup),b=It(w,n(v),b,{"grid-area":`${n(y)+1} / ${n(p)}`}),N(F,1,n(a).dayHead),Se(V,"datetime",te),Se(M,"aria-label",n(o).close),N(ce,1,n(a).events)},[()=>ht(n(m),10)]),ft("pointerdownoutside",w,D),ft("close",w,k),ze("click",M,function(...te){n(Z)?.apply(this,te)}),ze("keydown",M,function(...te){n(ie)?.apply(this,te)}),P(e,w),pe()}tn(["click","keydown"]);var Fu=J('<div role="columnheader"><span></span></div>'),Hu=J('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function wi(e,t){me(t,!0);let r=ee("state"),i=new Du(r);Wn("view-state",i);let s=l(()=>r.intlDayHeader),o=l(()=>r.intlDayHeaderAL),a=l(()=>r.options.dayMaxEvents),u=l(()=>r.options.theme),d=l(()=>i.grid),f=l(()=>i.chunks),c=l(()=>i.bgChunks),g=l(()=>i.iChunks),h=l(()=>i.hiddenChunks),v=l(()=>i.popupDay),p=[];function y(){vi(p,n(f)),n(h).clear(),gn().then(m)}function m(){n(h).size,p.forEach(D=>D?.hide())}Xe(y),Xe(m);var _=he(),E=ne(_);{var T=D=>{var w=Hu();let b;var F=ue(w),V=ue(F);oe(V,21,()=>n(d)[0],ke,(A,x,S)=>{let W=()=>n(x).dayStart;var Ce=Fu();Se(Ce,"aria-colindex",1+S);var R=ue(Ce);Le(R,()=>Ke(n(s).format(W()))),se((z,L)=>{N(Ce,1,z),Se(R,"aria-label",L)},[()=>Ot([n(u).colHead,n(u).weekdays?.[W().getUTCDay()]]),()=>n(o).format(W())]),P(A,Ce)});var M=re(F,2),Z=ue(M);oe(Z,21,()=>n(d),ke,(A,x,S)=>{var W=he(),Ce=ne(W);oe(Ce,17,()=>n(x),ke,(R,z,L)=>{{let be=l(()=>L+1===De(n(x))),gt=l(()=>S+1===De(n(d)));Au(R,{get day(){return n(z)},get noIeb(){return n(be)},get noBeb(){return n(gt)}})}}),P(A,W)}),ot(Z,A=>i.gridEl=A,()=>i?.gridEl);var ie=re(Z,2),ce=ue(ie);oe(ce,19,()=>n(f),A=>A.id,(A,x,S)=>{ot(Er(A,{get chunk(){return n(x)}}),(W,Ce)=>p[Ce]=W,W=>p?.[W],()=>[n(S)])});var te=re(ce,2);oe(te,17,()=>n(c),A=>A.id,(A,x)=>{Er(A,{get chunk(){return n(x)}})});var X=re(te,2);oe(X,17,()=>n(g),ke,(A,x)=>{Er(A,{get chunk(){return n(x)}})});var ae=re(M,2);{var K=A=>{Nu(A,{})};_e(ae,A=>{n(v)&&A(K)})}ot(w,A=>r.mainEl=A,()=>r?.mainEl),Le(w,()=>si(y)),se(A=>{N(w,1,Ot([n(u).main,n(a)===!0&&n(u).uniform])),b=It(w,"",b,A),N(F,1,n(u).header),N(V,1,n(u).grid),N(M,1,n(u).body),N(Z,1,n(u).grid),N(ie,1,n(u).events)},[()=>({"--ec-grid-cols":De(n(d)[0]),"--ec-grid-rows":De(n(d))})]),P(D,w)},k=l(()=>!kt(n(d))&&!kt(n(d)[0]));_e(E,D=>{n(k)&&D(T)})}P(e,_),pe()}const zu={createOptions(e){Q(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),Q(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),Q(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),Q(e.views,{dayGridDay:{buttonText:er,component:()=>wi,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:lt("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:tr,component:()=>wi,displayEventEnd:!1,theme:lt("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:mi,component:Wu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:lt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function Wu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Bs(t,i),end:Ea(r,i)}},wi}function yo(e,t,r){return e.startEditable??t??e.editable??r}function Uu(e,t,r){return e.durationEditable??t??e.editable??r}let bi=!1;function Vu(e){bi||(bi=!0,window.requestAnimationFrame(()=>{e(),bi=!1}))}function _o(e,t,r){return ct(t,Nt(r,e))}function Bu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:a}=o;return[...s,_r(a)?[i[a]]:!vt(a)&&yo(o,r,t)?[i.draggable]:[]]}}}function Gu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return jn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Yu{constructor(t){this.#e(t)}#e(t){cn(Bu(t)),Xe(Gu(t))}}function qu(e,t){me(t,!0);let r=ee("state"),i=l(()=>r.events),s=l(()=>r.iEvents),o=l(()=>r.features),a=l(()=>r.view),u=l(()=>r.mainEl),d=l(()=>r.options.dateClick),f=l(()=>r.options.dragConstraint),c=l(()=>r.options.dragScroll),g=l(()=>r.options.editable),h=l(()=>r.options.eventStartEditable),v=l(()=>r.options.eventDragMinDistance),p=l(()=>r.options.eventDragStart),y=l(()=>r.options.eventDragStop),m=l(()=>r.options.eventDrop),_=l(()=>r.options.eventLongPressDelay),E=l(()=>r.options.eventResizeStart),T=l(()=>r.options.eventResizeStop),k=l(()=>r.options.eventResize),D=l(()=>r.options.longPressDelay),w=l(()=>r.options.resizeConstraint),b=l(()=>r.options.selectable),F=l(()=>r.options.select),V=l(()=>r.options.selectBackgroundColor),M=l(()=>r.options.selectConstraint),Z=l(()=>r.options.selectLongPressDelay),ie=l(()=>r.options.selectMinDistance),ce=l(()=>r.options.unselect),te=l(()=>r.options.unselectAuto),X=l(()=>r.options.unselectCancel),ae=l(()=>r.options.validRange);const K=1,A=2,x=3,S=4,W=5,Ce=6;let R,z,L,be,gt,Ne,Ht,Qe,mt,Yt,sn,Ae,U,Ie,Ue,H,Y,xe,q,Pe,Re,je,tt,ge,Ve,nt,Be;function on(I){return yo(I,n(h),n(g))}function On(I,O,de,j,rt){R||(R=Ni(O)?K:Ce,wn()&&(L=I,Oi(O,rt),de&&(Ne=de),j&&(Ve=j),xe="dragging",Nn(O)))}function Pi(I,O,de,j,rt,ir,Hi,pf){R||(R=Ni(O)?de?x:A:Ce,wn()&&(L=I,Oi(O,pf),rt&&(Ne=rt),ir&&(Ve=ir),xe=j==="x"?"resizingX":"resizingY",Rr()?(q=G(L.end),Y?(ui(q,L.start),q>=L.end&&In(q)):(pr(q,nt),q<L.start&&(q=L.start),Ne=L.start)):(q=G(L.start),Y?(ui(q,L.end),q<=L.start&&!Hi&&Ct(q)):(Te(q,nt),q>L.end&&(q=L.end),Ne=L.end,Hi||(Ne=pr(G(Ne),nt))),Hi&&!Y&&(Be=nt)),Nn(O)))}function Mi(I,O){R||(R=Ni(I)?n(b)&&!n(o).includes("list")?S:W:Ce,wn()&&(Oi(I,O),xe="selecting",Pe=Y?Oe({day:1}):nt,L={allDay:Y,start:Ne,end:Te(G(Ne),Pe),resourceIds:Qe?[Qe.id]:[]},Nn(I)))}function Ai(){R||(R=Ce)}function Oi(I,O){window.getSelection().removeAllRanges(),Yt=Ae=I.clientX,sn=U=I.clientY,nt=O?.duration;let de=Ln(Ae,U);({allDay:Y,date:Ne,resource:Qe}=Gt(de)(Ae,U)),Ue=n(u)!==Qs(de,3),Ie=Qs(de,1),Po(),I.pointerType!=="mouse"&&(tt=setTimeout(()=>{R&&(z=!0,Nn(I))},(ln()?n(Z):n(_))??n(D)))}function Nn(I){if(z||I&&I.pointerType==="mouse"&&df()>=(ln()?n(ie):n(v))){z=!0,Ir(I),r.iClass=xe,be||(ln()?uf():af(I,Fn()?n(E):n(p)));let O=rr(lf());if(O){let de;if({allDay:de,date:Ht,resource:mt}=O,de===Y){let j=Sr({},be),rt=n(w);H=Oe((Ht-Ne)/1e3),Rr()?(j.start=Te(G(L.start),H),j.start>q&&(j.start=q,H=Oe((q-L.start)/1e3))):(j.end=Te(G(L.end),H),Be&&Te(j.end,Be),Fn()?j.end<q&&(j.end=q,H=Oe((q-L.end)/1e3)):ln()?(j.end<L.end?(j.start=pr(j.end,Pe),j.end=L.end):j.start=L.start,rt=n(M)):(j.start=Te(G(L.start),H),Qe&&(j.resourceIds=L.resourceIds.filter(ir=>ir!==Qe.id),j.resourceIds.push(mt.id)),rt=n(f)));do{if(rt!==void 0&&(j=Sr(hi(L),j),rt(ln()?No(j,I):Fo(j,L,I))===!1)){Oo(L);break}Oo(j)}while(!1)}}}if(n(c)){let O=24,de=24;Vu(()=>{ge&&(Ue||(U<ge.top+O&&(n(u).scrollTop+=ct(-8,(U-ge.top-O)/3)),U>ge.bottom-O&&(n(u).scrollTop+=Nt(8,(U-ge.bottom+O)/3))),Ae<ge.left+de&&(n(u).scrollLeft+=ct(-8,(Ae-ge.left-de)/3)),Ae>ge.right-de&&(n(u).scrollLeft+=Nt(8,(Ae-ge.right+de)/3)),U<O&&window.scrollBy(0,ct(-8,(U-O)/3)),U>window.innerHeight-O&&window.scrollBy(0,Nt(8,(U-window.innerHeight+O)/3)))})}}function Io(){wn()&&(Po(),Nn())}function sf(I){wn()&&I.isPrimary&&(Ae=I.clientX,U=I.clientY,Nn(I))}function of(I){if(Re&&n(te)&&!(n(X)&&I.target.closest(n(X)))&&Ir(I),R&&I.isPrimary){if(z)if(ln()){if(Re=!0,ye(n(F))){let O=No(be,I);n(F)(O)}}else{L.display=gt;let O=Fn()?n(T):n(y);ye(O)&&O({event:Je(L),jsEvent:I,view:Ze(n(a))});let de=hi(L);if(Ao(L,be),Mo(),O=Fn()?n(k):n(m),ye(O)){let j=L,rt=Fo(L,de,I);O(Q(rt,{revert(){Ao(j,de)}}))}}else if((ff()||ln())&&ye(n(d))&&!je){Ae=I.clientX,U=I.clientY;let O=Ln(Ae,U);if(O){let{allDay:de,date:j,resource:rt}=Gt(O)(Ae,U);n(d)({allDay:de,date:We(j),dateStr:ht(j),dayEl:O,jsEvent:I,view:Ze(n(a)),resource:rt})}}Lo()}je=!1}function Lo(){z=!1,R=Yt=sn=Ae=U=L=gt=Ne=Ht=Qe=mt=H=Be=Y=q=Pe=Ve=Ie=ge=nt=void 0,r.iClass=void 0,tt&&(clearTimeout(tt),tt=void 0)}function lf(){return Ln(_o(Ae,ge.left,ge.right),_o(U,ge.top,ge.bottom))}function rr(I){if(I){let O=Gt(I)(Ae,U);if(O.disabled){if(!n(ae).end||O.date<n(ae).end)return rr(I.nextElementSibling);if(!n(ae).start||O.date>n(ae).start)return rr(I.previousElementSibling)}else return(ln()||Fn())&&O.resource&&!be.resourceIds.includes(O.resource.id)&&!n(o).includes("timeline")?Ae>Yt?rr(I.previousElementSibling):rr(I.nextElementSibling):O}return null}function Po(){let I=rn(n(u)),O=rn(Ie),de=I.width/n(u).offsetWidth,j=I.height/n(u).offsetHeight,rt=pn();ge={left:ct(0,rt?I.right-n(u).clientWidth*de:O.left+n(u).scrollLeft*de),right:Nt(document.documentElement.clientWidth,rt?O.right+n(u).scrollLeft*de:I.left+n(u).clientWidth*de)-2,top:ct(0,O.top+(Ue?0:n(u).scrollTop)*j),bottom:Nt(document.documentElement.clientHeight,Ue?O.bottom:I.top+n(u).clientHeight*j)-2}}function af(I,O){ye(O)&&O({event:Je(L),jsEvent:I,view:Ze(n(a))}),gt=L.display,L.display="preview",be=hi(L),Ve!==void 0&&(be._margin=Ve),Be&&Te(be.end,Be),L.display="ghost",n(i).length=n(i).length}function uf(){be={id:"{select}",allDay:L.allDay,start:L.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(V),resourceIds:L.resourceIds,classNames:[],styles:[]}}function Mo(){be=void 0,n(s).delete("action")}function Sr(I,O){return I.start=O.start,I.end=O.end,I.resourceIds=O.resourceIds,{...I}}function Ao(I,O){Sr(I,O),n(i).length=n(i).length}function Oo(I){be=Sr(be,I),n(s).set("action",be)}function No(I,O){let{start:de,end:j}=Je(I);return{start:de,end:j,startStr:ht(I.start),endStr:ht(I.end),allDay:Y,view:Ze(n(a)),resource:Qe,jsEvent:O}}function Fo(I,O,de){let j;return Fn()?j=Rr()?{startDelta:H,endDelta:Oe(0)}:{startDelta:Oe(0),endDelta:H}:j={delta:H,oldResource:Qe!==mt?Qe:void 0,newResource:Qe!==mt?mt:void 0},Q(j,{event:Je(I),oldEvent:Je(O),view:Ze(n(a)),jsEvent:de}),j}function df(){return Math.sqrt(Math.pow(Ae-Yt,2)+Math.pow(U-sn,2))}function Fn(){return R===A||Rr()}function Rr(){return R===x}function ff(){return R===W}function ln(){return R===S}function wn(){return R&&R<W}function Ni(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Ir(I){Re&&(Re=!1,Mo(),ye(n(ce))&&n(ce)({jsEvent:I,view:Ze(n(a))}))}cn(()=>{n(a),Ir()});function cf(){je=!0}function hf(I){if(wn()){let O=I.target,de=[],j=()=>Ca(de);de.push(jn(O,"touchmove",Fi(()=>z))),de.push(jn(O,"touchend",j)),de.push(jn(O,"touchcancel",j))}}function Fi(I){return O=>{I()&&O.preventDefault()}}Jn(()=>jn(window,"touchmove",Da,{passive:!1}));var vf={draggable:on,drag:On,resize:Pi,select:Mi,noAction:Ai,handleScroll:Io,unselect:Ir,noClick:cf};ft("pointermove",xt,sf),ft("pointerup",xt,of),ft("pointercancel",xt,Lo),ft("scroll",xt,Io);var gf=l(()=>Fi(wn));ft("selectstart",xt,function(...I){n(gf)?.apply(this,I)});var mf=l(()=>Fi(()=>tt));return ft("contextmenu",xt,function(...I){n(mf)?.apply(this,I)}),ft("touchstart",xt,hf,void 0,!0),pe(vf)}function Xu(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).iEvents),s=l(()=>n(r).options.slotDuration),o=0,a=0,u;function d(){let y=Ln(o,a);if(y&&!n(i).has("action")){let{allDay:m,date:_,resource:E,disabled:T}=Gt(y)(o,a);if(!T){u||g(),u.allDay=m,u.start=_,u.end=Te(G(_),n(s)),u.resourceIds=E?[E.id]:[],n(i).set("pointer",{...u});return}}h()}function f(){d()}function c(y){v(y)&&(o=y.clientX,a=y.clientY,d())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(y){return y.isPrimary&&y.pointerType==="mouse"}var p={handleScroll:f};return ft("pointermove",xt,c),ft("scroll",xt,f),pe(p)}var Ku=J("<div></div>"),Zu=J("<div></div>"),Ju=J("<!> <!> <!>",1);function Qu(e,t){me(t,!0);let r=we(t,"forceDate",3,void 0),i=we(t,"forceMargin",3,void 0),s=l(()=>ee("state")),o=l(()=>n(s).interaction.action),a=l(()=>n(s).options.editable),u=l(()=>n(s).options.eventDurationEditable),d=l(()=>n(s).options.eventResizableFromStart),f=l(()=>n(s).options.theme),c=l(()=>ee("view-state")),g=l(()=>n(c).snap),h=l(()=>t.chunk.event),v=l(()=>t.chunk.event.display),p=l(()=>!vt(n(v))&&!_r(n(v))&&Uu(n(h),n(u),n(a)));function y(w){return b=>n(o).resize(n(h),b,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Ju(),_=ne(m);{var E=w=>{var b=Ku(),F=l(()=>y(!0));se(()=>N(b,1,`${n(f).resizer??""} ${n(f).start??""}`)),ze("pointerdown",b,function(...V){n(F)?.apply(this,V)}),P(w,b)};_e(_,w=>{n(p)&&n(d)&&w(E)})}var T=re(_,2);Bt(T,()=>t.children);var k=re(T,2);{var D=w=>{var b=Zu(),F=l(()=>y(!1));se(()=>N(b,1,n(f).resizer)),ze("pointerdown",b,function(...V){n(F)?.apply(this,V)}),P(w,b)};_e(k,w=>{n(p)&&w(D)})}P(e,m),pe()}tn(["pointerdown"]);var ju=J("<!> <!>",1);function $u(e,t){me(t,!0);let r=ee("state");new Yu(r);let i=l(()=>r.interaction),s=l(()=>r.options.pointer);n(i).resizer=Qu;var o=ju(),a=ne(o);ot(qu(a,{}),f=>n(i).action=f,()=>n(i)?.action);var u=re(a,2);{var d=f=>{ot(Xu(f,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};_e(u,f=>{n(s)&&f(d)})}P(e,o),pe()}const ed={createOptions(e){Q(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),Q(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push($u)}};let td=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){C(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){C(this.#n,t)}constructor(t){this.#e=l(_n(t,"listDayFormat")),this.#n=l(_n(t,"listDaySideFormat"))}};var nd=J("<div></div> <!>",1);function rd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).interaction),s=l(()=>n(r).options.theme),o=l(()=>a=>(delete a["background-color"],delete a.color,a));{const a=(d,f=Cn,c=Cn,g=Cn)=>{var h=nd(),v=ne(h);let p;var y=re(v,2);Bt(y,f),se(()=>{N(v,1,n(s).eventTag),p=It(v,"",p,{"background-color":c()})}),P(d,h)};let u=l(()=>n(i).action?.noAction);po(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:a,$$slots:{body:!0}})}pe()}var id=J("<h4><time></time> <time></time></h4> <!>",1);function sd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).filteredEvents),s=l(()=>n(r).options.highlightedDates),o=l(()=>n(r).options.theme),a=l(()=>n(r).options.validRange),u=l(()=>ee("view-state")),d=l(()=>n(u).intlListDay),f=l(()=>n(u).intlListDaySide),c=l(()=>n(s).some(_=>et(_,t.date))),g=l(()=>An(t.date,n(a))),h=l(()=>ht(t.date,10)),v=l(()=>{let _=[];if(!n(g)){let E=t.date,T=Ct(G(t.date));for(let k of n(i))if(!vt(k.display)&&Pn(k,E,T)){let D=$n(k,E,T);_.push(D)}}return _});var p=he(),y=ne(p);{var m=_=>{kr(_,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(E,T)=>{var k=id(),D=ne(k),w=ue(D);Le(w,()=>Ke(n(d).format(t.date)));var b=re(w,2);Le(b,()=>Ke(n(f).format(t.date)));var F=re(D,2);oe(F,17,()=>n(v),V=>V.event,(V,M)=>{rd(V,{get chunk(){return n(M)}})}),se(()=>{N(D,1,n(o).dayHead),Se(w,"datetime",n(h)),N(b,1,n(o).daySide),Se(b,"datetime",n(h))}),P(E,k)},$$slots:{default:!0}})};_e(y,_=>{n(v).length&&_(m)})}P(e,p),pe()}var od=J("<div></div>"),ld=J("<section><!></section>");function ad(e,t){me(t,!0);let r=ee("state"),i=new td(r);Wn("view-state",i);let s=l(()=>r.filteredEvents),o=l(()=>r.view),a=l(()=>r.viewDates),u=l(()=>r.options.noEventsClick),d=l(()=>r.options.noEventsContent),f=l(()=>r.options.theme),c=l(()=>{let _=!0;if(!kt(n(a))){let E=n(a)[0],T=Ct(G(n(a).at(-1)));for(let k of n(s))if(!vt(k.display)&&k.start<T&&k.end>E){_=!1;break}}return _}),g=l(()=>ye(n(d))?n(d)():n(d));function h(_){ye(n(u))&&n(u)({jsEvent:_,view:Ze(n(o))})}var v=ld(),p=ue(v);{var y=_=>{var E=od();Le(E,()=>Ke(n(g))),se(()=>N(E,1,n(f).noEvents)),ze("click",E,h),P(_,E)},m=_=>{var E=he(),T=ne(E);oe(T,17,()=>n(a),ke,(k,D)=>{sd(k,{get date(){return n(D)}})}),P(_,E)};_e(p,_=>{n(c)?_(y):_(m,-1)})}ot(v,_=>r.mainEl=_,()=>r?.mainEl),se(()=>N(v,1,n(f).main)),P(e,v),pe()}tn(["click"]);const ud={createOptions(e){Q(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),Q(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),Q(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),Q(e.views,{listDay:{buttonText:er,component:Tr,duration:{days:1},theme:lt("ec-list ec-day-view")},listWeek:{buttonText:tr,component:Tr,duration:{weeks:1},theme:lt("ec-list ec-week-view")},listMonth:{buttonText:mi,component:Tr,duration:{months:1},theme:lt("ec-list ec-month-view")},listYear:{buttonText:za,component:Tr,duration:{years:1},theme:lt("ec-list ec-year-view")}})}};function Tr(e){return e.features=["list"],ad}function ki(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:a,start:u,end:d,disabled:f}of t)if(!f&&Pn(e,u,d,a)){let c=$n(e,u,d);Q(c,{gridColumn:s,gridRow:o,resource:a,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(d-c.start)/1e3}),r&&gi(c),i.push(c)}return i}function dd(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function fd(e){let t="all-day",r;return e?(r=ye(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function Ci(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>mr){Te(In(r),i);let s=In(G(r));s<t&&(t=s)}return{start:t,end:r}}}function Di(e){"scrollTime"in e||(Q(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),Q(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function wo(e){"allDaySlot"in e||(Q(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),Q(e.theme,{allDay:"ec-all-day"}))}function Ei(e){"scrollTime"in e||Q(e,{scrollTime:Oe,slotDuration:Oe,slotLabelInterval:t=>t!==void 0?Oe(t):void 0,slotMaxTime:Oe,slotMinTime:Oe,snapDuration:t=>t!==void 0?Oe(t):void 0})}function bo(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function cd(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,a=[];return $(()=>{let u=1;for(let d of r)a.push({gridColumn:u,gridRow:1,resource:void 0,start:Te(G(d),o.min),end:Te(G(d),o.max),dayStart:d,dayEnd:Ct(G(d)),disabled:An(d,s),highlight:i.some(f=>et(f,d))}),++u}),[a]}}function hd(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],a=[],u=[];return $(()=>{for(let d of r)for(let f of i)vt(d.display)?(o=o.concat(ki(d,f)),d.allDay&&(u=u.concat(Mn(d,f)))):d.allDay?a=a.concat(Mn(d,f)):s=s.concat(ki(d,f));dd(s),eo(a)}),{chunks:s,bgChunks:o,allDayChunks:a,allDayBgChunks:u}}}function vd(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,a]of r)a&&$(()=>{for(let u of i)a.allDay?o=o.concat(Mn(a,u,!1)):s=s.concat(ki(a,u,!1))});return{iChunks:s,allDayIChunks:o}}}function gd(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,a;return $(()=>{a=uo(s,o,i,r,t)}),a}}function md(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return $(()=>{i=r===void 0?ve(t)<3600?2:1:_a(ve(r)/ve(t))||1}),i}}function pd(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,a;return $(()=>{a=ao(Lt(Ft()),r,s,o,i)}),a}}function yd(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:ve(r)/ve(t)}}}function Ti(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){C(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){C(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){C(this.#t,e,!0)}#s;get snap(){return n(this.#s)}set snap(e){C(this.#s,e)}constructor(e){this.#e=l(_n(e,"slotLabelFormat")),this.#n=l(md(e)),this.#t=B(0),this.#s=l(yd(e))}}}function ko(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){C(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){C(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){C(this.#t,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){C(this.#s,t)}#i;get allDayChunks(){return n(this.#i)}set allDayChunks(t){C(this.#i,t)}#r;get allDayBgChunks(){return n(this.#r)}set allDayBgChunks(t){C(this.#r,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){C(this.#o,t)}#l;get allDayIChunks(){return n(this.#l)}set allDayIChunks(t){C(this.#l,t)}constructor(t){super(t),this.#e=l(gd(t)),this.#n=l(pd(t,this));let r=l(hd(t,this)),i=l(()=>n(r).chunks),s=l(()=>n(r).bgChunks),o=l(()=>n(r).allDayChunks),a=l(()=>n(r).allDayBgChunks);this.#t=l(()=>n(i)),this.#s=l(()=>n(s)),this.#i=l(()=>n(o)),this.#r=l(()=>n(a));let u=l(vd(t,this)),d=l(()=>n(u).iChunks),f=l(()=>n(u).allDayIChunks);this.#o=l(()=>n(d)),this.#l=l(()=>n(f))}}}let _d=class extends ko(Ti()){#e;get grid(){return n(this.#e)}set grid(t){C(this.#e,t)}constructor(t){super(t),this.#e=l(cd(t,this))}};function wd(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,a=o?o(i):i;return $(()=>{s&&(a=i.filter(u=>r.some(d=>!vt(d.display)&&Pn(d,t.start,t.end,u)))),a.length||(a=pi([{}]))}),a}}function bd(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:a,viewResources:u}=t,d=[];return $(()=>{let f=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let p=i?g:v,y=i?v:g;h.push({gridColumn:f,gridRow:1,resource:y,start:Te(G(p),a.min),end:Te(G(p),a.max),dayStart:p,dayEnd:Ct(G(p)),disabled:An(p,o),highlight:s.some(m=>et(m,p))}),++f}d.push(h)}}),d}}function Co(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){C(this.#e,t)}constructor(t){super(t),this.#e=l(wd(t))}}}let kd=class extends Co(ko(Ti())){#e;get grid(){return n(this.#e)}set grid(t){C(this.#e,t)}constructor(t){super(t),this.#e=l(bd(t,this))}};var Cd=J("<span></span>");function xi(e,t){me(t,!0);let r=we(t,"date",3,void 0),i=we(t,"setLabel",3,void 0),s=l(()=>ee("state")),o=l(()=>n(s).intlDayHeaderAL),a=l(()=>n(s).options.resourceLabelContent),u=l(()=>n(s).options.resourceLabelDidMount),d=B(void 0),f=l(()=>n(a)?ye(n(a))?n(a)({resource:t.resource,date:r()?We(r()):void 0}):n(a):t.resource.title),c=B(void 0);Xe(()=>{n(f),$(()=>{r()?C(c,n(o).format(r())+", "+n(d).innerText):i()&&(C(c,void 0),i()(n(d).innerText))})}),Jn(()=>{ye(n(u))&&n(u)({resource:t.resource,date:r()?We(r()):void 0,el:n(d)})});var g=Cd();ot(g,h=>C(d,h),()=>n(d)),Le(g,()=>Ke(n(f))),se(()=>Se(g,"aria-label",n(c))),P(e,g),pe()}function Do(e,t){me(t,!0);let r=we(t,"allDay",3,!1),i=l(()=>ee("state")),s=l(()=>n(i).options.slotHeight),o=l(()=>ee("view-state")),a=l(()=>n(o).snap),u=l(()=>t.day.dayStart),d=l(()=>t.day.start),f=l(()=>t.day.resource),c=l(()=>t.day.disabled),g=l(()=>t.day.highlight),h=B(void 0);function v(p,y){if(r())return n(u);{let m=rn(n(h)),_=m.height/n(h).offsetHeight;return Te(G(n(d)),n(a).duration,li((y-m.top)/(n(s)*n(a).ratio*_)))}}kr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(f)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){C(h,p,!0)}}),pe()}function Si(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.slotEventOverlap),s=l(()=>n(r).options.slotDuration),o=l(()=>n(r).options.slotHeight),a=l(()=>u=>{let d=ve(n(s)),f=t.chunk.top/d*n(o),c=t.chunk.height/d*n(o)||n(o),g=t.chunk.maxHeight/d*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${f}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});Dr(e,{get chunk(){return t.chunk},get styles(){return n(a)},axis:"y"}),pe()}function Ri(e,t){me(t,!0);let r=B(void 0),i=B(0),s=l(()=>t.chunk.event),o=l(()=>d=>(d["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(d["margin-block-start"]=`${n(s)._margin??n(i)}px`),d));function a(){C(i,to(t.chunk,yn(n(r))),!0)}var u={reposition:a};return Dr(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(d){C(r,d,!0)}}),pe(u)}var Dd=J("<div></div>");function xr(e,t){me(t,!0);let r=we(t,"span",3,1),i=l(()=>ee("state")),s=l(()=>n(i).mainEl),o=l(()=>n(i).now),a=l(()=>n(i).today),u=l(()=>n(i).options.slotDuration),d=l(()=>n(i).options.slotHeight),f=l(()=>n(i).options.theme),c=l(()=>ee("view-state")),g=l(()=>n(c).sidebarWidth),h=l(()=>{for(let w of t.days)if(et(w.dayStart,n(a)))return w;return{}}),v=l(()=>n(h).gridColumn),p=l(()=>n(h).start),y=l(()=>n(h).end),m=l(()=>{if(n(o)<n(p)||n(o)>n(y))return null;let w=ve(n(u));return(n(o)-n(p))/1e3/w*n(d)}),_=l(()=>({root:n(s),rootMargin:pn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function E(w,b){w.classList.toggle(n(f).hidden,!b.isIntersecting)}var T=he(),k=ne(T);{var D=w=>{var b=Dd();let F;Le(b,()=>Vs(E,n(_))),se(()=>{N(b,1,n(f).nowIndicator),F=It(b,"",F,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),P(w,b)};_e(k,w=>{n(v)&&n(m)!==null&&w(D)})}P(e,T),pe()}var Ed=J('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Td=J("<div><time></time></div>"),xd=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 Eo(e,t){me(t,!0);let r=we(t,"viewState",7),i=ee("state");r()||r(new _d(i)),Wn("view-state",r());let s=l(()=>i.mainEl),o=l(()=>i.viewDates),a=l(()=>i.options.allDayContent),u=l(()=>i.options.allDaySlot),d=l(()=>i.options.columnWidth),f=l(()=>i.options.nowIndicator),c=l(()=>i.options.scrollTime),g=l(()=>i.options.slotHeight),h=l(()=>i.options.slotDuration),v=l(()=>i.options.theme),p=l(()=>r().allDayChunks),y=l(()=>r().allDayBgChunks),m=l(()=>r().allDayIChunks),_=l(()=>r().bgChunks),E=l(()=>r().chunks),T=l(()=>r().iChunks),k=l(()=>r().grid),D=l(()=>r().sidebarWidth),w=l(()=>r().slots),b=l(()=>r().slotLabelPeriodicity),F=l(()=>r().slotTimeLimits),V=B(0),M=l(()=>fd(n(a)));Xe(()=>{n(c),kt(n(o))||gn().then(Z)});function Z(){n(s).scrollTop=((ve(n(c))-ve(n(F).min))/ve(n(h))-.5)*n(g)}let ie=[];function ce(){vi(ie,n(p))}Xe(ce);var te=he(),X=ne(te);{var ae=A=>{var x=xd();let S;var W=ue(x),Ce=ue(W),R=re(Ce,2),z=ue(R);{var L=H=>{var Y=he(),xe=ne(Y);Bt(xe,()=>t.header),P(H,Y)},be=H=>{var Y=he(),xe=ne(Y);oe(xe,17,()=>n(k)[0],ke,(q,Pe,Re)=>{let je=()=>n(Pe).dayStart,tt=()=>n(Pe).disabled,ge=()=>n(Pe).highlight;nr(q,{get date(){return je()},colIndex:1+Re,get disabled(){return tt()},get highlight(){return ge()},children:(Ve,nt)=>{Cr(Ve,{get date(){return je()}})},$$slots:{default:!0}})}),P(H,Y)};_e(z,H=>{t.header?H(L):H(be,-1)})}var gt=re(R,2);{var Ne=H=>{var Y=Ed(),xe=ue(Y);Le(xe,()=>Ke(n(M)));var q=re(xe,2);oe(q,21,()=>n(k),ke,(ge,Ve,nt)=>{var Be=he(),on=ne(Be);oe(on,17,()=>n(Ve),ke,(On,Pi,Mi)=>{{let Ai=l(()=>nt+1===De(n(k))&&Mi+1===De(n(Ve)));Do(On,{get day(){return n(Pi)},allDay:!0,get noIeb(){return n(Ai)}})}}),P(ge,Be)});var Pe=re(q,2),Re=ue(Pe);oe(Re,19,()=>n(p),ge=>ge.id,(ge,Ve,nt)=>{ot(Ri(ge,{get chunk(){return n(Ve)}}),(Be,on)=>ie[on]=Be,Be=>ie?.[Be],()=>[n(nt)])});var je=re(Re,2);oe(je,17,()=>n(y),ge=>ge.id,(ge,Ve)=>{Ri(ge,{get chunk(){return n(Ve)}})});var tt=re(je,2);oe(tt,17,()=>n(m),ke,(ge,Ve)=>{Ri(ge,{get chunk(){return n(Ve)}})}),se(()=>{N(Y,1,n(v).allDay),N(xe,1,n(v).sidebar),N(q,1,n(v).grid),N(Pe,1,n(v).events)}),P(H,Y)};_e(gt,H=>{n(u)&&H(Ne)})}var Ht=re(W,2),Qe=ue(Ht);oe(Qe,21,()=>n(w),ke,(H,Y,xe)=>{var q=Td();let Pe;var Re=ue(q);Le(Re,()=>Ke(n(Y)[1])),se(()=>{N(q,1,Ot([n(v).slot,!xe&&n(v).hidden])),Pe=It(q,"",Pe,{"--ec-slot-label-periodicity":n(Y)[2]}),Se(Re,"datetime",n(Y)[0])}),P(H,q)});var mt=re(Qe,2);oe(mt,21,()=>n(k),ke,(H,Y,xe)=>{var q=he(),Pe=ne(q);oe(Pe,17,()=>n(Y),ke,(Re,je,tt)=>{{let ge=l(()=>xe+1===De(n(k))&&tt+1===De(n(Y)));Do(Re,{get day(){return n(je)},get noIeb(){return n(ge)},noBeb:!0})}}),P(H,q)});var Yt=re(mt,2),sn=ue(Yt);oe(sn,17,()=>n(E),H=>H.id,(H,Y)=>{Si(H,{get chunk(){return n(Y)}})});var Ae=re(sn,2);oe(Ae,17,()=>n(_),H=>H.id,(H,Y)=>{Si(H,{get chunk(){return n(Y)}})});var U=re(Ae,2);oe(U,17,()=>n(T),ke,(H,Y)=>{Si(H,{get chunk(){return n(Y)}})});var Ie=re(Ht,2);{var Ue=H=>{var Y=he(),xe=ne(Y);{var q=Re=>{var je=he(),tt=ne(je);Bt(tt,()=>t.nowIndicator),P(Re,je)},Pe=Re=>{xr(Re,{get days(){return n(k)[0]}})};_e(xe,Re=>{t.nowIndicator?Re(q):Re(Pe,-1)})}P(H,Y)};_e(Ie,H=>{n(f)&&H(Ue)})}ot(x,H=>i.mainEl=H,()=>i?.mainEl),Le(x,()=>si(ce)),se(H=>{N(x,1,n(v).main),S=It(x,"",S,H),N(W,1,n(v).header),N(Ce,1,n(v).sidebar),N(R,1,n(v).grid),N(Ht,1,n(v).body),N(Qe,1,n(v).sidebar),N(mt,1,n(v).grid),N(Yt,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(k))*De(n(k)[0]),"--ec-col-group-span":De(n(k)[0]),"--ec-col-width":n(d)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(b),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(V)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`})]),vr(Ce,"offsetWidth",H=>r().sidebarWidth=H),vr(W,"offsetHeight",H=>C(V,H)),P(A,x)},K=l(()=>!kt(n(k))&&!kt(n(k)[0]));_e(X,A=>{n(K)&&A(ae)})}P(e,te),pe()}var Sd=J("<!> <!>",1);function Rd(e,t){me(t,!0);let r=ee("state"),i=new kd(r),s=l(()=>r.today),o=l(()=>r.mainEl),a=l(()=>r.viewDates),u=l(()=>r.options.scrollTime),d=l(()=>r.options.datesAboveResources),f=l(()=>r.options.theme),c=l(()=>i.grid),g=l(()=>i.sidebarWidth),h=qe([]);Xe(()=>{n(d)&&(n(a),n(u),gn().then(v))});function v(){if(n(s)>=n(a)[0]&&n(s)<=n(a).at(-1))for(let p of n(c)){let y=p[0];if(et(y.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(De(n(c))*De(p))*(y.gridColumn-1)*(pn()?-1:1);break}}}Eo(e,{get viewState(){return i},header:m=>{var _=Sd(),E=ne(_);oe(E,17,()=>n(c),ke,(w,b,F)=>{const V=l(()=>{const{dayStart:M,resource:Z,disabled:ie,highlight:ce}=n(b)[0];return{date:M,resource:Z,disabled:ie,highlight:ce}});{let M=l(()=>De(n(c)[0])>1?n(f).colGroup:void 0),Z=l(()=>De(n(b))),ie=l(()=>1+F*De(n(b))),ce=l(()=>n(d)&&n(V).disabled),te=l(()=>n(d)&&n(V).highlight);nr(w,{get date(){return n(V).date},get className(){return n(M)},get weekday(){return n(d)},get colSpan(){return n(Z)},get colIndex(){return n(ie)},get disabled(){return n(ce)},get highlight(){return n(te)},children:(X,ae)=>{var K=he(),A=ne(K);{var x=W=>{Cr(W,{get date(){return n(V).date}})},S=W=>{xi(W,{get resource(){return n(V).resource},setLabel:Ce=>h[F]=Ce+", "})};_e(A,W=>{n(d)?W(x):W(S,-1)})}P(X,K)},$$slots:{default:!0}})}});var T=re(E,2);{var k=w=>{var b=he(),F=ne(b);oe(F,17,()=>n(c),ke,(V,M,Z)=>{var ie=he(),ce=ne(ie);oe(ce,17,()=>n(M),ke,(te,X,ae)=>{const K=l(()=>{const{dayStart:A,resource:x,disabled:S,highlight:W}=n(X);return{date:A,resource:x,disabled:S,highlight:W}});{let A=l(()=>1+ae+Z*De(n(M)));nr(te,{get date(){return n(K).date},get colIndex(){return n(A)},get disabled(){return n(K).disabled},get highlight(){return n(K).highlight},children:(x,S)=>{var W=he(),Ce=ne(W);{var R=L=>{xi(L,{get resource(){return n(K).resource},get date(){return n(K).date}})},z=L=>{Cr(L,{get date(){return n(K).date},get alPrefix(){return h[Z]}})};_e(Ce,L=>{n(d)?L(R):L(z,-1)})}P(x,W)},$$slots:{default:!0}})}}),P(V,ie)}),P(w,b)},D=l(()=>De(n(c)[0])>1);_e(T,w=>{n(D)&&w(k)})}P(m,_)},nowIndicator:m=>{var _=he(),E=ne(_);{var T=D=>{{let w=l(()=>n(c).flat()),b=l(()=>De(n(c)[0]));xr(D,{get days(){return n(w)},get span(){return n(b)}})}},k=D=>{var w=he(),b=ne(w);{var F=Z=>{var ie=he(),ce=ne(ie);oe(ce,17,()=>n(c),ke,(te,X)=>{xr(te,{get days(){return n(X)}})}),P(Z,ie)},V=l(()=>De(n(c)[0])>1),M=Z=>{{let ie=l(()=>n(c).flat()),ce=l(()=>De(n(c)));xr(Z,{get days(){return n(ie)},get span(){return n(ce)}})}};_e(b,Z=>{n(V)?Z(F):Z(M,-1)})}P(D,w)};_e(E,D=>{n(d)?D(T):D(k,-1)})}P(m,_)},$$slots:{header:!0,nowIndicator:!0}}),pe()}const Id={createOptions(e){wo(e),Di(e),bo(e),Q(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),Q(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),Q(e.theme,{colGroup:"ec-col-group"}),Q(e.views,{resourceTimeGridDay:{buttonText:er,component:To,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:lt("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:tr,component:To,duration:{weeks:1},theme:lt("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){Ei(e)}};function To(e){return Ci(e),Rd}function Ii(e,t,r,i=!0){let s=[],o,a,u,d,f,c,g=0;for(let{gridColumn:h,gridRow:v,resource:p,dayStart:y,dayEnd:m,start:_,end:E,disabled:T}of t)T||(r?Pn(e,y,m,p)&&(s.length||(o=y,u=h,d=v,f=p),s.push(y),a=E):Pn(e,_,E,p)&&(s.length||(o=_,u=h,d=v,f=p,c=ct(e.start-_,0)/1e3),s.push(y),a=E,g+=(Nt(E,e.end)-ct(_,e.start))/1e3));if(s.length){let h=$n(e,o,a);return Q(h,{gridColumn:u,gridRow:d,resource:f,dates:s,left:c,width:g}),i&&gi(h),[h]}return[]}function Ld(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let a=0;a<r.dates.length;++a){let u=`${s}_${i+a}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function Pd(e,t,r){let i=1,s=i+t,o=e.day;o.sort((a,u)=>(a.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let a of o)if(!(a===e||!("top"in a))&&(r||e.start<a.end&&e.end>a.start)&&i<a.bottom&&s>a.top){let u=a.bottom-i+1;i+=u,s+=u}return Q(e,{top:i,bottom:s}),i}function Md(e,t){return e[t.getTime()]??{min:Oe(0),max:Oe("24:00:00")}}function Ad(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:a}=t,u=[];return $(()=>{let d=1;for(let f of a){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:d,resource:f,start:Te(G(h),v.min),end:Te(G(h),v.max),dayStart:h,dayEnd:Ct(G(h)),disabled:An(h,s),highlight:i.some(p=>et(p,h))}),++g}u.push(c),++d}}),u}}function Od(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],a=[];return $(()=>{for(let u of r)for(let d of i)vt(u.display)?(!s||u.allDay)&&(a=a.concat(Ii(u,d,s))):o=o.concat(Ii(u,d,s));Ld(o)}),{chunks:o,bgChunks:a}}}function Nd(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,a]of r)a&&$(()=>{for(let u of i)o=o.concat(Ii(a,u,s,!1))});return o}}function Fd(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,a={};return $(()=>{for(let u of r)a[u.getTime()]=uo(s,o,i,[u],t)}),a}}function Hd(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:a}=t,u={};return $(()=>{for(let d of r){let f=d.getTime();u[f]=f in s?ao(d,i,a,s[f],o):[]}}),u}}function zd(e){return()=>{let{resources:t}=e,r;return $(()=>{r=t.some(i=>Gt(i).children.length)}),r}}function Wd(e){return()=>{let{options:{slotDuration:t}}=e,r;return $(()=>{r=!ve(t)}),r}}class Ud extends Co(Ti()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){C(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){C(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){C(this.#t,t)}#s;get monthView(){return n(this.#s)}set monthView(t){C(this.#s,t)}#i;get chunks(){return n(this.#i)}set chunks(t){C(this.#i,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){C(this.#r,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){C(this.#o,t)}#l;get nestedResources(){return n(this.#l)}set nestedResources(t){C(this.#l,t)}constructor(t){super(t),this.#e=l(Fd(t)),this.#n=l(Hd(t,this)),this.#t=l(Ad(t,this)),this.#s=l(Wd(t));let r=l(Od(t,this)),i=l(()=>n(r).chunks),s=l(()=>n(r).bgChunks);this.#i=l(()=>n(i)),this.#r=l(()=>n(s)),this.#o=l(Nd(t,this)),this.#l=l(zd(t))}}function Vd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.slotWidth),s=l(()=>ee("view-state")),o=l(()=>n(s).monthView),a=l(()=>n(s).snap),u=l(()=>t.day.dayStart),d=l(()=>t.day.start),f=l(()=>t.day.resource),c=l(()=>t.day.disabled),g=l(()=>t.day.highlight),h=B(void 0);function v(p,y){if(n(o))return n(u);{let m=rn(n(h)),_=m.width/n(h).offsetWidth;return Te(G(n(d)),n(a).duration,li((pn()?m.right-p:p-m.left)/(n(i)*n(a).ratio*_)))}}kr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(f)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){C(h,p,!0)}}),pe()}function Li(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.slotDuration),s=l(()=>n(r).options.slotWidth),o=l(()=>ee("view-state")),a=l(()=>n(o).monthView),u=B(void 0),d=B(1),f=l(()=>t.chunk.event),c=l(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(a)){let y=t.chunk.left/ve(n(i))*n(s);v["inset-inline-start"]=`${y}px`,v["inline-size"]=`${t.chunk.width/ve(n(i))*n(s)}px`}let p=n(d);if(n(f)._margin){let[y,m]=n(f)._margin;t.chunk.gridRow===m&&(p=y)}return v["margin-block-start"]=`${p}px`,v});function g(){C(d,Pd(t.chunk,yn(n(u)),n(a)),!0)}var h={reposition:g};{let v=l(()=>[n(d),t.chunk.gridRow]);Dr(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(p){C(u,p,!0)}})}return pe(h)}var Bd=J("<span></span>"),Gd=J("<button></button>"),Yd=J("<!> <span><!></span>",1);function qd(e,t){me(t,!0);let r=we(t,"resource",7),i=l(()=>ee("state")),s=l(()=>n(i).resources),o=l(()=>n(i).view),a=l(()=>n(i).options.buttonText),u=l(()=>n(i).options.icons),d=l(()=>n(i).options.resourceExpand),f=l(()=>n(i).options.theme),c=B({}),g=l(()=>r().expanded),h=l(()=>n(a)[n(g)?"collapse":"expand"]);cn(()=>{C(c,Gt(r()))});function v(k){r().expanded=C(g,!n(g)),p(n(c).children),n(s).length=n(s).length,ye(n(d))&&n(d)({resource:r(),jsEvent:k,view:Ze(n(o))})}function p(k){for(let D of k){let w=Gt(D);w.hidden=!n(g),D.expanded&&p(w.children)}}var y=Yd(),m=ne(y);oe(m,17,()=>Array(n(c).level),ke,(k,D)=>{var w=Bd();se(()=>N(w,1,n(f).expander)),P(k,w)});var _=re(m,2),E=ue(_);{var T=k=>{var D=Gd();Le(D,()=>Ke(n(u)[n(g)?"collapse":"expand"])),se(()=>{N(D,1,n(f).button),Se(D,"aria-label",n(h)),Se(D,"title",n(h))}),ze("click",D,v),P(k,D)};_e(E,k=>{n(c).children?.length&&k(T)})}se(()=>N(_,1,n(f).expander)),P(e,y),pe()}tn(["click"]);var Xd=J("<div></div>");function Kd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).mainEl),s=l(()=>n(r).now),o=l(()=>n(r).today),a=l(()=>n(r).options.slotDuration),u=l(()=>n(r).options.slotWidth),d=l(()=>n(r).options.theme),f=l(()=>ee("view-state")),c=l(()=>n(f).grid),g=l(()=>n(f).sidebarWidth),h=l(()=>{for(let w of n(c)[0])if(et(w.dayStart,n(o)))return w;return{}}),v=l(()=>n(h).gridColumn),p=l(()=>n(h).start),y=l(()=>n(h).end),m=l(()=>{if(n(s)<n(p)||n(s)>n(y))return null;let w=ve(n(a));return(n(s)-n(p))/1e3/w*n(u)}),_=l(()=>({root:n(i),rootMargin:pn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function E(w,b){w.classList.toggle(n(d).hidden,!b.isIntersecting)}var T=he(),k=ne(T);{var D=w=>{var b=Xd();let F;Le(b,()=>Vs(E,n(_))),se(()=>{N(b,1,n(d).nowIndicator),F=It(b,"",F,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),P(w,b)};_e(k,w=>{n(v)&&n(m)!==null&&w(D)})}P(e,T),pe()}var Zd=J("<div><time></time></div>"),Jd=J('<div role="rowheader"><!> <!></div>'),Qd=J('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function jd(e,t){me(t,!0);let r=ee("state"),i=new Ud(r);Wn("view-state",i);let s=l(()=>r.mainEl),o=l(()=>r.today),a=l(()=>r.viewDates),u=l(()=>r.options.columnWidth),d=l(()=>r.options.nowIndicator),f=l(()=>r.options.scrollTime),c=l(()=>r.options.slotDuration),g=l(()=>r.options.slotHeight),h=l(()=>r.options.slotWidth),v=l(()=>r.options.theme),p=l(()=>i.chunks),y=l(()=>i.bgChunks),m=l(()=>i.iChunks),_=l(()=>i.daySlots),E=l(()=>i.dayTimeLimits),T=l(()=>i.grid),k=l(()=>i.monthView),D=l(()=>i.nestedResources),w=l(()=>i.sidebarWidth),b=l(()=>i.slotLabelPeriodicity),F=l(()=>i.viewResources),V=B(0);Xe(()=>{n(f),kt(n(a))||gn().then(M)});function M(){let K=0,A=n(o)<n(a)[0]||n(o)>n(a).at(-1);if(n(k)){if(!A){let x=n(T)[0];for(let S of x)if(et(S.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/De(x)*(S.gridColumn-1)*(pn()?-1:1);break}}}else{for(let x of n(a)){let S=Md(n(E),x);if(A||et(x,n(o))){K+=ct(Nt(ve(n(f)),ve(S.max))-ve(S.min),0);break}else K+=ve(S.max)-ve(S.min)}n(s).scrollLeft=K/ve(n(c))*n(h)*(pn()?-1:1)}}let Z=[];function ie(){vi(Z,n(p))}Xe(ie);var ce=he(),te=ne(ce);{var X=K=>{var A=Qd();let x;var S=ue(A),W=ue(S),Ce=re(W,2),R=ue(Ce);oe(R,17,()=>n(T)[0],ke,(U,Ie,Ue)=>{let H=()=>n(Ie).dayStart,Y=()=>n(Ie).disabled,xe=()=>n(Ie).highlight;nr(U,{get date(){return H()},colIndex:1+Ue,get disabled(){return Y()},get highlight(){return xe()},children:(q,Pe)=>{Cr(q,{get date(){return H()}})},$$slots:{default:!0}})});var z=re(R,2);{var L=U=>{var Ie=he(),Ue=ne(Ie);oe(Ue,17,()=>n(T)[0],ke,(H,Y)=>{let xe=()=>n(Y).dayStart,q=()=>n(Y).disabled,Pe=()=>n(Y).highlight;nr(H,{get date(){return xe()},get className(){return n(v).slots},get disabled(){return q()},get highlight(){return Pe()},ariaHidden:!0,children:(Re,je)=>{var tt=he(),ge=ne(tt);oe(ge,17,()=>n(_)[xe().getTime()],ke,(Ve,nt)=>{var Be=Zd();let on;var On=ue(Be);Le(On,()=>Ke(n(nt)[1])),se(()=>{N(Be,1,n(v).slot),on=It(Be,"",on,{"--ec-slot-label-periodicity":n(nt)[2]}),Se(On,"datetime",n(nt)[0])}),P(Ve,Be)}),P(Re,tt)},$$slots:{default:!0}})}),P(U,Ie)};_e(z,U=>{n(k)||U(L)})}var be=re(S,2),gt=ue(be);oe(gt,21,()=>n(F),ke,(U,Ie)=>{var Ue=Jd(),H=ue(Ue);{var Y=q=>{qd(q,{get resource(){return n(Ie)}})};_e(H,q=>{n(D)&&q(Y)})}var xe=re(H,2);xi(xe,{get resource(){return n(Ie)}}),se(()=>N(Ue,1,n(v).rowHead)),P(U,Ue)});var Ne=re(gt,2);oe(Ne,21,()=>n(T),ke,(U,Ie,Ue)=>{var H=he(),Y=ne(H);oe(Y,17,()=>n(Ie),ke,(xe,q,Pe)=>{{let Re=l(()=>Pe+1===De(n(Ie))),je=l(()=>Ue+1===De(n(T)));Vd(xe,{get day(){return n(q)},get noIeb(){return n(Re)},get noBeb(){return n(je)}})}}),P(U,H)});var Ht=re(Ne,2),Qe=ue(Ht);oe(Qe,19,()=>n(p),U=>U.id,(U,Ie,Ue)=>{ot(Li(U,{get chunk(){return n(Ie)}}),(H,Y)=>Z[Y]=H,H=>Z?.[H],()=>[n(Ue)])});var mt=re(Qe,2);oe(mt,17,()=>n(y),U=>U.id,(U,Ie)=>{Li(U,{get chunk(){return n(Ie)}})});var Yt=re(mt,2);oe(Yt,17,()=>n(m),ke,(U,Ie)=>{Li(U,{get chunk(){return n(Ie)}})});var sn=re(be,2);{var Ae=U=>{Kd(U,{})};_e(sn,U=>{n(d)&&!n(k)&&U(Ae)})}ot(A,U=>r.mainEl=U,()=>r?.mainEl),Le(A,()=>si(ie)),se(U=>{N(A,1,n(v).main),x=It(A,"",x,U),N(S,1,n(v).header),N(W,1,n(v).sidebar),N(Ce,1,n(v).grid),N(be,1,n(v).body),N(gt,1,n(v).sidebar),N(Ne,1,n(v).grid),N(Ht,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(T)[0]),"--ec-grid-rows":`${De(n(T))>1?`repeat(${De(n(T))-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(b),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(V)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),vr(W,"offsetWidth",U=>i.sidebarWidth=U),vr(S,"offsetHeight",U=>C(V,U)),P(K,A)},ae=l(()=>!kt(n(T))&&!kt(n(T)[0]));_e(te,K=>{n(ae)&&K(X)})}P(e,ce),pe()}const $d={createOptions(e){Di(e),bo(e),Q(e,{resourceExpand:void 0,slotWidth:32,view:"resourceTimelineWeek"}),Q(e.buttonText,{expand:"Expand",collapse:"Collapse",resourceTimelineDay:"timeline",resourceTimelineWeek:"timeline",resourceTimelineMonth:"timeline"}),Q(e.icons,{collapse:{html:"−"},expand:{html:"+"}}),Q(e.theme,{expander:"ec-expander",rowHead:"ec-row-head",slots:"ec-slots"}),Q(e.views,{resourceTimelineDay:{buttonText:er,component:xo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:lt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},resourceTimelineWeek:{buttonText:tr,component:xo,displayEventEnd:!1,duration:{weeks:1},theme:lt("ec-resource ec-timeline ec-week-view")},resourceTimelineMonth:{buttonText:mi,component:So,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:lt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})},createParsers(e){Ei(e)}};function xo(e){return Ci(e),So(e)}function So(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Gt(r).hidden),jd}const ef={createOptions(e){Di(e),wo(e),Q(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),Q(e,{view:"timeGridWeek"}),Q(e.views,{timeGridDay:{buttonText:er,component:Ro,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:lt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:tr,component:Ro,duration:{weeks:1},theme:lt("ec-time-grid ec-week-view")}})},createParsers(e){Ei(e)}};function Ro(e){return Ci(e),Eo}function tf(e,t,r){return ta(_u,{target:e,props:{plugins:t,options:r}})}function nf(e){return ra(e)}function rf(e,t){return tf(e,[zu,ed,ud,Id,$d,ef],t)}return sr.create=rf,sr.destroy=nf,Object.defineProperty(sr,Symbol.toStringTag,{value:"Module"}),sr})({});
|
|
6
|
-
//# sourceMappingURL=event-calendar.min.js.map
|
|
5
|
+
var EventCalendar=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,l=Array.prototype,u=Object.getPrototypeOf,d=Object.isExtensible,f=()=>{};function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function h(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var g=1<<24,_=1024,v=2048,y=4096,b=8192,x=16384,S=32768,ee=1<<25,te=65536,ne=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`legacy props`),de=Symbol(``),C=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},w=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function fe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function pe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function he(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ge(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function _e(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ve(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ye(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function be(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function xe(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Te(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ee={},De=Symbol(),Oe=`http://www.w3.org/1999/xhtml`;function ke(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ae(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function je(e){T=e}var E;function Me(e){if(e===null)throw ke(),Ee;return E=e}function Ne(){return Me(ln(E))}function D(e){if(T){if(ln(E)!==null)throw ke(),Ee;E=e}}function Pe(e=1){if(T){for(var t=e,n=E;t--;)n=ln(n);E=n}}function Fe(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ln(n);e&&n.remove(),n=i}}function Ie(e){if(!e||e.nodeType!==8)throw ke(),Ee;return e.data}function Le(e){return e===this.v}function Re(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function ze(e){return!Re(e,this.v)}var Be=!1,Ve=!1,He=null;function Ue(e){He=e}function O(e){return Ke(`getContext`).get(e)}function We(e,t){let n=Ke(`setContext`);if(Be){var r=z.f;!R&&r&32&&!He.i||xe()}return n.set(e,t),t}function k(e,t=!1,n){He={p:He,i:!1,c:null,e:null,s:e,x:null,r:z,l:Ve&&!t?{s:null,u:null,$:[]}:null}}function A(e){var t=He,n=t.e;if(n!==null){t.e=null;for(var r of n)Sn(r)}return e!==void 0&&(t.x=e),t.i=!0,He=t.p,e??{}}function Ge(){return!Ve||He!==null&&He.l===null}function Ke(e){return He===null&&fe(e),He.c??=new Map(qe(He)||void 0)}function qe(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Je=[];function Ye(){var e=Je;Je=[],p(e)}function Xe(e){if(Je.length===0&&!ft){var t=Je;queueMicrotask(()=>{t===Je&&Ye()})}Je.push(e)}function Ze(){for(;Je.length>0;)Ye()}function Qe(e){var t=z;if(t===null)return R.f|=ce,e;if(!(t.f&32768)&&!(t.f&4))throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var et=~(v|y|_);function tt(e,t){e.f=e.f&et|t}function nt(e){e.f&512||e.deps===null?tt(e,_):tt(e,y)}function rt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ae,rt(t.deps))}function it(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),rt(e.deps),tt(e,_)}var at=!1,ot=!1;function st(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}var ct=new Set,lt=null,ut=null,dt=null,ft=!1,pt=!1,mt=null,ht=null,gt=0,_t=1,vt=class e{id=_t++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)tt(n,v),this.schedule(n);for(n of t.m)tt(n,y),this.schedule(n)}}#d(){if(gt++>1e3&&(ct.delete(this),bt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),tt(e,v),this.schedule(e);for(let e of this.#s)tt(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=mt=[],r=[],i=ht=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw Dt(e),t}if(lt=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(mt=null,ht=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Et(e,t)}else{this.#n===0&&ct.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),St(r),St(n),this.#i?.resolve()}var o=lt;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(ct.add(o),o.#d()),ct.has(this)||this.#m()}#f(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):Be&&i&16777224?n.push(r):or(r)&&(i&16&&this.#s.add(r),dr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)it(e[t],this.#o,this.#s)}capture(e,t){t!==De&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),ut?.set(e,e.v))}activate(){lt=this}deactivate(){lt=null,ut=null}flush(){try{pt=!0,lt=this,this.#d()}finally{gt=0,dt=null,mt=null,ht=null,pt=!1,lt=null,ut=null,Kt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),ct.delete(this)}#m(){for(let s of ct){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Ct(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,Xe(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(lt===null){let t=lt=new e;pt||(ct.add(lt),ft||Xe(()=>{lt===t&&t.flush()}))}return lt}apply(){if(!Be||!this.is_fork&&ct.size===1){ut=null;return}ut=new Map(this.current);for(let e of ct)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)ut.has(t)||ut.set(t,n)}schedule(e){if(dt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(mt!==null&&t===z&&(Be||(R===null||!(R.f&2))&&!at))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function yt(e){var t=ft;ft=!0;try{var n;for(e&&(lt!==null&&!lt.is_fork&<.flush(),n=e());;){if(Ze(),lt===null)return n;lt.flush()}}finally{ft=t}}function bt(){try{ve()}catch(e){$e(e,dt)}}var xt=null;function St(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&or(r)&&(xt=new Set,dr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&In(r),xt?.size>0)){Kt.clear();for(let e of xt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)xt.has(n)&&(xt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||dr(n)}}xt.clear()}}xt=null}}function Ct(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Ct(i,t,n,r):e&4194320&&!(e&2048)&&wt(i,t,r)&&(tt(i,v),Tt(i))}}function wt(e,t,n){let i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(r.call(t,i))return!0;if(i.f&2&&wt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Tt(e){lt.schedule(e)}function Et(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),tt(e,_);for(var n=e.first;n!==null;)Et(n,t),n=n.next}}function Dt(e){tt(e,_);for(var t=e.first;t!==null;)Dt(t),t=t.next}function Ot(e){let t=0,n=Jt(0),r;return()=>{yn()&&(B(n),Dn(()=>(t===0&&(r=V(()=>e(()=>Qt(n)))),t+=1,()=>{Xe(()=>{--t,t===0&&(r?.(),r=void 0,Qt(n))})})))}}var kt=te|ne;function At(e,t,n,r){new jt(e,t,n,r)}var jt=class{parent;is_pending=!1;transform_error;#e;#t=T?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Ot(()=>(this.#m=Jt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=z;t.b=this,t.f|=128,n(e)},this.parent=z.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=On(()=>{if(T){let e=this.#t;Ne();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},kt),T&&(this.#e=E)}#g(){try{this.#a=An(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=An(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=An(()=>e(this.#e)),Xe(()=>{var e=this.#c=document.createDocumentFragment(),t=sn();e.append(t),this.#a=this.#x(()=>An(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Ln(this.#o,()=>{this.#o=null}),this.#b(lt))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=An(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Vn(this.#a,e);let t=this.#n.pending;this.#o=An(()=>t(this.#e))}else this.#b(lt)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){it(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=z,n=R,r=He;Jn(this.#i),qn(this.#i),Ue(this.#i.ctx);try{return vt.ensure(),e()}catch(e){return Qe(e),null}finally{Jn(t),qn(n),Ue(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Ln(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Xe(()=>{this.#d=!1,this.#m&&Xt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),B(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(Pn(this.#a),null),this.#o&&=(Pn(this.#o),null),this.#s&&=(Pn(this.#s),null),T&&(Me(this.#t),Pe(),Me(Fe()));var r=!1,i=!1;let a=()=>{if(r){Ae();return}r=!0,i&&Te(),this.#s!==null&&Ln(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){$e(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return An(()=>{var t=z;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return $e(e,this.#i.parent),null}}))};Xe(()=>{var t;try{t=this.transform_error(e)}catch(e){$e(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>$e(e,this.#i&&this.#i.parent)):o(t)})}};function Mt(e,t,n,r){let i=Ge()?It:Rt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=z,s=Nt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||$e(e,o)}Pt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ft();function d(){Promise.all(n.map(e=>Lt(e))).then(e=>l([...t.map(i),...e])).catch(e=>$e(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Pt()}):d()}function Nt(){var e=z,t=R,n=He,r=lt;return function(i=!0){Jn(e),qn(t),Ue(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Pt(e=!0){Jn(null),qn(null),Ue(null),e&<?.deactivate()}function Ft(){var e=z.b,t=lt,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function It(e){var t=2|v,n=R!==null&&R.f&2?R:null;return z!==null&&(z.f|=ne),{ctx:He,deps:null,effects:null,equals:Le,f:t,fn:e,reactions:null,rv:0,v:De,wv:0,parent:n??z,ac:null}}function Lt(e,t,n){let r=z;r===null&&pe();var i=void 0,a=Jt(De),o=!R,s=new Map;return En(()=>{var t=z,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Pt)}catch(e){n.reject(e),Pt()}var c=lt;if(o){if(t.f&32768)var l=Ft();if(r.b.is_rendered())s.get(c)?.reject(C),s.delete(c);else{for(let e of s.values())e.reject(C);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===C),!(n===C||t.f&16384)){if(c.activate(),n)a.f|=ce,Xt(a,n);else{a.f&8388608&&(a.f^=ce),Xt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(C)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),bn(()=>{for(let e of s.values())e.reject(C)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=It(e);return Be||Xn(t),t}function Rt(e){let t=It(e);return t.equals=ze,t}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Pn(t[n])}}function Bt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Vt(e){var t,n=z;Jn(Bt(e));try{e.f&=~ae,zt(e),t=cr(e)}finally{Jn(n)}return t}function Ht(e){var t=e.v,n=Vt(e);if(!e.equals(n)&&(e.wv=ar(),(!lt?.is_fork||e.deps===null)&&(e.v=n,lt?.capture(e,t),e.deps===null))){tt(e,_);return}Wn||(ut===null?nt(e):(yn()||lt?.is_fork)&&ut.set(e,n))}function Ut(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(C),t.teardown=f,t.ac=null,ur(t,0),Mn(t))}function Wt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&dr(t)}var Gt=new Set,Kt=new Map,qt=!1;function Jt(e,t){return{f:0,v:e,reactions:null,equals:Le,rv:0,wv:0}}function M(e,t){let n=Jt(e,t);return Xn(n),n}function Yt(e,t=!1,n=!0){let r=Jt(e);return t||(r.equals=ze),Ve&&n&&He!==null&&He.l!==null&&(He.l.s??=[]).push(r),r}function N(e,t,n=!1){return R!==null&&(!Kn||R.f&131072)&&Ge()&&R.f&4325394&&(Yn===null||!r.call(Yn,e))&&we(),Xt(e,n?en(t):t,ht)}function Xt(e,t,n=null){if(!e.equals(t)){var r=e.v;Wn?Kt.set(e,t):Kt.set(e,r),e.v=t;var i=vt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Vt(t),ut===null&&nt(t)}e.wv=ar(),$t(e,v,n),Ge()&&z!==null&&z.f&1024&&!(z.f&96)&&($n===null?er([e]):$n.push(e)),!i.is_fork&&Gt.size>0&&!qt&&Zt()}return t}function Zt(){qt=!1;for(let e of Gt)e.f&1024&&tt(e,y),or(e)&&dr(e);Gt.clear()}function Qt(e){N(e,e.v+1)}function $t(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ge(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===z)){var l=(c&v)===0;if(l&&tt(s,t),c&2){var u=s;ut?.delete(u),c&65536||(c&512&&(s.f|=ae),$t(u,y,n))}else if(l){var d=s;c&16&&xt!==null&&xt.add(d),n===null?Tt(d):n.push(d)}}}}function en(e){if(typeof e!=`object`||!e||le in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=M(0),s=null,d=rr,f=e=>{if(rr===d)return e();var t=R,n=rr;qn(null),ir(d);var r=e();return qn(t),ir(n),r};return i&&r.set(`length`,M(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Se();var i=r.get(t);return i===void 0?f(()=>{var e=M(n.value,s);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>M(De,s));r.set(t,e),Qt(a)}}else N(n,De),Qt(a);return!0},get(t,n,i){if(n===le)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>M(en(c?t[n]:De),s)),r.set(n,a)),a!==void 0){var l=B(a);return l===De?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=B(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==De)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===le)return!0;var n=r.get(t),i=n!==void 0&&n.v!==De||Reflect.has(e,t);return(n!==void 0||z!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>M(i?en(e[t]):De,s)),r.set(t,n)),B(n)===De)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>M(De,s)),r.set(d+``,p)):N(p,De)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>M(void 0,s)),N(l,en(n)),r.set(t,l));else{u=l.v!==De;var m=f(()=>en(n));N(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&N(g,_+1)}Qt(a)}return!0},ownKeys(e){B(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==De});for(var[n,i]of r)i.v!==De&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Ce()}})}var tn,nn,rn,an;function on(){if(tn===void 0){tn=window,nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=o(t,`firstChild`).get,an=o(t,`nextSibling`).get,d(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),d(n)&&(n.__t=void 0)}}function sn(e=``){return document.createTextNode(e)}function cn(e){return rn.call(e)}function ln(e){return an.call(e)}function P(e,t){if(!T)return cn(e);var n=cn(E);if(n===null)n=E.appendChild(sn());else if(t&&n.nodeType!==3){var r=sn();return n?.before(r),Me(r),r}return t&&pn(n),Me(n),n}function F(e,t=!1){if(!T){var n=cn(e);return n instanceof Comment&&n.data===``?ln(n):n}if(t){if(E?.nodeType!==3){var r=sn();return E?.before(r),Me(r),r}pn(E)}return E}function I(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=ln(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=sn();return r===null?i?.after(a):r.before(a),Me(a),a}pn(r)}return Me(r),r}function un(e){e.textContent=``}function dn(){return!Be||xt!==null?!1:(z.f&S)!==0}function fn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function pn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function mn(e,t){if(t){let t=document.body;e.autofocus=!0,Xe(()=>{document.activeElement===t&&e.focus()})}}function hn(e){var t=R,n=z;qn(null),Jn(null);try{return e()}finally{qn(t),Jn(n)}}function gn(e){z===null&&(R===null&&_e(e),ge()),Wn&&he(e)}function _n(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function vn(e,t){var n=z;n!==null&&n.f&8192&&(e|=b);var r={ctx:He,deps:null,nodes:null,f:e|v|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)mt===null?vt.ensure().schedule(r):mt.push(r);else if(t!==null){try{dr(r)}catch(e){throw Pn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&_n(i,n),R!==null&&R.f&2&&!(e&64))){var a=R;(a.effects??=[]).push(i)}return r}function yn(){return R!==null&&!Kn}function bn(e){let t=vn(8,null);return tt(t,_),t.teardown=e,t}function xn(e){gn(`$effect`);var t=z.f;if(!R&&t&32&&!(t&32768)){var n=He;(n.e??=[]).push(e)}else return Sn(e)}function Sn(e){return vn(4|re,e)}function Cn(e){return gn(`$effect.pre`),vn(8|re,e)}function wn(e){vt.ensure();let t=vn(64|ne,e);return(e={})=>new Promise(n=>{e.outro?Ln(t,()=>{Pn(t),n(void 0)}):(Pn(t),n(void 0))})}function Tn(e){return vn(4,e)}function En(e){return vn(se|ne,e)}function Dn(e,t=0){return vn(8|t,e)}function L(e,t=[],n=[],r=[]){Mt(r,t,n,t=>{vn(8,()=>e(...t.map(B)))})}function On(e,t=0){return vn(16|t,e)}function kn(e,t=0){return vn(g|t,e)}function An(e){return vn(32|ne,e)}function jn(e){var t=e.teardown;if(t!==null){let e=Wn,n=R;Gn(!0),qn(null);try{t.call(null)}finally{Gn(e),qn(n)}}}function Mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&hn(()=>{e.abort(C)});var r=n.next;n.f&64?n.parent=null:Pn(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Pn(t),t=n}}function Pn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Fn(e.nodes.start,e.nodes.end),n=!0),tt(e,ee),Mn(e,t&&!n),ur(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();jn(e),e.f^=ee,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&In(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Fn(e,t){for(;e!==null;){var n=e===t?null:ln(e);e.remove(),e=n}}function In(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 Ln(e,t,n=!0){var r=[];Rn(e,r,!0);var i=()=>{n&&Pn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Rn(e,t,n){if(!(e.f&8192)){e.f^=b;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Rn(i,t,o?n:!1),i=a}}}function zn(e){Bn(e,!0)}function Bn(e,t){if(e.f&8192){e.f^=b,e.f&1024||(tt(e,v),vt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Bn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Vn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ln(n);t.append(n),n=i}}var Hn=null,Un=!1,Wn=!1;function Gn(e){Wn=e}var R=null,Kn=!1;function qn(e){R=e}var z=null;function Jn(e){z=e}var Yn=null;function Xn(e){R!==null&&(!Be||R.f&2)&&(Yn===null?Yn=[e]:Yn.push(e))}var Zn=null,Qn=0,$n=null;function er(e){$n=e}var tr=1,nr=0,rr=nr;function ir(e){rr=e}function ar(){return++tr}function or(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(or(a)&&Ht(a),a.wv>e.wv)return!0}t&512&&ut===null&&tt(e,_)}return!1}function sr(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!Be&&Yn!==null&&r.call(Yn,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?sr(o,t,!1):t===o&&(n?tt(o,v):o.f&1024&&tt(o,y),Tt(o))}}function cr(e){var t=Zn,n=Qn,r=$n,i=R,a=Yn,o=He,s=Kn,c=rr,l=e.f;Zn=null,Qn=0,$n=null,R=l&96?null:e,Yn=null,Ue(e.ctx),Kn=!1,rr=++nr,e.ac!==null&&(hn(()=>{e.ac.abort(C)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=S;var f=e.deps,p=lt?.is_fork;if(Zn!==null){var m;if(p||ur(e,Qn),f!==null&&Qn>0)for(f.length=Qn+Zn.length,m=0;m<Zn.length;m++)f[Qn+m]=Zn[m];else e.deps=f=Zn;if(yn()&&e.f&512)for(m=Qn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Qn<f.length&&(ur(e,Qn),f.length=Qn);if(Ge()&&$n!==null&&!Kn&&f!==null&&!(e.f&6146))for(m=0;m<$n.length;m++)sr($n[m],e);if(i!==null&&i!==e){if(nr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=nr;if(t!==null)for(let e of t)e.rv=nr;$n!==null&&(r===null?r=$n:r.push(...$n))}return e.f&8388608&&(e.f^=ce),d}catch(e){return Qe(e)}finally{e.f^=oe,Zn=t,Qn=n,$n=r,R=i,Yn=a,Ue(o),Kn=s,rr=c}}function lr(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(Zn===null||!r.call(Zn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ae),nt(s),Ut(s),ur(s,0)}}function ur(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)lr(e,n[r])}function dr(e){var t=e.f;if(!(t&16384)){tt(e,_);var n=z,r=Un;z=e,Un=!0;try{t&16777232?Nn(e):Mn(e),jn(e);var i=cr(e);e.teardown=typeof i==`function`?i:null,e.wv=tr}finally{Un=r,z=n}}}async function fr(){if(Be)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),yt()}function B(e){var t=(e.f&2)!=0;if(Hn?.add(e),R!==null&&!Kn&&!(z!==null&&z.f&16384)&&(Yn===null||!r.call(Yn,e))){var n=R.deps;if(R.f&2097152)e.rv<nr&&(e.rv=nr,Zn===null&&n!==null&&n[Qn]===e?Qn++:Zn===null?Zn=[e]:Zn.push(e));else{(R.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[R]:r.call(i,R)||i.push(R)}}if(Wn&&Kt.has(e))return Kt.get(e);if(t){var a=e;if(Wn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||mr(a))&&(o=Vt(a)),Kt.set(a,o),o}var s=(a.f&512)==0&&!Kn&&R!==null&&(Un||(R.f&512)!=0),c=(a.f&S)===0;or(a)&&(s&&(a.f|=512),Ht(a)),s&&!c&&(Wt(a),pr(a))}if(ut?.has(e))return ut.get(e);if(e.f&8388608)throw e.v;return e.v}function pr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Wt(t),pr(t))}function mr(e){if(e.v===De)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Kt.has(t)||t.f&2&&mr(t))return!0;return!1}function V(e){var t=Kn;try{return Kn=!0,e()}finally{Kn=t}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var hr=[`touchstart`,`touchmove`];function gr(e){return hr.includes(e)}var _r=Symbol(`events`),vr=new Set,yr=new Set;function br(e,t,n,r={}){function i(e){if(r.capture||Tr.call(t,e),!e.cancelBubble)return hn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Xe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function xr(e,t,n,r,i){var a={capture:r,passive:i},o=br(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bn(()=>{t.removeEventListener(e,o,a)})}function Sr(e,t,n){(t[_r]??={})[e]=n}function Cr(e){for(var t=0;t<e.length;t++)vr.add(e[t]);for(var n of yr)n(e)}var wr=null;function Tr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;wr=e;var s=0,c=wr===e&&e[_r];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[_r]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=R,f=z;qn(null),Jn(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[_r]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[_r]=t,delete e.currentTarget,qn(d),Jn(f)}}}var Er=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Dr(e){return Er?.createHTML(e)??e}function Or(e){var t=fn(`template`);return t.innerHTML=Dr(e.replaceAll(`<!>`,`<!---->`)),t.content}function kr(e,t){var n=z;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function H(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return kr(E,null),E;i===void 0&&(i=Or(a?e:`<!>`+e),n||(i=cn(i)));var t=r||nn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=cn(t),s=t.lastChild;kr(o,s)}else kr(t,t);return t}}function U(){if(T)return kr(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=sn();return e.append(t,n),kr(t,n),e}function W(e,t){if(T){var n=z;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ne();return}e!==null&&e.before(t)}function Ar(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function jr(e,t){return Nr(e,t)}var Mr=new Map;function Nr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){on();var l=void 0,u=wn(()=>{var s=n??t.appendChild(sn());At(s,{pending:()=>{}},t=>{k({});var n=He;if(o&&(n.c=o),a&&(r.$$events=a),T&&kr(t,null),l=e(t,r)||{},T&&(z.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw ke(),Ee;A()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=gr(r);for(let e of[t,document]){var a=Mr.get(e);a===void 0&&(a=new Map,Mr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Tr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(i(vr)),yr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Mr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Tr),r.delete(e),r.size===0&&Mr.delete(n)):r.set(e,i)}yr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Pr.set(l,u),l}var Pr=new WeakMap;function Fr(e,t){let n=Pr.get(e);return n?(Pr.delete(e),n(t)):Promise.resolve()}var Ir=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)zn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Pn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Vn(r,t),t.append(sn()),this.#n.set(e,{effect:r,fragment:t})}else Pn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Ln(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Pn(n.effect),this.#n.delete(e))};ensure(e,t){var n=lt,r=dn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=sn();i.append(a),this.#n.set(e,{effect:An(()=>t(a)),fragment:i})}else this.#t.set(e,An(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=E),this.#a(n)}};function G(e,t,n=!1){var r;T&&(r=E,Ne());var i=new Ir(e),a=n?te:0;function o(e,t){if(T){var n=Ie(r);if(e!==parseInt(n.substring(1))){var a=Fe();Me(a),i.anchor=a,je(!1),i.ensure(e,t),je(!0);return}}i.ensure(e,t)}On(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function K(e,t){return t}function Lr(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Ln(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Rr(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;un(d),d.append(u),e.items.clear()}Rr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Rr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ie,Vn(a,document.createDocumentFragment())):Pn(t[i],n)}}var zr;function q(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=T?Me(cn(u)):u.appendChild(sn())}T&&Ne();var d=null,f=Rt(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Vr(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,Ur(d,null,c)):zn(d):Ln(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:On(()=>{p=B(f);var e=p.length;let t=!1;T&&Ie(c)===`[!`!=(e===0)&&(c=Fe(),Me(c),je(!1),t=!0);for(var i=new Set,u=lt,v=dn(),y=0;y<e;y+=1){T&&E.nodeType===8&&E.data===`]`&&(c=E,t=!0,je(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Xt(S.v,b),S.i&&Xt(S.i,y),v&&u.unskip_effect(S.e)):(S=Hr(l,h?c:zr??=sn(),b,x,y,o,n,r),h||(S.e.f|=ie),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=An(()=>s(c)):(d=An(()=>s(zr??=sn())),d.f|=ie)),e>i.size&&me(``,``,``),T&&e>0&&Me(Fe()),!h)if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&je(!0),B(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=E)}function Br(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Vr(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=Br(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(zn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ie,_===l)Ur(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Wr(e,d,_),Wr(e,_,y),Ur(_,y,n),d=_,p=[],m=[],l=Br(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Ur(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Wr(e,S.prev,ee.next),Wr(e,d,S),Wr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Ur(_,l,n),Wr(e,_.prev,_.next),Wr(e,_,d===null?e.effect.first:d.next),Wr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Br(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Br(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Rr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Br(l.next);var ne=te.length;if(ne>0){var re=r&4&&s===0?n:null;if(o){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Lr(e,te,re)}}o&&Xe(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Hr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Jt(n):Yt(n,!1,!1):null,l=o&2?Jt(i):null;return{v:c,i:l,e:An(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ur(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=ln(r);if(a.before(r),r===i)return;r=o}}function Wr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Gr(e,t,...n){var r=new Ir(e);On(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},te)}function Kr(e,t,n){var r;T&&(r=E,Ne());var i=new Ir(e);On(()=>{var e=t()??null;if(T&&Ie(r)===`[`!=(e!==null)){var a=Fe();Me(a),i.anchor=a,je(!1),i.ensure(e,e&&(t=>n(t,e))),je(!0);return}i.ensure(e,e&&(t=>n(t,e)))},te)}function qr(e,t){var n=void 0,r;kn(()=>{n!==(n=t())&&(r&&=(Pn(r),null),n&&(r=An(()=>{Tn(()=>n(e))})))})}function Jr(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=Jr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Yr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jr(e))&&(r&&(r+=` `),r+=t);return r}function Xr(e){return typeof e==`object`?Yr(e):e??``}var Zr=[...`
|
|
6
|
+
\r\f\xA0\v`];function Qr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Zr.includes(r[o-1]))&&(s===r.length||Zr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function $r(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ei(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ti(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 a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ei)),i&&c.push(...Object.keys(i).map(ei));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ei(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=$r(r)),i&&(n+=$r(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function J(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=Qr(n,r,a);(!T||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ni(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ri(e,t,n,r){var i=e.__style;if(T||i!==t){var a=ti(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ni(e,n?.[0],r[0]),ni(e,n?.[1],r[1],`important`)):ni(e,n,r));return r}var ii=Symbol(`is custom element`),ai=Symbol(`is html`),oi=w?`link`:`LINK`;function si(e,t,n,r){var i=ci(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===oi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ui(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ci(e){return e.__attributes??={[ii]:e.nodeName.includes(`-`),[ai]:e.namespaceURI===Oe}}var li=new Map;function ui(e){var t=e.getAttribute(`is`)||e.nodeName,n=li.get(t);if(n)return n;li.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&n.push(o);i=u(i)}return n}var di=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function fi(e,t,n){var r=di.observe(e,()=>n(e[t]));Tn(()=>(V(()=>n(e[t])),r))}function pi(e,t){return e===t||e?.[le]===t}function mi(e={},t,n,r){var i=He.r,a=z;return Tn(()=>{var o,s;return Dn(()=>{o=s,s=r?.()||[],V(()=>{e!==n(...s)&&(t(e,...s),o&&pi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&pi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Y(e,t,n,r){var i=!Ve||(n&2)!=0,a=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=s?V(r):r),c);let d;if(a){var f=le in e||ue in e;d=o(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=st(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&be(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?It:Rt)(()=>(_=!1,h()));a&&B(v);var y=z;return(function(e,t){if(arguments.length>0){let n=t?B(v):i&&a?en(e):e;return N(v,n),_=!0,c!==void 0&&(c=n),e}return Wn&&_||y.f&16384?v.v:B(v)})}function hi(){return R===null&&ye(),(R.ac??=new AbortController).signal}function gi(e){He===null&&fe(`onMount`),Ve&&He.l!==null?_i(He).m.push(e):xn(()=>{let t=V(e);if(typeof t==`function`)return t})}function _i(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function vi(e,t=void 0){return function(n){return n.key===`Enter`||n.key===` `&&!n.preventDefault()?e.call(t,n):void 0}}function yi(e){return t=>{typeof e==`string`?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function bi(e){return t=>{let n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+`outside`,{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function xi(e){return t=>{let n=new ResizeObserver(n=>{for(let r of n)e(t,r)});return n.observe(t),()=>{n.unobserve(t)}}}function Si(e,t){return n=>{let r=new IntersectionObserver(t=>{for(let r of t)e(n,r)},t);return r.observe(n),()=>{r.unobserve(n)}}}function X(...e){return Object.assign(...e)}function Ci(e){return Object.keys(e)}function wi(e){return Object.entries(e)}function Ti(e,t){return Object.hasOwn(e,t)}function Ei(e){return Math.floor(e)}function Di(e){return Math.ceil(e)}function Oi(...e){return Math.min(...e)}function ki(...e){return Math.max(...e)}function Ai(){return Symbol(`ec`)}function ji(e){return e.length}function Mi(e){return!ji(e)}function Ni(e){return Array.isArray(e)}function Z(e){return typeof e==`function`}function Pi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Fi(e){return e instanceof Date}function Ii(e){return e()}function Li(e){e.forEach(Ii)}function Ri(){}var zi=e=>e;function Bi(){return window.getComputedStyle(document.documentElement).direction===`rtl`}var Vi=86400;function Hi(e=void 0){return e===void 0?sa(new Date):Fi(e)?sa(e):ca(e)}function Ui(e){if(typeof e==`number`)e={seconds:e};else if(typeof e==`string`){let t=0,n=2;for(let r of e.split(`:`,3))t+=parseInt(r,10)*60**n--;e={seconds:t}}else Fi(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Q(e){return new Date(e.getTime())}function Wi(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;)qi(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Gi(e,t,n=1){return Wi(e,t,-n)}function Ki(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function qi(e,t=1){return Ki(e,-t)}function Ji(e){return e.setUTCHours(0,0,0,0),e}function Yi(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Xi(e,t=19){return e.toISOString().substring(0,t)}function Zi(e,...t){return t.every(t=>e.getTime()===t.getTime())}function Qi(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function $i(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function ea(e){return typeof e==`string`&&e.length<=10}function ta(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function na(e,t,n){return Wi(e,t),ia(e,n,Ki),e}function ra(e,t,n){return Gi(e,t),ia(e,n,qi),e}function ia(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}function aa(e,t){e=Q(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/Vi+1)/7)}function oa(e,t,n){return t?Z(t)?t({date:Yi(n),week:e}):t:`W`+String(e).padStart(2,`0`)}function sa(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function ca(e){let 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)))}var la=Ai();function ua(e,t){e[la]=t}function da(e){return!!e?.[la]}function fa(e){return e[la]}function pa(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 e of r)i.setAttribute(...e);return i}function ma(e){return e.getBoundingClientRect()}function ha(e,t){for(;t--;)e=e.parentElement;return e}function ga(e){return ma(e).height}function _a(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(da(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=_a(e,t,i.shadowRoot,r);if(n)return n}}return null}function va(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ya(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function ba(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 xa(e){return e=X({},e),e.currentStart=Yi(e.currentStart),e.currentEnd=Yi(e.currentEnd),e.activeStart=Yi(e.activeStart),e.activeEnd=Yi(e.activeEnd),e}var Sa=1;function Ca(e){return e.map(e=>{let t={id:`id`in e?String(e.id):`{generated-${Sa++}}`,resourceIds:wa(e,`resourceId`).map(String),allDay:e.allDay??(ea(e.start)&&ea(e.end)),start:Hi(e.start),end:Hi(e.end),title:e.title??``,editable:e.editable,startEditable:e.startEditable,durationEditable:e.durationEditable,display:e.display??`auto`,extendedProps:e.extendedProps??{},backgroundColor:e.backgroundColor??e.color,textColor:e.textColor,classNames:wa(e,`className`),styles:wa(e,`style`)};if(t.allDay){Ji(t.start);let e=Q(t.end);Ji(t.end),(!Zi(t.end,e)||Zi(t.end,t.start))&&Ki(t.end)}return t})}function wa(e,t){let n=e[t+`s`]??e[t]??[];return Ni(n)?n:[n]}function Ta(e){return e.map(e=>({events:e.events,url:e.url&&e.url.trimEnd(`&`)||``,method:e.method&&e.method.toUpperCase()||`GET`,extraParams:e.extraParams||{}}))}function Ea(e,t,n,r,i,a){let o=i.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?ta(Q(e.start),e.end):e.start),s;if(n&&(s=Z(n)?n({event:ka(e.event),timeText:o,view:xa(a)}):n),s===void 0){let t;switch(e.event.display){case`background`:t=[];break;case`pointer`:t=e.event.allDay?[]:[Da(o,e,r)];break;default:t=[...e.event.allDay?[]:[Da(o,e,r)],pa(`h4`,r.eventTitle,e.event.title)]}s={domNodes:t}}return[o,s]}function Da(e,t,n){return pa(`time`,n.eventTime,e,[[`datetime`,Xi(t.start)]])}function Oa(e,t,n){let r=t.classNames;return e&&(Z(e)&&(e=e({event:ka(t),view:xa(n)})),r=[...Ni(e)?e:[e],...r]),r}function ka(e){return ja(e,Yi)}function Aa(e){return ja(e,Q)}function ja(e,t){return e=X({},e),e.start=t(e.start),e.end=t(e.end),e}function Ma(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Na(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Pa(e){return Ia(e)||La(e)||Ra(e)}function Fa(e){return e===`background`}function Ia(e){return e===`preview`}function La(e){return e===`ghost`}function Ra(e){return e===`pointer`}function za(e,t,n){return t=e.start>t?e.start:t,n=e.end<n?e.end:n,{start:t,end:n,event:e,zeroDuration:Zi(t,n)}}function Ba(e,t,n=!0){let r=[],i,a,o,s;for(let{gridColumn:n,gridRow:c,resource:l,dayStart:u,dayEnd:d,disabled:f}of t)!f&&Na(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=za(e,r[0],i);return X(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&Ga(t),[t]}return[]}function Va(e){let t={},n={};for(let r of e){let{gridColumn:e,gridRow:i}=r;for(let t=1;t<r.dates.length;++t){let a=`${i}_${e+t}`;n[a]?n[a].chunks.push(r):n[a]={sorted:!1,chunks:[r]}}let a=`${i}_${e}`;r.long=n[a],r.prev=t[a],t[a]=r}}function Ha(e,t,n=1){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let t=e.long;t.sorted||=(t.chunks.sort((e,t)=>e.top-t.top),!0);for(let e of t.chunks)if(n<e.bottom&&r>e.top){let t=e.bottom-n+1;n+=t,r+=t}}return X(e,{top:n,bottom:r}),n}var Ua=new WeakMap,Wa=1;function Ga(e){let{event:t,gridColumn:n,gridRow:r}=e,i=Ua.get(t);i||(i=Wa++,Ua.set(t,i)),e.id=`${i}-${n}-${r}`}function Ka(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return V(()=>{i=Z(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(Yi(e))}}}function qa(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return V(()=>{if(Z(r))i=r;else{let e=new Intl.DateTimeFormat(n,r);i=(t,n)=>{if(t<=n)return e.formatRange(t,n);{let r=e.formatRangeToParts(n,t),i=``,a=[`startRange`,`endRange`],o=[!1,!1];for(let e of r){let t=a.indexOf(e.source);t>=0?o[t]||(i+=Ja(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(Yi(e),Yi(t))}}}function Ja(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function Ya(e){return $a(e,`day`)}function Xa(e){return $a(e,`week`)}function Za(e){return $a(e,`month`)}function Qa(e){return $a(e,`year`)}function $a(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function eo(e){return t=>({...t,view:e})}function to(e){let t,n;return e&&({start:t,end:n}=e,t&&=Ji(Hi(t)),n&&=Ji(Hi(n))),{start:t,end:n}}function no(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ro(e){let t=[];return io(e,0,!1,t),t}function io(e,t,n,r){let i=[];for(let a of e){let e=ao(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};ua(e,o),a.children&&(o.children=io(a.children,t+1,n||!e.expanded,r))}return i}function ao(e){return{id:String(e.id),title:e.title||``,eventBackgroundColor:oo(e),eventTextColor:so(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function oo(e){return e?.eventBackgroundColor}function so(e){return e?.eventTextColor}function co(e,t){return Mi(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function lo(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(Wi(e,r.min),Wi(o,r.max);e<o;)a.push([Xi(e),i.format(e)]),Wi(e,t,n);let s=Ei((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function uo(e,t,n,r,i){let a=Ui(e),o=Ui(t);if(n){let e=Ui(Oi($(a),ki(0,$(o)-Vi))),t=Ui(ki($(o),$(e)+Vi)),s=Z(n?.eventFilter)?n.eventFilter:e=>!Fa(e.display);loop:for(let n of r){let r=Wi(Q(n),a),c=Wi(Q(n),o),l=Wi(Q(n),e),u=Wi(Q(n),t);for(let d of i)if(!d.allDay&&s(d)&&d.start<u&&d.end>l){if(d.start<r){let t=ki((d.start-n)/1e3,$(e));t<$(a)&&(a.seconds=t)}if(d.end>c){let e=Oi((d.end-n)/1e3,$(t));e>$(o)&&(o.seconds=e)}if($(a)===$(e)&&$(o)===$(t))break loop}}}return{min:a,max:o}}var fo=class extends Map{#e=new Map;#t=M(0);#n=M(0);#r=rr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return rr===this.#r?M(e):Jt(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return B(this.#t),!1;return B(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{B(this.#t);return}return B(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),N(this.#n,super.size),Qt(o);else if(i!==t){Qt(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Qt(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(this.#n,super.size),Qt(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;N(this.#n,0);for(var t of e.values())N(t,-1);Qt(this.#t),e.clear()}}#a(){B(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)B(n)}keys(){return B(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return B(this.#n),super.size}};function po(e){let t=0,n=M(en(t));return ho(e,()=>B(n),()=>!0,()=>N(n,++t,!0))}function mo(e){let t=0,n=en({});return ho(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function ho(e,t,n,r){return new Proxy(e,{get(e,n,r){return Ti(e,n)&&t(n),Reflect.get(e,n,r)},set(e,t,i,a){let o=n(e[t],i),s=Reflect.set(e,t,i,a);return o&&r(t),s}})}function go(e){let t={buttonText:{today:`today`},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:`short`,month:`numeric`,day:`numeric`},dayHeaderAriaLabelFormat:{dateStyle:`full`},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:`numeric`,minute:`2-digit`},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:`title`,center:``,end:`today prev,next`},height:void 0,hiddenDays:[],highlightedDates:[],icons:{},lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:`ec-active`,bgEvent:`ec-bg-event`,bgEvents:`ec-bg-events`,body:`ec-body`,button:`ec-button`,buttonGroup:`ec-button-group`,calendar:`ec`,colHead:`ec-col-head`,customScrollbars:`ec-custom-scrollbars`,day:`ec-day`,dayHead:`ec-day-head`,disabled:`ec-disabled`,event:`ec-event`,eventBody:`ec-event-body`,eventTime:`ec-event-time`,eventTitle:`ec-event-title`,events:`ec-events`,grid:`ec-grid`,header:`ec-header`,hidden:`ec-hidden`,highlight:`ec-highlight`,icon:`ec-icon`,main:`ec-main`,noBeb:`ec-no-beb`,noIeb:`ec-no-ieb`,today:`ec-today`,title:`ec-title`,toolbar:`ec-toolbar`,view:``,weekdays:[`ec-sun`,`ec-mon`,`ec-tue`,`ec-wed`,`ec-thu`,`ec-fri`,`ec-sat`],weekNumber:`ec-week-number`},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 _o(e){let t={date:e=>Ji(Hi(e)),duration:Ui,events:Ca,eventSources:Ta,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>Ji(Hi(e))),resources:e=>Ni(e)?ro(e):e,validRange:to};for(let n of e)n.createParsers?.(t);return t}var vo=[`buttonText`,`customButtons`,`icons`,`theme`];function yo(e,t){let n=go(e),r=_o(e);n=bo(n,r),t=bo(t,r);let i=xo(n,`views`)??{},a=xo(t,`views`)??{},o=mo({});X(o,n),t.view&&(o.view=t.view);let s={},c={},l={},u=new Set([...Ci(i),...Ci(a)]);for(let e of u){let r=a[e]??{},u=So(n,i[e]??i[r.type]??{}),d=So(u,t,r),f=xo(d,`component`);delete d.view;for(let e of Ci(d))Ti(o,e)?(s[e]||(s[e]=[]),s[e].push(vo.includes(e)?t=>d[e]=Z(t)?t(u[e]):t:t=>d[e]=t)):delete d[e];c[e]=d,l[e]=f}return X(o,c[o.view]),[o,function(e,t,n=!0){Ti(o,e)&&(n||(e in r?t=r[e](t):Pi(t)?t={...t}:Ni(t)&&(t=[...t])),s[e]?.forEach(e=>e(t)),o[e]=t)},function(e){return X(o,c[e]),l[e]}]}function bo(e,t){let n={...e};for(let e of Ci(t))e in n&&(n[e]=t[e](n[e]));if(e.views){n.views={};for(let r of Ci(e.views))n.views[r]=bo(e.views[r],t)}return n}function xo(e,t){let n=e[t];return delete e[t],n}function So(...e){let t={};for(let n of e){let e={};for(let r of vo)Z(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function Co(e,t){let n=[];for(let r of Ci(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function wo(e){return()=>{let{options:{view:t}}=e;V(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function To(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},viewDates:i,options:{events:a,eventSources:o,lazyFetching:s}}=e;V(()=>{Do(o.map(e=>Z(e.events)?e.events:e),a,Ca,t=>e.events=po(t),n,r,i,!0,s,t)})}}function Eo(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s}}=e;V(()=>{Do(Ni(s)?[]:[s],s,ro,t=>e.resources=po(t),n,r,i,o,a,t)})}}function Do(e,t,n,r,i,a,o,s,c,l){if(!Mi(o)){if(Mi(e)){r(t);return}if((s||!a.start)&&(!c||!a.start||a.start>i.start||a.end<i.end)){let t=[],o=e=>l.stop(),c=e=>{t=t.concat(n(e)),r(t),l.stop()},u=Xi(i.start),d=Xi(i.end);for(let t of e)if(l.start(),Z(t)){let e=t(s?{start:Yi(i.start),end:Yi(i.end),startStr:u,endStr:d}:{},c,o);e!==void 0&&Promise.resolve(e).then(c,o)}else{let e=Z(t.extraParams)?t.extraParams():X({},t.extraParams);s&&(e.start=u,e.end=d),e=new URLSearchParams(e);let n=t.url,r={},i;[`GET`,`HEAD`].includes(t.method)?n+=(n.includes(`?`)?`&`:`?`)+e:(r[`content-type`]=`application/x-www-form-urlencoded;charset=UTF-8`,i=String(e)),fetch(n,{method:t.method,headers:r,body:i,signal:hi(),credentials:`same-origin`}).then(e=>e.json()).then(c).catch(o)}X(a,i)}}}function Oo(e){let t=0;function n(t){let{options:{loading:n}}=e;Z(n)&&n(t)}return{start:()=>++t===1&&n(!0),stop:()=>--t===0&&n(!1)}}function ko(e){return()=>{let t=setInterval(()=>{let t=Hi(),n=Ji(Q(t));e.now=t,Zi(e.today,n)||(e.today=n)},1e3);return()=>clearInterval(t)}}function Ao(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;V(()=>{Z(n)&&n({start:Yi(t.start),end:Yi(t.end),startStr:Xi(t.start),endStr:Xi(t.end),view:xa(e.view)})})}}function jo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;V(()=>{Z(r)&&(t||=setTimeout(()=>{t=null,r({view:xa(e.view)})}))})}}function Mo(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;V(()=>{Z(n)&&fr().then(()=>n({view:xa(e.view)}))})}}function No(e){return()=>{let{options:{date:t,duration:n,firstDay:r}}=e,i,a;return V(()=>{i=Q(t),n.years?(i.setUTCMonth(0),i.setUTCDate(1)):n.months?i.setUTCDate(1):n.inWeeks&&$i(i,r),a=Wi(Q(i),n)}),{start:i,end:a}}}function Po(e){return()=>{let{currentRange:t,extensions:{activeRange:n}}=e,r,i;return V(()=>{r=Q(t.start),i=Q(t.end)}),n?n(r,i):{start:r,end:i}}}function Fo(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return V(()=>{if(Z(n)){let r=t.map(ka),i=xa(e.view);s=s.filter((e,t)=>n({event:ka(e),index:t,events:r,view:i}))}i&&(s=s.filter(e=>a.some(t=>e.resourceIds.includes(t.id)))),Z(r)?s.sort((e,t)=>r(ka(e),ka(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function Io(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return V(()=>{let t=Ji(Q(n.start)),a=Ji(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),Ki(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)Ki(t);fr().then(()=>{e.setOption(`date`,t)})}}),i}}function Lo(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return V(()=>{r=n.formatRange(t.start,qi(Q(t.end)))}),r}}function Ro(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return V(()=>{a=ba(i,r,n,t)}),a}}var zo=class{#e;get auxComponents(){return B(this.#e)}set auxComponents(e){N(this.#e,e,!0)}#t;get currentRange(){return B(this.#t)}set currentRange(e){N(this.#t,e)}#n;get activeRange(){return B(this.#n)}set activeRange(e){N(this.#n,e)}#r;get fetchedRange(){return B(this.#r)}set fetchedRange(e){N(this.#r,e,!0)}#i;get events(){return B(this.#i)}set events(e){N(this.#i,e)}#a;get filteredEvents(){return B(this.#a)}set filteredEvents(e){N(this.#a,e)}#o;get mainEl(){return B(this.#o)}set mainEl(e){N(this.#o,e,!0)}#s;get now(){return B(this.#s)}set now(e){N(this.#s,e,!0)}#c;get resources(){return B(this.#c)}set resources(e){N(this.#c,e)}#l;get today(){return B(this.#l)}set today(e){N(this.#l,e,!0)}#u;get intlEventTime(){return B(this.#u)}set intlEventTime(e){N(this.#u,e)}#d;get intlDayHeader(){return B(this.#d)}set intlDayHeader(e){N(this.#d,e)}#f;get intlDayHeaderAL(){return B(this.#f)}set intlDayHeaderAL(e){N(this.#f,e)}#p;get intlTitle(){return B(this.#p)}set intlTitle(e){N(this.#p,e)}#m;get viewDates(){return B(this.#m)}set viewDates(e){N(this.#m,e)}#h;get viewTitle(){return B(this.#h)}set viewTitle(e){N(this.#h,e)}#g;get view(){return B(this.#g)}set view(e){N(this.#g,e)}#_;get viewComponent(){return B(this.#_)}set viewComponent(e){N(this.#_,e,!0)}#v;get extensions(){return B(this.#v)}set extensions(e){N(this.#v,e,!0)}#y;get features(){return B(this.#y)}set features(e){N(this.#y,e,!0)}#b;get interaction(){return B(this.#b)}set interaction(e){N(this.#b,e,!0)}#x;get iClasses(){return B(this.#x)}set iClasses(e){N(this.#x,e,!0)}#S;get iClass(){return B(this.#S)}set iClass(e){N(this.#S,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=yo(e,t),this.#e=M(en([])),this.#t=j(No(this)),this.#n=j(Po(this)),this.#r=M(en({events:{},resources:{}})),this.#i=M(po(this.options.events)),this.#a=j(Fo(this)),this.#o=M(),this.#s=M(en(Hi())),this.#c=M(po(Ni(this.options.resources)?this.options.resources:[])),this.#l=M(en(Ji(Q(this.now)))),this.#u=j(qa(this,`eventTimeFormat`)),this.#d=j(Ka(this,`dayHeaderFormat`)),this.#f=j(Ka(this,`dayHeaderAriaLabelFormat`)),this.#p=j(qa(this,`titleFormat`)),this.#m=j(Io(this)),this.#h=j(Lo(this)),this.#g=j(Ro(this)),this.#_=M(),this.#v=M(en({})),this.#y=M(en([])),this.#b=M(en({})),this.iEvents=new fo,this.#x=M(en(zi)),this.#S=M();for(let t of e)t.initState?.(this);this.#C()}#C(){let e=Oo(this);Cn(wo(this)),Cn(ko(this)),xn(To(this,e)),xn(Eo(this,e)),xn(Ao(this)),xn(jo(this)),xn(Mo(this))}},Bo=H(`<h2></h2>`),Vo=H(`<button><i></i></button>`),Ho=H(`<button><i></i></button>`),Uo=H(`<button> </button>`),Wo=H(`<button></button>`),Go=H(`<button> </button>`);function Ko(e,t){k(t,!0);let n=O(`state`),r=j(()=>n.currentRange),i=j(()=>n.today),a=j(()=>n.viewTitle),o=j(()=>n.viewDates),s=j(()=>n.options.buttonText),c=j(()=>n.options.customButtons),l=j(()=>n.options.date),u=j(()=>n.options.duration),d=j(()=>n.options.hiddenDays),f=j(()=>n.options.theme),p=j(()=>n.options.validRange),m=j(()=>n.options.view),h=M(!1),g=M(!1),_=M(!1),v=!1;Cn(()=>{B(o),B(p),t.buttons,V(()=>{v||(v=!0,t.buttons.includes(`prev`)&&(N(h,!1),B(p).start&&N(h,y(b),!0)),t.buttons.includes(`next`)&&(N(g,!1),B(p).end&&N(g,y(x),!0)),t.buttons.includes(`today`)&&(N(_,B(i)>=B(r).start&&B(i)<B(r).end,!0),!B(_)&&(B(p).start||B(p).end)&&N(_,y(S),!0)),fr().then(()=>v=!1))})});function y(e){let t=B(l);e();let r=B(o).every(e=>no(e,B(p)));return n.setOption(`date`,t),r}function b(){n.setOption(`date`,ra(Q(B(l)),B(u),B(d)))}function x(){n.setOption(`date`,na(Q(B(l)),B(u),B(d)))}function S(){n.setOption(`date`,Q(B(i)))}var ee=U();q(F(ee),17,()=>t.buttons,K,(e,t)=>{var r=U(),i=F(r),o=e=>{var t=Bo();qr(t,()=>yi(B(a))),L(()=>J(t,1,B(f).title)),W(e,t)},l=e=>{var n=Vo(),r=P(n);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),si(n,`aria-label`,B(s).prev),si(n,`title`,B(s).prev),n.disabled=B(h),J(r,1,`${B(f).icon??``} ec-${B(t)??``}`)}),Sr(`click`,n,b),W(e,n)},u=e=>{var n=Ho(),r=P(n);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),si(n,`aria-label`,B(s).next),si(n,`title`,B(s).next),n.disabled=B(g),J(r,1,`${B(f).icon??``} ec-${B(t)??``}`)}),Sr(`click`,n,x),W(e,n)},d=e=>{var n=Uo(),r=P(n,!0);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),n.disabled=B(_),Ar(r,B(s)[B(t)])}),Sr(`click`,n,S),W(e,n)},p=e=>{var n=Wo();qr(n,()=>yi(B(c)[B(t)].text)),L(()=>J(n,1,Xr([B(f).button,`ec-${B(t)}`,B(c)[B(t)].active&&B(f).active]))),Sr(`click`,n,function(...e){B(c)[B(t)].click?.apply(this,e)}),W(e,n)},v=e=>{var r=Go(),i=P(r,!0);D(r),L(()=>{J(r,1,Xr([B(f).button,`ec-${B(t)}`,B(m)===B(t)&&B(f).active])),Ar(i,B(s)[B(t)])}),Sr(`click`,r,()=>n.setOption(`view`,B(t))),W(e,r)};G(i,e=>{B(t)===`title`?e(o):B(t)===`prev`?e(l,1):B(t)===`next`?e(u,2):B(t)===`today`?e(d,3):B(c)[B(t)]?e(p,4):B(t)!==``&&e(v,5)}),W(e,r)}),W(e,ee),A()}Cr([`click`]);var qo=H(`<div><!></div>`),Jo=H(`<div></div>`),Yo=H(`<nav></nav>`);function Xo(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.headerToolbar),i=j(()=>B(n).options.theme),a=j(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=B(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=Yo();q(o,21,()=>Ci(B(a)),K,(e,t)=>{var n=Jo();q(n,21,()=>B(a)[B(t)],K,(e,t)=>{var n=U(),r=F(n),a=e=>{var n=qo();Ko(P(n),{get buttons(){return B(t)}}),D(n),L(()=>J(n,1,B(i).buttonGroup)),W(e,n)},o=e=>{Ko(e,{get buttons(){return B(t)}})};G(r,e=>{B(t).length>1?e(a):e(o,-1)}),W(e,n)}),D(n),L(()=>J(n,1,`ec-${B(t)??``}`)),W(e,n)}),D(o),L(()=>J(o,1,B(i).toolbar)),W(e,o),A()}var Zo=H(`<div><!> <!> <!></div>`);function Qo(e,t){k(t,!0);let n=Y(t,`plugins`,19,()=>[]),r=Y(t,`options`,19,()=>({})),i=new zo(n(),r());We(`state`,i);let a=j(()=>i.auxComponents),o=j(()=>i.features),s=j(()=>i.events),c=j(()=>i.interaction),l=j(()=>i.iClass),u=j(()=>i.view),d=j(()=>i.viewComponent),f=j(()=>i.options.date),p=j(()=>i.options.duration),m=j(()=>i.options.height),h=j(()=>i.options.hiddenDays),g=j(()=>i.options.customScrollbars),_=j(()=>i.options.theme),v={...r()};Cn(()=>{for(let[e,t]of Co(r(),v))V(()=>{y(e,t)});X(v,r())});function y(e,t){return i.setOption(e,t,!1),this}function b(e){let t=i.options[e];return Fi(t)?Yi(t):t}function x(){return i.fetchedRange.resources={},this}function S(){return i.fetchedRange.events={},this}function ee(){return B(s).map(ka)}function te(e){e=String(e);for(let t of B(s))if(t.id===e)return ka(t);return null}function ne(e){return e=Ca([e])[0],B(s).push(e),ka(e)}function re(e){let t=String(e.id),n=B(s).findIndex(e=>e.id===t);return n>=0?(e=Ca([e])[0],B(s)[n]=e,ka(e)):null}function ie(e){e=String(e);let t=B(s).findIndex(t=>t.id===e);return t>=0&&B(s).splice(t,1),this}function ae(){return xa(B(u))}function oe(){return B(c).action?.unselect(),this}function se(e,t){let n=_a(e,t);if(n){let r=fa(n)(e,t);return r.date=Yi(r.date),r}return null}function ce(){return i.setOption(`date`,na(Q(B(f)),B(p),B(h))),this}function le(){return i.setOption(`date`,ra(Q(B(f)),B(p),B(h))),this}var ue={setOption:y,getOption:b,refetchResources:x,refetchEvents:S,getEvents:ee,getEventById:te,addEvent:ne,updateEvent:re,removeEventById:ie,getView:ae,unselect:oe,dateFromPoint:se,next:ce,prev:le},de=Zo();let C;var w=P(de);Xo(w,{});var fe=I(w,2);return Kr(fe,()=>B(d),(e,t)=>{t(e,{})}),q(I(fe,2),17,()=>B(a),K,(e,t)=>{var n=U();Kr(F(n),()=>B(t),(e,t)=>{t(e,{})}),W(e,n)}),D(de),L(e=>{J(de,1,Xr([B(_).calendar,B(_).view,B(l)&&B(_)[B(l)],B(g)&&B(_).customScrollbars])),si(de,`role`,e),C=ri(de,``,C,{height:B(m)})},[()=>B(o).includes(`list`)?`list`:`table`]),W(e,de),A(ue)}function $o(e){return()=>{let{viewDates:t,options:{duration:n,hiddenDays:r}}=e,i;return V(()=>i=n.months||n.inWeeks?7-r.length:t.length),i}}function es(e,t){return()=>{let{options:{highlightedDates:n,validRange:r},viewDates:i}=e,{colsCount:a}=t,o=[];return V(()=>{let e=[],t=1,s=1;for(let c of i)e.push({gridColumn:t,gridRow:s,resource:void 0,dayStart:c,dayEnd:Ki(Q(c)),disabled:no(c,r),highlight:n.some(e=>Zi(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function ts(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?e.allDay&&(a=a.concat(Ba(e,t))):i=i.concat(Ba(e,t));Va(i)}),{chunks:i,bgChunks:a}}}function ns(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[];for(let[,e]of n)e&&V(()=>{for(let t of r)i=i.concat(Ba(e,t,!1))});return i}}var rs=class{#e;get colsCount(){return B(this.#e)}set colsCount(e){N(this.#e,e)}#t;get grid(){return B(this.#t)}set grid(e){N(this.#t,e)}#n;get gridEl(){return B(this.#n)}set gridEl(e){N(this.#n,e,!0)}#r;get chunks(){return B(this.#r)}set chunks(e){N(this.#r,e)}#i;get bgChunks(){return B(this.#i)}set bgChunks(e){N(this.#i,e)}#a;get iChunks(){return B(this.#a)}set iChunks(e){N(this.#a,e)}#o;get intlDayCell(){return B(this.#o)}set intlDayCell(e){N(this.#o,e)}#s;get intlDayPopover(){return B(this.#s)}set intlDayPopover(e){N(this.#s,e)}#c;get popupDay(){return B(this.#c)}set popupDay(e){N(this.#c,e,!0)}constructor(e){this.#e=j($o(e)),this.#t=j(es(e,this)),this.#n=M();let t=j(ts(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks);this.#r=j(()=>B(n)),this.#i=j(()=>B(r)),this.#a=j(ns(e,this)),this.hiddenChunks=new fo,this.#o=j(Ka(e,`dayCellFormat`)),this.#s=j(Ka(e,`dayPopoverFormat`)),this.#c=M(null)}},is=H(`<div><!></div>`);function as(e,t){k(t,!0);let n=Y(t,`el`,15),r=Y(t,`allDay`,3,!1),i=Y(t,`resource`,3,void 0),a=Y(t,`dateFromPoint`,3,()=>t.date),o=Y(t,`classes`,3,zi),s=Y(t,`disabled`,3,!1),c=Y(t,`highlight`,3,!1),l=Y(t,`role`,3,`cell`),u=Y(t,`noIeb`,3,!1),d=Y(t,`noBeb`,3,!1),p=j(()=>O(`state`)),m=j(()=>B(p).today),h=j(()=>B(p).interaction.action),g=j(()=>B(p).options.theme),_=j(()=>O(`view-state`)),v=j(()=>B(_).snap),y=j(()=>Zi(t.date,B(m))),b=j(()=>o()([B(g).day,B(g).weekdays?.[t.date.getUTCDay()],B(y)&&B(g).today,c()&&B(g).highlight,s()&&B(g).disabled,u()&&B(g).noIeb,d()&&B(g).noBeb]));gi(()=>{ua(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let x=j(()=>!s()&&B(h)?e=>B(h).select(e,B(v)):void 0);var S=is();Gr(P(S),()=>t.children??f),D(S),mi(S,e=>n(e),()=>n()),L(()=>{J(S,1,Xr(B(b))),si(S,`role`,l())}),Sr(`pointerdown`,S,function(...e){B(x)?.apply(this,e)}),W(e,S),A()}Cr([`pointerdown`]);var os=H(`<div></div>`),ss=H(`<article><!></article>`);function cs(e,t){k(t,!0);let n=Y(t,`el`,15),r=Y(t,`classes`,3,zi),i=Y(t,`styles`,3,zi),a=j(()=>O(`state`)),o=j(()=>B(a).intlEventTime),s=j(()=>B(a).resources),c=j(()=>B(a).view),l=j(()=>B(a).options.displayEventEnd),u=j(()=>B(a).options.eventBackgroundColor),d=j(()=>B(a).options.eventColor),f=j(()=>B(a).options.eventContent),p=j(()=>B(a).options.eventClick),m=j(()=>B(a).options.eventDidMount),g=j(()=>B(a).options.eventClassNames),_=j(()=>B(a).options.eventMouseEnter),v=j(()=>B(a).options.eventMouseLeave),y=j(()=>B(a).options.eventTextColor),b=j(()=>B(a).options.theme),x=j(()=>t.chunk.event),S=j(()=>t.chunk.event.display),ee=j(()=>B(x).backgroundColor??oo(t.chunk.resource??co(B(x),B(s)))??B(u)??B(d)),te=j(()=>B(x).textColor??so(t.chunk.resource??co(B(x),B(s)))??B(y)),ne=j(()=>wi(i()({"background-color":B(ee),color:B(te)})).map(e=>`${e[0]}:${e[1]}`).concat(B(x).styles).join(`;`)),re=j(()=>r()([Fa(B(S))?B(b).bgEvent:B(b).event,...Oa(B(g),B(x),B(c))])),ie=j(()=>Ea(t.chunk,B(l),B(f),B(b),B(o),B(c))),ae=j(()=>h(B(ie),2)),oe=j(()=>B(ae)[0]),se=j(()=>B(ae)[1]);gi(()=>{Z(B(m))&&B(m)({event:ka(B(x)),timeText:B(oe),el:n(),view:xa(B(c))})});function ce(e,t){return Z(e)&&!Pa(t)?t=>e({event:ka(B(x)),el:n(),jsEvent:t,view:xa(B(c))}):void 0}let le=j(()=>!Fa(B(S))&&ce(B(p),B(S))||void 0),ue=j(()=>B(le)&&vi(B(le))),de=j(()=>ce(B(_),B(S))),C=j(()=>ce(B(v),B(S)));var w=ss();{let e=e=>{var t=os();qr(t,()=>yi(B(se))),L(()=>J(t,1,Xr(B(b).eventBody))),W(e,t)};var fe=P(w),pe=n=>{var r=U();Gr(F(r),()=>t.body,()=>e,()=>B(ee),()=>B(te)),W(n,r)},me=t=>{e(t)};G(fe,e=>{t.body?e(pe):e(me,-1)}),D(w),mi(w,e=>n(e),()=>n())}L(()=>{J(w,1,Xr(B(re))),ri(w,B(ne)),si(w,`role`,B(le)?`button`:void 0),si(w,`tabindex`,B(le)?0:void 0)}),Sr(`click`,w,function(...e){B(le)?.apply(this,e)}),Sr(`keydown`,w,function(...e){B(ue)?.apply(this,e)}),xr(`mouseenter`,w,function(...e){B(de)?.apply(this,e)}),xr(`mouseleave`,w,function(...e){B(C)?.apply(this,e)}),Sr(`pointerdown`,w,function(...e){t.onpointerdown?.apply(this,e)}),W(e,w),A()}Cr([`click`,`keydown`,`pointerdown`]);var ls=H(`<div><!></div>`);function us(e,t){k(t,!0);let n=Y(t,`weekday`,3,!0),r=Y(t,`colSpan`,3,1),i=Y(t,`ariaHidden`,3,!1),a=Y(t,`disabled`,3,!1),o=Y(t,`highlight`,3,!1),s=Y(t,`cssSpan`,3,!1),c=j(()=>O(`state`)),l=j(()=>B(c).today),u=j(()=>B(c).options.theme);var d=ls();let f;Gr(P(d),()=>t.children),D(d),L(e=>{J(d,1,e),si(d,`role`,i()?null:`columnheader`),si(d,`aria-colspan`,i()||r()<=1?null:r()),si(d,`aria-colindex`,i()?null:t.colIndex),si(d,`aria-hidden`,i()?`true`:null),f=ri(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>Xr([t.className??B(u).colHead,n()&&B(u).weekdays?.[t.date.getUTCDay()],n()&&Zi(t.date,B(l))&&B(u).today,o()&&B(u).highlight,a()&&B(u).disabled])]),W(e,d),A()}var ds=H(`<time></time>`);function fs(e,t){k(t,!0);let n=Y(t,`alPrefix`,3,``),r=j(()=>O(`state`)),i=j(()=>B(r).intlDayHeader),a=j(()=>B(r).intlDayHeaderAL);var o=ds();qr(o,()=>yi(B(i).format(t.date))),L((e,t)=>{si(o,`datetime`,e),si(o,`aria-label`,`${n()??``}${t??``}`)},[()=>Xi(t.date,10),()=>B(a).format(t.date)]),W(e,o),A()}function ps(e,t){k(t,!0);let n=Y(t,`el`,15),r=j(()=>O(`state`)),i=j(()=>B(r).iClasses),a=j(()=>B(r).interaction.action),o=j(()=>B(r).interaction.resizer),s=j(()=>O(`view-state`)),c=j(()=>B(s).snap),l=j(()=>t.chunk.event),u=j(()=>t.chunk.event.display),d=j(()=>e=>B(i)(e,B(l)));function p(e){return B(a)?.draggable(e)?n=>B(a).drag(e,n,t.forceDate,t.forceMargin,B(c)):B(a)?.noAction}let m=j(()=>!Fa(B(u))&&!Pa(B(u))?p(B(l)):void 0);cs(e,{get chunk(){return t.chunk},get classes(){return B(d)},get styles(){return t.styles},get onpointerdown(){return B(m)},get el(){return n()},set el(e){n(e)},body:(e,n=f)=>{var r=U(),i=F(r),a=e=>{var r=U();Kr(F(r),()=>B(o),(e,r)=>{r(e,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(e,t)=>{var r=U();Gr(F(r),n),W(e,r)},$$slots:{default:!0}})}),W(e,r)},s=e=>{var t=U();Gr(F(t),n),W(e,t)};G(i,e=>{B(o)?e(a):e(s,-1)}),W(e,r)},$$slots:{body:!0}}),A()}var ms=H(`<time></time>`),hs=H(`<span></span>`),gs=H(`<a role="button" tabindex="0" aria-haspopup="dialog"></a>`),_s=H(`<div><!> <!></div> <div><!></div>`,1);function vs(e,t){k(t,!0);let n=O(`state`),r=O(`view-state`),i=j(()=>n.features),a=j(()=>n.options.date),o=j(()=>n.options.firstDay),s=j(()=>n.options.moreLinkContent),c=j(()=>n.options.theme),l=j(()=>n.options.weekNumbers),u=j(()=>n.options.weekNumberContent),d=j(()=>r.hiddenChunks),f=j(()=>r.intlDayCell),p=j(()=>t.day.dayStart),m=j(()=>t.day.disabled),h=j(()=>t.day.highlight),g=j(()=>B(p).getUTCMonth()!==B(a).getUTCMonth()),_=j(()=>e=>[...e,B(g)&&B(c).otherMonth]),v=j(()=>B(l)&&B(p).getUTCDay()===(B(o)?1:0)),y=j(()=>B(v)?oa(aa(B(p),B(o)),B(u),B(p)):void 0),b=j(()=>B(d).get(B(p).getTime())),x=j(()=>{let e=``;if(B(b)){let t=`+`+B(b).length+` more`;e=B(s)?Z(B(s))?B(s)({num:B(b).length,text:t}):B(s):t}return e});function S(){r.popupDay=t.day}as(e,{get date(){return B(p)},allDay:!0,get classes(){return B(_)},get disabled(){return B(m)},get highlight(){return B(h)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(e,t)=>{var n=_s(),r=F(n),a=P(r),o=e=>{var t=ms();qr(t,()=>yi(B(f).format(B(p)))),L(e=>si(t,`datetime`,e),[()=>Xi(B(p),10)]),W(e,t)},s=j(()=>B(i).includes(`dayNumber`));G(a,e=>{B(s)&&e(o)});var l=I(a,2),u=e=>{var t=hs();qr(t,()=>yi(B(y))),L(()=>J(t,1,B(c).weekNumber)),W(e,t)};G(l,e=>{B(v)&&e(u)}),D(r);var d=I(r,2),m=P(d),h=e=>{var t=gs(),n=j(()=>ya(S)),r=j(()=>vi(S)),i=j(ya);qr(t,()=>yi(B(x))),Sr(`click`,t,function(...e){B(n)?.apply(this,e)}),Sr(`keydown`,t,function(...e){B(r)?.apply(this,e)}),Sr(`pointerdown`,t,function(...e){B(i)?.apply(this,e)}),W(e,t)};G(m,e=>{B(b)&&e(h)}),D(d),L(()=>{J(r,1,B(c).dayHead),J(d,1,B(c).dayFoot)}),W(e,n)},$$slots:{default:!0}}),A()}Cr([`click`,`keydown`,`pointerdown`]);function ys(e,t){k(t,!0);let n=Y(t,`inPopup`,3,!1),r=j(()=>O(`state`)),i=j(()=>B(r).options.dayMaxEvents),a=j(()=>O(`view-state`)),o=j(()=>B(a).colsCount),s=j(()=>B(a).gridEl),c=j(()=>B(a).hiddenChunks),l=j(()=>B(a).popupDay),u=M(void 0),d=M(1),f=M(!1),p=j(()=>t.chunk.event),m=j(()=>t.chunk.event.display),h=j(()=>B(s).children.item((t.chunk.gridRow-1)*B(o)+t.chunk.gridColumn-1));xn(()=>{n()||N(d,ga(B(h).firstElementChild)||1,!0)});let g=j(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!Fa(B(m))){let r=n()?1:B(d);if(B(p)._margin){let[e,n]=B(p)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return B(f)&&(e.visibility=`hidden`),e});function _(){N(d,Ha(t.chunk,ga(B(u)),ga(B(h).firstElementChild)||1),!0)}function v(){if(B(i)===!0){let e=ga(B(h))-y(B(h));if(N(f,t.chunk.bottom>e),B(f))for(let e of t.chunk.dates){let n=e.getTime();if(B(c).has(n)){let e=B(c).get(n);e.includes(t.chunk)||B(c).set(n,[...e,t.chunk])}else B(c).set(n,[t.chunk])}}else N(f,!1),B(c).size&&B(c).clear()}function y(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=ki(n,ga(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var b={reposition:_,hide:v};{let r=j(()=>n()&&B(l).dayStart),i=j(()=>[B(d),t.chunk.gridRow]);ps(e,{get chunk(){return t.chunk},get styles(){return B(g)},axis:`x`,get forceDate(){return B(r)},get forceMargin(){return B(i)},get el(){return B(u)},set el(e){N(u,e,!0)}})}return A(b)}var bs=H(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>`);function xs(e,t){k(t,!0);let n=O(`view-state`),r=j(()=>O(`state`)),i=j(()=>B(r).interaction),a=j(()=>B(r).options.buttonText),o=j(()=>B(r).options.theme),s=j(()=>n.colsCount),c=j(()=>n.chunks),l=j(()=>n.gridEl),u=j(()=>n.intlDayPopover),d=j(()=>n.popupDay),f=M(void 0),p=M(``),m=j(()=>B(d).gridColumn),h=j(()=>B(d).gridRow),g=j(()=>B(d).dayStart),_=j(()=>B(d).dayEnd),v=j(()=>{let e=[];for(let t of B(c))t.gridRow===B(h)&&t.gridColumn<=B(m)&&t.gridColumn+t.dates.length>B(m)&&e.push(X({},t,za(t.event,B(g),B(_))));return e.sort((e,t)=>e.top-t.top),e});gi(()=>{B(f).show()}),xn(()=>{B(v).length?V(y):b()});function y(){let e=B(l).children.item((B(h)-1)*B(s)+B(m)-1),t=ma(B(f)),n=ma(e),r=ma(B(l));N(p,``);let i;if(t.width>=r.width){i=r.left-n.left;let e=n.right-r.right;N(p,B(p)+`inset-inline-end:${e}px;`)}else i=(n.width-t.width)/2,n.left+i<r.left?i=r.left-n.left:n.left+i+t.width>r.right&&(i=r.right-n.left-t.width);N(p,B(p)+`inset-inline-start:${i}px;`);let a;t.height>=r.height?(a=r.top-n.top,N(p,B(p)+`block-size:${r.height}px;`)):(a=(n.height-t.height)/2,n.top+a<r.top?a=r.top-n.top:n.top+a+t.height>r.bottom&&(a=r.bottom-n.top-t.height)),N(p,B(p)+`inset-block-start:${a}px;`)}function b(){n.popupDay=null}function x(){b(),B(i).action?.noClick()}var S=bs();let ee;var te=P(S),ne=P(te);qr(ne,()=>yi(B(u).format(B(g))));var re=I(ne,2);mn(re,!0);var ie=j(()=>ya(b)),ae=j(()=>vi(b));D(te);var oe=I(te,2);q(oe,21,()=>B(v),K,(e,t)=>{ys(e,{get chunk(){return B(t)},inPopup:!0})}),D(oe),D(S),mi(S,e=>N(f,e),()=>B(f)),qr(S,()=>bi(`pointerdown`)),L(e=>{J(S,1,B(o).popup),ee=ri(S,B(p),ee,{"grid-area":`${B(h)+1} / ${B(m)}`}),J(te,1,B(o).dayHead),si(ne,`datetime`,e),si(re,`aria-label`,B(a).close),J(oe,1,B(o).events)},[()=>Xi(B(g),10)]),xr(`pointerdownoutside`,S,x),xr(`close`,S,b),Sr(`click`,re,function(...e){B(ie)?.apply(this,e)}),Sr(`keydown`,re,function(...e){B(ae)?.apply(this,e)}),W(e,S),A()}Cr([`click`,`keydown`]);var Ss=H(`<div role="columnheader"><span></span></div>`),Cs=H(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function ws(e,t){k(t,!0);let n=O(`state`),r=new rs(n);We(`view-state`,r);let i=j(()=>n.intlDayHeader),a=j(()=>n.intlDayHeaderAL),o=j(()=>n.options.dayMaxEvents),s=j(()=>n.options.theme),c=j(()=>r.grid),l=j(()=>r.chunks),u=j(()=>r.bgChunks),d=j(()=>r.iChunks),f=j(()=>r.hiddenChunks),p=j(()=>r.popupDay),m=[];function h(){Ma(m,B(l)),B(f).clear(),fr().then(g)}function g(){B(f).size,m.forEach(e=>e?.hide())}xn(h),xn(g);var _=U(),v=F(_),y=e=>{var t=Cs();let f;var g=P(t),_=P(g);q(_,21,()=>B(c)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart;var o=Ss();si(o,`aria-colindex`,1+n);var c=P(o);qr(c,()=>yi(B(i).format(r()))),D(o),L((e,t)=>{J(o,1,e),si(c,`aria-label`,t)},[()=>Xr([B(s).colHead,B(s).weekdays?.[r().getUTCDay()]]),()=>B(a).format(r())]),W(e,o)}),D(_),D(g);var v=I(g,2),y=P(v);q(y,21,()=>B(c),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>i+1===ji(B(t))),o=j(()=>n+1===ji(B(c)));vs(e,{get day(){return B(r)},get noIeb(){return B(a)},get noBeb(){return B(o)}})}}),W(e,r)}),D(y),mi(y,e=>r.gridEl=e,()=>r?.gridEl);var b=I(y,2),x=P(b);q(x,19,()=>B(l),e=>e.id,(e,t,n)=>{mi(ys(e,{get chunk(){return B(t)}}),(e,t)=>m[t]=e,e=>m?.[e],()=>[B(n)])});var S=I(x,2);q(S,17,()=>B(u),e=>e.id,(e,t)=>{ys(e,{get chunk(){return B(t)}})}),q(I(S,2),17,()=>B(d),K,(e,t)=>{ys(e,{get chunk(){return B(t)}})}),D(b),D(v);var ee=I(v,2),te=e=>{xs(e,{})};G(ee,e=>{B(p)&&e(te)}),D(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>xi(h)),L(e=>{J(t,1,Xr([B(s).main,B(o)===!0&&B(s).uniform])),f=ri(t,``,f,e),J(g,1,B(s).header),J(_,1,B(s).grid),J(v,1,B(s).body),J(y,1,B(s).grid),J(b,1,B(s).events)},[()=>({"--ec-grid-cols":ji(B(c)[0]),"--ec-grid-rows":ji(B(c))})]),W(e,t)},b=j(()=>!Mi(B(c))&&!Mi(B(c)[0]));G(v,e=>{B(b)&&e(y)}),W(e,_),A()}var Ts={createOptions(e){X(e,{dayMaxEvents:!1,dayCellFormat:{day:`numeric`},dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:`dayGridMonth`}),X(e.buttonText,{dayGridDay:`day`,dayGridMonth:`month`,dayGridWeek:`week`,close:`Close`}),X(e.theme,{uniform:`ec-uniform`,dayFoot:`ec-day-foot`,otherMonth:`ec-other-month`,popup:`ec-popup`}),X(e.views,{dayGridDay:{buttonText:Ya,component:()=>ws,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:eo(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:Xa,component:()=>ws,displayEventEnd:!1,theme:eo(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:Za,component:Es,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:eo(`ec-day-grid ec-month-view`),titleFormat:{year:`numeric`,month:`long`}}})}};function Es(e){return e.features=[`dayNumber`],e.extensions.activeRange=(t,n)=>{let{options:{firstDay:r}}=e;return{start:$i(t,r),end:Qi(n,r)}},ws}function Ds(e,t,n){return e.startEditable??t??e.editable??n}function Os(e,t,n){return e.durationEditable??t??e.editable??n}var ks=!1;function As(e){ks||(ks=!0,window.requestAnimationFrame(()=>{e(),ks=!1}))}function js(e,t,n){return ki(t,Oi(n,e))}function Ms(e){return()=>{let{options:{editable:t,eventStartEditable:n,theme:r}}=e;e.iClasses=(e,i)=>{let{display:a}=i;return[...e,Pa(a)?[r[a]]:!Fa(a)&&Ds(i,n,t)?[r.draggable]:[]]}}}function Ns(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return va(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Ps=class{constructor(e){this.#e(e)}#e(e){Cn(Ms(e)),xn(Ns(e))}};function Fs(e,t){k(t,!0);let n=O(`state`),r=j(()=>n.events),i=j(()=>n.iEvents),a=j(()=>n.features),o=j(()=>n.view),s=j(()=>n.mainEl),c=j(()=>n.options.dateClick),l=j(()=>n.options.dragConstraint),u=j(()=>n.options.dragScroll),d=j(()=>n.options.editable),f=j(()=>n.options.eventStartEditable),p=j(()=>n.options.eventDragMinDistance),m=j(()=>n.options.eventDragStart),h=j(()=>n.options.eventDragStop),g=j(()=>n.options.eventDrop),_=j(()=>n.options.eventLongPressDelay),v=j(()=>n.options.eventResizeStart),y=j(()=>n.options.eventResizeStop),b=j(()=>n.options.eventResize),x=j(()=>n.options.longPressDelay),S=j(()=>n.options.resizeConstraint),ee=j(()=>n.options.selectable),te=j(()=>n.options.select),ne=j(()=>n.options.selectBackgroundColor),re=j(()=>n.options.selectConstraint),ie=j(()=>n.options.selectLongPressDelay),ae=j(()=>n.options.selectMinDistance),oe=j(()=>n.options.unselect),se=j(()=>n.options.unselectAuto),ce=j(()=>n.options.unselectCancel),le=j(()=>n.options.validRange),ue,de,C,w,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,T,je,E,Me;function Ne(e){return Ds(e,B(f),B(d))}function D(e,t,n,r,i){ue||(ue=ot(t)?1:6,at()&&(C=e,Le(t,i),n&&(pe=n),r&&(je=r),Te=`dragging`,Re(t)))}function Pe(e,t,n,r,i,a,o,s){ue||(ue=ot(t)?n?3:2:6,at()&&(C=e,Le(t,s),i&&(pe=i),a&&(je=a),Te=r===`x`?`resizingX`:`resizingY`,nt()?(Ee=Q(C.end),we?(ta(Ee,C.start),Ee>=C.end&&qi(Ee)):(Gi(Ee,E),Ee<C.start&&(Ee=C.start),pe=C.start)):(Ee=Q(C.start),we?(ta(Ee,C.end),Ee<=C.start&&!o&&Ki(Ee)):(Wi(Ee,E),Ee>C.end&&(Ee=C.end),pe=C.end,o||(pe=Gi(Q(pe),E))),o&&!we&&(Me=E)),Re(t)))}function Fe(e,t){ue||(ue=ot(e)?B(ee)&&!B(a).includes(`list`)?4:5:6,at()&&(Le(e,t),Te=`selecting`,De=we?Ui({day:1}):E,C={allDay:we,start:pe,end:Wi(Q(pe),De),resourceIds:he?[he.id]:[]},Re(e)))}function Ie(){ue||=6}function Le(e,t){window.getSelection().removeAllRanges(),_e=ye=e.clientX,ve=be=e.clientY,E=t?.duration;let n=_a(ye,be);({allDay:we,date:pe,resource:he}=fa(n)(ye,be)),Se=B(s)!==ha(n,3),xe=ha(n,1),Ge(),e.pointerType!==`mouse`&&(Ae=setTimeout(()=>{ue&&(de=!0,Re(e))},(it()?B(ie):B(_))??B(x)))}function Re(e){if(de||e&&e.pointerType===`mouse`&&et()>=(it()?B(ae):B(p))){de=!0,st(e),n.iClass=Te,w||(it()?qe():Ke(e,tt()?B(v):B(m)));let t=We(Ue());if(t){let n;if({allDay:n,date:me,resource:ge}=t,n===we){let t=Ye({},w),n=B(S);Ce=Ui((me-pe)/1e3),nt()?(t.start=Wi(Q(C.start),Ce),t.start>Ee&&(t.start=Ee,Ce=Ui((Ee-C.start)/1e3))):(t.end=Wi(Q(C.end),Ce),Me&&Wi(t.end,Me),tt()?t.end<Ee&&(t.end=Ee,Ce=Ui((Ee-C.end)/1e3)):it()?(t.end<C.end?(t.start=Gi(t.end,De),t.end=C.end):t.start=C.start,n=B(re)):(t.start=Wi(Q(C.start),Ce),he&&(t.resourceIds=C.resourceIds.filter(e=>e!==he.id),t.resourceIds.push(ge.id)),n=B(l)));do{if(n!==void 0&&(t=Ye(Aa(C),t),n(it()?Qe(t,e):$e(t,C,e))===!1)){Ze(C);break}Ze(t)}while(0)}}}B(u)&&As(()=>{T&&(Se||(be<T.top+24&&(B(s).scrollTop+=ki(-8,(be-T.top-24)/3)),be>T.bottom-24&&(B(s).scrollTop+=Oi(8,(be-T.bottom+24)/3))),ye<T.left+24&&(B(s).scrollLeft+=ki(-8,(ye-T.left-24)/3)),ye>T.right-24&&(B(s).scrollLeft+=Oi(8,(ye-T.right+24)/3)),be<24&&window.scrollBy(0,ki(-8,(be-24)/3)),be>window.innerHeight-24&&window.scrollBy(0,Oi(8,(be-window.innerHeight+24)/3)))})}function ze(){at()&&(Ge(),Re())}function Be(e){at()&&e.isPrimary&&(ye=e.clientX,be=e.clientY,Re(e))}function Ve(e){if(Oe&&B(se)&&!(B(ce)&&e.target.closest(B(ce)))&&st(e),ue&&e.isPrimary){if(de)if(it()){if(Oe=!0,Z(B(te))){let t=Qe(w,e);B(te)(t)}}else{C.display=fe;let t=tt()?B(y):B(h);Z(t)&&t({event:ka(C),jsEvent:e,view:xa(B(o))});let n=Aa(C);if(Xe(C,w),Je(),t=tt()?B(b):B(g),Z(t)){let r=C,i=$e(C,n,e);t(X(i,{revert(){Xe(r,n)}}))}}else if((rt()||it())&&Z(B(c))&&!ke){ye=e.clientX,be=e.clientY;let t=_a(ye,be);if(t){let{allDay:n,date:r,resource:i}=fa(t)(ye,be);B(c)({allDay:n,date:Yi(r),dateStr:Xi(r),dayEl:t,jsEvent:e,view:xa(B(o)),resource:i})}}He()}ke=!1}function He(){de=!1,ue=_e=ve=ye=be=C=fe=pe=me=he=ge=Ce=Me=we=Ee=De=je=xe=T=E=void 0,n.iClass=void 0,Ae&&=(clearTimeout(Ae),void 0)}function Ue(){return _a(js(ye,T.left,T.right),js(be,T.top,T.bottom))}function We(e){if(e){let t=fa(e)(ye,be);if(t.disabled){if(!B(le).end||t.date<B(le).end)return We(e.nextElementSibling);if(!B(le).start||t.date>B(le).start)return We(e.previousElementSibling)}else return(it()||tt())&&t.resource&&!w.resourceIds.includes(t.resource.id)&&!B(a).includes(`timeline`)?We(ye>_e?e.previousElementSibling:e.nextElementSibling):t}return null}function Ge(){let e=ma(B(s)),t=ma(xe),n=e.width/B(s).offsetWidth,r=e.height/B(s).offsetHeight,i=Bi();T={left:ki(0,i?e.right-B(s).clientWidth*n:t.left+B(s).scrollLeft*n),right:Oi(document.documentElement.clientWidth,i?t.right+B(s).scrollLeft*n:e.left+B(s).clientWidth*n)-2,top:ki(0,t.top+(Se?0:B(s).scrollTop)*r),bottom:Oi(document.documentElement.clientHeight,Se?t.bottom:e.top+B(s).clientHeight*r)-2}}function Ke(e,t){Z(t)&&t({event:ka(C),jsEvent:e,view:xa(B(o))}),fe=C.display,C.display=`preview`,w=Aa(C),je!==void 0&&(w._margin=je),Me&&Wi(w.end,Me),C.display=`ghost`,B(r).length=B(r).length}function qe(){w={id:`{select}`,allDay:C.allDay,start:C.start,title:``,display:`preview`,extendedProps:{},backgroundColor:B(ne),resourceIds:C.resourceIds,classNames:[],styles:[]}}function Je(){w=void 0,B(i).delete(`action`)}function Ye(e,t){return e.start=t.start,e.end=t.end,e.resourceIds=t.resourceIds,{...e}}function Xe(e,t){Ye(e,t),B(r).length=B(r).length}function Ze(e){w=Ye(w,e),B(i).set(`action`,w)}function Qe(e,t){let{start:n,end:r}=ka(e);return{start:n,end:r,startStr:Xi(e.start),endStr:Xi(e.end),allDay:we,view:xa(B(o)),resource:he,jsEvent:t}}function $e(e,t,n){let r;return r=tt()?nt()?{startDelta:Ce,endDelta:Ui(0)}:{startDelta:Ui(0),endDelta:Ce}:{delta:Ce,oldResource:he===ge?void 0:he,newResource:he===ge?void 0:ge},X(r,{event:ka(e),oldEvent:ka(t),view:xa(B(o)),jsEvent:n}),r}function et(){return Math.sqrt((ye-_e)**2+(be-ve)**2)}function tt(){return ue===2||nt()}function nt(){return ue===3}function rt(){return ue===5}function it(){return ue===4}function at(){return ue&&ue<5}function ot(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function st(e){Oe&&(Oe=!1,Je(),Z(B(oe))&&B(oe)({jsEvent:e,view:xa(B(o))}))}Cn(()=>{B(o),st()});function ct(){ke=!0}function lt(e){if(at()){let t=e.target,n=[],r=()=>Li(n);n.push(va(t,`touchmove`,ut(()=>de))),n.push(va(t,`touchend`,r)),n.push(va(t,`touchcancel`,r))}}function ut(e){return t=>{e()&&t.preventDefault()}}gi(()=>va(window,`touchmove`,Ri,{passive:!1}));var dt={draggable:Ne,drag:D,resize:Pe,select:Fe,noAction:Ie,handleScroll:ze,unselect:st,noClick:ct};xr(`pointermove`,tn,Be),xr(`pointerup`,tn,Ve),xr(`pointercancel`,tn,He),xr(`scroll`,tn,ze);var ft=j(()=>ut(at));xr(`selectstart`,tn,function(...e){B(ft)?.apply(this,e)});var pt=j(()=>ut(()=>Ae));return xr(`contextmenu`,tn,function(...e){B(pt)?.apply(this,e)}),xr(`touchstart`,tn,lt,void 0,!0),A(dt)}function Is(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).iEvents),i=j(()=>B(n).options.slotDuration),a=0,o=0,s;function c(){let e=_a(a,o);if(e&&!B(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=fa(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=Wi(Q(n),B(i)),s.resourceIds=c?[c.id]:[],B(r).set(`pointer`,{...s});return}}f()}function l(){c()}function u(e){p(e)&&(a=e.clientX,o=e.clientY,c())}function d(){s={id:`{pointer}`,title:``,display:`pointer`,extendedProps:{},backgroundColor:`transparent`,classNames:[],styles:[]}}function f(){s=void 0,B(r).delete(`pointer`)}function p(e){return e.isPrimary&&e.pointerType===`mouse`}var m={handleScroll:l};return xr(`pointermove`,tn,u),xr(`scroll`,tn,l),A(m)}var Ls=H(`<div></div>`),Rs=H(`<div></div>`),zs=H(`<!> <!> <!>`,1);function Bs(e,t){k(t,!0);let n=Y(t,`forceDate`,3,void 0),r=Y(t,`forceMargin`,3,void 0),i=j(()=>O(`state`)),a=j(()=>B(i).interaction.action),o=j(()=>B(i).options.editable),s=j(()=>B(i).options.eventDurationEditable),c=j(()=>B(i).options.eventResizableFromStart),l=j(()=>B(i).options.theme),u=j(()=>O(`view-state`)),d=j(()=>B(u).snap),f=j(()=>t.chunk.event),p=j(()=>t.chunk.event.display),m=j(()=>!Fa(B(p))&&!Pa(B(p))&&Os(B(f),B(s),B(o)));function h(e){return i=>B(a).resize(B(f),i,e,t.axis,n(),r(),t.chunk.zeroDuration,B(d))}var g=zs(),_=F(g),v=e=>{var t=Ls(),n=j(()=>h(!0));L(()=>J(t,1,`${B(l).resizer??``} ${B(l).start??``}`)),Sr(`pointerdown`,t,function(...e){B(n)?.apply(this,e)}),W(e,t)};G(_,e=>{B(m)&&B(c)&&e(v)});var y=I(_,2);Gr(y,()=>t.children);var b=I(y,2),x=e=>{var t=Rs(),n=j(()=>h(!1));L(()=>J(t,1,B(l).resizer)),Sr(`pointerdown`,t,function(...e){B(n)?.apply(this,e)}),W(e,t)};G(b,e=>{B(m)&&e(x)}),W(e,g),A()}Cr([`pointerdown`]);var Vs=H(`<!> <!>`,1);function Hs(e,t){k(t,!0);let n=O(`state`);new Ps(n);let r=j(()=>n.interaction),i=j(()=>n.options.pointer);B(r).resizer=Bs;var a=Vs(),o=F(a);mi(Fs(o,{}),e=>B(r).action=e,()=>B(r)?.action);var s=I(o,2),c=e=>{mi(Is(e,{}),e=>B(r).pointer=e,()=>B(r)?.pointer)};G(s,e=>{B(i)&&e(c)}),W(e,a),A()}var Us={createOptions(e){X(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:``}),X(e.theme,{draggable:`ec-draggable`,ghost:`ec-ghost`,preview:`ec-preview`,pointer:`ec-pointer`,resizer:`ec-resizer`,start:`ec-start`,dragging:`ec-dragging`,resizingY:`ec-resizing-y`,resizingX:`ec-resizing-x`,selecting:`ec-selecting`})},initState(e){e.auxComponents.push(Hs)}},Ws=class{#e;get intlListDay(){return B(this.#e)}set intlListDay(e){N(this.#e,e)}#t;get intlListDaySide(){return B(this.#t)}set intlListDaySide(e){N(this.#t,e)}constructor(e){this.#e=j(Ka(e,`listDayFormat`)),this.#t=j(Ka(e,`listDaySideFormat`))}},Gs=H(`<div></div> <!>`,1);function Ks(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).interaction),i=j(()=>B(n).options.theme),a=j(()=>e=>(delete e[`background-color`],delete e.color,e));{let n=(e,t=f,n=f,r=f)=>{var a=Gs(),o=F(a);let s;Gr(I(o,2),t),L(()=>{J(o,1,B(i).eventTag),s=ri(o,``,s,{"background-color":n()})}),W(e,a)},o=j(()=>B(r).action?.noAction);cs(e,{get chunk(){return t.chunk},get styles(){return B(a)},get onpointerdown(){return B(o)},body:n,$$slots:{body:!0}})}A()}var qs=H(`<h4><time></time> <time></time></h4> <!>`,1);function Js(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).filteredEvents),i=j(()=>B(n).options.highlightedDates),a=j(()=>B(n).options.theme),o=j(()=>B(n).options.validRange),s=j(()=>O(`view-state`)),c=j(()=>B(s).intlListDay),l=j(()=>B(s).intlListDaySide),u=j(()=>B(i).some(e=>Zi(e,t.date))),d=j(()=>no(t.date,B(o))),f=j(()=>Xi(t.date,10)),p=j(()=>{let e=[];if(!B(d)){let n=t.date,i=Ki(Q(t.date));for(let t of B(r))if(!Fa(t.display)&&Na(t,n,i)){let r=za(t,n,i);e.push(r)}}return e});var m=U(),h=F(m),g=e=>{as(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return B(d)},get highlight(){return B(u)},children:(e,n)=>{var r=qs(),i=F(r),o=P(i);qr(o,()=>yi(B(c).format(t.date)));var s=I(o,2);qr(s,()=>yi(B(l).format(t.date))),D(i),q(I(i,2),17,()=>B(p),e=>e.event,(e,t)=>{Ks(e,{get chunk(){return B(t)}})}),L(()=>{J(i,1,B(a).dayHead),si(o,`datetime`,B(f)),J(s,1,B(a).daySide),si(s,`datetime`,B(f))}),W(e,r)},$$slots:{default:!0}})};G(h,e=>{B(p).length&&e(g)}),W(e,m),A()}var Ys=H(`<div></div>`),Xs=H(`<section><!></section>`);function Zs(e,t){k(t,!0);let n=O(`state`);We(`view-state`,new Ws(n));let r=j(()=>n.filteredEvents),i=j(()=>n.view),a=j(()=>n.viewDates),o=j(()=>n.options.noEventsClick),s=j(()=>n.options.noEventsContent),c=j(()=>n.options.theme),l=j(()=>{let e=!0;if(!Mi(B(a))){let t=B(a)[0],n=Ki(Q(B(a).at(-1)));for(let i of B(r))if(!Fa(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),u=j(()=>Z(B(s))?B(s)():B(s));function d(e){Z(B(o))&&B(o)({jsEvent:e,view:xa(B(i))})}var f=Xs(),p=P(f),m=e=>{var t=Ys();qr(t,()=>yi(B(u))),L(()=>J(t,1,B(c).noEvents)),Sr(`click`,t,d),W(e,t)},h=e=>{var t=U();q(F(t),17,()=>B(a),K,(e,t)=>{Js(e,{get date(){return B(t)}})}),W(e,t)};G(p,e=>{B(l)?e(m):e(h,-1)}),D(f),mi(f,e=>n.mainEl=e,()=>n?.mainEl),L(()=>J(f,1,B(c).main)),W(e,f),A()}Cr([`click`]);var Qs={createOptions(e){X(e,{listDayFormat:{weekday:`long`},listDaySideFormat:{year:`numeric`,month:`long`,day:`numeric`},noEventsClick:void 0,noEventsContent:`No events`,view:`listWeek`}),X(e.buttonText,{listDay:`day`,listWeek:`week`,listMonth:`month`,listYear:`year`}),X(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),X(e.views,{listDay:{buttonText:Ya,component:$s,duration:{days:1},theme:eo(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:Xa,component:$s,duration:{weeks:1},theme:eo(`ec-list ec-week-view`)},listMonth:{buttonText:Za,component:$s,duration:{months:1},theme:eo(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:Qa,component:$s,duration:{years:1},theme:eo(`ec-list ec-year-view`),titleFormat:{year:`numeric`}}})}};function $s(e){return e.features=[`list`],Zs}function ec(e,t,n=!0){let r=[];for(let{gridColumn:i,gridRow:a,resource:o,start:s,end:c,disabled:l}of t)if(!l&&Na(e,s,c,o)){let t=za(e,s,c);X(t,{gridColumn:i,gridRow:a,resource:o,top:(t.start-s)/1e3,height:(t.end-t.start)/1e3,maxHeight:(c-t.start)/1e3}),n&&Ga(t),r.push(t)}return r}function tc(e){let t={};for(let n of e){let{gridColumn:e}=n,r=t[e],i=0;if(r&&n.start<r.end){for(;i<r.columns.length&&!(r.columns[i].at(-1).end<=n.start);++i);n.end>r.end&&(r.end=n.end)}else r={columns:[],end:n.end};r.columns.length<i+1&&r.columns.push([]),r.columns[i].push(n),t[e]=r,n.group=r,n.groupColumn=i}}function nc(e){let t=`all-day`,n;return e?(n=Z(e)?e({text:t}):e,typeof n==`string`&&(n={html:n})):n={html:t},n}function rc(e){e.extensions.activeRange=(t,n)=>{let{options:{slotMaxTime:r}}=e;if(r.days||r.seconds>86400){Wi(qi(n),r);let e=qi(Q(n));e<t&&(t=e)}return{start:t,end:n}}}function ic(e){`scrollTime`in e||(X(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:`06:00:00`,slotDuration:`00:30:00`,slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:`numeric`,minute:`2-digit`},slotMaxTime:`24:00:00`,slotMinTime:`00:00:00`,snapDuration:void 0}),X(e.theme,{nowIndicator:`ec-now-indicator`,sidebar:`ec-sidebar`,slot:`ec-slot`}))}function ac(e){`allDaySlot`in e||(X(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),X(e.theme,{allDay:`ec-all-day`}))}function oc(e){`scrollTime`in e||X(e,{scrollTime:Ui,slotDuration:Ui,slotLabelInterval:e=>e===void 0?void 0:Ui(e),slotMaxTime:Ui,slotMinTime:Ui,snapDuration:e=>e===void 0?void 0:Ui(e)})}function sc(e){`resourceLabelContent`in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function cc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{slotTimeLimits:a}=t,o=[];return V(()=>{let e=1;for(let t of n)o.push({gridColumn:e,gridRow:1,resource:void 0,start:Wi(Q(t),a.min),end:Wi(Q(t),a.max),dayStart:t,dayEnd:Ki(Q(t)),disabled:no(t,i),highlight:r.some(e=>Zi(e,t))}),++e}),[o]}}function lc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[],o=[],s=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?(a=a.concat(ec(e,t)),e.allDay&&(s=s.concat(Ba(e,t)))):e.allDay?o=o.concat(Ba(e,t)):i=i.concat(ec(e,t));tc(i),Va(o)}),{chunks:i,bgChunks:a,allDayChunks:o,allDayBgChunks:s}}}function uc(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[],a=[];for(let[,e]of n)e&&V(()=>{for(let t of r)e.allDay?a=a.concat(Ba(e,t,!1)):i=i.concat(ec(e,t,!1))});return{iChunks:i,allDayIChunks:a}}}function dc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o;return V(()=>{o=uo(i,a,r,n,t)}),o}}function fc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return V(()=>{r=n===void 0?$(t)<3600?2:1:Di($(n)/$(t))||1}),r}}function pc(e,t){return()=>{let{options:{slotDuration:n}}=e,{intlSlotLabel:r,slotLabelPeriodicity:i,slotTimeLimits:a}=t,o;return V(()=>{o=lo(Ji(Hi()),n,i,a,r)}),o}}function mc(e){return()=>{let{options:{slotDuration:t,snapDuration:n}}=e;return n??=t,{duration:n,ratio:$(n)/$(t)}}}function hc(){return class{#e;get intlSlotLabel(){return B(this.#e)}set intlSlotLabel(e){N(this.#e,e)}#t;get slotLabelPeriodicity(){return B(this.#t)}set slotLabelPeriodicity(e){N(this.#t,e)}#n;get sidebarWidth(){return B(this.#n)}set sidebarWidth(e){N(this.#n,e,!0)}#r;get snap(){return B(this.#r)}set snap(e){N(this.#r,e)}constructor(e){this.#e=j(Ka(e,`slotLabelFormat`)),this.#t=j(fc(e)),this.#n=M(0),this.#r=j(mc(e))}}}function gc(e){return class extends e{#e;get slotTimeLimits(){return B(this.#e)}set slotTimeLimits(e){N(this.#e,e)}#t;get slots(){return B(this.#t)}set slots(e){N(this.#t,e)}#n;get chunks(){return B(this.#n)}set chunks(e){N(this.#n,e)}#r;get bgChunks(){return B(this.#r)}set bgChunks(e){N(this.#r,e)}#i;get allDayChunks(){return B(this.#i)}set allDayChunks(e){N(this.#i,e)}#a;get allDayBgChunks(){return B(this.#a)}set allDayBgChunks(e){N(this.#a,e)}#o;get iChunks(){return B(this.#o)}set iChunks(e){N(this.#o,e)}#s;get allDayIChunks(){return B(this.#s)}set allDayIChunks(e){N(this.#s,e)}constructor(e){super(e),this.#e=j(dc(e)),this.#t=j(pc(e,this));let t=j(lc(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks),i=j(()=>B(t).allDayChunks),a=j(()=>B(t).allDayBgChunks);this.#n=j(()=>B(n)),this.#r=j(()=>B(r)),this.#i=j(()=>B(i)),this.#a=j(()=>B(a));let o=j(uc(e,this)),s=j(()=>B(o).iChunks),c=j(()=>B(o).allDayIChunks);this.#o=j(()=>B(s)),this.#s=j(()=>B(c))}}}var _c=class extends gc(hc()){#e;get grid(){return B(this.#e)}set grid(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(cc(e,this))}};function vc(e){return()=>{let{activeRange:t,filteredEvents:n,resources:r,options:{filterResourcesWithEvents:i},extensions:{viewResources:a}}=e,o=a?a(r):r;return V(()=>{i&&(o=r.filter(e=>n.some(n=>!Fa(n.display)&&Na(n,t.start,t.end,e)))),o.length||(o=ro([{}]))}),o}}function yc(e,t){return()=>{let{viewDates:n,options:{datesAboveResources:r,highlightedDates:i,validRange:a}}=e,{slotTimeLimits:o,viewResources:s}=t,c=[];return V(()=>{let e=1,t=r?[n,s]:[s,n];for(let n of t[0]){let s=[];for(let c of t[1]){let t=r?n:c,l=r?c:n;s.push({gridColumn:e,gridRow:1,resource:l,start:Wi(Q(t),o.min),end:Wi(Q(t),o.max),dayStart:t,dayEnd:Ki(Q(t)),disabled:no(t,a),highlight:i.some(e=>Zi(e,t))}),++e}c.push(s)}}),c}}function bc(e){return class extends e{#e;get viewResources(){return B(this.#e)}set viewResources(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(vc(e))}}}var xc=class extends bc(gc(hc())){#e;get grid(){return B(this.#e)}set grid(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(yc(e,this))}},Sc=H(`<span></span>`);function Cc(e,t){k(t,!0);let n=Y(t,`date`,3,void 0),r=Y(t,`setLabel`,3,void 0),i=j(()=>O(`state`)),a=j(()=>B(i).intlDayHeaderAL),o=j(()=>B(i).options.resourceLabelContent),s=j(()=>B(i).options.resourceLabelDidMount),c=M(void 0),l=j(()=>B(o)?Z(B(o))?B(o)({resource:t.resource,date:n()?Yi(n()):void 0}):B(o):t.resource.title),u=M(void 0);xn(()=>{B(l),V(()=>{n()?N(u,B(a).format(n())+`, `+B(c).innerText):r()&&(N(u,void 0),r()(B(c).innerText))})}),gi(()=>{Z(B(s))&&B(s)({resource:t.resource,date:n()?Yi(n()):void 0,el:B(c)})});var d=Sc();mi(d,e=>N(c,e),()=>B(c)),qr(d,()=>yi(B(l))),L(()=>si(d,`aria-label`,B(u))),W(e,d),A()}function wc(e,t){k(t,!0);let n=Y(t,`allDay`,3,!1),r=j(()=>O(`state`)),i=j(()=>B(r).options.slotHeight),a=j(()=>O(`view-state`)),o=j(()=>B(a).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=M(void 0);function p(e,t){if(n())return B(s);{let e=ma(B(f)),n=e.height/B(f).offsetHeight;return Wi(Q(B(c)),B(o).duration,Ei((t-e.top)/(B(i)*B(o).ratio*n)))}}as(e,{get date(){return B(s)},get allDay(){return n()},get resource(){return B(l)},dateFromPoint:p,get disabled(){return B(u)},get highlight(){return B(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return B(f)},set el(e){N(f,e,!0)}}),A()}function Tc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotEventOverlap),i=j(()=>B(n).options.slotDuration),a=j(()=>B(n).options.slotHeight),o=j(()=>e=>{let n=$(B(i)),o=t.chunk.top/n*B(a),s=t.chunk.height/n*B(a)||B(a),c=t.chunk.maxHeight/n*B(a);e[`grid-column`]=t.chunk.gridColumn,e[`inset-block-start`]=`${o}px`,e[`min-block-size`]=`${s}px`,e[`block-size`]=`${s}px`,e[`max-block-size`]=`${c}px`;let l=`100% - var(--ec-event-col-gap)`;if(t.chunk.group){let n=t.chunk.group.columns.length;e[`z-index`]=`${t.chunk.groupColumn+1}`,e[`inset-inline-start`]=`calc((${l}) / ${n} * ${t.chunk.groupColumn})`,e[`inline-size`]=`calc((${l}) / ${n} * ${B(r)?.5*(1+n-t.chunk.groupColumn):1})`}return e});ps(e,{get chunk(){return t.chunk},get styles(){return B(o)},axis:`y`}),A()}function Ec(e,t){k(t,!0);let n=M(void 0),r=M(0),i=j(()=>t.chunk.event),a=j(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(B(r)||B(i)._margin)&&(e[`margin-block-start`]=`${B(i)._margin??B(r)}px`),e));function o(){N(r,Ha(t.chunk,ga(B(n))),!0)}var s={reposition:o};return ps(e,{get chunk(){return t.chunk},get styles(){return B(a)},axis:`x`,get forceMargin(){return B(r)},get el(){return B(n)},set el(e){N(n,e,!0)}}),A(s)}var Dc=H(`<div></div>`);function Oc(e,t){k(t,!0);let n=Y(t,`span`,3,1),r=j(()=>O(`state`)),i=j(()=>B(r).mainEl),a=j(()=>B(r).now),o=j(()=>B(r).today),s=j(()=>B(r).options.slotDuration),c=j(()=>B(r).options.slotHeight),l=j(()=>B(r).options.theme),u=j(()=>O(`view-state`)),d=j(()=>B(u).sidebarWidth),f=j(()=>{for(let e of t.days)if(Zi(e.dayStart,B(o)))return e;return{}}),p=j(()=>B(f).gridColumn),m=j(()=>B(f).start),h=j(()=>B(f).end),g=j(()=>{if(B(a)<B(m)||B(a)>B(h))return null;let e=$(B(s));return(B(a)-B(m))/1e3/e*B(c)}),_=j(()=>({root:B(i),rootMargin:Bi()?`0px -${B(d)+5.5}px 0px 0px`:`0px 0px 0px -${B(d)+5.5}px`,threshold:0}));function v(e,t){e.classList.toggle(B(l).hidden,!t.isIntersecting)}var y=U(),b=F(y),x=e=>{var t=Dc();let r;qr(t,()=>Si(v,B(_))),L(()=>{J(t,1,B(l).nowIndicator),r=ri(t,``,r,{"grid-column":`${B(p)+1} / span ${n()??``}`,"inset-block-start":`${B(g)??``}px`})}),W(e,t)};G(b,e=>{B(p)&&B(g)!==null&&e(x)}),W(e,y),A()}var kc=H(`<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),Ac=H(`<div><time></time></div>`),jc=H(`<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 Mc(e,t){k(t,!0);let n=Y(t,`viewState`,7),r=O(`state`);n()||n(new _c(r)),We(`view-state`,n());let i=j(()=>r.mainEl),a=j(()=>r.viewDates),o=j(()=>r.options.allDayContent),s=j(()=>r.options.allDaySlot),c=j(()=>r.options.columnWidth),l=j(()=>r.options.nowIndicator),u=j(()=>r.options.scrollTime),d=j(()=>r.options.slotHeight),f=j(()=>r.options.slotDuration),p=j(()=>r.options.theme),m=j(()=>n().allDayChunks),h=j(()=>n().allDayBgChunks),g=j(()=>n().allDayIChunks),_=j(()=>n().bgChunks),v=j(()=>n().chunks),y=j(()=>n().iChunks),b=j(()=>n().grid),x=j(()=>n().sidebarWidth),S=j(()=>n().slots),ee=j(()=>n().slotLabelPeriodicity),te=j(()=>n().slotTimeLimits),ne=M(0),re=j(()=>nc(B(o)));xn(()=>{B(u),Mi(B(a))||fr().then(ie)});function ie(){B(i).scrollTop=(($(B(u))-$(B(te).min))/$(B(f))-.5)*B(d)}let ae=[];function oe(){Ma(ae,B(m))}xn(oe);var se=U(),ce=F(se),le=e=>{var i=jc();let a;var o=P(i),u=P(o),f=I(u,2),te=P(f),ie=e=>{var n=U();Gr(F(n),()=>t.header),W(e,n)},se=e=>{var t=U();q(F(t),17,()=>B(b)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart,i=()=>B(t).disabled,a=()=>B(t).highlight;us(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{fs(e,{get date(){return r()}})},$$slots:{default:!0}})}),W(e,t)};G(te,e=>{t.header?e(ie):e(se,-1)}),D(f);var ce=I(f,2),le=e=>{var t=kc(),n=P(t);qr(n,()=>yi(B(re)));var r=I(n,2);q(r,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>n+1===ji(B(b))&&i+1===ji(B(t)));wc(e,{get day(){return B(r)},allDay:!0,get noIeb(){return B(a)}})}}),W(e,r)}),D(r);var i=I(r,2),a=P(i);q(a,19,()=>B(m),e=>e.id,(e,t,n)=>{mi(Ec(e,{get chunk(){return B(t)}}),(e,t)=>ae[t]=e,e=>ae?.[e],()=>[B(n)])});var o=I(a,2);q(o,17,()=>B(h),e=>e.id,(e,t)=>{Ec(e,{get chunk(){return B(t)}})}),q(I(o,2),17,()=>B(g),K,(e,t)=>{Ec(e,{get chunk(){return B(t)}})}),D(i),D(t),L(()=>{J(t,1,B(p).allDay),J(n,1,B(p).sidebar),J(r,1,B(p).grid),J(i,1,B(p).events)}),W(e,t)};G(ce,e=>{B(s)&&e(le)}),D(o);var ue=I(o,2),de=P(ue);q(de,21,()=>B(S),K,(e,t,n)=>{var r=Ac();let i;var a=P(r);qr(a,()=>yi(B(t)[1])),D(r),L(()=>{J(r,1,Xr([B(p).slot,!n&&B(p).hidden])),i=ri(r,``,i,{"--ec-slot-label-periodicity":B(t)[2]}),si(a,`datetime`,B(t)[0])}),W(e,r)}),D(de);var C=I(de,2);q(C,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>n+1===ji(B(b))&&i+1===ji(B(t)));wc(e,{get day(){return B(r)},get noIeb(){return B(a)},noBeb:!0})}}),W(e,r)}),D(C);var w=I(C,2),fe=P(w);q(fe,17,()=>B(v),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return B(t)}})});var pe=I(fe,2);q(pe,17,()=>B(_),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return B(t)}})}),q(I(pe,2),17,()=>B(y),K,(e,t)=>{Tc(e,{get chunk(){return B(t)}})}),D(w),D(ue);var me=I(ue,2),he=e=>{var n=U(),r=F(n),i=e=>{var n=U();Gr(F(n),()=>t.nowIndicator),W(e,n)},a=e=>{Oc(e,{get days(){return B(b)[0]}})};G(r,e=>{t.nowIndicator?e(i):e(a,-1)}),W(e,n)};G(me,e=>{B(l)&&e(he)}),D(i),mi(i,e=>r.mainEl=e,()=>r?.mainEl),qr(i,()=>xi(oe)),L(e=>{J(i,1,B(p).main),a=ri(i,``,a,e),J(o,1,B(p).header),J(u,1,B(p).sidebar),J(f,1,B(p).grid),J(ue,1,B(p).body),J(de,1,B(p).sidebar),J(C,1,B(p).grid),J(w,1,B(p).events)},[()=>({"--ec-grid-cols":ji(B(b))*ji(B(b)[0]),"--ec-col-group-span":ji(B(b)[0]),"--ec-col-width":B(c)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":B(ee),"--ec-slot-height":`${B(d)??``}px`,"--ec-header-height":`${B(ne)??``}px`,"--ec-sidebar-width":`${B(x)??``}px`})]),fi(u,`offsetWidth`,e=>n().sidebarWidth=e),fi(o,`offsetHeight`,e=>N(ne,e)),W(e,i)},ue=j(()=>!Mi(B(b))&&!Mi(B(b)[0]));G(ce,e=>{B(ue)&&e(le)}),W(e,se),A()}var Nc=H(`<!> <!>`,1);function Pc(e,t){k(t,!0);let n=O(`state`),r=new xc(n),i=j(()=>n.today),a=j(()=>n.mainEl),o=j(()=>n.viewDates),s=j(()=>n.options.scrollTime),c=j(()=>n.options.datesAboveResources),l=j(()=>n.options.theme),u=j(()=>r.grid),d=j(()=>r.sidebarWidth),f=en([]);xn(()=>{B(c)&&(B(o),B(s),fr().then(p))});function p(){if(B(i)>=B(o)[0]&&B(i)<=B(o).at(-1))for(let e of B(u)){let t=e[0];if(Zi(t.dayStart,B(i))){B(a).scrollLeft=(B(a).scrollWidth-B(d))/(ji(B(u))*ji(e))*(t.gridColumn-1)*(Bi()?-1:1);break}}}Mc(e,{get viewState(){return r},header:e=>{var t=Nc(),n=F(t);q(n,17,()=>B(u),K,(e,t,n)=>{let r=j(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=B(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=j(()=>ji(B(u)[0])>1?B(l).colGroup:void 0),a=j(()=>ji(B(t))),o=j(()=>1+n*ji(B(t))),s=j(()=>B(c)&&B(r).disabled),d=j(()=>B(c)&&B(r).highlight);us(e,{get date(){return B(r).date},get className(){return B(i)},get weekday(){return B(c)},get colSpan(){return B(a)},get colIndex(){return B(o)},get disabled(){return B(s)},get highlight(){return B(d)},children:(e,t)=>{var i=U(),a=F(i),o=e=>{fs(e,{get date(){return B(r).date}})},s=e=>{Cc(e,{get resource(){return B(r).resource},setLabel:e=>f[n]=e+`, `})};G(a,e=>{B(c)?e(o):e(s,-1)}),W(e,i)},$$slots:{default:!0}})}});var r=I(n,2),i=e=>{var t=U();q(F(t),17,()=>B(u),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{let a=j(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=B(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=j(()=>1+i+n*ji(B(t)));us(e,{get date(){return B(a).date},get colIndex(){return B(r)},get disabled(){return B(a).disabled},get highlight(){return B(a).highlight},children:(e,t)=>{var r=U(),i=F(r),o=e=>{Cc(e,{get resource(){return B(a).resource},get date(){return B(a).date}})},s=e=>{fs(e,{get date(){return B(a).date},get alPrefix(){return f[n]}})};G(i,e=>{B(c)?e(o):e(s,-1)}),W(e,r)},$$slots:{default:!0}})}}),W(e,r)}),W(e,t)},a=j(()=>ji(B(u)[0])>1);G(r,e=>{B(a)&&e(i)}),W(e,t)},nowIndicator:e=>{var t=U(),n=F(t),r=e=>{{let t=j(()=>B(u).flat()),n=j(()=>ji(B(u)[0]));Oc(e,{get days(){return B(t)},get span(){return B(n)}})}},i=e=>{var t=U(),n=F(t),r=e=>{var t=U();q(F(t),17,()=>B(u),K,(e,t)=>{Oc(e,{get days(){return B(t)}})}),W(e,t)},i=j(()=>ji(B(u)[0])>1),a=e=>{{let t=j(()=>B(u).flat()),n=j(()=>ji(B(u)));Oc(e,{get days(){return B(t)},get span(){return B(n)}})}};G(n,e=>{B(i)?e(r):e(a,-1)}),W(e,t)};G(n,e=>{B(c)?e(r):e(i,-1)}),W(e,t)},$$slots:{header:!0,nowIndicator:!0}}),A()}var Fc={createOptions(e){ac(e),ic(e),sc(e),X(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),X(e.buttonText,{resourceTimeGridDay:`day`,resourceTimeGridWeek:`week`}),X(e.theme,{colGroup:`ec-col-group`}),X(e.views,{resourceTimeGridDay:{buttonText:Ya,component:Ic,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:Xa,component:Ic,duration:{weeks:1},theme:eo(`ec-resource ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function Ic(e){return rc(e),Pc}function Lc(e,t,n,r=!0){let i=[],a,o,s,c,l,u,d=0;for(let{gridColumn:r,gridRow:f,resource:p,dayStart:m,dayEnd:h,start:g,end:_,disabled:v}of t)v||(n?Na(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=_):Na(e,g,_,p)&&(i.length||(a=g,s=r,c=f,l=p,u=ki(e.start-g,0)/1e3),i.push(m),o=_,d+=(Oi(_,e.end)-ki(g,e.start))/1e3));if(i.length){let t=za(e,a,o);return X(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&Ga(t),[t]}return[]}function Rc(e){let t={};for(let n of e){let{gridColumn:e,gridRow:r}=n;for(let i=0;i<n.dates.length;++i){let a=`${r}_${e+i}`;t[a]?t[a].push(n):t[a]=[n]}n.day=t[`${r}_${e}`]}}function zc(e,t,n){let r=1,i=r+t,a=e.day;a.sort((e,t)=>(e.top??1/0)-(t.top??1/0));for(let t of a)if(!(t===e||!(`top`in t))&&(n||e.start<t.end&&e.end>t.start)&&r<t.bottom&&i>t.top){let e=t.bottom-r+1;r+=e,i+=e}return X(e,{top:r,bottom:i}),r}function Bc(e,t){return e[t.getTime()]??{min:Ui(0),max:Ui(`24:00:00`)}}function Vc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{dayTimeLimits:a,viewResources:o}=t,s=[];return V(()=>{let e=1;for(let t of o){let o=[],c=1;for(let s of n){let n=a[s.getTime()];o.push({gridColumn:c,gridRow:e,resource:t,start:Wi(Q(s),n.min),end:Wi(Q(s),n.max),dayStart:s,dayEnd:Ki(Q(s)),disabled:no(s,i),highlight:r.some(e=>Zi(e,s))}),++c}s.push(o),++e}}),s}}function Hc(e,t){return()=>{let{features:n,options:{firstDay:r,weekNumbers:i}}=e,{grid:a}=t,o=[],s=[];return V(()=>{let e,t;if(!Mi(a)){for(let{dayStart:c,gridColumn:l}of a[0])if(n.includes(`month`)&&(e&&e.date.getUTCMonth()===c.getUTCMonth()?++e.span:(e={date:c,gridColumn:l,span:1},o.push(e))),i){let e=aa(c,r);t&&t.number===e?++t.span:(t={number:e,date:c,gridColumn:l,span:1},s.push(t))}}}),{months:o,weeks:s}}}function Uc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r,monthView:i}=t,a=[],o=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?(!i||e.allDay)&&(o=o.concat(Lc(e,t,i))):a=a.concat(Lc(e,t,i));Rc(a)}),{chunks:a,bgChunks:o}}}function Wc(e,t){return()=>{let{iEvents:n}=e,{grid:r,monthView:i}=t,a=[];for(let[,e]of n)e&&V(()=>{for(let t of r)a=a.concat(Lc(e,t,i,!1))});return a}}function Gc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o={};return V(()=>{for(let e of n)o[e.getTime()]=uo(i,a,r,[e],t)}),o}}function Kc(e,t){return()=>{let{viewDates:n,options:{slotDuration:r}}=e,{dayTimeLimits:i,intlSlotLabel:a,slotLabelPeriodicity:o}=t,s={};return V(()=>{for(let e of n){let t=e.getTime();s[t]=t in i?lo(e,r,o,i[t],a):[]}}),s}}function qc(e){return()=>{let{resources:t}=e,n;return V(()=>{n=t.some(e=>fa(e).children.length)}),n}}function Jc(e){return()=>{let{options:{slotDuration:t}}=e,n;return V(()=>{n=!$(t)}),n}}var Yc=class extends bc(hc()){#e;get dayTimeLimits(){return B(this.#e)}set dayTimeLimits(e){N(this.#e,e)}#t;get daySlots(){return B(this.#t)}set daySlots(e){N(this.#t,e)}#n;get grid(){return B(this.#n)}set grid(e){N(this.#n,e)}#r;get extraHeads(){return B(this.#r)}set extraHeads(e){N(this.#r,e)}#i;get intlMonthHeader(){return B(this.#i)}set intlMonthHeader(e){N(this.#i,e)}#a;get monthView(){return B(this.#a)}set monthView(e){N(this.#a,e)}#o;get chunks(){return B(this.#o)}set chunks(e){N(this.#o,e)}#s;get bgChunks(){return B(this.#s)}set bgChunks(e){N(this.#s,e)}#c;get iChunks(){return B(this.#c)}set iChunks(e){N(this.#c,e)}#l;get nestedResources(){return B(this.#l)}set nestedResources(e){N(this.#l,e)}constructor(e){super(e),this.#e=j(Gc(e)),this.#t=j(Kc(e,this)),this.#n=j(Vc(e,this)),this.#r=j(Hc(e,this)),this.#i=j(Ka(e,`monthHeaderFormat`)),this.#a=j(Jc(e));let t=j(Uc(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks);this.#o=j(()=>B(n)),this.#s=j(()=>B(r)),this.#c=j(Wc(e,this)),this.#l=j(qc(e))}};function Xc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotWidth),i=j(()=>O(`view-state`)),a=j(()=>B(i).monthView),o=j(()=>B(i).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=M(void 0);function p(e,t){if(B(a))return B(s);{let t=ma(B(f)),n=t.width/B(f).offsetWidth;return Wi(Q(B(c)),B(o).duration,Ei((Bi()?t.right-e:e-t.left)/(B(r)*B(o).ratio*n)))}}as(e,{get allDay(){return B(a)},get date(){return B(s)},get resource(){return B(l)},dateFromPoint:p,get disabled(){return B(u)},get highlight(){return B(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return B(f)},set el(e){N(f,e,!0)}}),A()}function Zc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotDuration),i=j(()=>B(n).options.slotWidth),a=j(()=>O(`view-state`)),o=j(()=>B(a).monthView),s=M(void 0),c=M(1),l=j(()=>t.chunk.event),u=j(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,B(o)||(e[`inset-inline-start`]=`${t.chunk.left/$(B(r))*B(i)}px`,e[`inline-size`]=`${t.chunk.width/$(B(r))*B(i)}px`);let n=B(c);if(B(l)._margin){let[e,r]=B(l)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function d(){N(c,zc(t.chunk,ga(B(s)),B(o)),!0)}var f={reposition:d};{let n=j(()=>[B(c),t.chunk.gridRow]);ps(e,{get chunk(){return t.chunk},get styles(){return B(u)},axis:`x`,get forceMargin(){return B(n)},get el(){return B(s)},set el(e){N(s,e,!0)}})}return A(f)}var Qc=H(`<span></span>`),$c=H(`<button></button>`),el=H(`<!> <span><!></span>`,1);function tl(e,t){k(t,!0);let n=Y(t,`resource`,7),r=j(()=>O(`state`)),i=j(()=>B(r).resources),a=j(()=>B(r).view),o=j(()=>B(r).options.buttonText),s=j(()=>B(r).options.icons),c=j(()=>B(r).options.resourceExpand),l=j(()=>B(r).options.theme),u=M({}),d=j(()=>n().expanded),f=j(()=>B(o)[B(d)?`collapse`:`expand`]);Cn(()=>{N(u,fa(n()))});function p(e){n().expanded=N(d,!B(d)),m(B(u).children),B(i).length=B(i).length,Z(B(c))&&B(c)({resource:n(),jsEvent:e,view:xa(B(a))})}function m(e){for(let t of e){let e=fa(t);e.hidden=!B(d),t.expanded&&m(e.children)}}var h=el(),g=F(h);q(g,17,()=>Array(B(u).level),K,(e,t)=>{var n=Qc();L(()=>J(n,1,B(l).expander)),W(e,n)});var _=I(g,2),v=P(_),y=e=>{var t=$c();qr(t,()=>yi(B(s)[B(d)?`collapse`:`expand`])),L(()=>{J(t,1,B(l).button),si(t,`aria-label`,B(f)),si(t,`title`,B(f))}),Sr(`click`,t,p),W(e,t)};G(v,e=>{B(u).children?.length&&e(y)}),D(_),L(()=>J(_,1,B(l).expander)),W(e,h),A()}Cr([`click`]);var nl=H(`<div></div>`);function rl(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).mainEl),i=j(()=>B(n).now),a=j(()=>B(n).today),o=j(()=>B(n).options.slotDuration),s=j(()=>B(n).options.slotWidth),c=j(()=>B(n).options.theme),l=j(()=>O(`view-state`)),u=j(()=>B(l).grid),d=j(()=>B(l).sidebarWidth),f=j(()=>{for(let e of B(u)[0])if(Zi(e.dayStart,B(a)))return e;return{}}),p=j(()=>B(f).gridColumn),m=j(()=>B(f).start),h=j(()=>B(f).end),g=j(()=>{if(B(i)<B(m)||B(i)>B(h))return null;let e=$(B(o));return(B(i)-B(m))/1e3/e*B(s)}),_=j(()=>({root:B(r),rootMargin:Bi()?`0px -${B(d)+1}px 0px 0px`:`0px 0px 0px -${B(d)+1}px`,threshold:0}));function v(e,t){e.classList.toggle(B(c).hidden,!t.isIntersecting)}var y=U(),b=F(y),x=e=>{var t=nl();let n;qr(t,()=>Si(v,B(_))),L(()=>{J(t,1,B(c).nowIndicator),n=ri(t,``,n,{"grid-column":B(p)+1,"grid-row":`2 / span ${B(u).length??``}`,"inset-inline-start":`${B(g)??``}px`})}),W(e,t)};G(b,e=>{B(p)&&B(g)!==null&&e(x)}),W(e,y),A()}var il=H(`<time></time>`),al=H(`<span></span>`),ol=H(`<div><time></time></div>`),sl=H(`<div role="rowheader"><!> <!></div>`),cl=H(`<section><header><aside></aside> <div role="row"><!> <!> <!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>`);function ll(e,t){k(t,!0);let n=O(`state`),r=new Yc(n);We(`view-state`,r);let i=j(()=>n.mainEl),a=j(()=>n.today),o=j(()=>n.viewDates),s=j(()=>n.options.columnWidth),c=j(()=>n.options.nowIndicator),l=j(()=>n.options.scrollTime),u=j(()=>n.options.slotDuration),d=j(()=>n.options.slotHeight),f=j(()=>n.options.slotWidth),p=j(()=>n.options.theme),m=j(()=>n.options.weekNumberContent),h=j(()=>r.chunks),g=j(()=>r.bgChunks),_=j(()=>r.iChunks),v=j(()=>r.daySlots),y=j(()=>r.dayTimeLimits),b=j(()=>r.grid),x=j(()=>r.extraHeads),S=j(()=>r.intlMonthHeader),ee=j(()=>r.monthView),te=j(()=>r.nestedResources),ne=j(()=>r.sidebarWidth),re=j(()=>r.slotLabelPeriodicity),ie=j(()=>r.viewResources),ae=M(0);xn(()=>{B(l),Mi(B(o))||fr().then(oe)});function oe(){let e=0,t=B(a)<B(o)[0]||B(a)>B(o).at(-1);if(B(ee)){if(!t){let e=B(b)[0];for(let t of e)if(Zi(t.dayStart,B(a))){B(i).scrollLeft=(B(i).scrollWidth-B(ne))/ji(e)*(t.gridColumn-1)*(Bi()?-1:1);break}}}else{for(let n of B(o)){let r=Bc(B(y),n);if(t||Zi(n,B(a))){e+=ki(Oi($(B(l)),$(r.max))-$(r.min),0);break}else e+=$(r.max)-$(r.min)}B(i).scrollLeft=e/$(B(u))*B(f)*(Bi()?-1:1)}}let se=[];function ce(){Ma(se,B(h))}xn(ce);var le=U(),ue=F(le),de=e=>{var t=cl();let i;var a=P(t),o=P(a),l=I(o,2),u=P(l),y=e=>{var t=U();q(F(t),17,()=>B(x).months,K,(e,t)=>{let n=()=>B(t).date,r=()=>B(t).gridColumn,i=()=>B(t).span;us(e,{get className(){return B(p).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=il();qr(r,()=>yi(B(S).format(n()))),L(e=>si(r,`datetime`,e),[()=>Xi(n(),10)]),W(e,r)},$$slots:{default:!0}})}),W(e,t)},oe=j(()=>ji(B(x).months)>1);G(u,e=>{B(oe)&&e(y)});var le=I(u,2),ue=e=>{var t=U();q(F(t),17,()=>B(x).weeks,K,(e,t)=>{let n=()=>B(t).number,r=()=>B(t).date,i=()=>B(t).gridColumn,a=()=>B(t).span;us(e,{get className(){return B(p).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var i=al();qr(i,()=>yi(oa(n(),B(m),r()))),L(()=>J(i,1,B(p).weekNumber)),W(e,i)},$$slots:{default:!0}})}),W(e,t)},de=j(()=>ji(B(x).weeks)>1);G(le,e=>{B(de)&&e(ue)});var C=I(le,2);q(C,17,()=>B(b)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart,i=()=>B(t).disabled,a=()=>B(t).highlight;us(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{fs(e,{get date(){return r()}})},$$slots:{default:!0}})});var w=I(C,2),fe=e=>{var t=U();q(F(t),17,()=>B(b)[0],K,(e,t)=>{let n=()=>B(t).dayStart,r=()=>B(t).disabled,i=()=>B(t).highlight;us(e,{get date(){return n()},get className(){return B(p).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=U();q(F(r),17,()=>B(v)[n().getTime()],K,(e,t)=>{var n=ol();let r;var i=P(n);qr(i,()=>yi(B(t)[1])),D(n),L(()=>{J(n,1,B(p).slot),r=ri(n,``,r,{"--ec-slot-label-periodicity":B(t)[2]}),si(i,`datetime`,B(t)[0])}),W(e,n)}),W(e,r)},$$slots:{default:!0}})}),W(e,t)};G(w,e=>{B(ee)||e(fe)}),D(l),D(a);var pe=I(a,2),me=P(pe);q(me,21,()=>B(ie),K,(e,t)=>{var n=sl(),r=P(n),i=e=>{tl(e,{get resource(){return B(t)}})};G(r,e=>{B(te)&&e(i)}),Cc(I(r,2),{get resource(){return B(t)}}),D(n),L(()=>J(n,1,B(p).rowHead)),W(e,n)}),D(me);var he=I(me,2);q(he,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>i+1===ji(B(t))),o=j(()=>n+1===ji(B(b)));Xc(e,{get day(){return B(r)},get noIeb(){return B(a)},get noBeb(){return B(o)}})}}),W(e,r)}),D(he);var ge=I(he,2),_e=P(ge);q(_e,19,()=>B(h),e=>e.id,(e,t,n)=>{mi(Zc(e,{get chunk(){return B(t)}}),(e,t)=>se[t]=e,e=>se?.[e],()=>[B(n)])});var ve=I(_e,2);q(ve,17,()=>B(g),e=>e.id,(e,t)=>{Zc(e,{get chunk(){return B(t)}})}),q(I(ve,2),17,()=>B(_),K,(e,t)=>{Zc(e,{get chunk(){return B(t)}})}),D(ge),D(pe);var ye=I(pe,2),be=e=>{rl(e,{})};G(ye,e=>{B(c)&&!B(ee)&&e(be)}),D(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>xi(ce)),L(e=>{J(t,1,B(p).main),i=ri(t,``,i,e),J(a,1,B(p).header),J(o,1,B(p).sidebar),J(l,1,B(p).grid),J(pe,1,B(p).body),J(me,1,B(p).sidebar),J(he,1,B(p).grid),J(ge,1,B(p).events)},[()=>({"--ec-grid-cols":ji(B(b)[0]),"--ec-grid-rows":`${ji(B(b))>1?`repeat(${ji(B(b))-1}, auto)`:``} 1fr`,"--ec-col-width":B(s)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":B(re),"--ec-slot-height":`${B(d)??``}px`,"--ec-slot-width":`${B(f)??``}px`,"--ec-header-height":`${B(ae)??``}px`,"--ec-sidebar-width":`${B(ne)??``}px`})]),fi(o,`offsetWidth`,e=>r.sidebarWidth=e),fi(a,`offsetHeight`,e=>N(ae,e)),W(e,t)},C=j(()=>!Mi(B(b))&&!Mi(B(b)[0]));G(ue,e=>{B(C)&&e(de)}),W(e,le),A()}var ul={createOptions(e){ic(e),sc(e),X(e,{monthHeaderFormat:{month:`long`},resourceExpand:void 0,slotWidth:32,view:`resourceTimelineWeek`}),X(e.buttonText,{expand:`Expand`,collapse:`Collapse`,resourceTimelineDay:`day`,resourceTimelineWeek:`week`,resourceTimelineMonth:`month`,resourceTimelineYear:`year`}),X(e.icons,{collapse:{html:`−`},expand:{html:`+`}}),X(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),X(e.views,{resourceTimelineDay:{buttonText:Ya,component:dl,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:Xa,component:dl,displayEventEnd:!1,duration:{weeks:1},theme:eo(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:Za,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:eo(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:Qa,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:eo(`ec-resource ec-timeline ec-year-view`),titleFormat:{year:`numeric`}}})},createParsers(e){oc(e)}};function dl(e){return rc(e),pl(e)}function fl(e){return pl(e,[`month`])}function pl(e,t=[]){return e.features=[`timeline`,...t],e.extensions.viewResources=e=>e.filter(e=>!fa(e).hidden),ll}var ml={createOptions(e){ic(e),ac(e),X(e.buttonText,{timeGridDay:`day`,timeGridWeek:`week`}),X(e,{view:`timeGridWeek`}),X(e.views,{timeGridDay:{buttonText:Ya,component:hl,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:Xa,component:hl,duration:{weeks:1},theme:eo(`ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function hl(e){return rc(e),Mc}function gl(e,t,n){return jr(Qo,{target:e,props:{plugins:t,options:n}})}function _l(e){return Fr(e)}function vl(e,t){return gl(e,[Ts,Us,Qs,Fc,ul,ml],t)}return e.create=vl,e.destroy=_l,e})({});
|
|
7
|
+
//# sourceMappingURL=event-calendar.min.js.map
|