@data-fair/app-calendar 1.2.13 → 1.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventEdit-aKzznel2.js","assets/index-DWmVTbRH.js","assets/index-BhUGjgE1.css","assets/utils-DolIsUFa.js","assets/forwardRefs-mMsq8S7y.js","assets/forwardRefs-CjLOsyNR.css","assets/utils-Dy1bYQWL.css","assets/EventEdit-BD2AtSDG.css"])))=>i.map(i=>d[i]);
2
- import{i as e,n as t,r as n,t as r}from"./forwardRefs-mMsq8S7y.js";import{A as i,C as a,D as o,E as s,L as c,R as l,T as u,Y as d,f,i as p,j as m,k as h,m as g,n as _,r as v,t as y,u as b,w as ee}from"./utils-DolIsUFa.js";import{$n as x,An as S,Dn as C,En as te,F as ne,Gt as re,Hn as w,Jn as ie,Kn as ae,Nn as oe,Qn as se,Rt as ce,S as le,Sn as ue,Sr as de,T as fe,Tn as T,W as pe,Wn as me,X as he,_ as E,a as ge,ar as _e,bn as D,cn as ve,cr as ye,dr as be,g as xe,gr as O,hn as Se,i as Ce,k as we,kr as Te,mn as Ee,n as De,nn as Oe,nr as ke,pn as Ae,pr as je,r as Me,sn as Ne,t as Pe,tr as k,ur as Fe,vn as Ie,wn as Le,xn as Re,xr as ze,yn as Be,z as Ve}from"./index-DWmVTbRH.js";import{n as He,t as Ue}from"./messages-BrKqJhrd.js";var We,A,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe={},$e=[],et=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function tt(e,t){for(var n in t)e[n]=t[n];return e}function nt(e){var t=e.parentNode;t&&t.removeChild(e)}function j(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?We.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return rt(e,o,r,i,null)}function rt(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Ge};return i==null&&A.vnode!=null&&A.vnode(a),a}function M(){return{current:null}}function N(e){return e.children}function it(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||ot(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||ot(e,a,t[a],n[a],r)}function at(e,t,n){t[0]===`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||et.test(t)?n:n+`px`}function ot(e,t,n,r,i){var a;n:if(t===`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||at(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||at(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?ct:st,a):e.removeEventListener(t,a?ct:st,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!==`width`&&t!==`height`&&t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t.indexOf(`-`)==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function st(e){qe=!0;try{return this.l[e.type+!1](A.event?A.event(e):e)}finally{qe=!1}}function ct(e){qe=!0;try{return this.l[e.type+!0](A.event?A.event(e):e)}finally{qe=!1}}function lt(e,t){this.props=e,this.context=t}function ut(e,t){if(t==null)return e.__?ut(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?ut(e):null}function dt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return dt(e)}}function ft(e){qe?setTimeout(e):Xe(e)}function pt(e){(!e.__d&&(e.__d=!0)&&Je.push(e)&&!mt.__r++||Ye!==A.debounceRendering)&&((Ye=A.debounceRendering)||ft)(mt)}function mt(){var e,t,n,r,i,a,o,s;for(Je.sort(function(e,t){return e.__v.__b-t.__v.__b});e=Je.shift();)e.__d&&(t=Je.length,r=void 0,i=void 0,o=(a=(n=e).__v).__e,(s=n.__P)&&(r=[],(i=tt({},a)).__v=a.__v+1,bt(s,a,i,n.__n,s.ownerSVGElement!==void 0,a.__h==null?null:[o],r,o??ut(a),a.__h),xt(r,a),a.__e!=o&&dt(a)),Je.length>t&&Je.sort(function(e,t){return e.__v.__b-t.__v.__b}));mt.__r=0}function ht(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_=r&&r.__k||$e,v=_.length;for(n.__k=[],u=0;u<t.length;u++)if((p=n.__k[u]=(p=t[u])==null||typeof p==`boolean`?null:typeof p==`string`||typeof p==`number`||typeof p==`bigint`?rt(null,p,null,null,p):Array.isArray(p)?rt(N,{children:p},null,null,null):p.__b>0?rt(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=_[u])===null||f&&p.key==f.key&&p.type===f.type)_[u]=void 0;else for(d=0;d<v;d++){if((f=_[d])&&p.key==f.key&&p.type===f.type){_[d]=void 0;break}f=null}bt(e,p,f||=Qe,i,a,o,s,c,l),m=p.__e,(d=p.ref)&&f.ref!=d&&(g||=[],f.ref&&g.push(f.ref,null,p),g.push(d,p.__c||m,p)),m==null?c&&f.__e==c&&c.parentNode!=e&&(c=ut(f)):(h??=m,typeof p.type==`function`&&p.__k===f.__k?p.__d=c=gt(p,c,e):c=vt(e,p,f,_,m,c),typeof n.type==`function`&&(n.__d=c))}for(n.__e=h,u=v;u--;)_[u]!=null&&(typeof n.type==`function`&&_[u].__e!=null&&_[u].__e==n.__d&&(n.__d=yt(r).nextSibling),wt(_[u],_[u]));if(g)for(u=0;u<g.length;u++)Ct(g[u],g[++u],g[++u])}function gt(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?gt(r,t,n):vt(n,r,r,i,r.__e,t));return t}function _t(e,t){return t||=[],e==null||typeof e==`boolean`||(Array.isArray(e)?e.some(function(e){_t(e,t)}):t.push(e)),t}function vt(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)n:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=1)if(s==i)break n;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function yt(e){var t,n,r;if(e.type==null||typeof e.type==`string`)return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=yt(n)))return r}return null}function bt(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g,_,v,y,b,ee,x,S,C=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(l=A.__b)&&l(t);try{n:if(typeof C==`function`){if(g=t.props,_=(l=C.contextType)&&r[l.__c],v=l?_?_.props.value:l.__:r,n.__c?h=(u=t.__c=n.__c).__=u.__E:(`prototype`in C&&C.prototype.render?t.__c=u=new C(g,v):(t.__c=u=new lt(g,v),u.constructor=C,u.render=Tt),_&&_.sub(u),u.props=g,u.state||={},u.context=v,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s??=u.state,C.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=tt({},u.__s)),tt(u.__s,C.getDerivedStateFromProps(g,u.__s))),f=u.props,p=u.state,u.__v=t,d)C.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,v),!u.__e&&u.shouldComponentUpdate!=null&&!1===u.shouldComponentUpdate(g,u.__s,v)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),y=0;y<u._sb.length;y++)u.__h.push(u._sb[y]);u._sb=[],u.__h.length&&o.push(u);break n}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,v),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,m)})}if(u.context=v,u.props=g,u.__P=e,b=A.__r,ee=0,`prototype`in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,b&&b(t),l=u.render(u.props,u.state,u.context),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[]}else do u.__d=!1,b&&b(t),l=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ee<25);u.state=u.__s,u.getChildContext!=null&&(r=tt(tt({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(f,p)),S=l!=null&&l.type===N&&l.key==null?l.props.children:l,ht(e,Array.isArray(S)?S:[S],t,n,r,i,a,o,s,c),u.base=t.__e,t.__h=null,u.__h.length&&o.push(u),h&&(u.__E=u.__=null),u.__e=!1}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=St(n.__e,t,n,r,i,a,o,c);(l=A.diffed)&&l(t)}catch(e){t.__v=null,(c||a!=null)&&(t.__e=s,t.__h=!!c,a[a.indexOf(s)]=null),A.__e(e,t,n)}}function xt(e,t){A.__c&&A.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){A.__e(e,t.__v)}})}function St(e,t,n,r,i,a,o,s){var c,l,u,d=n.props,f=t.props,p=t.type,m=0;if(p===`svg`&&(i=!0),a!=null){for(;m<a.length;m++)if((c=a[m])&&`setAttribute`in c==!!p&&(p?c.localName===p:c.nodeType===3)){e=c,a[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=i?document.createElementNS(`http://www.w3.org/2000/svg`,p):document.createElement(p,f.is&&f),a=null,s=!1}if(p===null)d===f||s&&e.data===f||(e.data=f);else{if(a&&=We.call(e.childNodes),l=(d=n.props||Qe).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(a!=null)for(d={},m=0;m<e.attributes.length;m++)d[e.attributes[m].name]=e.attributes[m].value;(u||l)&&(u&&(l&&u.__html==l.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||``))}if(it(e,f,d,i,s),u)t.__k=[];else if(m=t.props.children,ht(e,Array.isArray(m)?m:[m],t,n,r,i&&p!==`foreignObject`,a,o,a?a[0]:n.__k&&ut(n,0),s),a!=null)for(m=a.length;m--;)a[m]!=null&&nt(a[m]);s||(`value`in f&&(m=f.value)!==void 0&&(m!==e.value||p===`progress`&&!m||p===`option`&&m!==d.value)&&ot(e,`value`,m,d.value,!1),`checked`in f&&(m=f.checked)!==void 0&&m!==e.checked&&ot(e,`checked`,m,d.checked,!1))}return e}function Ct(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){A.__e(e,n)}}function wt(e,t,n){var r,i;if(A.unmount&&A.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ct(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){A.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&wt(r[i],t,n||typeof e.type!=`function`);n||e.__e==null||nt(e.__e),e.__=e.__e=e.__d=void 0}function Tt(e,t,n){return this.constructor(e,n)}function Et(e,t,n){var r,i,a;A.__&&A.__(e,t),i=(r=typeof n==`function`)?null:n&&n.__k||t.__k,a=[],bt(t,e=(!r&&n||t).__k=j(N,null,[e]),i||Qe,Qe,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?We.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r),xt(a,e)}function Dt(e,t){var n={__c:t=`__cC`+ Ze++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,pt(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}We=$e.slice,A={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},Ge=0,Ke=function(e){return e!=null&&e.constructor===void 0},qe=!1,lt.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=tt({},this.state);typeof e==`function`&&(e=e(tt({},n),this.props)),e&&tt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),pt(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pt(this))},lt.prototype.render=N,Je=[],Xe=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mt.__r=0,Ze=0;var Ot,kt,At,jt=[],Mt=[],Nt=A.__b,Pt=A.__r,Ft=A.diffed,It=A.__c,Lt=A.unmount;function Rt(){for(var e;e=jt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vt),e.__H.__h.forEach(Ht),e.__H.__h=[]}catch(t){e.__H.__h=[],A.__e(t,e.__v)}}A.__b=function(e){Ot=null,Nt&&Nt(e)},A.__r=function(e){Pt&&Pt(e);var t=(Ot=e.__c).__H;t&&(kt===Ot?(t.__h=[],Ot.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Mt,e.__N=e.i=void 0})):(t.__h.forEach(Vt),t.__h.forEach(Ht),t.__h=[])),kt=Ot},A.diffed=function(e){Ft&&Ft(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jt.push(t)!==1&&At===A.requestAnimationFrame||((At=A.requestAnimationFrame)||Bt)(Rt)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Mt&&(e.__=e.__V),e.i=void 0,e.__V=Mt})),kt=Ot=null},A.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Vt),e.__h=e.__h.filter(function(e){return!e.__||Ht(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],A.__e(n,e.__v)}}),It&&It(e,t)},A.unmount=function(e){Lt&&Lt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Vt(e)}catch(e){t=e}}),n.__H=void 0,t&&A.__e(t,n.__v))};var zt=typeof requestAnimationFrame==`function`;function Bt(e){var t,n=function(){clearTimeout(r),zt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);zt&&(t=requestAnimationFrame(n))}function Vt(e){var t=Ot,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Ot=t}function Ht(e){var t=Ot;e.__c=e.__(),Ot=t}function Ut(e,t){for(var n in t)e[n]=t[n];return e}function Wt(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function Gt(e){this.props=e}(Gt.prototype=new lt).isPureReactComponent=!0,Gt.prototype.shouldComponentUpdate=function(e,t){return Wt(this.props,e)||Wt(this.state,t)};var Kt=A.__b;A.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kt&&Kt(e)},typeof Symbol<`u`&&Symbol.for;var qt=A.__e;A.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}qt(e,t,n,r)};var Jt=A.unmount;function Yt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=Ut({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return Yt(e,t,n)})),e}function Xt(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Xt(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Zt(){this.__u=0,this.t=null,this.__b=null}function Qt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $t(){this.u=null,this.o=null}A.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Jt&&Jt(e)},(Zt.prototype=new lt).__c=function(e,t){var n=t.__c,r=this;r.t??=[],r.t.push(n);var i=Qt(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Xt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Zt.prototype.componentWillUnmount=function(){this.t=[]},Zt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),r=this.__v.__k[0].__c;this.__v.__k[0]=Yt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&j(N,null,e.fallback);return i&&(i.__h=null),[j(N,null,t.__a?null:e.children),i]};var en=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function tn(e){return this.getChildContext=function(){return e.context},e.children}function nn(e){var t=this,n=e.i;t.componentWillUnmount=function(){Et(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||=(t.i=n,{nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Et(j(tn,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function rn(e,t){var n=j(nn,{__v:e,i:t});return n.containerInfo=t,n}($t.prototype=new lt).__a=function(e){var t=this,n=Qt(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),en(t,e,r)):i()};n?n(a):a()}},$t.prototype.render=function(e){this.u=null,this.o=new Map;var t=_t(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},$t.prototype.componentDidUpdate=$t.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){en(e,n,t)})};var an=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,on=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,sn=typeof document<`u`,cn=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/i:/fil|che|ra/i).test(e)};lt.prototype.isReactComponent={},[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ln=A.event;function un(){}function dn(){return this.cancelBubble}function fn(){return this.defaultPrevented}A.event=function(e){return ln&&(e=ln(e)),e.persist=un,e.isPropagationStopped=dn,e.isDefaultPrevented=fn,e.nativeEvent=e};var pn={configurable:!0,get:function(){return this.class}},mn=A.vnode;A.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t==`string`){var i=t.indexOf(`-`)===-1;for(var a in r={},n){var o=n[a];sn&&a===`children`&&t===`noscript`||a===`value`&&`defaultValue`in n&&o==null||(a===`defaultValue`&&`value`in n&&n.value==null?a=`value`:a===`download`&&!0===o?o=``:/ondoubleclick/i.test(a)?a=`ondblclick`:/^onchange(textarea|input)/i.test(a+t)&&!cn(n.type)?a=`oninput`:/^onfocus$/i.test(a)?a=`onfocusin`:/^onblur$/i.test(a)?a=`onfocusout`:/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&on.test(a)?a=a.replace(/[A-Z0-9]/g,`-$&`).toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a=`oninputCapture`)),r[a]=o)}t==`select`&&r.multiple&&Array.isArray(r.value)&&(r.value=_t(n.children).forEach(function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1})),t==`select`&&r.defaultValue!=null&&(r.value=_t(n.children).forEach(function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value})),e.props=r,n.class!=n.className&&(pn.enumerable=`className`in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,`className`,pn))}e.$$typeof=an,mn&&mn(e)};var hn=A.__r;A.__r=function(e){hn&&hn(e),e.__c};var gn=[],_n=new Map;function vn(e){gn.push(e),_n.forEach(t=>{Sn(t,e)})}function yn(e){e.isConnected&&e.getRootNode&&bn(e.getRootNode())}function bn(e){let t=_n.get(e);if(!t||!t.isConnected){if(t=e.querySelector(`style[data-fullcalendar]`),!t){t=document.createElement(`style`),t.setAttribute(`data-fullcalendar`,``);let n=wn();n&&(t.nonce=n);let r=e===document?document.head:e,i=e===document?r.querySelector(`script,link[rel=stylesheet],link[as=style],style`):r.firstChild;r.insertBefore(t,i)}_n.set(e,t),xn(t)}}function xn(e){for(let t of gn)Sn(e,t)}function Sn(e,t){let{sheet:n}=e,r=n.cssRules.length;t.split(`}`).forEach((e,t)=>{e=e.trim(),e&&n.insertRule(e+`}`,r+t)})}var Cn;function wn(){return Cn===void 0&&(Cn=Tn()),Cn}function Tn(){let e=document.querySelector(`meta[name="csp-nonce"]`);if(e&&e.hasAttribute(`content`))return e.getAttribute(`content`);let t=document.querySelector(`script[nonce]`);return t&&t.nonce||``}typeof document<`u`&&bn(document),vn(`:root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}`);var En=class{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=``){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e=``,t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(--n[e],n[e]<=0&&delete n[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&=(clearTimeout(this.timeoutId),0)}drained(){this.drainedOption&&this.drainedOption()}};function Dn(e){e.parentNode&&e.parentNode.removeChild(e)}function P(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(On(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function On(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function kn(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].querySelectorAll(t);for(let e=0;e<i.length;e+=1)r.push(i[e])}return r}var An=/(top|left|right|bottom|width|height)$/i;function jn(e,t){for(let n in t)Mn(e,n,t[n])}function Mn(e,t,n){n==null?e.style[t]=``:typeof n==`number`&&An.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function Nn(e){return e.composedPath?.call(e)[0]??e.target}var Pn=0;function Fn(){return Pn+=1,`fc-dom-`+Pn}function In(e){e.preventDefault()}function Ln(e,t){return n=>{let r=P(n.target,e);r&&t.call(r,n,r)}}function Rn(e,t,n,r){let i=Ln(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function zn(e,t,n,r){let i;return Rn(e,`mouseover`,t,(e,t)=>{if(t!==i){i=t,n(e,t);let a=e=>{i=null,r(e,t),t.removeEventListener(`mouseleave`,a)};t.addEventListener(`mouseleave`,a)}})}var Bn=[`webkitTransitionEnd`,`otransitionend`,`oTransitionEnd`,`msTransitionEnd`,`transitionend`];function Vn(e,t){let n=r=>{t(r),Bn.forEach(t=>{e.removeEventListener(t,n)})};Bn.forEach(t=>{e.addEventListener(t,n)})}function Hn(e){return Object.assign({onClick:e},Un(e))}function Un(e){return{tabIndex:0,onKeyDown(t){(t.key===`Enter`||t.key===` `)&&(e(t),t.preventDefault())}}}var Wn=0;function Gn(){return Wn+=1,String(Wn)}function Kn(){document.body.classList.add(`fc-not-allowed`)}function qn(){document.body.classList.remove(`fc-not-allowed`)}function Jn(e){e.style.userSelect=`none`,e.style.webkitUserSelect=`none`,e.addEventListener(`selectstart`,In)}function Yn(e){e.style.userSelect=``,e.style.webkitUserSelect=``,e.removeEventListener(`selectstart`,In)}function Xn(e){e.addEventListener(`contextmenu`,In)}function Zn(e){e.removeEventListener(`contextmenu`,In)}function Qn(e){let t=[],n=[],r,i;for(typeof e==`string`?n=e.split(/\s*,\s*/):typeof e==`function`?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)i=n[r],typeof i==`string`?t.push(i.charAt(0)===`-`?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i==`function`&&t.push({func:i});return t}function $n(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=er(e,t,n[r]),i)return i;return 0}function er(e,t,n){return n.func?n.func(e,t):tr(e[n.field],t[n.field])*(n.order||1)}function tr(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e==`string`||typeof t==`string`?String(e).localeCompare(String(t)):e-t}function nr(e,t){let n=String(e);return`000`.substr(0,t-n.length)+n}function rr(e,t,n){return typeof e==`function`?e(...t):typeof e==`string`?t.reduce((e,t,n)=>e.replace(`$`+n,t||``),e):n}function ir(e,t){return e-t}function ar(e){return e%1==0}function or(e){let t=e.querySelector(`.fc-scrollgrid-shrink-frame`),n=e.querySelector(`.fc-scrollgrid-shrink-cushion`);if(!t)throw Error(`needs fc-scrollgrid-shrink-frame className`);if(!n)throw Error(`needs fc-scrollgrid-shrink-cushion className`);return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var sr=[`years`,`months`,`days`,`milliseconds`],cr=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function F(e,t){return typeof e==`string`?lr(e):typeof e==`object`&&e?ur(e):typeof e==`number`?ur({[t||`milliseconds`]:e}):null}function lr(e){let t=cr.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function ur(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function dr(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function fr(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function pr(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function mr(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function hr(e){return _r(e)/365}function gr(e){return _r(e)/30}function _r(e){return vr(e)/864e5}function vr(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function yr(e,t){let n=null;for(let r=0;r<sr.length;r+=1){let i=sr[r];if(t[i]){let r=e[i]/t[i];if(!ar(r)||n!==null&&n!==r)return null;n=r}else if(e[i])return null}return n}function br(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:`millisecond`,value:t};if(t%(1e3*60)!=0)return{unit:`second`,value:t/1e3};if(t%(1e3*60*60)!=0)return{unit:`minute`,value:t/(1e3*60)};if(t)return{unit:`hour`,value:t/(1e3*60*60)}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:`week`,value:e.days/7}:{unit:`day`,value:e.days}:e.months?{unit:`month`,value:e.months}:e.years?{unit:`year`,value:e.years}:{unit:`millisecond`,value:0}}function xr(e,t,n){if(e===t)return!0;let r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}var Sr=[`sun`,`mon`,`tue`,`wed`,`thu`,`fri`,`sat`];function Cr(e,t){let n=Vr(e);return n[2]+=t*7,R(n)}function I(e,t){let n=Vr(e);return n[2]+=t,R(n)}function wr(e,t){let n=Vr(e);return n[6]+=t,R(n)}function Tr(e,t){return Er(e,t)/7}function Er(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function Dr(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function Or(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function kr(e,t){return(t.valueOf()-e.valueOf())/1e3}function Ar(e,t){let n=L(e),r=L(t);return{years:0,months:0,days:Math.round(Er(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function jr(e,t){let n=Mr(e,t);return n!==null&&n%7==0?n/7:null}function Mr(e,t){return Ur(e)===Ur(t)?Math.round(Er(e,t)):null}function L(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Nr(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function Pr(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function Fr(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function Ir(e,t,n){let r=e.getUTCFullYear(),i=Lr(e,r,t,n);if(i<1)return Lr(e,r-1,t,n);let a=Lr(e,r+1,t,n);return a>=1?Math.min(i,a):i}function Lr(e,t,n,r){let i=R([t,0,1+Rr(t,n,r)]),a=L(e),o=Math.round(Er(i,a));return Math.floor(o/7)+1}function Rr(e,t,n){let r=7+t-n;return-((7+R([e,0,r]).getUTCDay()-t)%7)+r-1}function zr(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Br(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Vr(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function R(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Hr(e){return!isNaN(e.valueOf())}function Ur(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function Wr(e,t,n=!1){let r=e.toISOString();return r=r.replace(`.000`,``),n&&(r=r.replace(`T00:00:00Z`,``)),r.length>10&&(t==null?r=r.replace(`Z`,``):t!==0&&(r=r.replace(`Z`,Jr(t,!0)))),r}function Gr(e){return e.toISOString().replace(/T.*$/,``)}function Kr(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function qr(e){return nr(e.getUTCHours(),2)+`:`+nr(e.getUTCMinutes(),2)+`:`+nr(e.getUTCSeconds(),2)}function Jr(e,t=!1){let n=e<0?`-`:`+`,r=Math.abs(e),i=Math.floor(r/60),a=Math.round(r%60);return t?`${n+nr(i,2)}:${nr(a,2)}`:`GMT${n}${i}${a?`:${nr(a,2)}`:``}`}function z(e,t,n){let r,i;return function(...a){if(!r)i=e.apply(this,a);else if(!xr(r,a)){n&&n(i);let r=e.apply(this,a);(!t||!t(r,i))&&(i=r)}return r=a,i}}function Yr(e,t,n){let r,i;return a=>{if(!r)i=e.call(this,a);else if(!Ni(r,a)){n&&n(i);let r=e.call(this,a);(!t||!t(r,i))&&(i=r)}return r=a,i}}var Xr={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Zr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Qr=/\s*([ap])\.?m\.?/i,$r=/,/g,ei=/\s+/g,ti=/\u200e/g,ni=/UTC|GMT/,ri=class{constructor(e){let t={},n={},r=0;for(let i in e)i in Xr?(n[i]=e[i],r=Math.max(Xr[i],r)):(t[i]=e[i],i in Zr&&(r=Math.max(Zr[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=z(ii)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:a}=this,o=ui(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let s=o;s>1&&(i.year===`numeric`||i.year===`2-digit`)&&(i.month===`numeric`||i.month===`2-digit`)&&(i.day===`numeric`||i.day===`2-digit`)&&(s=1);let c=this.format(e,n),l=this.format(t,n);if(c===l)return c;let u=ii(di(i,s),a,n),d=u(e),f=u(t),p=fi(c,d,l,f),m=a.separator||r||n.defaultSeparator||``;return p?p.before+d+m+f+p.after:c+m+l}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return`year`;case 4:return`month`;case 3:return`week`;case 2:return`day`;default:return`time`}}};function ii(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName===`short`?e=>Jr(e.timeZoneOffset):r===0&&t.week?e=>li(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):ai(e,t,n)}function ai(e,t,n){e=Object.assign({},e),t=Object.assign({},t),oi(e,t),e.timeZone=`UTC`;let r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,i=new Intl.DateTimeFormat(n.locale.codes,t)}return a=>{let{marker:o}=a,s;return s=i&&!o.getUTCMinutes()?i:r,si(s.format(o),a,e,t,n)}}function oi(e,t){e.timeZoneName&&(e.hour||=`2-digit`,e.minute||=`2-digit`),e.timeZoneName===`long`&&(e.timeZoneName=`short`),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function si(e,t,n,r,i){return e=e.replace(ti,``),n.timeZoneName===`short`&&(e=ci(e,i.timeZone===`UTC`||t.timeZoneOffset==null?`UTC`:Jr(t.timeZoneOffset))),r.omitCommas&&(e=e.replace($r,``).trim()),r.omitZeroMinute&&(e=e.replace(`:00`,``)),r.meridiem===!1?e=e.replace(Qr,``).trim():r.meridiem===`narrow`?e=e.replace(Qr,(e,t)=>t.toLocaleLowerCase()):r.meridiem===`short`?e=e.replace(Qr,(e,t)=>`${t.toLocaleLowerCase()}m`):r.meridiem===`lowercase`&&(e=e.replace(Qr,e=>e.toLocaleLowerCase())),e=e.replace(ei,` `),e=e.trim(),e}function ci(e,t){let n=!1;return e=e.replace(ni,()=>(n=!0,t)),n||(e+=` ${t}`),e}function li(e,t,n,r,i){let a=[];return i===`long`?a.push(n):(i===`short`||i===`narrow`)&&a.push(t),(i===`long`||i===`short`)&&a.push(` `),a.push(r.simpleNumberFormat.format(e)),r.options.direction===`rtl`&&a.reverse(),a.join(``)}function ui(e,t,n){return n.getMarkerYear(e)===n.getMarkerYear(t)?n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerDay(e)===n.getMarkerDay(t)?Ur(e)===Ur(t)?0:1:2:4:5}function di(e,t){let n={};for(let r in e)(!(r in Zr)||Zr[r]<=t)&&(n[r]=e[r]);return n}function fi(e,t,n,r){let i=0;for(;i<e.length;){let a=e.indexOf(t,i);if(a===-1)break;let o=e.substr(0,a);i=a+t.length;let s=e.substr(i),c=0;for(;c<n.length;){let e=n.indexOf(r,c);if(e===-1)break;let t=n.substr(0,e);c=e+r.length;let i=n.substr(c);if(o===t&&s===i)return{before:o,after:s}}}return null}function pi(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function mi(e,t,n,r){let i=pi(e,n.calendarSystem);return{date:i,start:i,end:t?pi(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var hi=class{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,mi(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,mi(e,t,n,r))}},gi=class{constructor(e){this.func=e}format(e,t,n){return this.func(mi(e,null,t,n))}formatRange(e,t,n,r){return this.func(mi(e,t,n,r))}};function B(e){return typeof e==`object`&&e?new ri(e):typeof e==`string`?new hi(e):typeof e==`function`?new gi(e):null}var _i={navLinkDayClick:V,navLinkWeekClick:V,duration:F,bootstrapFontAwesome:V,buttonIcons:V,customButtons:V,defaultAllDayEventDuration:F,defaultTimedEventDuration:F,nextDayThreshold:F,scrollTime:F,scrollTimeReset:Boolean,slotMinTime:F,slotMaxTime:F,dayPopoverFormat:B,slotDuration:F,snapDuration:F,headerToolbar:V,footerToolbar:V,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:B,dayHeaderClassNames:V,dayHeaderContent:V,dayHeaderDidMount:V,dayHeaderWillUnmount:V,dayCellClassNames:V,dayCellContent:V,dayCellDidMount:V,dayCellWillUnmount:V,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:V,weekNumbers:Boolean,weekNumberClassNames:V,weekNumberContent:V,weekNumberDidMount:V,weekNumberWillUnmount:V,editable:Boolean,viewClassNames:V,viewDidMount:V,viewWillUnmount:V,nowIndicator:Boolean,nowIndicatorClassNames:V,nowIndicatorContent:V,nowIndicatorDidMount:V,nowIndicatorWillUnmount:V,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:V,locale:V,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:V,eventOrder:Qn,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:V,contentHeight:V,direction:String,weekNumberFormat:B,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:V,initialDate:V,now:V,eventDataTransform:V,stickyHeaderDates:V,stickyFooterScrollbar:V,viewHeight:V,defaultAllDay:Boolean,eventSourceFailure:V,eventSourceSuccess:V,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:V,eventConstraint:V,eventAllow:V,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:V,eventContent:V,eventDidMount:V,eventWillUnmount:V,selectConstraint:V,selectOverlap:V,selectAllow:V,droppable:Boolean,unselectCancel:String,slotLabelFormat:V,slotLaneClassNames:V,slotLaneContent:V,slotLaneDidMount:V,slotLaneWillUnmount:V,slotLabelClassNames:V,slotLabelContent:V,slotLabelDidMount:V,slotLabelWillUnmount:V,dayMaxEvents:V,dayMaxEventRows:V,dayMinWidth:Number,slotLabelInterval:F,allDayText:String,allDayClassNames:V,allDayContent:V,allDayDidMount:V,allDayWillUnmount:V,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:B,rerenderDelay:Number,moreLinkText:V,moreLinkHint:V,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:V,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:F,hiddenDays:V,fixedWeekCount:Boolean,validRange:V,visibleRange:V,titleFormat:V,eventInteractive:Boolean,noEventsText:String,viewHint:V,navLinkHint:V,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:V,moreLinkClassNames:V,moreLinkContent:V,moreLinkDidMount:V,moreLinkWillUnmount:V,monthStartFormat:B,handleCustomRendering:V,customRenderingMetaMap:V,customRenderingReplaces:Boolean},vi={eventDisplay:`auto`,defaultRangeSeparator:` - `,titleRangeSeparator:` – `,defaultTimedEventDuration:`01:00:00`,defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:`00:00:00`,dayHeaders:!0,initialView:``,aspectRatio:1.35,headerToolbar:{start:`title`,center:``,end:`today prev,next`},weekends:!0,weekNumbers:!1,weekNumberCalculation:`local`,editable:!1,nowIndicator:!1,scrollTime:`06:00:00`,scrollTimeReset:!0,slotMinTime:`00:00:00`,slotMaxTime:`24:00:00`,showNonCurrentDates:!0,lazyFetching:!0,startParam:`start`,endParam:`end`,timeZoneParam:`timeZone`,timeZone:`local`,locales:[],locale:``,themeSystem:`standard`,dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:`*`,eventOrder:`start,-duration,allDay,title`,dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:`long`,day:`numeric`}},yi={datesSet:V,eventsSet:V,eventAdd:V,eventChange:V,eventRemove:V,windowResize:V,eventClick:V,eventMouseEnter:V,eventMouseLeave:V,select:V,unselect:V,loading:V,_unmount:V,_beforeprint:V,_afterprint:V,_noEventDrop:V,_noEventResize:V,_resize:V,_scrollRequest:V},bi={buttonText:V,buttonHints:V,views:V,plugins:V,initialEvents:V,events:V,eventSources:V},xi={headerToolbar:Si,footerToolbar:Si,buttonText:Si,buttonHints:Si,buttonIcons:Si,dateIncrement:Si,plugins:Ci,events:Ci,eventSources:Ci,resources:Ci};function Si(e,t){return typeof e==`object`&&typeof t==`object`&&e&&t?Ni(e,t):e===t}function Ci(e,t){return Array.isArray(e)&&Array.isArray(t)?xr(e,t):e===t}var wi={type:String,component:V,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:V,usesMinMaxTime:Boolean,classNames:V,content:V,didMount:V,willUnmount:V};function Ti(e){return Oi(e,xi)}function Ei(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function V(e){return e}var{hasOwnProperty:Di}=Object.prototype;function Oi(e,t){let n={};if(t){for(let r in t)if(t[r]===Si){let t=[];for(let i=e.length-1;i>=0;--i){let a=e[i][r];if(typeof a==`object`&&a)t.unshift(a);else if(a!==void 0){n[r]=a;break}}t.length&&(n[r]=Oi(t))}}for(let t=e.length-1;t>=0;--t){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function ki(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Ai(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function ji(e){let t={};for(let n of e)t[n]=!0;return t}function Mi(e){let t=[];for(let n in e)t.push(e[n]);return t}function Ni(e,t){if(e===t)return!0;for(let n in e)if(Di.call(e,n)&&!(n in t))return!1;for(let n in t)if(Di.call(t,n)&&e[n]!==t[n])return!1;return!0}var Pi=/^on[A-Z]/;function Fi(e,t){let n=Ii(e,t);for(let e of n)if(!Pi.test(e))return!1;return!0}function Ii(e,t){let n=[];for(let r in e)Di.call(e,r)&&(r in t||n.push(r));for(let r in t)Di.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Li(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&Ri(e[r],t[r],n[r])))return!1;for(let n in e)if(!(n in t))return!1;return!0}function Ri(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function zi(e,t=0,n,r=1){let i=[];n??=Object.keys(e).length;for(let a=t;a<n;a+=r){let t=e[a];t!==void 0&&i.push(t)}return i}var Bi={};function Vi(e,t){Bi[e]=t}function Hi(e){return new Bi[e]}Vi(`gregory`,class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return R(e)}markerToArray(e){return Vr(e)}});var Ui=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Wi(e){let t=Ui.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.${t[12]}`)*1e3:0));if(Hr(e)){let n=null;return t[13]&&(n=(t[15]===`-`?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}var Gi=class{constructor(e){let t=this.timeZone=e.timeZone,n=t!==`local`&&t!==`UTC`;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=Hi(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation===`ISO`&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay==`number`&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation==`function`&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText==null?e.locale.options.weekText:e.weekText,this.weekTextLong=(e.weekTextLong==null?e.locale.options.weekTextLong:e.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return t===null?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):R(zr(new Date))}createMarkerMeta(e){if(typeof e==`string`)return this.parse(e);let t=null;return typeof e==`number`?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=R(e)),t===null||!Hr(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=Wi(e);if(t===null)return null;let{marker:n}=t,r=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Ur(e)===Ur(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Ur(e)===Ur(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return n===null?(n=this.diffWholeMonths(e,t),n===null?(n=jr(e,t),n===null?(n=Mr(e,t),n===null?(n=Dr(e,t),ar(n)?{unit:`hour`,value:n}:(n=Or(e,t),ar(n)?{unit:`minute`,value:n}:(n=kr(e,t),ar(n)?{unit:`second`,value:n}:{unit:`millisecond`,value:t.valueOf()-e.valueOf()}))):{unit:`day`,value:n}):{unit:`week`,value:n}):{unit:`month`,value:n}):{unit:`year`,value:n}}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),r!==null)?r/hr(n):n.months&&(r=this.diffWholeMonths(e,t),r!==null)?r/gr(n):n.days&&(r=Mr(e,t),r!==null)?r/_r(n):(t.valueOf()-e.valueOf())/vr(n)}startOf(e,t){return t===`year`?this.startOfYear(e):t===`month`?this.startOfMonth(e):t===`week`?this.startOfWeek(e):t===`day`?L(e):t===`hour`?Nr(e):t===`minute`?Pr(e):t===`second`?Fr(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):Ir(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:n.forcedTzo==null?this.offsetForMarker(e):n.forcedTzo},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=wr(t,-1)),n.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo==null?this.offsetForMarker(e):r.forcedStartTzo},{marker:t,timeZoneOffset:r.forcedEndTzo==null?this.offsetForMarker(t):r.forcedEndTzo},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=t.forcedTzo==null?this.offsetForMarker(e):t.forcedTzo),Wr(e,n,t.omitTime)}timestampToMarker(e){return this.timeZone===`local`?R(zr(new Date(e))):this.timeZone===`UTC`||!this.namedTimeZoneImpl?new Date(e):R(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone===`local`?-Br(Vr(e)).getTimezoneOffset():this.timeZone===`UTC`?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Vr(e)):null}toDate(e,t){return this.timeZone===`local`?Br(Vr(e)):this.timeZone===`UTC`?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Vr(e))*1e3*60):new Date(e.valueOf()-(t||0))}},Ki=class{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if(typeof e==`object`&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e}getClass(e){return this.classes[e]||``}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:``}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:``}};Ki.prototype.classes={},Ki.prototype.iconClasses={},Ki.prototype.baseIconClass=``,Ki.prototype.iconOverridePrefix=``;function qi(e){e();let t=A.debounceRendering,n=[];function r(e){n.push(e)}for(A.debounceRendering=r,Et(j(Ji,{}),document.createElement(`div`));n.length;)n.shift()();A.debounceRendering=t}var Ji=class extends lt{render(){return j(`div`,{})}componentDidMount(){this.setState({})}};function Yi(e){let t=Dt(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach(e=>{e.context=t.value,e.forceUpdate()})},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}var Xi=class{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on(`_scrollRequest`,this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off(`_scrollRequest`,this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}},Zi=Yi({});function Qi(e,t,n,r,i,a,o,s,c,l,u,d,f){return{dateEnv:i,options:n,pluginHooks:o,emitter:l,dispatch:s,getCurrentData:c,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:a,isRtl:n.direction===`rtl`,addResizeHandler(e){l.on(`_resize`,e)},removeResizeHandler(e){l.off(`_resize`,e)},createScrollResponder(e){return new Xi(e,l,F(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var $i=class extends lt{shouldComponentUpdate(e,t){return this.debug&&console.log(Ii(e,this.props),Ii(t,this.state)),!Li(this.props,e,this.propEquality)||!Li(this.state,t,this.stateEquality)}safeSetState(e){Li(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}};$i.addPropsEquality=ea,$i.addStateEquality=ta,$i.contextType=Zi,$i.prototype.propEquality={},$i.prototype.stateEquality={};var H=class extends $i{};H.contextType=Zi;function ea(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function ta(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function na(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var ra=class extends H{constructor(){super(...arguments),this.id=Gn(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:t}=this.context,{generatorName:n}=this.props;(!t.customRenderingReplaces||!ia(n,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&na(this.props.elRef,e)}}render(){let{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:i,renderProps:a}=e,o=aa(e,[],this.handleEl),s=!1,c,l=[],u;if(r!=null){let e=typeof r==`function`?r(a,j):r;if(e===!0)s=!0;else{let t=e&&typeof e==`object`;t&&`html`in e?o.dangerouslySetInnerHTML={__html:e.html}:t&&`domNodes`in e?l=Array.prototype.slice.call(e.domNodes):(t?Ke(e):typeof e!=`function`)?c=e:u=e}}else s=!ia(e.generatorName,n);return s&&i&&(c=i(a)),this.queuedDomNodes=l,this.currentGeneratorMeta=u,j(e.elTag,o,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){let{props:t,context:n}=this,{handleCustomRendering:r,customRenderingMetaMap:i}=n.options;if(r){let n=this.currentGeneratorMeta??i?.[t.generatorName];n&&r(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:n},t),{elClasses:(t.elClasses||[]).filter(oa)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!xr(e,t)){t.forEach(Dn);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}};ra.addPropsEquality({elClasses:xr,elStyle:Ni,elAttrs:Fi,renderProps:Ni});function ia(e,t){return!!(t.handleCustomRendering&&e&&t.customRenderingMetaMap?.[e])}function aa(e,t,n){let r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(` `)),e.elStyle&&(r.style=e.elStyle),r}function oa(e){return!!e}var sa=Yi(0),U=class extends lt{constructor(){super(...arguments),this.InnerContent=ca.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(na(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:e}=this,t=la(e.classNameGenerator,e.renderProps);if(e.children){let n=aa(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?j(e.elTag,n,r):r}else return j(ra,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||`div`,elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?(t=(e=this.props).didMount)==null||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)==null||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}};U.contextType=sa;function ca(e,t){let n=e.props;return j(ra,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function la(e,t){let n=typeof e==`function`?e(t):e||[];return typeof n==`string`?[n]:n}var ua=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return j(U,Object.assign({},e,{elTag:e.elTag||`div`,elClasses:[...da(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}};function da(e){return[`fc-${e.type}-view`,`fc-view`]}function fa(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function pa(e,t){let n=[],{start:r}=t,i,a;for(e.sort(ma),i=0;i<e.length;i+=1)a=e[i],a.start>r&&n.push({start:r,end:a.start}),a.end>r&&(r=a.end);return r<t.end&&n.push({start:r,end:t.end}),n}function ma(e,t){return e.start.valueOf()-t.start.valueOf()}function ha(e,t){let{start:n,end:r}=e,i=null;return t.start!==null&&(n=n===null?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r=r===null?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function ga(e,t){return(e.start===null?null:e.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(e.end===null?null:e.end.valueOf())===(t.end===null?null:t.end.valueOf())}function _a(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function va(e,t){return(e.start===null||t.start!==null&&t.start>=e.start)&&(e.end===null||t.end!==null&&t.end<=e.end)}function ya(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function ba(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function xa(e){let t=Math.floor(Er(e.start,e.end))||1,n=L(e.start);return{start:n,end:I(n,t)}}function Sa(e,t=F(0)){let n=null,r=null;if(e.end){r=L(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=vr(t)&&(r=I(r,1))}return e.start&&(n=L(e.start),r&&r<=n&&(r=I(n,1))),{start:n,end:r}}function Ca(e){let t=Sa(e);return Er(t.start,t.end)>1}function wa(e,t,n,r){return r===`year`?F(n.diffWholeYears(e,t),`year`):r===`month`?F(n.diffWholeMonths(e,t),`month`):Ar(e,t)}function Ta(e,t){switch(t.type){case`CHANGE_DATE`:return t.dateMarker;default:return e}}function Ea(e,t){let n=e.initialDate;return n==null?Da(e.now,t):t.createMarker(n)}function Da(e,t){return typeof e==`function`&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}var Oa=class{constructor(e){this.props=e,this.nowDate=Da(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let{props:r}=this,i,a,o,s,c,l;return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(e=ba(e,i)),a=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(a.unit),s=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,o),s=this.trimHiddenDays(s),c=s,r.showNonCurrentDates||(c=ha(c,a.range)),c=this.adjustActiveRange(c),c=ha(c,i),l=_a(a.range,i),ya(s,e)||(e=s.start),{currentDate:e,validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:o,activeRange:c,renderRange:s,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e==`function`?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:n}=this,r=null,i=null,a=null,o;return n.duration?(r=n.duration,i=n.durationUnit,a=this.buildRangeFromDuration(e,t,r,i)):(o=this.props.dayCount)?(i=`day`,a=this.buildRangeFromDayCount(e,t,o)):(a=this.buildCustomVisibleRange(e))?i=n.dateEnv.greatestWholeUnit(a.start,a.end).unit:(r=this.getFallbackDuration(),i=br(r).unit,a=this.buildRangeFromDuration(e,t,r,i)),{duration:r,unit:i,range:a}}getFallbackDuration(){return F({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:a,end:o}=e;return n&&(_r(r)<0&&(a=L(a),a=t.add(a,r)),_r(i)>1&&(o=L(o),o=I(o,-1),o=t.add(o,i))),{start:a,end:o}}buildRangeFromDuration(e,t,n,r){let{dateEnv:i,dateAlignment:a}=this.props,o,s,c;if(!a){let{dateIncrement:e}=this.props;a=e&&vr(e)<vr(n)?br(e).unit:r}_r(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=L(o));function l(){o=i.startOf(e,a),s=i.add(o,n),c={start:o,end:s}}return l(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,t),l()),c}buildRangeFromDayCount(e,t,n){let{dateEnv:r,dateAlignment:i}=this.props,a=0,o=e,s;i&&(o=r.startOf(o,i)),o=L(o),o=this.skipHiddenDays(o,t),s=o;do s=I(s,1),this.isHiddenDay(s)||(a+=1);while(a<n);return{start:o,end:s}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r=typeof n==`function`?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,n;return t||((n=this.props.dateAlignment)?F(1,n):e||F({days:1}))}refineRange(e){if(e){let t=fa(e,this.props.dateEnv);return t&&=Sa(t),t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],n=0,r;for(this.props.weekends===!1&&e.push(0,6),r=0;r<7;r+=1)(t[r]=e.indexOf(r)!==-1)||(n+=1);if(!n)throw Error(`invalid hiddenDays`);this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:n}=e;return t&&=this.skipHiddenDays(t),n&&=this.skipHiddenDays(n,-1,!0),t==null||n==null||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=I(e,t);return e}};function ka(e,t,n,r){return{instanceId:Gn(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function Aa(e,t,n,r){for(let i=0;i<r.length;i+=1){let a=r[i].parse(e,n);if(a){let{allDay:n}=e;return n??(n=t,n??(n=a.allDayGuess,n??=!1)),{allDay:n,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}function ja(e,t,n){let{dateEnv:r,pluginHooks:i,options:a}=n,{defs:o,instances:s}=e;for(let e in s=ki(s,e=>!o[e.defId].recurringDef),o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||=n.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration;let c=Ma(n,o,t,r,i.recurringTypes);for(let t of c){let n=ka(e,{start:t,end:r.add(t,o)});s[n.instanceId]=n}}}return{defs:o,instances:s}}function Ma(e,t,n,r,i){let a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(L)),a}var Na={id:String,groupId:String,title:String,url:String,interactive:Boolean},Pa={start:V,end:V,date:V,allDay:Boolean},Fa=Object.assign(Object.assign(Object.assign({},Na),Pa),{extendedProps:V});function Ia(e,t,n,r,i=Ra(n),a,o){let{refined:s,extra:c}=La(e,n,i),l=Va(t,n),u=Aa(s,l,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let e=za(s,c,t?t.sourceId:``,u.allDay,!!u.duration,n,a);return e.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:e,instance:null}}let d=Ba(s,l,n,r);if(d){let e=za(s,c,t?t.sourceId:``,d.allDay,d.hasEnd,n,a),r=ka(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function La(e,t,n=Ra(t)){return Ei(e,n)}function Ra(e){return Object.assign(Object.assign(Object.assign({},Za),Fa),e.pluginHooks.eventRefiners)}function za(e,t,n,r,i,a,o){let s={title:e.title||``,groupId:e.groupId||``,publicId:e.id||``,url:e.url||``,recurringDef:null,defId:(o&&e.id?o[e.id]:``)||Gn(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:$a(e,a),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of a.pluginHooks.eventDefMemberAdders)Object.assign(s,t(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Ba(e,t,n,r){let{allDay:i}=e,a,o=null,s=!1,c,l=null,u=e.start==null?e.date:e.start;if(a=n.dateEnv.createMarkerMeta(u),a)o=a.marker;else if(!r)return null;return e.end!=null&&(c=n.dateEnv.createMarkerMeta(e.end)),i??=t??((!a||a.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),i&&o&&(o=L(o)),c&&(l=c.marker,i&&(l=L(l)),o&&l<=o&&(l=null)),l?s=!0:r||(s=n.options.forceEventDuration||!1,l=n.dateEnv.add(o,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:o,end:l},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}function Va(e,t){let n=null;return e&&(n=e.defaultAllDay),n??=t.options.defaultAllDay,n}function Ha(e,t,n,r,i,a){let o=W(),s=Ra(n);for(let c of e){let e=Ia(c,t,n,r,s,i,a);e&&Ua(e,o)}return o}function Ua(e,t=W()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Wa(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qa(e,e=>Ga(t,e));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return W()}function Ga(e,t){return!!(e.groupId&&e.groupId===t.groupId)}function W(){return{defs:{},instances:{}}}function Ka(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qa(e,t){let n=ki(e.defs,t);return{defs:n,instances:ki(e.instances,e=>n[e.defId])}}function Ja(e,t){let{defs:n,instances:r}=e,i={},a={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(a[e]=r[e]);return{defs:i,instances:a}}function Ya(e,t){return Array.isArray(e)?Ha(e,null,t,!0):typeof e==`object`&&e?Ha([e],null,t,!0):e==null?null:String(e)}function Xa(e){return Array.isArray(e)?e:typeof e==`string`?e.split(/\s+/):[]}var Za={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:V,overlap:V,allow:V,className:Xa,classNames:Xa,color:String,backgroundColor:String,borderColor:String,textColor:String},Qa={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:``,borderColor:``,textColor:``,classNames:[]};function $a(e,t){let n=Ya(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable==null?e.editable:e.startEditable,durationEditable:e.durationEditable==null?e.editable:e.durationEditable,constraints:n==null?[]:[n],overlap:e.overlap==null?null:e.overlap,allows:e.allow==null?[]:[e.allow],backgroundColor:e.backgroundColor||e.color||``,borderColor:e.borderColor||e.color||``,textColor:e.textColor||``,classNames:(e.className||[]).concat(e.classNames||[])}}function eo(e){return e.reduce(to,Qa)}function to(e,t){return{display:t.display==null?e.display:t.display,startEditable:t.startEditable==null?e.startEditable:t.startEditable,durationEditable:t.durationEditable==null?e.durationEditable:t.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap==`boolean`?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var no={id:String,defaultAllDay:Boolean,url:String,format:String,events:V,eventDataTransform:V,success:V,failure:V};function ro(e,t,n=io(t)){let r;if(typeof e==`string`?r={url:e}:typeof e==`function`||Array.isArray(e)?r={events:e}:typeof e==`object`&&e&&(r=e),r){let{refined:i,extra:a}=Ei(r,n),o=ao(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:``,fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||``,sourceId:Gn(),sourceDefId:o.sourceDefId,meta:o.meta,ui:$a(i,t),extendedProps:a}}return null}function io(e){return Object.assign(Object.assign(Object.assign({},Za),no),e.pluginHooks.eventSourceRefiners)}function ao(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;--t){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}function oo(e,t,n,r,i){switch(t.type){case`RECEIVE_EVENTS`:return so(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case`RESET_RAW_EVENTS`:return co(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case`ADD_EVENTS`:return fo(e,t.eventStore,r?r.activeRange:null,i);case`RESET_EVENTS`:return t.eventStore;case`MERGE_EVENTS`:return Ka(e,t.eventStore);case`PREV`:case`NEXT`:case`CHANGE_DATE`:case`CHANGE_VIEW_TYPE`:return r?ja(e,r.activeRange,i):e;case`REMOVE_EVENTS`:return Ja(e,t.eventStore);case`REMOVE_EVENT_SOURCE`:return mo(e,t.sourceId);case`REMOVE_ALL_EVENT_SOURCES`:return qa(e,e=>!e.sourceId);case`REMOVE_ALL_EVENTS`:return W();default:return e}}function so(e,t,n,r,i,a){if(t&&n===t.latestFetchId){let n=Ha(lo(i,t,a),t,a);return r&&(n=ja(n,r,a)),Ka(mo(e,t.sourceId),n)}return e}function co(e,t,n,r,i){let{defIdMap:a,instanceIdMap:o}=go(e);return ja(Ha(lo(n,t,i),t,i,!1,a,o),r,i)}function lo(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=uo(e,i)),r&&(e=uo(e,r)),e}function uo(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let e=t(r);e?n.push(e):e??n.push(r)}}return n}function fo(e,t,n,r){return n&&(t=ja(t,n,r)),Ka(e,t)}function po(e,t,n){let{defs:r}=e;return{defs:r,instances:Ai(e.instances,e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo}))}}function mo(e,t){return qa(e,e=>e.sourceId!==t)}function ho(e,t){return{defs:e.defs,instances:ki(e.instances,e=>!t[e.instanceId])}}function go(e){let{defs:t,instances:n}=e,r={},i={};for(let e in t){let{publicId:n}=t[e];n&&(r[n]=e)}for(let e in n){let{publicId:r}=t[n[e].defId];r&&(i[r]=e)}return{defIdMap:r,instanceIdMap:i}}var _o=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){vo(this.handlers,e,t)}off(e,t){yo(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}};function vo(e,t,n){(e[t]||(e[t]=[])).push(n)}function yo(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}var bo={startTime:`09:00`,endTime:`17:00`,daysOfWeek:[1,2,3,4,5],display:`inverse-background`,classNames:`fc-non-business`,groupId:`_businessHours`};function xo(e,t){return Ha(So(e),null,t)}function So(e){let t;return t=e===!0?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):typeof e==`object`&&e?[e]:[],t=t.map(e=>Object.assign(Object.assign({},bo),e)),t}function Co(e,t,n){n.emitter.trigger(`select`,Object.assign(Object.assign({},To(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function wo(e,t){t.emitter.trigger(`unselect`,{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function To(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,es(e,t.dateEnv)),n}function Eo(e,t,n){let{dateEnv:r,options:i}=n,a=t;return e?(a=L(a),a=r.add(a,i.defaultAllDayEventDuration)):a=r.add(a,i.defaultTimedEventDuration),a}function Do(e,t,n,r){let i=Lo(e.defs,t),a=W();for(let t in e.defs){let o=e.defs[t];a.defs[t]=Oo(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],s=a.defs[o.defId];a.instances[t]=ko(o,s,i[o.defId],n,r)}return a}function Oo(e,t,n,r){let i=n.standardProps||{};i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(a,n,r);return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function ko(e,t,n,r,i){let{dateEnv:a}=i,o=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,c=Object.assign({},e);return o&&(c.range=xa(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:a.add(c.range.start,r.datesDelta),end:a.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:a.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:a.add(c.range.end,r.endDelta)}),s&&(c.range={start:c.range.start,end:Eo(t.allDay,c.range.start,i)}),t.allDay&&(c.range={start:L(c.range.start),end:L(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Eo(t.allDay,c.range.start,i)),c}var Ao=class{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:`REMOVE_EVENT_SOURCE`,sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:`FETCH_EVENT_SOURCES`,sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}},G=class e{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Pa)console.warn(`Could not set date-related prop 'name'. Use one of the date-related methods instead.`);else if(e===`id`)t=Na[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Na)t=Na[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Za){let n=Za[e](t);n=e===`color`?{backgroundColor:t,borderColor:t}:e===`editable`?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=this._instance.range,i=wa(e.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}}setEnd(e,t={}){let{dateEnv:n}=this._context,r;if(!(e!=null&&(r=n.createMarker(e),!r))&&this._instance)if(r){let e=wa(this._instance.range.end,r,n,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let{dateEnv:r}=this._context,i={allDay:n.allDay},a=r.createMarker(e),o;if(a&&!(t!=null&&(o=r.createMarker(t),!o))&&this._instance){let e=this._instance.range;n.allDay===!0&&(e=xa(e));let t=wa(e.start,a,r,n.granularity);if(o){let a=wa(e.end,o,r,n.granularity);dr(t,a)?this.mutate({datesDelta:t,standardProps:i}):this.mutate({startDelta:t,endDelta:a,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:t,standardProps:i})}}moveStart(e){let t=F(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=F(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=F(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;r??=this._context.options.allDayMaintainDuration,this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=B(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:a}=i.getCurrentData(),o=Wa(a,n.instanceId);o=Do(o,{"":{display:``,startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:``,borderColor:``,textColor:``,classNames:[]}},t,i);let s=new e(i,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],i.dispatch({type:`MERGE_EVENTS`,eventStore:o}),i.emitter.trigger(`eventChange`,{oldEvent:s,event:this,relatedEvents:Mo(o,i,n),revert(){i.dispatch({type:`RESET_EVENTS`,eventStore:a})}})}}remove(){let e=this._context,t=jo(this);e.dispatch({type:`REMOVE_EVENTS`,eventStore:t}),e.emitter.trigger(`eventRemove`,{event:this,relatedEvents:[],revert(){e.dispatch({type:`MERGE_EVENTS`,eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new Ao(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):``}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):``}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||`auto`}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,a={allDay:t.allDay};return t.title&&(a.title=t.title),r&&(a.start=r),i&&(a.end=i),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&n.display!==`auto`&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}toJSON(){return this.toPlainObject()}};function jo(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Mo(e,t,n){let{defs:r,instances:i}=e,a=[],o=n?n.instanceId:``;for(let e in i){let n=i[e],s=r[n.defId];n.instanceId!==o&&a.push(new G(t,s,n))}return a}function No(e,t,n,r){let i={},a={},o={},s=[],c=[],l=Lo(e.defs,t);for(let t in e.defs){let n=e.defs[t];l[n.defId].display===`inverse-background`&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):a[t]=[])}for(let t in e.instances){let o=e.instances[t],u=e.defs[o.defId],d=l[u.defId],f=o.range,p=!u.allDay&&r?Sa(f,r):f,m=ha(p,n);m&&(d.display===`inverse-background`?u.groupId?i[u.groupId].push(m):a[o.defId].push(m):d.display!==`none`&&(d.display===`background`?s:c).push({def:u,ui:d,instance:o,range:m,isStart:p.start&&p.start.valueOf()===m.start.valueOf(),isEnd:p.end&&p.end.valueOf()===m.end.valueOf()}))}for(let e in i){let t=i[e],r=pa(t,n);for(let t of r){let n=o[e],r=l[n.defId];s.push({def:n,ui:r,instance:null,range:t,isStart:!1,isEnd:!1})}}for(let t in a){let r=a[t],i=pa(r,n);for(let n of i)s.push({def:e.defs[t],ui:l[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:s,fg:c}}function Po(e){return e.ui.display===`background`||e.ui.display===`inverse-background`}function Fo(e,t){e.fcSeg=t}function Io(e){return e.fcSeg||e.parentNode.fcSeg||null}function Lo(e,t){return Ai(e,e=>Ro(e,t))}function Ro(e,t){let n=[];return t[``]&&n.push(t[``]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),eo(n)}function zo(e,t){let n=e.map(Bo);return n.sort((e,n)=>$n(e,n,t)),n.map(e=>e._seg)}function Bo(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function Vo(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:a}=e.eventRange,o=a.startEditable;for(let e of r)o=e(o,i,a,t);return o}function Ho(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Uo(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Wo(e,t,n,r,i,a,o){let{dateEnv:s,options:c}=n,{displayEventTime:l,displayEventEnd:u}=c,d=e.eventRange.def,f=e.eventRange.instance;l??=r!==!1,u??=i!==!1;let p=f.range.start,m=f.range.end,h=a||e.start||e.eventRange.range.start,g=o||e.end||e.eventRange.range.end,_=L(p).valueOf()===L(h).valueOf(),v=L(wr(m,-1)).valueOf()===L(wr(g,-1)).valueOf();return l&&!d.allDay&&(_||v)?(h=_?p:h,g=v?m:g,u&&d.hasEnd?s.formatRange(h,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):s.format(h,t,{forcedTzo:a?null:f.forcedStartTzo})):``}function Go(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&ya(t,r.start)}}function Ko(e){let t=[`fc-event`];return e.isMirror&&t.push(`fc-event-mirror`),e.isDraggable&&t.push(`fc-event-draggable`),(e.isStartResizable||e.isEndResizable)&&t.push(`fc-event-resizable`),e.isDragging&&t.push(`fc-event-dragging`),e.isResizing&&t.push(`fc-event-resizing`),e.isSelected&&t.push(`fc-event-selected`),e.isStart&&t.push(`fc-event-start`),e.isEnd&&t.push(`fc-event-end`),e.isPast&&t.push(`fc-event-past`),e.isToday&&t.push(`fc-event-today`),e.isFuture&&t.push(`fc-event-future`),t}function qo(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Jo(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:a,options:o}=t,{eventInteractive:s}=o;return s??(s=n.interactive,s??=!!a.hasHandlers(`eventClick`)),s?Un(e=>{a.trigger(`eventClick`,{el:e.target,event:new G(t,n,r),jsEvent:e,view:t.viewApi})}):{}}var Yo={start:V,end:V,allDay:Boolean};function Xo(e,t,n){let r=Zo(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function Zo(e,t){let{refined:n,extra:r}=Ei(e,Yo),i=n.start?t.createMarkerMeta(n.start):null,a=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;return o??=i&&i.isTimeUnspecified&&(!a||a.isTimeUnspecified),Object.assign({range:{start:i?i.marker:null,end:a?a.marker:null},allDay:o},r)}function Qo(e,t){return ga(e.range,t.range)&&e.allDay===t.allDay&&$o(e,t)}function $o(e,t){for(let n in t)if(n!==`range`&&n!==`allDay`&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}function es(e,t){return Object.assign(Object.assign({},ns(e.range,t,e.allDay)),{allDay:e.allDay})}function ts(e,t,n){return Object.assign(Object.assign({},ns(e,t,n)),{timeZone:t.timeZone})}function ns(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function rs(e,t,n){let r=La({editable:!1},n),i=za(r.refined,r.extra,``,e.allDay,!0,n);return{def:i,ui:Ro(i,t),instance:ka(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function is(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},a=function(e){r||(r=!0,n(e))},o=e(i,a);o&&typeof o.then==`function`&&o.then(i,a)}var as=class extends Error{constructor(e,t){super(e),this.response=t}};function os(e,t,n){e=e.toUpperCase();let r={method:e};return e===`GET`?t+=(t.indexOf(`?`)===-1?`?`:`&`)+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":`application/x-www-form-urlencoded`}),fetch(t,r).then(e=>{if(e.ok)return e.json().then(t=>[t,e],()=>{throw new as(`Failure parsing JSON`,e)});throw new as(`Request failed`,e)})}var ss;function cs(){return ss??=ls(),ss}function ls(){if(typeof document>`u`)return!0;let e=document.createElement(`div`);e.style.position=`absolute`,e.style.top=`0px`,e.style.left=`0px`,e.innerHTML=`<table><tr><td><div></div></td></tr></table>`,e.querySelector(`table`).style.height=`100px`,e.querySelector(`div`).style.height=`100%`,document.body.appendChild(e);let t=e.querySelector(`div`).offsetHeight>0;return document.body.removeChild(e),t}var us=class extends H{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{qi(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{qi(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||t.height===`auto`||t.contentHeight===`auto`,i=!r&&t.height!=null?t.height:``,a=[`fc`,n?`fc-media-print`:`fc-media-screen`,`fc-direction-${t.direction}`,e.theme.getClass(`root`)];return cs()||a.push(`fc-liquid-hack`),e.children(a,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on(`_beforeprint`,this.handleBeforePrint),e.on(`_afterprint`,this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off(`_beforeprint`,this.handleBeforePrint),e.off(`_afterprint`,this.handleAfterPrint)}},ds=class{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}};function fs(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter==null?!0:t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function ps(e){return{[e.component.uid]:e}}var ms={},hs=class{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger(`_resize`,!0)}setOption(e,t){this.dispatch({type:`SET_OPTION`,optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e}),this.dispatch({type:`SET_OPTION`,optionName:`visibleRange`,rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e})})}zoomTo(e,t){let n=this.getCurrentData(),r;t||=`day`,r=n.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),r?this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:r.type,dateMarker:e}):this.dispatch({type:`CHANGE_DATE`,dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:n}=this.getCurrentData(),r=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]),i,a;for(let e in t)r.push(e);for(i=0;i<r.length;i+=1)if(a=t[r[i]],a&&a.singleUnit===e)return a;return null}prev(){this.unselect(),this.dispatch({type:`PREV`})}next(){this.unselect(),this.dispatch({type:`NEXT`})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:Da(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=F(e);n&&(this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),B(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),B(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=t==null?e.start==null?{start:e,end:null}:e:{start:e,end:t};let r=this.getCurrentData(),i=Xo(n,r.dateEnv,F({days:1}));i&&(this.dispatch({type:`SELECT_DATES`,selection:i}),Co(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:`UNSELECT_DATES`}),wo(e,t))}addEvent(e,t){if(e instanceof G){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:`ADD_EVENTS`,eventStore:Ua({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n=this.getCurrentData(),r;if(t instanceof Ao)r=t.internalEventSource;else if(typeof t==`boolean`)t&&([r]=Mi(n.eventSources));else if(t!=null){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;r=e.internalEventSource}let i=Ia(e,r,n,!1);if(i){let e=new G(n,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:`ADD_EVENTS`,eventStore:Ua(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger(`eventAdd`,{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:`REMOVE_EVENTS`,eventStore:jo(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;for(let i in e=String(e),n){let a=n[i];if(a.publicId===e){if(a.recurringDef)return new G(t,a,null);for(let e in r){let n=r[e];if(n.defId===a.defId)return new G(t,a,n)}}}return null}getEvents(){let e=this.getCurrentData();return Mo(e.eventStore,e)}removeAllEvents(){this.dispatch({type:`REMOVE_ALL_EVENTS`})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new Ao(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;for(let r in e=String(e),n)if(n[r].publicId===e)return new Ao(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Ao)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:`ADD_EVENT_SOURCES`,sources:[e.internalEventSource]}),e;let n=ro(e,t);return n?(this.dispatch({type:`ADD_EVENT_SOURCES`,sources:[n]}),new Ao(t,n)):null}removeAllEventSources(){this.dispatch({type:`REMOVE_ALL_EVENT_SOURCES`})}refetchEvents(){this.dispatch({type:`FETCH_EVENT_SOURCES`,isRefetch:!0})}scrollToTime(e){let t=F(e);t&&this.trigger(`_scrollRequest`,{time:t})}};function gs(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function _s(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function vs(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function ys(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function bs(e,t){return{left:e.left-t.left,top:e.top-t.top}}var xs=W(),Ss=class{constructor(){this.getKeysForEventDefs=z(this._getKeysForEventDefs),this.splitDateSelection=z(this._splitDateSpan),this.splitEventStore=z(this._splitEventStore),this.splitIndividualUi=z(this._splitIndividualUi),this.splitEventDrag=z(this._splitInteraction),this.splitEventResize=z(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),a=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),c={};for(let n in this.eventUiBuilders=Ai(t,(e,t)=>this.eventUiBuilders[t]||z(Cs)),t){let l=t[n],u=a[n]||xs,d=this.eventUiBuilders[n];c[n]={businessHours:l.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:u,eventUiBases:d(e.eventUiBases[``],l.ui,i[n]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:``,eventDrag:o[n]||null,eventResize:s[n]||null}}return c}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return Ai(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]=W()),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),a=r=>{t[r]||(t[r]={affectedEvents:n[r]||xs,mutatedEvents:i[r]||xs,isEvent:e.isEvent})};for(let e in n)a(e);for(let e in i)a(e)}return t}};function Cs(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":eo(r)};return n&&Object.assign(i,n),i}function ws(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&!ya(r.activeRange,e)),isOther:!!(r&&!ya(r.currentRange,e)),isToday:!!(t&&ya(t,e)),isPast:!!(n?e<n:t&&e<t.start),isFuture:!!(n?e>n:t&&e>=t.end)}}function Ts(e,t){let n=[`fc-day`,`fc-day-${Sr[e.dow]}`];return e.isDisabled?n.push(`fc-day-disabled`):(e.isToday&&(n.push(`fc-day-today`),n.push(t.getClass(`today`))),e.isPast&&n.push(`fc-day-past`),e.isFuture&&n.push(`fc-day-future`),e.isOther&&n.push(`fc-day-other`)),n}var Es=B({year:`numeric`,month:`long`,day:`numeric`}),Ds=B({week:`long`});function Os(e,t,n=`day`,r=!0){let{dateEnv:i,options:a,calendarApi:o}=e,s=i.format(t,n===`week`?Ds:Es);if(a.navLinks){let e=i.toDate(t),c=e=>{let r=n===`day`?a.navLinkDayClick:n===`week`?a.navLinkWeekClick:null;typeof r==`function`?r.call(o,i.toDate(t),e):(typeof r==`string`&&(n=r),o.zoomTo(t,n))};return Object.assign({title:rr(a.navLinkHint,[s,e],s),"data-navlink":``},r?Hn(c):{onClick:c})}return{"aria-label":s}}var ks=null;function As(){return ks===null&&(ks=js()),ks}function js(){let e=document.createElement(`div`);jn(e,{position:`absolute`,top:-1e3,left:0,border:0,padding:0,overflow:`scroll`,direction:`rtl`}),e.innerHTML=`<div></div>`,document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Dn(e),t}var Ms;function Ns(){return Ms||=Ps(),Ms}function Ps(){let e=document.createElement(`div`);e.style.overflow=`scroll`,e.style.position=`absolute`,e.style.top=`-9999px`,e.style.left=`-9999px`,document.body.appendChild(e);let t=Fs(e);return document.body.removeChild(e),t}function Fs(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Is(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=Fs(e),c=s.y-r-i,l={borderLeft:r,borderRight:i,borderTop:a,borderBottom:o,scrollbarBottom:s.x-a-o,scrollbarLeft:0,scrollbarRight:0};return As()&&n.direction===`rtl`?l.scrollbarLeft=c:l.scrollbarRight=c,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function Ls(e,t=!1,n){let r=n?e.getBoundingClientRect():Rs(e),i=Is(e,t),a={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(a.left+=i.paddingLeft,a.right-=i.paddingRight,a.top+=i.paddingTop,a.bottom-=i.paddingBottom),a}function Rs(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function zs(e){let t=Bs(e),n=e.getBoundingClientRect();for(let e of t){let t=_s(n,e.getBoundingClientRect());if(t)n=t;else return null}return n}function Bs(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if(n.position===`fixed`)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}var Vs=class{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let{lefts:t,rights:n}=this,r=t.length,i;for(i=0;i<r;i+=1)if(e>=t[i]&&e<n[i])return i}topToIndex(e){let{tops:t,bottoms:n}=this,r=t.length,i;for(i=0;i<r;i+=1)if(e>=t[i]&&e<n[i])return i}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Hs(this.tops||[],e.tops||[])&&Hs(this.bottoms||[],e.bottoms||[])&&Hs(this.lefts||[],e.lefts||[])&&Hs(this.rights||[],e.rights||[])}};function Hs(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}var Us=class{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}},Ws=class extends Us{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}},Gs=class extends Us{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}},Ks=class extends H{constructor(){super(...arguments),this.uid=Gn()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!P(e,`.fc-event-mirror`)}isValidDateDownEl(e){return!P(e,`.fc-event:not(.fc-bg-event)`)&&!P(e,`.fc-more-link`)&&!P(e,`a[data-navlink]`)&&!P(e,`.fc-popover`)}},qs=class{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){let r=Object.assign(Object.assign({},t),{span:Qs(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,i=t.span;r.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:i.start}},n),r.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;t.lateral===-1?($s(r,t.level,t.levelCoord),$s(n,t.level,[e])):$s(n[t.level],t.lateral,e),this.stackCnts[Ys(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,a=t.length,o=0,s=-1,c=-1,l=null,u=0;for(let d=0;d<a;d+=1){let a=t[d];if(!r&&a>=o+this.getEntryThickness(e))break;let f=n[d],p,m=ec(f,e.span.start,Js),h=m[0]+m[1];for(;(p=f[h])&&p.span.start<e.span.end;){let e=a+this.getEntryThickness(p);e>o&&(o=e,l=p,s=d,c=h),e===o&&(u=Math.max(u,i[Ys(p)]+1)),h+=1}}let d=0;if(l)for(d=s+1;d<a&&t[d]<o;)d+=1;let f=-1;return d<a&&t[d]===o&&(f=ec(n[d],e.span.end,Js)[0]),{touchingLevel:s,touchingLateral:c,touchingEntry:l,stackCnt:u,levelCoord:o,level:d,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],a=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:a}))}return r}};function Js(e){return e.span.end}function Ys(e){return e.index+`:`+e.span.start}function Xs(e){let t=[];for(let n of e){let e=[],r={span:n.span,entries:[n]};for(let n of t)Qs(n.span,r.span)?r={entries:n.entries.concat(r.entries),span:Zs(n.span,r.span)}:e.push(n);e.push(r),t=e}return t}function Zs(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Qs(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function $s(e,t,n){e.splice(t,0,n)}function ec(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let a=Math.floor(r+(i-r)/2),o=n(e[a]);if(t<o)i=a;else if(t>o)r=a+1;else return[a,1]}return[r,0]}var tc=class{constructor(e,t){this.emitter=new _o}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}},nc={};function rc(e,t){return B(!e||t>10?{weekday:`short`}:t>1?{weekday:`short`,month:`numeric`,day:`numeric`,omitCommas:!0}:{weekday:`long`})}var ic=`fc-col-header-cell`;function ac(e){return e.text}var oc=class extends H{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:a,dateProfile:o}=i,s=ws(a,i.todayRange,null,o),c=[ic].concat(Ts(s,n)),l=e.format(a,i.dayHeaderFormat),u=!s.isDisabled&&i.colCnt>1?Os(this.context,a):{},d=Object.assign(Object.assign(Object.assign({date:e.toDate(a),view:r},i.extraRenderProps),{text:l}),s);return j(U,{elTag:`th`,elClasses:c,elAttrs:Object.assign({role:`columnheader`,colSpan:i.colSpan,"data-date":s.isDisabled?void 0:Gr(a)},i.extraDataAttrs),renderProps:d,generatorName:`dayHeaderContent`,customGenerator:t.dayHeaderContent,defaultGenerator:ac,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},e=>j(`div`,{className:`fc-scrollgrid-sync-inner`},!s.isDisabled&&j(e,{elTag:`a`,elAttrs:u,elClasses:[`fc-col-header-cell-cushion`,i.isSticky&&`fc-sticky`]})))}},sc=B({weekday:`long`}),cc=class extends H{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,a=I(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=t.format(a,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:a},o),{view:r}),e.extraRenderProps),{text:s});return j(U,{elTag:`th`,elClasses:[ic,...Ts(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:`columnheader`,colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:`dayHeaderContent`,customGenerator:i.dayHeaderContent,defaultGenerator:ac,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},n=>j(`div`,{className:`fc-scrollgrid-sync-inner`},j(n,{elTag:`a`,elClasses:[`fc-col-header-cell-cushion`,e.isSticky&&`fc-sticky`],elAttrs:{"aria-label":t.format(a,sc)}})))}},lc=class extends lt{constructor(e,t){super(e,t),this.initialNowDate=Da(t.options.now,t.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=wr(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,F(1,e.unit)),a=i.valueOf()-n.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:r,todayRange:uc(r)},nextState:{nowDate:i,todayRange:uc(i)},waitMs:a}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}};lc.contextType=Zi;function uc(e){let t=L(e);return{start:t,end:I(t,1)}}var dc=class extends H{constructor(){super(...arguments),this.createDayHeaderFormatter=z(fc)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return j(lc,{unit:`day`},(e,o)=>j(`tr`,{role:`row`},i&&i(`day`),t.map(e=>r?j(oc,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:a}):j(cc,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a}))))}};function fc(e,t,n){return e||rc(t,n)}var pc=class{constructor(e,t){let n=e.start,{end:r}=e,i=[],a=[],o=-1;for(;n<r;)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),a.push(n)),n=I(n,1);this.dates=a,this.indices=i,this.cnt=a.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(I(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(Er(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}},mc=class{constructor(e,t){let{dates:n}=e,r,i,a;if(t){for(i=n[0].getUTCDay(),r=1;r<n.length&&n[r].getUTCDay()!==i;r+=1);a=Math.ceil(n.length/r)}else a=1,r=n.length;this.rowCnt=a,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:i}=n,a=e;for(;a<=i;){let o=Math.floor(a/t),s=Math.min((o+1)*t,i+1);r.push({row:o,firstCol:a%t,lastCol:(s-1)%t,isStart:n.isStart&&a===e,isEnd:n.isEnd&&s-1===i}),a=s}}return r}},hc=class{constructor(){this.sliceBusinessHours=z(this._sliceBusinessHours),this.sliceDateSelection=z(this._sliceDateSpan),this.sliceEventStore=z(this._sliceEventStore),this.sliceEventDrag=z(this._sliceInteraction),this.sliceEventResize=z(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:a}=e,o=this.sliceEventStore(e.eventStore,a,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,a,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,a,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...i){return this._sliceDateSpan({range:{start:e,end:wr(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(ja(e,gc(t,!!n),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let a=No(e,t,gc(n,!!r),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let a=No(e.mutatedEvents,t,gc(n,!!r),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...a){if(!e)return[];let o=gc(t,!!n),s=ha(e.range,o);if(s){e=Object.assign(Object.assign({},e),{range:s});let t=rs(e,r,i),n=this.sliceRange(e.range,...a);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&e.ui.display===`list-item`&&(n={start:n.start,end:I(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}};function gc(e,t){let n=e.activeRange;return t?n:{start:wr(n.start,e.slotMinTime.milliseconds),end:wr(n.end,e.slotMaxTime.milliseconds-864e5)}}function _c(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!va(t.validRange,r[e].range))return!1;return yc({eventDrag:e},n)}function vc(e,t,n){return va(t.validRange,e.range)?yc({dateSelection:e},n):!1}function yc(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:``,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:``,eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||bc)(r,t)}function bc(e,t,n={},r){return!(e.eventDrag&&!xc(e,t,n,r)||e.dateSelection&&!Sc(e,t,n,r))}function xc(e,t,n,r){let i=t.getCurrentData(),a=e.eventDrag,o=a.mutatedEvents,s=o.defs,c=o.instances,l=Lo(s,a.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(l=Ai(l,r));let u=ho(e.eventStore,a.affectedEvents.instances),d=u.defs,f=u.instances,p=Lo(d,e.eventUiBases);for(let r in c){let o=c[r],m=o.range,h=l[o.defId],g=s[o.defId];if(!Cc(h.constraints,m,u,e.businessHours,t))return!1;let{eventOverlap:_}=t.options,v=typeof _==`function`?_:null;for(let e in f){let n=f[e];if(_a(m,n.range)&&(p[n.defId].overlap===!1&&a.isEvent||h.overlap===!1||v&&!v(new G(t,d[n.defId],n),new G(t,g,o))))return!1}let y=i.eventStore;for(let e of h.allows){let i=Object.assign(Object.assign({},n),{range:o.range,allDay:g.allDay}),a=y.defs[g.defId],s=y.instances[r],c;if(c=a?new G(t,a,s):new G(t,g),!e(To(i,t),c))return!1}}return!0}function Sc(e,t,n,r){let i=e.eventStore,a=i.defs,o=i.instances,s=e.dateSelection,c=s.range,{selectionConfig:l}=t.getCurrentData();if(r&&(l=r(l)),!Cc(l.constraints,c,i,e.businessHours,t))return!1;let{selectOverlap:u}=t.options,d=typeof u==`function`?u:null;for(let e in o){let n=o[e];if(_a(c,n.range)&&(l.overlap===!1||d&&!d(new G(t,a[n.defId],n),null)))return!1}for(let e of l.allows)if(!e(To(Object.assign(Object.assign({},n),s),t),null))return!1;return!0}function Cc(e,t,n,r,i){for(let a of e)if(!Ec(wc(a,t,n,r,i),t))return!1;return!0}function wc(e,t,n,r,i){return e===`businessHours`?Tc(ja(r,t,i)):typeof e==`string`?Tc(qa(n,t=>t.groupId===e)):typeof e==`object`&&e?Tc(ja(e,t,i)):[]}function Tc(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function Ec(e,t){for(let n of e)if(va(n,t))return!0;return!1}var Dc=/^(visible|hidden)$/,Oc=class extends H{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,na(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=[`fc-scroller`];return t&&(n?i.push(`fc-scroller-liquid-absolute`):i.push(`fc-scroller-liquid`)),j(`div`,{ref:this.handleEl,className:i.join(` `),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||``,right:r&&-(e.overcomeRight||0)||``,bottom:r&&-(e.overcomeBottom||0)||``,marginLeft:!r&&-(e.overcomeLeft||0)||``,marginRight:!r&&-(e.overcomeRight||0)||``,marginBottom:!r&&-(e.overcomeBottom||0)||``,maxHeight:e.maxHeight||``}},e.children)}needsXScrolling(){if(Dc.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(Dc.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return Dc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Dc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}},kc=class{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,a=!1;e===null?(--n[t],n[t]||(delete r[t],delete this.callbackMap[t],i=!0)):(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,a=!0),this.masterCallback&&(i&&this.masterCallback(null,String(t)),a&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||=this.callbackMap[e]=t=>{this.handleValue(t,String(e))},t}collect(e,t,n){return zi(this.currentMap,e,t,n)}getAll(){return Mi(this.currentMap)}};function Ac(e){let t=kn(e,`.fc-scrollgrid-shrink`),n=0;for(let e of t)n=Math.max(n,or(e));return Math.ceil(n)}function jc(e,t){return e.liquid&&t.liquid}function Mc(e,t){return t.maxHeight!=null||jc(e,t)}function Nc(e,t,n,r){let{expandRows:i}=n;return typeof t.content==`function`?t.content(n):j(`table`,{role:`presentation`,className:[t.tableClassName,e.syncRowHeights?`fc-scrollgrid-sync-table`:``].join(` `),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:``}},n.tableColGroupNode,j(r?`thead`:`tbody`,{role:`presentation`},typeof t.rowContent==`function`?t.rowContent(n):t.rowContent))}function Pc(e,t){return xr(e,t,Ni)}function Fc(e,t){let n=[];for(let r of e){let e=r.span||1;for(let i=0;i<e;i+=1)n.push(j(`col`,{style:{width:r.width===`shrink`?Ic(t):r.width||``,minWidth:r.minWidth||``}}))}return j(`colgroup`,{},...n)}function Ic(e){return e??4}function Lc(e){for(let t of e)if(t.width===`shrink`)return!0;return!1}function Rc(e,t){let n=[`fc-scrollgrid`,t.theme.getClass(`table`)];return e&&n.push(`fc-scrollgrid-liquid`),n}function zc(e,t){let n=[`fc-scrollgrid-section`,`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push(`fc-scrollgrid-section-liquid`),e.isSticky&&n.push(`fc-scrollgrid-section-sticky`),n}function Bc(e){return j(`div`,{className:`fc-scrollgrid-sticky-shim`,style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Vc(e){let{stickyHeaderDates:t}=e;return(t==null||t===`auto`)&&(t=e.height===`auto`||e.viewHeight===`auto`),t}function Hc(e){let{stickyFooterScrollbar:t}=e;return(t==null||t===`auto`)&&(t=e.height===`auto`||e.viewHeight===`auto`),t}var Uc=class extends H{constructor(){super(...arguments),this.processCols=z(e=>e,Pc),this.renderMicroColGroup=z(Fc),this.scrollerRefs=new kc,this.scrollerElRefs=new kc(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],i=this.processCols(e.cols),a=this.renderMicroColGroup(i,t.shrinkWidth),o=Rc(e.liquid,n);e.collapsibleWidth&&o.push(`fc-scrollgrid-collapsible`);let s=r.length,c=0,l,u=[],d=[],f=[];for(;c<s&&(l=r[c]).type===`header`;)u.push(this.renderSection(l,a,!0)),c+=1;for(;c<s&&(l=r[c]).type===`body`;)d.push(this.renderSection(l,a,!1)),c+=1;for(;c<s&&(l=r[c]).type===`footer`;)f.push(this.renderSection(l,a,!0)),c+=1;let p=!cs(),m={role:`rowgroup`};return j(`table`,{role:`grid`,className:o.join(` `),style:{height:e.height}},!!(!p&&u.length)&&j(`thead`,m,...u),!!(!p&&d.length)&&j(`tbody`,m,...d),!!(!p&&f.length)&&j(`tfoot`,m,...f),p&&j(`tbody`,m,...u,...d,...f))}renderSection(e,t,n){return`outerContent`in e?j(N,{key:e.key},e.outerContent):j(`tr`,{key:e.key,role:`presentation`,className:zc(e,this.props.liquid).join(` `)},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if(`outerContent`in n)return n.outerContent;let{props:i}=this,{forceYScrollbars:a,scrollerClientWidths:o,scrollerClientHeights:s}=this.state,c=Mc(i,e),l=jc(i,e),u=i.liquid?a?`scroll`:c?`auto`:`hidden`:`visible`,d=e.key,f=Nc(e,n,{tableColGroupNode:t,tableMinWidth:``,clientWidth:!i.collapsibleWidth&&o[d]!==void 0?o[d]:null,clientHeight:s[d]===void 0?null:s[d],expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return j(r?`th`:`td`,{ref:n.elRef,role:`presentation`},j(`div`,{className:`fc-scroller-harness${l?` fc-scroller-harness-liquid`:``}`},j(Oc,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:u,overflowX:i.liquid?`hidden`:`visible`,maxHeight:e.maxHeight,liquid:l,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=Wc(this.props.sections,t);n&&na(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Lc(this.props.cols)?Ac(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Ns(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},a={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let o=t.key,s=n.currentMap[o];if(s){let t=s.parentNode;i[o]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),a[o]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:a}}};Uc.addStateEquality({scrollerClientWidths:Ni,scrollerClientHeights:Ni});function Wc(e,t){for(let n of e)if(n.key===t)return n;return null}var Gc=class extends H{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Fo(e,this.props.seg)}}render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:i}=r,{ui:a}=i,o={event:new G(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Vo(r,t),isStartResizable:!e.disableResizing&&Ho(r,t),isEndResizable:!e.disableResizing&&Uo(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return j(U,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Ko(o),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:`eventContent`,customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Fo(this.el,this.props.seg)}},Kc=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,a=Wo(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return j(Gc,Object.assign({},e,{elTag:`a`,elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Jo(r,t),defaultGenerator:qc,timeText:a}),(e,t)=>j(N,null,j(e,{elTag:`div`,elClasses:[`fc-event-main`],elStyle:{color:t.textColor}}),!!t.isStartResizable&&j(`div`,{className:`fc-event-resizer fc-event-resizer-start`}),!!t.isEndResizable&&j(`div`,{className:`fc-event-resizer fc-event-resizer-end`})))}};function qc(e){return j(`div`,{className:`fc-event-main-frame`},e.timeText&&j(`div`,{className:`fc-event-time`},e.timeText),j(`div`,{className:`fc-event-title-container`},j(`div`,{className:`fc-event-title fc-sticky`},e.event.title||j(N,null,`\xA0`))))}var Jc=e=>j(Zi.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return j(U,Object.assign({},e,{elTag:e.elTag||`div`,renderProps:r,generatorName:`nowIndicatorContent`,customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Yc=B({day:`numeric`}),Xc=class extends H{constructor(){super(...arguments),this.refineRenderProps=Yr(Qc)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return j(U,Object.assign({},e,{elClasses:[...Ts(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":Gr(e.date)}),renderProps:r,generatorName:`dayCellContent`,customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}};function Zc(e){return!!(e.dayCellContent||ia(`dayCellContent`,e))}function Qc(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,a=ws(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:Yc):``;return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},a),{isMonthStart:i,dayNumberText:o}),e.extraRenderProps)}var $c=class extends H{render(){let{props:e}=this,{seg:t}=e;return j(Gc,{elTag:`div`,elClasses:[`fc-bg-event`],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:el,seg:t,timeText:``,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}};function el(e){let{title:t}=e.event;return t&&j(`div`,{className:`fc-event-title`},e.event.title)}function tl(e){return j(`div`,{className:`fc-${e}`})}var nl=e=>j(Zi.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,a=r.weekNumberFormat||e.defaultFormat,o={num:n.computeWeekNumber(i),text:n.format(i,a),date:i};return j(U,Object.assign({},e,{renderProps:o,generatorName:`weekNumberContent`,customGenerator:r.weekNumberContent,defaultGenerator:rl,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function rl(e){return e.text}var il=10,al=class extends H{constructor(){super(...arguments),this.state={titleId:Fn()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&na(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let t=Nn(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,i=[`fc-popover`,e.getClass(`popover`)].concat(n.extraClassNames||[]);return rn(j(`div`,Object.assign({},n.extraAttrs,{id:n.id,className:i.join(` `),"aria-labelledby":r.titleId,ref:this.handleRootEl}),j(`div`,{className:`fc-popover-header `+e.getClass(`popoverHeader`)},j(`span`,{className:`fc-popover-title`,id:r.titleId},n.title),j(`span`,{className:`fc-popover-close `+e.getIconClass(`close`),title:t.closeHint,onClick:this.handleCloseClick})),j(`div`,{className:`fc-popover-body `+e.getClass(`popoverContent`)},n.children)),n.parentEl)}componentDidMount(){document.addEventListener(`mousedown`,this.handleDocumentMouseDown),document.addEventListener(`keydown`,this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener(`mousedown`,this.handleDocumentMouseDown),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=zs(t);if(i){let a=r.getBoundingClientRect(),o=n?P(t,`.fc-scrollgrid`).getBoundingClientRect().top:i.top,s=e?i.right-a.width:i.left;o=Math.max(o,il),s=Math.min(s,document.documentElement.clientWidth-il-a.width),s=Math.max(s,il);let c=r.offsetParent.getBoundingClientRect();jn(r,{top:o-c.top,left:s-c.left})}}},ol=class extends Ks{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:a}=n,o=t.format(r,e.dayPopoverFormat);return j(Xc,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:i},(t,r,i)=>j(al,{elRef:i.ref,id:n.id,title:o,extraClassNames:[`fc-more-popover`].concat(i.className||[]),extraAttrs:i,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Zc(e)&&j(t,{elTag:`div`,elClasses:[`fc-more-popover-misc`]}),n.children))}queryHit(e,t,n,r){let{rootEl:i,props:a}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}},sl=class extends H{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Fn()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&na(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=ll(t).start;function a(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new G(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}typeof r==`function`&&(r=r({date:i,allDay:!!t.allDayDate,allSegs:t.allSegs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),!r||r===`popover`?this.setState({isPopoverOpen:!0}):typeof r==`string`&&n.calendarApi.zoomTo(i,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return j(Zi.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:a}=n,{moreLinkText:o}=i,{moreCnt:s}=e,c=ll(e),l=typeof o==`function`?o.call(a,s):`+${s} ${o}`,u=rr(i.moreLinkHint,[s],l),d={num:s,shortText:`+${s}`,text:l,view:r};return j(N,null,!!e.moreCnt&&j(U,{elTag:e.elTag||`a`,elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],`fc-more-link`],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Hn(this.handleClick)),{title:u,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:``}),renderProps:d,generatorName:`moreLinkContent`,customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||cl,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&j(ol,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=P(this.linkEl,`.fc-view-harness`))}};function cl(e){return e.text}function ll(e){if(e.allDayDate)return{start:e.allDayDate,end:I(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:ul(t),end:fl(t)}}function ul(e){return e.reduce(dl).eventRange.range.start}function dl(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function fl(e){return e.reduce(pl).eventRange.range.end}function pl(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var ml=class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}},hl=class extends ml{constructor(){super(...arguments),this.map=new Map}handle(e){let{map:t}=this,n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}},gl=[],_l={code:`en`,week:{dow:0,doy:4},direction:`ltr`,buttonText:{prev:`prev`,next:`next`,prevYear:`prev year`,nextYear:`next year`,year:`year`,today:`today`,month:`month`,week:`week`,day:`day`,list:`list`},weekText:`W`,weekTextLong:`Week`,closeHint:`Close`,timeHint:`Time`,eventHint:`Event`,allDayText:`all-day`,moreLinkText:`more`,noEventsText:`No events to display`},vl=Object.assign(Object.assign({},_l),{buttonHints:{prev:`Previous $0`,next:`Next $0`,today(e,t){return t===`day`?`Today`:`This ${e}`}},viewHint:`$0 view`,navLinkHint:`Go to $0`,moreLinkHint(e){return`Show ${e} more event${e===1?``:`s`}`}});function yl(e){let t=e.length>0?e[0].code:`en`,n=gl.concat(e),r={en:vl};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function bl(e,t){return typeof e==`object`&&!Array.isArray(e)?Cl(e.code,[e.code],e):xl(e,t)}function xl(e,t){let n=[].concat(e||[]);return Cl(e,n,Sl(n,t)||vl)}function Sl(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split(`-`);for(let e=r.length;e>0;--e){let n=r.slice(0,e).join(`-`);if(t[n])return t[n]}}return null}function Cl(e,t,n){let r=Oi([_l,n],[`buttonText`]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function wl(e){return{id:Gn(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||``,elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Tl(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:``,elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){let e=t.name,a=n[e];a===void 0?(n[e]=t.id,i(t.deps),r=Dl(r,t)):a!==t.id&&console.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}function El(){let e=[],t=[],n;return(r,i)=>((!n||!xr(r,e)||!xr(i,t))&&(n=Tl(r,i)),e=r,t=i,n)}function Dl(e,t){return{premiumReleaseDate:Ol(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function Ol(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}var kl=class extends Ki{};kl.prototype.classes={root:`fc-theme-standard`,tableCellShaded:`fc-cell-shaded`,buttonGroup:`fc-button-group`,button:`fc-button fc-button-primary`,buttonActive:`fc-button-active`},kl.prototype.baseIconClass=`fc-icon`,kl.prototype.iconClasses={close:`fc-icon-x`,prev:`fc-icon-chevron-left`,next:`fc-icon-chevron-right`,prevYear:`fc-icon-chevrons-left`,nextYear:`fc-icon-chevrons-right`},kl.prototype.rtlIconClasses={prev:`fc-icon-chevron-right`,next:`fc-icon-chevron-left`,prevYear:`fc-icon-chevrons-right`,nextYear:`fc-icon-chevrons-left`},kl.prototype.iconOverrideOption=`buttonIcons`,kl.prototype.iconOverrideCustomButtonOption=`icon`,kl.prototype.iconOverridePrefix=`fc-icon-`;function Al(e,t){let n={},r;for(r in e)jl(r,n,e,t);for(r in t)jl(r,n,e,t);return n}function jl(e,t,n,r){if(t[e])return t[e];let i=Ml(e,t,n,r);return i&&(t[e]=i),i}function Ml(e,t,n,r){let i=n[e],a=r[e],o=e=>i&&i[e]!==null?i[e]:a&&a[e]!==null?a[e]:null,s=o(`component`),c=o(`superType`),l=null;if(c){if(c===e)throw Error(`Can't have a custom view type that references itself`);l=jl(c,t,n,r)}return!s&&l&&(s=l.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},l?l.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},l?l.overrides:{}),a?a.rawOptions:{})}:null}function Nl(e){return Ai(e,Pl)}function Pl(e){let t=typeof e==`function`?{component:e}:e,{component:n}=t;return t.content?n=Fl(t):n&&!(n.prototype instanceof H)&&(n=Fl(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Fl(e){return t=>j(Zi.Consumer,null,n=>j(U,{elTag:`div`,elClasses:da(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function Il(e,t,n,r){let i=Nl(e),a=Nl(t.views);return Ai(Al(i,a),e=>Ll(e,a,t,n,r))}function Ll(e,t,n,r,i){let a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,s=``,c=``,l={};if(a&&(o=zl(a),o)){let e=br(o);s=e.unit,e.value===1&&(c=s,l=t[s]?t[s].rawOptions:{})}let u=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return r!=null&&n[r]!=null?n[r]:n[e.type]==null?n[c]==null?null:n[c]:n[e.type]},d=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return r!=null&&n[r]!=null?n[r]:n[e.type]==null?n[c]==null?null:n[c]:n[e.type]};return{type:e.type,component:e.component,duration:o,durationUnit:s,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},l),e.overrides),buttonTextOverride:u(r)||u(n)||e.overrides.buttonText,buttonTextDefault:u(i)||e.defaults.buttonText||u(vi)||e.type,buttonTitleOverride:d(r)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(i)||e.defaults.buttonHint||d(vi)}}var Rl={};function zl(e){let t=JSON.stringify(e),n=Rl[t];return n===void 0&&(n=F(e),Rl[t]=n),n}function Bl(e,t){switch(t.type){case`CHANGE_VIEW_TYPE`:e=t.viewType}return e}function Vl(e,t){switch(t.type){case`SET_OPTION`:return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function Hl(e,t,n,r){let i;switch(t.type){case`CHANGE_VIEW_TYPE`:return r.build(t.dateMarker||n);case`CHANGE_DATE`:return r.build(t.dateMarker);case`PREV`:if(i=r.buildPrev(e,n),i.isValid)return i;break;case`NEXT`:if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function Ul(e,t,n){let r=t?t.activeRange:null;return ql({},tu(e,n),r,n)}function Wl(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case`ADD_EVENT_SOURCES`:return ql(e,t.sources,i,r);case`REMOVE_EVENT_SOURCE`:return Jl(e,t.sourceId);case`PREV`:case`NEXT`:case`CHANGE_DATE`:case`CHANGE_VIEW_TYPE`:return n?Yl(e,i,r):e;case`FETCH_EVENT_SOURCES`:return Zl(e,t.sourceIds?ji(t.sourceIds):eu(e,r),i,t.isRefetch||!1,r);case`RECEIVE_EVENTS`:case`RECEIVE_EVENT_ERROR`:return $l(e,t.sourceId,t.fetchId,t.fetchRange);case`REMOVE_ALL_EVENT_SOURCES`:return{};default:return e}}function Gl(e,t,n){let r=t?t.activeRange:null;return Zl(e,eu(e,n),r,!0,n)}function Kl(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function ql(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=Yl(i,n,r)),Object.assign(Object.assign({},e),i)}function Jl(e,t){return ki(e,e=>e.sourceId!==t)}function Yl(e,t,n){return Zl(e,ki(e,e=>Xl(e,t,n)),t,!1,n)}function Xl(e,t,n){return nu(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function Zl(e,t,n,r,i){let a={};for(let o in e){let s=e[o];t[o]?a[o]=Ql(s,n,r,i):a[o]=s}return a}function Ql(e,t,n,r){let{options:i,calendarApi:a}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Gn();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(a,o,n.response)||o),e.success&&(o=e.success.call(a,o,n.response)||o),r.dispatch({type:`RECEIVE_EVENTS`,sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:o})},n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(a,n),o=!0),e.failure&&(e.failure(n),o=!0),o||console.warn(n.message,n),r.dispatch({type:`RECEIVE_EVENT_ERROR`,sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function $l(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function eu(e,t){return ki(e,e=>nu(e,t))}function tu(e,t){let n=io(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let e of r){let r=ro(e,t,n);r&&i.push(r)}return i}function nu(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ru(e,t){switch(t.type){case`UNSELECT_DATES`:return null;case`SELECT_DATES`:return t.selection;default:return e}}function iu(e,t){switch(t.type){case`UNSELECT_EVENT`:return``;case`SELECT_EVENT`:return t.eventInstanceId;default:return e}}function au(e,t){let n;switch(t.type){case`UNSET_EVENT_DRAG`:return null;case`SET_EVENT_DRAG`:return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ou(e,t){let n;switch(t.type){case`UNSET_EVENT_RESIZE`:return null;case`SET_EVENT_RESIZE`:return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function su(e,t,n,r,i){return{header:e.headerToolbar?cu(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?cu(e.footerToolbar,e,t,n,r,i):null}}function cu(e,t,n,r,i,a){let o={},s=[],c=!1;for(let l in e){let u=e[l],d=lu(u,t,n,r,i,a);o[l]=d.widgets,s.push(...d.viewsWithButtons),c||=d.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:c}}function lu(e,t,n,r,i,a){let o=t.direction===`rtl`,s=t.customButtons||{},c=n.buttonText||{},l=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(` `):[],p=[],m=!1;return{widgets:f.map(e=>e.split(`,`).map(e=>{if(e===`title`)return m=!0,{buttonName:e};let n,f,h,g,_,v;if(n=s[e])h=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,o))||(_=n.text),v=n.hint||n.text;else if(f=i[e]){p.push(e),h=()=>{a.changeView(e)},(_=f.buttonTextOverride)||(g=r.getIconClass(e,o))||(_=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;v=rr(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(a[e])if(h=()=>{a[e]()},(_=c[e])||(g=r.getIconClass(e,o))||(_=l[e]),e===`prevYear`||e===`nextYear`){let t=e===`prevYear`?`prev`:`next`;v=rr(u[t]||d[t],[l.year||`year`,`year`],l[e])}else v=t=>rr(u[e]||d[e],[l[t]||t,t],l[e]);return{buttonName:e,buttonClick:h,buttonIcon:g,buttonText:_,buttonHint:v}})),viewsWithButtons:p,hasTitle:m}}var uu=class{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}},du=wl({name:`array-event-source`,eventSourceDefs:[{ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),fu=wl({name:`func-event-source`,eventSourceDefs:[{parseMeta(e){return typeof e.events==`function`?e.events:null},fetch(e,t,n){let{dateEnv:r}=e.context,i=e.eventSource.meta;is(i.bind(null,ts(e.range,r)),e=>t({rawEvents:e}),n)}}]}),pu=wl({name:`json-event-source`,eventSourceRefiners:{method:String,extraParams:V,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(e){return e.url&&(e.format===`json`||!e.format)?{url:e.url,format:`json`,method:(e.method||`GET`).toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch(e,t,n){let{meta:r}=e.eventSource,i=mu(r,e.range,e.context);os(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]});function mu(e,t,n){let{dateEnv:r,options:i}=n,a,o,s,c,l={};return a=e.startParam,a??=i.startParam,o=e.endParam,o??=i.endParam,s=e.timeZoneParam,s??=i.timeZoneParam,c=typeof e.extraParams==`function`?e.extraParams():e.extraParams||{},Object.assign(l,c),l[a]=r.formatIso(t.start),l[o]=r.formatIso(t.end),r.timeZone!==`local`&&(l[s]=r.timeZone),l}var hu=wl({name:`simple-recurring-event`,recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=pr(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:r,typeData:n}}return null},expand(e,t,n){let r=ha(t,{start:e.startRecur,end:e.endRecur});return r?gu(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:V,startTime:F,endTime:F,duration:F,startRecur:V,endRecur:V}});function gu(e,t,n,r){let i=e?ji(e):null,a=L(n.start),o=n.end,s=[];for(;a<o;){let e;(!i||i[a.getUTCDay()])&&(e=t?r.add(a,t):a,s.push(e)),a=I(a,1)}return s}var _u=wl({name:`change-handler`,optionChangeHandlers:{events(e,t){vu([e],t)},eventSources:vu}});function vu(e,t){let n=Mi(t.getCurrentData().eventSources);if(n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])){t.dispatch({type:`RESET_RAW_EVENTS`,sourceId:n[0].sourceId,rawEvents:e[0]});return}let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:`REMOVE_EVENT_SOURCE`,sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}function yu(e,t){t.emitter.trigger(`datesSet`,Object.assign(Object.assign({},ts(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function bu(e,t){let{emitter:n}=t;n.hasHandlers(`eventsSet`)&&n.trigger(`eventsSet`,Mo(e,t))}var xu=[du,fu,pu,hu,_u,wl({name:`misc`,isLoadingFuncs:[e=>Kl(e.eventSources)],propSetHandlers:{dateProfile:yu,eventStore:bu}})],Su=class{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new En(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t=[],n;for(;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}};function Cu(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,B(t.titleFormat||wu(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function wu(e){let{currentRangeUnit:t}=e;if(t===`year`)return{year:`numeric`};if(t===`month`)return{year:`numeric`,month:`long`};let n=Mr(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:`numeric`,month:`short`,day:`numeric`}:{year:`numeric`,month:`long`,day:`numeric`}}var Tu=class{constructor(e){this.computeCurrentViewData=z(this._computeCurrentViewData),this.organizeRawLocales=z(yl),this.buildLocale=z(bl),this.buildPluginHooks=El(),this.buildDateEnv=z(Eu),this.buildTheme=z(Du),this.parseToolbars=z(su),this.buildViewSpecs=z(Il),this.buildDateProfileGenerator=Yr(Ou),this.buildViewApi=z(ku),this.buildViewUiProps=Yr(Mu),this.buildEventUiBySource=z(Au,Ni),this.buildEventUiBases=z(ju),this.parseContextBusinessHours=Yr(Pu),this.buildTitle=z(Cu),this.emitter=new _o,this.actionRunner=new Su(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let a=Ea(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(a);ya(o.activeRange,a)||(a=o.currentRange.start);let s={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(s);let c=Ul(n.calendarOptions,o,s),l={dynamicOptionOverrides:t,currentViewType:r,currentDate:a,dateProfile:o,businessHours:this.parseContextBusinessHours(s),eventSources:c,eventUiBases:{},eventStore:W(),renderableEventStore:W(),dateSelection:null,eventSelection:``,eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},u=Object.assign(Object.assign({},s),l);for(let e of n.pluginHooks.reducers)Object.assign(l,e(null,null,u));Nu(l,s)&&this.emitter.trigger(`loading`,!0),this.state=l,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;t===void 0?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(t===void 0||t.length)&&this.actionRunner.request({type:`NOTHING`})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=Vl(n.dynamicOptionOverrides,e),a=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=Bl(n.currentViewType,e),s=this.computeCurrentViewData(o,a,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);let c={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:l,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(u=s.dateProfileGenerator.build(l)),l=Ta(l,e),u=Hl(u,e,l,s.dateProfileGenerator),(e.type===`PREV`||e.type===`NEXT`||!ya(u.currentRange,l))&&(l=u.currentRange.start);let d=Wl(n.eventSources,e,u,c),f=oo(n.eventStore,e,d,u,c),p=Kl(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:m,selectionConfig:h}=this.buildViewUiProps(c),g=this.buildEventUiBySource(d),_=this.buildEventUiBases(p.defs,m,g),v={dynamicOptionOverrides:i,currentViewType:o,currentDate:l,dateProfile:u,eventSources:d,eventStore:f,renderableEventStore:p,selectionConfig:h,eventUiBases:_,businessHours:this.parseContextBusinessHours(c),dateSelection:ru(n.dateSelection,e),eventSelection:iu(n.eventSelection,e),eventDrag:au(n.eventDrag,e),eventResize:ou(n.eventResize,e)},y=Object.assign(Object.assign({},c),v);for(let t of a.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=Nu(n,c),ee=Nu(v,c);!b&&ee?r.trigger(`loading`,!0):b&&!ee&&r.trigger(`loading`,!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),o=r.pluginHooks.optionChangeHandlers,s=n&&n.calendarOptions,c=r.calendarOptions;if(s&&s!==c)for(let e in s.timeZone!==c.timeZone&&(t.eventSources=a.eventSources=Gl(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=po(a.eventStore,n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=po(a.renderableEventStore,n.dateEnv,a.dateEnv)),o)(this.optionsForHandling.indexOf(e)!==-1||s[e]!==c[e])&&o[e](c[e],a);this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:a,availableLocaleData:o,extra:s}=this.processRawCalendarOptions(e,t);Fu(s);let c=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),l=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),u=this.buildTheme(r,i);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:c,viewSpecs:l,theme:u,toolbarConfig:this.parseToolbars(r,this.stableOptionOverrides,u,l,n),localeDefaults:a,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Ti([vi,e,t]),i=this.organizeRawLocales(n),a=i.map,o=this.buildLocale(r||i.defaultCode,a).options,s=this.buildPluginHooks(e.plugins||[],xu),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_i),yi),bi),s.listenerRefiners),s.optionRefiners),l={},u=Ti([vi,o,e,t]),d={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,m=!1;for(let e in u)this.optionsForRefining.indexOf(e)===-1&&(u[e]===f[e]||xi[e]&&e in f&&xi[e](f[e],u[e]))?d[e]=p[e]:c[e]?(d[e]=c[e](u[e]),m=!0):l[e]=f[e];return m&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:i,localeDefaults:o,extra:l}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:o}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);return Fu(o),{viewSpec:i,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let a=Ti([vi,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_i),yi),bi),wi),t.listenerRefiners),t.optionRefiners),s={},c=this.currentViewOptionsInput,l=this.currentViewOptionsRefined,u=!1,d={};for(let e in a)a[e]===c[e]||xi[e]&&xi[e](a[e],c[e])?s[e]=l[e]:(a[e]===this.currentCalendarOptionsInput[e]||xi[e]&&xi[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):o[e]?s[e]=o[e](a[e]):d[e]=a[e],u=!0);return u&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}};function Eu(e,t,n,r,i,a,o,s){let c=bl(t||o.defaultCode,o.map);return new Gi({calendarSystem:`gregory`,timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function Du(e,t){return new(t.themeClasses[e.themeSystem]||kl)(e)}function Ou(e){return new(e.dateProfileGeneratorClass||Oa)(e)}function ku(e,t,n){return new uu(e,t,n)}function Au(e){return Ai(e,e=>e.ui)}function ju(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function Mu(e){let{options:t}=e;return{eventUiSingleBase:$a({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap==`boolean`?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:$a({constraint:t.selectConstraint,overlap:typeof t.selectOverlap==`boolean`?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Nu(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Pu(e){return xo(e.options.businessHours,e)}function Fu(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:``))}var Iu=class extends H{render(){return j(`div`,{className:`fc-toolbar-chunk`},...this.props.widgetGroups.map(e=>this.renderWidgetGroup(e)))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let a of e){let{buttonName:e,buttonClick:o,buttonText:s,buttonIcon:c,buttonHint:l}=a;if(e===`title`)i=!1,r.push(j(`h2`,{className:`fc-toolbar-title`,id:t.titleId},t.title));else{let i=e===t.activeButton,a=!t.isTodayEnabled&&e===`today`||!t.isPrevEnabled&&e===`prev`||!t.isNextEnabled&&e===`next`,u=[`fc-${e}-button`,n.getClass(`button`)];i&&u.push(n.getClass(`buttonActive`)),r.push(j(`button`,{type:`button`,title:typeof l==`function`?l(t.navUnit):l,disabled:a,"aria-pressed":i,className:u.join(` `),onClick:o},s||(c?j(`span`,{className:c,role:`img`}):``)))}}return r.length>1?j(`div`,{className:i&&n.getClass(`buttonGroup`)||``},...r):r[0]}},Lu=class extends H{render(){let{model:e,extraClassName:t}=this.props,n=!1,r,i,a=e.sectionWidgets,o=a.center;return a.left?(n=!0,r=a.left):r=a.start,a.right?(n=!0,i=a.right):i=a.end,j(`div`,{className:[t||``,`fc-toolbar`,n?`fc-toolbar-ltr`:``].join(` `)},this.renderSection(`start`,r||[]),this.renderSection(`center`,o||[]),this.renderSection(`end`,i||[]))}renderSection(e,t){let{props:n}=this;return j(Iu,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}},Ru=class extends H{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,na(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=[`fc-view-harness`,n||e.liquid||e.height?`fc-view-harness-active`:`fc-view-harness-passive`],i=``,a=``;return n?t.availableWidth===null?a=`${1/n*100}%`:i=t.availableWidth/n:i=e.height||``,j(`div`,{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(` `),style:{height:i,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}},zu=class extends ds{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=Io(t);if(i&&n.isValidSegDownEl(e.target)){let a=P(e.target,`.fc-event-forced-url`),o=a?a.querySelector(`a[href]`).href:``;r.emitter.trigger(`eventClick`,{el:t,event:new G(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=Rn(e.el,`click`,`.fc-event`,this.handleSegClick)}},Bu=class extends ds{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Io(t)&&(this.currentSegEl=t,this.triggerEvent(`eventMouseEnter`,e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent(`eventMouseLeave`,e,t))},this.removeHoverListeners=zn(e.el,`.fc-event`,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,a=Io(n);(!t||r.isValidSegDownEl(t.target))&&i.emitter.trigger(e,{el:n,event:new G(i,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:i.viewApi})}},Vu=class extends $i{constructor(){super(...arguments),this.buildViewContext=z(Qi),this.buildViewPropTransformers=z(Uu),this.buildToolbarProps=z(Hu),this.headerRef=M(),this.footerRef=M(),this.interactionsStore={},this.state={viewLabelId:Fn()},this.registerInteractiveComponent=(e,t)=>{let n=fs(e,t),r=[zu,Bu].concat(this.props.pluginHooks.componentInteractions).map(e=>new e(n));this.interactionsStore[e.uid]=r,ms[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete ms[e.uid]},this.resizeRunner=new En(()=>{this.props.emitter.trigger(`_resize`,!0),this.props.emitter.trigger(`windowResize`,{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:t,options:n}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Da(e.options.now,e.dateEnv),e.viewTitle),i=!1,a=``,o;e.isHeightAuto||e.forPrint?a=``:n.height==null?n.contentHeight==null?o=Math.max(n.aspectRatio,.5):a=n.contentHeight:i=!0;let s=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=t.header&&t.header.hasTitle?this.state.viewLabelId:void 0;return j(Zi.Provider,{value:s},t.header&&j(Lu,Object.assign({ref:this.headerRef,extraClassName:`fc-header-toolbar`,model:t.header,titleId:c},r)),j(Ru,{liquid:i,height:a,aspectRatio:o,labeledById:c},this.renderView(e),this.buildAppendContent()),t.footer&&j(Lu,Object.assign({ref:this.footerRef,extraClassName:`fc-footer-toolbar`,model:t.footer,titleId:``},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e)),window.addEventListener(`resize`,this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener(`resize`,this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger(`_unmount`)}buildAppendContent(){let{props:e}=this;return j(N,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of i)Object.assign(r,t.transform(r,e));let a=n.component;return j(a,Object.assign({},r))}};function Hu(e,t,n,r,i,a){let o=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),c=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!ya(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:c.isValid}}function Uu(e){return e.map(e=>new e)}var Wu=class extends hs{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case`SET_EVENT_DRAG`:case`SET_EVENT_RESIZE`:this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;qi(()=>{Et(j(us,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r,i)=>(this.setClassNames(t),this.setHeight(n),j(sa.Provider,{value:this.customContentRenderId},j(Vu,Object.assign({isHeightAuto:r,forPrint:i},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Et(null,this.el),this.setClassNames([]),this.setHeight(``))},yn(e),this.el=e,this.renderRunner=new En(this.handleRenderRequest),new Tu({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){qi(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause(`batchRendering`),e(),this.renderRunner.resume(`batchRendering`)}pauseRendering(){this.renderRunner.pause(`pauseRendering`)}resumeRendering(){this.renderRunner.resume(`pauseRendering`,!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!xr(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Mn(this.el,`height`,e)}};const Gu={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};var Ku=C({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return Ju(this).calendar},buildOptions(e){return{...e,customRenderingMetaMap:Xu(this.$slots),handleCustomRendering:Ju(this).handleCustomRendering}}},render(){let e=[];for(let t of this.customRenderingMap.values())e.push(S(qu,{key:t.id,customRendering:t}));return S(`div`,{attrs:{"data-fc-render-id":this.renderId}},S(Ae,e))},mounted(){let e=new hl;Ju(this).handleCustomRendering=e.handle.bind(e);let t=this.buildOptions(this.options),n=new Wu(this.$el,t);Ju(this).calendar=n,n.render(),e.subscribe(e=>{this.customRenderingMap=e,this.renderId++,Ju(this).needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){Ju(this).needCustomRenderingResize&&(Ju(this).needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Yu()}),qu=C({props:{customRendering:Object},render(){let e=this.customRendering,t=typeof e.generatorMeta==`function`?e.generatorMeta(e.renderProps):e.generatorMeta;return S(Se,{to:e.containerEl},t)}});function Ju(e){return e}function Yu(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let t in Gu)e[`options.${t}`]={deep:!0,handler(e){if(e!==void 0){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:e},[t]),this.renderId++}}};return e}function Xu(e){let t={};for(let n in e)t[Zu(n)]=e[n];return t}function Zu(e){return e.split(`-`).map((e,t)=>t?Qu(e):e).join(``)}function Qu(e){return e.charAt(0).toUpperCase()+e.slice(1)}var $u=Ku,ed=class extends Ks{constructor(){super(...arguments),this.headerElRef=M()}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],a=Vc(r.options);return e&&i.push({type:`header`,key:`header`,isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}}),i.push({type:`body`,key:`body`,liquid:!0,chunk:{content:t}}),j(ua,{elClasses:[`fc-daygrid`],viewSpec:r.viewSpec},j(Uc,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw Error(`No ScrollGrid implementation`);let{props:a,context:o}=this,s=!a.forPrint&&Vc(o.options),c=!a.forPrint&&Hc(o.options),l=[];return e&&l.push({type:`header`,key:`header`,isSticky:s,chunks:[{key:`main`,elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}]}),l.push({type:`body`,key:`body`,liquid:!0,chunks:[{key:`main`,content:t}]}),c&&l.push({type:`footer`,key:`footer`,isSticky:!0,chunks:[{key:`main`,content:Bc}]}),j(ua,{elClasses:[`fc-daygrid`],viewSpec:o.viewSpec},j(i,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:l}))}};function td(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function nd(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function rd(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}var id=B({hour:`numeric`,minute:`2-digit`,omitZeroMinute:!0,meridiem:`narrow`});function ad(e){let{display:t}=e.eventRange.ui;return t===`list-item`||t===`auto`&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var od=class extends H{render(){let{props:e}=this;return j(Kc,Object.assign({},e,{elClasses:[`fc-daygrid-event`,`fc-daygrid-block-event`,`fc-h-event`],defaultTimeFormat:id,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}},sd=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,i=Wo(r,n.eventTimeFormat||id,t,!0,e.defaultDisplayEventEnd);return j(Gc,Object.assign({},e,{elTag:`a`,elClasses:[`fc-daygrid-event`,`fc-daygrid-dot-event`],elAttrs:Jo(e.seg,t),defaultGenerator:cd,timeText:i,isResizing:!1,isDateSelecting:!1}))}};function cd(e){return j(N,null,j(`div`,{className:`fc-daygrid-event-dot`,style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&j(`div`,{className:`fc-event-time`},e.timeText),j(`div`,{className:`fc-event-title`},e.event.title||j(N,null,`\xA0`)))}var ld=class extends H{constructor(){super(...arguments),this.compileSegs=z(ud)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return j(sl,{elClasses:[`fc-daygrid-more-link`],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return j(N,null,t.map(t=>{let r=t.eventRange.instance.instanceId;return j(`div`,{className:`fc-daygrid-event-harness`,key:r,style:{visibility:n[r]?`hidden`:``}},ad(t)?j(sd,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Go(t,e.todayRange))):j(od,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Go(t,e.todayRange))))}))}})}};function ud(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}var dd=B({week:`narrow`}),fd=class extends Ks{constructor(){super(...arguments),this.rootElRef=M(),this.state={dayNumberId:Fn()},this.handleRootEl=e=>{na(this.rootElRef,e),na(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i,dateEnv:a}=e,{date:o,dateProfile:s}=t,c=t.showDayNumber&&md(o,s.currentRange,a);return j(Xc,{elTag:`td`,elRef:this.handleRootEl,elClasses:[`fc-daygrid-day`,...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:`gridcell`}),defaultGenerator:pd,date:o,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:c,extraRenderProps:t.extraRenderProps},(a,s)=>j(`div`,{ref:t.innerElRef,className:`fc-daygrid-day-frame fc-scrollgrid-sync-inner`,style:{minHeight:t.minHeight}},t.showWeekNumber&&j(nl,{elTag:`a`,elClasses:[`fc-daygrid-week-number`],elAttrs:Os(e,o,`week`),date:o,defaultFormat:dd}),!s.isDisabled&&(t.showDayNumber||Zc(i)||t.forceDayTop)?j(`div`,{className:`fc-daygrid-day-top`},j(a,{elTag:`a`,elClasses:[`fc-daygrid-day-number`,c&&`fc-daygrid-month-start`],elAttrs:Object.assign(Object.assign({},Os(e,o)),{id:n.dayNumberId})})):t.showDayNumber?j(`div`,{className:`fc-daygrid-day-top`,style:{visibility:`hidden`}},j(`a`,{className:`fc-daygrid-day-number`},`\xA0`)):void 0,j(`div`,{className:`fc-daygrid-day-events`,ref:t.fgContentElRef},t.fgContent,j(`div`,{className:`fc-daygrid-day-bottom`,style:{marginTop:t.moreMarginTop}},j(ld,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),j(`div`,{className:`fc-daygrid-day-bg`},t.bgContent)))}};function pd(e){return e.dayNumberText||j(N,null,`\xA0`)}function md(e,t,n){let{start:r,end:i}=t,a=wr(i,-1),o=n.getYear(r),s=n.getMonth(r),c=n.getYear(a),l=n.getMonth(a);return!(o===c&&s===l)&&(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function hd(e){return e.eventRange.instance.instanceId+`:`+e.firstCol}function gd(e){return hd(e)+`:`+e.lastCol}function _d(e,t,n,r,i,a,o){let s=new xd(t=>i[e[t.index].eventRange.instance.instanceId+`:`+t.span.start+`:`+(t.span.end-1)]||1);s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=a,s.hiddenConsumes=!0):typeof t==`number`?s.maxStackCnt=t:typeof n==`number`&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let c=[],l=[];for(let t=0;t<e.length;t+=1){let n=e[t];i[gd(n)]==null?l.push(n):c.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}})}let u=s.addSegs(c),{singleColPlacements:d,multiColPlacements:f,leftoverMargins:p}=vd(s.toRects(),e,o),m=[],h=[];for(let e of l){f[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)d[t].push({seg:bd(e,t,t+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)m.push(0);for(let t of u){let n=e[t.index],r=t.span;f[r.start].push({seg:bd(n,r.start,r.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)m[e]+=1,d[e].push({seg:bd(n,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)h.push(p[e]);return{singleColPlacements:d,multiColPlacements:f,moreCnts:m,moreMarginTops:h}}function vd(e,t,n){let r=yd(e,n.length),i=[],a=[],o=[];for(let e=0;e<n.length;e+=1){let s=r[e],c=[],l=0,u=0;for(let r of s){let i=t[r.index];c.push({seg:bd(i,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-l}),l=r.levelCoord+r.thickness}let d=[];l=0,u=0;for(let r of s){let i=t[r.index],a=r.span.end-r.span.start>1,o=r.span.start===e;u+=r.levelCoord-l,l=r.levelCoord+r.thickness,a?(u+=r.thickness,o&&d.push({seg:bd(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):o&&(d.push({seg:bd(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:u}),u=0)}i.push(c),a.push(d),o.push(u)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}function yd(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}function bd(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,a=i.range,o=ha(a,{start:r[t].date,end:I(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===a.end.valueOf()})}var xd=class extends qs{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[Ys(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){let{entriesByLevel:r,forceHidden:i}=this,{touchingEntry:a,touchingLevel:o,touchingLateral:s}=e;if(this.hiddenConsumes&&a){let e=Ys(a);if(!i[e])if(this.allowReslicing){let e=Object.assign(Object.assign({},a),{span:Qs(a.span,t.span)}),c=Ys(e);i[c]=!0,r[o][s]=e,n.push(e),this.splitEntry(a,t,n)}else i[e]=!0,n.push(a)}super.handleInvalidInsertion(e,t,n)}},Sd=class extends Ks{constructor(){super(...arguments),this.cellElRefs=new kc,this.frameElRefs=new kc,this.fgElRefs=new kc,this.segHarnessRefs=new kc,this.rootElRef=M(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,a=nd(e.businessHourSegs,i),o=nd(e.bgEventSegs,i),s=nd(this.getHighlightSegs(),i),c=nd(this.getMirrorSegs(),i),{singleColPlacements:l,multiColPlacements:u,moreCnts:d,moreMarginTops:f}=_d(zo(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return j(`tr`,{ref:this.rootElRef,role:`row`},e.renderIntro&&e.renderIntro(),e.cells.map((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?l[n]:u[n],e.todayRange,p),i=this.renderFgSegs(n,Cd(c[n],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return j(fd,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&n===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:d[n],moreMarginTop:f[n],singlePlacements:l[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:j(N,null,j(N,null,r),j(N,null,i)),bgContent:j(N,null,this.renderFillSegs(s[n],`highlight`),this.renderFillSegs(a[n],`non-business`),this.renderFillSegs(o[n],`bg-event`)),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Ni(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,i,a,o){let{context:s}=this,{eventSelection:c}=this.props,{framePositions:l}=this.state,u=this.props.cells.length===1,d=i||a||o,f=[];if(l)for(let e of t){let{seg:t}=e,{instanceId:p}=t.eventRange.instance,m=e.isVisible&&!r[p],h=e.isAbsolute,g=``,_=``;h&&(s.isRtl?(_=0,g=l.lefts[t.lastCol]-l.lefts[t.firstCol]):(g=0,_=l.rights[t.firstCol]-l.rights[t.lastCol])),f.push(j(`div`,{className:`fc-daygrid-event-harness`+(h?` fc-daygrid-event-harness-abs`:``),key:hd(t),ref:d?null:this.segHarnessRefs.createRef(gd(t)),style:{visibility:m?``:`hidden`,marginTop:h?``:e.marginTop,top:h?e.absoluteTop:``,left:g,right:_}},ad(t)?j(sd,Object.assign({seg:t,isDragging:i,isSelected:p===c,defaultDisplayEventEnd:u},Go(t,n))):j(od,Object.assign({seg:t,isDragging:i,isResizing:a,isDateSelecting:o,isSelected:p===c,defaultDisplayEventEnd:u},Go(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,a=[];if(i)for(let o of e){let e=n?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};a.push(j(`div`,{key:qo(o.eventRange),className:`fc-daygrid-bg-harness`,style:e},t===`bg-event`?j($c,Object.assign({seg:o},Go(o,r))):tl(t)))}return j(N,{},...a)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let e=t.cells.map(e=>r.currentMap[e.key]);if(e.length){let t=this.rootElRef.current,r=new Vs(t,e,!0,!1);(!n.framePositions||!n.framePositions.similarTo(r))&&this.setState({framePositions:new Vs(t,e,!0,!1)})}}let i=this.state.segHeights,a=this.querySegHeights(),o=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),a),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}};Sd.addStateEquality({segHeights:Ni});function Cd(e,t){if(!e.length)return[];let n=wd(t);return e.map(e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}))}function wd(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}var Td=class extends Ks{constructor(){super(...arguments),this.splitBusinessHourSegs=z(td),this.splitBgEventSegs=z(td),this.splitFgEventSegs=z(td),this.splitDateSelectionSegs=z(td),this.splitEventDrag=z(rd),this.splitEventResize=z(rd),this.rowRefs=new kc}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),i=this.splitBgEventSegs(e.bgEventSegs,n),a=this.splitFgEventSegs(e.fgEventSegs,n),o=this.splitDateSelectionSegs(e.dateSelectionSegs,n),s=this.splitEventDrag(e.eventDrag,n),c=this.splitEventResize(e.eventResize,n),l=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return j(lc,{unit:`day`},(t,u)=>j(N,null,e.cells.map((t,d)=>j(Sd,{ref:this.rowRefs.createRef(d),key:t.length?t[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[d],eventSelection:e.eventSelection,bgEventSegs:i[d].filter(Ed),fgEventSegs:a[d],dateSelectionSegs:o[d],eventDrag:s[d],eventResize:c[d],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:l,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(`.fc-daygrid-body`):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&=(this.context.unregisterInteractiveComponent(this),null)}prepareHits(){this.rowPositions=new Vs(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Vs(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),a=r.topToIndex(t);if(a!=null&&i!=null){let e=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:I(n,1)}}};function Ed(e){return e.eventRange.def.allDay}var Dd=class extends Ks{constructor(){super(...arguments),this.elRef=M(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,i=n===!0||t===!0;i&&!r&&(i=!1,t=null,n=null);let a=[`fc-daygrid-body`,i?`fc-daygrid-body-balanced`:`fc-daygrid-body-unbalanced`,r?``:`fc-daygrid-body-natural`];return j(`div`,{ref:this.elRef,className:a.join(` `),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},j(`table`,{role:`presentation`,className:`fc-scrollgrid-sync-table`,style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:``}},e.colGroupNode,j(`tbody`,{role:`presentation`},j(Td,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile===this.props.dateProfile?this.flushScrollReset():this.requestScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=Od(this.elRef.current,this.props.dateProfile);if(e){let t=e.closest(`.fc-daygrid-body`),n=t.closest(`.fc-scroller`),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}};function Od(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${Kr(t.currentDate)}-01"]`)),n||=e.querySelector(`[data-date="${Gr(t.currentDate)}"]`),n}var kd=class extends hc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}},Ad=class extends Ks{constructor(){super(...arguments),this.slicer=new kd,this.tableRef=M()}render(){let{props:e,context:t}=this;return j(Dd,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}},jd=class extends ed{constructor(){super(...arguments),this.buildDayTableModel=z(Md),this.headerRef=M(),this.tableRef=M()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&j(dc,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),a=t=>j(Ad,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,a)}};function Md(e,t){return new mc(new pc(e.renderRange,t),/year|month|week/.test(e.currentRangeUnit))}var Nd=class extends Oa{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return Pd({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}};function Pd(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,a;if(e.snapToWeek&&(r=t.startOfWeek(r),a=t.startOfWeek(i),a.valueOf()!==i.valueOf()&&(i=Cr(a,1))),e.fixedWeekCount){let e=t.startOfWeek(t.startOfMonth(I(n.end,-1))),r=Math.ceil(Tr(e,i));i=Cr(i,6-r)}return{start:r,end:i}}vn(`:root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}`);var Fd=wl({name:`@fullcalendar/daygrid`,initialView:`dayGridMonth`,views:{dayGrid:{component:jd,dateProfileGeneratorClass:Nd},dayGridDay:{type:`dayGrid`,duration:{days:1}},dayGridWeek:{type:`dayGrid`,duration:{weeks:1}},dayGridMonth:{type:`dayGrid`,duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:`dayGrid`,duration:{years:1}}}}),Id=class extends Ss{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?[`allDay`]:[`timed`]}getKeysForEventDef(e){return e.allDay?Po(e)?[`timed`,`allDay`]:[`allDay`]:[`timed`]}},Ld=B({hour:`numeric`,minute:`2-digit`,omitZeroMinute:!0,meridiem:`short`});function Rd(e){let t=[`fc-timegrid-slot`,`fc-timegrid-slot-label`,e.isLabeled?`fc-scrollgrid-shrink`:`fc-timegrid-slot-minor`];return j(Zi.Consumer,null,n=>{if(!e.isLabeled)return j(`td`,{className:t.join(` `),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:a}=n,o=i.slotLabelFormat==null?Ld:Array.isArray(i.slotLabelFormat)?B(i.slotLabelFormat[0]):B(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,o)};return j(U,{elTag:`td`,elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:`slotLabelContent`,customGenerator:i.slotLabelContent,defaultGenerator:zd,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},e=>j(`div`,{className:`fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame`},j(e,{elTag:`div`,elClasses:[`fc-timegrid-slot-label-cushion`,`fc-scrollgrid-shrink-cushion`]})))})}function zd(e){return e.text}var Bd=class extends H{render(){return this.props.slatMetas.map(e=>j(`tr`,{key:e.key},j(Rd,Object.assign({},e))))}},Vd=B({week:`short`}),Hd=5,Ud=class extends Ks{constructor(){super(...arguments),this.allDaySplitter=new Id,this.headerElRef=M(),this.rootElRef=M(),this.scrollerElRef=M(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t=``)=>{let{options:n}=this.context,{dateProfile:r}=this.props,i=r.renderRange,a=Er(i.start,i.end)===1?Os(this.context,i.start,`week`):{};return n.weekNumbers&&e===`day`?j(nl,{elTag:`th`,elClasses:[`fc-timegrid-axis`,`fc-scrollgrid-shrink`],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:Vd},e=>j(`div`,{className:[`fc-timegrid-axis-frame`,`fc-scrollgrid-shrink-frame`,`fc-timegrid-axis-frame-liquid`].join(` `),style:{height:t}},j(e,{elTag:`a`,elClasses:[`fc-timegrid-axis-cushion`,`fc-scrollgrid-shrink-cushion`,`fc-scrollgrid-sync-inner`],elAttrs:a}))):j(`th`,{"aria-hidden":!0,className:`fc-timegrid-axis`},j(`div`,{className:`fc-timegrid-axis-frame`,style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return j(U,{elTag:`td`,elClasses:[`fc-timegrid-axis`,`fc-scrollgrid-shrink`],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:`allDayContent`,customGenerator:t.allDayContent,defaultGenerator:Wd,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},t=>j(`div`,{className:[`fc-timegrid-axis-frame`,`fc-scrollgrid-shrink-frame`,e==null?` fc-timegrid-axis-frame-liquid`:``].join(` `),style:{height:e}},j(t,{elTag:`span`,elClasses:[`fc-timegrid-axis-cushion`,`fc-scrollgrid-shrink-cushion`,`fc-scrollgrid-sync-inner`]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:i}=this,a=[],o=Vc(r.options);return e&&a.push({type:`header`,key:`header`,isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}}),t&&(a.push({type:`body`,key:`all-day`,chunk:{content:t}}),a.push({type:`body`,key:`all-day-divider`,outerContent:j(`tr`,{role:`presentation`,className:`fc-scrollgrid-section`},j(`td`,{className:`fc-timegrid-divider `+r.theme.getClass(`tableCellShaded`)}))})),a.push({type:`body`,key:`body`,liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),j(ua,{elRef:this.rootElRef,elClasses:[`fc-timegrid`],viewSpec:r.viewSpec},j(Uc,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:`shrink`}],sections:a}))}renderHScrollLayout(e,t,n,r,i,a,o){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw Error(`No ScrollGrid implementation`);let{context:c,props:l}=this,u=!l.forPrint&&Vc(c.options),d=!l.forPrint&&Hc(c.options),f=[];e&&f.push({type:`header`,key:`header`,isSticky:u,syncRowHeights:!0,chunks:[{key:`axis`,rowContent:e=>j(`tr`,{role:`presentation`},this.renderHeadAxis(`day`,e.rowSyncHeights[0]))},{key:`cols`,elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}]}),t&&(f.push({type:`body`,key:`all-day`,syncRowHeights:!0,chunks:[{key:`axis`,rowContent:e=>j(`tr`,{role:`presentation`},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:`cols`,content:t}]}),f.push({key:`all-day-divider`,type:`body`,outerContent:j(`tr`,{role:`presentation`,className:`fc-scrollgrid-section`},j(`td`,{colSpan:2,className:`fc-timegrid-divider `+c.theme.getClass(`tableCellShaded`)}))}));let p=c.options.nowIndicator;return f.push({type:`body`,key:`body`,liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:`axis`,content:e=>j(`div`,{className:`fc-timegrid-axis-chunk`},j(`table`,{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:``}},e.tableColGroupNode,j(`tbody`,null,j(Bd,{slatMetas:a}))),j(`div`,{className:`fc-timegrid-now-indicator-container`},j(lc,{unit:p?`minute`:`day`},e=>{let t=p&&o&&o.safeComputeTop(e);return typeof t==`number`?j(Jc,{elClasses:[`fc-timegrid-now-indicator-arrow`],elStyle:{top:t},isAxis:!0,date:e}):null})))},{key:`cols`,scrollerElRef:this.scrollerElRef,content:n}]}),d&&f.push({key:`footer`,type:`footer`,isSticky:!0,chunks:[{key:`axis`,content:Bc},{key:`cols`,content:Bc}]}),j(ua,{elRef:this.rootElRef,elClasses:[`fc-timegrid`],viewSpec:c.viewSpec},j(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:!1,colGroups:[{width:`shrink`,cols:[{width:`shrink`}]},{cols:[{span:r,minWidth:i}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(e===!0||t===!0)&&(e=void 0,t=Hd),{dayMaxEvents:e,dayMaxEventRows:t}}};function Wd(e){return e.text}var Gd=class{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(ya(t.currentRange,e)){let n=L(e),r=e.valueOf()-n.valueOf();if(r>=vr(t.slotMinTime)&&r<vr(t.slotMaxTime))return this.computeTimeTop(F(r))}return null}computeDateTop(e,t){return t||=L(e),this.computeTimeTop(F(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:n}=this,r=t.els.length,i=(e.milliseconds-vr(n.slotMinTime))/vr(this.slotDuration),a,o;return i=Math.max(0,i),i=Math.min(r,i),a=Math.floor(i),a=Math.min(a,r-1),o=i-a,t.tops[a]+t.getHeight(a)*o}},Kd=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return j(`tbody`,null,e.slatMetas.map((i,a)=>{let o={time:i.time,date:t.dateEnv.toDate(i.date),view:t.viewApi};return j(`tr`,{key:i.key,ref:r.createRef(i.key)},e.axis&&j(Rd,Object.assign({},i)),j(U,{elTag:`td`,elClasses:[`fc-timegrid-slot`,`fc-timegrid-slot-lane`,!i.isLabeled&&`fc-timegrid-slot-minor`],elAttrs:{"data-time":i.isoTimeStr},renderProps:o,generatorName:`slotLaneContent`,customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}},qd=class extends H{constructor(){super(...arguments),this.rootElRef=M(),this.slatElRefs=new kc}render(){let{props:e,context:t}=this;return j(`div`,{ref:this.rootElRef,className:`fc-timegrid-slots`},j(`table`,{"aria-hidden":!0,className:t.theme.getClass(`table`),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,j(Kd,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;t.onCoords&&t.clientWidth!==null&&this.rootElRef.current.offsetHeight&&t.onCoords(new Gd(new Vs(this.rootElRef.current,Jd(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}};function Jd(e,t){return t.map(t=>e[t.key])}function Yd(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function Xd(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}var Zd=class extends H{render(){let{props:e}=this;return j(sl,{elClasses:[`fc-timegrid-more-link`],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>mf(e.hiddenSegs,e),defaultGenerator:Qd,forceTimed:!0},e=>j(e,{elTag:`div`,elClasses:[`fc-timegrid-more-link-inner`,`fc-sticky`]}))}};function Qd(e){return e.shortText}function $d(e,t,n){let r=new qs;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let i=Xs(r.addSegs(e)),a=ef(r);return a=of(a,1),{segRects:sf(a),hiddenGroups:i}}function ef(e){let{entriesByLevel:t}=e,n=cf((e,t)=>e+`:`+t,(r,i)=>{let a=tf(af(e,r,i),n),o=t[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:a[0]}),o.thickness+a[1]]});return tf(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function tf(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,a=r,o=[];for(;a<i;)o.push(t(n,a)),a+=1;return o.sort(nf),[o.map(rf),o[0][1]]}function nf(e,t){return t[1]-e[1]}function rf(e){return e[0]}function af(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,a=i[t][n],o=r[t]+a.thickness,s=r.length,c=t;for(;c<s&&r[c]<o;c+=1);for(;c<s;c+=1){let e=i[c],t,n=ec(e,a.span.start,Js),r=n[0]+n[1],o=r;for(;(t=e[o])&&t.span.start<a.span.end;)o+=1;if(r<o)return{level:c,lateralStart:r,lateralEnd:o}}return null}function of(e,t){let n=cf((e,t,n)=>Ys(e),(e,r,i)=>{let{nextLevelNodes:a,thickness:o}=e,s=o+i,c=o/s,l,u=[];if(!a.length)l=t;else for(let e of a)if(l===void 0){let t=n(e,r,s);l=t[0],u.push(t[1])}else{let t=n(e,l,0);u.push(t[1])}let d=(l-r)*c;return[l-d,Object.assign(Object.assign({},e),{thickness:d,nextLevelNodes:u})]});return e.map(e=>n(e,0,0)[1])}function sf(e){let t=[],n=cf((e,t,n)=>Ys(e),(e,n,i)=>{let a=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1});function r(e,t,r){let i=0;for(let a of e)i=Math.max(n(a,t,r),i);return i}return r(e,0,0),t}function cf(e,t){let n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function lf(e,t,n=null,r=0){let i=[];if(n)for(let a=0;a<e.length;a+=1){let o=e[a],s=n.computeDateTop(o.start,t),c=Math.max(s+(r||0),n.computeDateTop(o.end,t));i.push({start:Math.round(s),end:Math.round(c)})}return i}function uf(e,t,n,r){let i=[],a=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?i.push({index:n,thickness:1,span:r}):a.push(e[n])}let{segRects:o,hiddenGroups:s}=$d(i,n,r),c=[];for(let t of o)c.push({seg:e[t.index],rect:t});for(let e of a)c.push({seg:e,rect:null});return{segPlacements:c,hiddenGroups:s}}var df=B({hour:`numeric`,minute:`2-digit`,meridiem:!1}),ff=class extends H{render(){return j(Kc,Object.assign({},this.props,{elClasses:[`fc-timegrid-event`,`fc-v-event`,this.props.isShort&&`fc-timegrid-event-short`],defaultTimeFormat:df}))}},pf=class extends H{constructor(){super(...arguments),this.sortEventSegs=z(zo)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return j(Xc,{elTag:`td`,elRef:e.elRef,elClasses:[`fc-timegrid-col`,...e.extraClassNames||[]],elAttrs:Object.assign({role:`gridcell`},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},t=>j(`div`,{className:`fc-timegrid-col-frame`},j(`div`,{className:`fc-timegrid-col-bg`},this.renderFillSegs(e.businessHourSegs,`non-business`),this.renderFillSegs(e.bgEventSegs,`bg-event`),this.renderFillSegs(e.dateSelectionSegs,`highlight`)),j(`div`,{className:`fc-timegrid-col-events`},this.renderFgSegs(o,a,!1,!1,!1)),j(`div`,{className:`fc-timegrid-col-events`},this.renderFgSegs(i,{},!!e.eventDrag,!!e.eventResize,!!r,`mirror`)),j(`div`,{className:`fc-timegrid-now-indicator-container`},this.renderNowIndicator(e.nowIndicatorSegs)),Zc(n)&&j(t,{elTag:`div`,elClasses:[`fc-timegrid-col-misc`]})))}renderFgSegs(e,t,n,r,i,a){let{props:o}=this;return o.forPrint?mf(e,o):this.renderPositionedFgSegs(e,t,n,r,i,a)}renderPositionedFgSegs(e,t,n,r,i,a){let{eventMaxStack:o,eventShortHeight:s,eventOrderStrict:c,eventMinHeight:l}=this.context.options,{date:u,slatCoords:d,eventSelection:f,todayRange:p,nowDate:m}=this.props,h=n||r||i,{segPlacements:g,hiddenGroups:_}=uf(e,lf(e,u,d,l),c,o);return j(N,null,this.renderHiddenGroups(_,e),g.map(e=>{let{seg:o,rect:c}=e,l=o.eventRange.instance.instanceId,u=h||!!(!t[l]&&c),d=hf(c&&c.span),g=!h&&c?this.computeSegHStyle(c):{left:0,right:0},_=!!c&&c.stackForward>0,v=!!c&&c.span.end-c.span.start<s;return j(`div`,{className:`fc-timegrid-event-harness`+(_?` fc-timegrid-event-harness-inset`:``),key:a||l,style:Object.assign(Object.assign({visibility:u?``:`hidden`},d),g)},j(ff,Object.assign({seg:o,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:l===f,isShort:v},Go(o,p,m))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:a,eventSelection:o,eventDrag:s,eventResize:c}=this.props;return j(N,null,e.map(e=>{let l=hf(e.span),u=gf(e.entries,t);return j(Zd,{key:Wr(ul(u)),hiddenSegs:u,top:l.top,bottom:l.bottom,extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:a,eventSelection:o,eventDrag:s,eventResize:c})}))}renderFillSegs(e,t){let{props:n,context:r}=this;return j(N,null,lf(e,n.date,n.slatCoords,r.options.eventMinHeight).map((r,i)=>{let a=e[i];return j(`div`,{key:qo(a.eventRange),className:`fc-timegrid-bg-harness`,style:hf(r)},t===`bg-event`?j($c,Object.assign({seg:a},Go(a,n.todayRange,n.nowDate))):tl(t))}))}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((e,r)=>j(Jc,{key:r,elClasses:[`fc-timegrid-now-indicator-line`],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n})):null}computeSegHStyle(e){let{isRtl:t,options:n}=this.context,r=n.slotEventOverlap,i=e.levelCoord,a=e.levelCoord+e.thickness,o,s;r&&(a=Math.min(1,i+(a-i)*2)),t?(o=1-a,s=i):(o=i,s=1-a);let c={zIndex:e.stackDepth+1,left:o*100+`%`,right:s*100+`%`};return r&&!e.stackForward&&(c[t?`marginLeft`:`marginRight`]=20),c}};function mf(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:a}){let o=(i?i.affectedInstances:null)||(a?a.affectedInstances:null)||{};return j(N,null,e.map(e=>{let i=e.eventRange.instance.instanceId;return j(`div`,{key:i,style:{visibility:o[i]?`hidden`:``}},j(ff,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===r,isShort:!1},Go(e,t,n))))}))}function hf(e){return e?{top:e.start,bottom:-e.end}:{top:``,bottom:``}}function gf(e,t){return e.map(e=>t[e.index])}var _f=class extends H{constructor(){super(...arguments),this.splitFgEventSegs=z(Yd),this.splitBgEventSegs=z(Yd),this.splitBusinessHourSegs=z(Yd),this.splitNowIndicatorSegs=z(Yd),this.splitDateSelectionSegs=z(Yd),this.splitEventDrag=z(Xd),this.splitEventResize=z(Xd),this.rootElRef=M(),this.cellElRefs=new kc}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),o=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),c=this.splitDateSelectionSegs(e.dateSelectionSegs,r),l=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r);return j(`div`,{className:`fc-timegrid-cols`,ref:this.rootElRef},j(`table`,{role:`presentation`,style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,j(`tbody`,{role:`presentation`},j(`tr`,{role:`row`},e.axis&&j(`td`,{"aria-hidden":!0,className:`fc-timegrid-col fc-timegrid-axis`},j(`div`,{className:`fc-timegrid-col-frame`},j(`div`,{className:`fc-timegrid-now-indicator-container`},typeof n==`number`&&j(Jc,{elClasses:[`fc-timegrid-now-indicator-arrow`],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((t,n)=>j(pf,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:i[n],bgEventSegs:a[n],businessHourSegs:o[n],nowIndicatorSegs:s[n],dateSelectionSegs:c[n],eventDrag:l[n],eventResize:u[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Vs(this.rootElRef.current,vf(this.cellElRefs.currentMap,e.cells),!0,!1))}};function vf(e,t){return t.map(t=>e[t.key])}var yf=class extends Ks{constructor(){super(...arguments),this.processSlotOptions=z(bf),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return j(`div`,{className:`fc-timegrid-body`,ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},j(qd,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:``,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),j(_f,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:i}=this,{dateProfile:a}=this.props,{slatCoords:o}=this.state,{snapDuration:s,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),l=i.leftToIndex(e),u=o.positions.topToIndex(t);if(l!=null&&u!=null){let e=this.props.cells[l],r=o.positions.tops[u],d=o.positions.getHeight(u),f=(t-r)/d,p=Math.floor(f*c),m=u*c+p,h=this.props.cells[l].date,g=fr(a.slotMinTime,mr(s,m)),_=n.add(h,g),v=n.add(_,s);return{dateProfile:a,dateSpan:Object.assign({range:{start:_,end:v},allDay:!1},e.extraDateSpan),dayEl:i.els[l],rect:{left:i.lefts[l],right:i.rights[l],top:r,bottom:r+d},layer:0}}return null}};function bf(e,t){let n=t||e,r=yr(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var xf=class extends hc{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=ha(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}},Sf=class extends Ks{constructor(){super(...arguments),this.buildDayRanges=z(Cf),this.slicer=new xf,this.timeColsRef=M()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:i,nextDayThreshold:a}=t.options,o=this.buildDayRanges(r,n,t.dateEnv);return j(lc,{unit:i?`minute`:`day`},(s,c)=>j(yf,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:s,nowIndicatorSegs:i&&this.slicer.sliceNowDate(s,n,a,t,o),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}};function Cf(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}var wf=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Tf(e,t,n,r,i){let a=new Date(0),o=e,s=F(0),c=n||Ef(r),l=[];for(;vr(o)<vr(t);){let e=i.add(a,o),t=yr(s,c)!==null;l.push({date:e,time:o,key:e.toISOString(),isoTimeStr:qr(e),isLabeled:t}),o=fr(o,r),s=fr(s,r)}return l}function Ef(e){let t,n,r;for(t=wf.length-1;t>=0;--t)if(n=F(wf[t]),r=yr(n,e),r!==null&&r>1)return n;return e}var Df=class extends Ud{constructor(){super(...arguments),this.buildTimeColsModel=z(Of),this.buildSlatMetas=z(Tf)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:i}=r,a=this.buildTimeColsModel(i,n),o=this.allDaySplitter.splitProps(r),s=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:c}=e,l=!c,u=c,d=e.dayHeaders&&j(dc,{dates:a.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:l?this.renderHeadAxis:null}),f=e.allDaySlot!==!1&&(t=>j(Ad,Object.assign({},o.allDay,{dateProfile:i,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:l?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),p=t=>j(Sf,Object.assign({},o.timed,{dayTableModel:a,dateProfile:i,axis:l,slotDuration:e.slotDuration,slatMetas:s,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(d,f,p,a.colCnt,c,s,this.state.slatCoords):this.renderSimpleLayout(d,f,p)}};function Of(e,t){return new mc(new pc(e.renderRange,t),!1)}vn(`.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}`);var kf=wl({name:`@fullcalendar/timegrid`,initialView:`timeGridWeek`,optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Df,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:`00:30:00`,slotEventOverlap:!0},timeGridDay:{type:`timeGrid`,duration:{days:1}},timeGridWeek:{type:`timeGrid`,duration:{weeks:1}}}});nc.touchMouseIgnoreWait=500;var Af=0,jf=0,Mf=!1,Nf=class{constructor(e){this.subjectEl=null,this.selector=``,this.handleSelector=``,this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&Pf(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger(`pointerdown`,t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener(`mousemove`,this.handleMouseMove),document.addEventListener(`mouseup`,this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger(`pointermove`,t)},this.handleMouseUp=e=>{document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),this.emitter.trigger(`pointerup`,this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger(`pointerdown`,t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener(`touchmove`,this.handleTouchMove),n.addEventListener(`touchend`,this.handleTouchEnd),n.addEventListener(`touchcancel`,this.handleTouchEnd),window.addEventListener(`scroll`,this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger(`pointermove`,t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener(`touchmove`,this.handleTouchMove),t.removeEventListener(`touchend`,this.handleTouchEnd),t.removeEventListener(`touchcancel`,this.handleTouchEnd),window.removeEventListener(`scroll`,this.handleTouchScroll,!0),this.emitter.trigger(`pointerup`,this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,Ff()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger(`pointermove`,{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new _o,e.addEventListener(`mousedown`,this.handleMouseDown),e.addEventListener(`touchstart`,this.handleTouchStart,{passive:!0}),If()}destroy(){this.containerEl.removeEventListener(`mousedown`,this.handleMouseDown),this.containerEl.removeEventListener(`touchstart`,this.handleTouchStart,{passive:!0}),Lf()}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return t&&(!this.handleSelector||P(n,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Mf=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?P(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Af||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Mf=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener(`scroll`,this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener(`scroll`,this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n=e.touches,r,i,a=0,o=0;return n&&n.length?(r=n[0].pageX,i=n[0].pageY):(r=e.pageX,i=e.pageY),t?(this.origPageX=r,this.origPageY=i):(a=r-this.origPageX,o=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:a,deltaY:o}}};function Pf(e){return e.button===0&&!e.ctrlKey}function Ff(){Af+=1,setTimeout(()=>{--Af},nc.touchMouseIgnoreWait)}function If(){jf+=1,jf===1&&window.addEventListener(`touchmove`,Rf,{passive:!1})}function Lf(){--jf,jf||window.removeEventListener(`touchmove`,Rf,{passive:!1})}function Rf(e){Mf&&e.preventDefault()}var zf=class{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=``),this.isVisible=e,this.updateElPosition()):this.isVisible&&=(this.mirrorEl&&(this.mirrorEl.style.display=`none`),e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition=`top `+t+`ms,left `+t+`ms`,jn(n,{left:r.left,top:r.top}),Vn(n,()=>{n.style.transition=``,e()})}cleanup(){this.mirrorEl&&=(Dn(this.mirrorEl),null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&jn(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect=`none`,t.style.webkitUserSelect=`none`,t.style.pointerEvents=`none`,t.classList.add(`fc-event-dragging`),jn(t,{position:`fixed`,zIndex:this.zIndex,visibility:``,boxSizing:`border-box`,width:e.right-e.left,height:e.bottom-e.top,right:`auto`,bottom:`auto`,margin:0}),this.parentNode.appendChild(t)),t}},Bf=class extends Us{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener(`scroll`,this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener(`scroll`,this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}},Vf=class extends Bf{constructor(e,t){super(new Ws(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Ls(this.scrollController.el)}},Hf=class extends Bf{constructor(e){super(new Gs,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}},Uf=typeof performance==`function`?performance.now:Date.now,Wf=class{constructor(){this.isEnabled=!0,this.scrollQuery=[window,`.fc-scroller`],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=Uf();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,r=t-window.scrollY,i=this.pointerScreenY===null?0:r-this.pointerScreenY,a=this.pointerScreenX===null?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Uf()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,i=r-e.distance,a=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case`left`:o=-1;case`right`:n.setScrollLeft(n.getScrollLeft()+a*o);break;case`top`:o=-1;case`bottom`:n.setScrollTop(n.getScrollTop()+a*o);break}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let a of i){let i=a.clientRect,o=e-i.left,s=i.right-e,c=t-i.top,l=i.bottom-t;o>=0&&s>=0&&c>=0&&l>=0&&(c<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:a,name:`top`,distance:c}),l<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>l)&&(r={scrollCache:a,name:`bottom`,distance:l}),o<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:a,name:`left`,distance:o}),s<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>s)&&(r={scrollCache:a,name:`right`,distance:s}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new Hf(!1):new Vf(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)typeof n==`object`?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}},Gf=class extends tc{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Jn(document.body),Xn(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger(`pointerdown`,e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger(`pointermove`,e),!this.isDistanceSurpassed){let t=this.minDistance,n,{deltaX:r,deltaY:i}=e;n=r*r+i*i,n>=t*t&&this.handleDistanceSurpassed(e)}this.isDragging&&(e.origEvent.type!==`scroll`&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger(`dragmove`,e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,Yn(document.body),Zn(document.body),this.emitter.trigger(`pointerup`,e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&=(clearTimeout(this.delayTimeoutId),null))};let n=this.pointer=new Nf(e);n.emitter.on(`pointerdown`,this.onPointerDown),n.emitter.on(`pointermove`,this.onPointerMove),n.emitter.on(`pointerup`,this.onPointerUp),t&&(n.selector=t),this.mirror=new zf,this.autoScroller=new Wf}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay==`number`?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger(`dragstart`,e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger(`dragend`,e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}},Kf=class{constructor(e){this.el=e,this.origRect=Rs(e),this.scrollCaches=Bs(e).map(e=>new Vf(e,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!qf(e.getEventTarget())&&!gs(n,e.clientRect))return!1;return!0}};function qf(e){let t=e.tagName;return t===`HTML`||t===`BODY`}var Jf=class{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger(`pointerdown`,e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger(`dragstart`,e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger(`dragmove`,e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger(`pointerup`,e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger(`hitupdate`,null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger(`dragend`,e)},this.droppableStore=t,e.emitter.on(`pointerdown`,this.handlePointerDown),e.emitter.on(`dragstart`,this.handleDragStart),e.emitter.on(`dragmove`,this.handleDragMove),e.emitter.on(`pointerup`,this.handlePointerUp),e.emitter.on(`dragend`,this.handleDragEnd),this.dragging=e,this.emitter=new _o}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},n=t,r=e.subjectEl,i;r instanceof HTMLElement&&(i=Rs(r),n=vs(n,i));let a=this.initialHit=this.queryHitForOffset(n.left,n.top);if(a){if(this.useSubjectCenter&&i){let e=_s(i,a.rect);e&&(n=ys(e))}this.coordAdjust=bs(n,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!Yf(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger(`hitupdate`,n,!1,e))}prepareHits(){this.offsetTrackers=Ai(this.droppableStore,e=>(e.component.prepareHits(),new Kf(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,i=null;for(let a in n){let o=n[a].component,s=r[a];if(s&&s.isWithinClipping(e,t)){let n=s.computeLeft(),r=s.computeTop(),c=e-n,l=t-r,{origRect:u}=s,d=u.right-u.left,f=u.bottom-u.top;if(c>=0&&c<d&&l>=0&&l<f){let e=o.queryHit(c,l,d,f);e&&va(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||s.el.contains(s.el.getRootNode().elementFromPoint(c+n-window.scrollX,l+r-window.scrollY)))&&(!i||e.layer>i.layer)&&(e.componentId=a,e.context=o.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,i=e)}}}return i}};function Yf(e,t){return!e&&!t?!0:!!e==!!t?Qo(e.dateSpan,t.dateSpan):!1}function Xf(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));return Object.assign(n,Zf(e,t.dateEnv)),n}function Zf(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}var Qf=class extends ds{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&Yf(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},Xf(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger(`dateClick`,i)}}},this.dragging=new Gf(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Jf(this.dragging,ps(e));t.emitter.on(`pointerdown`,this.handlePointerDown),t.emitter.on(`dragend`,this.handleDragEnd)}destroy(){this.dragging.destroy()}},$f=class extends ds{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?ep(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,i=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=tp(t,e,n.pluginHooks.dateSelectionTransformers)),(!r||!vc(r,e.dateProfile,n))&&(i=!0,r=null)}r?n.dispatch({type:`SELECT_DATES`,selection:r}):t||n.dispatch({type:`UNSELECT_DATES`}),i?Kn():qn(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&=(Co(this.dragSelection,e,this.component.context),null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new Gf(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Jf(this.dragging,ps(e));i.emitter.on(`pointerdown`,this.handlePointerDown),i.emitter.on(`dragstart`,this.handleDragStart),i.emitter.on(`hitupdate`,this.handleHitUpdate),i.emitter.on(`pointerup`,this.handlePointerUp)}destroy(){this.dragging.destroy()}};function ep(e){let{options:t}=e.context,n=t.selectLongPressDelay;return n??=t.longPressDelay,n}function tp(e,t,n){let r=e.dateSpan,i=t.dateSpan,a=[r.range.start,r.range.end,i.range.start,i.range.end];a.sort(ir);let o={};for(let r of n){let n=r(e,t);if(n===!1)return null;n&&Object.assign(o,n)}return o.range={start:a[0],end:a[3]},o.allDay=r.allDay,o}var np=class e extends ds{constructor(t){super(t),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:i}=r,{options:a}=n.context,o=n.context;this.subjectEl=e.subjectEl;let s=(this.eventRange=(this.subjectSeg=Io(e.subjectEl)).eventRange).instance.instanceId;this.relevantEvents=Wa(o.getCurrentData().eventStore,s),r.minDistance=e.isTouch?0:a.eventDragMinDistance,r.delay=e.isTouch&&s!==n.props.eventSelection?ip(n):null,a.fixedMirrorParent?i.parentNode=a.fixedMirrorParent:i.parentNode=P(t,`.fc`),i.revertDuration=a.dragRevertDuration;let c=n.isValidSegDownEl(t)&&!P(t,`.fc-event-resizer`);r.setIgnoreMove(!c),this.isDragging=c&&e.subjectEl.classList.contains(`fc-event-draggable`)},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:`SELECT_EVENT`,eventInstanceId:r}):t.dispatch({type:`UNSELECT_EVENT`}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger(`eventDragStart`,{el:this.subjectEl,event:new G(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,i=this.component.context,a=null,o=null,s=null,c=!1,l={affectedEvents:n,mutatedEvents:W(),isEvent:!0};if(e){a=e.context;let t=a.options;i===a||t.editable&&t.droppable?(o=rp(r,e,this.eventRange.instance.range.start,a.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(s=Do(n,a.getCurrentData().eventUiBases,o,a),l.mutatedEvents=s,_c(l,e.dateProfile,a)||(c=!0,o=null,s=null,l.mutatedEvents=W()))):a=null}this.displayDrag(a,l),c?Kn():qn(),t||(i===a&&Yf(r,e)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(`.fc-event-mirror`)),this.receivingContext=a,this.validMutation=o,this.mutatedRelevantEvents=s)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:i}=this,a=this.eventRange.def,o=this.eventRange.instance,s=new G(t,a,o),c=this.relevantEvents,l=this.mutatedRelevantEvents,{finalHit:u}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger(`eventDragStop`,{el:this.subjectEl,event:s,jsEvent:e.origEvent,view:n}),i){if(r===t){let r=new G(t,l.defs[a.defId],o?l.instances[o.instanceId]:null);t.dispatch({type:`MERGE_EVENTS`,eventStore:l});let u={oldEvent:s,event:r,relatedEvents:Mo(l,t,o),revert(){t.dispatch({type:`MERGE_EVENTS`,eventStore:c})}},d={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,e(i,t));t.emitter.trigger(`eventDrop`,Object.assign(Object.assign(Object.assign({},u),d),{el:e.subjectEl,delta:i.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger(`eventChange`,u)}else if(r){let i={event:s,relatedEvents:Mo(c,t,o),revert(){t.dispatch({type:`MERGE_EVENTS`,eventStore:c})}};t.emitter.trigger(`eventLeave`,Object.assign(Object.assign({},i),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:`REMOVE_EVENTS`,eventStore:c}),t.emitter.trigger(`eventRemove`,i);let d=l.defs[a.defId],f=l.instances[o.instanceId],p=new G(r,d,f);r.dispatch({type:`MERGE_EVENTS`,eventStore:l});let m={event:p,relatedEvents:Mo(l,r,f),revert(){r.dispatch({type:`REMOVE_EVENTS`,eventStore:l})}};r.emitter.trigger(`eventAdd`,m),e.isTouch&&r.dispatch({type:`SELECT_EVENT`,eventInstanceId:o.instanceId}),r.emitter.trigger(`drop`,Object.assign(Object.assign({},Xf(u.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:u.context.viewApi})),r.emitter.trigger(`eventReceive`,Object.assign(Object.assign({},m),{draggedEl:e.subjectEl,view:u.context.viewApi}))}}else t.emitter.trigger(`_noEventDrop`)}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new Gf(t.el);i.pointer.selector=e.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let a=this.hitDragging=new Jf(this.dragging,ms);a.useSubjectCenter=t.useEventCenter,a.emitter.on(`pointerdown`,this.handlePointerDown),a.emitter.on(`dragstart`,this.handleDragStart),a.emitter.on(`hitupdate`,this.handleHitUpdate),a.emitter.on(`pointerup`,this.handlePointerUp),a.emitter.on(`dragend`,this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:`SET_EVENT_DRAG`,state:{affectedEvents:t.affectedEvents,mutatedEvents:W(),isEvent:!0}}):r.dispatch({type:`UNSET_EVENT_DRAG`})),e&&e.dispatch({type:`SET_EVENT_DRAG`,state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:`UNSET_EVENT_DRAG`}),e!==t&&e.dispatch({type:`UNSET_EVENT_DRAG`})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}};np.SELECTOR=`.fc-event-draggable, .fc-event-resizable`;function rp(e,t,n,r){let i=e.dateSpan,a=t.dateSpan,o=i.range.start,s=a.range.start,c={};i.allDay!==a.allDay&&(c.allDay=a.allDay,c.hasEnd=t.context.options.allDayMaintainDuration,o=a.allDay?L(n):n);let l=wa(o,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(c.allDay=!1);let u={datesDelta:l,standardProps:c};for(let n of r)n(u,e,t);return u}function ip(e){let{options:t}=e.context,n=t.eventLongPressDelay;return n??=t.longPressDelay,n}var ap=class extends ds{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=this.eventRange=Io(this.querySegEl(e)).eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==n.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=Wa(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=Io(r),t.calendarApi.unselect(),t.emitter.trigger(`eventResizeStart`,{el:r,event:new G(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,i=this.relevantEvents,a=this.hitDragging.initialHit,o=this.eventRange.instance,s=null,c=null,l=!1,u={affectedEvents:i,mutatedEvents:W(),isEvent:!0};e&&(e.componentId===a.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(a,e)||(s=op(a,e,n.subjectEl.classList.contains(`fc-event-resizer-start`),o.range))),s&&(c=Do(i,r.getCurrentData().eventUiBases,s,r),u.mutatedEvents=c,_c(u,e.dateProfile,r)||(l=!0,s=null,c=null,u.mutatedEvents=null)),c?r.dispatch({type:`SET_EVENT_RESIZE`,state:u}):r.dispatch({type:`UNSET_EVENT_RESIZE`}),l?Kn():qn(),t||(s&&Yf(a,e)&&(s=null),this.validMutation=s,this.mutatedRelevantEvents=c)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,i=new G(t,n,r),a=this.relevantEvents,o=this.mutatedRelevantEvents;if(t.emitter.trigger(`eventResizeStop`,{el:this.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let s=new G(t,o.defs[n.defId],r?o.instances[r.instanceId]:null);t.dispatch({type:`MERGE_EVENTS`,eventStore:o});let c={oldEvent:i,event:s,relatedEvents:Mo(o,t,r),revert(){t.dispatch({type:`MERGE_EVENTS`,eventStore:a})}};t.emitter.trigger(`eventResize`,Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||F(0),endDelta:this.validMutation.endDelta||F(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger(`eventChange`,c)}else t.emitter.trigger(`_noEventResize`);this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new Gf(e.el);n.pointer.selector=`.fc-event-resizer`,n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new Jf(this.dragging,ps(e));r.emitter.on(`pointerdown`,this.handlePointerDown),r.emitter.on(`dragstart`,this.handleDragStart),r.emitter.on(`hitupdate`,this.handleHitUpdate),r.emitter.on(`dragend`,this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return P(e.subjectEl,`.fc-event`)}};function op(e,t,n,r){let i=e.context.dateEnv,a=e.dateSpan.range.start,o=t.dateSpan.range.start,s=wa(a,o,i,e.largeUnit);if(n){if(i.add(r.start,s)<r.end)return{startDelta:s}}else if(i.add(r.end,s)>r.start)return{endDelta:s};return null}var sp=class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=Nn(e.origEvent);this.matchesCancel=!!P(n,t),this.matchesEvent=!!P(n,np.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;n&&(!n||!this.matchesCancel)&&t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:`UNSELECT_EVENT`})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Nf(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on(`pointerdown`,this.onDocumentPointerDown),t.emitter.on(`pointerup`,this.onDocumentPointerUp),e.emitter.on(`select`,this.onSelect)}destroy(){this.context.emitter.off(`select`,this.onSelect),this.documentPointer.destroy()}},cp={fixedMirrorParent:V},lp={dateClick:V,eventDragStart:V,eventDragStop:V,eventDrop:V,eventResizeStart:V,eventResizeStop:V,eventResize:V,drop:V,eventReceive:V,eventLeave:V};nc.dataAttrPrefix=``;var up=wl({name:`@fullcalendar/interaction`,componentInteractions:[Qf,$f,np,ap],calendarInteractions:[sp],elementDraggingImpl:Gf,optionRefiners:cp,listenerRefiners:lp}),dp=class extends H{constructor(){super(...arguments),this.state={textId:Fn()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:i,dayDate:a,todayRange:o}=this.props,{textId:s}=this.state,c=ws(a,o),l=n.listDayFormat?t.format(a,n.listDayFormat):``,u=n.listDaySideFormat?t.format(a,n.listDaySideFormat):``,d=Object.assign({date:t.toDate(a),view:r,textId:s,text:l,sideText:u,navLinkAttrs:Os(this.context,a),sideNavLinkAttrs:Os(this.context,a,`day`,!1)},c);return j(U,{elTag:`tr`,elClasses:[`fc-list-day`,...Ts(c,e)],elAttrs:{"data-date":Gr(a)},renderProps:d,generatorName:`dayHeaderContent`,customGenerator:n.dayHeaderContent,defaultGenerator:fp,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},t=>j(`th`,{scope:`colgroup`,colSpan:3,id:i,"aria-labelledby":s},j(t,{elTag:`div`,elClasses:[`fc-list-day-cushion`,e.getClass(`tableCellShaded`)]})))}};function fp(e){return j(N,null,e.text&&j(`a`,Object.assign({id:e.textId,className:`fc-list-day-text`},e.navLinkAttrs),e.text),e.sideText&&j(`a`,Object.assign({"aria-hidden":!0,className:`fc-list-day-side-text`},e.sideNavLinkAttrs),e.sideText))}var pp=B({hour:`numeric`,minute:`2-digit`,meridiem:`short`}),mp=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:i,eventHeaderId:a,dateHeaderId:o}=e,s=n.eventTimeFormat||pp;return j(Gc,Object.assign({},e,{elTag:`tr`,elClasses:[`fc-list-event`,r.eventRange.def.url&&`fc-event-forced-url`],defaultGenerator:()=>hp(r,t),seg:r,timeText:``,disableDragging:!0,disableResizing:!0}),(e,n)=>j(N,null,gp(r,s,t,i,o),j(`td`,{"aria-hidden":!0,className:`fc-list-event-graphic`},j(`span`,{className:`fc-list-event-dot`,style:{borderColor:n.borderColor||n.backgroundColor}})),j(e,{elTag:`td`,elClasses:[`fc-list-event-title`],elAttrs:{headers:`${a} ${o}`}})))}};function hp(e,t){let n=Jo(e,t);return j(`a`,Object.assign({},n),e.eventRange.def.title)}function gp(e,t,n,r,i){let{options:a}=n;if(a.displayEventTime!==!1){let o=e.eventRange.def,s=e.eventRange.instance,c=!1,l;if(o.allDay?c=!0:Ca(e.eventRange.range)?e.isStart?l=Wo(e,t,n,null,null,s.range.start,e.end):e.isEnd?l=Wo(e,t,n,null,null,e.start,s.range.end):c=!0:l=Wo(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return j(U,{elTag:`td`,elClasses:[`fc-list-event-time`],elAttrs:{headers:`${r} ${i}`},renderProps:e,generatorName:`allDayContent`,customGenerator:a.allDayContent,defaultGenerator:_p,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return j(`td`,{className:`fc-list-event-time`},l)}return null}function _p(e){return e.text}var vp=class extends Ks{constructor(){super(...arguments),this.computeDateVars=z(bp),this.eventStoreToSegs=z(this._eventStoreToSegs),this.state={timeHeaderId:Fn(),eventHeaderId:Fn(),dateHeaderIdRoot:Fn()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),i=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return j(ua,{elRef:this.setRootEl,elClasses:[`fc-list`,t.theme.getClass(`table`),t.options.stickyHeaderDates===!1?``:`fc-list-sticky`],viewSpec:t.viewSpec},j(Oc,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?`visible`:`hidden`,overflowY:e.isHeightAuto?`visible`:`auto`},i.length>0?this.renderSegList(i,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context;return j(U,{elTag:`div`,elClasses:[`fc-list-empty`],renderProps:{text:e.noEventsText,view:t},generatorName:`noEventsContent`,customGenerator:e.noEventsContent,defaultGenerator:yp,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>j(e,{elTag:`div`,elClasses:[`fc-list-empty-cushion`]}))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:i,eventHeaderId:a,dateHeaderIdRoot:o}=this.state,s=xp(e);return j(lc,{unit:`day`},(e,c)=>{let l=[];for(let n=0;n<s.length;n+=1){let u=s[n];if(u){let s=Gr(t[n]),d=o+`-`+s;l.push(j(dp,{key:s,cellId:d,dayDate:t[n],todayRange:c})),u=zo(u,r.eventOrder);for(let t of u)l.push(j(mp,Object.assign({key:s+`:`+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:i,eventHeaderId:a,dateHeaderId:d},Go(t,c,e))))}}return j(`table`,{className:`fc-list-table `+n.getClass(`table`)},j(`thead`,null,j(`tr`,null,j(`th`,{scope:`col`,id:i},r.timeHint),j(`th`,{scope:`col`,"aria-hidden":!0}),j(`th`,{scope:`col`,id:a},r.eventHint))),j(`tbody`,null,l))})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(No(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let{dateEnv:n}=this.context,{nextDayThreshold:r}=this.context.options,i=e.range,a=e.def.allDay,o,s,c,l=[];for(o=0;o<t.length;o+=1)if(s=ha(i,t[o]),s&&(c={component:this,eventRange:e,start:s.start,end:s.end,isStart:e.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===i.end.valueOf(),dayIndex:o},l.push(c),!c.isEnd&&!a&&o+1<t.length&&i.end<n.add(t[o+1].start,r))){c.end=i.end,c.isEnd=!0;break}return l}};function yp(e){return e.text}function bp(e){let t=L(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:I(t,1)}),t=I(t,1);return{dayDates:r,dayRanges:i}}function xp(e){let t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}vn(`:root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}`);var Sp={listDayFormat:Cp,listDaySideFormat:Cp,noEventsClassNames:V,noEventsContent:V,noEventsDidMount:V,noEventsWillUnmount:V};function Cp(e){return e===!1?null:B(e)}var wp=wl({name:`@fullcalendar/list`,optionRefiners:Sp,views:{list:{component:vp,buttonTextKey:`list`,listDayFormat:{month:`long`,day:`numeric`,year:`numeric`}},listDay:{type:`list`,duration:{days:1},listDayFormat:{weekday:`long`}},listWeek:{type:`list`,duration:{weeks:1},listDayFormat:{weekday:`long`},listDaySideFormat:{month:`long`,day:`numeric`,year:`numeric`}},listMonth:{type:`list`,duration:{month:1},listDaySideFormat:{weekday:`long`}},listYear:{type:`list`,duration:{year:1},listDaySideFormat:{weekday:`long`}}}}),Tp={code:`fr`,week:{dow:1,doy:4},buttonText:{prev:`Précédent`,next:`Suivant`,today:`Aujourd'hui`,year:`Année`,month:`Mois`,week:`Semaine`,day:`Jour`,list:`Planning`},weekText:`Sem.`,weekTextLong:`Semaine`,allDayText:`Toute la journée`,moreLinkText:`en plus`,noEventsText:`Aucun évènement à afficher`};function Ep(e,t){let n={},r=t&&`_d_${t}_`;for(let t of Object.keys(e))t.startsWith(`_c_`)&&(n[t]=e[t]),r&&t.startsWith(r)&&(n[t.replace(r,``)]=e[t]);return n}function Dp(e,t){let n=ye({});return se(e,()=>{let r=Ep(e,t);Object.assign(n,r);for(let e of Object.keys(n))e in r||delete n[e]},{immediate:!0}),n}var Op=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var kp=()=>{};function Ap(e,t,n){let r;r=_e(n)?{evaluating:n}:n||{};let{lazy:i=!1,evaluating:a=void 0,shallow:o=!0,onError:s=kp}=r,c=Fe(!i),l=o?be(t):Fe(t),u=0;return x(async t=>{if(!c.value)return;u++;let n=u,r=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{let i=await e(e=>{t(()=>{a&&(a.value=!1),r||e()})});n===u&&(l.value=i)}catch(e){s(e)}finally{a&&n===u&&(a.value=!1),r=!0}}),i?Ie(()=>(c.value=!0,l.value)):l}Op&&window.document,Op&&window.navigator,Op&&window.location;var jp=(e,t=0,n=1)=>Ip(Lp(t,e),n),Mp=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=jp(e[t],0,255)):t===3&&(e[t]=jp(e[t],0,1));return e},Np={};for(let e of[`Boolean`,`Number`,`String`,`Function`,`Array`,`Date`,`RegExp`,`Undefined`,`Null`])Np[`[object ${e}]`]=e.toLowerCase();function K(e){return Np[Object.prototype.toString.call(e)]||`object`}var q=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):K(e[0])==`object`&&t?t.split(``).filter(t=>e[0][t]!==void 0).map(t=>e[0][t]):e[0],Pp=e=>{if(e.length<2)return null;let t=e.length-1;return K(e[t])==`string`?e[t].toLowerCase():null},{PI:Fp,min:Ip,max:Lp}=Math,Rp=Fp*2,zp=Fp/3,Bp=Fp/180,Vp=180/Fp,J={format:{},autodetect:[]},Y=class{constructor(...e){let t=this;if(K(e[0])===`object`&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=Pp(e),r=!1;if(!n){r=!0,J.sorted||=(J.autodetect=J.autodetect.sort((e,t)=>t.p-e.p),!0);for(let t of J.autodetect)if(n=t.test(...e),n)break}if(J.format[n])t._rgb=Mp(J.format[n].apply(null,r?e:e.slice(0,-1)));else throw Error(`unknown format: `+e);t._rgb.length===3&&t._rgb.push(1)}toString(){return K(this.hex)==`function`?this.hex():`[${this._rgb.join(`,`)}]`}},Hp=(...e)=>new Hp.Color(...e);Hp.Color=Y,Hp.version=`2.6.0`;var X=Hp,Up=(...e)=>{e=q(e,`cmyk`);let[t,n,r,i]=e,a=e.length>4?e[4]:1;return i===1?[0,0,0,a]:[t>=1?0:255*(1-t)*(1-i),n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),a]},{max:Wp}=Math,Gp=(...e)=>{let[t,n,r]=q(e,`rgb`);t/=255,n/=255,r/=255;let i=1-Wp(t,Wp(n,r)),a=i<1?1/(1-i):0;return[(1-t-i)*a,(1-n-i)*a,(1-r-i)*a,i]};Y.prototype.cmyk=function(){return Gp(this._rgb)},X.cmyk=(...e)=>new Y(...e,`cmyk`),J.format.cmyk=Up,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`cmyk`),K(e)===`array`&&e.length===4)return`cmyk`}});var Kp=e=>Math.round(e*100)/100,qp=(...e)=>{let t=q(e,`hsla`),n=Pp(e)||`lsa`;return t[0]=Kp(t[0]||0),t[1]=Kp(t[1]*100)+`%`,t[2]=Kp(t[2]*100)+`%`,n===`hsla`||t.length>3&&t[3]<1?(t[3]=t.length>3?t[3]:1,n=`hsla`):t.length=3,`${n}(${t.join(`,`)})`},Jp=(...e)=>{e=q(e,`rgba`);let[t,n,r]=e;t/=255,n/=255,r/=255;let i=Ip(t,n,r),a=Lp(t,n,r),o=(a+i)/2,s,c;return a===i?(s=0,c=NaN):s=o<.5?(a-i)/(a+i):(a-i)/(2-a-i),t==a?c=(n-r)/(a-i):n==a?c=2+(r-t)/(a-i):r==a&&(c=4+(t-n)/(a-i)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,o,e[3]]:[c,s,o]},{round:Yp}=Math,Xp=(...e)=>{let t=q(e,`rgba`),n=Pp(e)||`rgb`;return n.substr(0,3)==`hsl`?qp(Jp(t),n):(t[0]=Yp(t[0]),t[1]=Yp(t[1]),t[2]=Yp(t[2]),(n===`rgba`||t.length>3&&t[3]<1)&&(t[3]=t.length>3?t[3]:1,n=`rgba`),`${n}(${t.slice(0,n===`rgb`?3:4).join(`,`)})`)},{round:Zp}=Math,Qp=(...e)=>{e=q(e,`hsl`);let[t,n,r]=e,i,a,o;if(n===0)i=a=o=r*255;else{let e=[0,0,0],s=[0,0,0],c=r<.5?r*(1+n):r+n-r*n,l=2*r-c,u=t/360;e[0]=u+1/3,e[1]=u,e[2]=u-1/3;for(let t=0;t<3;t++)e[t]<0&&(e[t]+=1),e[t]>1&&--e[t],6*e[t]<1?s[t]=l+(c-l)*6*e[t]:2*e[t]<1?s[t]=c:3*e[t]<2?s[t]=l+(c-l)*(2/3-e[t])*6:s[t]=l;[i,a,o]=[Zp(s[0]*255),Zp(s[1]*255),Zp(s[2]*255)]}return e.length>3?[i,a,o,e[3]]:[i,a,o,1]},$p=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,em=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,tm=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,nm=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,rm=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,im=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:am}=Math,om=e=>{e=e.toLowerCase().trim();let t;if(J.format.named)try{return J.format.named(e)}catch{}if(t=e.match($p)){let e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=+e[t];return e[3]=1,e}if(t=e.match(em)){let e=t.slice(1,5);for(let t=0;t<4;t++)e[t]=+e[t];return e}if(t=e.match(tm)){let e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=am(e[t]*2.55);return e[3]=1,e}if(t=e.match(nm)){let e=t.slice(1,5);for(let t=0;t<3;t++)e[t]=am(e[t]*2.55);return e[3]=+e[3],e}if(t=e.match(rm)){let e=t.slice(1,4);e[1]*=.01,e[2]*=.01;let n=Qp(e);return n[3]=1,n}if(t=e.match(im)){let e=t.slice(1,4);e[1]*=.01,e[2]*=.01;let n=Qp(e);return n[3]=+t[4],n}};om.test=e=>$p.test(e)||em.test(e)||tm.test(e)||nm.test(e)||rm.test(e)||im.test(e);var sm=om;Y.prototype.css=function(e){return Xp(this._rgb,e)},X.css=(...e)=>new Y(...e,`css`),J.format.css=sm,J.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&K(e)===`string`&&sm.test(e))return`css`}}),J.format.gl=(...e)=>{let t=q(e,`rgba`);return t[0]*=255,t[1]*=255,t[2]*=255,t},X.gl=(...e)=>new Y(...e,`gl`),Y.prototype.gl=function(){let e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var{floor:cm}=Math,lm=(...e)=>{e=q(e,`hcg`);let[t,n,r]=e,i,a,o;r*=255;let s=n*255;if(n===0)i=a=o=r;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;let e=cm(t),c=t-e,l=r*(1-n),u=l+s*(1-c),d=l+s*c,f=l+s;switch(e){case 0:[i,a,o]=[f,d,l];break;case 1:[i,a,o]=[u,f,l];break;case 2:[i,a,o]=[l,f,d];break;case 3:[i,a,o]=[l,u,f];break;case 4:[i,a,o]=[d,l,f];break;case 5:[i,a,o]=[f,l,u];break}}return[i,a,o,e.length>3?e[3]:1]},um=(...e)=>{let[t,n,r]=q(e,`rgb`),i=Ip(t,n,r),a=Lp(t,n,r),o=a-i,s=o*100/255,c=i/(255-o)*100,l;return o===0?l=NaN:(t===a&&(l=(n-r)/o),n===a&&(l=2+(r-t)/o),r===a&&(l=4+(t-n)/o),l*=60,l<0&&(l+=360)),[l,s,c]};Y.prototype.hcg=function(){return um(this._rgb)},X.hcg=(...e)=>new Y(...e,`hcg`),J.format.hcg=lm,J.autodetect.push({p:1,test:(...e)=>{if(e=q(e,`hcg`),K(e)===`array`&&e.length===3)return`hcg`}});var dm=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,fm=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,pm=e=>{if(e.match(dm)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(``),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let t=parseInt(e,16);return[t>>16,t>>8&255,t&255,1]}if(e.match(fm)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(``),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);let t=parseInt(e,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((t&255)/255*100)/100]}throw Error(`unknown hex color: ${e}`)},{round:mm}=Math,hm=(...e)=>{let[t,n,r,i]=q(e,`rgba`),a=Pp(e)||`auto`;i===void 0&&(i=1),a===`auto`&&(a=i<1?`rgba`:`rgb`),t=mm(t),n=mm(n),r=mm(r);let o=`000000`+(t<<16|n<<8|r).toString(16);o=o.substr(o.length-6);let s=`0`+mm(i*255).toString(16);switch(s=s.substr(s.length-2),a.toLowerCase()){case`rgba`:return`#${o}${s}`;case`argb`:return`#${s}${o}`;default:return`#${o}`}};Y.prototype.hex=function(e){return hm(this._rgb,e)},X.hex=(...e)=>new Y(...e,`hex`),J.format.hex=pm,J.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&K(e)===`string`&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return`hex`}});var{cos:gm}=Math,_m=(...e)=>{e=q(e,`hsi`);let[t,n,r]=e,i,a,o;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),t>360&&(t-=360),t<0&&(t+=360),t/=360,t<1/3?(o=(1-n)/3,i=(1+n*gm(Rp*t)/gm(zp-Rp*t))/3,a=1-(o+i)):t<2/3?(t-=1/3,i=(1-n)/3,a=(1+n*gm(Rp*t)/gm(zp-Rp*t))/3,o=1-(i+a)):(t-=2/3,a=(1-n)/3,o=(1+n*gm(Rp*t)/gm(zp-Rp*t))/3,i=1-(a+o)),i=jp(r*i*3),a=jp(r*a*3),o=jp(r*o*3),[i*255,a*255,o*255,e.length>3?e[3]:1]},{min:vm,sqrt:ym,acos:bm}=Math,xm=(...e)=>{let[t,n,r]=q(e,`rgb`);t/=255,n/=255,r/=255;let i,a=vm(t,n,r),o=(t+n+r)/3,s=o>0?1-a/o:0;return s===0?i=NaN:(i=(t-n+(t-r))/2,i/=ym((t-n)*(t-n)+(t-r)*(n-r)),i=bm(i),r>n&&(i=Rp-i),i/=Rp),[i*360,s,o]};Y.prototype.hsi=function(){return xm(this._rgb)},X.hsi=(...e)=>new Y(...e,`hsi`),J.format.hsi=_m,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`hsi`),K(e)===`array`&&e.length===3)return`hsi`}}),Y.prototype.hsl=function(){return Jp(this._rgb)},X.hsl=(...e)=>new Y(...e,`hsl`),J.format.hsl=Qp,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`hsl`),K(e)===`array`&&e.length===3)return`hsl`}});var{floor:Sm}=Math,Cm=(...e)=>{e=q(e,`hsv`);let[t,n,r]=e,i,a,o;if(r*=255,n===0)i=a=o=r;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;let e=Sm(t),s=t-e,c=r*(1-n),l=r*(1-n*s),u=r*(1-n*(1-s));switch(e){case 0:[i,a,o]=[r,u,c];break;case 1:[i,a,o]=[l,r,c];break;case 2:[i,a,o]=[c,r,u];break;case 3:[i,a,o]=[c,l,r];break;case 4:[i,a,o]=[u,c,r];break;case 5:[i,a,o]=[r,c,l];break}}return[i,a,o,e.length>3?e[3]:1]},{min:wm,max:Tm}=Math,Em=(...e)=>{e=q(e,`rgb`);let[t,n,r]=e,i=wm(t,n,r),a=Tm(t,n,r),o=a-i,s,c,l;return l=a/255,a===0?(s=NaN,c=0):(c=o/a,t===a&&(s=(n-r)/o),n===a&&(s=2+(r-t)/o),r===a&&(s=4+(t-n)/o),s*=60,s<0&&(s+=360)),[s,c,l]};Y.prototype.hsv=function(){return Em(this._rgb)},X.hsv=(...e)=>new Y(...e,`hsv`),J.format.hsv=Cm,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`hsv`),K(e)===`array`&&e.length===3)return`hsv`}});var Z={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},{pow:Dm}=Math,Om=(...e)=>{e=q(e,`lab`);let[t,n,r]=e,i,a,o,s,c,l;return a=(t+16)/116,i=isNaN(n)?a:a+n/500,o=isNaN(r)?a:a-r/200,a=Z.Yn*Am(a),i=Z.Xn*Am(i),o=Z.Zn*Am(o),s=km(3.2404542*i-1.5371385*a-.4985314*o),c=km(-.969266*i+1.8760108*a+.041556*o),l=km(.0556434*i-.2040259*a+1.0572252*o),[s,c,l,e.length>3?e[3]:1]},km=e=>255*(e<=.00304?12.92*e:1.055*Dm(e,1/2.4)-.055),Am=e=>e>Z.t1?e*e*e:Z.t2*(e-Z.t0),jm=Om,{pow:Mm}=Math,Nm=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=Im(t,n,r),s=116*a-16;return[s<0?0:s,500*(i-a),200*(a-o)]},Pm=e=>(e/=255)<=.04045?e/12.92:Mm((e+.055)/1.055,2.4),Fm=e=>e>Z.t3?Mm(e,1/3):e/Z.t2+Z.t0,Im=(e,t,n)=>(e=Pm(e),t=Pm(t),n=Pm(n),[Fm((.4124564*e+.3575761*t+.1804375*n)/Z.Xn),Fm((.2126729*e+.7151522*t+.072175*n)/Z.Yn),Fm((.0193339*e+.119192*t+.9503041*n)/Z.Zn)]),Lm=Nm;Y.prototype.lab=function(){return Lm(this._rgb)},X.lab=(...e)=>new Y(...e,`lab`),J.format.lab=jm,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`lab`),K(e)===`array`&&e.length===3)return`lab`}});var{sin:Rm,cos:zm}=Math,Bm=(...e)=>{let[t,n,r]=q(e,`lch`);return isNaN(r)&&(r=0),r*=Bp,[t,zm(r)*n,Rm(r)*n]},Vm=(...e)=>{e=q(e,`lch`);let[t,n,r]=e,[i,a,o]=Bm(t,n,r),[s,c,l]=jm(i,a,o);return[s,c,l,e.length>3?e[3]:1]},Hm=(...e)=>Vm(...q(e,`hcl`).reverse()),{sqrt:Um,atan2:Wm,round:Gm}=Math,Km=(...e)=>{let[t,n,r]=q(e,`lab`),i=Um(n*n+r*r),a=(Wm(r,n)*Vp+360)%360;return Gm(i*1e4)===0&&(a=NaN),[t,i,a]},qm=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=Lm(t,n,r);return Km(i,a,o)};Y.prototype.lch=function(){return qm(this._rgb)},Y.prototype.hcl=function(){return qm(this._rgb).reverse()},X.lch=(...e)=>new Y(...e,`lch`),X.hcl=(...e)=>new Y(...e,`hcl`),J.format.lch=Vm,J.format.hcl=Hm,[`lch`,`hcl`].forEach(e=>J.autodetect.push({p:2,test:(...t)=>{if(t=q(t,e),K(t)===`array`&&t.length===3)return e}}));var Jm={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,laserlemon:`#ffff54`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrod:`#fafad2`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,maroon2:`#7f0000`,maroon3:`#b03060`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,purple2:`#7f007f`,purple3:`#a020f0`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`};Y.prototype.name=function(){let e=hm(this._rgb,`rgb`);for(let t of Object.keys(Jm))if(Jm[t]===e)return t.toLowerCase();return e},J.format.named=e=>{if(e=e.toLowerCase(),Jm[e])return pm(Jm[e]);throw Error(`unknown color name: `+e)},J.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&K(e)===`string`&&Jm[e.toLowerCase()])return`named`}});var Ym=e=>{if(K(e)==`number`&&e>=0&&e<=16777215)return[e>>16,e>>8&255,e&255,1];throw Error(`unknown num color: `+e)},Xm=(...e)=>{let[t,n,r]=q(e,`rgb`);return(t<<16)+(n<<8)+r};Y.prototype.num=function(){return Xm(this._rgb)},X.num=(...e)=>new Y(...e,`num`),J.format.num=Ym,J.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&K(e[0])===`number`&&e[0]>=0&&e[0]<=16777215)return`num`}});var{round:Zm}=Math;Y.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Zm)},Y.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((t,n)=>n<3?e===!1?t:Zm(t):t)},X.rgb=(...e)=>new Y(...e,`rgb`),J.format.rgb=(...e)=>{let t=q(e,`rgba`);return t[3]===void 0&&(t[3]=1),t},J.autodetect.push({p:3,test:(...e)=>{if(e=q(e,`rgba`),K(e)===`array`&&(e.length===3||e.length===4&&K(e[3])==`number`&&e[3]>=0&&e[3]<=1))return`rgb`}});var{log:Qm}=Math,$m=e=>{let t=e/100,n,r,i;return t<66?(n=255,r=t<6?0:-155.25485562709179-.44596950469579133*(r=t-2)+104.49216199393888*Qm(r),i=t<20?0:-254.76935184120902+.8274096064007395*(i=t-10)+115.67994401066147*Qm(i)):(n=351.97690566805693+.114206453784165*(n=t-55)-40.25366309332127*Qm(n),r=325.4494125711974+.07943456536662342*(r=t-50)-28.0852963507957*Qm(r),i=255),[n,r,i,1]},{round:eh}=Math,th=(...e)=>{let t=q(e,`rgb`),n=t[0],r=t[2],i=1e3,a=4e4,o;for(;a-i>.4;){o=(a+i)*.5;let e=$m(o);e[2]/e[0]>=r/n?a=o:i=o}return eh(o)};Y.prototype.temp=Y.prototype.kelvin=Y.prototype.temperature=function(){return th(this._rgb)},X.temp=X.kelvin=X.temperature=(...e)=>new Y(...e,`temp`),J.format.temp=J.format.kelvin=J.format.temperature=$m;var{pow:nh,sign:rh}=Math,ih=(...e)=>{e=q(e,`lab`);let[t,n,r]=e,i=nh(t+.3963377774*n+.2158037573*r,3),a=nh(t-.1055613458*n-.0638541728*r,3),o=nh(t-.0894841775*n-1.291485548*r,3);return[255*ah(4.0767416621*i-3.3077115913*a+.2309699292*o),255*ah(-1.2684380046*i+2.6097574011*a-.3413193965*o),255*ah(-.0041960863*i-.7034186147*a+1.707614701*o),e.length>3?e[3]:1]};function ah(e){let t=Math.abs(e);return t>.0031308?(rh(e)||1)*(1.055*nh(t,1/2.4)-.055):e*12.92}var{cbrt:oh,pow:sh,sign:ch}=Math,lh=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=[uh(t/255),uh(n/255),uh(r/255)],s=oh(.4122214708*i+.5363325363*a+.0514459929*o),c=oh(.2119034982*i+.6806995451*a+.1073969566*o),l=oh(.0883024619*i+.2817188376*a+.6299787005*o);return[.2104542553*s+.793617785*c-.0040720468*l,1.9779984951*s-2.428592205*c+.4505937099*l,.0259040371*s+.7827717662*c-.808675766*l]};function uh(e){let t=Math.abs(e);return t<.04045?e/12.92:(ch(e)||1)*sh((t+.055)/1.055,2.4)}Y.prototype.oklab=function(){return lh(this._rgb)},X.oklab=(...e)=>new Y(...e,`oklab`),J.format.oklab=ih,J.autodetect.push({p:3,test:(...e)=>{if(e=q(e,`oklab`),K(e)===`array`&&e.length===3)return`oklab`}});var dh=(...e)=>{e=q(e,`lch`);let[t,n,r]=e,[i,a,o]=Bm(t,n,r),[s,c,l]=ih(i,a,o);return[s,c,l,e.length>3?e[3]:1]},fh=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=lh(t,n,r);return Km(i,a,o)};Y.prototype.oklch=function(){return fh(this._rgb)},X.oklch=(...e)=>new Y(...e,`oklch`),J.format.oklch=dh,J.autodetect.push({p:3,test:(...e)=>{if(e=q(e,`oklch`),K(e)===`array`&&e.length===3)return`oklch`}}),Y.prototype.alpha=function(e,t=!1){return e!==void 0&&K(e)===`number`?t?(this._rgb[3]=e,this):new Y([this._rgb[0],this._rgb[1],this._rgb[2],e],`rgb`):this._rgb[3]},Y.prototype.clipped=function(){return this._rgb._clipped||!1},Y.prototype.darken=function(e=1){let t=this,n=t.lab();return n[0]-=Z.Kn*e,new Y(n,`lab`).alpha(t.alpha(),!0)},Y.prototype.brighten=function(e=1){return this.darken(-e)},Y.prototype.darker=Y.prototype.darken,Y.prototype.brighter=Y.prototype.brighten,Y.prototype.get=function(e){let[t,n]=e.split(`.`),r=this[t]();if(n){let e=t.indexOf(n)-(t.substr(0,2)===`ok`?2:0);if(e>-1)return r[e];throw Error(`unknown channel ${n} in mode ${t}`)}else return r};var{pow:ph}=Math,mh=1e-7,hh=20;Y.prototype.luminance=function(e,t=`rgb`){if(e!==void 0&&K(e)===`number`){if(e===0)return new Y([0,0,0,this._rgb[3]],`rgb`);if(e===1)return new Y([255,255,255,this._rgb[3]],`rgb`);let n=this.luminance(),r=hh,i=(n,a)=>{let o=n.interpolate(a,.5,t),s=o.luminance();return Math.abs(e-s)<mh||!r--?o:s>e?i(n,o):i(o,a)};return new Y([...(n>e?i(new Y([0,0,0]),this):i(this,new Y([255,255,255]))).rgb(),this._rgb[3]])}return gh(...this._rgb.slice(0,3))};var gh=(e,t,n)=>(e=_h(e),t=_h(t),n=_h(n),.2126*e+.7152*t+.0722*n),_h=e=>(e/=255,e<=.03928?e/12.92:ph((e+.055)/1.055,2.4)),Q={},vh=(e,t,n=.5,...r)=>{let i=r[0]||`lrgb`;if(!Q[i]&&!r.length&&(i=Object.keys(Q)[0]),!Q[i])throw Error(`interpolation mode ${i} is not defined`);return K(e)!==`object`&&(e=new Y(e)),K(t)!==`object`&&(t=new Y(t)),Q[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};Y.prototype.mix=Y.prototype.interpolate=function(e,t=.5,...n){return vh(this,e,t,...n)},Y.prototype.premultiply=function(e=!1){let t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new Y([t[0]*n,t[1]*n,t[2]*n,n],`rgb`)},Y.prototype.saturate=function(e=1){let t=this,n=t.lch();return n[1]+=Z.Kn*e,n[1]<0&&(n[1]=0),new Y(n,`lch`).alpha(t.alpha(),!0)},Y.prototype.desaturate=function(e=1){return this.saturate(-e)},Y.prototype.set=function(e,t,n=!1){let[r,i]=e.split(`.`),a=this[r]();if(i){let e=r.indexOf(i)-(r.substr(0,2)===`ok`?2:0);if(e>-1){if(K(t)==`string`)switch(t.charAt(0)){case`+`:a[e]+=+t;break;case`-`:a[e]+=+t;break;case`*`:a[e]*=+t.substr(1);break;case`/`:a[e]/=+t.substr(1);break;default:a[e]=+t}else if(K(t)===`number`)a[e]=t;else throw Error(`unsupported value for Color.set`);let i=new Y(a,r);return n?(this._rgb=i._rgb,this):i}throw Error(`unknown channel ${i} in mode ${r}`)}else return a},Y.prototype.tint=function(e=.5,...t){return vh(this,`white`,e,...t)},Y.prototype.shade=function(e=.5,...t){return vh(this,`black`,e,...t)},Q.rgb=(e,t,n)=>{let r=e._rgb,i=t._rgb;return new Y(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`rgb`)};var{sqrt:yh,pow:bh}=Math;Q.lrgb=(e,t,n)=>{let[r,i,a]=e._rgb,[o,s,c]=t._rgb;return new Y(yh(bh(r,2)*(1-n)+bh(o,2)*n),yh(bh(i,2)*(1-n)+bh(s,2)*n),yh(bh(a,2)*(1-n)+bh(c,2)*n),`rgb`)},Q.lab=(e,t,n)=>{let r=e.lab(),i=t.lab();return new Y(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`lab`)};var xh=(e,t,n,r)=>{let i,a;r===`hsl`?(i=e.hsl(),a=t.hsl()):r===`hsv`?(i=e.hsv(),a=t.hsv()):r===`hcg`?(i=e.hcg(),a=t.hcg()):r===`hsi`?(i=e.hsi(),a=t.hsi()):r===`lch`||r===`hcl`?(r=`hcl`,i=e.hcl(),a=t.hcl()):r===`oklch`&&(i=e.oklch().reverse(),a=t.oklch().reverse());let o,s,c,l,u,d;(r.substr(0,1)===`h`||r===`oklch`)&&([o,c,u]=i,[s,l,d]=a);let f,p,m,h;return!isNaN(o)&&!isNaN(s)?(h=s>o&&s-o>180?s-(o+360):s<o&&o-s>180?s+360-o:s-o,p=o+n*h):isNaN(o)?isNaN(s)?p=NaN:(p=s,(u==1||u==0)&&r!=`hsv`&&(f=l)):(p=o,(d==1||d==0)&&r!=`hsv`&&(f=c)),f===void 0&&(f=c+n*(l-c)),m=u+n*(d-u),r===`oklch`?new Y([m,f,p],r):new Y([p,f,m],r)},Sh=(e,t,n)=>xh(e,t,n,`lch`);Q.lch=Sh,Q.hcl=Sh,Q.num=(e,t,n)=>{let r=e.num();return new Y(r+n*(t.num()-r),`num`)},Q.hcg=(e,t,n)=>xh(e,t,n,`hcg`),Q.hsi=(e,t,n)=>xh(e,t,n,`hsi`),Q.hsl=(e,t,n)=>xh(e,t,n,`hsl`),Q.hsv=(e,t,n)=>xh(e,t,n,`hsv`),Q.oklab=(e,t,n)=>{let r=e.oklab(),i=t.oklab();return new Y(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`oklab`)},Q.oklch=(e,t,n)=>xh(e,t,n,`oklch`);var{pow:Ch,sqrt:wh,PI:Th,cos:Eh,sin:Dh,atan2:Oh}=Math,kh=(e,t=`lrgb`,n=null)=>{let r=e.length;n||=Array.from(Array(r)).map(()=>1);let i=r/n.reduce(function(e,t){return e+t});if(n.forEach((e,t)=>{n[t]*=i}),e=e.map(e=>new Y(e)),t===`lrgb`)return Ah(e,n);let a=e.shift(),o=a.get(t),s=[],c=0,l=0;for(let e=0;e<o.length;e++)if(o[e]=(o[e]||0)*n[0],s.push(isNaN(o[e])?0:n[0]),t.charAt(e)===`h`&&!isNaN(o[e])){let t=o[e]/180*Th;c+=Eh(t)*n[0],l+=Dh(t)*n[0]}let u=a.alpha()*n[0];e.forEach((e,r)=>{let i=e.get(t);u+=e.alpha()*n[r+1];for(let e=0;e<o.length;e++)if(!isNaN(i[e]))if(s[e]+=n[r+1],t.charAt(e)===`h`){let t=i[e]/180*Th;c+=Eh(t)*n[r+1],l+=Dh(t)*n[r+1]}else o[e]+=i[e]*n[r+1]});for(let e=0;e<o.length;e++)if(t.charAt(e)===`h`){let t=Oh(l/s[e],c/s[e])/Th*180;for(;t<0;)t+=360;for(;t>=360;)t-=360;o[e]=t}else o[e]=o[e]/s[e];return u/=r,new Y(o,t).alpha(u>.99999?1:u,!0)},Ah=(e,t)=>{let n=e.length,r=[0,0,0,0];for(let i=0;i<e.length;i++){let a=e[i],o=t[i]/n,s=a._rgb;r[0]+=Ch(s[0],2)*o,r[1]+=Ch(s[1],2)*o,r[2]+=Ch(s[2],2)*o,r[3]+=s[3]*o}return r[0]=wh(r[0]),r[1]=wh(r[1]),r[2]=wh(r[2]),r[3]>.9999999&&(r[3]=1),new Y(Mp(r))},{pow:jh}=Math;function Mh(e){let t=`rgb`,n=X(`#ccc`),r=0,i=[0,1],a=[],o=[0,0],s=!1,c=[],l=!1,u=0,d=1,f=!1,p={},m=!0,h=1,g=function(e){if(e||=[`#fff`,`#000`],e&&K(e)===`string`&&X.brewer&&X.brewer[e.toLowerCase()]&&(e=X.brewer[e.toLowerCase()]),K(e)===`array`){e.length===1&&(e=[e[0],e[0]]),e=e.slice(0);for(let t=0;t<e.length;t++)e[t]=X(e[t]);a.length=0;for(let t=0;t<e.length;t++)a.push(t/(e.length-1))}return ee(),c=e},_=function(e){if(s!=null){let t=s.length-1,n=0;for(;n<t&&e>=s[n];)n++;return n-1}return 0},v=e=>e,y=e=>e,b=function(e,r){let i,l;if(r??=!1,isNaN(e)||e===null)return n;l=r?e:s&&s.length>2?_(e)/(s.length-2):d===u?1:(e-u)/(d-u),l=y(l),r||(l=v(l)),h!==1&&(l=jh(l,h)),l=o[0]+l*(1-o[0]-o[1]),l=jp(l,0,1);let f=Math.floor(l*1e4);if(m&&p[f])i=p[f];else{if(K(c)===`array`)for(let e=0;e<a.length;e++){let n=a[e];if(l<=n){i=c[e];break}if(l>=n&&e===a.length-1){i=c[e];break}if(l>n&&l<a[e+1]){l=(l-n)/(a[e+1]-n),i=X.interpolate(c[e],c[e+1],l,t);break}}else K(c)===`function`&&(i=c(l));m&&(p[f]=i)}return i};var ee=()=>p={};g(e);let x=function(e){let t=X(b(e));return l&&t[l]?t[l]():t};return x.classes=function(e){if(e!=null){if(K(e)===`array`)s=e,i=[e[0],e[e.length-1]];else{let t=X.analyze(i);s=e===0?[t.min,t.max]:X.limits(t,`e`,e)}return x}return s},x.domain=function(e){if(!arguments.length)return i;u=e[0],d=e[e.length-1],a=[];let t=c.length;if(e.length===t&&u!==d)for(let t of Array.from(e))a.push((t-u)/(d-u));else{for(let e=0;e<t;e++)a.push(e/(t-1));if(e.length>2){let t=e.map((t,n)=>n/(e.length-1)),n=e.map(e=>(e-u)/(d-u));n.every((e,n)=>t[n]===e)||(y=e=>{if(e<=0||e>=1)return e;let r=0;for(;e>=n[r+1];)r++;let i=(e-n[r])/(n[r+1]-n[r]);return t[r]+i*(t[r+1]-t[r])})}}return i=[u,d],x},x.mode=function(e){return arguments.length?(t=e,ee(),x):t},x.range=function(e,t){return g(e,t),x},x.out=function(e){return l=e,x},x.spread=function(e){return arguments.length?(r=e,x):r},x.correctLightness=function(e){return e??=!0,f=e,ee(),v=f?function(e){let t=b(0,!0).lab()[0],n=b(1,!0).lab()[0],r=t>n,i=b(e,!0).lab()[0],a=t+(n-t)*e,o=i-a,s=0,c=1,l=20;for(;Math.abs(o)>.01&&l-- >0;)(function(){return r&&(o*=-1),o<0?(s=e,e+=(c-e)*.5):(c=e,e+=(s-e)*.5),i=b(e,!0).lab()[0],o=i-a})();return e}:e=>e,x},x.padding=function(e){return e==null?o:(K(e)===`number`&&(e=[e,e]),o=e,x)},x.colors=function(t,n){arguments.length<2&&(n=`hex`);let r=[];if(arguments.length===0)r=c.slice(0);else if(t===1)r=[x(.5)];else if(t>1){let e=i[0],n=i[1]-e;r=Nh(0,t,!1).map(r=>x(e+r/(t-1)*n))}else{e=[];let t=[];if(s&&s.length>2)for(let e=1,n=s.length,r=1<=n;r?e<n:e>n;r?e++:e--)t.push((s[e-1]+s[e])*.5);else t=i;r=t.map(e=>x(e))}return X[n]&&(r=r.map(e=>e[n]())),r},x.cache=function(e){return e==null?m:(m=e,x)},x.gamma=function(e){return e==null?h:(h=e,x)},x.nodata=function(e){return e==null?n:(n=X(e),x)},x}function Nh(e,t,n){let r=[],i=e<t,a=n?i?t+1:t-1:t;for(let t=e;i?t<a:t>a;i?t++:t--)r.push(t);return r}var Ph=function(e){let t=[1,1];for(let n=1;n<e;n++){let e=[1];for(let n=1;n<=t.length;n++)e[n]=(t[n]||0)+t[n-1];t=e}return t},Fh=function(e){let t,n,r,i;if(e=e.map(e=>new Y(e)),e.length===2)[n,r]=e.map(e=>e.lab()),t=function(e){return new Y([0,1,2].map(t=>n[t]+e*(r[t]-n[t])),`lab`)};else if(e.length===3)[n,r,i]=e.map(e=>e.lab()),t=function(e){return new Y([0,1,2].map(t=>(1-e)*(1-e)*n[t]+2*(1-e)*e*r[t]+e*e*i[t]),`lab`)};else if(e.length===4){let a;[n,r,i,a]=e.map(e=>e.lab()),t=function(e){return new Y([0,1,2].map(t=>(1-e)*(1-e)*(1-e)*n[t]+3*(1-e)*(1-e)*e*r[t]+3*(1-e)*e*e*i[t]+e*e*e*a[t]),`lab`)}}else if(e.length>=5){let n,r,i;n=e.map(e=>e.lab()),i=e.length-1,r=Ph(i),t=function(e){let t=1-e;return new Y([0,1,2].map(a=>n.reduce((n,o,s)=>n+r[s]*t**(i-s)*e**s*o[a],0)),`lab`)}}else throw RangeError(`No point in running bezier with only one color.`);return t},Ih=e=>{let t=Fh(e);return t.scale=()=>Mh(t),t},Lh=(e,t,n)=>{if(!Lh[n])throw Error(`unknown blend mode `+n);return Lh[n](e,t)},Rh=e=>(t,n)=>{let r=X(n).rgb(),i=X(t).rgb();return X.rgb(e(r,i))},zh=e=>(t,n)=>{let r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r};Lh.normal=Rh(zh(e=>e)),Lh.multiply=Rh(zh((e,t)=>e*t/255)),Lh.screen=Rh(zh((e,t)=>255*(1-(1-e/255)*(1-t/255)))),Lh.overlay=Rh(zh((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)))),Lh.darken=Rh(zh((e,t)=>e>t?t:e)),Lh.lighten=Rh(zh((e,t)=>e>t?e:t)),Lh.dodge=Rh(zh((e,t)=>e===255?255:(e=t/255*255/(1-e/255),e>255?255:e))),Lh.burn=Rh(zh((e,t)=>255*(1-(1-t/255)/(e/255))));var Bh=Lh,{pow:Vh,sin:Hh,cos:Uh}=Math;function Wh(e=300,t=-1.5,n=1,r=1,i=[0,1]){let a=0,o;K(i)===`array`?o=i[1]-i[0]:(o=0,i=[i,i]);let s=function(s){let c=Rp*((e+120)/360+t*s),l=Vh(i[0]+o*s,r),u=(a===0?n:n[0]+s*a)*l*(1-l)/2,d=Uh(c),f=Hh(c),p=l+u*(-.14861*d+1.78277*f),m=l+u*(-.29227*d-.90649*f),h=l+1.97294*d*u;return X(Mp([p*255,m*255,h*255,1]))};return s.start=function(t){return t==null?e:(e=t,s)},s.rotations=function(e){return e==null?t:(t=e,s)},s.gamma=function(e){return e==null?r:(r=e,s)},s.hue=function(e){return e==null?n:(n=e,K(n)===`array`?(a=n[1]-n[0],a===0&&(n=n[1])):a=0,s)},s.lightness=function(e){return e==null?i:(K(e)===`array`?(i=e,o=e[1]-e[0]):(i=[e,e],o=0),s)},s.scale=()=>X.scale(s),s.hue(n),s}var Gh=`0123456789abcdef`,{floor:Kh,random:qh}=Math,Jh=()=>{let e=`#`;for(let t=0;t<6;t++)e+=Gh.charAt(Kh(qh()*16));return new Y(e,`hex`)},{log:Yh,pow:Xh,floor:Zh,abs:Qh}=Math;function $h(e,t=null){let n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return K(e)===`object`&&(e=Object.values(e)),e.forEach(e=>{t&&K(e)===`object`&&(e=e[t]),e!=null&&!isNaN(e)&&(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(e,t)=>eg(n,e,t),n}function eg(e,t=`equal`,n=7){K(e)==`array`&&(e=$h(e));let{min:r,max:i}=e,a=e.values.sort((e,t)=>e-t);if(n===1)return[r,i];let o=[];if(t.substr(0,1)===`c`&&(o.push(r),o.push(i)),t.substr(0,1)===`e`){o.push(r);for(let e=1;e<n;e++)o.push(r+e/n*(i-r));o.push(i)}else if(t.substr(0,1)===`l`){if(r<=0)throw Error(`Logarithmic scales are only possible for values > 0`);let e=Math.LOG10E*Yh(r),t=Math.LOG10E*Yh(i);o.push(r);for(let r=1;r<n;r++)o.push(Xh(10,e+r/n*(t-e)));o.push(i)}else if(t.substr(0,1)===`q`){o.push(r);for(let e=1;e<n;e++){let t=(a.length-1)*e/n,r=Zh(t);if(r===t)o.push(a[r]);else{let e=t-r;o.push(a[r]*(1-e)+a[r+1]*e)}}o.push(i)}else if(t.substr(0,1)===`k`){let e,t=a.length,s=Array(t),c=Array(n),l=!0,u=0,d=null;d=[],d.push(r);for(let e=1;e<n;e++)d.push(r+e/n*(i-r));for(d.push(i);l;){for(let e=0;e<n;e++)c[e]=0;for(let e=0;e<t;e++){let t=a[e],r=Number.MAX_VALUE,i;for(let a=0;a<n;a++){let n=Qh(d[a]-t);n<r&&(r=n,i=a),c[i]++,s[e]=i}}let r=Array(n);for(let e=0;e<n;e++)r[e]=null;for(let n=0;n<t;n++)e=s[n],r[e]===null?r[e]=a[n]:r[e]+=a[n];for(let e=0;e<n;e++)r[e]*=1/c[e];l=!1;for(let e=0;e<n;e++)if(r[e]!==d[e]){l=!0;break}d=r,u++,u>200&&(l=!1)}let f={};for(let e=0;e<n;e++)f[e]=[];for(let n=0;n<t;n++)e=s[n],f[e].push(a[n]);let p=[];for(let e=0;e<n;e++)p.push(f[e][0]),p.push(f[e][f[e].length-1]);p=p.sort((e,t)=>e-t),o.push(p[0]);for(let e=1;e<p.length;e+=2){let t=p[e];!isNaN(t)&&o.indexOf(t)===-1&&o.push(t)}}return o}var tg=(e,t)=>{e=new Y(e),t=new Y(t);let n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},{sqrt:ng,pow:$,min:rg,max:ig,atan2:ag,abs:og,cos:sg,sin:cg,exp:lg,PI:ug}=Math;function dg(e,t,n=1,r=1,i=1){var a=function(e){return 360*e/(2*ug)},o=function(e){return 2*ug*e/360};e=new Y(e),t=new Y(t);let[s,c,l]=Array.from(e.lab()),[u,d,f]=Array.from(t.lab()),p=(s+u)/2,m=(ng($(c,2)+$(l,2))+ng($(d,2)+$(f,2)))/2,h=.5*(1-ng($(m,7)/($(m,7)+$(25,7)))),g=c*(1+h),_=d*(1+h),v=ng($(g,2)+$(l,2)),y=ng($(_,2)+$(f,2)),b=(v+y)/2,ee=a(ag(l,g)),x=a(ag(f,_)),S=ee>=0?ee:ee+360,C=x>=0?x:x+360,te=og(S-C)>180?(S+C+360)/2:(S+C)/2,ne=1-.17*sg(o(te-30))+.24*sg(o(2*te))+.32*sg(o(3*te+6))-.2*sg(o(4*te-63)),re=C-S;re=og(re)<=180?re:C<=S?re+360:re-360,re=2*ng(v*y)*cg(o(re)/2);let w=u-s,ie=y-v,ae=1+.015*$(p-50,2)/ng(20+$(p-50,2)),oe=1+.045*b,se=1+.015*b*ne,ce=30*lg(-$((te-275)/25,2)),le=-(2*ng($(b,7)/($(b,7)+$(25,7))))*cg(2*o(ce));return ig(0,rg(100,ng($(w/(n*ae),2)+$(ie/(r*oe),2)+$(re/(i*se),2)+le*(ie/(r*oe))*(re/(i*se)))))}function fg(e,t,n=`lab`){e=new Y(e),t=new Y(t);let r=e.get(n),i=t.get(n),a=0;for(let e in r){let t=(r[e]||0)-(i[e]||0);a+=t*t}return Math.sqrt(a)}var pg=(...e)=>{try{return new Y(...e),!0}catch{return!1}},mg={cool(){return Mh([X.hsl(180,1,.9),X.hsl(250,.7,.4)])},hot(){return Mh([`#000`,`#f00`,`#ff0`,`#fff`],[0,.25,.75,1]).mode(`rgb`)}},hg={OrRd:[`#fff7ec`,`#fee8c8`,`#fdd49e`,`#fdbb84`,`#fc8d59`,`#ef6548`,`#d7301f`,`#b30000`,`#7f0000`],PuBu:[`#fff7fb`,`#ece7f2`,`#d0d1e6`,`#a6bddb`,`#74a9cf`,`#3690c0`,`#0570b0`,`#045a8d`,`#023858`],BuPu:[`#f7fcfd`,`#e0ecf4`,`#bfd3e6`,`#9ebcda`,`#8c96c6`,`#8c6bb1`,`#88419d`,`#810f7c`,`#4d004b`],Oranges:[`#fff5eb`,`#fee6ce`,`#fdd0a2`,`#fdae6b`,`#fd8d3c`,`#f16913`,`#d94801`,`#a63603`,`#7f2704`],BuGn:[`#f7fcfd`,`#e5f5f9`,`#ccece6`,`#99d8c9`,`#66c2a4`,`#41ae76`,`#238b45`,`#006d2c`,`#00441b`],YlOrBr:[`#ffffe5`,`#fff7bc`,`#fee391`,`#fec44f`,`#fe9929`,`#ec7014`,`#cc4c02`,`#993404`,`#662506`],YlGn:[`#ffffe5`,`#f7fcb9`,`#d9f0a3`,`#addd8e`,`#78c679`,`#41ab5d`,`#238443`,`#006837`,`#004529`],Reds:[`#fff5f0`,`#fee0d2`,`#fcbba1`,`#fc9272`,`#fb6a4a`,`#ef3b2c`,`#cb181d`,`#a50f15`,`#67000d`],RdPu:[`#fff7f3`,`#fde0dd`,`#fcc5c0`,`#fa9fb5`,`#f768a1`,`#dd3497`,`#ae017e`,`#7a0177`,`#49006a`],Greens:[`#f7fcf5`,`#e5f5e0`,`#c7e9c0`,`#a1d99b`,`#74c476`,`#41ab5d`,`#238b45`,`#006d2c`,`#00441b`],YlGnBu:[`#ffffd9`,`#edf8b1`,`#c7e9b4`,`#7fcdbb`,`#41b6c4`,`#1d91c0`,`#225ea8`,`#253494`,`#081d58`],Purples:[`#fcfbfd`,`#efedf5`,`#dadaeb`,`#bcbddc`,`#9e9ac8`,`#807dba`,`#6a51a3`,`#54278f`,`#3f007d`],GnBu:[`#f7fcf0`,`#e0f3db`,`#ccebc5`,`#a8ddb5`,`#7bccc4`,`#4eb3d3`,`#2b8cbe`,`#0868ac`,`#084081`],Greys:[`#ffffff`,`#f0f0f0`,`#d9d9d9`,`#bdbdbd`,`#969696`,`#737373`,`#525252`,`#252525`,`#000000`],YlOrRd:[`#ffffcc`,`#ffeda0`,`#fed976`,`#feb24c`,`#fd8d3c`,`#fc4e2a`,`#e31a1c`,`#bd0026`,`#800026`],PuRd:[`#f7f4f9`,`#e7e1ef`,`#d4b9da`,`#c994c7`,`#df65b0`,`#e7298a`,`#ce1256`,`#980043`,`#67001f`],Blues:[`#f7fbff`,`#deebf7`,`#c6dbef`,`#9ecae1`,`#6baed6`,`#4292c6`,`#2171b5`,`#08519c`,`#08306b`],PuBuGn:[`#fff7fb`,`#ece2f0`,`#d0d1e6`,`#a6bddb`,`#67a9cf`,`#3690c0`,`#02818a`,`#016c59`,`#014636`],Viridis:[`#440154`,`#482777`,`#3f4a8a`,`#31678e`,`#26838f`,`#1f9d8a`,`#6cce5a`,`#b6de2b`,`#fee825`],Spectral:[`#9e0142`,`#d53e4f`,`#f46d43`,`#fdae61`,`#fee08b`,`#ffffbf`,`#e6f598`,`#abdda4`,`#66c2a5`,`#3288bd`,`#5e4fa2`],RdYlGn:[`#a50026`,`#d73027`,`#f46d43`,`#fdae61`,`#fee08b`,`#ffffbf`,`#d9ef8b`,`#a6d96a`,`#66bd63`,`#1a9850`,`#006837`],RdBu:[`#67001f`,`#b2182b`,`#d6604d`,`#f4a582`,`#fddbc7`,`#f7f7f7`,`#d1e5f0`,`#92c5de`,`#4393c3`,`#2166ac`,`#053061`],PiYG:[`#8e0152`,`#c51b7d`,`#de77ae`,`#f1b6da`,`#fde0ef`,`#f7f7f7`,`#e6f5d0`,`#b8e186`,`#7fbc41`,`#4d9221`,`#276419`],PRGn:[`#40004b`,`#762a83`,`#9970ab`,`#c2a5cf`,`#e7d4e8`,`#f7f7f7`,`#d9f0d3`,`#a6dba0`,`#5aae61`,`#1b7837`,`#00441b`],RdYlBu:[`#a50026`,`#d73027`,`#f46d43`,`#fdae61`,`#fee090`,`#ffffbf`,`#e0f3f8`,`#abd9e9`,`#74add1`,`#4575b4`,`#313695`],BrBG:[`#543005`,`#8c510a`,`#bf812d`,`#dfc27d`,`#f6e8c3`,`#f5f5f5`,`#c7eae5`,`#80cdc1`,`#35978f`,`#01665e`,`#003c30`],RdGy:[`#67001f`,`#b2182b`,`#d6604d`,`#f4a582`,`#fddbc7`,`#ffffff`,`#e0e0e0`,`#bababa`,`#878787`,`#4d4d4d`,`#1a1a1a`],PuOr:[`#7f3b08`,`#b35806`,`#e08214`,`#fdb863`,`#fee0b6`,`#f7f7f7`,`#d8daeb`,`#b2abd2`,`#8073ac`,`#542788`,`#2d004b`],Set2:[`#66c2a5`,`#fc8d62`,`#8da0cb`,`#e78ac3`,`#a6d854`,`#ffd92f`,`#e5c494`,`#b3b3b3`],Accent:[`#7fc97f`,`#beaed4`,`#fdc086`,`#ffff99`,`#386cb0`,`#f0027f`,`#bf5b17`,`#666666`],Set1:[`#e41a1c`,`#377eb8`,`#4daf4a`,`#984ea3`,`#ff7f00`,`#ffff33`,`#a65628`,`#f781bf`,`#999999`],Set3:[`#8dd3c7`,`#ffffb3`,`#bebada`,`#fb8072`,`#80b1d3`,`#fdb462`,`#b3de69`,`#fccde5`,`#d9d9d9`,`#bc80bd`,`#ccebc5`,`#ffed6f`],Dark2:[`#1b9e77`,`#d95f02`,`#7570b3`,`#e7298a`,`#66a61e`,`#e6ab02`,`#a6761d`,`#666666`],Paired:[`#a6cee3`,`#1f78b4`,`#b2df8a`,`#33a02c`,`#fb9a99`,`#e31a1c`,`#fdbf6f`,`#ff7f00`,`#cab2d6`,`#6a3d9a`,`#ffff99`,`#b15928`],Pastel2:[`#b3e2cd`,`#fdcdac`,`#cbd5e8`,`#f4cae4`,`#e6f5c9`,`#fff2ae`,`#f1e2cc`,`#cccccc`],Pastel1:[`#fbb4ae`,`#b3cde3`,`#ccebc5`,`#decbe4`,`#fed9a6`,`#ffffcc`,`#e5d8bd`,`#fddaec`,`#f2f2f2`]};for(let e of Object.keys(hg))hg[e.toLowerCase()]=hg[e];var gg=hg;Object.assign(X,{average:kh,bezier:Ih,blend:Bh,cubehelix:Wh,mix:vh,interpolate:vh,random:Jh,scale:Mh,analyze:$h,contrast:tg,deltaE:dg,distance:fg,limits:eg,valid:pg,scales:mg,input:J,colors:Jm,brewer:gg});var _g=X;const vg=Fe(new Date().getTime());var{config:yg,color:bg,mainDataset:xg,startDateField:Sg,endDateField:Cg,dateField:wg,labelField:Tg,openingHoursField:Eg,layout:Dg,startDateType:Og,endDateType:kg}=xe(),Ag=Dp(E,xg?.id),{dayjs:jg}=Pe();const Mg=Ap(async()=>{if(bg?.type!==`multicolor`)return;let e={};if(bg.colors.type===`palette`){let t=await le(`${xg.href}/values/${bg.field}?size=100`),n=Math.max(t.length,12),r=_g.scale(bg.colors.name).mode(`lch`).colors(n);t.forEach((t,i)=>{e[t]=r[(i+bg.colors.offset)%n]})}else bg.colors.categories.forEach(t=>{e[t.value]=`${t.color}`});return e},null,{onError:function(e){Ue.value=!0,He.value=e.message}}),Ng=Ap(async()=>{if(!E.start&&!E.end)return[];let e={...Ag,_c_date_match:E.start+`,`+E.end,size:1e3,select:`_id,`+Tg};Dg===`simple`?e.finalizedAt=xg.finalizedAt:e.t=vg.value,bg?.type===`multicolor`&&(e.select+=`,`+yg.color.field),Sg&&Cg?e.select+=`,`+Sg+`,`+Cg:e.select+=`,`+wg,Eg&&(e.select+=`,`+Eg);let t=await le(`${xg.href}/lines`,{params:e});return[].concat(...t.results.map(e=>{let t={editable:Dg===`admin`,id:e._id,originalId:e._id,title:e[Tg],colorFieldValue:bg?.type===`multicolor`&&e[yg.color.field]};if(Eg&&e[Eg]){t.openingHours=e[Eg];let n={};try{n=Object.assign({},...d(e[Eg]).map(e=>({[{Mo:`lu`,Tu:`ma`,We:`me`,Th:`je`,Fr:`ve`,Sa:`sa`,Su:`di`}[e.day]]:e.hours.map(e=>({from:e.from.split(`:`),to:e.to.split(`:`)}))})))}catch(e){console.log(t.openingHours,e)}let r=jg(E.start.localeCompare(e[Sg])>0?E.start:e[Sg]),i=jg(E.end.localeCompare(e[Cg])<0?E.end:e[Cg]),a=[];for(;!r.isAfter(i);){let e=n[r.format(`dd`)];e?.length?E.view===`dayGridMonth`?(a.push({...t,id:r.toISOString()+t.id,start:r.hour(e[0].from[0]).minute(e[0].from[1]).toISOString(),end:r.hour(e[e.length-1].to[0]).minute(e[e.length-1].to[1]).toISOString(),allDay:!1}),r=r.add(1,`day`).hour(0).minute(0)):(e.forEach(e=>{a.push({...t,id:r.hour(e.from[0]).minute(e.from[1]).toISOString()+t.id,start:r.hour(e.from[0]).minute(e.from[1]).toISOString(),end:r.hour(e.to[0]).minute(e.to[1]).toISOString(),allDay:!1})}),r=r.add(1,`day`).hour(0).minute(0)):r=r.add(1,`day`)}return a}else return[{...t,start:e[Sg&&Cg?Sg:wg],end:Sg&&Cg?kg===`date-time`?e[Cg]:jg(e[Cg]).add(1,`day`).format(`YYYY-MM-DD`):void 0,allDay:!(Sg&&Cg)||Og===`date`&&kg===`date`||new Date(e[Cg]).getTime()-new Date(e[Sg]).getTime()>2880*60*1e3}]}))},null,{onError:function(e){Ue.value=!0,He.value=e.message}});var Pg=Te(Me(),1);function Fg(e,t){let n=e[t.key];return n==null||n===``?``:t[`x-labels`]?.[``+e[t.key]]?t[`x-labels`][``+e[t.key]]:t.type===`number`||t.type===`integer`?n.toLocaleString(`fr`):typeof n==`boolean`?n?`Oui`:`Non`:typeof n==`string`&&(t[`x-refersTo`]===`http://schema.org/Date`||t[`x-refersTo`]===`https://schema.org/startDate`||t[`x-refersTo`]===`https://schema.org/endDate`||t[`x-refersTo`]===`http://schema.org/dateCreated`)?t.format===`date-time`?(0,Pg.default)(n).format(`DD/MM/YYYY, HH[h]mm`):(0,Pg.default)(n).format(`DD/MM/YYYY`):``+n}const Ig=he({id:String,interactive:Boolean,text:String,...re(n({closeOnBack:!1,location:`end`,locationStrategy:`connected`,eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:`auto`,scrim:!1,scrollStrategy:`reposition`,transition:null}),[`absolute`,`retainFocus`,`captureFocus`,`disableInitialFocus`])},`VTooltip`),Lg=pe()({name:`VTooltip`,props:Ig(),emits:{"update:modelValue":e=>!0},setup(n,i){let{slots:a}=i,o=ne(n,`modelValue`),{scopeId:s}=e(),c=ie(),l=je(()=>n.id||`v-tooltip-${c}`),u=Fe(),d=Ie(()=>n.location.split(` `).length>1?n.location:n.location+` center`),f=Ie(()=>n.origin===`auto`||n.origin===`overlap`||n.origin.split(` `).length>1||n.location.split(` `).length>1?n.origin:n.origin+` center`),p=je(()=>n.transition==null?o.value?`scale-transition`:`fade-transition`:n.transition),m=Ie(()=>oe({"aria-describedby":l.value},n.activatorProps));return Ve(()=>{let e=t.filterProps(n);return T(t,oe({ref:u,class:[`v-tooltip`,{"v-tooltip--interactive":n.interactive},n.class],style:n.style,id:l.value},e,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,transition:p.value,absolute:!0,location:d.value,origin:f.value,role:`tooltip`,activatorProps:m.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){var e=[...arguments];return a.default?.(...e)??n.text}})}),r({},u)}});var Rg={__name:`Actions`,props:{item:{type:Object,required:!0}},setup(e){let{linkField:t,attachmentField:n,mainDataset:r}=xe();function o(e){let t=[`Octets`,`Ko`,`Mo`,`Go`];if(e===0)return`0 Octet`;let n=parseInt(Math.floor(Math.log(e)/Math.log(1e3)));return n===0?`${e} ${t[n]}`:`${(e/1e3**n).toFixed(2)} ${t[n]}`}return(s,c)=>(w(),D(i,null,{default:k(()=>[T(a),O(t)&&e.item[O(t)]?(w(),D(m,{key:0,href:(e.item[O(t)].includes(`http`)?``:`http://`)+e.item[O(t)],text:``,small:``,target:`_blank`,class:`px-6`,color:`primary`},{default:k(()=>[...c[0]||=[Le(` Page associée `,-1)]]),_:1},8,[`href`])):Re(``,!0),O(n)?(w(),D(Lg,{key:1,top:``},{activator:k(({props:t})=>[T(m,oe({href:e.item[O(n)].includes(`http`)?e.item[O(n)]:O(r).href+`/attachments/`+e.item[O(n)],color:`accent`,icon:``},t),{default:k(()=>[T(l,null,{default:k(()=>[...c[1]||=[Le(`mdi-download`,-1)]]),_:1})]),_:1},16,[`href`])]),default:k(()=>[Be(`span`,null,`Télécharger le fichier de `+de(o(e.item[`_file.content_length`])),1)]),_:1})):Re(``,!0),T(a)]),_:1}))}},zg=[`innerHTML`],Bg=[`innerHTML`],Vg={style:{"white-space":`normal`}},Hg=[`innerHTML`],Ug={__name:`EventView`,props:{item:{type:Object,required:!0}},setup(e){let{config:t,labelField:n,descriptionField:r,imageField:i,attachmentField:a,linkField:s,fields:c}=xe();return(l,u)=>(w(),ue(Ae,null,[O(i)?(w(),ue(Ae,{key:0},[e.item[O(i)]?(w(),D(ge,{key:0,src:e.item._thumbnail||e.item[O(i)],"aspect-ratio":O(t).aspectRatio||3,cover:O(t).imageDisplay!==`contain`,style:ze(`width:${O(t).imageWidth||100}%${O(t).imagePosition===`top`?``:`;float:`+O(t).imagePosition}`)},null,8,[`src`,`aspect-ratio`,`cover`,`style`])):Re(``,!0)],64)):Re(``,!0),T(o,{class:`pt-0`},{default:k(()=>[O(n)&&e.item[O(n)]?(w(),ue(`h3`,{key:0,class:`my-2`,innerHTML:e.item[O(n)]},null,8,zg)):Re(``,!0),O(r)&&e.item[O(r)]?(w(),ue(`div`,{key:1,innerHTML:e.item[O(r)]},null,8,Bg)):Re(``,!0),T(p,{dense:``,class:`transparent`,lines:`two`},{default:k(()=>[(w(!0),ue(Ae,null,me(O(t).additionalFields.filter(t=>!!e.item[t]),t=>(w(),D(b,{key:t,style:{"min-height":`24px`,"max-width":`100%`}},{default:k(()=>[T(f,{class:`font-weight-bold`},{default:k(()=>[Le(de(O(c)[t].title?O(c)[t].title:O(c)[t][`x-originalName`]||t),1)]),_:2},1024),Be(`div`,Vg,[O(c)[t].separator?e.item[t]?(w(!0),ue(Ae,{key:1},me(e.item[t].split(O(c)[t].separator).sort(),e=>(w(),D(g,{key:e,small:``,style:{flex:`none`},class:`my-1 mr-1`,variant:`flat`},{default:k(()=>[Le(de(O(Fg)({[t]:e},O(c)[t])+``),1)]),_:2},1024))),128)):Re(``,!0):(w(),ue(Ae,{key:0},[O(c)[t][`x-display`]===`markdown`?(w(),ue(`div`,{key:0,innerHTML:e.item[t]},null,8,Hg)):(w(),ue(Ae,{key:1},[Le(de(O(Fg)(e.item,O(c)[t])+``),1)],64))],64))])]),_:2},1024))),128))]),_:1})]),_:1}),O(a)||O(s)?(w(),D(Rg,{key:1,item:e.item},null,8,[`item`])):Re(``,!0)],64))}};function Wg(e,t){let n=Gg(typeof e==`string`?ae(e):e,t);return{mounted:n,updated:n,unmounted(e){Ne(null,e)}}}function Gg(e,t){return function(n,r,i){let a=typeof t==`function`?t(r):t,o=r.value?.text??r.value??a?.text,s=ce(r.value)?r.value:{},c=()=>o??n.textContent,l=(i.ctx===r.instance.$?Kg(i,r.instance.$)?.provides:i.ctx?.provides)??r.instance.$.provides,u=S(e,oe(a,s),c);u.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:l}),Ne(u,n)}}function Kg(e,t){let n=new Set,r=t=>{for(let i of t){if(!i)continue;if(i===e||i.el&&e.el&&i.el===e.el)return!0;n.add(i);let t;if(i.suspense?t=r([i.ssContent]):Array.isArray(i.children)?t=r(i.children):i.component?.vnode&&(t=r([i.component?.subTree])),t)return t;n.delete(i)}return!1};if(!r([t.subTree]))return Oe(`Could not find original vnode, component will not inherit provides`),t;let i=Array.from(n).reverse();for(let e of i)if(e.component)return e.component;return t}const qg=Wg(Lg,e=>({activator:(ce(e.value)?!e.value.text:[``,!1,null].includes(e.value))?null:`parent`,location:e.arg?.replace(`-`,` `),text:typeof e.value==`boolean`?void 0:e.value}));var Jg={__name:`DeleteEvent`,props:{event:{type:[Object,null],required:!0}},emits:[`deleted`],setup(e,{emit:t}){let{mainDataset:n}=xe(),r=Fe(!1),c=e,l=t;async function u(){try{await le(`${n.href}/lines/${c.event.originalId}`,{method:`DELETE`}),r.value=!1,l(`deleted`),vg.value=new Date().getTime()}catch(e){He.value=e.status+` - `+e._data,Ue.value=!0}}return(t,n)=>(w(),D(_,{modelValue:r.value,"onUpdate:modelValue":n[2]||=e=>r.value=e,"close-on-content-click":!1,"close-on-click":!1,"min-width":`300px`,"max-width":`500px`},{activator:k(({props:e})=>[ke(T(m,oe({icon:`mdi-delete`,color:`error`},e),null,16),[[qg,{text:`Supprimer l'événement`,location:`right`,openDelay:`500`}]])]),default:k(()=>[T(s,{outlined:``,"data-iframe-height":``},{default:k(()=>[T(h,{"primary-title":``},{default:k(()=>[...n[3]||=[Le(` Supprimer l'événement ? `,-1)]]),_:1}),T(o,null,{default:k(()=>[T(v,{"model-value":!0,type:`error`},{default:k(()=>[Le(` Voulez vous vraiment supprimer `+de(e.event.openingHours?`l'ensemble des créneaux liés à cet `:`l'`)+`événement ? `,1)]),_:1})]),_:1}),T(i,null,{default:k(()=>[T(a),T(m,{text:``,onClick:n[0]||=e=>r.value=!1},{default:k(()=>[...n[4]||=[Le(` Annuler `,-1)]]),_:1}),T(m,{color:`error`,onClick:n[1]||=e=>u()},{default:k(()=>[...n[5]||=[Le(` Supprimer `,-1)]]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}},Yg={__name:`EventDetails`,props:{event:{type:[Object,null],required:!0}},emits:[`updated`,`close`],setup(e,{emit:t}){let n=te(()=>Ce(()=>import(`./EventEdit-aKzznel2.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]))),{width:r,height:o}=we(),{config:l,mainDataset:d,layout:f,startDateField:p,endDateField:g,startDateType:_,endDateType:v}=xe(),{dayjs:y}=De(),b=t,x=Fe(`read`),S=e;se(()=>S.event,e=>{x.value=`read`});let C=Ap(async()=>S.event?(S.event.id||(x.value=`edit`),S.event.id?(await le(`${d.href}/lines?_id_eq=${S.event.originalId}${x.value===`read`?`&html=true`:``}`)).results.pop():{...S.event}):null,null,{onError:function(e){Ue.value=!0,He.value=e.message}});async function ne(e){let t=new FormData,{__file:n,...r}=e,i=f===`contrib`?{payload:JSON.stringify(r)}:r;for(let[e,n]of Object.entries(i))t.append(e,n);n&&t.append(`attachment`,n);let a={method:`POST`,body:t,headers:{"Content-Disposition":t}},o=`${d.href}/lines`;S.event.originalId&&(o+=`/`+S.event.originalId,a.method=`PUT`);try{await le(o,a),b(`updated`),vg.value=new Date().getTime()}catch(e){He.value=e.status+` - `+e._data,Ue.value=!0}}let re=Ie(()=>{if(p&&g){let e=y(S.event.start),t=y(S.event.end).subtract(_===`date-time`||S.event.openingHours?0:1,`day`);return e.isSame(t,`day`)?e.format(`ddd D MMM YYYY`)+(_===`date-time`||S.event.openingHours?`, `+e.format(`HH:mm`):``)+(v===`date-time`||S.event.openingHours?` - `+t.format(`HH:mm`):``):e.format(`ddd D MMM YYYY`+(_===`date-time`?`, HH:mm`:``))+` - `+t.format(`ddd D MMM YYYY`+(v===`date-time`?`, HH:mm`:``))}else return y(S.event.start).format(`dd, MMM YYYY`)});function ie(){x.value=`read`,S.event.id||b(`updated`)}return(t,d)=>(w(),D(s,{"max-width":x.value===`read`?800:O(r)*O(l).formWidth/10,"min-width":300,"max-height":O(o)*.8},{default:k(()=>[O(C)?(w(),ue(Ae,{key:0},[x.value===`read`?(w(),ue(Ae,{key:0},[O(f)===`admin`?(w(),D(i,{key:0,class:`py-0`},{default:k(()=>[Le(de(re.value)+` `,1),T(a),ke(T(m,{icon:`mdi-pencil`,color:`primary`,onClick:d[0]||=e=>x.value=`edit`},null,512),[[qg,{text:`Modifier l'événement`,location:`right`,openDelay:`500`}]]),T(Jg,{event:e.event,onDeleted:d[1]||=e=>b(`updated`)},null,8,[`event`]),T(m,{icon:`mdi-close`,onClick:d[2]||=e=>b(`close`)})]),_:1})):(w(),D(h,{key:1,class:`text-subtitle-1`},{default:k(()=>[Le(de(re.value),1)]),_:1})),T(Ug,{item:O(C)},null,8,[`item`])],64)):Re(``,!0),x.value===`edit`?(w(),D(Ee,{key:1},{fallback:k(()=>[T(ee,{align:`center`,style:{height:`200px`},class:`ma-0`},{default:k(()=>[T(u,{class:`text-center`},{default:k(()=>[T(c,{size:80,width:7,color:`primary`,indeterminate:``})]),_:1})]),_:1})]),default:k(()=>[T(O(n),{item:O(C),onValidate:ne,onCancel:ie},null,8,[`item`])]),_:1})):Re(``,!0)],64)):(w(),D(ee,{key:1,align:`center`,style:{height:`200px`},class:`ma-0`},{default:k(()=>[T(u,{class:`text-center`},{default:k(()=>[T(c,{size:80,width:7,color:`primary`,indeterminate:``})]),_:1})]),_:1}))]),_:1},8,[`max-width`,`max-height`]))}},Xg={__name:`Calendar`,setup(e){ve(e=>({b63e225a:O(t).current.value.colors.primary,v2d736205:O(t).current.value.colors.secondary}));let t=fe(),{config:n,color:r,mainDataset:i,layout:a,startDateField:o,endDateField:s,dateField:c,endDateType:l}=xe(),{dayjs:u}=De(),d=Fe(null),f=Fe(null),p=Fe(null);E.view=E.view||n.initialView||`dayGridMonth`;function m(e){return r?.type===`monochrome`?r.colors.type===`custom`?r.colors.hexValue:t.current.value.colors[r.colors.strValue]:Mg.value?.[e]}let h=Ie(()=>(Ng.value||[]).map(e=>({...e,color:m(e.colorFieldValue)})));async function g(e){let t={};o&&s?(t[o]=e.start.toISOString(),t[s]=e.end.toISOString()):c&&(t[c]=e.start.toISOString());try{await le(`${i.href}/lines/${e.originalId}`,{method:`PATCH`,body:t}),f.value=!1,vg.value=new Date().getTime()}catch(e){He.value=e.status+` - `+e._data,Ue.value=!0}}let v=E.start&&E.end&&new Date((new Date(E.start).getTime()+new Date(E.end).getTime())/2),b=ye({plugins:[Fd,up,kf,wp],initialView:E.view||`dayGridMonth`,initialDate:n.openOnCurrentDay?new Date:v&&new Date(v)||i.timePeriod?.startDate&&new Date(i.timePeriod.startDate),locale:Tp,headerToolbar:{start:`prev,next today`,center:`title`,end:`dayGridMonth,timeGridWeek,timeGridDay,listNextYear`},views:{listNextYear:{type:`list`,visibleRange:{start:y(u,`day`),end:y(u,`one-year-later`)},buttonText:`Planning`}},events:h,selectable:a!==`simple`,selectConstraint:{start:y(u,n.minDate),end:y(u,n.maxDate)?u(y(u,n.maxDate)).add(1,`day`).format(`YYYY-MM-DD`):void 0},datesSet(e){E.start=e.startStr,E.end=e.endStr,E.view=e.view.type},eventClick(e){e.jsEvent.preventDefault();let t=e.event.toJSON();d.value={...t,...t.extendedProps},delete d.value.extendedProps,setTimeout(()=>{f.value=!0},0),p.value=e.el},eventDrop(e){g(e.event)},eventResize(e){g(e.event)},select(e){if(f.value)return;let t={};o&&s?(t[o]=e.start.toISOString(),t[s]=e.end.toISOString(),l!==`date-time`&&(t[s]=u(t[s]).subtract(1,`day`).toISOString())):c&&(t[c]=e.start.toISOString()),d.value=t,p.value=e.jsEvent.target.parentElement.parentElement,f.value=!0}});return(e,t)=>(w(),ue(Ae,null,[T(O($u),{options:b,"data-iframe-height":``},null,8,[`options`]),T(_,{modelValue:f.value,"onUpdate:modelValue":t[2]||=e=>f.value=e,persistent:O(a)===`admin`,"close-on-content-click":!1,activator:p.value,location:O(E).view===`dayGridMonth`?`bottom`:`start center`},{default:k(()=>[T(Yg,{event:d.value,onUpdated:t[0]||=e=>f.value=!1,onClose:t[1]||=e=>f.value=!1},null,8,[`event`])]),_:1},8,[`modelValue`,`persistent`,`activator`,`location`])],64))}};export{Xg as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventEdit-DdcCB9zZ.js","assets/index-ul76iyV8.js","assets/index-BhUGjgE1.css","assets/utils-k6eIZkpT.js","assets/forwardRefs-CEpIeMQj.js","assets/forwardRefs-CjLOsyNR.css","assets/utils-Dy1bYQWL.css","assets/EventEdit-BD2AtSDG.css"])))=>i.map(i=>d[i]);
2
+ import{i as e,n as t,r as n,t as r}from"./forwardRefs-CEpIeMQj.js";import{A as i,C as a,D as o,E as s,L as c,R as l,T as u,Y as d,f,i as p,j as m,k as h,m as g,n as _,r as v,t as y,u as b,w as ee}from"./utils-k6eIZkpT.js";import{$n as x,An as S,Dn as C,En as te,F as ne,Gt as re,Hn as w,Jn as ie,Kn as ae,Nn as oe,Qn as se,Rt as ce,S as le,Sn as ue,Sr as de,T as fe,Tn as T,W as pe,Wn as me,X as he,_ as E,a as ge,ar as _e,bn as D,cn as ve,cr as ye,dr as be,g as xe,gr as O,hn as Se,i as Ce,k as we,kr as Te,mn as Ee,n as De,nn as Oe,nr as ke,pn as Ae,pr as je,r as Me,sn as Ne,t as Pe,tr as k,ur as Fe,vn as Ie,wn as Le,xn as Re,xr as ze,yn as Be,z as Ve}from"./index-ul76iyV8.js";import{n as He,t as Ue}from"./messages-t5dTt0Oj.js";var We,A,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe={},$e=[],et=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function tt(e,t){for(var n in t)e[n]=t[n];return e}function nt(e){var t=e.parentNode;t&&t.removeChild(e)}function j(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?We.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return rt(e,o,r,i,null)}function rt(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Ge};return i==null&&A.vnode!=null&&A.vnode(a),a}function M(){return{current:null}}function N(e){return e.children}function it(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||ot(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||ot(e,a,t[a],n[a],r)}function at(e,t,n){t[0]===`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||et.test(t)?n:n+`px`}function ot(e,t,n,r,i){var a;n:if(t===`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||at(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||at(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?ct:st,a):e.removeEventListener(t,a?ct:st,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!==`width`&&t!==`height`&&t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t.indexOf(`-`)==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function st(e){qe=!0;try{return this.l[e.type+!1](A.event?A.event(e):e)}finally{qe=!1}}function ct(e){qe=!0;try{return this.l[e.type+!0](A.event?A.event(e):e)}finally{qe=!1}}function lt(e,t){this.props=e,this.context=t}function ut(e,t){if(t==null)return e.__?ut(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?ut(e):null}function dt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return dt(e)}}function ft(e){qe?setTimeout(e):Xe(e)}function pt(e){(!e.__d&&(e.__d=!0)&&Je.push(e)&&!mt.__r++||Ye!==A.debounceRendering)&&((Ye=A.debounceRendering)||ft)(mt)}function mt(){var e,t,n,r,i,a,o,s;for(Je.sort(function(e,t){return e.__v.__b-t.__v.__b});e=Je.shift();)e.__d&&(t=Je.length,r=void 0,i=void 0,o=(a=(n=e).__v).__e,(s=n.__P)&&(r=[],(i=tt({},a)).__v=a.__v+1,bt(s,a,i,n.__n,s.ownerSVGElement!==void 0,a.__h==null?null:[o],r,o??ut(a),a.__h),xt(r,a),a.__e!=o&&dt(a)),Je.length>t&&Je.sort(function(e,t){return e.__v.__b-t.__v.__b}));mt.__r=0}function ht(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_=r&&r.__k||$e,v=_.length;for(n.__k=[],u=0;u<t.length;u++)if((p=n.__k[u]=(p=t[u])==null||typeof p==`boolean`?null:typeof p==`string`||typeof p==`number`||typeof p==`bigint`?rt(null,p,null,null,p):Array.isArray(p)?rt(N,{children:p},null,null,null):p.__b>0?rt(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=_[u])===null||f&&p.key==f.key&&p.type===f.type)_[u]=void 0;else for(d=0;d<v;d++){if((f=_[d])&&p.key==f.key&&p.type===f.type){_[d]=void 0;break}f=null}bt(e,p,f||=Qe,i,a,o,s,c,l),m=p.__e,(d=p.ref)&&f.ref!=d&&(g||=[],f.ref&&g.push(f.ref,null,p),g.push(d,p.__c||m,p)),m==null?c&&f.__e==c&&c.parentNode!=e&&(c=ut(f)):(h??=m,typeof p.type==`function`&&p.__k===f.__k?p.__d=c=gt(p,c,e):c=vt(e,p,f,_,m,c),typeof n.type==`function`&&(n.__d=c))}for(n.__e=h,u=v;u--;)_[u]!=null&&(typeof n.type==`function`&&_[u].__e!=null&&_[u].__e==n.__d&&(n.__d=yt(r).nextSibling),wt(_[u],_[u]));if(g)for(u=0;u<g.length;u++)Ct(g[u],g[++u],g[++u])}function gt(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?gt(r,t,n):vt(n,r,r,i,r.__e,t));return t}function _t(e,t){return t||=[],e==null||typeof e==`boolean`||(Array.isArray(e)?e.some(function(e){_t(e,t)}):t.push(e)),t}function vt(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)n:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=1)if(s==i)break n;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function yt(e){var t,n,r;if(e.type==null||typeof e.type==`string`)return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=yt(n)))return r}return null}function bt(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g,_,v,y,b,ee,x,S,C=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(l=A.__b)&&l(t);try{n:if(typeof C==`function`){if(g=t.props,_=(l=C.contextType)&&r[l.__c],v=l?_?_.props.value:l.__:r,n.__c?h=(u=t.__c=n.__c).__=u.__E:(`prototype`in C&&C.prototype.render?t.__c=u=new C(g,v):(t.__c=u=new lt(g,v),u.constructor=C,u.render=Tt),_&&_.sub(u),u.props=g,u.state||={},u.context=v,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s??=u.state,C.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=tt({},u.__s)),tt(u.__s,C.getDerivedStateFromProps(g,u.__s))),f=u.props,p=u.state,u.__v=t,d)C.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,v),!u.__e&&u.shouldComponentUpdate!=null&&!1===u.shouldComponentUpdate(g,u.__s,v)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),y=0;y<u._sb.length;y++)u.__h.push(u._sb[y]);u._sb=[],u.__h.length&&o.push(u);break n}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,v),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,m)})}if(u.context=v,u.props=g,u.__P=e,b=A.__r,ee=0,`prototype`in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,b&&b(t),l=u.render(u.props,u.state,u.context),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[]}else do u.__d=!1,b&&b(t),l=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ee<25);u.state=u.__s,u.getChildContext!=null&&(r=tt(tt({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(f,p)),S=l!=null&&l.type===N&&l.key==null?l.props.children:l,ht(e,Array.isArray(S)?S:[S],t,n,r,i,a,o,s,c),u.base=t.__e,t.__h=null,u.__h.length&&o.push(u),h&&(u.__E=u.__=null),u.__e=!1}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=St(n.__e,t,n,r,i,a,o,c);(l=A.diffed)&&l(t)}catch(e){t.__v=null,(c||a!=null)&&(t.__e=s,t.__h=!!c,a[a.indexOf(s)]=null),A.__e(e,t,n)}}function xt(e,t){A.__c&&A.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){A.__e(e,t.__v)}})}function St(e,t,n,r,i,a,o,s){var c,l,u,d=n.props,f=t.props,p=t.type,m=0;if(p===`svg`&&(i=!0),a!=null){for(;m<a.length;m++)if((c=a[m])&&`setAttribute`in c==!!p&&(p?c.localName===p:c.nodeType===3)){e=c,a[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=i?document.createElementNS(`http://www.w3.org/2000/svg`,p):document.createElement(p,f.is&&f),a=null,s=!1}if(p===null)d===f||s&&e.data===f||(e.data=f);else{if(a&&=We.call(e.childNodes),l=(d=n.props||Qe).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(a!=null)for(d={},m=0;m<e.attributes.length;m++)d[e.attributes[m].name]=e.attributes[m].value;(u||l)&&(u&&(l&&u.__html==l.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||``))}if(it(e,f,d,i,s),u)t.__k=[];else if(m=t.props.children,ht(e,Array.isArray(m)?m:[m],t,n,r,i&&p!==`foreignObject`,a,o,a?a[0]:n.__k&&ut(n,0),s),a!=null)for(m=a.length;m--;)a[m]!=null&&nt(a[m]);s||(`value`in f&&(m=f.value)!==void 0&&(m!==e.value||p===`progress`&&!m||p===`option`&&m!==d.value)&&ot(e,`value`,m,d.value,!1),`checked`in f&&(m=f.checked)!==void 0&&m!==e.checked&&ot(e,`checked`,m,d.checked,!1))}return e}function Ct(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){A.__e(e,n)}}function wt(e,t,n){var r,i;if(A.unmount&&A.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ct(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){A.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&wt(r[i],t,n||typeof e.type!=`function`);n||e.__e==null||nt(e.__e),e.__=e.__e=e.__d=void 0}function Tt(e,t,n){return this.constructor(e,n)}function Et(e,t,n){var r,i,a;A.__&&A.__(e,t),i=(r=typeof n==`function`)?null:n&&n.__k||t.__k,a=[],bt(t,e=(!r&&n||t).__k=j(N,null,[e]),i||Qe,Qe,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?We.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r),xt(a,e)}function Dt(e,t){var n={__c:t=`__cC`+ Ze++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,pt(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}We=$e.slice,A={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},Ge=0,Ke=function(e){return e!=null&&e.constructor===void 0},qe=!1,lt.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=tt({},this.state);typeof e==`function`&&(e=e(tt({},n),this.props)),e&&tt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),pt(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pt(this))},lt.prototype.render=N,Je=[],Xe=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mt.__r=0,Ze=0;var Ot,kt,At,jt=[],Mt=[],Nt=A.__b,Pt=A.__r,Ft=A.diffed,It=A.__c,Lt=A.unmount;function Rt(){for(var e;e=jt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vt),e.__H.__h.forEach(Ht),e.__H.__h=[]}catch(t){e.__H.__h=[],A.__e(t,e.__v)}}A.__b=function(e){Ot=null,Nt&&Nt(e)},A.__r=function(e){Pt&&Pt(e);var t=(Ot=e.__c).__H;t&&(kt===Ot?(t.__h=[],Ot.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Mt,e.__N=e.i=void 0})):(t.__h.forEach(Vt),t.__h.forEach(Ht),t.__h=[])),kt=Ot},A.diffed=function(e){Ft&&Ft(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jt.push(t)!==1&&At===A.requestAnimationFrame||((At=A.requestAnimationFrame)||Bt)(Rt)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Mt&&(e.__=e.__V),e.i=void 0,e.__V=Mt})),kt=Ot=null},A.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Vt),e.__h=e.__h.filter(function(e){return!e.__||Ht(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],A.__e(n,e.__v)}}),It&&It(e,t)},A.unmount=function(e){Lt&&Lt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Vt(e)}catch(e){t=e}}),n.__H=void 0,t&&A.__e(t,n.__v))};var zt=typeof requestAnimationFrame==`function`;function Bt(e){var t,n=function(){clearTimeout(r),zt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);zt&&(t=requestAnimationFrame(n))}function Vt(e){var t=Ot,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Ot=t}function Ht(e){var t=Ot;e.__c=e.__(),Ot=t}function Ut(e,t){for(var n in t)e[n]=t[n];return e}function Wt(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function Gt(e){this.props=e}(Gt.prototype=new lt).isPureReactComponent=!0,Gt.prototype.shouldComponentUpdate=function(e,t){return Wt(this.props,e)||Wt(this.state,t)};var Kt=A.__b;A.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kt&&Kt(e)},typeof Symbol<`u`&&Symbol.for;var qt=A.__e;A.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}qt(e,t,n,r)};var Jt=A.unmount;function Yt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=Ut({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return Yt(e,t,n)})),e}function Xt(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Xt(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Zt(){this.__u=0,this.t=null,this.__b=null}function Qt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $t(){this.u=null,this.o=null}A.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Jt&&Jt(e)},(Zt.prototype=new lt).__c=function(e,t){var n=t.__c,r=this;r.t??=[],r.t.push(n);var i=Qt(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Xt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Zt.prototype.componentWillUnmount=function(){this.t=[]},Zt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),r=this.__v.__k[0].__c;this.__v.__k[0]=Yt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&j(N,null,e.fallback);return i&&(i.__h=null),[j(N,null,t.__a?null:e.children),i]};var en=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function tn(e){return this.getChildContext=function(){return e.context},e.children}function nn(e){var t=this,n=e.i;t.componentWillUnmount=function(){Et(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||=(t.i=n,{nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Et(j(tn,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function rn(e,t){var n=j(nn,{__v:e,i:t});return n.containerInfo=t,n}($t.prototype=new lt).__a=function(e){var t=this,n=Qt(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),en(t,e,r)):i()};n?n(a):a()}},$t.prototype.render=function(e){this.u=null,this.o=new Map;var t=_t(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},$t.prototype.componentDidUpdate=$t.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){en(e,n,t)})};var an=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,on=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,sn=typeof document<`u`,cn=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/i:/fil|che|ra/i).test(e)};lt.prototype.isReactComponent={},[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ln=A.event;function un(){}function dn(){return this.cancelBubble}function fn(){return this.defaultPrevented}A.event=function(e){return ln&&(e=ln(e)),e.persist=un,e.isPropagationStopped=dn,e.isDefaultPrevented=fn,e.nativeEvent=e};var pn={configurable:!0,get:function(){return this.class}},mn=A.vnode;A.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t==`string`){var i=t.indexOf(`-`)===-1;for(var a in r={},n){var o=n[a];sn&&a===`children`&&t===`noscript`||a===`value`&&`defaultValue`in n&&o==null||(a===`defaultValue`&&`value`in n&&n.value==null?a=`value`:a===`download`&&!0===o?o=``:/ondoubleclick/i.test(a)?a=`ondblclick`:/^onchange(textarea|input)/i.test(a+t)&&!cn(n.type)?a=`oninput`:/^onfocus$/i.test(a)?a=`onfocusin`:/^onblur$/i.test(a)?a=`onfocusout`:/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&on.test(a)?a=a.replace(/[A-Z0-9]/g,`-$&`).toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a=`oninputCapture`)),r[a]=o)}t==`select`&&r.multiple&&Array.isArray(r.value)&&(r.value=_t(n.children).forEach(function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1})),t==`select`&&r.defaultValue!=null&&(r.value=_t(n.children).forEach(function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value})),e.props=r,n.class!=n.className&&(pn.enumerable=`className`in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,`className`,pn))}e.$$typeof=an,mn&&mn(e)};var hn=A.__r;A.__r=function(e){hn&&hn(e),e.__c};var gn=[],_n=new Map;function vn(e){gn.push(e),_n.forEach(t=>{Sn(t,e)})}function yn(e){e.isConnected&&e.getRootNode&&bn(e.getRootNode())}function bn(e){let t=_n.get(e);if(!t||!t.isConnected){if(t=e.querySelector(`style[data-fullcalendar]`),!t){t=document.createElement(`style`),t.setAttribute(`data-fullcalendar`,``);let n=wn();n&&(t.nonce=n);let r=e===document?document.head:e,i=e===document?r.querySelector(`script,link[rel=stylesheet],link[as=style],style`):r.firstChild;r.insertBefore(t,i)}_n.set(e,t),xn(t)}}function xn(e){for(let t of gn)Sn(e,t)}function Sn(e,t){let{sheet:n}=e,r=n.cssRules.length;t.split(`}`).forEach((e,t)=>{e=e.trim(),e&&n.insertRule(e+`}`,r+t)})}var Cn;function wn(){return Cn===void 0&&(Cn=Tn()),Cn}function Tn(){let e=document.querySelector(`meta[name="csp-nonce"]`);if(e&&e.hasAttribute(`content`))return e.getAttribute(`content`);let t=document.querySelector(`script[nonce]`);return t&&t.nonce||``}typeof document<`u`&&bn(document),vn(`:root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}`);var En=class{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=``){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e=``,t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(--n[e],n[e]<=0&&delete n[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&=(clearTimeout(this.timeoutId),0)}drained(){this.drainedOption&&this.drainedOption()}};function Dn(e){e.parentNode&&e.parentNode.removeChild(e)}function P(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(On(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function On(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function kn(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let i=n[e].querySelectorAll(t);for(let e=0;e<i.length;e+=1)r.push(i[e])}return r}var An=/(top|left|right|bottom|width|height)$/i;function jn(e,t){for(let n in t)Mn(e,n,t[n])}function Mn(e,t,n){n==null?e.style[t]=``:typeof n==`number`&&An.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function Nn(e){return e.composedPath?.call(e)[0]??e.target}var Pn=0;function Fn(){return Pn+=1,`fc-dom-`+Pn}function In(e){e.preventDefault()}function Ln(e,t){return n=>{let r=P(n.target,e);r&&t.call(r,n,r)}}function Rn(e,t,n,r){let i=Ln(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function zn(e,t,n,r){let i;return Rn(e,`mouseover`,t,(e,t)=>{if(t!==i){i=t,n(e,t);let a=e=>{i=null,r(e,t),t.removeEventListener(`mouseleave`,a)};t.addEventListener(`mouseleave`,a)}})}var Bn=[`webkitTransitionEnd`,`otransitionend`,`oTransitionEnd`,`msTransitionEnd`,`transitionend`];function Vn(e,t){let n=r=>{t(r),Bn.forEach(t=>{e.removeEventListener(t,n)})};Bn.forEach(t=>{e.addEventListener(t,n)})}function Hn(e){return Object.assign({onClick:e},Un(e))}function Un(e){return{tabIndex:0,onKeyDown(t){(t.key===`Enter`||t.key===` `)&&(e(t),t.preventDefault())}}}var Wn=0;function Gn(){return Wn+=1,String(Wn)}function Kn(){document.body.classList.add(`fc-not-allowed`)}function qn(){document.body.classList.remove(`fc-not-allowed`)}function Jn(e){e.style.userSelect=`none`,e.style.webkitUserSelect=`none`,e.addEventListener(`selectstart`,In)}function Yn(e){e.style.userSelect=``,e.style.webkitUserSelect=``,e.removeEventListener(`selectstart`,In)}function Xn(e){e.addEventListener(`contextmenu`,In)}function Zn(e){e.removeEventListener(`contextmenu`,In)}function Qn(e){let t=[],n=[],r,i;for(typeof e==`string`?n=e.split(/\s*,\s*/):typeof e==`function`?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)i=n[r],typeof i==`string`?t.push(i.charAt(0)===`-`?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i==`function`&&t.push({func:i});return t}function $n(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=er(e,t,n[r]),i)return i;return 0}function er(e,t,n){return n.func?n.func(e,t):tr(e[n.field],t[n.field])*(n.order||1)}function tr(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e==`string`||typeof t==`string`?String(e).localeCompare(String(t)):e-t}function nr(e,t){let n=String(e);return`000`.substr(0,t-n.length)+n}function rr(e,t,n){return typeof e==`function`?e(...t):typeof e==`string`?t.reduce((e,t,n)=>e.replace(`$`+n,t||``),e):n}function ir(e,t){return e-t}function ar(e){return e%1==0}function or(e){let t=e.querySelector(`.fc-scrollgrid-shrink-frame`),n=e.querySelector(`.fc-scrollgrid-shrink-cushion`);if(!t)throw Error(`needs fc-scrollgrid-shrink-frame className`);if(!n)throw Error(`needs fc-scrollgrid-shrink-cushion className`);return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var sr=[`years`,`months`,`days`,`milliseconds`],cr=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function F(e,t){return typeof e==`string`?lr(e):typeof e==`object`&&e?ur(e):typeof e==`number`?ur({[t||`milliseconds`]:e}):null}function lr(e){let t=cr.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function ur(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function dr(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function fr(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function pr(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function mr(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function hr(e){return _r(e)/365}function gr(e){return _r(e)/30}function _r(e){return vr(e)/864e5}function vr(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function yr(e,t){let n=null;for(let r=0;r<sr.length;r+=1){let i=sr[r];if(t[i]){let r=e[i]/t[i];if(!ar(r)||n!==null&&n!==r)return null;n=r}else if(e[i])return null}return n}function br(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:`millisecond`,value:t};if(t%(1e3*60)!=0)return{unit:`second`,value:t/1e3};if(t%(1e3*60*60)!=0)return{unit:`minute`,value:t/(1e3*60)};if(t)return{unit:`hour`,value:t/(1e3*60*60)}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:`week`,value:e.days/7}:{unit:`day`,value:e.days}:e.months?{unit:`month`,value:e.months}:e.years?{unit:`year`,value:e.years}:{unit:`millisecond`,value:0}}function xr(e,t,n){if(e===t)return!0;let r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}var Sr=[`sun`,`mon`,`tue`,`wed`,`thu`,`fri`,`sat`];function Cr(e,t){let n=Vr(e);return n[2]+=t*7,R(n)}function I(e,t){let n=Vr(e);return n[2]+=t,R(n)}function wr(e,t){let n=Vr(e);return n[6]+=t,R(n)}function Tr(e,t){return Er(e,t)/7}function Er(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function Dr(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function Or(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function kr(e,t){return(t.valueOf()-e.valueOf())/1e3}function Ar(e,t){let n=L(e),r=L(t);return{years:0,months:0,days:Math.round(Er(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function jr(e,t){let n=Mr(e,t);return n!==null&&n%7==0?n/7:null}function Mr(e,t){return Ur(e)===Ur(t)?Math.round(Er(e,t)):null}function L(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Nr(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function Pr(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function Fr(e){return R([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function Ir(e,t,n){let r=e.getUTCFullYear(),i=Lr(e,r,t,n);if(i<1)return Lr(e,r-1,t,n);let a=Lr(e,r+1,t,n);return a>=1?Math.min(i,a):i}function Lr(e,t,n,r){let i=R([t,0,1+Rr(t,n,r)]),a=L(e),o=Math.round(Er(i,a));return Math.floor(o/7)+1}function Rr(e,t,n){let r=7+t-n;return-((7+R([e,0,r]).getUTCDay()-t)%7)+r-1}function zr(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Br(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function Vr(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function R(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Hr(e){return!isNaN(e.valueOf())}function Ur(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function Wr(e,t,n=!1){let r=e.toISOString();return r=r.replace(`.000`,``),n&&(r=r.replace(`T00:00:00Z`,``)),r.length>10&&(t==null?r=r.replace(`Z`,``):t!==0&&(r=r.replace(`Z`,Jr(t,!0)))),r}function Gr(e){return e.toISOString().replace(/T.*$/,``)}function Kr(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function qr(e){return nr(e.getUTCHours(),2)+`:`+nr(e.getUTCMinutes(),2)+`:`+nr(e.getUTCSeconds(),2)}function Jr(e,t=!1){let n=e<0?`-`:`+`,r=Math.abs(e),i=Math.floor(r/60),a=Math.round(r%60);return t?`${n+nr(i,2)}:${nr(a,2)}`:`GMT${n}${i}${a?`:${nr(a,2)}`:``}`}function z(e,t,n){let r,i;return function(...a){if(!r)i=e.apply(this,a);else if(!xr(r,a)){n&&n(i);let r=e.apply(this,a);(!t||!t(r,i))&&(i=r)}return r=a,i}}function Yr(e,t,n){let r,i;return a=>{if(!r)i=e.call(this,a);else if(!Ni(r,a)){n&&n(i);let r=e.call(this,a);(!t||!t(r,i))&&(i=r)}return r=a,i}}var Xr={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Zr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Qr=/\s*([ap])\.?m\.?/i,$r=/,/g,ei=/\s+/g,ti=/\u200e/g,ni=/UTC|GMT/,ri=class{constructor(e){let t={},n={},r=0;for(let i in e)i in Xr?(n[i]=e[i],r=Math.max(Xr[i],r)):(t[i]=e[i],i in Zr&&(r=Math.max(Zr[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=z(ii)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:a}=this,o=ui(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let s=o;s>1&&(i.year===`numeric`||i.year===`2-digit`)&&(i.month===`numeric`||i.month===`2-digit`)&&(i.day===`numeric`||i.day===`2-digit`)&&(s=1);let c=this.format(e,n),l=this.format(t,n);if(c===l)return c;let u=ii(di(i,s),a,n),d=u(e),f=u(t),p=fi(c,d,l,f),m=a.separator||r||n.defaultSeparator||``;return p?p.before+d+m+f+p.after:c+m+l}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return`year`;case 4:return`month`;case 3:return`week`;case 2:return`day`;default:return`time`}}};function ii(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName===`short`?e=>Jr(e.timeZoneOffset):r===0&&t.week?e=>li(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):ai(e,t,n)}function ai(e,t,n){e=Object.assign({},e),t=Object.assign({},t),oi(e,t),e.timeZone=`UTC`;let r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,i=new Intl.DateTimeFormat(n.locale.codes,t)}return a=>{let{marker:o}=a,s;return s=i&&!o.getUTCMinutes()?i:r,si(s.format(o),a,e,t,n)}}function oi(e,t){e.timeZoneName&&(e.hour||=`2-digit`,e.minute||=`2-digit`),e.timeZoneName===`long`&&(e.timeZoneName=`short`),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function si(e,t,n,r,i){return e=e.replace(ti,``),n.timeZoneName===`short`&&(e=ci(e,i.timeZone===`UTC`||t.timeZoneOffset==null?`UTC`:Jr(t.timeZoneOffset))),r.omitCommas&&(e=e.replace($r,``).trim()),r.omitZeroMinute&&(e=e.replace(`:00`,``)),r.meridiem===!1?e=e.replace(Qr,``).trim():r.meridiem===`narrow`?e=e.replace(Qr,(e,t)=>t.toLocaleLowerCase()):r.meridiem===`short`?e=e.replace(Qr,(e,t)=>`${t.toLocaleLowerCase()}m`):r.meridiem===`lowercase`&&(e=e.replace(Qr,e=>e.toLocaleLowerCase())),e=e.replace(ei,` `),e=e.trim(),e}function ci(e,t){let n=!1;return e=e.replace(ni,()=>(n=!0,t)),n||(e+=` ${t}`),e}function li(e,t,n,r,i){let a=[];return i===`long`?a.push(n):(i===`short`||i===`narrow`)&&a.push(t),(i===`long`||i===`short`)&&a.push(` `),a.push(r.simpleNumberFormat.format(e)),r.options.direction===`rtl`&&a.reverse(),a.join(``)}function ui(e,t,n){return n.getMarkerYear(e)===n.getMarkerYear(t)?n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerDay(e)===n.getMarkerDay(t)?Ur(e)===Ur(t)?0:1:2:4:5}function di(e,t){let n={};for(let r in e)(!(r in Zr)||Zr[r]<=t)&&(n[r]=e[r]);return n}function fi(e,t,n,r){let i=0;for(;i<e.length;){let a=e.indexOf(t,i);if(a===-1)break;let o=e.substr(0,a);i=a+t.length;let s=e.substr(i),c=0;for(;c<n.length;){let e=n.indexOf(r,c);if(e===-1)break;let t=n.substr(0,e);c=e+r.length;let i=n.substr(c);if(o===t&&s===i)return{before:o,after:s}}}return null}function pi(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function mi(e,t,n,r){let i=pi(e,n.calendarSystem);return{date:i,start:i,end:t?pi(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var hi=class{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,mi(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,mi(e,t,n,r))}},gi=class{constructor(e){this.func=e}format(e,t,n){return this.func(mi(e,null,t,n))}formatRange(e,t,n,r){return this.func(mi(e,t,n,r))}};function B(e){return typeof e==`object`&&e?new ri(e):typeof e==`string`?new hi(e):typeof e==`function`?new gi(e):null}var _i={navLinkDayClick:V,navLinkWeekClick:V,duration:F,bootstrapFontAwesome:V,buttonIcons:V,customButtons:V,defaultAllDayEventDuration:F,defaultTimedEventDuration:F,nextDayThreshold:F,scrollTime:F,scrollTimeReset:Boolean,slotMinTime:F,slotMaxTime:F,dayPopoverFormat:B,slotDuration:F,snapDuration:F,headerToolbar:V,footerToolbar:V,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:B,dayHeaderClassNames:V,dayHeaderContent:V,dayHeaderDidMount:V,dayHeaderWillUnmount:V,dayCellClassNames:V,dayCellContent:V,dayCellDidMount:V,dayCellWillUnmount:V,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:V,weekNumbers:Boolean,weekNumberClassNames:V,weekNumberContent:V,weekNumberDidMount:V,weekNumberWillUnmount:V,editable:Boolean,viewClassNames:V,viewDidMount:V,viewWillUnmount:V,nowIndicator:Boolean,nowIndicatorClassNames:V,nowIndicatorContent:V,nowIndicatorDidMount:V,nowIndicatorWillUnmount:V,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:V,locale:V,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:V,eventOrder:Qn,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:V,contentHeight:V,direction:String,weekNumberFormat:B,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:V,initialDate:V,now:V,eventDataTransform:V,stickyHeaderDates:V,stickyFooterScrollbar:V,viewHeight:V,defaultAllDay:Boolean,eventSourceFailure:V,eventSourceSuccess:V,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:V,eventConstraint:V,eventAllow:V,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:V,eventContent:V,eventDidMount:V,eventWillUnmount:V,selectConstraint:V,selectOverlap:V,selectAllow:V,droppable:Boolean,unselectCancel:String,slotLabelFormat:V,slotLaneClassNames:V,slotLaneContent:V,slotLaneDidMount:V,slotLaneWillUnmount:V,slotLabelClassNames:V,slotLabelContent:V,slotLabelDidMount:V,slotLabelWillUnmount:V,dayMaxEvents:V,dayMaxEventRows:V,dayMinWidth:Number,slotLabelInterval:F,allDayText:String,allDayClassNames:V,allDayContent:V,allDayDidMount:V,allDayWillUnmount:V,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:B,rerenderDelay:Number,moreLinkText:V,moreLinkHint:V,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:V,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:F,hiddenDays:V,fixedWeekCount:Boolean,validRange:V,visibleRange:V,titleFormat:V,eventInteractive:Boolean,noEventsText:String,viewHint:V,navLinkHint:V,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:V,moreLinkClassNames:V,moreLinkContent:V,moreLinkDidMount:V,moreLinkWillUnmount:V,monthStartFormat:B,handleCustomRendering:V,customRenderingMetaMap:V,customRenderingReplaces:Boolean},vi={eventDisplay:`auto`,defaultRangeSeparator:` - `,titleRangeSeparator:` – `,defaultTimedEventDuration:`01:00:00`,defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:`00:00:00`,dayHeaders:!0,initialView:``,aspectRatio:1.35,headerToolbar:{start:`title`,center:``,end:`today prev,next`},weekends:!0,weekNumbers:!1,weekNumberCalculation:`local`,editable:!1,nowIndicator:!1,scrollTime:`06:00:00`,scrollTimeReset:!0,slotMinTime:`00:00:00`,slotMaxTime:`24:00:00`,showNonCurrentDates:!0,lazyFetching:!0,startParam:`start`,endParam:`end`,timeZoneParam:`timeZone`,timeZone:`local`,locales:[],locale:``,themeSystem:`standard`,dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:`*`,eventOrder:`start,-duration,allDay,title`,dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:`long`,day:`numeric`}},yi={datesSet:V,eventsSet:V,eventAdd:V,eventChange:V,eventRemove:V,windowResize:V,eventClick:V,eventMouseEnter:V,eventMouseLeave:V,select:V,unselect:V,loading:V,_unmount:V,_beforeprint:V,_afterprint:V,_noEventDrop:V,_noEventResize:V,_resize:V,_scrollRequest:V},bi={buttonText:V,buttonHints:V,views:V,plugins:V,initialEvents:V,events:V,eventSources:V},xi={headerToolbar:Si,footerToolbar:Si,buttonText:Si,buttonHints:Si,buttonIcons:Si,dateIncrement:Si,plugins:Ci,events:Ci,eventSources:Ci,resources:Ci};function Si(e,t){return typeof e==`object`&&typeof t==`object`&&e&&t?Ni(e,t):e===t}function Ci(e,t){return Array.isArray(e)&&Array.isArray(t)?xr(e,t):e===t}var wi={type:String,component:V,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:V,usesMinMaxTime:Boolean,classNames:V,content:V,didMount:V,willUnmount:V};function Ti(e){return Oi(e,xi)}function Ei(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function V(e){return e}var{hasOwnProperty:Di}=Object.prototype;function Oi(e,t){let n={};if(t){for(let r in t)if(t[r]===Si){let t=[];for(let i=e.length-1;i>=0;--i){let a=e[i][r];if(typeof a==`object`&&a)t.unshift(a);else if(a!==void 0){n[r]=a;break}}t.length&&(n[r]=Oi(t))}}for(let t=e.length-1;t>=0;--t){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function ki(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Ai(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function ji(e){let t={};for(let n of e)t[n]=!0;return t}function Mi(e){let t=[];for(let n in e)t.push(e[n]);return t}function Ni(e,t){if(e===t)return!0;for(let n in e)if(Di.call(e,n)&&!(n in t))return!1;for(let n in t)if(Di.call(t,n)&&e[n]!==t[n])return!1;return!0}var Pi=/^on[A-Z]/;function Fi(e,t){let n=Ii(e,t);for(let e of n)if(!Pi.test(e))return!1;return!0}function Ii(e,t){let n=[];for(let r in e)Di.call(e,r)&&(r in t||n.push(r));for(let r in t)Di.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Li(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&Ri(e[r],t[r],n[r])))return!1;for(let n in e)if(!(n in t))return!1;return!0}function Ri(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function zi(e,t=0,n,r=1){let i=[];n??=Object.keys(e).length;for(let a=t;a<n;a+=r){let t=e[a];t!==void 0&&i.push(t)}return i}var Bi={};function Vi(e,t){Bi[e]=t}function Hi(e){return new Bi[e]}Vi(`gregory`,class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return R(e)}markerToArray(e){return Vr(e)}});var Ui=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Wi(e){let t=Ui.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number(`0.${t[12]}`)*1e3:0));if(Hr(e)){let n=null;return t[13]&&(n=(t[15]===`-`?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}var Gi=class{constructor(e){let t=this.timeZone=e.timeZone,n=t!==`local`&&t!==`UTC`;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=Hi(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation===`ISO`&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay==`number`&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation==`function`&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText==null?e.locale.options.weekText:e.weekText,this.weekTextLong=(e.weekTextLong==null?e.locale.options.weekTextLong:e.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return t===null?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):R(zr(new Date))}createMarkerMeta(e){if(typeof e==`string`)return this.parse(e);let t=null;return typeof e==`number`?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=R(e)),t===null||!Hr(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=Wi(e);if(t===null)return null;let{marker:n}=t,r=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Ur(e)===Ur(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Ur(e)===Ur(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return n===null?(n=this.diffWholeMonths(e,t),n===null?(n=jr(e,t),n===null?(n=Mr(e,t),n===null?(n=Dr(e,t),ar(n)?{unit:`hour`,value:n}:(n=Or(e,t),ar(n)?{unit:`minute`,value:n}:(n=kr(e,t),ar(n)?{unit:`second`,value:n}:{unit:`millisecond`,value:t.valueOf()-e.valueOf()}))):{unit:`day`,value:n}):{unit:`week`,value:n}):{unit:`month`,value:n}):{unit:`year`,value:n}}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),r!==null)?r/hr(n):n.months&&(r=this.diffWholeMonths(e,t),r!==null)?r/gr(n):n.days&&(r=Mr(e,t),r!==null)?r/_r(n):(t.valueOf()-e.valueOf())/vr(n)}startOf(e,t){return t===`year`?this.startOfYear(e):t===`month`?this.startOfMonth(e):t===`week`?this.startOfWeek(e):t===`day`?L(e):t===`hour`?Nr(e):t===`minute`?Pr(e):t===`second`?Fr(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):Ir(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:n.forcedTzo==null?this.offsetForMarker(e):n.forcedTzo},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=wr(t,-1)),n.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo==null?this.offsetForMarker(e):r.forcedStartTzo},{marker:t,timeZoneOffset:r.forcedEndTzo==null?this.offsetForMarker(t):r.forcedEndTzo},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=t.forcedTzo==null?this.offsetForMarker(e):t.forcedTzo),Wr(e,n,t.omitTime)}timestampToMarker(e){return this.timeZone===`local`?R(zr(new Date(e))):this.timeZone===`UTC`||!this.namedTimeZoneImpl?new Date(e):R(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone===`local`?-Br(Vr(e)).getTimezoneOffset():this.timeZone===`UTC`?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Vr(e)):null}toDate(e,t){return this.timeZone===`local`?Br(Vr(e)):this.timeZone===`UTC`?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Vr(e))*1e3*60):new Date(e.valueOf()-(t||0))}},Ki=class{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if(typeof e==`object`&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e}getClass(e){return this.classes[e]||``}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:``}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:``}};Ki.prototype.classes={},Ki.prototype.iconClasses={},Ki.prototype.baseIconClass=``,Ki.prototype.iconOverridePrefix=``;function qi(e){e();let t=A.debounceRendering,n=[];function r(e){n.push(e)}for(A.debounceRendering=r,Et(j(Ji,{}),document.createElement(`div`));n.length;)n.shift()();A.debounceRendering=t}var Ji=class extends lt{render(){return j(`div`,{})}componentDidMount(){this.setState({})}};function Yi(e){let t=Dt(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach(e=>{e.context=t.value,e.forceUpdate()})},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}var Xi=class{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on(`_scrollRequest`,this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off(`_scrollRequest`,this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}},Zi=Yi({});function Qi(e,t,n,r,i,a,o,s,c,l,u,d,f){return{dateEnv:i,options:n,pluginHooks:o,emitter:l,dispatch:s,getCurrentData:c,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:a,isRtl:n.direction===`rtl`,addResizeHandler(e){l.on(`_resize`,e)},removeResizeHandler(e){l.off(`_resize`,e)},createScrollResponder(e){return new Xi(e,l,F(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var $i=class extends lt{shouldComponentUpdate(e,t){return this.debug&&console.log(Ii(e,this.props),Ii(t,this.state)),!Li(this.props,e,this.propEquality)||!Li(this.state,t,this.stateEquality)}safeSetState(e){Li(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}};$i.addPropsEquality=ea,$i.addStateEquality=ta,$i.contextType=Zi,$i.prototype.propEquality={},$i.prototype.stateEquality={};var H=class extends $i{};H.contextType=Zi;function ea(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function ta(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function na(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var ra=class extends H{constructor(){super(...arguments),this.id=Gn(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:t}=this.context,{generatorName:n}=this.props;(!t.customRenderingReplaces||!ia(n,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&na(this.props.elRef,e)}}render(){let{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:i,renderProps:a}=e,o=aa(e,[],this.handleEl),s=!1,c,l=[],u;if(r!=null){let e=typeof r==`function`?r(a,j):r;if(e===!0)s=!0;else{let t=e&&typeof e==`object`;t&&`html`in e?o.dangerouslySetInnerHTML={__html:e.html}:t&&`domNodes`in e?l=Array.prototype.slice.call(e.domNodes):(t?Ke(e):typeof e!=`function`)?c=e:u=e}}else s=!ia(e.generatorName,n);return s&&i&&(c=i(a)),this.queuedDomNodes=l,this.currentGeneratorMeta=u,j(e.elTag,o,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){let{props:t,context:n}=this,{handleCustomRendering:r,customRenderingMetaMap:i}=n.options;if(r){let n=this.currentGeneratorMeta??i?.[t.generatorName];n&&r(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:n},t),{elClasses:(t.elClasses||[]).filter(oa)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!xr(e,t)){t.forEach(Dn);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}};ra.addPropsEquality({elClasses:xr,elStyle:Ni,elAttrs:Fi,renderProps:Ni});function ia(e,t){return!!(t.handleCustomRendering&&e&&t.customRenderingMetaMap?.[e])}function aa(e,t,n){let r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(` `)),e.elStyle&&(r.style=e.elStyle),r}function oa(e){return!!e}var sa=Yi(0),U=class extends lt{constructor(){super(...arguments),this.InnerContent=ca.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(na(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:e}=this,t=la(e.classNameGenerator,e.renderProps);if(e.children){let n=aa(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?j(e.elTag,n,r):r}else return j(ra,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||`div`,elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?(t=(e=this.props).didMount)==null||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)==null||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}};U.contextType=sa;function ca(e,t){let n=e.props;return j(ra,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function la(e,t){let n=typeof e==`function`?e(t):e||[];return typeof n==`string`?[n]:n}var ua=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return j(U,Object.assign({},e,{elTag:e.elTag||`div`,elClasses:[...da(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}};function da(e){return[`fc-${e.type}-view`,`fc-view`]}function fa(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function pa(e,t){let n=[],{start:r}=t,i,a;for(e.sort(ma),i=0;i<e.length;i+=1)a=e[i],a.start>r&&n.push({start:r,end:a.start}),a.end>r&&(r=a.end);return r<t.end&&n.push({start:r,end:t.end}),n}function ma(e,t){return e.start.valueOf()-t.start.valueOf()}function ha(e,t){let{start:n,end:r}=e,i=null;return t.start!==null&&(n=n===null?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r=r===null?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function ga(e,t){return(e.start===null?null:e.start.valueOf())===(t.start===null?null:t.start.valueOf())&&(e.end===null?null:e.end.valueOf())===(t.end===null?null:t.end.valueOf())}function _a(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function va(e,t){return(e.start===null||t.start!==null&&t.start>=e.start)&&(e.end===null||t.end!==null&&t.end<=e.end)}function ya(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function ba(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function xa(e){let t=Math.floor(Er(e.start,e.end))||1,n=L(e.start);return{start:n,end:I(n,t)}}function Sa(e,t=F(0)){let n=null,r=null;if(e.end){r=L(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=vr(t)&&(r=I(r,1))}return e.start&&(n=L(e.start),r&&r<=n&&(r=I(n,1))),{start:n,end:r}}function Ca(e){let t=Sa(e);return Er(t.start,t.end)>1}function wa(e,t,n,r){return r===`year`?F(n.diffWholeYears(e,t),`year`):r===`month`?F(n.diffWholeMonths(e,t),`month`):Ar(e,t)}function Ta(e,t){switch(t.type){case`CHANGE_DATE`:return t.dateMarker;default:return e}}function Ea(e,t){let n=e.initialDate;return n==null?Da(e.now,t):t.createMarker(n)}function Da(e,t){return typeof e==`function`&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}var Oa=class{constructor(e){this.props=e,this.nowDate=Da(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let{props:r}=this,i,a,o,s,c,l;return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(e=ba(e,i)),a=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(a.unit),s=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,o),s=this.trimHiddenDays(s),c=s,r.showNonCurrentDates||(c=ha(c,a.range)),c=this.adjustActiveRange(c),c=ha(c,i),l=_a(a.range,i),ya(s,e)||(e=s.start),{currentDate:e,validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:o,activeRange:c,renderRange:s,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e==`function`?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:n}=this,r=null,i=null,a=null,o;return n.duration?(r=n.duration,i=n.durationUnit,a=this.buildRangeFromDuration(e,t,r,i)):(o=this.props.dayCount)?(i=`day`,a=this.buildRangeFromDayCount(e,t,o)):(a=this.buildCustomVisibleRange(e))?i=n.dateEnv.greatestWholeUnit(a.start,a.end).unit:(r=this.getFallbackDuration(),i=br(r).unit,a=this.buildRangeFromDuration(e,t,r,i)),{duration:r,unit:i,range:a}}getFallbackDuration(){return F({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:a,end:o}=e;return n&&(_r(r)<0&&(a=L(a),a=t.add(a,r)),_r(i)>1&&(o=L(o),o=I(o,-1),o=t.add(o,i))),{start:a,end:o}}buildRangeFromDuration(e,t,n,r){let{dateEnv:i,dateAlignment:a}=this.props,o,s,c;if(!a){let{dateIncrement:e}=this.props;a=e&&vr(e)<vr(n)?br(e).unit:r}_r(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=L(o));function l(){o=i.startOf(e,a),s=i.add(o,n),c={start:o,end:s}}return l(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,t),l()),c}buildRangeFromDayCount(e,t,n){let{dateEnv:r,dateAlignment:i}=this.props,a=0,o=e,s;i&&(o=r.startOf(o,i)),o=L(o),o=this.skipHiddenDays(o,t),s=o;do s=I(s,1),this.isHiddenDay(s)||(a+=1);while(a<n);return{start:o,end:s}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r=typeof n==`function`?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,n;return t||((n=this.props.dateAlignment)?F(1,n):e||F({days:1}))}refineRange(e){if(e){let t=fa(e,this.props.dateEnv);return t&&=Sa(t),t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],n=0,r;for(this.props.weekends===!1&&e.push(0,6),r=0;r<7;r+=1)(t[r]=e.indexOf(r)!==-1)||(n+=1);if(!n)throw Error(`invalid hiddenDays`);this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:n}=e;return t&&=this.skipHiddenDays(t),n&&=this.skipHiddenDays(n,-1,!0),t==null||n==null||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=I(e,t);return e}};function ka(e,t,n,r){return{instanceId:Gn(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function Aa(e,t,n,r){for(let i=0;i<r.length;i+=1){let a=r[i].parse(e,n);if(a){let{allDay:n}=e;return n??(n=t,n??(n=a.allDayGuess,n??=!1)),{allDay:n,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}function ja(e,t,n){let{dateEnv:r,pluginHooks:i,options:a}=n,{defs:o,instances:s}=e;for(let e in s=ki(s,e=>!o[e.defId].recurringDef),o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||=n.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration;let c=Ma(n,o,t,r,i.recurringTypes);for(let t of c){let n=ka(e,{start:t,end:r.add(t,o)});s[n.instanceId]=n}}}return{defs:o,instances:s}}function Ma(e,t,n,r,i){let a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(L)),a}var Na={id:String,groupId:String,title:String,url:String,interactive:Boolean},Pa={start:V,end:V,date:V,allDay:Boolean},Fa=Object.assign(Object.assign(Object.assign({},Na),Pa),{extendedProps:V});function Ia(e,t,n,r,i=Ra(n),a,o){let{refined:s,extra:c}=La(e,n,i),l=Va(t,n),u=Aa(s,l,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let e=za(s,c,t?t.sourceId:``,u.allDay,!!u.duration,n,a);return e.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:e,instance:null}}let d=Ba(s,l,n,r);if(d){let e=za(s,c,t?t.sourceId:``,d.allDay,d.hasEnd,n,a),r=ka(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function La(e,t,n=Ra(t)){return Ei(e,n)}function Ra(e){return Object.assign(Object.assign(Object.assign({},Za),Fa),e.pluginHooks.eventRefiners)}function za(e,t,n,r,i,a,o){let s={title:e.title||``,groupId:e.groupId||``,publicId:e.id||``,url:e.url||``,recurringDef:null,defId:(o&&e.id?o[e.id]:``)||Gn(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:$a(e,a),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of a.pluginHooks.eventDefMemberAdders)Object.assign(s,t(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Ba(e,t,n,r){let{allDay:i}=e,a,o=null,s=!1,c,l=null,u=e.start==null?e.date:e.start;if(a=n.dateEnv.createMarkerMeta(u),a)o=a.marker;else if(!r)return null;return e.end!=null&&(c=n.dateEnv.createMarkerMeta(e.end)),i??=t??((!a||a.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),i&&o&&(o=L(o)),c&&(l=c.marker,i&&(l=L(l)),o&&l<=o&&(l=null)),l?s=!0:r||(s=n.options.forceEventDuration||!1,l=n.dateEnv.add(o,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:o,end:l},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}function Va(e,t){let n=null;return e&&(n=e.defaultAllDay),n??=t.options.defaultAllDay,n}function Ha(e,t,n,r,i,a){let o=W(),s=Ra(n);for(let c of e){let e=Ia(c,t,n,r,s,i,a);e&&Ua(e,o)}return o}function Ua(e,t=W()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Wa(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qa(e,e=>Ga(t,e));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return W()}function Ga(e,t){return!!(e.groupId&&e.groupId===t.groupId)}function W(){return{defs:{},instances:{}}}function Ka(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qa(e,t){let n=ki(e.defs,t);return{defs:n,instances:ki(e.instances,e=>n[e.defId])}}function Ja(e,t){let{defs:n,instances:r}=e,i={},a={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(a[e]=r[e]);return{defs:i,instances:a}}function Ya(e,t){return Array.isArray(e)?Ha(e,null,t,!0):typeof e==`object`&&e?Ha([e],null,t,!0):e==null?null:String(e)}function Xa(e){return Array.isArray(e)?e:typeof e==`string`?e.split(/\s+/):[]}var Za={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:V,overlap:V,allow:V,className:Xa,classNames:Xa,color:String,backgroundColor:String,borderColor:String,textColor:String},Qa={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:``,borderColor:``,textColor:``,classNames:[]};function $a(e,t){let n=Ya(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable==null?e.editable:e.startEditable,durationEditable:e.durationEditable==null?e.editable:e.durationEditable,constraints:n==null?[]:[n],overlap:e.overlap==null?null:e.overlap,allows:e.allow==null?[]:[e.allow],backgroundColor:e.backgroundColor||e.color||``,borderColor:e.borderColor||e.color||``,textColor:e.textColor||``,classNames:(e.className||[]).concat(e.classNames||[])}}function eo(e){return e.reduce(to,Qa)}function to(e,t){return{display:t.display==null?e.display:t.display,startEditable:t.startEditable==null?e.startEditable:t.startEditable,durationEditable:t.durationEditable==null?e.durationEditable:t.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap==`boolean`?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var no={id:String,defaultAllDay:Boolean,url:String,format:String,events:V,eventDataTransform:V,success:V,failure:V};function ro(e,t,n=io(t)){let r;if(typeof e==`string`?r={url:e}:typeof e==`function`||Array.isArray(e)?r={events:e}:typeof e==`object`&&e&&(r=e),r){let{refined:i,extra:a}=Ei(r,n),o=ao(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:``,fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||``,sourceId:Gn(),sourceDefId:o.sourceDefId,meta:o.meta,ui:$a(i,t),extendedProps:a}}return null}function io(e){return Object.assign(Object.assign(Object.assign({},Za),no),e.pluginHooks.eventSourceRefiners)}function ao(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;--t){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}function oo(e,t,n,r,i){switch(t.type){case`RECEIVE_EVENTS`:return so(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case`RESET_RAW_EVENTS`:return co(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case`ADD_EVENTS`:return fo(e,t.eventStore,r?r.activeRange:null,i);case`RESET_EVENTS`:return t.eventStore;case`MERGE_EVENTS`:return Ka(e,t.eventStore);case`PREV`:case`NEXT`:case`CHANGE_DATE`:case`CHANGE_VIEW_TYPE`:return r?ja(e,r.activeRange,i):e;case`REMOVE_EVENTS`:return Ja(e,t.eventStore);case`REMOVE_EVENT_SOURCE`:return mo(e,t.sourceId);case`REMOVE_ALL_EVENT_SOURCES`:return qa(e,e=>!e.sourceId);case`REMOVE_ALL_EVENTS`:return W();default:return e}}function so(e,t,n,r,i,a){if(t&&n===t.latestFetchId){let n=Ha(lo(i,t,a),t,a);return r&&(n=ja(n,r,a)),Ka(mo(e,t.sourceId),n)}return e}function co(e,t,n,r,i){let{defIdMap:a,instanceIdMap:o}=go(e);return ja(Ha(lo(n,t,i),t,i,!1,a,o),r,i)}function lo(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=uo(e,i)),r&&(e=uo(e,r)),e}function uo(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let e=t(r);e?n.push(e):e??n.push(r)}}return n}function fo(e,t,n,r){return n&&(t=ja(t,n,r)),Ka(e,t)}function po(e,t,n){let{defs:r}=e;return{defs:r,instances:Ai(e.instances,e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo}))}}function mo(e,t){return qa(e,e=>e.sourceId!==t)}function ho(e,t){return{defs:e.defs,instances:ki(e.instances,e=>!t[e.instanceId])}}function go(e){let{defs:t,instances:n}=e,r={},i={};for(let e in t){let{publicId:n}=t[e];n&&(r[n]=e)}for(let e in n){let{publicId:r}=t[n[e].defId];r&&(i[r]=e)}return{defIdMap:r,instanceIdMap:i}}var _o=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){vo(this.handlers,e,t)}off(e,t){yo(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}};function vo(e,t,n){(e[t]||(e[t]=[])).push(n)}function yo(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}var bo={startTime:`09:00`,endTime:`17:00`,daysOfWeek:[1,2,3,4,5],display:`inverse-background`,classNames:`fc-non-business`,groupId:`_businessHours`};function xo(e,t){return Ha(So(e),null,t)}function So(e){let t;return t=e===!0?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):typeof e==`object`&&e?[e]:[],t=t.map(e=>Object.assign(Object.assign({},bo),e)),t}function Co(e,t,n){n.emitter.trigger(`select`,Object.assign(Object.assign({},To(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function wo(e,t){t.emitter.trigger(`unselect`,{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function To(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,es(e,t.dateEnv)),n}function Eo(e,t,n){let{dateEnv:r,options:i}=n,a=t;return e?(a=L(a),a=r.add(a,i.defaultAllDayEventDuration)):a=r.add(a,i.defaultTimedEventDuration),a}function Do(e,t,n,r){let i=Lo(e.defs,t),a=W();for(let t in e.defs){let o=e.defs[t];a.defs[t]=Oo(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],s=a.defs[o.defId];a.instances[t]=ko(o,s,i[o.defId],n,r)}return a}function Oo(e,t,n,r){let i=n.standardProps||{};i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(a,n,r);return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function ko(e,t,n,r,i){let{dateEnv:a}=i,o=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,c=Object.assign({},e);return o&&(c.range=xa(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:a.add(c.range.start,r.datesDelta),end:a.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:a.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:a.add(c.range.end,r.endDelta)}),s&&(c.range={start:c.range.start,end:Eo(t.allDay,c.range.start,i)}),t.allDay&&(c.range={start:L(c.range.start),end:L(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Eo(t.allDay,c.range.start,i)),c}var Ao=class{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:`REMOVE_EVENT_SOURCE`,sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:`FETCH_EVENT_SOURCES`,sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}},G=class e{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in Pa)console.warn(`Could not set date-related prop 'name'. Use one of the date-related methods instead.`);else if(e===`id`)t=Na[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Na)t=Na[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Za){let n=Za[e](t);n=e===`color`?{backgroundColor:t,borderColor:t}:e===`editable`?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=this._instance.range,i=wa(e.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}}setEnd(e,t={}){let{dateEnv:n}=this._context,r;if(!(e!=null&&(r=n.createMarker(e),!r))&&this._instance)if(r){let e=wa(this._instance.range.end,r,n,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let{dateEnv:r}=this._context,i={allDay:n.allDay},a=r.createMarker(e),o;if(a&&!(t!=null&&(o=r.createMarker(t),!o))&&this._instance){let e=this._instance.range;n.allDay===!0&&(e=xa(e));let t=wa(e.start,a,r,n.granularity);if(o){let a=wa(e.end,o,r,n.granularity);dr(t,a)?this.mutate({datesDelta:t,standardProps:i}):this.mutate({startDelta:t,endDelta:a,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:t,standardProps:i})}}moveStart(e){let t=F(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=F(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=F(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;r??=this._context.options.allDayMaintainDuration,this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=B(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:a}=i.getCurrentData(),o=Wa(a,n.instanceId);o=Do(o,{"":{display:``,startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:``,borderColor:``,textColor:``,classNames:[]}},t,i);let s=new e(i,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],i.dispatch({type:`MERGE_EVENTS`,eventStore:o}),i.emitter.trigger(`eventChange`,{oldEvent:s,event:this,relatedEvents:Mo(o,i,n),revert(){i.dispatch({type:`RESET_EVENTS`,eventStore:a})}})}}remove(){let e=this._context,t=jo(this);e.dispatch({type:`REMOVE_EVENTS`,eventStore:t}),e.emitter.trigger(`eventRemove`,{event:this,relatedEvents:[],revert(){e.dispatch({type:`MERGE_EVENTS`,eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new Ao(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):``}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):``}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||`auto`}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,a={allDay:t.allDay};return t.title&&(a.title=t.title),r&&(a.start=r),i&&(a.end=i),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&n.display!==`auto`&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}toJSON(){return this.toPlainObject()}};function jo(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Mo(e,t,n){let{defs:r,instances:i}=e,a=[],o=n?n.instanceId:``;for(let e in i){let n=i[e],s=r[n.defId];n.instanceId!==o&&a.push(new G(t,s,n))}return a}function No(e,t,n,r){let i={},a={},o={},s=[],c=[],l=Lo(e.defs,t);for(let t in e.defs){let n=e.defs[t];l[n.defId].display===`inverse-background`&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):a[t]=[])}for(let t in e.instances){let o=e.instances[t],u=e.defs[o.defId],d=l[u.defId],f=o.range,p=!u.allDay&&r?Sa(f,r):f,m=ha(p,n);m&&(d.display===`inverse-background`?u.groupId?i[u.groupId].push(m):a[o.defId].push(m):d.display!==`none`&&(d.display===`background`?s:c).push({def:u,ui:d,instance:o,range:m,isStart:p.start&&p.start.valueOf()===m.start.valueOf(),isEnd:p.end&&p.end.valueOf()===m.end.valueOf()}))}for(let e in i){let t=i[e],r=pa(t,n);for(let t of r){let n=o[e],r=l[n.defId];s.push({def:n,ui:r,instance:null,range:t,isStart:!1,isEnd:!1})}}for(let t in a){let r=a[t],i=pa(r,n);for(let n of i)s.push({def:e.defs[t],ui:l[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:s,fg:c}}function Po(e){return e.ui.display===`background`||e.ui.display===`inverse-background`}function Fo(e,t){e.fcSeg=t}function Io(e){return e.fcSeg||e.parentNode.fcSeg||null}function Lo(e,t){return Ai(e,e=>Ro(e,t))}function Ro(e,t){let n=[];return t[``]&&n.push(t[``]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),eo(n)}function zo(e,t){let n=e.map(Bo);return n.sort((e,n)=>$n(e,n,t)),n.map(e=>e._seg)}function Bo(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function Vo(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:a}=e.eventRange,o=a.startEditable;for(let e of r)o=e(o,i,a,t);return o}function Ho(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Uo(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Wo(e,t,n,r,i,a,o){let{dateEnv:s,options:c}=n,{displayEventTime:l,displayEventEnd:u}=c,d=e.eventRange.def,f=e.eventRange.instance;l??=r!==!1,u??=i!==!1;let p=f.range.start,m=f.range.end,h=a||e.start||e.eventRange.range.start,g=o||e.end||e.eventRange.range.end,_=L(p).valueOf()===L(h).valueOf(),v=L(wr(m,-1)).valueOf()===L(wr(g,-1)).valueOf();return l&&!d.allDay&&(_||v)?(h=_?p:h,g=v?m:g,u&&d.hasEnd?s.formatRange(h,g,t,{forcedStartTzo:a?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):s.format(h,t,{forcedTzo:a?null:f.forcedStartTzo})):``}function Go(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&ya(t,r.start)}}function Ko(e){let t=[`fc-event`];return e.isMirror&&t.push(`fc-event-mirror`),e.isDraggable&&t.push(`fc-event-draggable`),(e.isStartResizable||e.isEndResizable)&&t.push(`fc-event-resizable`),e.isDragging&&t.push(`fc-event-dragging`),e.isResizing&&t.push(`fc-event-resizing`),e.isSelected&&t.push(`fc-event-selected`),e.isStart&&t.push(`fc-event-start`),e.isEnd&&t.push(`fc-event-end`),e.isPast&&t.push(`fc-event-past`),e.isToday&&t.push(`fc-event-today`),e.isFuture&&t.push(`fc-event-future`),t}function qo(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Jo(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:a,options:o}=t,{eventInteractive:s}=o;return s??(s=n.interactive,s??=!!a.hasHandlers(`eventClick`)),s?Un(e=>{a.trigger(`eventClick`,{el:e.target,event:new G(t,n,r),jsEvent:e,view:t.viewApi})}):{}}var Yo={start:V,end:V,allDay:Boolean};function Xo(e,t,n){let r=Zo(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function Zo(e,t){let{refined:n,extra:r}=Ei(e,Yo),i=n.start?t.createMarkerMeta(n.start):null,a=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;return o??=i&&i.isTimeUnspecified&&(!a||a.isTimeUnspecified),Object.assign({range:{start:i?i.marker:null,end:a?a.marker:null},allDay:o},r)}function Qo(e,t){return ga(e.range,t.range)&&e.allDay===t.allDay&&$o(e,t)}function $o(e,t){for(let n in t)if(n!==`range`&&n!==`allDay`&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}function es(e,t){return Object.assign(Object.assign({},ns(e.range,t,e.allDay)),{allDay:e.allDay})}function ts(e,t,n){return Object.assign(Object.assign({},ns(e,t,n)),{timeZone:t.timeZone})}function ns(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function rs(e,t,n){let r=La({editable:!1},n),i=za(r.refined,r.extra,``,e.allDay,!0,n);return{def:i,ui:Ro(i,t),instance:ka(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function is(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},a=function(e){r||(r=!0,n(e))},o=e(i,a);o&&typeof o.then==`function`&&o.then(i,a)}var as=class extends Error{constructor(e,t){super(e),this.response=t}};function os(e,t,n){e=e.toUpperCase();let r={method:e};return e===`GET`?t+=(t.indexOf(`?`)===-1?`?`:`&`)+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":`application/x-www-form-urlencoded`}),fetch(t,r).then(e=>{if(e.ok)return e.json().then(t=>[t,e],()=>{throw new as(`Failure parsing JSON`,e)});throw new as(`Request failed`,e)})}var ss;function cs(){return ss??=ls(),ss}function ls(){if(typeof document>`u`)return!0;let e=document.createElement(`div`);e.style.position=`absolute`,e.style.top=`0px`,e.style.left=`0px`,e.innerHTML=`<table><tr><td><div></div></td></tr></table>`,e.querySelector(`table`).style.height=`100px`,e.querySelector(`div`).style.height=`100%`,document.body.appendChild(e);let t=e.querySelector(`div`).offsetHeight>0;return document.body.removeChild(e),t}var us=class extends H{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{qi(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{qi(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||t.height===`auto`||t.contentHeight===`auto`,i=!r&&t.height!=null?t.height:``,a=[`fc`,n?`fc-media-print`:`fc-media-screen`,`fc-direction-${t.direction}`,e.theme.getClass(`root`)];return cs()||a.push(`fc-liquid-hack`),e.children(a,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on(`_beforeprint`,this.handleBeforePrint),e.on(`_afterprint`,this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off(`_beforeprint`,this.handleBeforePrint),e.off(`_afterprint`,this.handleAfterPrint)}},ds=class{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}};function fs(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter==null?!0:t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function ps(e){return{[e.component.uid]:e}}var ms={},hs=class{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger(`_resize`,!0)}setOption(e,t){this.dispatch({type:`SET_OPTION`,optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e}),this.dispatch({type:`SET_OPTION`,optionName:`visibleRange`,rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:e})})}zoomTo(e,t){let n=this.getCurrentData(),r;t||=`day`,r=n.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),r?this.dispatch({type:`CHANGE_VIEW_TYPE`,viewType:r.type,dateMarker:e}):this.dispatch({type:`CHANGE_DATE`,dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:n}=this.getCurrentData(),r=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]),i,a;for(let e in t)r.push(e);for(i=0;i<r.length;i+=1)if(a=t[r[i]],a&&a.singleUnit===e)return a;return null}prev(){this.unselect(),this.dispatch({type:`PREV`})}next(){this.unselect(),this.dispatch({type:`NEXT`})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:Da(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=F(e);n&&(this.unselect(),this.dispatch({type:`CHANGE_DATE`,dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),B(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),B(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=t==null?e.start==null?{start:e,end:null}:e:{start:e,end:t};let r=this.getCurrentData(),i=Xo(n,r.dateEnv,F({days:1}));i&&(this.dispatch({type:`SELECT_DATES`,selection:i}),Co(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:`UNSELECT_DATES`}),wo(e,t))}addEvent(e,t){if(e instanceof G){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:`ADD_EVENTS`,eventStore:Ua({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n=this.getCurrentData(),r;if(t instanceof Ao)r=t.internalEventSource;else if(typeof t==`boolean`)t&&([r]=Mi(n.eventSources));else if(t!=null){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;r=e.internalEventSource}let i=Ia(e,r,n,!1);if(i){let e=new G(n,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:`ADD_EVENTS`,eventStore:Ua(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger(`eventAdd`,{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:`REMOVE_EVENTS`,eventStore:jo(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;for(let i in e=String(e),n){let a=n[i];if(a.publicId===e){if(a.recurringDef)return new G(t,a,null);for(let e in r){let n=r[e];if(n.defId===a.defId)return new G(t,a,n)}}}return null}getEvents(){let e=this.getCurrentData();return Mo(e.eventStore,e)}removeAllEvents(){this.dispatch({type:`REMOVE_ALL_EVENTS`})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new Ao(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;for(let r in e=String(e),n)if(n[r].publicId===e)return new Ao(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Ao)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:`ADD_EVENT_SOURCES`,sources:[e.internalEventSource]}),e;let n=ro(e,t);return n?(this.dispatch({type:`ADD_EVENT_SOURCES`,sources:[n]}),new Ao(t,n)):null}removeAllEventSources(){this.dispatch({type:`REMOVE_ALL_EVENT_SOURCES`})}refetchEvents(){this.dispatch({type:`FETCH_EVENT_SOURCES`,isRefetch:!0})}scrollToTime(e){let t=F(e);t&&this.trigger(`_scrollRequest`,{time:t})}};function gs(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function _s(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function vs(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function ys(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function bs(e,t){return{left:e.left-t.left,top:e.top-t.top}}var xs=W(),Ss=class{constructor(){this.getKeysForEventDefs=z(this._getKeysForEventDefs),this.splitDateSelection=z(this._splitDateSpan),this.splitEventStore=z(this._splitEventStore),this.splitIndividualUi=z(this._splitIndividualUi),this.splitEventDrag=z(this._splitInteraction),this.splitEventResize=z(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),a=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),c={};for(let n in this.eventUiBuilders=Ai(t,(e,t)=>this.eventUiBuilders[t]||z(Cs)),t){let l=t[n],u=a[n]||xs,d=this.eventUiBuilders[n];c[n]={businessHours:l.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:u,eventUiBases:d(e.eventUiBases[``],l.ui,i[n]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:``,eventDrag:o[n]||null,eventResize:s[n]||null}}return c}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return Ai(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]=W()),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),a=r=>{t[r]||(t[r]={affectedEvents:n[r]||xs,mutatedEvents:i[r]||xs,isEvent:e.isEvent})};for(let e in n)a(e);for(let e in i)a(e)}return t}};function Cs(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":eo(r)};return n&&Object.assign(i,n),i}function ws(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&!ya(r.activeRange,e)),isOther:!!(r&&!ya(r.currentRange,e)),isToday:!!(t&&ya(t,e)),isPast:!!(n?e<n:t&&e<t.start),isFuture:!!(n?e>n:t&&e>=t.end)}}function Ts(e,t){let n=[`fc-day`,`fc-day-${Sr[e.dow]}`];return e.isDisabled?n.push(`fc-day-disabled`):(e.isToday&&(n.push(`fc-day-today`),n.push(t.getClass(`today`))),e.isPast&&n.push(`fc-day-past`),e.isFuture&&n.push(`fc-day-future`),e.isOther&&n.push(`fc-day-other`)),n}var Es=B({year:`numeric`,month:`long`,day:`numeric`}),Ds=B({week:`long`});function Os(e,t,n=`day`,r=!0){let{dateEnv:i,options:a,calendarApi:o}=e,s=i.format(t,n===`week`?Ds:Es);if(a.navLinks){let e=i.toDate(t),c=e=>{let r=n===`day`?a.navLinkDayClick:n===`week`?a.navLinkWeekClick:null;typeof r==`function`?r.call(o,i.toDate(t),e):(typeof r==`string`&&(n=r),o.zoomTo(t,n))};return Object.assign({title:rr(a.navLinkHint,[s,e],s),"data-navlink":``},r?Hn(c):{onClick:c})}return{"aria-label":s}}var ks=null;function As(){return ks===null&&(ks=js()),ks}function js(){let e=document.createElement(`div`);jn(e,{position:`absolute`,top:-1e3,left:0,border:0,padding:0,overflow:`scroll`,direction:`rtl`}),e.innerHTML=`<div></div>`,document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Dn(e),t}var Ms;function Ns(){return Ms||=Ps(),Ms}function Ps(){let e=document.createElement(`div`);e.style.overflow=`scroll`,e.style.position=`absolute`,e.style.top=`-9999px`,e.style.left=`-9999px`,document.body.appendChild(e);let t=Fs(e);return document.body.removeChild(e),t}function Fs(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Is(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=Fs(e),c=s.y-r-i,l={borderLeft:r,borderRight:i,borderTop:a,borderBottom:o,scrollbarBottom:s.x-a-o,scrollbarLeft:0,scrollbarRight:0};return As()&&n.direction===`rtl`?l.scrollbarLeft=c:l.scrollbarRight=c,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function Ls(e,t=!1,n){let r=n?e.getBoundingClientRect():Rs(e),i=Is(e,t),a={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(a.left+=i.paddingLeft,a.right-=i.paddingRight,a.top+=i.paddingTop,a.bottom-=i.paddingBottom),a}function Rs(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function zs(e){let t=Bs(e),n=e.getBoundingClientRect();for(let e of t){let t=_s(n,e.getBoundingClientRect());if(t)n=t;else return null}return n}function Bs(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if(n.position===`fixed`)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}var Vs=class{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let{lefts:t,rights:n}=this,r=t.length,i;for(i=0;i<r;i+=1)if(e>=t[i]&&e<n[i])return i}topToIndex(e){let{tops:t,bottoms:n}=this,r=t.length,i;for(i=0;i<r;i+=1)if(e>=t[i]&&e<n[i])return i}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Hs(this.tops||[],e.tops||[])&&Hs(this.bottoms||[],e.bottoms||[])&&Hs(this.lefts||[],e.lefts||[])&&Hs(this.rights||[],e.rights||[])}};function Hs(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}var Us=class{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}},Ws=class extends Us{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}},Gs=class extends Us{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}},Ks=class extends H{constructor(){super(...arguments),this.uid=Gn()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!P(e,`.fc-event-mirror`)}isValidDateDownEl(e){return!P(e,`.fc-event:not(.fc-bg-event)`)&&!P(e,`.fc-more-link`)&&!P(e,`a[data-navlink]`)&&!P(e,`.fc-popover`)}},qs=class{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){let r=Object.assign(Object.assign({},t),{span:Qs(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,i=t.span;r.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:i.start}},n),r.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;t.lateral===-1?($s(r,t.level,t.levelCoord),$s(n,t.level,[e])):$s(n[t.level],t.lateral,e),this.stackCnts[Ys(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,a=t.length,o=0,s=-1,c=-1,l=null,u=0;for(let d=0;d<a;d+=1){let a=t[d];if(!r&&a>=o+this.getEntryThickness(e))break;let f=n[d],p,m=ec(f,e.span.start,Js),h=m[0]+m[1];for(;(p=f[h])&&p.span.start<e.span.end;){let e=a+this.getEntryThickness(p);e>o&&(o=e,l=p,s=d,c=h),e===o&&(u=Math.max(u,i[Ys(p)]+1)),h+=1}}let d=0;if(l)for(d=s+1;d<a&&t[d]<o;)d+=1;let f=-1;return d<a&&t[d]===o&&(f=ec(n[d],e.span.end,Js)[0]),{touchingLevel:s,touchingLateral:c,touchingEntry:l,stackCnt:u,levelCoord:o,level:d,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],a=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:a}))}return r}};function Js(e){return e.span.end}function Ys(e){return e.index+`:`+e.span.start}function Xs(e){let t=[];for(let n of e){let e=[],r={span:n.span,entries:[n]};for(let n of t)Qs(n.span,r.span)?r={entries:n.entries.concat(r.entries),span:Zs(n.span,r.span)}:e.push(n);e.push(r),t=e}return t}function Zs(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Qs(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function $s(e,t,n){e.splice(t,0,n)}function ec(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let a=Math.floor(r+(i-r)/2),o=n(e[a]);if(t<o)i=a;else if(t>o)r=a+1;else return[a,1]}return[r,0]}var tc=class{constructor(e,t){this.emitter=new _o}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}},nc={};function rc(e,t){return B(!e||t>10?{weekday:`short`}:t>1?{weekday:`short`,month:`numeric`,day:`numeric`,omitCommas:!0}:{weekday:`long`})}var ic=`fc-col-header-cell`;function ac(e){return e.text}var oc=class extends H{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:i}=this,{date:a,dateProfile:o}=i,s=ws(a,i.todayRange,null,o),c=[ic].concat(Ts(s,n)),l=e.format(a,i.dayHeaderFormat),u=!s.isDisabled&&i.colCnt>1?Os(this.context,a):{},d=Object.assign(Object.assign(Object.assign({date:e.toDate(a),view:r},i.extraRenderProps),{text:l}),s);return j(U,{elTag:`th`,elClasses:c,elAttrs:Object.assign({role:`columnheader`,colSpan:i.colSpan,"data-date":s.isDisabled?void 0:Gr(a)},i.extraDataAttrs),renderProps:d,generatorName:`dayHeaderContent`,customGenerator:t.dayHeaderContent,defaultGenerator:ac,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},e=>j(`div`,{className:`fc-scrollgrid-sync-inner`},!s.isDisabled&&j(e,{elTag:`a`,elAttrs:u,elClasses:[`fc-col-header-cell-cushion`,i.isSticky&&`fc-sticky`]})))}},sc=B({weekday:`long`}),cc=class extends H{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:i}=this.context,a=I(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=t.format(a,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:a},o),{view:r}),e.extraRenderProps),{text:s});return j(U,{elTag:`th`,elClasses:[ic,...Ts(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:`columnheader`,colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:`dayHeaderContent`,customGenerator:i.dayHeaderContent,defaultGenerator:ac,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},n=>j(`div`,{className:`fc-scrollgrid-sync-inner`},j(n,{elTag:`a`,elClasses:[`fc-col-header-cell-cushion`,e.isSticky&&`fc-sticky`],elAttrs:{"aria-label":t.format(a,sc)}})))}},lc=class extends lt{constructor(e,t){super(e,t),this.initialNowDate=Da(t.options.now,t.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=wr(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,F(1,e.unit)),a=i.valueOf()-n.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:r,todayRange:uc(r)},nextState:{nowDate:i,todayRange:uc(i)},waitMs:a}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}};lc.contextType=Zi;function uc(e){let t=L(e);return{start:t,end:I(t,1)}}var dc=class extends H{constructor(){super(...arguments),this.createDayHeaderFormatter=z(fc)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:i}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return j(lc,{unit:`day`},(e,o)=>j(`tr`,{role:`row`},i&&i(`day`),t.map(e=>r?j(oc,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:a}):j(cc,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a}))))}};function fc(e,t,n){return e||rc(t,n)}var pc=class{constructor(e,t){let n=e.start,{end:r}=e,i=[],a=[],o=-1;for(;n<r;)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),a.push(n)),n=I(n,1);this.dates=a,this.indices=i,this.cnt=a.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(I(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(Er(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}},mc=class{constructor(e,t){let{dates:n}=e,r,i,a;if(t){for(i=n[0].getUTCDay(),r=1;r<n.length&&n[r].getUTCDay()!==i;r+=1);a=Math.ceil(n.length/r)}else a=1,r=n.length;this.rowCnt=a,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:i}=n,a=e;for(;a<=i;){let o=Math.floor(a/t),s=Math.min((o+1)*t,i+1);r.push({row:o,firstCol:a%t,lastCol:(s-1)%t,isStart:n.isStart&&a===e,isEnd:n.isEnd&&s-1===i}),a=s}}return r}},hc=class{constructor(){this.sliceBusinessHours=z(this._sliceBusinessHours),this.sliceDateSelection=z(this._sliceDateSpan),this.sliceEventStore=z(this._sliceEventStore),this.sliceEventDrag=z(this._sliceInteraction),this.sliceEventResize=z(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:a}=e,o=this.sliceEventStore(e.eventStore,a,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,a,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,a,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...i){return this._sliceDateSpan({range:{start:e,end:wr(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(ja(e,gc(t,!!n),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let a=No(e,t,gc(n,!!r),r);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let a=No(e.mutatedEvents,t,gc(n,!!r),r);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...a){if(!e)return[];let o=gc(t,!!n),s=ha(e.range,o);if(s){e=Object.assign(Object.assign({},e),{range:s});let t=rs(e,r,i),n=this.sliceRange(e.range,...a);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&e.ui.display===`list-item`&&(n={start:n.start,end:I(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}};function gc(e,t){let n=e.activeRange;return t?n:{start:wr(n.start,e.slotMinTime.milliseconds),end:wr(n.end,e.slotMaxTime.milliseconds-864e5)}}function _c(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!va(t.validRange,r[e].range))return!1;return yc({eventDrag:e},n)}function vc(e,t,n){return va(t.validRange,e.range)?yc({dateSelection:e},n):!1}function yc(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:``,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:``,eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||bc)(r,t)}function bc(e,t,n={},r){return!(e.eventDrag&&!xc(e,t,n,r)||e.dateSelection&&!Sc(e,t,n,r))}function xc(e,t,n,r){let i=t.getCurrentData(),a=e.eventDrag,o=a.mutatedEvents,s=o.defs,c=o.instances,l=Lo(s,a.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(l=Ai(l,r));let u=ho(e.eventStore,a.affectedEvents.instances),d=u.defs,f=u.instances,p=Lo(d,e.eventUiBases);for(let r in c){let o=c[r],m=o.range,h=l[o.defId],g=s[o.defId];if(!Cc(h.constraints,m,u,e.businessHours,t))return!1;let{eventOverlap:_}=t.options,v=typeof _==`function`?_:null;for(let e in f){let n=f[e];if(_a(m,n.range)&&(p[n.defId].overlap===!1&&a.isEvent||h.overlap===!1||v&&!v(new G(t,d[n.defId],n),new G(t,g,o))))return!1}let y=i.eventStore;for(let e of h.allows){let i=Object.assign(Object.assign({},n),{range:o.range,allDay:g.allDay}),a=y.defs[g.defId],s=y.instances[r],c;if(c=a?new G(t,a,s):new G(t,g),!e(To(i,t),c))return!1}}return!0}function Sc(e,t,n,r){let i=e.eventStore,a=i.defs,o=i.instances,s=e.dateSelection,c=s.range,{selectionConfig:l}=t.getCurrentData();if(r&&(l=r(l)),!Cc(l.constraints,c,i,e.businessHours,t))return!1;let{selectOverlap:u}=t.options,d=typeof u==`function`?u:null;for(let e in o){let n=o[e];if(_a(c,n.range)&&(l.overlap===!1||d&&!d(new G(t,a[n.defId],n),null)))return!1}for(let e of l.allows)if(!e(To(Object.assign(Object.assign({},n),s),t),null))return!1;return!0}function Cc(e,t,n,r,i){for(let a of e)if(!Ec(wc(a,t,n,r,i),t))return!1;return!0}function wc(e,t,n,r,i){return e===`businessHours`?Tc(ja(r,t,i)):typeof e==`string`?Tc(qa(n,t=>t.groupId===e)):typeof e==`object`&&e?Tc(ja(e,t,i)):[]}function Tc(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function Ec(e,t){for(let n of e)if(va(n,t))return!0;return!1}var Dc=/^(visible|hidden)$/,Oc=class extends H{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,na(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,i=[`fc-scroller`];return t&&(n?i.push(`fc-scroller-liquid-absolute`):i.push(`fc-scroller-liquid`)),j(`div`,{ref:this.handleEl,className:i.join(` `),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||``,right:r&&-(e.overcomeRight||0)||``,bottom:r&&-(e.overcomeBottom||0)||``,marginLeft:!r&&-(e.overcomeLeft||0)||``,marginRight:!r&&-(e.overcomeRight||0)||``,marginBottom:!r&&-(e.overcomeBottom||0)||``,maxHeight:e.maxHeight||``}},e.children)}needsXScrolling(){if(Dc.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(Dc.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return Dc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Dc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}},kc=class{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,a=!1;e===null?(--n[t],n[t]||(delete r[t],delete this.callbackMap[t],i=!0)):(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,a=!0),this.masterCallback&&(i&&this.masterCallback(null,String(t)),a&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||=this.callbackMap[e]=t=>{this.handleValue(t,String(e))},t}collect(e,t,n){return zi(this.currentMap,e,t,n)}getAll(){return Mi(this.currentMap)}};function Ac(e){let t=kn(e,`.fc-scrollgrid-shrink`),n=0;for(let e of t)n=Math.max(n,or(e));return Math.ceil(n)}function jc(e,t){return e.liquid&&t.liquid}function Mc(e,t){return t.maxHeight!=null||jc(e,t)}function Nc(e,t,n,r){let{expandRows:i}=n;return typeof t.content==`function`?t.content(n):j(`table`,{role:`presentation`,className:[t.tableClassName,e.syncRowHeights?`fc-scrollgrid-sync-table`:``].join(` `),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:``}},n.tableColGroupNode,j(r?`thead`:`tbody`,{role:`presentation`},typeof t.rowContent==`function`?t.rowContent(n):t.rowContent))}function Pc(e,t){return xr(e,t,Ni)}function Fc(e,t){let n=[];for(let r of e){let e=r.span||1;for(let i=0;i<e;i+=1)n.push(j(`col`,{style:{width:r.width===`shrink`?Ic(t):r.width||``,minWidth:r.minWidth||``}}))}return j(`colgroup`,{},...n)}function Ic(e){return e??4}function Lc(e){for(let t of e)if(t.width===`shrink`)return!0;return!1}function Rc(e,t){let n=[`fc-scrollgrid`,t.theme.getClass(`table`)];return e&&n.push(`fc-scrollgrid-liquid`),n}function zc(e,t){let n=[`fc-scrollgrid-section`,`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push(`fc-scrollgrid-section-liquid`),e.isSticky&&n.push(`fc-scrollgrid-section-sticky`),n}function Bc(e){return j(`div`,{className:`fc-scrollgrid-sticky-shim`,style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Vc(e){let{stickyHeaderDates:t}=e;return(t==null||t===`auto`)&&(t=e.height===`auto`||e.viewHeight===`auto`),t}function Hc(e){let{stickyFooterScrollbar:t}=e;return(t==null||t===`auto`)&&(t=e.height===`auto`||e.viewHeight===`auto`),t}var Uc=class extends H{constructor(){super(...arguments),this.processCols=z(e=>e,Pc),this.renderMicroColGroup=z(Fc),this.scrollerRefs=new kc,this.scrollerElRefs=new kc(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],i=this.processCols(e.cols),a=this.renderMicroColGroup(i,t.shrinkWidth),o=Rc(e.liquid,n);e.collapsibleWidth&&o.push(`fc-scrollgrid-collapsible`);let s=r.length,c=0,l,u=[],d=[],f=[];for(;c<s&&(l=r[c]).type===`header`;)u.push(this.renderSection(l,a,!0)),c+=1;for(;c<s&&(l=r[c]).type===`body`;)d.push(this.renderSection(l,a,!1)),c+=1;for(;c<s&&(l=r[c]).type===`footer`;)f.push(this.renderSection(l,a,!0)),c+=1;let p=!cs(),m={role:`rowgroup`};return j(`table`,{role:`grid`,className:o.join(` `),style:{height:e.height}},!!(!p&&u.length)&&j(`thead`,m,...u),!!(!p&&d.length)&&j(`tbody`,m,...d),!!(!p&&f.length)&&j(`tfoot`,m,...f),p&&j(`tbody`,m,...u,...d,...f))}renderSection(e,t,n){return`outerContent`in e?j(N,{key:e.key},e.outerContent):j(`tr`,{key:e.key,role:`presentation`,className:zc(e,this.props.liquid).join(` `)},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if(`outerContent`in n)return n.outerContent;let{props:i}=this,{forceYScrollbars:a,scrollerClientWidths:o,scrollerClientHeights:s}=this.state,c=Mc(i,e),l=jc(i,e),u=i.liquid?a?`scroll`:c?`auto`:`hidden`:`visible`,d=e.key,f=Nc(e,n,{tableColGroupNode:t,tableMinWidth:``,clientWidth:!i.collapsibleWidth&&o[d]!==void 0?o[d]:null,clientHeight:s[d]===void 0?null:s[d],expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return j(r?`th`:`td`,{ref:n.elRef,role:`presentation`},j(`div`,{className:`fc-scroller-harness${l?` fc-scroller-harness-liquid`:``}`},j(Oc,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:u,overflowX:i.liquid?`hidden`:`visible`,maxHeight:e.maxHeight,liquid:l,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=Wc(this.props.sections,t);n&&na(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Lc(this.props.cols)?Ac(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Ns(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},a={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let o=t.key,s=n.currentMap[o];if(s){let t=s.parentNode;i[o]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),a[o]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:a}}};Uc.addStateEquality({scrollerClientWidths:Ni,scrollerClientHeights:Ni});function Wc(e,t){for(let n of e)if(n.key===t)return n;return null}var Gc=class extends H{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Fo(e,this.props.seg)}}render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:i}=r,{ui:a}=i,o={event:new G(t,i.def,i.instance),view:t.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Vo(r,t),isStartResizable:!e.disableResizing&&Ho(r,t),isEndResizable:!e.disableResizing&&Uo(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return j(U,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Ko(o),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:o,generatorName:`eventContent`,customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Fo(this.el,this.props.seg)}},Kc=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:i}=r.eventRange,a=Wo(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return j(Gc,Object.assign({},e,{elTag:`a`,elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:Jo(r,t),defaultGenerator:qc,timeText:a}),(e,t)=>j(N,null,j(e,{elTag:`div`,elClasses:[`fc-event-main`],elStyle:{color:t.textColor}}),!!t.isStartResizable&&j(`div`,{className:`fc-event-resizer fc-event-resizer-start`}),!!t.isEndResizable&&j(`div`,{className:`fc-event-resizer fc-event-resizer-end`})))}};function qc(e){return j(`div`,{className:`fc-event-main-frame`},e.timeText&&j(`div`,{className:`fc-event-time`},e.timeText),j(`div`,{className:`fc-event-title-container`},j(`div`,{className:`fc-event-title fc-sticky`},e.event.title||j(N,null,`\xA0`))))}var Jc=e=>j(Zi.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return j(U,Object.assign({},e,{elTag:e.elTag||`div`,renderProps:r,generatorName:`nowIndicatorContent`,customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Yc=B({day:`numeric`}),Xc=class extends H{constructor(){super(...arguments),this.refineRenderProps=Yr(Qc)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return j(U,Object.assign({},e,{elClasses:[...Ts(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":Gr(e.date)}),renderProps:r,generatorName:`dayCellContent`,customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}};function Zc(e){return!!(e.dayCellContent||ia(`dayCellContent`,e))}function Qc(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,a=ws(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,i?e.monthStartFormat:Yc):``;return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},a),{isMonthStart:i,dayNumberText:o}),e.extraRenderProps)}var $c=class extends H{render(){let{props:e}=this,{seg:t}=e;return j(Gc,{elTag:`div`,elClasses:[`fc-bg-event`],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:el,seg:t,timeText:``,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}};function el(e){let{title:t}=e.event;return t&&j(`div`,{className:`fc-event-title`},e.event.title)}function tl(e){return j(`div`,{className:`fc-${e}`})}var nl=e=>j(Zi.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,a=r.weekNumberFormat||e.defaultFormat,o={num:n.computeWeekNumber(i),text:n.format(i,a),date:i};return j(U,Object.assign({},e,{renderProps:o,generatorName:`weekNumberContent`,customGenerator:r.weekNumberContent,defaultGenerator:rl,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function rl(e){return e.text}var il=10,al=class extends H{constructor(){super(...arguments),this.state={titleId:Fn()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&na(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let t=Nn(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,i=[`fc-popover`,e.getClass(`popover`)].concat(n.extraClassNames||[]);return rn(j(`div`,Object.assign({},n.extraAttrs,{id:n.id,className:i.join(` `),"aria-labelledby":r.titleId,ref:this.handleRootEl}),j(`div`,{className:`fc-popover-header `+e.getClass(`popoverHeader`)},j(`span`,{className:`fc-popover-title`,id:r.titleId},n.title),j(`span`,{className:`fc-popover-close `+e.getIconClass(`close`),title:t.closeHint,onClick:this.handleCloseClick})),j(`div`,{className:`fc-popover-body `+e.getClass(`popoverContent`)},n.children)),n.parentEl)}componentDidMount(){document.addEventListener(`mousedown`,this.handleDocumentMouseDown),document.addEventListener(`keydown`,this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener(`mousedown`,this.handleDocumentMouseDown),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=zs(t);if(i){let a=r.getBoundingClientRect(),o=n?P(t,`.fc-scrollgrid`).getBoundingClientRect().top:i.top,s=e?i.right-a.width:i.left;o=Math.max(o,il),s=Math.min(s,document.documentElement.clientWidth-il-a.width),s=Math.max(s,il);let c=r.offsetParent.getBoundingClientRect();jn(r,{top:o-c.top,left:s-c.left})}}},ol=class extends Ks{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:i,dateProfile:a}=n,o=t.format(r,e.dayPopoverFormat);return j(Xc,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:i},(t,r,i)=>j(al,{elRef:i.ref,id:n.id,title:o,extraClassNames:[`fc-more-popover`].concat(i.className||[]),extraAttrs:i,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Zc(e)&&j(t,{elTag:`div`,elClasses:[`fc-more-popover-misc`]}),n.children))}queryHit(e,t,n,r){let{rootEl:i,props:a}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}},sl=class extends H{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Fn()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&na(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=ll(t).start;function a(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new G(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}typeof r==`function`&&(r=r({date:i,allDay:!!t.allDayDate,allSegs:t.allSegs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),!r||r===`popover`?this.setState({isPopoverOpen:!0}):typeof r==`string`&&n.calendarApi.zoomTo(i,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return j(Zi.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:a}=n,{moreLinkText:o}=i,{moreCnt:s}=e,c=ll(e),l=typeof o==`function`?o.call(a,s):`+${s} ${o}`,u=rr(i.moreLinkHint,[s],l),d={num:s,shortText:`+${s}`,text:l,view:r};return j(N,null,!!e.moreCnt&&j(U,{elTag:e.elTag||`a`,elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],`fc-more-link`],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Hn(this.handleClick)),{title:u,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:``}),renderProps:d,generatorName:`moreLinkContent`,customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||cl,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),t.isPopoverOpen&&j(ol,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=P(this.linkEl,`.fc-view-harness`))}};function cl(e){return e.text}function ll(e){if(e.allDayDate)return{start:e.allDayDate,end:I(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:ul(t),end:fl(t)}}function ul(e){return e.reduce(dl).eventRange.range.start}function dl(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function fl(e){return e.reduce(pl).eventRange.range.end}function pl(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var ml=class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}},hl=class extends ml{constructor(){super(...arguments),this.map=new Map}handle(e){let{map:t}=this,n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}},gl=[],_l={code:`en`,week:{dow:0,doy:4},direction:`ltr`,buttonText:{prev:`prev`,next:`next`,prevYear:`prev year`,nextYear:`next year`,year:`year`,today:`today`,month:`month`,week:`week`,day:`day`,list:`list`},weekText:`W`,weekTextLong:`Week`,closeHint:`Close`,timeHint:`Time`,eventHint:`Event`,allDayText:`all-day`,moreLinkText:`more`,noEventsText:`No events to display`},vl=Object.assign(Object.assign({},_l),{buttonHints:{prev:`Previous $0`,next:`Next $0`,today(e,t){return t===`day`?`Today`:`This ${e}`}},viewHint:`$0 view`,navLinkHint:`Go to $0`,moreLinkHint(e){return`Show ${e} more event${e===1?``:`s`}`}});function yl(e){let t=e.length>0?e[0].code:`en`,n=gl.concat(e),r={en:vl};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function bl(e,t){return typeof e==`object`&&!Array.isArray(e)?Cl(e.code,[e.code],e):xl(e,t)}function xl(e,t){let n=[].concat(e||[]);return Cl(e,n,Sl(n,t)||vl)}function Sl(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split(`-`);for(let e=r.length;e>0;--e){let n=r.slice(0,e).join(`-`);if(t[n])return t[n]}}return null}function Cl(e,t,n){let r=Oi([_l,n],[`buttonText`]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function wl(e){return{id:Gn(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||``,elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Tl(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:``,elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){let e=t.name,a=n[e];a===void 0?(n[e]=t.id,i(t.deps),r=Dl(r,t)):a!==t.id&&console.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}function El(){let e=[],t=[],n;return(r,i)=>((!n||!xr(r,e)||!xr(i,t))&&(n=Tl(r,i)),e=r,t=i,n)}function Dl(e,t){return{premiumReleaseDate:Ol(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function Ol(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}var kl=class extends Ki{};kl.prototype.classes={root:`fc-theme-standard`,tableCellShaded:`fc-cell-shaded`,buttonGroup:`fc-button-group`,button:`fc-button fc-button-primary`,buttonActive:`fc-button-active`},kl.prototype.baseIconClass=`fc-icon`,kl.prototype.iconClasses={close:`fc-icon-x`,prev:`fc-icon-chevron-left`,next:`fc-icon-chevron-right`,prevYear:`fc-icon-chevrons-left`,nextYear:`fc-icon-chevrons-right`},kl.prototype.rtlIconClasses={prev:`fc-icon-chevron-right`,next:`fc-icon-chevron-left`,prevYear:`fc-icon-chevrons-right`,nextYear:`fc-icon-chevrons-left`},kl.prototype.iconOverrideOption=`buttonIcons`,kl.prototype.iconOverrideCustomButtonOption=`icon`,kl.prototype.iconOverridePrefix=`fc-icon-`;function Al(e,t){let n={},r;for(r in e)jl(r,n,e,t);for(r in t)jl(r,n,e,t);return n}function jl(e,t,n,r){if(t[e])return t[e];let i=Ml(e,t,n,r);return i&&(t[e]=i),i}function Ml(e,t,n,r){let i=n[e],a=r[e],o=e=>i&&i[e]!==null?i[e]:a&&a[e]!==null?a[e]:null,s=o(`component`),c=o(`superType`),l=null;if(c){if(c===e)throw Error(`Can't have a custom view type that references itself`);l=jl(c,t,n,r)}return!s&&l&&(s=l.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},l?l.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},l?l.overrides:{}),a?a.rawOptions:{})}:null}function Nl(e){return Ai(e,Pl)}function Pl(e){let t=typeof e==`function`?{component:e}:e,{component:n}=t;return t.content?n=Fl(t):n&&!(n.prototype instanceof H)&&(n=Fl(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Fl(e){return t=>j(Zi.Consumer,null,n=>j(U,{elTag:`div`,elClasses:da(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function Il(e,t,n,r){let i=Nl(e),a=Nl(t.views);return Ai(Al(i,a),e=>Ll(e,a,t,n,r))}function Ll(e,t,n,r,i){let a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,s=``,c=``,l={};if(a&&(o=zl(a),o)){let e=br(o);s=e.unit,e.value===1&&(c=s,l=t[s]?t[s].rawOptions:{})}let u=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return r!=null&&n[r]!=null?n[r]:n[e.type]==null?n[c]==null?null:n[c]:n[e.type]},d=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return r!=null&&n[r]!=null?n[r]:n[e.type]==null?n[c]==null?null:n[c]:n[e.type]};return{type:e.type,component:e.component,duration:o,durationUnit:s,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},l),e.overrides),buttonTextOverride:u(r)||u(n)||e.overrides.buttonText,buttonTextDefault:u(i)||e.defaults.buttonText||u(vi)||e.type,buttonTitleOverride:d(r)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(i)||e.defaults.buttonHint||d(vi)}}var Rl={};function zl(e){let t=JSON.stringify(e),n=Rl[t];return n===void 0&&(n=F(e),Rl[t]=n),n}function Bl(e,t){switch(t.type){case`CHANGE_VIEW_TYPE`:e=t.viewType}return e}function Vl(e,t){switch(t.type){case`SET_OPTION`:return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function Hl(e,t,n,r){let i;switch(t.type){case`CHANGE_VIEW_TYPE`:return r.build(t.dateMarker||n);case`CHANGE_DATE`:return r.build(t.dateMarker);case`PREV`:if(i=r.buildPrev(e,n),i.isValid)return i;break;case`NEXT`:if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function Ul(e,t,n){let r=t?t.activeRange:null;return ql({},tu(e,n),r,n)}function Wl(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case`ADD_EVENT_SOURCES`:return ql(e,t.sources,i,r);case`REMOVE_EVENT_SOURCE`:return Jl(e,t.sourceId);case`PREV`:case`NEXT`:case`CHANGE_DATE`:case`CHANGE_VIEW_TYPE`:return n?Yl(e,i,r):e;case`FETCH_EVENT_SOURCES`:return Zl(e,t.sourceIds?ji(t.sourceIds):eu(e,r),i,t.isRefetch||!1,r);case`RECEIVE_EVENTS`:case`RECEIVE_EVENT_ERROR`:return $l(e,t.sourceId,t.fetchId,t.fetchRange);case`REMOVE_ALL_EVENT_SOURCES`:return{};default:return e}}function Gl(e,t,n){let r=t?t.activeRange:null;return Zl(e,eu(e,n),r,!0,n)}function Kl(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function ql(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=Yl(i,n,r)),Object.assign(Object.assign({},e),i)}function Jl(e,t){return ki(e,e=>e.sourceId!==t)}function Yl(e,t,n){return Zl(e,ki(e,e=>Xl(e,t,n)),t,!1,n)}function Xl(e,t,n){return nu(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function Zl(e,t,n,r,i){let a={};for(let o in e){let s=e[o];t[o]?a[o]=Ql(s,n,r,i):a[o]=s}return a}function Ql(e,t,n,r){let{options:i,calendarApi:a}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Gn();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(a,o,n.response)||o),e.success&&(o=e.success.call(a,o,n.response)||o),r.dispatch({type:`RECEIVE_EVENTS`,sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:o})},n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(a,n),o=!0),e.failure&&(e.failure(n),o=!0),o||console.warn(n.message,n),r.dispatch({type:`RECEIVE_EVENT_ERROR`,sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function $l(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function eu(e,t){return ki(e,e=>nu(e,t))}function tu(e,t){let n=io(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let e of r){let r=ro(e,t,n);r&&i.push(r)}return i}function nu(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ru(e,t){switch(t.type){case`UNSELECT_DATES`:return null;case`SELECT_DATES`:return t.selection;default:return e}}function iu(e,t){switch(t.type){case`UNSELECT_EVENT`:return``;case`SELECT_EVENT`:return t.eventInstanceId;default:return e}}function au(e,t){let n;switch(t.type){case`UNSET_EVENT_DRAG`:return null;case`SET_EVENT_DRAG`:return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ou(e,t){let n;switch(t.type){case`UNSET_EVENT_RESIZE`:return null;case`SET_EVENT_RESIZE`:return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function su(e,t,n,r,i){return{header:e.headerToolbar?cu(e.headerToolbar,e,t,n,r,i):null,footer:e.footerToolbar?cu(e.footerToolbar,e,t,n,r,i):null}}function cu(e,t,n,r,i,a){let o={},s=[],c=!1;for(let l in e){let u=e[l],d=lu(u,t,n,r,i,a);o[l]=d.widgets,s.push(...d.viewsWithButtons),c||=d.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:c}}function lu(e,t,n,r,i,a){let o=t.direction===`rtl`,s=t.customButtons||{},c=n.buttonText||{},l=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(` `):[],p=[],m=!1;return{widgets:f.map(e=>e.split(`,`).map(e=>{if(e===`title`)return m=!0,{buttonName:e};let n,f,h,g,_,v;if(n=s[e])h=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,o))||(_=n.text),v=n.hint||n.text;else if(f=i[e]){p.push(e),h=()=>{a.changeView(e)},(_=f.buttonTextOverride)||(g=r.getIconClass(e,o))||(_=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;v=rr(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(a[e])if(h=()=>{a[e]()},(_=c[e])||(g=r.getIconClass(e,o))||(_=l[e]),e===`prevYear`||e===`nextYear`){let t=e===`prevYear`?`prev`:`next`;v=rr(u[t]||d[t],[l.year||`year`,`year`],l[e])}else v=t=>rr(u[e]||d[e],[l[t]||t,t],l[e]);return{buttonName:e,buttonClick:h,buttonIcon:g,buttonText:_,buttonHint:v}})),viewsWithButtons:p,hasTitle:m}}var uu=class{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}},du=wl({name:`array-event-source`,eventSourceDefs:[{ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),fu=wl({name:`func-event-source`,eventSourceDefs:[{parseMeta(e){return typeof e.events==`function`?e.events:null},fetch(e,t,n){let{dateEnv:r}=e.context,i=e.eventSource.meta;is(i.bind(null,ts(e.range,r)),e=>t({rawEvents:e}),n)}}]}),pu=wl({name:`json-event-source`,eventSourceRefiners:{method:String,extraParams:V,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(e){return e.url&&(e.format===`json`||!e.format)?{url:e.url,format:`json`,method:(e.method||`GET`).toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch(e,t,n){let{meta:r}=e.eventSource,i=mu(r,e.range,e.context);os(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]});function mu(e,t,n){let{dateEnv:r,options:i}=n,a,o,s,c,l={};return a=e.startParam,a??=i.startParam,o=e.endParam,o??=i.endParam,s=e.timeZoneParam,s??=i.timeZoneParam,c=typeof e.extraParams==`function`?e.extraParams():e.extraParams||{},Object.assign(l,c),l[a]=r.formatIso(t.start),l[o]=r.formatIso(t.end),r.timeZone!==`local`&&(l[s]=r.timeZone),l}var hu=wl({name:`simple-recurring-event`,recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=pr(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:r,typeData:n}}return null},expand(e,t,n){let r=ha(t,{start:e.startRecur,end:e.endRecur});return r?gu(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:V,startTime:F,endTime:F,duration:F,startRecur:V,endRecur:V}});function gu(e,t,n,r){let i=e?ji(e):null,a=L(n.start),o=n.end,s=[];for(;a<o;){let e;(!i||i[a.getUTCDay()])&&(e=t?r.add(a,t):a,s.push(e)),a=I(a,1)}return s}var _u=wl({name:`change-handler`,optionChangeHandlers:{events(e,t){vu([e],t)},eventSources:vu}});function vu(e,t){let n=Mi(t.getCurrentData().eventSources);if(n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])){t.dispatch({type:`RESET_RAW_EVENTS`,sourceId:n[0].sourceId,rawEvents:e[0]});return}let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:`REMOVE_EVENT_SOURCE`,sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}function yu(e,t){t.emitter.trigger(`datesSet`,Object.assign(Object.assign({},ts(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function bu(e,t){let{emitter:n}=t;n.hasHandlers(`eventsSet`)&&n.trigger(`eventsSet`,Mo(e,t))}var xu=[du,fu,pu,hu,_u,wl({name:`misc`,isLoadingFuncs:[e=>Kl(e.eventSources)],propSetHandlers:{dateProfile:yu,eventStore:bu}})],Su=class{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new En(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t=[],n;for(;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}};function Cu(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,B(t.titleFormat||wu(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function wu(e){let{currentRangeUnit:t}=e;if(t===`year`)return{year:`numeric`};if(t===`month`)return{year:`numeric`,month:`long`};let n=Mr(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:`numeric`,month:`short`,day:`numeric`}:{year:`numeric`,month:`long`,day:`numeric`}}var Tu=class{constructor(e){this.computeCurrentViewData=z(this._computeCurrentViewData),this.organizeRawLocales=z(yl),this.buildLocale=z(bl),this.buildPluginHooks=El(),this.buildDateEnv=z(Eu),this.buildTheme=z(Du),this.parseToolbars=z(su),this.buildViewSpecs=z(Il),this.buildDateProfileGenerator=Yr(Ou),this.buildViewApi=z(ku),this.buildViewUiProps=Yr(Mu),this.buildEventUiBySource=z(Au,Ni),this.buildEventUiBases=z(ju),this.parseContextBusinessHours=Yr(Pu),this.buildTitle=z(Cu),this.emitter=new _o,this.actionRunner=new Su(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let a=Ea(n.calendarOptions,n.dateEnv),o=i.dateProfileGenerator.build(a);ya(o.activeRange,a)||(a=o.currentRange.start);let s={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(s);let c=Ul(n.calendarOptions,o,s),l={dynamicOptionOverrides:t,currentViewType:r,currentDate:a,dateProfile:o,businessHours:this.parseContextBusinessHours(s),eventSources:c,eventUiBases:{},eventStore:W(),renderableEventStore:W(),dateSelection:null,eventSelection:``,eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},u=Object.assign(Object.assign({},s),l);for(let e of n.pluginHooks.reducers)Object.assign(l,e(null,null,u));Nu(l,s)&&this.emitter.trigger(`loading`,!0),this.state=l,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;t===void 0?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(t===void 0||t.length)&&this.actionRunner.request({type:`NOTHING`})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=Vl(n.dynamicOptionOverrides,e),a=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=Bl(n.currentViewType,e),s=this.computeCurrentViewData(o,a,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);let c={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:l,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(u=s.dateProfileGenerator.build(l)),l=Ta(l,e),u=Hl(u,e,l,s.dateProfileGenerator),(e.type===`PREV`||e.type===`NEXT`||!ya(u.currentRange,l))&&(l=u.currentRange.start);let d=Wl(n.eventSources,e,u,c),f=oo(n.eventStore,e,d,u,c),p=Kl(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:m,selectionConfig:h}=this.buildViewUiProps(c),g=this.buildEventUiBySource(d),_=this.buildEventUiBases(p.defs,m,g),v={dynamicOptionOverrides:i,currentViewType:o,currentDate:l,dateProfile:u,eventSources:d,eventStore:f,renderableEventStore:p,selectionConfig:h,eventUiBases:_,businessHours:this.parseContextBusinessHours(c),dateSelection:ru(n.dateSelection,e),eventSelection:iu(n.eventSelection,e),eventDrag:au(n.eventDrag,e),eventResize:ou(n.eventResize,e)},y=Object.assign(Object.assign({},c),v);for(let t of a.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=Nu(n,c),ee=Nu(v,c);!b&&ee?r.trigger(`loading`,!0):b&&!ee&&r.trigger(`loading`,!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,i.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),o=r.pluginHooks.optionChangeHandlers,s=n&&n.calendarOptions,c=r.calendarOptions;if(s&&s!==c)for(let e in s.timeZone!==c.timeZone&&(t.eventSources=a.eventSources=Gl(a.eventSources,t.dateProfile,a),t.eventStore=a.eventStore=po(a.eventStore,n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=po(a.renderableEventStore,n.dateEnv,a.dateEnv)),o)(this.optionsForHandling.indexOf(e)!==-1||s[e]!==c[e])&&o[e](c[e],a);this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:a,availableLocaleData:o,extra:s}=this.processRawCalendarOptions(e,t);Fu(s);let c=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,o,r.defaultRangeSeparator),l=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),u=this.buildTheme(r,i);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:c,viewSpecs:l,theme:u,toolbarConfig:this.parseToolbars(r,this.stableOptionOverrides,u,l,n),localeDefaults:a,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Ti([vi,e,t]),i=this.organizeRawLocales(n),a=i.map,o=this.buildLocale(r||i.defaultCode,a).options,s=this.buildPluginHooks(e.plugins||[],xu),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_i),yi),bi),s.listenerRefiners),s.optionRefiners),l={},u=Ti([vi,o,e,t]),d={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,m=!1;for(let e in u)this.optionsForRefining.indexOf(e)===-1&&(u[e]===f[e]||xi[e]&&e in f&&xi[e](f[e],u[e]))?d[e]=p[e]:c[e]?(d[e]=c[e](u[e]),m=!0):l[e]=f[e];return m&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:i,localeDefaults:o,extra:l}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:o}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);return Fu(o),{viewSpec:i,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let a=Ti([vi,e.optionDefaults,n,r,e.optionOverrides,i]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_i),yi),bi),wi),t.listenerRefiners),t.optionRefiners),s={},c=this.currentViewOptionsInput,l=this.currentViewOptionsRefined,u=!1,d={};for(let e in a)a[e]===c[e]||xi[e]&&xi[e](a[e],c[e])?s[e]=l[e]:(a[e]===this.currentCalendarOptionsInput[e]||xi[e]&&xi[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):o[e]?s[e]=o[e](a[e]):d[e]=a[e],u=!0);return u&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}};function Eu(e,t,n,r,i,a,o,s){let c=bl(t||o.defaultCode,o.map);return new Gi({calendarSystem:`gregory`,timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function Du(e,t){return new(t.themeClasses[e.themeSystem]||kl)(e)}function Ou(e){return new(e.dateProfileGeneratorClass||Oa)(e)}function ku(e,t,n){return new uu(e,t,n)}function Au(e){return Ai(e,e=>e.ui)}function ju(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function Mu(e){let{options:t}=e;return{eventUiSingleBase:$a({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap==`boolean`?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:$a({constraint:t.selectConstraint,overlap:typeof t.selectOverlap==`boolean`?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Nu(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Pu(e){return xo(e.options.businessHours,e)}function Fu(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:``))}var Iu=class extends H{render(){return j(`div`,{className:`fc-toolbar-chunk`},...this.props.widgetGroups.map(e=>this.renderWidgetGroup(e)))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],i=!0;for(let a of e){let{buttonName:e,buttonClick:o,buttonText:s,buttonIcon:c,buttonHint:l}=a;if(e===`title`)i=!1,r.push(j(`h2`,{className:`fc-toolbar-title`,id:t.titleId},t.title));else{let i=e===t.activeButton,a=!t.isTodayEnabled&&e===`today`||!t.isPrevEnabled&&e===`prev`||!t.isNextEnabled&&e===`next`,u=[`fc-${e}-button`,n.getClass(`button`)];i&&u.push(n.getClass(`buttonActive`)),r.push(j(`button`,{type:`button`,title:typeof l==`function`?l(t.navUnit):l,disabled:a,"aria-pressed":i,className:u.join(` `),onClick:o},s||(c?j(`span`,{className:c,role:`img`}):``)))}}return r.length>1?j(`div`,{className:i&&n.getClass(`buttonGroup`)||``},...r):r[0]}},Lu=class extends H{render(){let{model:e,extraClassName:t}=this.props,n=!1,r,i,a=e.sectionWidgets,o=a.center;return a.left?(n=!0,r=a.left):r=a.start,a.right?(n=!0,i=a.right):i=a.end,j(`div`,{className:[t||``,`fc-toolbar`,n?`fc-toolbar-ltr`:``].join(` `)},this.renderSection(`start`,r||[]),this.renderSection(`center`,o||[]),this.renderSection(`end`,i||[]))}renderSection(e,t){let{props:n}=this;return j(Iu,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}},Ru=class extends H{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,na(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=[`fc-view-harness`,n||e.liquid||e.height?`fc-view-harness-active`:`fc-view-harness-passive`],i=``,a=``;return n?t.availableWidth===null?a=`${1/n*100}%`:i=t.availableWidth/n:i=e.height||``,j(`div`,{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(` `),style:{height:i,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}},zu=class extends ds{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=Io(t);if(i&&n.isValidSegDownEl(e.target)){let a=P(e.target,`.fc-event-forced-url`),o=a?a.querySelector(`a[href]`).href:``;r.emitter.trigger(`eventClick`,{el:t,event:new G(n.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=Rn(e.el,`click`,`.fc-event`,this.handleSegClick)}},Bu=class extends ds{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Io(t)&&(this.currentSegEl=t,this.triggerEvent(`eventMouseEnter`,e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent(`eventMouseLeave`,e,t))},this.removeHoverListeners=zn(e.el,`.fc-event`,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,a=Io(n);(!t||r.isValidSegDownEl(t.target))&&i.emitter.trigger(e,{el:n,event:new G(i,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:i.viewApi})}},Vu=class extends $i{constructor(){super(...arguments),this.buildViewContext=z(Qi),this.buildViewPropTransformers=z(Uu),this.buildToolbarProps=z(Hu),this.headerRef=M(),this.footerRef=M(),this.interactionsStore={},this.state={viewLabelId:Fn()},this.registerInteractiveComponent=(e,t)=>{let n=fs(e,t),r=[zu,Bu].concat(this.props.pluginHooks.componentInteractions).map(e=>new e(n));this.interactionsStore[e.uid]=r,ms[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete ms[e.uid]},this.resizeRunner=new En(()=>{this.props.emitter.trigger(`_resize`,!0),this.props.emitter.trigger(`windowResize`,{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:t,options:n}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Da(e.options.now,e.dateEnv),e.viewTitle),i=!1,a=``,o;e.isHeightAuto||e.forPrint?a=``:n.height==null?n.contentHeight==null?o=Math.max(n.aspectRatio,.5):a=n.contentHeight:i=!0;let s=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=t.header&&t.header.hasTitle?this.state.viewLabelId:void 0;return j(Zi.Provider,{value:s},t.header&&j(Lu,Object.assign({ref:this.headerRef,extraClassName:`fc-header-toolbar`,model:t.header,titleId:c},r)),j(Ru,{liquid:i,height:a,aspectRatio:o,labeledById:c},this.renderView(e),this.buildAppendContent()),t.footer&&j(Lu,Object.assign({ref:this.footerRef,extraClassName:`fc-footer-toolbar`,model:t.footer,titleId:``},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e)),window.addEventListener(`resize`,this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener(`resize`,this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger(`_unmount`)}buildAppendContent(){let{props:e}=this;return j(N,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of i)Object.assign(r,t.transform(r,e));let a=n.component;return j(a,Object.assign({},r))}};function Hu(e,t,n,r,i,a){let o=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),c=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!ya(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:c.isValid}}function Uu(e){return e.map(e=>new e)}var Wu=class extends hs{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case`SET_EVENT_DRAG`:case`SET_EVENT_RESIZE`:this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;qi(()=>{Et(j(us,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r,i)=>(this.setClassNames(t),this.setHeight(n),j(sa.Provider,{value:this.customContentRenderId},j(Vu,Object.assign({isHeightAuto:r,forPrint:i},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Et(null,this.el),this.setClassNames([]),this.setHeight(``))},yn(e),this.el=e,this.renderRunner=new En(this.handleRenderRequest),new Tu({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){qi(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause(`batchRendering`),e(),this.renderRunner.resume(`batchRendering`)}pauseRendering(){this.renderRunner.pause(`pauseRendering`)}resumeRendering(){this.renderRunner.resume(`pauseRendering`,!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!xr(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Mn(this.el,`height`,e)}};const Gu={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};var Ku=C({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return Ju(this).calendar},buildOptions(e){return{...e,customRenderingMetaMap:Xu(this.$slots),handleCustomRendering:Ju(this).handleCustomRendering}}},render(){let e=[];for(let t of this.customRenderingMap.values())e.push(S(qu,{key:t.id,customRendering:t}));return S(`div`,{attrs:{"data-fc-render-id":this.renderId}},S(Ae,e))},mounted(){let e=new hl;Ju(this).handleCustomRendering=e.handle.bind(e);let t=this.buildOptions(this.options),n=new Wu(this.$el,t);Ju(this).calendar=n,n.render(),e.subscribe(e=>{this.customRenderingMap=e,this.renderId++,Ju(this).needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){Ju(this).needCustomRenderingResize&&(Ju(this).needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Yu()}),qu=C({props:{customRendering:Object},render(){let e=this.customRendering,t=typeof e.generatorMeta==`function`?e.generatorMeta(e.renderProps):e.generatorMeta;return S(Se,{to:e.containerEl},t)}});function Ju(e){return e}function Yu(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let t in Gu)e[`options.${t}`]={deep:!0,handler(e){if(e!==void 0){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:e},[t]),this.renderId++}}};return e}function Xu(e){let t={};for(let n in e)t[Zu(n)]=e[n];return t}function Zu(e){return e.split(`-`).map((e,t)=>t?Qu(e):e).join(``)}function Qu(e){return e.charAt(0).toUpperCase()+e.slice(1)}var $u=Ku,ed=class extends Ks{constructor(){super(...arguments),this.headerElRef=M()}renderSimpleLayout(e,t){let{props:n,context:r}=this,i=[],a=Vc(r.options);return e&&i.push({type:`header`,key:`header`,isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}}),i.push({type:`body`,key:`body`,liquid:!0,chunk:{content:t}}),j(ua,{elClasses:[`fc-daygrid`],viewSpec:r.viewSpec},j(Uc,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,t,n,r){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw Error(`No ScrollGrid implementation`);let{props:a,context:o}=this,s=!a.forPrint&&Vc(o.options),c=!a.forPrint&&Hc(o.options),l=[];return e&&l.push({type:`header`,key:`header`,isSticky:s,chunks:[{key:`main`,elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}]}),l.push({type:`body`,key:`body`,liquid:!0,chunks:[{key:`main`,content:t}]}),c&&l.push({type:`footer`,key:`footer`,isSticky:!0,chunks:[{key:`main`,content:Bc}]}),j(ua,{elClasses:[`fc-daygrid`],viewSpec:o.viewSpec},j(i,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:l}))}};function td(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function nd(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function rd(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}var id=B({hour:`numeric`,minute:`2-digit`,omitZeroMinute:!0,meridiem:`narrow`});function ad(e){let{display:t}=e.eventRange.ui;return t===`list-item`||t===`auto`&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var od=class extends H{render(){let{props:e}=this;return j(Kc,Object.assign({},e,{elClasses:[`fc-daygrid-event`,`fc-daygrid-block-event`,`fc-h-event`],defaultTimeFormat:id,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}},sd=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,i=Wo(r,n.eventTimeFormat||id,t,!0,e.defaultDisplayEventEnd);return j(Gc,Object.assign({},e,{elTag:`a`,elClasses:[`fc-daygrid-event`,`fc-daygrid-dot-event`],elAttrs:Jo(e.seg,t),defaultGenerator:cd,timeText:i,isResizing:!1,isDateSelecting:!1}))}};function cd(e){return j(N,null,j(`div`,{className:`fc-daygrid-event-dot`,style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&j(`div`,{className:`fc-event-time`},e.timeText),j(`div`,{className:`fc-event-title`},e.event.title||j(N,null,`\xA0`)))}var ld=class extends H{constructor(){super(...arguments),this.compileSegs=z(ud)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return j(sl,{elClasses:[`fc-daygrid-more-link`],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return j(N,null,t.map(t=>{let r=t.eventRange.instance.instanceId;return j(`div`,{className:`fc-daygrid-event-harness`,key:r,style:{visibility:n[r]?`hidden`:``}},ad(t)?j(sd,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Go(t,e.todayRange))):j(od,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Go(t,e.todayRange))))}))}})}};function ud(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}var dd=B({week:`narrow`}),fd=class extends Ks{constructor(){super(...arguments),this.rootElRef=M(),this.state={dayNumberId:Fn()},this.handleRootEl=e=>{na(this.rootElRef,e),na(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:i,dateEnv:a}=e,{date:o,dateProfile:s}=t,c=t.showDayNumber&&md(o,s.currentRange,a);return j(Xc,{elTag:`td`,elRef:this.handleRootEl,elClasses:[`fc-daygrid-day`,...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:`gridcell`}),defaultGenerator:pd,date:o,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:c,extraRenderProps:t.extraRenderProps},(a,s)=>j(`div`,{ref:t.innerElRef,className:`fc-daygrid-day-frame fc-scrollgrid-sync-inner`,style:{minHeight:t.minHeight}},t.showWeekNumber&&j(nl,{elTag:`a`,elClasses:[`fc-daygrid-week-number`],elAttrs:Os(e,o,`week`),date:o,defaultFormat:dd}),!s.isDisabled&&(t.showDayNumber||Zc(i)||t.forceDayTop)?j(`div`,{className:`fc-daygrid-day-top`},j(a,{elTag:`a`,elClasses:[`fc-daygrid-day-number`,c&&`fc-daygrid-month-start`],elAttrs:Object.assign(Object.assign({},Os(e,o)),{id:n.dayNumberId})})):t.showDayNumber?j(`div`,{className:`fc-daygrid-day-top`,style:{visibility:`hidden`}},j(`a`,{className:`fc-daygrid-day-number`},`\xA0`)):void 0,j(`div`,{className:`fc-daygrid-day-events`,ref:t.fgContentElRef},t.fgContent,j(`div`,{className:`fc-daygrid-day-bottom`,style:{marginTop:t.moreMarginTop}},j(ld,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),j(`div`,{className:`fc-daygrid-day-bg`},t.bgContent)))}};function pd(e){return e.dayNumberText||j(N,null,`\xA0`)}function md(e,t,n){let{start:r,end:i}=t,a=wr(i,-1),o=n.getYear(r),s=n.getMonth(r),c=n.getYear(a),l=n.getMonth(a);return!(o===c&&s===l)&&(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function hd(e){return e.eventRange.instance.instanceId+`:`+e.firstCol}function gd(e){return hd(e)+`:`+e.lastCol}function _d(e,t,n,r,i,a,o){let s=new xd(t=>i[e[t.index].eventRange.instance.instanceId+`:`+t.span.start+`:`+(t.span.end-1)]||1);s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=a,s.hiddenConsumes=!0):typeof t==`number`?s.maxStackCnt=t:typeof n==`number`&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let c=[],l=[];for(let t=0;t<e.length;t+=1){let n=e[t];i[gd(n)]==null?l.push(n):c.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}})}let u=s.addSegs(c),{singleColPlacements:d,multiColPlacements:f,leftoverMargins:p}=vd(s.toRects(),e,o),m=[],h=[];for(let e of l){f[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)d[t].push({seg:bd(e,t,t+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)m.push(0);for(let t of u){let n=e[t.index],r=t.span;f[r.start].push({seg:bd(n,r.start,r.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)m[e]+=1,d[e].push({seg:bd(n,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)h.push(p[e]);return{singleColPlacements:d,multiColPlacements:f,moreCnts:m,moreMarginTops:h}}function vd(e,t,n){let r=yd(e,n.length),i=[],a=[],o=[];for(let e=0;e<n.length;e+=1){let s=r[e],c=[],l=0,u=0;for(let r of s){let i=t[r.index];c.push({seg:bd(i,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-l}),l=r.levelCoord+r.thickness}let d=[];l=0,u=0;for(let r of s){let i=t[r.index],a=r.span.end-r.span.start>1,o=r.span.start===e;u+=r.levelCoord-l,l=r.levelCoord+r.thickness,a?(u+=r.thickness,o&&d.push({seg:bd(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):o&&(d.push({seg:bd(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:u}),u=0)}i.push(c),a.push(d),o.push(u)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}function yd(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}function bd(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,a=i.range,o=ha(a,{start:r[t].date,end:I(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===a.end.valueOf()})}var xd=class extends qs{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[Ys(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){let{entriesByLevel:r,forceHidden:i}=this,{touchingEntry:a,touchingLevel:o,touchingLateral:s}=e;if(this.hiddenConsumes&&a){let e=Ys(a);if(!i[e])if(this.allowReslicing){let e=Object.assign(Object.assign({},a),{span:Qs(a.span,t.span)}),c=Ys(e);i[c]=!0,r[o][s]=e,n.push(e),this.splitEntry(a,t,n)}else i[e]=!0,n.push(a)}super.handleInvalidInsertion(e,t,n)}},Sd=class extends Ks{constructor(){super(...arguments),this.cellElRefs=new kc,this.frameElRefs=new kc,this.fgElRefs=new kc,this.segHarnessRefs=new kc,this.rootElRef=M(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,i=e.cells.length,a=nd(e.businessHourSegs,i),o=nd(e.bgEventSegs,i),s=nd(this.getHighlightSegs(),i),c=nd(this.getMirrorSegs(),i),{singleColPlacements:l,multiColPlacements:u,moreCnts:d,moreMarginTops:f}=_d(zo(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return j(`tr`,{ref:this.rootElRef,role:`row`},e.renderIntro&&e.renderIntro(),e.cells.map((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?l[n]:u[n],e.todayRange,p),i=this.renderFgSegs(n,Cd(c[n],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return j(fd,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&n===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:d[n],moreMarginTop:f[n],singlePlacements:l[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:j(N,null,j(N,null,r),j(N,null,i)),bgContent:j(N,null,this.renderFillSegs(s[n],`highlight`),this.renderFillSegs(a[n],`non-business`),this.renderFillSegs(o[n],`bg-event`)),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Ni(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,i,a,o){let{context:s}=this,{eventSelection:c}=this.props,{framePositions:l}=this.state,u=this.props.cells.length===1,d=i||a||o,f=[];if(l)for(let e of t){let{seg:t}=e,{instanceId:p}=t.eventRange.instance,m=e.isVisible&&!r[p],h=e.isAbsolute,g=``,_=``;h&&(s.isRtl?(_=0,g=l.lefts[t.lastCol]-l.lefts[t.firstCol]):(g=0,_=l.rights[t.firstCol]-l.rights[t.lastCol])),f.push(j(`div`,{className:`fc-daygrid-event-harness`+(h?` fc-daygrid-event-harness-abs`:``),key:hd(t),ref:d?null:this.segHarnessRefs.createRef(gd(t)),style:{visibility:m?``:`hidden`,marginTop:h?``:e.marginTop,top:h?e.absoluteTop:``,left:g,right:_}},ad(t)?j(sd,Object.assign({seg:t,isDragging:i,isSelected:p===c,defaultDisplayEventEnd:u},Go(t,n))):j(od,Object.assign({seg:t,isDragging:i,isResizing:a,isDateSelecting:o,isSelected:p===c,defaultDisplayEventEnd:u},Go(t,n)))))}return f}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:i}=this.state,a=[];if(i)for(let o of e){let e=n?{right:0,left:i.lefts[o.lastCol]-i.lefts[o.firstCol]}:{left:0,right:i.rights[o.firstCol]-i.rights[o.lastCol]};a.push(j(`div`,{key:qo(o.eventRange),className:`fc-daygrid-bg-harness`,style:e},t===`bg-event`?j($c,Object.assign({seg:o},Go(o,r))):tl(t)))}return j(N,{},...a)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let e=t.cells.map(e=>r.currentMap[e.key]);if(e.length){let t=this.rootElRef.current,r=new Vs(t,e,!0,!1);(!n.framePositions||!n.framePositions.similarTo(r))&&this.setState({framePositions:new Vs(t,e,!0,!1)})}}let i=this.state.segHeights,a=this.querySegHeights(),o=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),a),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}};Sd.addStateEquality({segHeights:Ni});function Cd(e,t){if(!e.length)return[];let n=wd(t);return e.map(e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}))}function wd(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}var Td=class extends Ks{constructor(){super(...arguments),this.splitBusinessHourSegs=z(td),this.splitBgEventSegs=z(td),this.splitFgEventSegs=z(td),this.splitDateSelectionSegs=z(td),this.splitEventDrag=z(rd),this.splitEventResize=z(rd),this.rowRefs=new kc}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),i=this.splitBgEventSegs(e.bgEventSegs,n),a=this.splitFgEventSegs(e.fgEventSegs,n),o=this.splitDateSelectionSegs(e.dateSelectionSegs,n),s=this.splitEventDrag(e.eventDrag,n),c=this.splitEventResize(e.eventResize,n),l=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return j(lc,{unit:`day`},(t,u)=>j(N,null,e.cells.map((t,d)=>j(Sd,{ref:this.rowRefs.createRef(d),key:t.length?t[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[d],eventSelection:e.eventSelection,bgEventSegs:i[d].filter(Ed),fgEventSegs:a[d],dateSelectionSegs:o[d],eventDrag:s[d],eventResize:c[d],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:l,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(`.fc-daygrid-body`):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&=(this.context.unregisterInteractiveComponent(this),null)}prepareHits(){this.rowPositions=new Vs(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Vs(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),a=r.topToIndex(t);if(a!=null&&i!=null){let e=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:I(n,1)}}};function Ed(e){return e.eventRange.def.allDay}var Dd=class extends Ks{constructor(){super(...arguments),this.elRef=M(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,i=n===!0||t===!0;i&&!r&&(i=!1,t=null,n=null);let a=[`fc-daygrid-body`,i?`fc-daygrid-body-balanced`:`fc-daygrid-body-unbalanced`,r?``:`fc-daygrid-body-natural`];return j(`div`,{ref:this.elRef,className:a.join(` `),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},j(`table`,{role:`presentation`,className:`fc-scrollgrid-sync-table`,style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:``}},e.colGroupNode,j(`tbody`,{role:`presentation`},j(Td,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile===this.props.dateProfile?this.flushScrollReset():this.requestScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=Od(this.elRef.current,this.props.dateProfile);if(e){let t=e.closest(`.fc-daygrid-body`),n=t.closest(`.fc-scroller`),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}};function Od(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${Kr(t.currentDate)}-01"]`)),n||=e.querySelector(`[data-date="${Gr(t.currentDate)}"]`),n}var kd=class extends hc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}},Ad=class extends Ks{constructor(){super(...arguments),this.slicer=new kd,this.tableRef=M()}render(){let{props:e,context:t}=this;return j(Dd,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}},jd=class extends ed{constructor(){super(...arguments),this.buildDayTableModel=z(Md),this.headerRef=M(),this.tableRef=M()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),i=e.dayHeaders&&j(dc,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),a=t=>j(Ad,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,a)}};function Md(e,t){return new mc(new pc(e.renderRange,t),/year|month|week/.test(e.currentRangeUnit))}var Nd=class extends Oa{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:i}=this;return Pd({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}};function Pd(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,a;if(e.snapToWeek&&(r=t.startOfWeek(r),a=t.startOfWeek(i),a.valueOf()!==i.valueOf()&&(i=Cr(a,1))),e.fixedWeekCount){let e=t.startOfWeek(t.startOfMonth(I(n.end,-1))),r=Math.ceil(Tr(e,i));i=Cr(i,6-r)}return{start:r,end:i}}vn(`:root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}`);var Fd=wl({name:`@fullcalendar/daygrid`,initialView:`dayGridMonth`,views:{dayGrid:{component:jd,dateProfileGeneratorClass:Nd},dayGridDay:{type:`dayGrid`,duration:{days:1}},dayGridWeek:{type:`dayGrid`,duration:{weeks:1}},dayGridMonth:{type:`dayGrid`,duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:`dayGrid`,duration:{years:1}}}}),Id=class extends Ss{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?[`allDay`]:[`timed`]}getKeysForEventDef(e){return e.allDay?Po(e)?[`timed`,`allDay`]:[`allDay`]:[`timed`]}},Ld=B({hour:`numeric`,minute:`2-digit`,omitZeroMinute:!0,meridiem:`short`});function Rd(e){let t=[`fc-timegrid-slot`,`fc-timegrid-slot-label`,e.isLabeled?`fc-scrollgrid-shrink`:`fc-timegrid-slot-minor`];return j(Zi.Consumer,null,n=>{if(!e.isLabeled)return j(`td`,{className:t.join(` `),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:a}=n,o=i.slotLabelFormat==null?Ld:Array.isArray(i.slotLabelFormat)?B(i.slotLabelFormat[0]):B(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,o)};return j(U,{elTag:`td`,elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:`slotLabelContent`,customGenerator:i.slotLabelContent,defaultGenerator:zd,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},e=>j(`div`,{className:`fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame`},j(e,{elTag:`div`,elClasses:[`fc-timegrid-slot-label-cushion`,`fc-scrollgrid-shrink-cushion`]})))})}function zd(e){return e.text}var Bd=class extends H{render(){return this.props.slatMetas.map(e=>j(`tr`,{key:e.key},j(Rd,Object.assign({},e))))}},Vd=B({week:`short`}),Hd=5,Ud=class extends Ks{constructor(){super(...arguments),this.allDaySplitter=new Id,this.headerElRef=M(),this.rootElRef=M(),this.scrollerElRef=M(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t=``)=>{let{options:n}=this.context,{dateProfile:r}=this.props,i=r.renderRange,a=Er(i.start,i.end)===1?Os(this.context,i.start,`week`):{};return n.weekNumbers&&e===`day`?j(nl,{elTag:`th`,elClasses:[`fc-timegrid-axis`,`fc-scrollgrid-shrink`],elAttrs:{"aria-hidden":!0},date:i.start,defaultFormat:Vd},e=>j(`div`,{className:[`fc-timegrid-axis-frame`,`fc-scrollgrid-shrink-frame`,`fc-timegrid-axis-frame-liquid`].join(` `),style:{height:t}},j(e,{elTag:`a`,elClasses:[`fc-timegrid-axis-cushion`,`fc-scrollgrid-shrink-cushion`,`fc-scrollgrid-sync-inner`],elAttrs:a}))):j(`th`,{"aria-hidden":!0,className:`fc-timegrid-axis`},j(`div`,{className:`fc-timegrid-axis-frame`,style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return j(U,{elTag:`td`,elClasses:[`fc-timegrid-axis`,`fc-scrollgrid-shrink`],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:`allDayContent`,customGenerator:t.allDayContent,defaultGenerator:Wd,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},t=>j(`div`,{className:[`fc-timegrid-axis-frame`,`fc-scrollgrid-shrink-frame`,e==null?` fc-timegrid-axis-frame-liquid`:``].join(` `),style:{height:e}},j(t,{elTag:`span`,elClasses:[`fc-timegrid-axis-cushion`,`fc-scrollgrid-shrink-cushion`,`fc-scrollgrid-sync-inner`]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:i}=this,a=[],o=Vc(r.options);return e&&a.push({type:`header`,key:`header`,isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}}),t&&(a.push({type:`body`,key:`all-day`,chunk:{content:t}}),a.push({type:`body`,key:`all-day-divider`,outerContent:j(`tr`,{role:`presentation`,className:`fc-scrollgrid-section`},j(`td`,{className:`fc-timegrid-divider `+r.theme.getClass(`tableCellShaded`)}))})),a.push({type:`body`,key:`body`,liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),j(ua,{elRef:this.rootElRef,elClasses:[`fc-timegrid`],viewSpec:r.viewSpec},j(Uc,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:`shrink`}],sections:a}))}renderHScrollLayout(e,t,n,r,i,a,o){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw Error(`No ScrollGrid implementation`);let{context:c,props:l}=this,u=!l.forPrint&&Vc(c.options),d=!l.forPrint&&Hc(c.options),f=[];e&&f.push({type:`header`,key:`header`,isSticky:u,syncRowHeights:!0,chunks:[{key:`axis`,rowContent:e=>j(`tr`,{role:`presentation`},this.renderHeadAxis(`day`,e.rowSyncHeights[0]))},{key:`cols`,elRef:this.headerElRef,tableClassName:`fc-col-header`,rowContent:e}]}),t&&(f.push({type:`body`,key:`all-day`,syncRowHeights:!0,chunks:[{key:`axis`,rowContent:e=>j(`tr`,{role:`presentation`},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:`cols`,content:t}]}),f.push({key:`all-day-divider`,type:`body`,outerContent:j(`tr`,{role:`presentation`,className:`fc-scrollgrid-section`},j(`td`,{colSpan:2,className:`fc-timegrid-divider `+c.theme.getClass(`tableCellShaded`)}))}));let p=c.options.nowIndicator;return f.push({type:`body`,key:`body`,liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:`axis`,content:e=>j(`div`,{className:`fc-timegrid-axis-chunk`},j(`table`,{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:``}},e.tableColGroupNode,j(`tbody`,null,j(Bd,{slatMetas:a}))),j(`div`,{className:`fc-timegrid-now-indicator-container`},j(lc,{unit:p?`minute`:`day`},e=>{let t=p&&o&&o.safeComputeTop(e);return typeof t==`number`?j(Jc,{elClasses:[`fc-timegrid-now-indicator-arrow`],elStyle:{top:t},isAxis:!0,date:e}):null})))},{key:`cols`,scrollerElRef:this.scrollerElRef,content:n}]}),d&&f.push({key:`footer`,type:`footer`,isSticky:!0,chunks:[{key:`axis`,content:Bc},{key:`cols`,content:Bc}]}),j(ua,{elRef:this.rootElRef,elClasses:[`fc-timegrid`],viewSpec:c.viewSpec},j(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:!1,colGroups:[{width:`shrink`,cols:[{width:`shrink`}]},{cols:[{span:r,minWidth:i}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(e===!0||t===!0)&&(e=void 0,t=Hd),{dayMaxEvents:e,dayMaxEventRows:t}}};function Wd(e){return e.text}var Gd=class{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(ya(t.currentRange,e)){let n=L(e),r=e.valueOf()-n.valueOf();if(r>=vr(t.slotMinTime)&&r<vr(t.slotMaxTime))return this.computeTimeTop(F(r))}return null}computeDateTop(e,t){return t||=L(e),this.computeTimeTop(F(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:n}=this,r=t.els.length,i=(e.milliseconds-vr(n.slotMinTime))/vr(this.slotDuration),a,o;return i=Math.max(0,i),i=Math.min(r,i),a=Math.floor(i),a=Math.min(a,r-1),o=i-a,t.tops[a]+t.getHeight(a)*o}},Kd=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return j(`tbody`,null,e.slatMetas.map((i,a)=>{let o={time:i.time,date:t.dateEnv.toDate(i.date),view:t.viewApi};return j(`tr`,{key:i.key,ref:r.createRef(i.key)},e.axis&&j(Rd,Object.assign({},i)),j(U,{elTag:`td`,elClasses:[`fc-timegrid-slot`,`fc-timegrid-slot-lane`,!i.isLabeled&&`fc-timegrid-slot-minor`],elAttrs:{"data-time":i.isoTimeStr},renderProps:o,generatorName:`slotLaneContent`,customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}},qd=class extends H{constructor(){super(...arguments),this.rootElRef=M(),this.slatElRefs=new kc}render(){let{props:e,context:t}=this;return j(`div`,{ref:this.rootElRef,className:`fc-timegrid-slots`},j(`table`,{"aria-hidden":!0,className:t.theme.getClass(`table`),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,j(Kd,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;t.onCoords&&t.clientWidth!==null&&this.rootElRef.current.offsetHeight&&t.onCoords(new Gd(new Vs(this.rootElRef.current,Jd(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}};function Jd(e,t){return t.map(t=>e[t.key])}function Yd(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function Xd(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}var Zd=class extends H{render(){let{props:e}=this;return j(sl,{elClasses:[`fc-timegrid-more-link`],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>mf(e.hiddenSegs,e),defaultGenerator:Qd,forceTimed:!0},e=>j(e,{elTag:`div`,elClasses:[`fc-timegrid-more-link-inner`,`fc-sticky`]}))}};function Qd(e){return e.shortText}function $d(e,t,n){let r=new qs;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let i=Xs(r.addSegs(e)),a=ef(r);return a=of(a,1),{segRects:sf(a),hiddenGroups:i}}function ef(e){let{entriesByLevel:t}=e,n=cf((e,t)=>e+`:`+t,(r,i)=>{let a=tf(af(e,r,i),n),o=t[r][i];return[Object.assign(Object.assign({},o),{nextLevelNodes:a[0]}),o.thickness+a[1]]});return tf(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function tf(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,a=r,o=[];for(;a<i;)o.push(t(n,a)),a+=1;return o.sort(nf),[o.map(rf),o[0][1]]}function nf(e,t){return t[1]-e[1]}function rf(e){return e[0]}function af(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,a=i[t][n],o=r[t]+a.thickness,s=r.length,c=t;for(;c<s&&r[c]<o;c+=1);for(;c<s;c+=1){let e=i[c],t,n=ec(e,a.span.start,Js),r=n[0]+n[1],o=r;for(;(t=e[o])&&t.span.start<a.span.end;)o+=1;if(r<o)return{level:c,lateralStart:r,lateralEnd:o}}return null}function of(e,t){let n=cf((e,t,n)=>Ys(e),(e,r,i)=>{let{nextLevelNodes:a,thickness:o}=e,s=o+i,c=o/s,l,u=[];if(!a.length)l=t;else for(let e of a)if(l===void 0){let t=n(e,r,s);l=t[0],u.push(t[1])}else{let t=n(e,l,0);u.push(t[1])}let d=(l-r)*c;return[l-d,Object.assign(Object.assign({},e),{thickness:d,nextLevelNodes:u})]});return e.map(e=>n(e,0,0)[1])}function sf(e){let t=[],n=cf((e,t,n)=>Ys(e),(e,n,i)=>{let a=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(a),a.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1});function r(e,t,r){let i=0;for(let a of e)i=Math.max(n(a,t,r),i);return i}return r(e,0,0),t}function cf(e,t){let n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function lf(e,t,n=null,r=0){let i=[];if(n)for(let a=0;a<e.length;a+=1){let o=e[a],s=n.computeDateTop(o.start,t),c=Math.max(s+(r||0),n.computeDateTop(o.end,t));i.push({start:Math.round(s),end:Math.round(c)})}return i}function uf(e,t,n,r){let i=[],a=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?i.push({index:n,thickness:1,span:r}):a.push(e[n])}let{segRects:o,hiddenGroups:s}=$d(i,n,r),c=[];for(let t of o)c.push({seg:e[t.index],rect:t});for(let e of a)c.push({seg:e,rect:null});return{segPlacements:c,hiddenGroups:s}}var df=B({hour:`numeric`,minute:`2-digit`,meridiem:!1}),ff=class extends H{render(){return j(Kc,Object.assign({},this.props,{elClasses:[`fc-timegrid-event`,`fc-v-event`,this.props.isShort&&`fc-timegrid-event-short`],defaultTimeFormat:df}))}},pf=class extends H{constructor(){super(...arguments),this.sortEventSegs=z(zo)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,i=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return j(Xc,{elTag:`td`,elRef:e.elRef,elClasses:[`fc-timegrid-col`,...e.extraClassNames||[]],elAttrs:Object.assign({role:`gridcell`},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},t=>j(`div`,{className:`fc-timegrid-col-frame`},j(`div`,{className:`fc-timegrid-col-bg`},this.renderFillSegs(e.businessHourSegs,`non-business`),this.renderFillSegs(e.bgEventSegs,`bg-event`),this.renderFillSegs(e.dateSelectionSegs,`highlight`)),j(`div`,{className:`fc-timegrid-col-events`},this.renderFgSegs(o,a,!1,!1,!1)),j(`div`,{className:`fc-timegrid-col-events`},this.renderFgSegs(i,{},!!e.eventDrag,!!e.eventResize,!!r,`mirror`)),j(`div`,{className:`fc-timegrid-now-indicator-container`},this.renderNowIndicator(e.nowIndicatorSegs)),Zc(n)&&j(t,{elTag:`div`,elClasses:[`fc-timegrid-col-misc`]})))}renderFgSegs(e,t,n,r,i,a){let{props:o}=this;return o.forPrint?mf(e,o):this.renderPositionedFgSegs(e,t,n,r,i,a)}renderPositionedFgSegs(e,t,n,r,i,a){let{eventMaxStack:o,eventShortHeight:s,eventOrderStrict:c,eventMinHeight:l}=this.context.options,{date:u,slatCoords:d,eventSelection:f,todayRange:p,nowDate:m}=this.props,h=n||r||i,{segPlacements:g,hiddenGroups:_}=uf(e,lf(e,u,d,l),c,o);return j(N,null,this.renderHiddenGroups(_,e),g.map(e=>{let{seg:o,rect:c}=e,l=o.eventRange.instance.instanceId,u=h||!!(!t[l]&&c),d=hf(c&&c.span),g=!h&&c?this.computeSegHStyle(c):{left:0,right:0},_=!!c&&c.stackForward>0,v=!!c&&c.span.end-c.span.start<s;return j(`div`,{className:`fc-timegrid-event-harness`+(_?` fc-timegrid-event-harness-inset`:``),key:a||l,style:Object.assign(Object.assign({visibility:u?``:`hidden`},d),g)},j(ff,Object.assign({seg:o,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:l===f,isShort:v},Go(o,p,m))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:a,eventSelection:o,eventDrag:s,eventResize:c}=this.props;return j(N,null,e.map(e=>{let l=hf(e.span),u=gf(e.entries,t);return j(Zd,{key:Wr(ul(u)),hiddenSegs:u,top:l.top,bottom:l.bottom,extraDateSpan:n,dateProfile:r,todayRange:i,nowDate:a,eventSelection:o,eventDrag:s,eventResize:c})}))}renderFillSegs(e,t){let{props:n,context:r}=this;return j(N,null,lf(e,n.date,n.slatCoords,r.options.eventMinHeight).map((r,i)=>{let a=e[i];return j(`div`,{key:qo(a.eventRange),className:`fc-timegrid-bg-harness`,style:hf(r)},t===`bg-event`?j($c,Object.assign({seg:a},Go(a,n.todayRange,n.nowDate))):tl(t))}))}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((e,r)=>j(Jc,{key:r,elClasses:[`fc-timegrid-now-indicator-line`],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n})):null}computeSegHStyle(e){let{isRtl:t,options:n}=this.context,r=n.slotEventOverlap,i=e.levelCoord,a=e.levelCoord+e.thickness,o,s;r&&(a=Math.min(1,i+(a-i)*2)),t?(o=1-a,s=i):(o=i,s=1-a);let c={zIndex:e.stackDepth+1,left:o*100+`%`,right:s*100+`%`};return r&&!e.stackForward&&(c[t?`marginLeft`:`marginRight`]=20),c}};function mf(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:a}){let o=(i?i.affectedInstances:null)||(a?a.affectedInstances:null)||{};return j(N,null,e.map(e=>{let i=e.eventRange.instance.instanceId;return j(`div`,{key:i,style:{visibility:o[i]?`hidden`:``}},j(ff,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===r,isShort:!1},Go(e,t,n))))}))}function hf(e){return e?{top:e.start,bottom:-e.end}:{top:``,bottom:``}}function gf(e,t){return e.map(e=>t[e.index])}var _f=class extends H{constructor(){super(...arguments),this.splitFgEventSegs=z(Yd),this.splitBgEventSegs=z(Yd),this.splitBusinessHourSegs=z(Yd),this.splitNowIndicatorSegs=z(Yd),this.splitDateSelectionSegs=z(Yd),this.splitEventDrag=z(Xd),this.splitEventResize=z(Xd),this.rootElRef=M(),this.cellElRefs=new kc}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,i=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),o=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),c=this.splitDateSelectionSegs(e.dateSelectionSegs,r),l=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r);return j(`div`,{className:`fc-timegrid-cols`,ref:this.rootElRef},j(`table`,{role:`presentation`,style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,j(`tbody`,{role:`presentation`},j(`tr`,{role:`row`},e.axis&&j(`td`,{"aria-hidden":!0,className:`fc-timegrid-col fc-timegrid-axis`},j(`div`,{className:`fc-timegrid-col-frame`},j(`div`,{className:`fc-timegrid-now-indicator-container`},typeof n==`number`&&j(Jc,{elClasses:[`fc-timegrid-now-indicator-arrow`],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((t,n)=>j(pf,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:i[n],bgEventSegs:a[n],businessHourSegs:o[n],nowIndicatorSegs:s[n],dateSelectionSegs:c[n],eventDrag:l[n],eventResize:u[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new Vs(this.rootElRef.current,vf(this.cellElRefs.currentMap,e.cells),!0,!1))}};function vf(e,t){return t.map(t=>e[t.key])}var yf=class extends Ks{constructor(){super(...arguments),this.processSlotOptions=z(bf),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return j(`div`,{className:`fc-timegrid-body`,ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},j(qd,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:``,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),j(_f,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:i}=this,{dateProfile:a}=this.props,{slatCoords:o}=this.state,{snapDuration:s,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),l=i.leftToIndex(e),u=o.positions.topToIndex(t);if(l!=null&&u!=null){let e=this.props.cells[l],r=o.positions.tops[u],d=o.positions.getHeight(u),f=(t-r)/d,p=Math.floor(f*c),m=u*c+p,h=this.props.cells[l].date,g=fr(a.slotMinTime,mr(s,m)),_=n.add(h,g),v=n.add(_,s);return{dateProfile:a,dateSpan:Object.assign({range:{start:_,end:v},allDay:!1},e.extraDateSpan),dayEl:i.els[l],rect:{left:i.lefts[l],right:i.rights[l],top:r,bottom:r+d},layer:0}}return null}};function bf(e,t){let n=t||e,r=yr(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var xf=class extends hc{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let i=ha(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n}},Sf=class extends Ks{constructor(){super(...arguments),this.buildDayRanges=z(Cf),this.slicer=new xf,this.timeColsRef=M()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:i,nextDayThreshold:a}=t.options,o=this.buildDayRanges(r,n,t.dateEnv);return j(lc,{unit:i?`minute`:`day`},(s,c)=>j(yf,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:s,nowIndicatorSegs:i&&this.slicer.sliceNowDate(s,n,a,t,o),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}};function Cf(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}var wf=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Tf(e,t,n,r,i){let a=new Date(0),o=e,s=F(0),c=n||Ef(r),l=[];for(;vr(o)<vr(t);){let e=i.add(a,o),t=yr(s,c)!==null;l.push({date:e,time:o,key:e.toISOString(),isoTimeStr:qr(e),isLabeled:t}),o=fr(o,r),s=fr(s,r)}return l}function Ef(e){let t,n,r;for(t=wf.length-1;t>=0;--t)if(n=F(wf[t]),r=yr(n,e),r!==null&&r>1)return n;return e}var Df=class extends Ud{constructor(){super(...arguments),this.buildTimeColsModel=z(Of),this.buildSlatMetas=z(Tf)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:i}=r,a=this.buildTimeColsModel(i,n),o=this.allDaySplitter.splitProps(r),s=this.buildSlatMetas(i.slotMinTime,i.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:c}=e,l=!c,u=c,d=e.dayHeaders&&j(dc,{dates:a.headerDates,dateProfile:i,datesRepDistinctDays:!0,renderIntro:l?this.renderHeadAxis:null}),f=e.allDaySlot!==!1&&(t=>j(Ad,Object.assign({},o.allDay,{dateProfile:i,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:l?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),p=t=>j(Sf,Object.assign({},o.timed,{dayTableModel:a,dateProfile:i,axis:l,slotDuration:e.slotDuration,slatMetas:s,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(d,f,p,a.colCnt,c,s,this.state.slatCoords):this.renderSimpleLayout(d,f,p)}};function Of(e,t){return new mc(new pc(e.renderRange,t),!1)}vn(`.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}`);var kf=wl({name:`@fullcalendar/timegrid`,initialView:`timeGridWeek`,optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Df,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:`00:30:00`,slotEventOverlap:!0},timeGridDay:{type:`timeGrid`,duration:{days:1}},timeGridWeek:{type:`timeGrid`,duration:{weeks:1}}}});nc.touchMouseIgnoreWait=500;var Af=0,jf=0,Mf=!1,Nf=class{constructor(e){this.subjectEl=null,this.selector=``,this.handleSelector=``,this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&Pf(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger(`pointerdown`,t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener(`mousemove`,this.handleMouseMove),document.addEventListener(`mouseup`,this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger(`pointermove`,t)},this.handleMouseUp=e=>{document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),this.emitter.trigger(`pointerup`,this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger(`pointerdown`,t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener(`touchmove`,this.handleTouchMove),n.addEventListener(`touchend`,this.handleTouchEnd),n.addEventListener(`touchcancel`,this.handleTouchEnd),window.addEventListener(`scroll`,this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger(`pointermove`,t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener(`touchmove`,this.handleTouchMove),t.removeEventListener(`touchend`,this.handleTouchEnd),t.removeEventListener(`touchcancel`,this.handleTouchEnd),window.removeEventListener(`scroll`,this.handleTouchScroll,!0),this.emitter.trigger(`pointerup`,this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,Ff()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger(`pointermove`,{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new _o,e.addEventListener(`mousedown`,this.handleMouseDown),e.addEventListener(`touchstart`,this.handleTouchStart,{passive:!0}),If()}destroy(){this.containerEl.removeEventListener(`mousedown`,this.handleMouseDown),this.containerEl.removeEventListener(`touchstart`,this.handleTouchStart,{passive:!0}),Lf()}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return t&&(!this.handleSelector||P(n,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Mf=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?P(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Af||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Mf=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener(`scroll`,this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener(`scroll`,this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n=e.touches,r,i,a=0,o=0;return n&&n.length?(r=n[0].pageX,i=n[0].pageY):(r=e.pageX,i=e.pageY),t?(this.origPageX=r,this.origPageY=i):(a=r-this.origPageX,o=i-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:a,deltaY:o}}};function Pf(e){return e.button===0&&!e.ctrlKey}function Ff(){Af+=1,setTimeout(()=>{--Af},nc.touchMouseIgnoreWait)}function If(){jf+=1,jf===1&&window.addEventListener(`touchmove`,Rf,{passive:!1})}function Lf(){--jf,jf||window.removeEventListener(`touchmove`,Rf,{passive:!1})}function Rf(e){Mf&&e.preventDefault()}var zf=class{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=``),this.isVisible=e,this.updateElPosition()):this.isVisible&&=(this.mirrorEl&&(this.mirrorEl.style.display=`none`),e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition=`top `+t+`ms,left `+t+`ms`,jn(n,{left:r.left,top:r.top}),Vn(n,()=>{n.style.transition=``,e()})}cleanup(){this.mirrorEl&&=(Dn(this.mirrorEl),null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&jn(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect=`none`,t.style.webkitUserSelect=`none`,t.style.pointerEvents=`none`,t.classList.add(`fc-event-dragging`),jn(t,{position:`fixed`,zIndex:this.zIndex,visibility:``,boxSizing:`border-box`,width:e.right-e.left,height:e.bottom-e.top,right:`auto`,bottom:`auto`,margin:0}),this.parentNode.appendChild(t)),t}},Bf=class extends Us{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener(`scroll`,this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener(`scroll`,this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}},Vf=class extends Bf{constructor(e,t){super(new Ws(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Ls(this.scrollController.el)}},Hf=class extends Bf{constructor(e){super(new Gs,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}},Uf=typeof performance==`function`?performance.now:Date.now,Wf=class{constructor(){this.isEnabled=!0,this.scrollQuery=[window,`.fc-scroller`],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=Uf();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,r=t-window.scrollY,i=this.pointerScreenY===null?0:r-this.pointerScreenY,a=this.pointerScreenX===null?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Uf()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,i=r-e.distance,a=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case`left`:o=-1;case`right`:n.setScrollLeft(n.getScrollLeft()+a*o);break;case`top`:o=-1;case`bottom`:n.setScrollTop(n.getScrollTop()+a*o);break}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,i=this.scrollCaches||[];for(let a of i){let i=a.clientRect,o=e-i.left,s=i.right-e,c=t-i.top,l=i.bottom-t;o>=0&&s>=0&&c>=0&&l>=0&&(c<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:a,name:`top`,distance:c}),l<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>l)&&(r={scrollCache:a,name:`bottom`,distance:l}),o<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:a,name:`left`,distance:o}),s<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>s)&&(r={scrollCache:a,name:`right`,distance:s}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new Hf(!1):new Vf(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)typeof n==`object`?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}},Gf=class extends tc{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Jn(document.body),Xn(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger(`pointerdown`,e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger(`pointermove`,e),!this.isDistanceSurpassed){let t=this.minDistance,n,{deltaX:r,deltaY:i}=e;n=r*r+i*i,n>=t*t&&this.handleDistanceSurpassed(e)}this.isDragging&&(e.origEvent.type!==`scroll`&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger(`dragmove`,e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,Yn(document.body),Zn(document.body),this.emitter.trigger(`pointerup`,e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&=(clearTimeout(this.delayTimeoutId),null))};let n=this.pointer=new Nf(e);n.emitter.on(`pointerdown`,this.onPointerDown),n.emitter.on(`pointermove`,this.onPointerMove),n.emitter.on(`pointerup`,this.onPointerUp),t&&(n.selector=t),this.mirror=new zf,this.autoScroller=new Wf}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay==`number`?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger(`dragstart`,e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger(`dragend`,e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}},Kf=class{constructor(e){this.el=e,this.origRect=Rs(e),this.scrollCaches=Bs(e).map(e=>new Vf(e,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!qf(e.getEventTarget())&&!gs(n,e.clientRect))return!1;return!0}};function qf(e){let t=e.tagName;return t===`HTML`||t===`BODY`}var Jf=class{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger(`pointerdown`,e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger(`dragstart`,e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger(`dragmove`,e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger(`pointerup`,e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger(`hitupdate`,null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger(`dragend`,e)},this.droppableStore=t,e.emitter.on(`pointerdown`,this.handlePointerDown),e.emitter.on(`dragstart`,this.handleDragStart),e.emitter.on(`dragmove`,this.handleDragMove),e.emitter.on(`pointerup`,this.handlePointerUp),e.emitter.on(`dragend`,this.handleDragEnd),this.dragging=e,this.emitter=new _o}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},n=t,r=e.subjectEl,i;r instanceof HTMLElement&&(i=Rs(r),n=vs(n,i));let a=this.initialHit=this.queryHitForOffset(n.left,n.top);if(a){if(this.useSubjectCenter&&i){let e=_s(i,a.rect);e&&(n=ys(e))}this.coordAdjust=bs(n,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!Yf(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger(`hitupdate`,n,!1,e))}prepareHits(){this.offsetTrackers=Ai(this.droppableStore,e=>(e.component.prepareHits(),new Kf(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,i=null;for(let a in n){let o=n[a].component,s=r[a];if(s&&s.isWithinClipping(e,t)){let n=s.computeLeft(),r=s.computeTop(),c=e-n,l=t-r,{origRect:u}=s,d=u.right-u.left,f=u.bottom-u.top;if(c>=0&&c<d&&l>=0&&l<f){let e=o.queryHit(c,l,d,f);e&&va(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||s.el.contains(s.el.getRootNode().elementFromPoint(c+n-window.scrollX,l+r-window.scrollY)))&&(!i||e.layer>i.layer)&&(e.componentId=a,e.context=o.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,i=e)}}}return i}};function Yf(e,t){return!e&&!t?!0:!!e==!!t?Qo(e.dateSpan,t.dateSpan):!1}function Xf(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));return Object.assign(n,Zf(e,t.dateEnv)),n}function Zf(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}var Qf=class extends ds{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&Yf(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},Xf(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger(`dateClick`,i)}}},this.dragging=new Gf(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Jf(this.dragging,ps(e));t.emitter.on(`pointerdown`,this.handlePointerDown),t.emitter.on(`dragend`,this.handleDragEnd)}destroy(){this.dragging.destroy()}},$f=class extends ds{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?ep(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,i=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=tp(t,e,n.pluginHooks.dateSelectionTransformers)),(!r||!vc(r,e.dateProfile,n))&&(i=!0,r=null)}r?n.dispatch({type:`SELECT_DATES`,selection:r}):t||n.dispatch({type:`UNSELECT_DATES`}),i?Kn():qn(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&=(Co(this.dragSelection,e,this.component.context),null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new Gf(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let i=this.hitDragging=new Jf(this.dragging,ps(e));i.emitter.on(`pointerdown`,this.handlePointerDown),i.emitter.on(`dragstart`,this.handleDragStart),i.emitter.on(`hitupdate`,this.handleHitUpdate),i.emitter.on(`pointerup`,this.handlePointerUp)}destroy(){this.dragging.destroy()}};function ep(e){let{options:t}=e.context,n=t.selectLongPressDelay;return n??=t.longPressDelay,n}function tp(e,t,n){let r=e.dateSpan,i=t.dateSpan,a=[r.range.start,r.range.end,i.range.start,i.range.end];a.sort(ir);let o={};for(let r of n){let n=r(e,t);if(n===!1)return null;n&&Object.assign(o,n)}return o.range={start:a[0],end:a[3]},o.allDay=r.allDay,o}var np=class e extends ds{constructor(t){super(t),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:i}=r,{options:a}=n.context,o=n.context;this.subjectEl=e.subjectEl;let s=(this.eventRange=(this.subjectSeg=Io(e.subjectEl)).eventRange).instance.instanceId;this.relevantEvents=Wa(o.getCurrentData().eventStore,s),r.minDistance=e.isTouch?0:a.eventDragMinDistance,r.delay=e.isTouch&&s!==n.props.eventSelection?ip(n):null,a.fixedMirrorParent?i.parentNode=a.fixedMirrorParent:i.parentNode=P(t,`.fc`),i.revertDuration=a.dragRevertDuration;let c=n.isValidSegDownEl(t)&&!P(t,`.fc-event-resizer`);r.setIgnoreMove(!c),this.isDragging=c&&e.subjectEl.classList.contains(`fc-event-draggable`)},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:`SELECT_EVENT`,eventInstanceId:r}):t.dispatch({type:`UNSELECT_EVENT`}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger(`eventDragStart`,{el:this.subjectEl,event:new G(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,i=this.component.context,a=null,o=null,s=null,c=!1,l={affectedEvents:n,mutatedEvents:W(),isEvent:!0};if(e){a=e.context;let t=a.options;i===a||t.editable&&t.droppable?(o=rp(r,e,this.eventRange.instance.range.start,a.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(s=Do(n,a.getCurrentData().eventUiBases,o,a),l.mutatedEvents=s,_c(l,e.dateProfile,a)||(c=!0,o=null,s=null,l.mutatedEvents=W()))):a=null}this.displayDrag(a,l),c?Kn():qn(),t||(i===a&&Yf(r,e)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(`.fc-event-mirror`)),this.receivingContext=a,this.validMutation=o,this.mutatedRelevantEvents=s)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:i}=this,a=this.eventRange.def,o=this.eventRange.instance,s=new G(t,a,o),c=this.relevantEvents,l=this.mutatedRelevantEvents,{finalHit:u}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger(`eventDragStop`,{el:this.subjectEl,event:s,jsEvent:e.origEvent,view:n}),i){if(r===t){let r=new G(t,l.defs[a.defId],o?l.instances[o.instanceId]:null);t.dispatch({type:`MERGE_EVENTS`,eventStore:l});let u={oldEvent:s,event:r,relatedEvents:Mo(l,t,o),revert(){t.dispatch({type:`MERGE_EVENTS`,eventStore:c})}},d={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,e(i,t));t.emitter.trigger(`eventDrop`,Object.assign(Object.assign(Object.assign({},u),d),{el:e.subjectEl,delta:i.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger(`eventChange`,u)}else if(r){let i={event:s,relatedEvents:Mo(c,t,o),revert(){t.dispatch({type:`MERGE_EVENTS`,eventStore:c})}};t.emitter.trigger(`eventLeave`,Object.assign(Object.assign({},i),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:`REMOVE_EVENTS`,eventStore:c}),t.emitter.trigger(`eventRemove`,i);let d=l.defs[a.defId],f=l.instances[o.instanceId],p=new G(r,d,f);r.dispatch({type:`MERGE_EVENTS`,eventStore:l});let m={event:p,relatedEvents:Mo(l,r,f),revert(){r.dispatch({type:`REMOVE_EVENTS`,eventStore:l})}};r.emitter.trigger(`eventAdd`,m),e.isTouch&&r.dispatch({type:`SELECT_EVENT`,eventInstanceId:o.instanceId}),r.emitter.trigger(`drop`,Object.assign(Object.assign({},Xf(u.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:u.context.viewApi})),r.emitter.trigger(`eventReceive`,Object.assign(Object.assign({},m),{draggedEl:e.subjectEl,view:u.context.viewApi}))}}else t.emitter.trigger(`_noEventDrop`)}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new Gf(t.el);i.pointer.selector=e.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let a=this.hitDragging=new Jf(this.dragging,ms);a.useSubjectCenter=t.useEventCenter,a.emitter.on(`pointerdown`,this.handlePointerDown),a.emitter.on(`dragstart`,this.handleDragStart),a.emitter.on(`hitupdate`,this.handleHitUpdate),a.emitter.on(`pointerup`,this.handlePointerUp),a.emitter.on(`dragend`,this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:`SET_EVENT_DRAG`,state:{affectedEvents:t.affectedEvents,mutatedEvents:W(),isEvent:!0}}):r.dispatch({type:`UNSET_EVENT_DRAG`})),e&&e.dispatch({type:`SET_EVENT_DRAG`,state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:`UNSET_EVENT_DRAG`}),e!==t&&e.dispatch({type:`UNSET_EVENT_DRAG`})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}};np.SELECTOR=`.fc-event-draggable, .fc-event-resizable`;function rp(e,t,n,r){let i=e.dateSpan,a=t.dateSpan,o=i.range.start,s=a.range.start,c={};i.allDay!==a.allDay&&(c.allDay=a.allDay,c.hasEnd=t.context.options.allDayMaintainDuration,o=a.allDay?L(n):n);let l=wa(o,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(c.allDay=!1);let u={datesDelta:l,standardProps:c};for(let n of r)n(u,e,t);return u}function ip(e){let{options:t}=e.context,n=t.eventLongPressDelay;return n??=t.longPressDelay,n}var ap=class extends ds{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=this.eventRange=Io(this.querySegEl(e)).eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==n.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=Wa(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=Io(r),t.calendarApi.unselect(),t.emitter.trigger(`eventResizeStart`,{el:r,event:new G(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,i=this.relevantEvents,a=this.hitDragging.initialHit,o=this.eventRange.instance,s=null,c=null,l=!1,u={affectedEvents:i,mutatedEvents:W(),isEvent:!0};e&&(e.componentId===a.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(a,e)||(s=op(a,e,n.subjectEl.classList.contains(`fc-event-resizer-start`),o.range))),s&&(c=Do(i,r.getCurrentData().eventUiBases,s,r),u.mutatedEvents=c,_c(u,e.dateProfile,r)||(l=!0,s=null,c=null,u.mutatedEvents=null)),c?r.dispatch({type:`SET_EVENT_RESIZE`,state:u}):r.dispatch({type:`UNSET_EVENT_RESIZE`}),l?Kn():qn(),t||(s&&Yf(a,e)&&(s=null),this.validMutation=s,this.mutatedRelevantEvents=c)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,i=new G(t,n,r),a=this.relevantEvents,o=this.mutatedRelevantEvents;if(t.emitter.trigger(`eventResizeStop`,{el:this.draggingSegEl,event:i,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let s=new G(t,o.defs[n.defId],r?o.instances[r.instanceId]:null);t.dispatch({type:`MERGE_EVENTS`,eventStore:o});let c={oldEvent:i,event:s,relatedEvents:Mo(o,t,r),revert(){t.dispatch({type:`MERGE_EVENTS`,eventStore:a})}};t.emitter.trigger(`eventResize`,Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||F(0),endDelta:this.validMutation.endDelta||F(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger(`eventChange`,c)}else t.emitter.trigger(`_noEventResize`);this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new Gf(e.el);n.pointer.selector=`.fc-event-resizer`,n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new Jf(this.dragging,ps(e));r.emitter.on(`pointerdown`,this.handlePointerDown),r.emitter.on(`dragstart`,this.handleDragStart),r.emitter.on(`hitupdate`,this.handleHitUpdate),r.emitter.on(`dragend`,this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return P(e.subjectEl,`.fc-event`)}};function op(e,t,n,r){let i=e.context.dateEnv,a=e.dateSpan.range.start,o=t.dateSpan.range.start,s=wa(a,o,i,e.largeUnit);if(n){if(i.add(r.start,s)<r.end)return{startDelta:s}}else if(i.add(r.end,s)>r.start)return{endDelta:s};return null}var sp=class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=Nn(e.origEvent);this.matchesCancel=!!P(n,t),this.matchesEvent=!!P(n,np.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;n&&(!n||!this.matchesCancel)&&t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:`UNSELECT_EVENT`})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Nf(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on(`pointerdown`,this.onDocumentPointerDown),t.emitter.on(`pointerup`,this.onDocumentPointerUp),e.emitter.on(`select`,this.onSelect)}destroy(){this.context.emitter.off(`select`,this.onSelect),this.documentPointer.destroy()}},cp={fixedMirrorParent:V},lp={dateClick:V,eventDragStart:V,eventDragStop:V,eventDrop:V,eventResizeStart:V,eventResizeStop:V,eventResize:V,drop:V,eventReceive:V,eventLeave:V};nc.dataAttrPrefix=``;var up=wl({name:`@fullcalendar/interaction`,componentInteractions:[Qf,$f,np,ap],calendarInteractions:[sp],elementDraggingImpl:Gf,optionRefiners:cp,listenerRefiners:lp}),dp=class extends H{constructor(){super(...arguments),this.state={textId:Fn()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:i,dayDate:a,todayRange:o}=this.props,{textId:s}=this.state,c=ws(a,o),l=n.listDayFormat?t.format(a,n.listDayFormat):``,u=n.listDaySideFormat?t.format(a,n.listDaySideFormat):``,d=Object.assign({date:t.toDate(a),view:r,textId:s,text:l,sideText:u,navLinkAttrs:Os(this.context,a),sideNavLinkAttrs:Os(this.context,a,`day`,!1)},c);return j(U,{elTag:`tr`,elClasses:[`fc-list-day`,...Ts(c,e)],elAttrs:{"data-date":Gr(a)},renderProps:d,generatorName:`dayHeaderContent`,customGenerator:n.dayHeaderContent,defaultGenerator:fp,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},t=>j(`th`,{scope:`colgroup`,colSpan:3,id:i,"aria-labelledby":s},j(t,{elTag:`div`,elClasses:[`fc-list-day-cushion`,e.getClass(`tableCellShaded`)]})))}};function fp(e){return j(N,null,e.text&&j(`a`,Object.assign({id:e.textId,className:`fc-list-day-text`},e.navLinkAttrs),e.text),e.sideText&&j(`a`,Object.assign({"aria-hidden":!0,className:`fc-list-day-side-text`},e.sideNavLinkAttrs),e.sideText))}var pp=B({hour:`numeric`,minute:`2-digit`,meridiem:`short`}),mp=class extends H{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:i,eventHeaderId:a,dateHeaderId:o}=e,s=n.eventTimeFormat||pp;return j(Gc,Object.assign({},e,{elTag:`tr`,elClasses:[`fc-list-event`,r.eventRange.def.url&&`fc-event-forced-url`],defaultGenerator:()=>hp(r,t),seg:r,timeText:``,disableDragging:!0,disableResizing:!0}),(e,n)=>j(N,null,gp(r,s,t,i,o),j(`td`,{"aria-hidden":!0,className:`fc-list-event-graphic`},j(`span`,{className:`fc-list-event-dot`,style:{borderColor:n.borderColor||n.backgroundColor}})),j(e,{elTag:`td`,elClasses:[`fc-list-event-title`],elAttrs:{headers:`${a} ${o}`}})))}};function hp(e,t){let n=Jo(e,t);return j(`a`,Object.assign({},n),e.eventRange.def.title)}function gp(e,t,n,r,i){let{options:a}=n;if(a.displayEventTime!==!1){let o=e.eventRange.def,s=e.eventRange.instance,c=!1,l;if(o.allDay?c=!0:Ca(e.eventRange.range)?e.isStart?l=Wo(e,t,n,null,null,s.range.start,e.end):e.isEnd?l=Wo(e,t,n,null,null,e.start,s.range.end):c=!0:l=Wo(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return j(U,{elTag:`td`,elClasses:[`fc-list-event-time`],elAttrs:{headers:`${r} ${i}`},renderProps:e,generatorName:`allDayContent`,customGenerator:a.allDayContent,defaultGenerator:_p,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount})}return j(`td`,{className:`fc-list-event-time`},l)}return null}function _p(e){return e.text}var vp=class extends Ks{constructor(){super(...arguments),this.computeDateVars=z(bp),this.eventStoreToSegs=z(this._eventStoreToSegs),this.state={timeHeaderId:Fn(),eventHeaderId:Fn(),dateHeaderIdRoot:Fn()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),i=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return j(ua,{elRef:this.setRootEl,elClasses:[`fc-list`,t.theme.getClass(`table`),t.options.stickyHeaderDates===!1?``:`fc-list-sticky`],viewSpec:t.viewSpec},j(Oc,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?`visible`:`hidden`,overflowY:e.isHeightAuto?`visible`:`auto`},i.length>0?this.renderSegList(i,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context;return j(U,{elTag:`div`,elClasses:[`fc-list-empty`],renderProps:{text:e.noEventsText,view:t},generatorName:`noEventsContent`,customGenerator:e.noEventsContent,defaultGenerator:yp,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>j(e,{elTag:`div`,elClasses:[`fc-list-empty-cushion`]}))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:i,eventHeaderId:a,dateHeaderIdRoot:o}=this.state,s=xp(e);return j(lc,{unit:`day`},(e,c)=>{let l=[];for(let n=0;n<s.length;n+=1){let u=s[n];if(u){let s=Gr(t[n]),d=o+`-`+s;l.push(j(dp,{key:s,cellId:d,dayDate:t[n],todayRange:c})),u=zo(u,r.eventOrder);for(let t of u)l.push(j(mp,Object.assign({key:s+`:`+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:i,eventHeaderId:a,dateHeaderId:d},Go(t,c,e))))}}return j(`table`,{className:`fc-list-table `+n.getClass(`table`)},j(`thead`,null,j(`tr`,null,j(`th`,{scope:`col`,id:i},r.timeHint),j(`th`,{scope:`col`,"aria-hidden":!0}),j(`th`,{scope:`col`,id:a},r.eventHint))),j(`tbody`,null,l))})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(No(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let{dateEnv:n}=this.context,{nextDayThreshold:r}=this.context.options,i=e.range,a=e.def.allDay,o,s,c,l=[];for(o=0;o<t.length;o+=1)if(s=ha(i,t[o]),s&&(c={component:this,eventRange:e,start:s.start,end:s.end,isStart:e.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===i.end.valueOf(),dayIndex:o},l.push(c),!c.isEnd&&!a&&o+1<t.length&&i.end<n.add(t[o+1].start,r))){c.end=i.end,c.isEnd=!0;break}return l}};function yp(e){return e.text}function bp(e){let t=L(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:I(t,1)}),t=I(t,1);return{dayDates:r,dayRanges:i}}function xp(e){let t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}vn(`:root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}`);var Sp={listDayFormat:Cp,listDaySideFormat:Cp,noEventsClassNames:V,noEventsContent:V,noEventsDidMount:V,noEventsWillUnmount:V};function Cp(e){return e===!1?null:B(e)}var wp=wl({name:`@fullcalendar/list`,optionRefiners:Sp,views:{list:{component:vp,buttonTextKey:`list`,listDayFormat:{month:`long`,day:`numeric`,year:`numeric`}},listDay:{type:`list`,duration:{days:1},listDayFormat:{weekday:`long`}},listWeek:{type:`list`,duration:{weeks:1},listDayFormat:{weekday:`long`},listDaySideFormat:{month:`long`,day:`numeric`,year:`numeric`}},listMonth:{type:`list`,duration:{month:1},listDaySideFormat:{weekday:`long`}},listYear:{type:`list`,duration:{year:1},listDaySideFormat:{weekday:`long`}}}}),Tp={code:`fr`,week:{dow:1,doy:4},buttonText:{prev:`Précédent`,next:`Suivant`,today:`Aujourd'hui`,year:`Année`,month:`Mois`,week:`Semaine`,day:`Jour`,list:`Planning`},weekText:`Sem.`,weekTextLong:`Semaine`,allDayText:`Toute la journée`,moreLinkText:`en plus`,noEventsText:`Aucun évènement à afficher`};function Ep(e,t){let n={},r=t&&`_d_${t}_`;for(let t of Object.keys(e))t.startsWith(`_c_`)&&(n[t]=e[t]),r&&t.startsWith(r)&&(n[t.replace(r,``)]=e[t]);return n}function Dp(e,t){let n=ye({});return se(e,()=>{let r=Ep(e,t);Object.assign(n,r);for(let e of Object.keys(n))e in r||delete n[e]},{immediate:!0}),n}var Op=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var kp=()=>{};function Ap(e,t,n){let r;r=_e(n)?{evaluating:n}:n||{};let{lazy:i=!1,evaluating:a=void 0,shallow:o=!0,onError:s=kp}=r,c=Fe(!i),l=o?be(t):Fe(t),u=0;return x(async t=>{if(!c.value)return;u++;let n=u,r=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{let i=await e(e=>{t(()=>{a&&(a.value=!1),r||e()})});n===u&&(l.value=i)}catch(e){s(e)}finally{a&&n===u&&(a.value=!1),r=!0}}),i?Ie(()=>(c.value=!0,l.value)):l}Op&&window.document,Op&&window.navigator,Op&&window.location;var jp=(e,t=0,n=1)=>Ip(Lp(t,e),n),Mp=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=jp(e[t],0,255)):t===3&&(e[t]=jp(e[t],0,1));return e},Np={};for(let e of[`Boolean`,`Number`,`String`,`Function`,`Array`,`Date`,`RegExp`,`Undefined`,`Null`])Np[`[object ${e}]`]=e.toLowerCase();function K(e){return Np[Object.prototype.toString.call(e)]||`object`}var q=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):K(e[0])==`object`&&t?t.split(``).filter(t=>e[0][t]!==void 0).map(t=>e[0][t]):e[0],Pp=e=>{if(e.length<2)return null;let t=e.length-1;return K(e[t])==`string`?e[t].toLowerCase():null},{PI:Fp,min:Ip,max:Lp}=Math,Rp=Fp*2,zp=Fp/3,Bp=Fp/180,Vp=180/Fp,J={format:{},autodetect:[]},Y=class{constructor(...e){let t=this;if(K(e[0])===`object`&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=Pp(e),r=!1;if(!n){r=!0,J.sorted||=(J.autodetect=J.autodetect.sort((e,t)=>t.p-e.p),!0);for(let t of J.autodetect)if(n=t.test(...e),n)break}if(J.format[n])t._rgb=Mp(J.format[n].apply(null,r?e:e.slice(0,-1)));else throw Error(`unknown format: `+e);t._rgb.length===3&&t._rgb.push(1)}toString(){return K(this.hex)==`function`?this.hex():`[${this._rgb.join(`,`)}]`}},Hp=(...e)=>new Hp.Color(...e);Hp.Color=Y,Hp.version=`2.6.0`;var X=Hp,Up=(...e)=>{e=q(e,`cmyk`);let[t,n,r,i]=e,a=e.length>4?e[4]:1;return i===1?[0,0,0,a]:[t>=1?0:255*(1-t)*(1-i),n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),a]},{max:Wp}=Math,Gp=(...e)=>{let[t,n,r]=q(e,`rgb`);t/=255,n/=255,r/=255;let i=1-Wp(t,Wp(n,r)),a=i<1?1/(1-i):0;return[(1-t-i)*a,(1-n-i)*a,(1-r-i)*a,i]};Y.prototype.cmyk=function(){return Gp(this._rgb)},X.cmyk=(...e)=>new Y(...e,`cmyk`),J.format.cmyk=Up,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`cmyk`),K(e)===`array`&&e.length===4)return`cmyk`}});var Kp=e=>Math.round(e*100)/100,qp=(...e)=>{let t=q(e,`hsla`),n=Pp(e)||`lsa`;return t[0]=Kp(t[0]||0),t[1]=Kp(t[1]*100)+`%`,t[2]=Kp(t[2]*100)+`%`,n===`hsla`||t.length>3&&t[3]<1?(t[3]=t.length>3?t[3]:1,n=`hsla`):t.length=3,`${n}(${t.join(`,`)})`},Jp=(...e)=>{e=q(e,`rgba`);let[t,n,r]=e;t/=255,n/=255,r/=255;let i=Ip(t,n,r),a=Lp(t,n,r),o=(a+i)/2,s,c;return a===i?(s=0,c=NaN):s=o<.5?(a-i)/(a+i):(a-i)/(2-a-i),t==a?c=(n-r)/(a-i):n==a?c=2+(r-t)/(a-i):r==a&&(c=4+(t-n)/(a-i)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,o,e[3]]:[c,s,o]},{round:Yp}=Math,Xp=(...e)=>{let t=q(e,`rgba`),n=Pp(e)||`rgb`;return n.substr(0,3)==`hsl`?qp(Jp(t),n):(t[0]=Yp(t[0]),t[1]=Yp(t[1]),t[2]=Yp(t[2]),(n===`rgba`||t.length>3&&t[3]<1)&&(t[3]=t.length>3?t[3]:1,n=`rgba`),`${n}(${t.slice(0,n===`rgb`?3:4).join(`,`)})`)},{round:Zp}=Math,Qp=(...e)=>{e=q(e,`hsl`);let[t,n,r]=e,i,a,o;if(n===0)i=a=o=r*255;else{let e=[0,0,0],s=[0,0,0],c=r<.5?r*(1+n):r+n-r*n,l=2*r-c,u=t/360;e[0]=u+1/3,e[1]=u,e[2]=u-1/3;for(let t=0;t<3;t++)e[t]<0&&(e[t]+=1),e[t]>1&&--e[t],6*e[t]<1?s[t]=l+(c-l)*6*e[t]:2*e[t]<1?s[t]=c:3*e[t]<2?s[t]=l+(c-l)*(2/3-e[t])*6:s[t]=l;[i,a,o]=[Zp(s[0]*255),Zp(s[1]*255),Zp(s[2]*255)]}return e.length>3?[i,a,o,e[3]]:[i,a,o,1]},$p=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,em=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,tm=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,nm=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,rm=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,im=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:am}=Math,om=e=>{e=e.toLowerCase().trim();let t;if(J.format.named)try{return J.format.named(e)}catch{}if(t=e.match($p)){let e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=+e[t];return e[3]=1,e}if(t=e.match(em)){let e=t.slice(1,5);for(let t=0;t<4;t++)e[t]=+e[t];return e}if(t=e.match(tm)){let e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=am(e[t]*2.55);return e[3]=1,e}if(t=e.match(nm)){let e=t.slice(1,5);for(let t=0;t<3;t++)e[t]=am(e[t]*2.55);return e[3]=+e[3],e}if(t=e.match(rm)){let e=t.slice(1,4);e[1]*=.01,e[2]*=.01;let n=Qp(e);return n[3]=1,n}if(t=e.match(im)){let e=t.slice(1,4);e[1]*=.01,e[2]*=.01;let n=Qp(e);return n[3]=+t[4],n}};om.test=e=>$p.test(e)||em.test(e)||tm.test(e)||nm.test(e)||rm.test(e)||im.test(e);var sm=om;Y.prototype.css=function(e){return Xp(this._rgb,e)},X.css=(...e)=>new Y(...e,`css`),J.format.css=sm,J.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&K(e)===`string`&&sm.test(e))return`css`}}),J.format.gl=(...e)=>{let t=q(e,`rgba`);return t[0]*=255,t[1]*=255,t[2]*=255,t},X.gl=(...e)=>new Y(...e,`gl`),Y.prototype.gl=function(){let e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var{floor:cm}=Math,lm=(...e)=>{e=q(e,`hcg`);let[t,n,r]=e,i,a,o;r*=255;let s=n*255;if(n===0)i=a=o=r;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;let e=cm(t),c=t-e,l=r*(1-n),u=l+s*(1-c),d=l+s*c,f=l+s;switch(e){case 0:[i,a,o]=[f,d,l];break;case 1:[i,a,o]=[u,f,l];break;case 2:[i,a,o]=[l,f,d];break;case 3:[i,a,o]=[l,u,f];break;case 4:[i,a,o]=[d,l,f];break;case 5:[i,a,o]=[f,l,u];break}}return[i,a,o,e.length>3?e[3]:1]},um=(...e)=>{let[t,n,r]=q(e,`rgb`),i=Ip(t,n,r),a=Lp(t,n,r),o=a-i,s=o*100/255,c=i/(255-o)*100,l;return o===0?l=NaN:(t===a&&(l=(n-r)/o),n===a&&(l=2+(r-t)/o),r===a&&(l=4+(t-n)/o),l*=60,l<0&&(l+=360)),[l,s,c]};Y.prototype.hcg=function(){return um(this._rgb)},X.hcg=(...e)=>new Y(...e,`hcg`),J.format.hcg=lm,J.autodetect.push({p:1,test:(...e)=>{if(e=q(e,`hcg`),K(e)===`array`&&e.length===3)return`hcg`}});var dm=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,fm=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,pm=e=>{if(e.match(dm)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(``),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let t=parseInt(e,16);return[t>>16,t>>8&255,t&255,1]}if(e.match(fm)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(``),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);let t=parseInt(e,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((t&255)/255*100)/100]}throw Error(`unknown hex color: ${e}`)},{round:mm}=Math,hm=(...e)=>{let[t,n,r,i]=q(e,`rgba`),a=Pp(e)||`auto`;i===void 0&&(i=1),a===`auto`&&(a=i<1?`rgba`:`rgb`),t=mm(t),n=mm(n),r=mm(r);let o=`000000`+(t<<16|n<<8|r).toString(16);o=o.substr(o.length-6);let s=`0`+mm(i*255).toString(16);switch(s=s.substr(s.length-2),a.toLowerCase()){case`rgba`:return`#${o}${s}`;case`argb`:return`#${s}${o}`;default:return`#${o}`}};Y.prototype.hex=function(e){return hm(this._rgb,e)},X.hex=(...e)=>new Y(...e,`hex`),J.format.hex=pm,J.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&K(e)===`string`&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return`hex`}});var{cos:gm}=Math,_m=(...e)=>{e=q(e,`hsi`);let[t,n,r]=e,i,a,o;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),t>360&&(t-=360),t<0&&(t+=360),t/=360,t<1/3?(o=(1-n)/3,i=(1+n*gm(Rp*t)/gm(zp-Rp*t))/3,a=1-(o+i)):t<2/3?(t-=1/3,i=(1-n)/3,a=(1+n*gm(Rp*t)/gm(zp-Rp*t))/3,o=1-(i+a)):(t-=2/3,a=(1-n)/3,o=(1+n*gm(Rp*t)/gm(zp-Rp*t))/3,i=1-(a+o)),i=jp(r*i*3),a=jp(r*a*3),o=jp(r*o*3),[i*255,a*255,o*255,e.length>3?e[3]:1]},{min:vm,sqrt:ym,acos:bm}=Math,xm=(...e)=>{let[t,n,r]=q(e,`rgb`);t/=255,n/=255,r/=255;let i,a=vm(t,n,r),o=(t+n+r)/3,s=o>0?1-a/o:0;return s===0?i=NaN:(i=(t-n+(t-r))/2,i/=ym((t-n)*(t-n)+(t-r)*(n-r)),i=bm(i),r>n&&(i=Rp-i),i/=Rp),[i*360,s,o]};Y.prototype.hsi=function(){return xm(this._rgb)},X.hsi=(...e)=>new Y(...e,`hsi`),J.format.hsi=_m,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`hsi`),K(e)===`array`&&e.length===3)return`hsi`}}),Y.prototype.hsl=function(){return Jp(this._rgb)},X.hsl=(...e)=>new Y(...e,`hsl`),J.format.hsl=Qp,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`hsl`),K(e)===`array`&&e.length===3)return`hsl`}});var{floor:Sm}=Math,Cm=(...e)=>{e=q(e,`hsv`);let[t,n,r]=e,i,a,o;if(r*=255,n===0)i=a=o=r;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;let e=Sm(t),s=t-e,c=r*(1-n),l=r*(1-n*s),u=r*(1-n*(1-s));switch(e){case 0:[i,a,o]=[r,u,c];break;case 1:[i,a,o]=[l,r,c];break;case 2:[i,a,o]=[c,r,u];break;case 3:[i,a,o]=[c,l,r];break;case 4:[i,a,o]=[u,c,r];break;case 5:[i,a,o]=[r,c,l];break}}return[i,a,o,e.length>3?e[3]:1]},{min:wm,max:Tm}=Math,Em=(...e)=>{e=q(e,`rgb`);let[t,n,r]=e,i=wm(t,n,r),a=Tm(t,n,r),o=a-i,s,c,l;return l=a/255,a===0?(s=NaN,c=0):(c=o/a,t===a&&(s=(n-r)/o),n===a&&(s=2+(r-t)/o),r===a&&(s=4+(t-n)/o),s*=60,s<0&&(s+=360)),[s,c,l]};Y.prototype.hsv=function(){return Em(this._rgb)},X.hsv=(...e)=>new Y(...e,`hsv`),J.format.hsv=Cm,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`hsv`),K(e)===`array`&&e.length===3)return`hsv`}});var Z={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},{pow:Dm}=Math,Om=(...e)=>{e=q(e,`lab`);let[t,n,r]=e,i,a,o,s,c,l;return a=(t+16)/116,i=isNaN(n)?a:a+n/500,o=isNaN(r)?a:a-r/200,a=Z.Yn*Am(a),i=Z.Xn*Am(i),o=Z.Zn*Am(o),s=km(3.2404542*i-1.5371385*a-.4985314*o),c=km(-.969266*i+1.8760108*a+.041556*o),l=km(.0556434*i-.2040259*a+1.0572252*o),[s,c,l,e.length>3?e[3]:1]},km=e=>255*(e<=.00304?12.92*e:1.055*Dm(e,1/2.4)-.055),Am=e=>e>Z.t1?e*e*e:Z.t2*(e-Z.t0),jm=Om,{pow:Mm}=Math,Nm=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=Im(t,n,r),s=116*a-16;return[s<0?0:s,500*(i-a),200*(a-o)]},Pm=e=>(e/=255)<=.04045?e/12.92:Mm((e+.055)/1.055,2.4),Fm=e=>e>Z.t3?Mm(e,1/3):e/Z.t2+Z.t0,Im=(e,t,n)=>(e=Pm(e),t=Pm(t),n=Pm(n),[Fm((.4124564*e+.3575761*t+.1804375*n)/Z.Xn),Fm((.2126729*e+.7151522*t+.072175*n)/Z.Yn),Fm((.0193339*e+.119192*t+.9503041*n)/Z.Zn)]),Lm=Nm;Y.prototype.lab=function(){return Lm(this._rgb)},X.lab=(...e)=>new Y(...e,`lab`),J.format.lab=jm,J.autodetect.push({p:2,test:(...e)=>{if(e=q(e,`lab`),K(e)===`array`&&e.length===3)return`lab`}});var{sin:Rm,cos:zm}=Math,Bm=(...e)=>{let[t,n,r]=q(e,`lch`);return isNaN(r)&&(r=0),r*=Bp,[t,zm(r)*n,Rm(r)*n]},Vm=(...e)=>{e=q(e,`lch`);let[t,n,r]=e,[i,a,o]=Bm(t,n,r),[s,c,l]=jm(i,a,o);return[s,c,l,e.length>3?e[3]:1]},Hm=(...e)=>Vm(...q(e,`hcl`).reverse()),{sqrt:Um,atan2:Wm,round:Gm}=Math,Km=(...e)=>{let[t,n,r]=q(e,`lab`),i=Um(n*n+r*r),a=(Wm(r,n)*Vp+360)%360;return Gm(i*1e4)===0&&(a=NaN),[t,i,a]},qm=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=Lm(t,n,r);return Km(i,a,o)};Y.prototype.lch=function(){return qm(this._rgb)},Y.prototype.hcl=function(){return qm(this._rgb).reverse()},X.lch=(...e)=>new Y(...e,`lch`),X.hcl=(...e)=>new Y(...e,`hcl`),J.format.lch=Vm,J.format.hcl=Hm,[`lch`,`hcl`].forEach(e=>J.autodetect.push({p:2,test:(...t)=>{if(t=q(t,e),K(t)===`array`&&t.length===3)return e}}));var Jm={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,laserlemon:`#ffff54`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrod:`#fafad2`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,maroon2:`#7f0000`,maroon3:`#b03060`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,purple2:`#7f007f`,purple3:`#a020f0`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`};Y.prototype.name=function(){let e=hm(this._rgb,`rgb`);for(let t of Object.keys(Jm))if(Jm[t]===e)return t.toLowerCase();return e},J.format.named=e=>{if(e=e.toLowerCase(),Jm[e])return pm(Jm[e]);throw Error(`unknown color name: `+e)},J.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&K(e)===`string`&&Jm[e.toLowerCase()])return`named`}});var Ym=e=>{if(K(e)==`number`&&e>=0&&e<=16777215)return[e>>16,e>>8&255,e&255,1];throw Error(`unknown num color: `+e)},Xm=(...e)=>{let[t,n,r]=q(e,`rgb`);return(t<<16)+(n<<8)+r};Y.prototype.num=function(){return Xm(this._rgb)},X.num=(...e)=>new Y(...e,`num`),J.format.num=Ym,J.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&K(e[0])===`number`&&e[0]>=0&&e[0]<=16777215)return`num`}});var{round:Zm}=Math;Y.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Zm)},Y.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((t,n)=>n<3?e===!1?t:Zm(t):t)},X.rgb=(...e)=>new Y(...e,`rgb`),J.format.rgb=(...e)=>{let t=q(e,`rgba`);return t[3]===void 0&&(t[3]=1),t},J.autodetect.push({p:3,test:(...e)=>{if(e=q(e,`rgba`),K(e)===`array`&&(e.length===3||e.length===4&&K(e[3])==`number`&&e[3]>=0&&e[3]<=1))return`rgb`}});var{log:Qm}=Math,$m=e=>{let t=e/100,n,r,i;return t<66?(n=255,r=t<6?0:-155.25485562709179-.44596950469579133*(r=t-2)+104.49216199393888*Qm(r),i=t<20?0:-254.76935184120902+.8274096064007395*(i=t-10)+115.67994401066147*Qm(i)):(n=351.97690566805693+.114206453784165*(n=t-55)-40.25366309332127*Qm(n),r=325.4494125711974+.07943456536662342*(r=t-50)-28.0852963507957*Qm(r),i=255),[n,r,i,1]},{round:eh}=Math,th=(...e)=>{let t=q(e,`rgb`),n=t[0],r=t[2],i=1e3,a=4e4,o;for(;a-i>.4;){o=(a+i)*.5;let e=$m(o);e[2]/e[0]>=r/n?a=o:i=o}return eh(o)};Y.prototype.temp=Y.prototype.kelvin=Y.prototype.temperature=function(){return th(this._rgb)},X.temp=X.kelvin=X.temperature=(...e)=>new Y(...e,`temp`),J.format.temp=J.format.kelvin=J.format.temperature=$m;var{pow:nh,sign:rh}=Math,ih=(...e)=>{e=q(e,`lab`);let[t,n,r]=e,i=nh(t+.3963377774*n+.2158037573*r,3),a=nh(t-.1055613458*n-.0638541728*r,3),o=nh(t-.0894841775*n-1.291485548*r,3);return[255*ah(4.0767416621*i-3.3077115913*a+.2309699292*o),255*ah(-1.2684380046*i+2.6097574011*a-.3413193965*o),255*ah(-.0041960863*i-.7034186147*a+1.707614701*o),e.length>3?e[3]:1]};function ah(e){let t=Math.abs(e);return t>.0031308?(rh(e)||1)*(1.055*nh(t,1/2.4)-.055):e*12.92}var{cbrt:oh,pow:sh,sign:ch}=Math,lh=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=[uh(t/255),uh(n/255),uh(r/255)],s=oh(.4122214708*i+.5363325363*a+.0514459929*o),c=oh(.2119034982*i+.6806995451*a+.1073969566*o),l=oh(.0883024619*i+.2817188376*a+.6299787005*o);return[.2104542553*s+.793617785*c-.0040720468*l,1.9779984951*s-2.428592205*c+.4505937099*l,.0259040371*s+.7827717662*c-.808675766*l]};function uh(e){let t=Math.abs(e);return t<.04045?e/12.92:(ch(e)||1)*sh((t+.055)/1.055,2.4)}Y.prototype.oklab=function(){return lh(this._rgb)},X.oklab=(...e)=>new Y(...e,`oklab`),J.format.oklab=ih,J.autodetect.push({p:3,test:(...e)=>{if(e=q(e,`oklab`),K(e)===`array`&&e.length===3)return`oklab`}});var dh=(...e)=>{e=q(e,`lch`);let[t,n,r]=e,[i,a,o]=Bm(t,n,r),[s,c,l]=ih(i,a,o);return[s,c,l,e.length>3?e[3]:1]},fh=(...e)=>{let[t,n,r]=q(e,`rgb`),[i,a,o]=lh(t,n,r);return Km(i,a,o)};Y.prototype.oklch=function(){return fh(this._rgb)},X.oklch=(...e)=>new Y(...e,`oklch`),J.format.oklch=dh,J.autodetect.push({p:3,test:(...e)=>{if(e=q(e,`oklch`),K(e)===`array`&&e.length===3)return`oklch`}}),Y.prototype.alpha=function(e,t=!1){return e!==void 0&&K(e)===`number`?t?(this._rgb[3]=e,this):new Y([this._rgb[0],this._rgb[1],this._rgb[2],e],`rgb`):this._rgb[3]},Y.prototype.clipped=function(){return this._rgb._clipped||!1},Y.prototype.darken=function(e=1){let t=this,n=t.lab();return n[0]-=Z.Kn*e,new Y(n,`lab`).alpha(t.alpha(),!0)},Y.prototype.brighten=function(e=1){return this.darken(-e)},Y.prototype.darker=Y.prototype.darken,Y.prototype.brighter=Y.prototype.brighten,Y.prototype.get=function(e){let[t,n]=e.split(`.`),r=this[t]();if(n){let e=t.indexOf(n)-(t.substr(0,2)===`ok`?2:0);if(e>-1)return r[e];throw Error(`unknown channel ${n} in mode ${t}`)}else return r};var{pow:ph}=Math,mh=1e-7,hh=20;Y.prototype.luminance=function(e,t=`rgb`){if(e!==void 0&&K(e)===`number`){if(e===0)return new Y([0,0,0,this._rgb[3]],`rgb`);if(e===1)return new Y([255,255,255,this._rgb[3]],`rgb`);let n=this.luminance(),r=hh,i=(n,a)=>{let o=n.interpolate(a,.5,t),s=o.luminance();return Math.abs(e-s)<mh||!r--?o:s>e?i(n,o):i(o,a)};return new Y([...(n>e?i(new Y([0,0,0]),this):i(this,new Y([255,255,255]))).rgb(),this._rgb[3]])}return gh(...this._rgb.slice(0,3))};var gh=(e,t,n)=>(e=_h(e),t=_h(t),n=_h(n),.2126*e+.7152*t+.0722*n),_h=e=>(e/=255,e<=.03928?e/12.92:ph((e+.055)/1.055,2.4)),Q={},vh=(e,t,n=.5,...r)=>{let i=r[0]||`lrgb`;if(!Q[i]&&!r.length&&(i=Object.keys(Q)[0]),!Q[i])throw Error(`interpolation mode ${i} is not defined`);return K(e)!==`object`&&(e=new Y(e)),K(t)!==`object`&&(t=new Y(t)),Q[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};Y.prototype.mix=Y.prototype.interpolate=function(e,t=.5,...n){return vh(this,e,t,...n)},Y.prototype.premultiply=function(e=!1){let t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new Y([t[0]*n,t[1]*n,t[2]*n,n],`rgb`)},Y.prototype.saturate=function(e=1){let t=this,n=t.lch();return n[1]+=Z.Kn*e,n[1]<0&&(n[1]=0),new Y(n,`lch`).alpha(t.alpha(),!0)},Y.prototype.desaturate=function(e=1){return this.saturate(-e)},Y.prototype.set=function(e,t,n=!1){let[r,i]=e.split(`.`),a=this[r]();if(i){let e=r.indexOf(i)-(r.substr(0,2)===`ok`?2:0);if(e>-1){if(K(t)==`string`)switch(t.charAt(0)){case`+`:a[e]+=+t;break;case`-`:a[e]+=+t;break;case`*`:a[e]*=+t.substr(1);break;case`/`:a[e]/=+t.substr(1);break;default:a[e]=+t}else if(K(t)===`number`)a[e]=t;else throw Error(`unsupported value for Color.set`);let i=new Y(a,r);return n?(this._rgb=i._rgb,this):i}throw Error(`unknown channel ${i} in mode ${r}`)}else return a},Y.prototype.tint=function(e=.5,...t){return vh(this,`white`,e,...t)},Y.prototype.shade=function(e=.5,...t){return vh(this,`black`,e,...t)},Q.rgb=(e,t,n)=>{let r=e._rgb,i=t._rgb;return new Y(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`rgb`)};var{sqrt:yh,pow:bh}=Math;Q.lrgb=(e,t,n)=>{let[r,i,a]=e._rgb,[o,s,c]=t._rgb;return new Y(yh(bh(r,2)*(1-n)+bh(o,2)*n),yh(bh(i,2)*(1-n)+bh(s,2)*n),yh(bh(a,2)*(1-n)+bh(c,2)*n),`rgb`)},Q.lab=(e,t,n)=>{let r=e.lab(),i=t.lab();return new Y(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`lab`)};var xh=(e,t,n,r)=>{let i,a;r===`hsl`?(i=e.hsl(),a=t.hsl()):r===`hsv`?(i=e.hsv(),a=t.hsv()):r===`hcg`?(i=e.hcg(),a=t.hcg()):r===`hsi`?(i=e.hsi(),a=t.hsi()):r===`lch`||r===`hcl`?(r=`hcl`,i=e.hcl(),a=t.hcl()):r===`oklch`&&(i=e.oklch().reverse(),a=t.oklch().reverse());let o,s,c,l,u,d;(r.substr(0,1)===`h`||r===`oklch`)&&([o,c,u]=i,[s,l,d]=a);let f,p,m,h;return!isNaN(o)&&!isNaN(s)?(h=s>o&&s-o>180?s-(o+360):s<o&&o-s>180?s+360-o:s-o,p=o+n*h):isNaN(o)?isNaN(s)?p=NaN:(p=s,(u==1||u==0)&&r!=`hsv`&&(f=l)):(p=o,(d==1||d==0)&&r!=`hsv`&&(f=c)),f===void 0&&(f=c+n*(l-c)),m=u+n*(d-u),r===`oklch`?new Y([m,f,p],r):new Y([p,f,m],r)},Sh=(e,t,n)=>xh(e,t,n,`lch`);Q.lch=Sh,Q.hcl=Sh,Q.num=(e,t,n)=>{let r=e.num();return new Y(r+n*(t.num()-r),`num`)},Q.hcg=(e,t,n)=>xh(e,t,n,`hcg`),Q.hsi=(e,t,n)=>xh(e,t,n,`hsi`),Q.hsl=(e,t,n)=>xh(e,t,n,`hsl`),Q.hsv=(e,t,n)=>xh(e,t,n,`hsv`),Q.oklab=(e,t,n)=>{let r=e.oklab(),i=t.oklab();return new Y(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`oklab`)},Q.oklch=(e,t,n)=>xh(e,t,n,`oklch`);var{pow:Ch,sqrt:wh,PI:Th,cos:Eh,sin:Dh,atan2:Oh}=Math,kh=(e,t=`lrgb`,n=null)=>{let r=e.length;n||=Array.from(Array(r)).map(()=>1);let i=r/n.reduce(function(e,t){return e+t});if(n.forEach((e,t)=>{n[t]*=i}),e=e.map(e=>new Y(e)),t===`lrgb`)return Ah(e,n);let a=e.shift(),o=a.get(t),s=[],c=0,l=0;for(let e=0;e<o.length;e++)if(o[e]=(o[e]||0)*n[0],s.push(isNaN(o[e])?0:n[0]),t.charAt(e)===`h`&&!isNaN(o[e])){let t=o[e]/180*Th;c+=Eh(t)*n[0],l+=Dh(t)*n[0]}let u=a.alpha()*n[0];e.forEach((e,r)=>{let i=e.get(t);u+=e.alpha()*n[r+1];for(let e=0;e<o.length;e++)if(!isNaN(i[e]))if(s[e]+=n[r+1],t.charAt(e)===`h`){let t=i[e]/180*Th;c+=Eh(t)*n[r+1],l+=Dh(t)*n[r+1]}else o[e]+=i[e]*n[r+1]});for(let e=0;e<o.length;e++)if(t.charAt(e)===`h`){let t=Oh(l/s[e],c/s[e])/Th*180;for(;t<0;)t+=360;for(;t>=360;)t-=360;o[e]=t}else o[e]=o[e]/s[e];return u/=r,new Y(o,t).alpha(u>.99999?1:u,!0)},Ah=(e,t)=>{let n=e.length,r=[0,0,0,0];for(let i=0;i<e.length;i++){let a=e[i],o=t[i]/n,s=a._rgb;r[0]+=Ch(s[0],2)*o,r[1]+=Ch(s[1],2)*o,r[2]+=Ch(s[2],2)*o,r[3]+=s[3]*o}return r[0]=wh(r[0]),r[1]=wh(r[1]),r[2]=wh(r[2]),r[3]>.9999999&&(r[3]=1),new Y(Mp(r))},{pow:jh}=Math;function Mh(e){let t=`rgb`,n=X(`#ccc`),r=0,i=[0,1],a=[],o=[0,0],s=!1,c=[],l=!1,u=0,d=1,f=!1,p={},m=!0,h=1,g=function(e){if(e||=[`#fff`,`#000`],e&&K(e)===`string`&&X.brewer&&X.brewer[e.toLowerCase()]&&(e=X.brewer[e.toLowerCase()]),K(e)===`array`){e.length===1&&(e=[e[0],e[0]]),e=e.slice(0);for(let t=0;t<e.length;t++)e[t]=X(e[t]);a.length=0;for(let t=0;t<e.length;t++)a.push(t/(e.length-1))}return ee(),c=e},_=function(e){if(s!=null){let t=s.length-1,n=0;for(;n<t&&e>=s[n];)n++;return n-1}return 0},v=e=>e,y=e=>e,b=function(e,r){let i,l;if(r??=!1,isNaN(e)||e===null)return n;l=r?e:s&&s.length>2?_(e)/(s.length-2):d===u?1:(e-u)/(d-u),l=y(l),r||(l=v(l)),h!==1&&(l=jh(l,h)),l=o[0]+l*(1-o[0]-o[1]),l=jp(l,0,1);let f=Math.floor(l*1e4);if(m&&p[f])i=p[f];else{if(K(c)===`array`)for(let e=0;e<a.length;e++){let n=a[e];if(l<=n){i=c[e];break}if(l>=n&&e===a.length-1){i=c[e];break}if(l>n&&l<a[e+1]){l=(l-n)/(a[e+1]-n),i=X.interpolate(c[e],c[e+1],l,t);break}}else K(c)===`function`&&(i=c(l));m&&(p[f]=i)}return i};var ee=()=>p={};g(e);let x=function(e){let t=X(b(e));return l&&t[l]?t[l]():t};return x.classes=function(e){if(e!=null){if(K(e)===`array`)s=e,i=[e[0],e[e.length-1]];else{let t=X.analyze(i);s=e===0?[t.min,t.max]:X.limits(t,`e`,e)}return x}return s},x.domain=function(e){if(!arguments.length)return i;u=e[0],d=e[e.length-1],a=[];let t=c.length;if(e.length===t&&u!==d)for(let t of Array.from(e))a.push((t-u)/(d-u));else{for(let e=0;e<t;e++)a.push(e/(t-1));if(e.length>2){let t=e.map((t,n)=>n/(e.length-1)),n=e.map(e=>(e-u)/(d-u));n.every((e,n)=>t[n]===e)||(y=e=>{if(e<=0||e>=1)return e;let r=0;for(;e>=n[r+1];)r++;let i=(e-n[r])/(n[r+1]-n[r]);return t[r]+i*(t[r+1]-t[r])})}}return i=[u,d],x},x.mode=function(e){return arguments.length?(t=e,ee(),x):t},x.range=function(e,t){return g(e,t),x},x.out=function(e){return l=e,x},x.spread=function(e){return arguments.length?(r=e,x):r},x.correctLightness=function(e){return e??=!0,f=e,ee(),v=f?function(e){let t=b(0,!0).lab()[0],n=b(1,!0).lab()[0],r=t>n,i=b(e,!0).lab()[0],a=t+(n-t)*e,o=i-a,s=0,c=1,l=20;for(;Math.abs(o)>.01&&l-- >0;)(function(){return r&&(o*=-1),o<0?(s=e,e+=(c-e)*.5):(c=e,e+=(s-e)*.5),i=b(e,!0).lab()[0],o=i-a})();return e}:e=>e,x},x.padding=function(e){return e==null?o:(K(e)===`number`&&(e=[e,e]),o=e,x)},x.colors=function(t,n){arguments.length<2&&(n=`hex`);let r=[];if(arguments.length===0)r=c.slice(0);else if(t===1)r=[x(.5)];else if(t>1){let e=i[0],n=i[1]-e;r=Nh(0,t,!1).map(r=>x(e+r/(t-1)*n))}else{e=[];let t=[];if(s&&s.length>2)for(let e=1,n=s.length,r=1<=n;r?e<n:e>n;r?e++:e--)t.push((s[e-1]+s[e])*.5);else t=i;r=t.map(e=>x(e))}return X[n]&&(r=r.map(e=>e[n]())),r},x.cache=function(e){return e==null?m:(m=e,x)},x.gamma=function(e){return e==null?h:(h=e,x)},x.nodata=function(e){return e==null?n:(n=X(e),x)},x}function Nh(e,t,n){let r=[],i=e<t,a=n?i?t+1:t-1:t;for(let t=e;i?t<a:t>a;i?t++:t--)r.push(t);return r}var Ph=function(e){let t=[1,1];for(let n=1;n<e;n++){let e=[1];for(let n=1;n<=t.length;n++)e[n]=(t[n]||0)+t[n-1];t=e}return t},Fh=function(e){let t,n,r,i;if(e=e.map(e=>new Y(e)),e.length===2)[n,r]=e.map(e=>e.lab()),t=function(e){return new Y([0,1,2].map(t=>n[t]+e*(r[t]-n[t])),`lab`)};else if(e.length===3)[n,r,i]=e.map(e=>e.lab()),t=function(e){return new Y([0,1,2].map(t=>(1-e)*(1-e)*n[t]+2*(1-e)*e*r[t]+e*e*i[t]),`lab`)};else if(e.length===4){let a;[n,r,i,a]=e.map(e=>e.lab()),t=function(e){return new Y([0,1,2].map(t=>(1-e)*(1-e)*(1-e)*n[t]+3*(1-e)*(1-e)*e*r[t]+3*(1-e)*e*e*i[t]+e*e*e*a[t]),`lab`)}}else if(e.length>=5){let n,r,i;n=e.map(e=>e.lab()),i=e.length-1,r=Ph(i),t=function(e){let t=1-e;return new Y([0,1,2].map(a=>n.reduce((n,o,s)=>n+r[s]*t**(i-s)*e**s*o[a],0)),`lab`)}}else throw RangeError(`No point in running bezier with only one color.`);return t},Ih=e=>{let t=Fh(e);return t.scale=()=>Mh(t),t},Lh=(e,t,n)=>{if(!Lh[n])throw Error(`unknown blend mode `+n);return Lh[n](e,t)},Rh=e=>(t,n)=>{let r=X(n).rgb(),i=X(t).rgb();return X.rgb(e(r,i))},zh=e=>(t,n)=>{let r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r};Lh.normal=Rh(zh(e=>e)),Lh.multiply=Rh(zh((e,t)=>e*t/255)),Lh.screen=Rh(zh((e,t)=>255*(1-(1-e/255)*(1-t/255)))),Lh.overlay=Rh(zh((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)))),Lh.darken=Rh(zh((e,t)=>e>t?t:e)),Lh.lighten=Rh(zh((e,t)=>e>t?e:t)),Lh.dodge=Rh(zh((e,t)=>e===255?255:(e=t/255*255/(1-e/255),e>255?255:e))),Lh.burn=Rh(zh((e,t)=>255*(1-(1-t/255)/(e/255))));var Bh=Lh,{pow:Vh,sin:Hh,cos:Uh}=Math;function Wh(e=300,t=-1.5,n=1,r=1,i=[0,1]){let a=0,o;K(i)===`array`?o=i[1]-i[0]:(o=0,i=[i,i]);let s=function(s){let c=Rp*((e+120)/360+t*s),l=Vh(i[0]+o*s,r),u=(a===0?n:n[0]+s*a)*l*(1-l)/2,d=Uh(c),f=Hh(c),p=l+u*(-.14861*d+1.78277*f),m=l+u*(-.29227*d-.90649*f),h=l+1.97294*d*u;return X(Mp([p*255,m*255,h*255,1]))};return s.start=function(t){return t==null?e:(e=t,s)},s.rotations=function(e){return e==null?t:(t=e,s)},s.gamma=function(e){return e==null?r:(r=e,s)},s.hue=function(e){return e==null?n:(n=e,K(n)===`array`?(a=n[1]-n[0],a===0&&(n=n[1])):a=0,s)},s.lightness=function(e){return e==null?i:(K(e)===`array`?(i=e,o=e[1]-e[0]):(i=[e,e],o=0),s)},s.scale=()=>X.scale(s),s.hue(n),s}var Gh=`0123456789abcdef`,{floor:Kh,random:qh}=Math,Jh=()=>{let e=`#`;for(let t=0;t<6;t++)e+=Gh.charAt(Kh(qh()*16));return new Y(e,`hex`)},{log:Yh,pow:Xh,floor:Zh,abs:Qh}=Math;function $h(e,t=null){let n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return K(e)===`object`&&(e=Object.values(e)),e.forEach(e=>{t&&K(e)===`object`&&(e=e[t]),e!=null&&!isNaN(e)&&(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(e,t)=>eg(n,e,t),n}function eg(e,t=`equal`,n=7){K(e)==`array`&&(e=$h(e));let{min:r,max:i}=e,a=e.values.sort((e,t)=>e-t);if(n===1)return[r,i];let o=[];if(t.substr(0,1)===`c`&&(o.push(r),o.push(i)),t.substr(0,1)===`e`){o.push(r);for(let e=1;e<n;e++)o.push(r+e/n*(i-r));o.push(i)}else if(t.substr(0,1)===`l`){if(r<=0)throw Error(`Logarithmic scales are only possible for values > 0`);let e=Math.LOG10E*Yh(r),t=Math.LOG10E*Yh(i);o.push(r);for(let r=1;r<n;r++)o.push(Xh(10,e+r/n*(t-e)));o.push(i)}else if(t.substr(0,1)===`q`){o.push(r);for(let e=1;e<n;e++){let t=(a.length-1)*e/n,r=Zh(t);if(r===t)o.push(a[r]);else{let e=t-r;o.push(a[r]*(1-e)+a[r+1]*e)}}o.push(i)}else if(t.substr(0,1)===`k`){let e,t=a.length,s=Array(t),c=Array(n),l=!0,u=0,d=null;d=[],d.push(r);for(let e=1;e<n;e++)d.push(r+e/n*(i-r));for(d.push(i);l;){for(let e=0;e<n;e++)c[e]=0;for(let e=0;e<t;e++){let t=a[e],r=Number.MAX_VALUE,i;for(let a=0;a<n;a++){let n=Qh(d[a]-t);n<r&&(r=n,i=a),c[i]++,s[e]=i}}let r=Array(n);for(let e=0;e<n;e++)r[e]=null;for(let n=0;n<t;n++)e=s[n],r[e]===null?r[e]=a[n]:r[e]+=a[n];for(let e=0;e<n;e++)r[e]*=1/c[e];l=!1;for(let e=0;e<n;e++)if(r[e]!==d[e]){l=!0;break}d=r,u++,u>200&&(l=!1)}let f={};for(let e=0;e<n;e++)f[e]=[];for(let n=0;n<t;n++)e=s[n],f[e].push(a[n]);let p=[];for(let e=0;e<n;e++)p.push(f[e][0]),p.push(f[e][f[e].length-1]);p=p.sort((e,t)=>e-t),o.push(p[0]);for(let e=1;e<p.length;e+=2){let t=p[e];!isNaN(t)&&o.indexOf(t)===-1&&o.push(t)}}return o}var tg=(e,t)=>{e=new Y(e),t=new Y(t);let n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},{sqrt:ng,pow:$,min:rg,max:ig,atan2:ag,abs:og,cos:sg,sin:cg,exp:lg,PI:ug}=Math;function dg(e,t,n=1,r=1,i=1){var a=function(e){return 360*e/(2*ug)},o=function(e){return 2*ug*e/360};e=new Y(e),t=new Y(t);let[s,c,l]=Array.from(e.lab()),[u,d,f]=Array.from(t.lab()),p=(s+u)/2,m=(ng($(c,2)+$(l,2))+ng($(d,2)+$(f,2)))/2,h=.5*(1-ng($(m,7)/($(m,7)+$(25,7)))),g=c*(1+h),_=d*(1+h),v=ng($(g,2)+$(l,2)),y=ng($(_,2)+$(f,2)),b=(v+y)/2,ee=a(ag(l,g)),x=a(ag(f,_)),S=ee>=0?ee:ee+360,C=x>=0?x:x+360,te=og(S-C)>180?(S+C+360)/2:(S+C)/2,ne=1-.17*sg(o(te-30))+.24*sg(o(2*te))+.32*sg(o(3*te+6))-.2*sg(o(4*te-63)),re=C-S;re=og(re)<=180?re:C<=S?re+360:re-360,re=2*ng(v*y)*cg(o(re)/2);let w=u-s,ie=y-v,ae=1+.015*$(p-50,2)/ng(20+$(p-50,2)),oe=1+.045*b,se=1+.015*b*ne,ce=30*lg(-$((te-275)/25,2)),le=-(2*ng($(b,7)/($(b,7)+$(25,7))))*cg(2*o(ce));return ig(0,rg(100,ng($(w/(n*ae),2)+$(ie/(r*oe),2)+$(re/(i*se),2)+le*(ie/(r*oe))*(re/(i*se)))))}function fg(e,t,n=`lab`){e=new Y(e),t=new Y(t);let r=e.get(n),i=t.get(n),a=0;for(let e in r){let t=(r[e]||0)-(i[e]||0);a+=t*t}return Math.sqrt(a)}var pg=(...e)=>{try{return new Y(...e),!0}catch{return!1}},mg={cool(){return Mh([X.hsl(180,1,.9),X.hsl(250,.7,.4)])},hot(){return Mh([`#000`,`#f00`,`#ff0`,`#fff`],[0,.25,.75,1]).mode(`rgb`)}},hg={OrRd:[`#fff7ec`,`#fee8c8`,`#fdd49e`,`#fdbb84`,`#fc8d59`,`#ef6548`,`#d7301f`,`#b30000`,`#7f0000`],PuBu:[`#fff7fb`,`#ece7f2`,`#d0d1e6`,`#a6bddb`,`#74a9cf`,`#3690c0`,`#0570b0`,`#045a8d`,`#023858`],BuPu:[`#f7fcfd`,`#e0ecf4`,`#bfd3e6`,`#9ebcda`,`#8c96c6`,`#8c6bb1`,`#88419d`,`#810f7c`,`#4d004b`],Oranges:[`#fff5eb`,`#fee6ce`,`#fdd0a2`,`#fdae6b`,`#fd8d3c`,`#f16913`,`#d94801`,`#a63603`,`#7f2704`],BuGn:[`#f7fcfd`,`#e5f5f9`,`#ccece6`,`#99d8c9`,`#66c2a4`,`#41ae76`,`#238b45`,`#006d2c`,`#00441b`],YlOrBr:[`#ffffe5`,`#fff7bc`,`#fee391`,`#fec44f`,`#fe9929`,`#ec7014`,`#cc4c02`,`#993404`,`#662506`],YlGn:[`#ffffe5`,`#f7fcb9`,`#d9f0a3`,`#addd8e`,`#78c679`,`#41ab5d`,`#238443`,`#006837`,`#004529`],Reds:[`#fff5f0`,`#fee0d2`,`#fcbba1`,`#fc9272`,`#fb6a4a`,`#ef3b2c`,`#cb181d`,`#a50f15`,`#67000d`],RdPu:[`#fff7f3`,`#fde0dd`,`#fcc5c0`,`#fa9fb5`,`#f768a1`,`#dd3497`,`#ae017e`,`#7a0177`,`#49006a`],Greens:[`#f7fcf5`,`#e5f5e0`,`#c7e9c0`,`#a1d99b`,`#74c476`,`#41ab5d`,`#238b45`,`#006d2c`,`#00441b`],YlGnBu:[`#ffffd9`,`#edf8b1`,`#c7e9b4`,`#7fcdbb`,`#41b6c4`,`#1d91c0`,`#225ea8`,`#253494`,`#081d58`],Purples:[`#fcfbfd`,`#efedf5`,`#dadaeb`,`#bcbddc`,`#9e9ac8`,`#807dba`,`#6a51a3`,`#54278f`,`#3f007d`],GnBu:[`#f7fcf0`,`#e0f3db`,`#ccebc5`,`#a8ddb5`,`#7bccc4`,`#4eb3d3`,`#2b8cbe`,`#0868ac`,`#084081`],Greys:[`#ffffff`,`#f0f0f0`,`#d9d9d9`,`#bdbdbd`,`#969696`,`#737373`,`#525252`,`#252525`,`#000000`],YlOrRd:[`#ffffcc`,`#ffeda0`,`#fed976`,`#feb24c`,`#fd8d3c`,`#fc4e2a`,`#e31a1c`,`#bd0026`,`#800026`],PuRd:[`#f7f4f9`,`#e7e1ef`,`#d4b9da`,`#c994c7`,`#df65b0`,`#e7298a`,`#ce1256`,`#980043`,`#67001f`],Blues:[`#f7fbff`,`#deebf7`,`#c6dbef`,`#9ecae1`,`#6baed6`,`#4292c6`,`#2171b5`,`#08519c`,`#08306b`],PuBuGn:[`#fff7fb`,`#ece2f0`,`#d0d1e6`,`#a6bddb`,`#67a9cf`,`#3690c0`,`#02818a`,`#016c59`,`#014636`],Viridis:[`#440154`,`#482777`,`#3f4a8a`,`#31678e`,`#26838f`,`#1f9d8a`,`#6cce5a`,`#b6de2b`,`#fee825`],Spectral:[`#9e0142`,`#d53e4f`,`#f46d43`,`#fdae61`,`#fee08b`,`#ffffbf`,`#e6f598`,`#abdda4`,`#66c2a5`,`#3288bd`,`#5e4fa2`],RdYlGn:[`#a50026`,`#d73027`,`#f46d43`,`#fdae61`,`#fee08b`,`#ffffbf`,`#d9ef8b`,`#a6d96a`,`#66bd63`,`#1a9850`,`#006837`],RdBu:[`#67001f`,`#b2182b`,`#d6604d`,`#f4a582`,`#fddbc7`,`#f7f7f7`,`#d1e5f0`,`#92c5de`,`#4393c3`,`#2166ac`,`#053061`],PiYG:[`#8e0152`,`#c51b7d`,`#de77ae`,`#f1b6da`,`#fde0ef`,`#f7f7f7`,`#e6f5d0`,`#b8e186`,`#7fbc41`,`#4d9221`,`#276419`],PRGn:[`#40004b`,`#762a83`,`#9970ab`,`#c2a5cf`,`#e7d4e8`,`#f7f7f7`,`#d9f0d3`,`#a6dba0`,`#5aae61`,`#1b7837`,`#00441b`],RdYlBu:[`#a50026`,`#d73027`,`#f46d43`,`#fdae61`,`#fee090`,`#ffffbf`,`#e0f3f8`,`#abd9e9`,`#74add1`,`#4575b4`,`#313695`],BrBG:[`#543005`,`#8c510a`,`#bf812d`,`#dfc27d`,`#f6e8c3`,`#f5f5f5`,`#c7eae5`,`#80cdc1`,`#35978f`,`#01665e`,`#003c30`],RdGy:[`#67001f`,`#b2182b`,`#d6604d`,`#f4a582`,`#fddbc7`,`#ffffff`,`#e0e0e0`,`#bababa`,`#878787`,`#4d4d4d`,`#1a1a1a`],PuOr:[`#7f3b08`,`#b35806`,`#e08214`,`#fdb863`,`#fee0b6`,`#f7f7f7`,`#d8daeb`,`#b2abd2`,`#8073ac`,`#542788`,`#2d004b`],Set2:[`#66c2a5`,`#fc8d62`,`#8da0cb`,`#e78ac3`,`#a6d854`,`#ffd92f`,`#e5c494`,`#b3b3b3`],Accent:[`#7fc97f`,`#beaed4`,`#fdc086`,`#ffff99`,`#386cb0`,`#f0027f`,`#bf5b17`,`#666666`],Set1:[`#e41a1c`,`#377eb8`,`#4daf4a`,`#984ea3`,`#ff7f00`,`#ffff33`,`#a65628`,`#f781bf`,`#999999`],Set3:[`#8dd3c7`,`#ffffb3`,`#bebada`,`#fb8072`,`#80b1d3`,`#fdb462`,`#b3de69`,`#fccde5`,`#d9d9d9`,`#bc80bd`,`#ccebc5`,`#ffed6f`],Dark2:[`#1b9e77`,`#d95f02`,`#7570b3`,`#e7298a`,`#66a61e`,`#e6ab02`,`#a6761d`,`#666666`],Paired:[`#a6cee3`,`#1f78b4`,`#b2df8a`,`#33a02c`,`#fb9a99`,`#e31a1c`,`#fdbf6f`,`#ff7f00`,`#cab2d6`,`#6a3d9a`,`#ffff99`,`#b15928`],Pastel2:[`#b3e2cd`,`#fdcdac`,`#cbd5e8`,`#f4cae4`,`#e6f5c9`,`#fff2ae`,`#f1e2cc`,`#cccccc`],Pastel1:[`#fbb4ae`,`#b3cde3`,`#ccebc5`,`#decbe4`,`#fed9a6`,`#ffffcc`,`#e5d8bd`,`#fddaec`,`#f2f2f2`]};for(let e of Object.keys(hg))hg[e.toLowerCase()]=hg[e];var gg=hg;Object.assign(X,{average:kh,bezier:Ih,blend:Bh,cubehelix:Wh,mix:vh,interpolate:vh,random:Jh,scale:Mh,analyze:$h,contrast:tg,deltaE:dg,distance:fg,limits:eg,valid:pg,scales:mg,input:J,colors:Jm,brewer:gg});var _g=X;const vg=Fe(new Date().getTime());var{config:yg,color:bg,mainDataset:xg,startDateField:Sg,endDateField:Cg,dateField:wg,labelField:Tg,openingHoursField:Eg,layout:Dg,startDateType:Og,endDateType:kg}=xe(),Ag=Dp(E,xg?.id),{dayjs:jg}=Pe();const Mg=Ap(async()=>{if(bg?.type!==`multicolor`)return;let e={};if(bg.colors.type===`palette`){let t=await le(`${xg.href}/values/${bg.field}?size=100`),n=Math.max(t.length,12),r=_g.scale(bg.colors.name).mode(`lch`).colors(n);t.forEach((t,i)=>{e[t]=r[(i+bg.colors.offset)%n]})}else bg.colors.categories.forEach(t=>{e[t.value]=`${t.color}`});return e},null,{onError:function(e){Ue.value=!0,He.value=e.message}}),Ng=Ap(async()=>{if(!E.start&&!E.end)return[];let e={...Ag,_c_date_match:E.start+`,`+E.end,size:1e3,select:`_id,`+Tg};Dg===`simple`?e.finalizedAt=xg.finalizedAt:e.t=vg.value,bg?.type===`multicolor`&&(e.select+=`,`+yg.color.field),Sg&&Cg?e.select+=`,`+Sg+`,`+Cg:e.select+=`,`+wg,Eg&&(e.select+=`,`+Eg);let t=await le(`${xg.href}/lines`,{params:e});return[].concat(...t.results.map(e=>{let t={editable:Dg===`admin`,id:e._id,originalId:e._id,title:e[Tg],colorFieldValue:bg?.type===`multicolor`&&e[yg.color.field]};if(Eg&&e[Eg]){t.openingHours=e[Eg];let n={};try{n=Object.assign({},...d(e[Eg]).map(e=>({[{Mo:`lu`,Tu:`ma`,We:`me`,Th:`je`,Fr:`ve`,Sa:`sa`,Su:`di`}[e.day]]:e.hours.map(e=>({from:e.from.split(`:`),to:e.to.split(`:`)}))})))}catch(e){console.log(t.openingHours,e)}let r=jg(E.start.localeCompare(e[Sg])>0?E.start:e[Sg]),i=jg(E.end.localeCompare(e[Cg])<0?E.end:e[Cg]),a=[];for(;!r.isAfter(i);){let e=n[r.format(`dd`)];e?.length?E.view===`dayGridMonth`?(a.push({...t,id:r.toISOString()+t.id,start:r.hour(e[0].from[0]).minute(e[0].from[1]).toISOString(),end:r.hour(e[e.length-1].to[0]).minute(e[e.length-1].to[1]).toISOString(),allDay:!1}),r=r.add(1,`day`).hour(0).minute(0)):(e.forEach(e=>{a.push({...t,id:r.hour(e.from[0]).minute(e.from[1]).toISOString()+t.id,start:r.hour(e.from[0]).minute(e.from[1]).toISOString(),end:r.hour(e.to[0]).minute(e.to[1]).toISOString(),allDay:!1})}),r=r.add(1,`day`).hour(0).minute(0)):r=r.add(1,`day`)}return a}else return[{...t,start:e[Sg&&Cg?Sg:wg],end:Sg&&Cg?kg===`date-time`?e[Cg]:jg(e[Cg]).add(1,`day`).format(`YYYY-MM-DD`):void 0,allDay:!(Sg&&Cg)||Og===`date`&&kg===`date`||new Date(e[Cg]).getTime()-new Date(e[Sg]).getTime()>2880*60*1e3}]}))},null,{onError:function(e){Ue.value=!0,He.value=e.message}});var Pg=Te(Me(),1);function Fg(e,t){let n=e[t.key];return n==null||n===``?``:t[`x-labels`]?.[``+e[t.key]]?t[`x-labels`][``+e[t.key]]:t.type===`number`||t.type===`integer`?n.toLocaleString(`fr`):typeof n==`boolean`?n?`Oui`:`Non`:typeof n==`string`&&(t[`x-refersTo`]===`http://schema.org/Date`||t[`x-refersTo`]===`https://schema.org/startDate`||t[`x-refersTo`]===`https://schema.org/endDate`||t[`x-refersTo`]===`http://schema.org/dateCreated`)?t.format===`date-time`?(0,Pg.default)(n).format(`DD/MM/YYYY, HH[h]mm`):(0,Pg.default)(n).format(`DD/MM/YYYY`):``+n}const Ig=he({id:String,interactive:Boolean,text:String,...re(n({closeOnBack:!1,location:`end`,locationStrategy:`connected`,eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:`auto`,scrim:!1,scrollStrategy:`reposition`,transition:null}),[`absolute`,`retainFocus`,`captureFocus`,`disableInitialFocus`])},`VTooltip`),Lg=pe()({name:`VTooltip`,props:Ig(),emits:{"update:modelValue":e=>!0},setup(n,i){let{slots:a}=i,o=ne(n,`modelValue`),{scopeId:s}=e(),c=ie(),l=je(()=>n.id||`v-tooltip-${c}`),u=Fe(),d=Ie(()=>n.location.split(` `).length>1?n.location:n.location+` center`),f=Ie(()=>n.origin===`auto`||n.origin===`overlap`||n.origin.split(` `).length>1||n.location.split(` `).length>1?n.origin:n.origin+` center`),p=je(()=>n.transition==null?o.value?`scale-transition`:`fade-transition`:n.transition),m=Ie(()=>oe({"aria-describedby":l.value},n.activatorProps));return Ve(()=>{let e=t.filterProps(n);return T(t,oe({ref:u,class:[`v-tooltip`,{"v-tooltip--interactive":n.interactive},n.class],style:n.style,id:l.value},e,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,transition:p.value,absolute:!0,location:d.value,origin:f.value,role:`tooltip`,activatorProps:m.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){var e=[...arguments];return a.default?.(...e)??n.text}})}),r({},u)}});var Rg={__name:`Actions`,props:{item:{type:Object,required:!0}},setup(e){let{linkField:t,attachmentField:n,mainDataset:r}=xe();function o(e){let t=[`Octets`,`Ko`,`Mo`,`Go`];if(e===0)return`0 Octet`;let n=parseInt(Math.floor(Math.log(e)/Math.log(1e3)));return n===0?`${e} ${t[n]}`:`${(e/1e3**n).toFixed(2)} ${t[n]}`}return(s,c)=>(w(),D(i,null,{default:k(()=>[T(a),O(t)&&e.item[O(t)]?(w(),D(m,{key:0,href:(e.item[O(t)].includes(`http`)?``:`http://`)+e.item[O(t)],text:``,small:``,target:`_blank`,class:`px-6`,color:`primary`},{default:k(()=>[...c[0]||=[Le(` Page associée `,-1)]]),_:1},8,[`href`])):Re(``,!0),O(n)?(w(),D(Lg,{key:1,top:``},{activator:k(({props:t})=>[T(m,oe({href:e.item[O(n)].includes(`http`)?e.item[O(n)]:O(r).href+`/attachments/`+e.item[O(n)],color:`accent`,icon:``},t),{default:k(()=>[T(l,null,{default:k(()=>[...c[1]||=[Le(`mdi-download`,-1)]]),_:1})]),_:1},16,[`href`])]),default:k(()=>[Be(`span`,null,`Télécharger le fichier de `+de(o(e.item[`_file.content_length`])),1)]),_:1})):Re(``,!0),T(a)]),_:1}))}},zg=[`innerHTML`],Bg=[`innerHTML`],Vg={style:{"white-space":`normal`}},Hg=[`innerHTML`],Ug={__name:`EventView`,props:{item:{type:Object,required:!0}},setup(e){let{config:t,labelField:n,descriptionField:r,imageField:i,attachmentField:a,linkField:s,fields:c}=xe();return(l,u)=>(w(),ue(Ae,null,[O(i)?(w(),ue(Ae,{key:0},[e.item[O(i)]?(w(),D(ge,{key:0,src:e.item._thumbnail||e.item[O(i)],"aspect-ratio":O(t).aspectRatio||3,cover:O(t).imageDisplay!==`contain`,style:ze(`width:${O(t).imageWidth||100}%${O(t).imagePosition===`top`?``:`;float:`+O(t).imagePosition}`)},null,8,[`src`,`aspect-ratio`,`cover`,`style`])):Re(``,!0)],64)):Re(``,!0),T(o,{class:`pt-0`},{default:k(()=>[O(n)&&e.item[O(n)]?(w(),ue(`h3`,{key:0,class:`my-2`,innerHTML:e.item[O(n)]},null,8,zg)):Re(``,!0),O(r)&&e.item[O(r)]?(w(),ue(`div`,{key:1,innerHTML:e.item[O(r)]},null,8,Bg)):Re(``,!0),T(p,{dense:``,class:`transparent`,lines:`two`},{default:k(()=>[(w(!0),ue(Ae,null,me(O(t).additionalFields.filter(t=>!!e.item[t]),t=>(w(),D(b,{key:t,style:{"min-height":`24px`,"max-width":`100%`}},{default:k(()=>[T(f,{class:`font-weight-bold`},{default:k(()=>[Le(de(O(c)[t].title?O(c)[t].title:O(c)[t][`x-originalName`]||t),1)]),_:2},1024),Be(`div`,Vg,[O(c)[t].separator?e.item[t]?(w(!0),ue(Ae,{key:1},me(e.item[t].split(O(c)[t].separator).sort(),e=>(w(),D(g,{key:e,small:``,style:{flex:`none`},class:`my-1 mr-1`,variant:`flat`},{default:k(()=>[Le(de(O(Fg)({[t]:e},O(c)[t])+``),1)]),_:2},1024))),128)):Re(``,!0):(w(),ue(Ae,{key:0},[O(c)[t][`x-display`]===`markdown`?(w(),ue(`div`,{key:0,innerHTML:e.item[t]},null,8,Hg)):(w(),ue(Ae,{key:1},[Le(de(O(Fg)(e.item,O(c)[t])+``),1)],64))],64))])]),_:2},1024))),128))]),_:1})]),_:1}),O(a)||O(s)?(w(),D(Rg,{key:1,item:e.item},null,8,[`item`])):Re(``,!0)],64))}};function Wg(e,t){let n=Gg(typeof e==`string`?ae(e):e,t);return{mounted:n,updated:n,unmounted(e){Ne(null,e)}}}function Gg(e,t){return function(n,r,i){let a=typeof t==`function`?t(r):t,o=r.value?.text??r.value??a?.text,s=ce(r.value)?r.value:{},c=()=>o??n.textContent,l=(i.ctx===r.instance.$?Kg(i,r.instance.$)?.provides:i.ctx?.provides)??r.instance.$.provides,u=S(e,oe(a,s),c);u.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:l}),Ne(u,n)}}function Kg(e,t){let n=new Set,r=t=>{for(let i of t){if(!i)continue;if(i===e||i.el&&e.el&&i.el===e.el)return!0;n.add(i);let t;if(i.suspense?t=r([i.ssContent]):Array.isArray(i.children)?t=r(i.children):i.component?.vnode&&(t=r([i.component?.subTree])),t)return t;n.delete(i)}return!1};if(!r([t.subTree]))return Oe(`Could not find original vnode, component will not inherit provides`),t;let i=Array.from(n).reverse();for(let e of i)if(e.component)return e.component;return t}const qg=Wg(Lg,e=>({activator:(ce(e.value)?!e.value.text:[``,!1,null].includes(e.value))?null:`parent`,location:e.arg?.replace(`-`,` `),text:typeof e.value==`boolean`?void 0:e.value}));var Jg={__name:`DeleteEvent`,props:{event:{type:[Object,null],required:!0}},emits:[`deleted`],setup(e,{emit:t}){let{mainDataset:n}=xe(),r=Fe(!1),c=e,l=t;async function u(){try{await le(`${n.href}/lines/${c.event.originalId}`,{method:`DELETE`}),r.value=!1,l(`deleted`),vg.value=new Date().getTime()}catch(e){He.value=e.status+` - `+e._data,Ue.value=!0}}return(t,n)=>(w(),D(_,{modelValue:r.value,"onUpdate:modelValue":n[2]||=e=>r.value=e,"close-on-content-click":!1,"close-on-click":!1,"min-width":`300px`,"max-width":`500px`},{activator:k(({props:e})=>[ke(T(m,oe({icon:`mdi-delete`,color:`error`},e),null,16),[[qg,{text:`Supprimer l'événement`,location:`right`,openDelay:`500`}]])]),default:k(()=>[T(s,{outlined:``,"data-iframe-height":``},{default:k(()=>[T(h,{"primary-title":``},{default:k(()=>[...n[3]||=[Le(` Supprimer l'événement ? `,-1)]]),_:1}),T(o,null,{default:k(()=>[T(v,{"model-value":!0,type:`error`},{default:k(()=>[Le(` Voulez vous vraiment supprimer `+de(e.event.openingHours?`l'ensemble des créneaux liés à cet `:`l'`)+`événement ? `,1)]),_:1})]),_:1}),T(i,null,{default:k(()=>[T(a),T(m,{text:``,onClick:n[0]||=e=>r.value=!1},{default:k(()=>[...n[4]||=[Le(` Annuler `,-1)]]),_:1}),T(m,{color:`error`,onClick:n[1]||=e=>u()},{default:k(()=>[...n[5]||=[Le(` Supprimer `,-1)]]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}},Yg={__name:`EventDetails`,props:{event:{type:[Object,null],required:!0}},emits:[`updated`,`close`],setup(e,{emit:t}){let n=te(()=>Ce(()=>import(`./EventEdit-DdcCB9zZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]))),{width:r,height:o}=we(),{config:l,mainDataset:d,layout:f,startDateField:p,endDateField:g,startDateType:_,endDateType:v}=xe(),{dayjs:y}=De(),b=t,x=Fe(`read`),S=e;se(()=>S.event,e=>{x.value=`read`});let C=Ap(async()=>S.event?(S.event.id||(x.value=`edit`),S.event.id?(await le(`${d.href}/lines?_id_eq=${S.event.originalId}${x.value===`read`?`&html=true`:``}`)).results.pop():{...S.event}):null,null,{onError:function(e){Ue.value=!0,He.value=e.message}});async function ne(e){let t=new FormData,{__file:n,...r}=e,i=f===`contrib`?{payload:JSON.stringify(r)}:r;for(let[e,n]of Object.entries(i))t.append(e,n);n&&t.append(`attachment`,n);let a={method:`POST`,body:t,headers:{"Content-Disposition":t}},o=`${d.href}/lines`;S.event.originalId&&(o+=`/`+S.event.originalId,a.method=`PUT`);try{await le(o,a),b(`updated`),vg.value=new Date().getTime()}catch(e){He.value=e.status+` - `+e._data,Ue.value=!0}}let re=Ie(()=>{if(p&&g){let e=y(S.event.start),t=y(S.event.end).subtract(_===`date-time`||S.event.openingHours?0:1,`day`);return e.isSame(t,`day`)?e.format(`ddd D MMM YYYY`)+(_===`date-time`||S.event.openingHours?`, `+e.format(`HH:mm`):``)+(v===`date-time`||S.event.openingHours?` - `+t.format(`HH:mm`):``):e.format(`ddd D MMM YYYY`+(_===`date-time`?`, HH:mm`:``))+` - `+t.format(`ddd D MMM YYYY`+(v===`date-time`?`, HH:mm`:``))}else return y(S.event.start).format(`dd, MMM YYYY`)});function ie(){x.value=`read`,S.event.id||b(`updated`)}return(t,d)=>(w(),D(s,{"max-width":x.value===`read`?800:O(r)*O(l).formWidth/10,"min-width":300,"max-height":O(o)*.8},{default:k(()=>[O(C)?(w(),ue(Ae,{key:0},[x.value===`read`?(w(),ue(Ae,{key:0},[O(f)===`admin`?(w(),D(i,{key:0,class:`py-0`},{default:k(()=>[Le(de(re.value)+` `,1),T(a),ke(T(m,{icon:`mdi-pencil`,color:`primary`,onClick:d[0]||=e=>x.value=`edit`},null,512),[[qg,{text:`Modifier l'événement`,location:`right`,openDelay:`500`}]]),T(Jg,{event:e.event,onDeleted:d[1]||=e=>b(`updated`)},null,8,[`event`]),T(m,{icon:`mdi-close`,onClick:d[2]||=e=>b(`close`)})]),_:1})):(w(),D(h,{key:1,class:`text-subtitle-1`},{default:k(()=>[Le(de(re.value),1)]),_:1})),T(Ug,{item:O(C)},null,8,[`item`])],64)):Re(``,!0),x.value===`edit`?(w(),D(Ee,{key:1},{fallback:k(()=>[T(ee,{align:`center`,style:{height:`200px`},class:`ma-0`},{default:k(()=>[T(u,{class:`text-center`},{default:k(()=>[T(c,{size:80,width:7,color:`primary`,indeterminate:``})]),_:1})]),_:1})]),default:k(()=>[T(O(n),{item:O(C),onValidate:ne,onCancel:ie},null,8,[`item`])]),_:1})):Re(``,!0)],64)):(w(),D(ee,{key:1,align:`center`,style:{height:`200px`},class:`ma-0`},{default:k(()=>[T(u,{class:`text-center`},{default:k(()=>[T(c,{size:80,width:7,color:`primary`,indeterminate:``})]),_:1})]),_:1}))]),_:1},8,[`max-width`,`max-height`]))}},Xg={__name:`Calendar`,setup(e){ve(e=>({b63e225a:O(t).current.value.colors.primary,v2d736205:O(t).current.value.colors.secondary}));let t=fe(),{config:n,color:r,mainDataset:i,layout:a,startDateField:o,endDateField:s,dateField:c,endDateType:l}=xe(),{dayjs:u}=De(),d=Fe(null),f=Fe(null),p=Fe(null);E.view=E.view||n.initialView||`dayGridMonth`;function m(e){return r?.type===`monochrome`?r.colors.type===`custom`?r.colors.hexValue:t.current.value.colors[r.colors.strValue]:Mg.value?.[e]}let h=Ie(()=>(Ng.value||[]).map(e=>({...e,color:m(e.colorFieldValue)})));async function g(e){let t={};o&&s?(t[o]=e.start.toISOString(),t[s]=e.end.toISOString()):c&&(t[c]=e.start.toISOString());try{await le(`${i.href}/lines/${e.originalId}`,{method:`PATCH`,body:t}),f.value=!1,vg.value=new Date().getTime()}catch(e){He.value=e.status+` - `+e._data,Ue.value=!0}}let v=E.start&&E.end&&new Date((new Date(E.start).getTime()+new Date(E.end).getTime())/2),b=ye({plugins:[Fd,up,kf,wp],initialView:E.view||`dayGridMonth`,initialDate:n.openOnCurrentDay?new Date:v&&new Date(v)||i.timePeriod?.startDate&&new Date(i.timePeriod.startDate),locale:Tp,headerToolbar:{start:`prev,next today`,center:`title`,end:`dayGridMonth,timeGridWeek,timeGridDay,listNextYear`},views:{listNextYear:{type:`list`,visibleRange:{start:y(u,`day`),end:y(u,`one-year-later`)},buttonText:`Planning`}},events:h,selectable:a!==`simple`,selectConstraint:{start:y(u,n.minDate),end:y(u,n.maxDate)?u(y(u,n.maxDate)).add(1,`day`).format(`YYYY-MM-DD`):void 0},datesSet(e){E.start=e.startStr,E.end=e.endStr,E.view=e.view.type},eventClick(e){e.jsEvent.preventDefault();let t=e.event.toJSON();d.value={...t,...t.extendedProps},delete d.value.extendedProps,setTimeout(()=>{f.value=!0},0),p.value=e.el},eventDrop(e){g(e.event)},eventResize(e){g(e.event)},select(e){if(f.value)return;let t={};o&&s?(t[o]=e.start.toISOString(),t[s]=e.end.toISOString(),l!==`date-time`&&(t[s]=u(t[s]).subtract(1,`day`).toISOString())):c&&(t[c]=e.start.toISOString()),d.value=t,p.value=e.jsEvent.target.parentElement.parentElement,f.value=!0}});return(e,t)=>(w(),ue(Ae,null,[T(O($u),{options:b,"data-iframe-height":``},null,8,[`options`]),T(_,{modelValue:f.value,"onUpdate:modelValue":t[2]||=e=>f.value=e,persistent:O(a)===`admin`,"close-on-content-click":!1,activator:p.value,location:O(E).view===`dayGridMonth`?`bottom`:`start center`},{default:k(()=>[T(Yg,{event:d.value,onUpdated:t[0]||=e=>f.value=!1,onClose:t[1]||=e=>f.value=!1},null,8,[`event`])]),_:1},8,[`modelValue`,`persistent`,`activator`,`location`])],64))}};export{Xg as default};