Files
publish-assistant/js/calendar.1b1b3b362eacf0f85a458c881f003acb9e362d970047e8ad05fef8ed44d8bdff.js
2026-08-18 13:39:21 +00:00

2 lines
201 KiB
JavaScript

(()=>{var _t,A,Vr,pn,Ie,Ee,zr,Gr,Qr,yt={},qr=[],oa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function oe(t,e){for(var n in e)t[n]=e[n];return t}function Yr(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,n){var r,s,i,a={};for(i in e)i=="key"?r=e[i]:i=="ref"?s=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?_t.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return bt(t,a,r,s,null)}function bt(t,e,n,r,s){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s==null?++Vr:s};return s==null&&A.vnode!=null&&A.vnode(i),i}function O(){return{current:null}}function w(t){return t.children}function ca(t,e,n,r,s){var i;for(i in n)i==="children"||i==="key"||i in e||At(t,i,null,n[i],r);for(i in e)s&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===e[i]||At(t,i,e[i],n[i],r)}function Lr(t,e,n){e[0]==="-"?t.setProperty(e,n==null?"":n):t[e]=n==null?"":typeof n!="number"||oa.test(e)?n:n+"px"}function At(t,e,n,r,s){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Lr(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Lr(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?jr:Wr,i):t.removeEventListener(e,i?jr:Wr,i);else if(e!=="dangerouslySetInnerHTML"){if(s)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n==null?"":n;break e}catch(a){}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Wr(t){Ie=!0;try{return this.l[t.type+!1](A.event?A.event(t):t)}finally{Ie=!1}}function jr(t){Ie=!0;try{return this.l[t.type+!0](A.event?A.event(t):t)}finally{Ie=!1}}function x(t,e){this.props=t,this.context=e}function qe(t,e){if(e==null)return t.__?qe(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?qe(t):null}function Zr(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Zr(t)}}function ua(t){Ie?setTimeout(t):Gr(t)}function gn(t){(!t.__d&&(t.__d=!0)&&Ee.push(t)&&!Et.__r++||zr!==A.debounceRendering)&&((zr=A.debounceRendering)||ua)(Et)}function Et(){var t,e,n,r,s,i,a,l;for(Ee.sort(function(o,u){return o.__v.__b-u.__v.__b});t=Ee.shift();)t.__d&&(e=Ee.length,r=void 0,s=void 0,a=(i=(n=t).__v).__e,(l=n.__P)&&(r=[],(s=oe({},i)).__v=i.__v+1,mn(l,i,s,n.__n,l.ownerSVGElement!==void 0,i.__h!=null?[a]:null,r,a==null?qe(i):a,i.__h),es(r,i),i.__e!=a&&Zr(i)),Ee.length>e&&Ee.sort(function(o,u){return o.__v.__b-u.__v.__b}));Et.__r=0}function $r(t,e,n,r,s,i,a,l,o,u){var c,g,h,f,m,y,v,b=r&&r.__k||qr,E=b.length;for(n.__k=[],c=0;c<e.length;c++)if((f=n.__k[c]=(f=e[c])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?bt(null,f,null,null,f):Array.isArray(f)?bt(w,{children:f},null,null,null):f.__b>0?bt(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=b[c])===null||h&&f.key==h.key&&f.type===h.type)b[c]=void 0;else for(g=0;g<E;g++){if((h=b[g])&&f.key==h.key&&f.type===h.type){b[g]=void 0;break}h=null}mn(t,f,h=h||yt,s,i,a,l,o,u),m=f.__e,(g=f.ref)&&h.ref!=g&&(v||(v=[]),h.ref&&v.push(h.ref,null,f),v.push(g,f.__c||m,f)),m!=null?(y==null&&(y=m),typeof f.type=="function"&&f.__k===h.__k?f.__d=o=Jr(f,o,t):o=Kr(t,f,h,b,m,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=qe(h))}for(n.__e=y,c=E;c--;)b[c]!=null&&(typeof n.type=="function"&&b[c].__e!=null&&b[c].__e==n.__d&&(n.__d=Xr(r).nextSibling),ns(b[c],b[c]));if(v)for(c=0;c<v.length;c++)ts(v[c],v[++c],v[++c])}function Jr(t,e,n){for(var r,s=t.__k,i=0;s&&i<s.length;i++)(r=s[i])&&(r.__=t,e=typeof r.type=="function"?Jr(r,e,n):Kr(n,r,r,s,r.__e,e));return e}function Ye(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Ye(n,e)}):e.push(t)),e}function Kr(t,e,n,r,s,i){var a,l,o;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||s!=i||s.parentNode==null)e:if(i==null||i.parentNode!==t)t.appendChild(s),a=null;else{for(l=i,o=0;(l=l.nextSibling)&&o<r.length;o+=1)if(l==s)break e;t.insertBefore(s,i),a=i}return a!==void 0?a:s.nextSibling}function Xr(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=Xr(n)))return r}return null}function mn(t,e,n,r,s,i,a,l,o){var u,c,g,h,f,m,y,v,b,E,R,D,Y,B,L,I=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,l=e.__e=n.__e,e.__h=null,i=[l]),(u=A.__b)&&u(e);try{e:if(typeof I=="function"){if(v=e.props,b=(u=I.contextType)&&r[u.__c],E=u?b?b.props.value:u.__:r,n.__c?y=(c=e.__c=n.__c).__=c.__E:("prototype"in I&&I.prototype.render?e.__c=c=new I(v,E):(e.__c=c=new x(v,E),c.constructor=I,c.render=fa),b&&b.sub(c),c.props=v,c.state||(c.state={}),c.context=E,c.__n=r,g=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),I.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=oe({},c.__s)),oe(c.__s,I.getDerivedStateFromProps(v,c.__s))),h=c.props,f=c.state,c.__v=e,g)I.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(I.getDerivedStateFromProps==null&&v!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,E),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,E)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(vt){vt&&(vt.__=e)}),R=0;R<c._sb.length;R++)c.__h.push(c._sb[R]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,E),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,f,m)})}if(c.context=E,c.props=v,c.__P=t,D=A.__r,Y=0,"prototype"in I&&I.prototype.render){for(c.state=c.__s,c.__d=!1,D&&D(e),u=c.render(c.props,c.state,c.context),B=0;B<c._sb.length;B++)c.__h.push(c._sb[B]);c._sb=[]}else do c.__d=!1,D&&D(e),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Y<25);c.state=c.__s,c.getChildContext!=null&&(r=oe(oe({},r),c.getChildContext())),g||c.getSnapshotBeforeUpdate==null||(m=c.getSnapshotBeforeUpdate(h,f)),L=u!=null&&u.type===w&&u.key==null?u.props.children:u,$r(t,Array.isArray(L)?L:[L],e,n,r,s,i,a,l,o),c.base=e.__e,e.__h=null,c.__h.length&&a.push(c),y&&(c.__E=c.__=null),c.__e=!1}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=da(n.__e,e,n,r,s,i,a,o);(u=A.diffed)&&u(e)}catch(vt){e.__v=null,(o||i!=null)&&(e.__e=l,e.__h=!!o,i[i.indexOf(l)]=null),A.__e(vt,e,n)}}function es(t,e){A.__c&&A.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){A.__e(r,n.__v)}})}function da(t,e,n,r,s,i,a,l){var o,u,c,g=n.props,h=e.props,f=e.type,m=0;if(f==="svg"&&(s=!0),i!=null){for(;m<i.length;m++)if((o=i[m])&&"setAttribute"in o==!!f&&(f?o.localName===f:o.nodeType===3)){t=o,i[m]=null;break}}if(t==null){if(f===null)return document.createTextNode(h);t=s?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),i=null,l=!1}if(f===null)g===h||l&&t.data===h||(t.data=h);else{if(i=i&&_t.call(t.childNodes),u=(g=n.props||yt).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!l){if(i!=null)for(g={},m=0;m<t.attributes.length;m++)g[t.attributes[m].name]=t.attributes[m].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(ca(t,h,g,s,l),c)e.__k=[];else if(m=e.props.children,$r(t,Array.isArray(m)?m:[m],e,n,r,s&&f!=="foreignObject",i,a,i?i[0]:n.__k&&qe(n,0),l),i!=null)for(m=i.length;m--;)i[m]!=null&&Yr(i[m]);l||("value"in h&&(m=h.value)!==void 0&&(m!==t.value||f==="progress"&&!m||f==="option"&&m!==g.value)&&At(t,"value",m,g.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==t.checked&&At(t,"checked",m,g.checked,!1))}return t}function ts(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){A.__e(r,n)}}function ns(t,e,n){var r,s;if(A.unmount&&A.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ts(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){A.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&ns(r[s],e,n||typeof t.type!="function");n||t.__e==null||Yr(t.__e),t.__=t.__e=t.__d=void 0}function fa(t,e,n){return this.constructor(t,n)}function ce(t,e,n){var r,s,i;A.__&&A.__(t,e),s=(r=typeof n=="function")?null:n&&n.__k||e.__k,i=[],mn(e,t=(!r&&n||e).__k=d(w,null,[t]),s||yt,yt,e.ownerSVGElement!==void 0,!r&&n?[n]:s?null:e.firstChild?_t.call(e.childNodes):null,i,!r&&n?n:s?s.__e:e.firstChild,r),es(i,t)}function St(t,e){var n={__c:e="__cC"+Qr++,__:t,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,i;return this.getChildContext||(s=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&s.some(function(l){l.__e=!0,gn(l)})},this.sub=function(a){s.push(a);var l=a.componentWillUnmount;a.componentWillUnmount=function(){s.splice(s.indexOf(a),1),l&&l.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}_t=qr.slice,A={__e:function(t,e,n,r){for(var s,i,a;e=e.__;)if((s=e.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(t)),a=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,r||{}),a=s.__d),a)return s.__E=s}catch(l){t=l}throw t}},Vr=0,pn=function(t){return t!=null&&t.constructor===void 0},Ie=!1,x.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=oe({},this.state),typeof t=="function"&&(t=t(oe({},n),this.props)),t&&oe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),gn(this))},x.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),gn(this))},x.prototype.render=w,Ee=[],Gr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Et.__r=0,Qr=0;var ga,Z,vn,rs;var us=[],bn=[],ss=A.__b,is=A.__r,as=A.diffed,ls=A.__c,os=A.unmount;function pa(){for(var t;t=us.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Dt),t.__H.__h.forEach(yn),t.__H.__h=[]}catch(e){t.__H.__h=[],A.__e(e,t.__v)}}A.__b=function(t){Z=null,ss&&ss(t)},A.__r=function(t){is&&is(t),ga=0;var e=(Z=t.__c).__H;e&&(vn===Z?(e.__h=[],Z.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=bn,n.__N=n.i=void 0})):(e.__h.forEach(Dt),e.__h.forEach(yn),e.__h=[])),vn=Z},A.diffed=function(t){as&&as(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(us.push(e)!==1&&rs===A.requestAnimationFrame||((rs=A.requestAnimationFrame)||ma)(pa)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==bn&&(n.__=n.__V),n.i=void 0,n.__V=bn})),vn=Z=null},A.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Dt),n.__h=n.__h.filter(function(r){return!r.__||yn(r)})}catch(r){e.some(function(s){s.__h&&(s.__h=[])}),e=[],A.__e(r,n.__v)}}),ls&&ls(t,e)},A.unmount=function(t){os&&os(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Dt(r)}catch(s){e=s}}),n.__H=void 0,e&&A.__e(e,n.__v))};var cs=typeof requestAnimationFrame=="function";function ma(t){var e,n=function(){clearTimeout(r),cs&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);cs&&(e=requestAnimationFrame(n))}function Dt(t){var e=Z,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Z=e}function yn(t){var e=Z;t.__c=t.__(),Z=e}function va(t,e){for(var n in e)t[n]=e[n];return t}function ds(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function fs(t){this.props=t}(fs.prototype=new x).isPureReactComponent=!0,fs.prototype.shouldComponentUpdate=function(t,e){return ds(this.props,t)||ds(this.state,e)};var hs=A.__b;A.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),hs&&hs(t)};var Cu=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var ba=A.__e;A.__e=function(t,e,n,r){if(t.then){for(var s,i=e;i=i.__;)if((s=i.__c)&&s.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),s.__c(t,e)}ba(t,e,n,r)};var gs=A.unmount;function As(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=va({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return As(r,e,n)})),t}function Es(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Es(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function An(){this.__u=0,this.t=null,this.__b=null}function _s(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ct(){this.u=null,this.o=null}A.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),gs&&gs(t)},(An.prototype=new x).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=_s(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,s?s(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Es(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},o=e.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},An.prototype.componentWillUnmount=function(){this.t=[]},An.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=As(this.__b,n,r.__O=r.__P)}this.__b=null}var s=e.__a&&d(w,null,t.fallback);return s&&(s.__h=null),[d(w,null,e.__a?null:t.children),s]};var ps=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function ya(t){return this.getChildContext=function(){return t.context},t.children}function Aa(t){var e=this,n=t.i;e.componentWillUnmount=function(){ce(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),ce(d(ya,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Ss(t,e){var n=d(Aa,{__v:t,i:e});return n.containerInfo=e,n}(Ct.prototype=new x).__a=function(t){var e=this,n=_s(e.__v),r=e.o.get(t);return r[0]++,function(s){var i=function(){e.props.revealOrder?(r.push(s),ps(e,t,r)):s()};n?n(i):i()}},Ct.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ye(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Ct.prototype.componentDidUpdate=Ct.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ps(t,n,e)})};var Ea=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,_a=/^(?: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]/,Sa=typeof document!="undefined",Da=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(x.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var ms=A.event;function Ca(){}function Ra(){return this.cancelBubble}function wa(){return this.defaultPrevented}A.event=function(t){return ms&&(t=ms(t)),t.persist=Ca,t.isPropagationStopped=Ra,t.isDefaultPrevented=wa,t.nativeEvent=t};var Ta,vs={configurable:!0,get:function(){return this.class}},bs=A.vnode;A.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var s=e.indexOf("-")===-1;for(var i in r={},n){var a=n[i];Sa&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in n&&a==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!Da(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():s&&_a.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ye(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Ye(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),t.props=r,n.class!=n.className&&(vs.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",vs))}t.$$typeof=Ea,bs&&bs(t)};var ys=A.__r;A.__r=function(t){ys&&ys(t),Ta=t.__c};var Hs=[],Tn=new Map;function pe(t){Hs.push(t),Tn.forEach(e=>{Us(e,t)})}function Ps(t){t.isConnected&&t.getRootNode&&Bs(t.getRootNode())}function Bs(t){let e=Tn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");let n=Ma();n&&(e.nonce=n);let r=t===document?document.head:t,s=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,s)}Tn.set(t,e),Ia(e)}}function Ia(t){for(let e of Hs)Us(t,e)}function Us(t,e){let{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((s,i)=>{s=s.trim(),s&&n.insertRule(s+"}",r+i)})}var En;function Ma(){return En===void 0&&(En=ka()),En}function ka(){let t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");let e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document!="undefined"&&Bs(document);var xa=':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;-webkit-user-select: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;-webkit-user-select:none;-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)}';pe(xa);var Se=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:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[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),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}};function Fs(t){t.parentNode&&t.parentNode.removeChild(t)}function G(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(zs(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function zs(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Ls(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let s=0;s<n.length;s+=1){let i=n[s].querySelectorAll(e);for(let a=0;a<i.length;a+=1)r.push(i[a])}return r}var Na=/(top|left|right|bottom|width|height)$/i;function Ws(t,e){for(let n in e)Ln(t,n,e[n])}function Ln(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Na.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function js(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}var Ds=0;function z(){return Ds+=1,"fc-dom-"+Ds}function Oa(t,e){return n=>{let r=G(n.target,t);r&&e.call(r,n,r)}}function Wn(t,e,n,r){let s=Oa(n,r);return t.addEventListener(e,s),()=>{t.removeEventListener(e,s)}}function Vs(t,e,n,r){let s;return Wn(t,"mouseover",e,(i,a)=>{if(a!==s){s=a,n(i,a);let l=o=>{s=null,r(o,a),a.removeEventListener("mouseleave",l)};a.addEventListener("mouseleave",l)}})}function Gs(t){return Object.assign({onClick:t},Qs(t))}function Qs(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}var Cs=0;function ie(){return Cs+=1,String(Cs)}function qs(t){let e=[],n=[],r,s;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)s=n[r],typeof s=="string"?e.push(s.charAt(0)==="-"?{field:s.substring(1),order:-1}:{field:s,order:1}):typeof s=="function"&&e.push({func:s});return e}function Ys(t,e,n){let r,s;for(r=0;r<n.length;r+=1)if(s=Ha(t,e,n[r]),s)return s;return 0}function Ha(t,e,n){return n.func?n.func(t,e):Zs(t[n.field],e[n.field])*(n.order||1)}function Zs(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function kt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Fe(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,s,i)=>r.replace("$"+i,s||""),t):n}function xt(t){return t%1===0}function Pa(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}var Ba=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function S(t,e){return typeof t=="string"?Ua(t):typeof t=="object"&&t?Rs(t):typeof t=="number"?Rs({[e||"milliseconds"]:t}):null}function Ua(t){let e=Ba.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Rs(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Fa(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function $s(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function za(t){return Me(t)/365}function La(t){return Me(t)/30}function Me(t){return ke(t)/864e5}function ke(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function $e(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function ee(t,e,n){if(t===e)return!0;let r=t.length,s;if(r!==e.length)return!1;for(s=0;s<r;s+=1)if(!(n?n(t[s],e[s]):t[s]===e[s]))return!1;return!0}var Wa=["sun","mon","tue","wed","thu","fri","sat"];function Gt(t,e){let n=de(t);return n[2]+=e*7,U(n)}function k(t,e){let n=de(t);return n[2]+=e,U(n)}function J(t,e){let n=de(t);return n[6]+=e,U(n)}function jn(t,e){return me(t,e)/7}function me(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function ja(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Va(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Ga(t,e){return(e.valueOf()-t.valueOf())/1e3}function Js(t,e){let n=M(t),r=M(e);return{years:0,months:0,days:Math.round(me(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function Ks(t,e){let n=xe(t,e);return n!==null&&n%7===0?n/7:null}function xe(t,e){return fe(t)===fe(e)?Math.round(me(t,e)):null}function M(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Qa(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function qa(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Ya(t){return U([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Za(t,e,n){let r=t.getUTCFullYear(),s=_n(t,r,e,n);if(s<1)return _n(t,r-1,e,n);let i=_n(t,r+1,e,n);return i>=1?Math.min(s,i):s}function _n(t,e,n,r){let s=U([e,0,1+$a(e,n,r)]),i=M(t),a=Math.round(me(s,i));return Math.floor(a/7)+1}function $a(t,e,n){let r=7+e-n;return-((7+U([t,0,r]).getUTCDay()-e)%7)+r-1}function ws(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ts(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function de(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function U(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Vn(t){return!isNaN(t.valueOf())}function fe(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Xs(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",Gn(e,!0)))),r}function ve(t){return t.toISOString().replace(/T.*$/,"")}function ze(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Gn(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),s=Math.floor(r/60),i=Math.round(r%60);return e?`${n+kt(s,2)}:${kt(i,2)}`:`GMT${n}${s}${i?`:${kt(i,2)}`:""}`}function _(t,e,n){let r,s;return function(...i){if(!r)s=t.apply(this,i);else if(!ee(r,i)){n&&n(s);let a=t.apply(this,i);(!e||!e(a,s))&&(s=a)}return r=i,s}}function Le(t,e,n){let r,s;return i=>{if(!r)s=t.call(this,i);else if(!H(r,i)){n&&n(s);let a=t.call(this,i);(!e||!e(a,s))&&(s=a)}return r=i,s}}var Sn={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Ht={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Rt=/\s*([ap])\.?m\.?/i,Ja=/,/g,Ka=/\s+/g,Xa=/\u200e/g,el=/UTC|GMT/,In=class{constructor(e){let n={},r={},s=9;for(let i in e)i in Sn?(r[i]=e[i],Sn[i]<9&&(s=Math.min(Sn[i],s))):(n[i]=e[i],i in Ht&&(s=Math.min(Ht[i],s)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=s,this.buildFormattingFunc=_(Is)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,s){let{standardDateProps:i,extendedSettings:a}=this,l=al(e.marker,n.marker,r.calendarSystem);if(!l)return this.format(e,r);let o=l;o>1&&(i.year==="numeric"||i.year==="2-digit")&&(i.month==="numeric"||i.month==="2-digit")&&(i.day==="numeric"||i.day==="2-digit")&&(o=1);let u=this.format(e,r),c=this.format(n,r);if(u===c)return u;let g=ll(i,o),h=Is(g,a,r),f=h(e),m=h(n),y=ol(u,f,c,m),v=a.separator||s||r.defaultSeparator||"";return y?y.before+f+v+m+y.after:u+v+c}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}};function Is(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?s=>Gn(s.timeZoneOffset):r===0&&e.week?s=>il(n.computeWeekNumber(s.marker),n.weekText,n.weekTextLong,n.locale,e.week):tl(t,e,n)}function tl(t,e,n){t=Object.assign({},t),e=Object.assign({},e),nl(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),s;if(e.omitZeroMinute){let i=Object.assign({},t);delete i.minute,s=new Intl.DateTimeFormat(n.locale.codes,i)}return i=>{let{marker:a}=i,l;s&&!a.getUTCMinutes()?l=s:l=r;let o=l.format(a);return rl(o,i,t,e,n)}}function nl(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function rl(t,e,n,r,s){return t=t.replace(Xa,""),n.timeZoneName==="short"&&(t=sl(t,s.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Gn(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Ja,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Rt,"").trim():r.meridiem==="narrow"?t=t.replace(Rt,(i,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Rt,(i,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Rt,i=>i.toLocaleLowerCase())),t=t.replace(Ka," "),t=t.trim(),t}function sl(t,e){let n=!1;return t=t.replace(el,()=>(n=!0,e)),n||(t+=` ${e}`),t}function il(t,e,n,r,s){let i=[];return s==="long"?i.push(n):(s==="short"||s==="narrow")&&i.push(e),(s==="long"||s==="short")&&i.push(" "),i.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&i.reverse(),i.join("")}function al(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:fe(t)!==fe(e)?1:0}function ll(t,e){let n={};for(let r in t)(!(r in Ht)||Ht[r]<=e)&&(n[r]=t[r]);return n}function ol(t,e,n,r){let s=0;for(;s<t.length;){let i=t.indexOf(e,s);if(i===-1)break;let a=t.substr(0,i);s=i+e.length;let l=t.substr(s),o=0;for(;o<n.length;){let u=n.indexOf(r,o);if(u===-1)break;let c=n.substr(0,u);o=u+r.length;let g=n.substr(o);if(a===c&&l===g)return{before:a,after:l}}}return null}function Ms(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.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 Pt(t,e,n,r){let s=Ms(t,n.calendarSystem),i=e?Ms(e,n.calendarSystem):null;return{date:s,start:s,end:i,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var Mn=class{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,Pt(e,null,n,r))}formatRange(e,n,r,s){return r.cmdFormatter(this.cmdStr,Pt(e,n,r,s))}},kn=class{constructor(e){this.func=e}format(e,n,r){return this.func(Pt(e,null,n,r))}formatRange(e,n,r,s){return this.func(Pt(e,n,r,s))}};function T(t){return typeof t=="object"&&t?new In(t):typeof t=="string"?new Mn(t):typeof t=="function"?new kn(t):null}var Qn={navLinkDayClick:p,navLinkWeekClick:p,duration:S,bootstrapFontAwesome:p,buttonIcons:p,customButtons:p,defaultAllDayEventDuration:S,defaultTimedEventDuration:S,nextDayThreshold:S,scrollTime:S,scrollTimeReset:Boolean,slotMinTime:S,slotMaxTime:S,dayPopoverFormat:T,slotDuration:S,snapDuration:S,headerToolbar:p,footerToolbar:p,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:T,dayHeaderClassNames:p,dayHeaderContent:p,dayHeaderDidMount:p,dayHeaderWillUnmount:p,dayCellClassNames:p,dayCellContent:p,dayCellDidMount:p,dayCellWillUnmount:p,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:p,weekNumbers:Boolean,weekNumberClassNames:p,weekNumberContent:p,weekNumberDidMount:p,weekNumberWillUnmount:p,editable:Boolean,viewClassNames:p,viewDidMount:p,viewWillUnmount:p,nowIndicator:Boolean,nowIndicatorSnap:p,nowIndicatorClassNames:p,nowIndicatorContent:p,nowIndicatorDidMount:p,nowIndicatorWillUnmount:p,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:p,locale:p,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:p,eventOrder:qs,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:p,contentHeight:p,direction:String,weekNumberFormat:T,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:p,initialDate:p,now:p,eventDataTransform:p,stickyHeaderDates:p,stickyFooterScrollbar:p,viewHeight:p,defaultAllDay:Boolean,eventSourceFailure:p,eventSourceSuccess:p,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:p,eventConstraint:p,eventAllow:p,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:p,eventContent:p,eventDidMount:p,eventWillUnmount:p,selectConstraint:p,selectOverlap:p,selectAllow:p,droppable:Boolean,unselectCancel:String,slotLabelFormat:p,slotLaneClassNames:p,slotLaneContent:p,slotLaneDidMount:p,slotLaneWillUnmount:p,slotLabelClassNames:p,slotLabelContent:p,slotLabelDidMount:p,slotLabelWillUnmount:p,dayMaxEvents:p,dayMaxEventRows:p,dayMinWidth:Number,slotLabelInterval:S,allDayText:String,allDayClassNames:p,allDayContent:p,allDayDidMount:p,allDayWillUnmount:p,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:T,rerenderDelay:Number,moreLinkText:p,moreLinkHint:p,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:p,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:S,hiddenDays:p,fixedWeekCount:Boolean,validRange:p,visibleRange:p,titleFormat:p,eventInteractive:Boolean,noEventsText:String,viewHint:p,navLinkHint:p,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:p,moreLinkClassNames:p,moreLinkContent:p,moreLinkDidMount:p,moreLinkWillUnmount:p,monthStartFormat:T,handleCustomRendering:p,customRenderingMetaMap:p,customRenderingReplaces:Boolean},we={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",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"},nowIndicatorSnap:"auto"},qn={datesSet:p,eventsSet:p,eventAdd:p,eventChange:p,eventRemove:p,windowResize:p,eventClick:p,eventMouseEnter:p,eventMouseLeave:p,select:p,unselect:p,loading:p,_unmount:p,_beforeprint:p,_afterprint:p,_noEventDrop:p,_noEventResize:p,_resize:p,_scrollRequest:p},Yn={buttonText:p,buttonHints:p,views:p,plugins:p,initialEvents:p,events:p,eventSources:p},be={headerToolbar:_e,footerToolbar:_e,buttonText:_e,buttonHints:_e,buttonIcons:_e,dateIncrement:_e,plugins:wt,events:wt,eventSources:wt,resources:wt};function _e(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?H(t,e):t===e}function wt(t,e){return Array.isArray(t)&&Array.isArray(e)?ee(t,e):t===e}var ei={type:String,component:p,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:p,usesMinMaxTime:Boolean,classNames:p,content:p,didMount:p,willUnmount:p};function Qt(t){return Yt(t,be)}function qt(t,e){let n={},r={};for(let s in e)s in t&&(n[s]=e[s](t[s]));for(let s in t)s in e||(r[s]=t[s]);return{refined:n,extra:r}}function p(t){return t}var{hasOwnProperty:Bt}=Object.prototype;function Yt(t,e){let n={};if(e){for(let r in e)if(e[r]===_e){let s=[];for(let i=t.length-1;i>=0;i-=1){let a=t[i][r];if(typeof a=="object"&&a)s.unshift(a);else if(a!==void 0){n[r]=a;break}}s.length&&(n[r]=Yt(s))}}for(let r=t.length-1;r>=0;r-=1){let s=t[r];for(let i in s)i in n||(n[i]=s[i])}return n}function he(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function Te(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Zn(t){let e={};for(let n of t)e[n]=!0;return e}function Zt(t){let e=[];for(let n in t)e.push(t[n]);return e}function H(t,e){if(t===e)return!0;for(let n in t)if(Bt.call(t,n)&&!(n in e))return!1;for(let n in e)if(Bt.call(e,n)&&t[n]!==e[n])return!1;return!0}var cl=/^on[A-Z]/;function ul(t,e){let n=dl(t,e);for(let r of n)if(!cl.test(r))return!1;return!0}function dl(t,e){let n=[];for(let r in t)Bt.call(t,r)&&(r in e||n.push(r));for(let r in e)Bt.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Nt(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&fl(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function fl(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function ti(t,e=0,n,r=1){let s=[];n==null&&(n=Object.keys(t).length);for(let i=e;i<n;i+=r){let a=t[i];a!==void 0&&s.push(a)}return s}var ni={};function hl(t,e){ni[t]=e}function gl(t){return new ni[t]}var xn=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return U(e)}markerToArray(e){return de(e)}};hl("gregory",xn);var pl=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function ri(t){let e=pl.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Vn(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}var Je=class{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=gl(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.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):U(ws(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=U(e)),n===null||!Vn(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=ri(e);if(n===null)return null;let{marker:r}=n,s=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):s=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:s}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return fe(e)===fe(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return fe(e)===fe(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=Ks(e,n),r!==null?{unit:"week",value:r}:(r=xe(e,n),r!==null?{unit:"day",value:r}:(r=ja(e,n),xt(r)?{unit:"hour",value:r}:(r=Va(e,n),xt(r)?{unit:"minute",value:r}:(r=Ga(e,n),xt(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let s;return r.years&&(s=this.diffWholeYears(e,n),s!==null)?s/za(r):r.months&&(s=this.diffWholeMonths(e,n),s!==null)?s/La(r):r.days&&(s=xe(e,n),s!==null)?s/Me(r):(n.valueOf()-e.valueOf())/ke(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?M(e):n==="hour"?Qa(e):n==="minute"?qa(e):n==="second"?Ya(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)):Za(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,s={}){return s.isEndExclusive&&(n=J(n,-1)),r.formatRange({marker:e,timeZoneOffset:s.forcedStartTzo!=null?s.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:s.forcedEndTzo!=null?s.forcedEndTzo:this.offsetForMarker(n)},this,s.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),Xs(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?U(ws(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):U(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Ts(de(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(de(e)):null}toDate(e,n){return this.timeZone==="local"?Ts(de(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(de(e))*1e3*60):new Date(e.valueOf()-(n||0))}},re=class{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}};re.prototype.classes={};re.prototype.iconClasses={};re.prototype.baseIconClass="";re.prototype.iconOverridePrefix="";function Ke(t){t();let e=A.debounceRendering,n=[];function r(s){n.push(s)}for(A.debounceRendering=r,ce(d(Nn,{}),document.createElement("div"));n.length;)n.shift()();A.debounceRendering=e}var Nn=class extends x{render(){return d("div",{})}componentDidMount(){this.setState({})}};function si(t){let e=St(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,s=n.apply(this,arguments);if(r){let i=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&i.forEach(l=>{l.context=a.value,l.forceUpdate()})},this.sub=a=>{i.push(a);let l=a.componentWillUnmount;a.componentWillUnmount=()=>{i.splice(i.indexOf(a),1),l&&l.call(a)}}}return s},e}var Ut=class{constructor(e,n,r,s){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=s,this.handleScrollRequest=i=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},i),this.drain()},n.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)}},ae=si({});function ii(t,e,n,r,s,i,a,l,o,u,c,g,h,f){return{dateEnv:s,nowManager:i,options:n,pluginHooks:l,emitter:c,dispatch:o,getCurrentData:u,calendarApi:g,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:a,isRtl:n.direction==="rtl",addResizeHandler(m){c.on("_resize",m)},removeResizeHandler(m){c.off("_resize",m)},createScrollResponder(m){return new Ut(m,c,S(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:f}}var K=class extends x{shouldComponentUpdate(e,n){return!Nt(this.props,e,this.propEquality)||!Nt(this.state,n,this.stateEquality)}safeSetState(e){Nt(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}};K.addPropsEquality=ml;K.addStateEquality=vl;K.contextType=ae;K.prototype.propEquality={};K.prototype.stateEquality={};var C=class extends K{};C.contextType=ae;function ml(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function vl(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function j(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var Xe=class extends C{constructor(){super(...arguments),this.id=ie(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!On(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&j(this.props.elRef,e)}}render(){let{props:e,context:n}=this,{options:r}=n,{customGenerator:s,defaultGenerator:i,renderProps:a}=e,l=$n(e,[],this.handleEl),o=!1,u,c=[],g;if(s!=null){let h=typeof s=="function"?s(a,d):s;if(h===!0)o=!0;else{let f=h&&typeof h=="object";f&&"html"in h?l.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?c=Array.prototype.slice.call(h.domNodes):(f?pn(h):typeof h!="function")?u=h:g=h}}else o=!On(e.generatorName,r);return o&&i&&(u=i(a)),this.queuedDomNodes=c,this.currentGeneratorMeta=g,d(e.elTag,l,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;let{props:r,context:s}=this,{handleCustomRendering:i,customRenderingMetaMap:a}=s.options;if(i){let l=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];l&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:l},r),{elClasses:(r.elClasses||[]).filter(bl)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!ee(e,n)){n.forEach(Fs);for(let s of e)r.appendChild(s);this.currentDomNodes=e}}};Xe.addPropsEquality({elClasses:ee,elStyle:H,elAttrs:ul,renderProps:H});function On(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function $n(t,e,n){let r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function bl(t){return!!t}var Jn=si(0),N=class extends x{constructor(){super(...arguments),this.InnerContent=yl.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(j(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:e}=this,n=Al(e.classNameGenerator,e.renderProps);if(e.children){let r=$n(e,n,this.handleEl),s=e.children(this.InnerContent,e.renderProps,r);return e.elTag?d(e.elTag,r,s):s}else return d(Xe,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}};N.contextType=Jn;function yl(t,e){let n=t.props;return d(Xe,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Al(t,e){let n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}var X=class extends C{render(){let{props:e,context:n}=this,{options:r}=n,s={view:n.viewApi};return d(N,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Kn(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}};function Kn(t){return[`fc-${t.type}-view`,"fc-view"]}function El(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function ks(t,e){let n=[],{start:r}=e,s,i;for(t.sort(_l),s=0;s<t.length;s+=1)i=t[s],i.start>r&&n.push({start:r,end:i.start}),i.end>r&&(r=i.end);return r<e.end&&n.push({start:r,end:e.end}),n}function _l(t,e){return t.start.valueOf()-e.start.valueOf()}function W(t,e){let{start:n,end:r}=t,s=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(s={start:n,end:r}),s}function ai(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function $(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Sl(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function li(t){let e=Math.floor(me(t.start,t.end))||1,n=M(t.start),r=k(n,e);return{start:n,end:r}}function $t(t,e=S(0)){let n=null,r=null;if(t.end){r=M(t.end);let s=t.end.valueOf()-r.valueOf();s&&s>=ke(e)&&(r=k(r,1))}return t.start&&(n=M(t.start),r&&r<=n&&(r=k(n,1))),{start:n,end:r}}function Xn(t){let e=$t(t);return me(e.start,e.end)>1}function Ze(t,e,n,r){return r==="year"?S(n.diffWholeYears(t,e),"year"):r==="month"?S(n.diffWholeMonths(t,e),"month"):Js(t,e)}var De=class{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:s}=this.props,i=s.subtract(s.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,r)}buildNext(e,n,r){let{dateEnv:s}=this.props,i=s.add(s.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,r)}build(e,n,r=!0){let{props:s}=this,i,a,l,o,u,c;return i=this.buildValidRange(),i=this.trimHiddenDays(i),r&&(e=Sl(e,i)),a=this.buildCurrentRangeInfo(e,n),l=/^(year|month|week|day)$/.test(a.unit),o=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,l),o=this.trimHiddenDays(o),u=o,s.showNonCurrentDates||(u=W(u,a.range)),u=this.adjustActiveRange(u),u=W(u,i),c=ai(a.range,i),$(o,e)||(e=o.start),{currentDate:e,validRange:i,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:l,activeRange:u,renderRange:o,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,s=null,i=null,a=null,l;return r.duration?(s=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,n,s,i)):(l=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,n,l)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(s=this.getFallbackDuration(),i=$e(s).unit,a=this.buildRangeFromDuration(e,n,s,i)),{duration:s,unit:i,range:a}}getFallbackDuration(){return S({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:s,slotMaxTime:i}=this.props,{start:a,end:l}=e;return r&&(Me(s)<0&&(a=M(a),a=n.add(a,s)),Me(i)>1&&(l=M(l),l=k(l,-1),l=n.add(l,i))),{start:a,end:l}}buildRangeFromDuration(e,n,r,s){let{dateEnv:i,dateAlignment:a}=this.props,l,o,u;if(!a){let{dateIncrement:g}=this.props;g&&ke(g)<ke(r)?a=$e(g).unit:a=s}Me(r)<=1&&this.isHiddenDay(l)&&(l=this.skipHiddenDays(l,n),l=M(l));function c(){l=i.startOf(e,a),o=i.add(l,r),u={start:l,end:o}}return c(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,n),c()),u}buildRangeFromDayCount(e,n,r){let{dateEnv:s,dateAlignment:i}=this.props,a=0,l=e,o;i&&(l=s.startOf(l,i)),l=M(l),l=this.skipHiddenDays(l,n),o=l;do o=k(o,1),this.isHiddenDay(o)||(a+=1);while(a<r);return{start:l,end:o}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,s=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,i=this.refineRange(s);return i&&(i.start==null||i.end==null)?null:i}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?S(1,r):e||S({days:1}))}refineRange(e){if(e){let n=El(e,this.props.dateEnv);return n&&(n=$t(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,s;for(this.props.weekends===!1&&e.push(0,6),s=0;s<7;s+=1)(n[s]=e.indexOf(s)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=k(e,n);return e}};function Jt(t,e,n,r){return{instanceId:ie(),defId:t,range:e,forcedStartTzo:n==null?null:n,forcedEndTzo:r==null?null:r}}function Dl(t,e,n,r){for(let s=0;s<r.length;s+=1){let i=r[s].parse(t,n);if(i){let{allDay:a}=t;return a==null&&(a=e,a==null&&(a=i.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:s}}}return null}function ut(t,e,n){let{dateEnv:r,pluginHooks:s,options:i}=n,{defs:a,instances:l}=t;l=he(l,o=>!a[o.defId].recurringDef);for(let o in a){let u=a[o];if(u.recurringDef){let{duration:c}=u.recurringDef;c||(c=u.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let g=Cl(u,c,e,r,s.recurringTypes);for(let h of g){let f=Jt(o,{start:h,end:r.add(h,c)});l[f.instanceId]=f}}}return{defs:a,instances:l}}function Cl(t,e,n,r,s){let a=s[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(a=a.map(M)),a}var Ot={id:String,groupId:String,title:String,url:String,interactive:Boolean},oi={start:p,end:p,date:p,allDay:Boolean},Rl=Object.assign(Object.assign(Object.assign({},Ot),oi),{extendedProps:p});function ci(t,e,n,r,s=tr(n),i,a){let{refined:l,extra:o}=er(t,n,s),u=Tl(e,n),c=Dl(l,u,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let h=Ft(l,o,e?e.sourceId:"",c.allDay,!!c.duration,n,i);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let g=wl(l,u,n,r);if(g){let h=Ft(l,o,e?e.sourceId:"",g.allDay,g.hasEnd,n,i),f=Jt(h.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return a&&h.publicId&&a[h.publicId]&&(f.instanceId=a[h.publicId]),{def:h,instance:f}}return null}function er(t,e,n=tr(e)){return qt(t,n)}function tr(t){return Object.assign(Object.assign(Object.assign({},Lt),Rl),t.pluginHooks.eventRefiners)}function Ft(t,e,n,r,s,i,a){let l={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||ie(),sourceId:n,allDay:r,hasEnd:s,interactive:t.interactive,ui:We(t,i),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of i.pluginHooks.eventDefMemberAdders)Object.assign(l,o(t));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function wl(t,e,n,r){let{allDay:s}=t,i,a=null,l=!1,o,u=null,c=t.start!=null?t.start:t.date;if(i=n.dateEnv.createMarkerMeta(c),i)a=i.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),s==null&&(e!=null?s=e:s=(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),s&&a&&(a=M(a)),o&&(u=o.marker,s&&(u=M(u)),a&&u<=a&&(u=null)),u?l=!0:r||(l=n.options.forceEventDuration||!1,u=n.dateEnv.add(a,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:s,hasEnd:l,range:{start:a,end:u},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function Tl(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function et(t,e,n,r,s,i){let a=te(),l=tr(n);for(let o of t){let u=ci(o,e,n,r,l,s,i);u&&zt(u,a)}return a}function zt(t,e=te()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function ui(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],s=nr(t,i=>Il(r,i));return s.defs[r.defId]=r,s.instances[n.instanceId]=n,s}return te()}function Il(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function te(){return{defs:{},instances:{}}}function Kt(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function nr(t,e){let n=he(t.defs,e),r=he(t.instances,s=>n[s.defId]);return{defs:n,instances:r}}function Ml(t,e){let{defs:n,instances:r}=t,s={},i={};for(let a in n)e.defs[a]||(s[a]=n[a]);for(let a in r)!e.instances[a]&&s[r[a].defId]&&(i[a]=r[a]);return{defs:s,instances:i}}function kl(t,e){return Array.isArray(t)?et(t,null,e,!0):typeof t=="object"&&t?et([t],null,e,!0):t!=null?String(t):null}function Hn(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}var Lt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:p,overlap:p,allow:p,className:Hn,classNames:Hn,color:String,backgroundColor:String,borderColor:String,textColor:String},xl={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function We(t,e){let n=kl(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function di(t){return t.reduce(Nl,xl)}function Nl(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}var Ol={id:String,defaultAllDay:Boolean,url:String,format:String,events:p,eventDataTransform:p,success:p,failure:p};function rr(t,e,n=sr(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:s,extra:i}=qt(r,n),a=Hl(s,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:ie(),sourceDefId:a.sourceDefId,meta:a.meta,ui:We(s,e),extendedProps:i}}return null}function sr(t){return Object.assign(Object.assign(Object.assign({},Lt),Ol),t.pluginHooks.eventSourceRefiners)}function Hl(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let i=n[r].parseMeta(t);if(i)return{sourceDefId:r,meta:i}}return null}function fi(t,e,n,r,s){switch(e.type){case"RECEIVE_EVENTS":return Pl(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,s);case"RESET_RAW_EVENTS":return Bl(t,n[e.sourceId],e.rawEvents,r.activeRange,s);case"ADD_EVENTS":return Ul(t,e.eventStore,r?r.activeRange:null,s);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Kt(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?ut(t,r.activeRange,s):t;case"REMOVE_EVENTS":return Ml(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return gi(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return nr(t,i=>!i.sourceId);case"REMOVE_ALL_EVENTS":return te();default:return t}}function Pl(t,e,n,r,s,i){if(e&&n===e.latestFetchId){let a=et(hi(s,e,i),e,i);return r&&(a=ut(a,r,i)),Kt(gi(t,e.sourceId),a)}return t}function Bl(t,e,n,r,s){let{defIdMap:i,instanceIdMap:a}=Fl(t),l=et(hi(n,e,s),e,s,!1,i,a);return ut(l,r,s)}function hi(t,e,n){let r=n.options.eventDataTransform,s=e?e.eventDataTransform:null;return s&&(t=xs(t,s)),r&&(t=xs(t,r)),t}function xs(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let s=e(r);s?n.push(s):s==null&&n.push(r)}}return n}function Ul(t,e,n,r){return n&&(e=ut(e,n,r)),Kt(t,e)}function ir(t,e,n){let{defs:r}=t,s=Te(t.instances,i=>r[i.defId].allDay?i:Object.assign(Object.assign({},i),{range:{start:n.createMarker(e.toDate(i.range.start,i.forcedStartTzo)),end:n.createMarker(e.toDate(i.range.end,i.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:i.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:i.forcedEndTzo}));return{defs:r,instances:s}}function gi(t,e){return nr(t,n=>n.sourceId!==e)}function Fl(t){let{defs:e,instances:n}=t,r={},s={};for(let i in e){let a=e[i],{publicId:l}=a;l&&(r[l]=i)}for(let i in n){let a=n[i],l=e[a.defId],{publicId:o}=l;o&&(s[o]=i)}return{defIdMap:r,instanceIdMap:s}}var tt=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){zl(this.handlers,e,n)}off(e,n){Ll(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],s=this.options&&this.options[e],i=[].concat(s||[],r);for(let a of i)a.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}};function zl(t,e,n){(t[e]||(t[e]=[])).push(n)}function Ll(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}var Wl={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ar(t,e){return et(jl(t),null,e)}function jl(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},Wl),n)),e}function pi(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Gl(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Vl(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Gl(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,no(t,e.dateEnv)),n}function Pn(t,e,n){let{dateEnv:r,options:s}=n,i=e;return t?(i=M(i),i=r.add(i,s.defaultAllDayEventDuration)):i=r.add(i,s.defaultTimedEventDuration),i}function mi(t,e,n,r){let s=bi(t.defs,e),i=te();for(let a in t.defs){let l=t.defs[a];i.defs[a]=Ql(l,s[a],n,r)}for(let a in t.instances){let l=t.instances[a],o=i.defs[l.defId];i.instances[a]=ql(l,o,s[l.defId],n,r)}return i}function Ql(t,e,n,r){let s=n.standardProps||{};s.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(s.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},t),s),{ui:Object.assign(Object.assign({},t.ui),s.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function ql(t,e,n,r,s){let{dateEnv:i}=s,a=r.standardProps&&r.standardProps.allDay===!0,l=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return a&&(o.range=li(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:i.add(o.range.start,r.datesDelta),end:i.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:i.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:i.add(o.range.end,r.endDelta)}),l&&(o.range={start:o.range.start,end:Pn(e.allDay,o.range.start,s)}),e.allDay&&(o.range={start:M(o.range.start),end:M(o.range.end)}),o.range.end<o.range.start&&(o.range.end=Pn(e.allDay,o.range.start,s)),o}var ue=class{constructor(e,n){this.context=e,this.internalEventSource=n}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}},F=class t{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in oi)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Ot[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Ot)n=Ot[e](n),this.mutate({standardProps:{[e]:n}});else if(e in Lt){let r=Lt[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,s=r.createMarker(e);if(s&&this._instance){let i=this._instance.range,a=Ze(i.start,s,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(e,n={}){let{dateEnv:r}=this._context,s;if(!(e!=null&&(s=r.createMarker(e),!s))&&this._instance)if(s){let i=Ze(this._instance.range.end,s,r,n.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:s}=this._context,i={allDay:r.allDay},a=s.createMarker(e),l;if(a&&!(n!=null&&(l=s.createMarker(n),!l))&&this._instance){let o=this._instance.range;r.allDay===!0&&(o=li(o));let u=Ze(o.start,a,s,r.granularity);if(l){let c=Ze(o.end,l,s,r.granularity);Fa(u,c)?this.mutate({datesDelta:u,standardProps:i}):this.mutate({startDelta:u,endDelta:c,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:u,standardProps:i})}}moveStart(e){let n=S(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=S(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=S(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:s}=n;s==null&&(s=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=s),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,s=T(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,s,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,s,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,s=this._context,{eventStore:i}=s.getCurrentData(),a=ui(i,n.instanceId);a=mi(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,s);let o=new t(s,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],s.dispatch({type:"MERGE_EVENTS",eventStore:a}),s.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:dt(a,s,n),revert(){s.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,n=vi(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new ue(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 n=this._def,{ui:r}=n,{startStr:s,endStr:i}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),s&&(a.start=s),i&&(a.end=i),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),r.display&&r.display!=="auto"&&(a.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?a.color=r.backgroundColor:(r.backgroundColor&&(a.backgroundColor=r.backgroundColor),r.borderColor&&(a.borderColor=r.borderColor)),r.textColor&&(a.textColor=r.textColor),r.classNames.length&&(a.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}};function vi(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function dt(t,e,n){let{defs:r,instances:s}=t,i=[],a=n?n.instanceId:"";for(let l in s){let o=s[l],u=r[o.defId];o.instanceId!==a&&i.push(new F(e,u,o))}return i}function Ne(t,e,n,r){let s={},i={},a={},l=[],o=[],u=bi(t.defs,e);for(let c in t.defs){let g=t.defs[c];u[g.defId].display==="inverse-background"&&(g.groupId?(s[g.groupId]=[],a[g.groupId]||(a[g.groupId]=g)):i[c]=[])}for(let c in t.instances){let g=t.instances[c],h=t.defs[g.defId],f=u[h.defId],m=g.range,y=!h.allDay&&r?$t(m,r):m,v=W(y,n);v&&(f.display==="inverse-background"?h.groupId?s[h.groupId].push(v):i[g.defId].push(v):f.display!=="none"&&(f.display==="background"?l:o).push({def:h,ui:f,instance:g,range:v,isStart:y.start&&y.start.valueOf()===v.start.valueOf(),isEnd:y.end&&y.end.valueOf()===v.end.valueOf()}))}for(let c in s){let g=s[c],h=ks(g,n);for(let f of h){let m=a[c],y=u[m.defId];l.push({def:m,ui:y,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let c in i){let g=i[c],h=ks(g,n);for(let f of h)l.push({def:t.defs[c],ui:u[c],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:l,fg:o}}function Ns(t,e){t.fcSeg=e}function ft(t){return t.fcSeg||t.parentNode.fcSeg||null}function bi(t,e){return Te(t,n=>yi(n,e))}function yi(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),di(n)}function ht(t,e){let n=t.map(Yl);return n.sort((r,s)=>Ys(r,s,e)),n.map(r=>r._seg)}function Yl(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,s=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:s,end:i,duration:i-s,allDay:Number(n.allDay),_seg:t})}function Zl(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:s,ui:i}=t.eventRange,a=i.startEditable;for(let l of r)a=l(a,s,i,e);return a}function $l(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Jl(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function ye(t,e,n,r,s,i,a){let{dateEnv:l,options:o}=n,{displayEventTime:u,displayEventEnd:c}=o,g=t.eventRange.def,h=t.eventRange.instance;u==null&&(u=r!==!1),c==null&&(c=s!==!1);let f=h.range.start,m=h.range.end,y=i||t.start||t.eventRange.range.start,v=a||t.end||t.eventRange.range.end,b=M(f).valueOf()===M(y).valueOf(),E=M(J(m,-1)).valueOf()===M(J(v,-1)).valueOf();return u&&!g.allDay&&(b||E)?(y=b?f:y,v=E?m:v,c&&g.hasEnd?l.formatRange(y,v,e,{forcedStartTzo:i?null:h.forcedStartTzo,forcedEndTzo:a?null:h.forcedEndTzo}):l.format(y,e,{forcedTzo:i?null:h.forcedStartTzo})):""}function le(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&$(e,r.start)}}function Kl(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function lr(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function je(t,e){let{def:n,instance:r}=t.eventRange,{url:s}=n;if(s)return{href:s};let{emitter:i,options:a}=e,{eventInteractive:l}=a;return l==null&&(l=n.interactive,l==null&&(l=!!i.hasHandlers("eventClick"))),l?Qs(o=>{i.trigger("eventClick",{el:o.target,event:new F(e,n,r),jsEvent:o,view:e.viewApi})}):{}}var Xl={start:p,end:p,allDay:Boolean};function eo(t,e,n){let r=to(t,e),{range:s}=r;if(!s.start)return null;if(!s.end){if(n==null)return null;s.end=e.add(s.start,n)}return r}function to(t,e){let{refined:n,extra:r}=qt(t,Xl),s=n.start?e.createMarkerMeta(n.start):null,i=n.end?e.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=s&&s.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:s?s.marker:null,end:i?i.marker:null},allDay:a},r)}function no(t,e){return Object.assign(Object.assign({},Ai(t.range,e,t.allDay)),{allDay:t.allDay})}function or(t,e,n){return Object.assign(Object.assign({},Ai(t,e,n)),{timeZone:e.timeZone})}function Ai(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function ro(t,e,n){let r=er({editable:!1},n),s=Ft(r.refined,r.extra,"",t.allDay,!0,n);return{def:s,ui:yi(s,e),instance:Jt(s.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function cr(t,e,n){let r=!1,s=function(l){r||(r=!0,e(l))},i=function(l){r||(r=!0,n(l))},a=t(s,i);a&&typeof a.then=="function"&&a.then(s,i)}var Wt=class extends Error{constructor(e,n){super(e),this.response=n}};function ur(t,e,n){t=t.toUpperCase();let r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(s=>{if(s.ok)return s.json().then(i=>[i,s],()=>{throw new Wt("Failure parsing JSON",s)});throw new Wt("Request failed",s)})}var Dn;function dr(){return Dn==null&&(Dn=so()),Dn}function so(){if(typeof document=="undefined")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}var nt=class extends C{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Ke(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Ke(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,s=r||n.height==="auto"||n.contentHeight==="auto",i=!s&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return dr()||a.push("fc-liquid-hack"),e.children(a,i,s,r)}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)}},Oe=class{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}};function Ei(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}var Xt={},Q=class extends x{constructor(e,n){super(e,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:s}=n.options;s==="auto"&&(s=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let i,a;return s?(i=n.dateEnv.startOf(r,e.unit),a=n.dateEnv.add(i,S(1,e.unit)).valueOf()-r.valueOf()):(i=r,a=1e3*60),a=Math.min(1e3*60*60*24,a),{state:{nowDate:i,todayRange:io(i)},waitMs:a}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{let n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}};Q.contextType=ae;function io(t){let e=M(t),n=k(e,1);return{start:e,end:n}}var rt=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,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),s;n=n||"day",s=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),s?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:s.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),s=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),i,a;for(let l in n)s.push(l);for(i=0;i<s.length;i+=1)if(a=n[s[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:e.nowManager.getDateMarker()})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=S(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),T(n))}formatRange(e,n,r){let{dateEnv:s}=this.getCurrentData();return s.formatRange(s.createMarker(e),s.createMarker(n),T(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let s=this.getCurrentData(),i=eo(r,s.dateEnv,S({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),pi(i,null,s))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Vl(e,n))}addEvent(e,n){if(e instanceof F){let a=e._def,l=e._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:zt({def:a,instance:l})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),s;if(n instanceof ue)s=n.internalEventSource;else if(typeof n=="boolean")n&&([s]=Zt(r.eventSources));else if(n!=null){let a=this.getEventSourceById(n);if(!a)return console.warn(`Could not find an event source with ID "${n}"`),null;s=a.internalEventSource}let i=ci(e,s,r,!1);if(i){let a=new F(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:zt(i)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:vi(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:s}=n.eventStore;e=String(e);for(let i in r){let a=r[i];if(a.publicId===e){if(a.recurringDef)return new F(n,a,null);for(let l in s){let o=s[l];if(o.defId===a.defId)return new F(n,a,o)}}}return null}getEvents(){let e=this.getCurrentData();return dt(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let s in n)r.push(new ue(e,n[s]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let s in r)if(r[s].publicId===e)return new ue(n,r[s]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof ue)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=rr(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new ue(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=S(e);n&&this.trigger("_scrollRequest",{time:n})}};function _i(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}var ku=te();function gt(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!$(r.activeRange,t))),isOther:!!(r&&!$(r.currentRange,t)),isToday:!!(e&&$(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function Ve(t,e){let n=["fc-day",`fc-day-${Wa[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}var ao=T({year:"numeric",month:"long",day:"numeric"}),lo=T({week:"long"});function Ae(t,e,n="day",r=!0){let{dateEnv:s,options:i,calendarApi:a}=t,l=s.format(e,n==="week"?lo:ao);if(i.navLinks){let o=s.toDate(e),u=c=>{let g=n==="day"?i.navLinkDayClick:n==="week"?i.navLinkWeekClick:null;typeof g=="function"?g.call(a,s.toDate(e),c):(typeof g=="string"&&(n=g),a.zoomTo(e,n))};return Object.assign({title:Fe(i.navLinkHint,[l,o],l),"data-navlink":""},r?Gs(u):{onClick:u})}return{"aria-label":l}}var Cn;function Si(){return Cn||(Cn=oo()),Cn}function oo(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=co(t);return document.body.removeChild(t),e}function co(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function uo(t){let e=Di(t),n=t.getBoundingClientRect();for(let r of e){let s=_i(n,r.getBoundingClientRect());if(s)n=s;else return null}return n}function Di(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}var ge=class{constructor(e,n,r,s){this.els=n;let i=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(i.left),s&&this.buildElVerticals(i.top)}buildElHorizontals(e){let n=[],r=[];for(let s of this.els){let i=s.getBoundingClientRect();n.push(i.left-e),r.push(i.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let s of this.els){let i=s.getBoundingClientRect();n.push(i.top-e),r.push(i.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,s=n.length,i;for(i=0;i<s;i+=1)if(e>=n[i]&&e<r[i])return i}topToIndex(e){let{tops:n,bottoms:r}=this,s=n.length,i;for(i=0;i<s;i+=1)if(e>=n[i]&&e<r[i])return i}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Tt(this.tops||[],e.tops||[])&&Tt(this.bottoms||[],e.bottoms||[])&&Tt(this.lefts||[],e.lefts||[])&&Tt(this.rights||[],e.rights||[])}};function Tt(t,e){let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}var P=class extends C{constructor(){super(...arguments),this.uid=ie()}prepareHits(){}queryHit(e,n,r,s){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!G(e,".fc-event-mirror")}isValidDateDownEl(e){return!G(e,".fc-event:not(.fc-bg-event)")&&!G(e,".fc-more-link")&&!G(e,"a[data-navlink]")&&!G(e,".fc-popover")}};var st=class{constructor(e=n=>n.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 n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){let s=Object.assign(Object.assign({},n),{span:en(n.span,e.touchingEntry.span)});r.push(s),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let s=e.span,i=n.span;s.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:i.start}},r),s.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:s.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:s}=this;n.lateral===-1?(Rn(s,n.level,n.levelCoord),Rn(r,n.level,[e])):Rn(r[n.level],n.lateral,e),this.stackCnts[Ce(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:s,stackCnts:i}=this,a=n.length,l=0,o=-1,u=-1,c=null,g=0;for(let m=0;m<a;m+=1){let y=n[m];if(!s&&y>=l+this.getEntryThickness(e))break;let v=r[m],b,E=Un(v,e.span.start,Bn),R=E[0]+E[1];for(;(b=v[R])&&b.span.start<e.span.end;){let D=y+this.getEntryThickness(b);D>l&&(l=D,c=b,o=m,u=R),D===l&&(g=Math.max(g,i[Ce(b)]+1)),R+=1}}let h=0;if(c)for(h=o+1;h<a&&n[h]<l;)h+=1;let f=-1;return h<a&&n[h]===l&&(f=Un(r[h],e.span.end,Bn)[0]),{touchingLevel:o,touchingLateral:u,touchingEntry:c,stackCnt:g,levelCoord:l,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,s=[];for(let i=0;i<r;i+=1){let a=e[i],l=n[i];for(let o of a)s.push(Object.assign(Object.assign({},o),{thickness:this.getEntryThickness(o),levelCoord:l}))}return s}};function Bn(t){return t.span.end}function Ce(t){return t.index+":"+t.span.start}function en(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function Rn(t,e,n){t.splice(e,0,n)}function Un(t,e,n){let r=0,s=t.length;if(!s||e<n(t[r]))return[0,0];if(e>n(t[s-1]))return[s,0];for(;r<s;){let i=Math.floor(r+(s-r)/2),a=n(t[i]);if(e<a)s=i;else if(e>a)r=i+1;else return[i,1]}return[r,0]}function Ci(t,e){return!t||e>10?T({weekday:"short"}):e>1?T({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):T({weekday:"long"})}var Ri="fc-col-header-cell";function wi(t){return t.text}var jt=class extends C{render(){let{dateEnv:e,options:n,theme:r,viewApi:s}=this.context,{props:i}=this,{date:a,dateProfile:l}=i,o=gt(a,i.todayRange,null,l),u=[Ri].concat(Ve(o,r)),c=e.format(a,i.dayHeaderFormat),g=!o.isDisabled&&i.colCnt>1?Ae(this.context,a):{},h=e.toDate(a);e.namedTimeZoneImpl&&(h=J(h,36e5));let f=Object.assign(Object.assign(Object.assign({date:h,view:s},i.extraRenderProps),{text:c}),o);return d(N,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":o.isDisabled?void 0:ve(a)},i.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:wi,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},m=>d("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&d(m,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]})))}},fo=T({weekday:"long"}),Vt=class extends C{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:s,options:i}=this.context,a=k(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(a,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:a},l),{view:s}),e.extraRenderProps),{text:o});return d(N,{elTag:"th",elClasses:[Ri,...Ve(l,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:wi,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},c=>d("div",{className:"fc-scrollgrid-sync-inner"},d(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,fo)}})))}},Re=class extends C{constructor(){super(...arguments),this.createDayHeaderFormatter=_(ho)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:s,renderIntro:i}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,s,n.length);return d(Q,{unit:"day"},(l,o)=>d("tr",{role:"row"},i&&i("day"),n.map(u=>s?d(jt,{key:u.toISOString(),date:u,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:a}):d(Vt,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:a}))))}};function ho(t,e,n){return t||Ci(e,n)}var it=class{constructor(e,n){let r=e.start,{end:s}=e,i=[],a=[],l=-1;for(;r<s;)n.isHiddenDay(r)?i.push(l+.5):(l+=1,i.push(l),a.push(r)),r=k(r,1);this.dates=a,this.indices=i,this.cnt=a.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(k(e.end,-1)),s=Math.max(0,n),i=Math.min(this.cnt-1,r);return s=Math.ceil(s),i=Math.floor(i),s<=i?{firstIndex:s,lastIndex:i,isStart:n===s,isEnd:r===i}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(me(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}},at=class{constructor(e,n){let{dates:r}=e,s,i,a;if(n){for(i=r[0].getUTCDay(),s=1;s<r.length&&r[s].getUTCDay()!==i;s+=1);a=Math.ceil(r.length/s)}else a=1,s=r.length;this.rowCnt=a,this.colCnt=s,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let s=0;s<this.colCnt;s+=1)r.push(this.buildCell(n,s));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),s=[];if(r){let{firstIndex:i,lastIndex:a}=r,l=i;for(;l<=a;){let o=Math.floor(l/n),u=Math.min((o+1)*n,a+1);s.push({row:o,firstCol:l%n,lastCol:(u-1)%n,isStart:r.isStart&&l===i,isEnd:r.isEnd&&u-1===a}),l=u}}return s}},lt=class{constructor(){this.sliceBusinessHours=_(this._sliceBusinessHours),this.sliceDateSelection=_(this._sliceDateSpan),this.sliceEventStore=_(this._sliceEventStore),this.sliceEventDrag=_(this._sliceInteraction),this.sliceEventResize=_(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,s,...i){let{eventUiBases:a}=e,l=this.sliceEventStore(e.eventStore,a,n,r,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,a,s,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,s,...i),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,n,r,...i),eventResize:this.sliceEventResize(e.eventResize,a,n,r,...i),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,s,...i){return this._sliceDateSpan({range:{start:e,end:J(e,1)},allDay:!1},n,r,{},s,...i)}_sliceBusinessHours(e,n,r,s,...i){return e?this._sliceEventStore(ut(e,It(n,!!r),s),{},n,r,...i).bg:[]}_sliceEventStore(e,n,r,s,...i){if(e){let a=Ne(e,n,It(r,!!s),s);return{bg:this.sliceEventRanges(a.bg,i),fg:this.sliceEventRanges(a.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,s,...i){if(!e)return null;let a=Ne(e.mutatedEvents,n,It(r,!!s),s);return{segs:this.sliceEventRanges(a.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,s,i,...a){if(!e)return[];let l=It(n,!!r),o=W(e.range,l);if(o){e=Object.assign(Object.assign({},e),{range:o});let u=ro(e,s,i),c=this.sliceRange(e.range,...a);for(let g of c)g.eventRange=u;return c}return[]}sliceEventRanges(e,n){let r=[];for(let s of e)r.push(...this.sliceEventRange(s,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:k(r.start,1)});let s=this.sliceRange(r,...n);for(let i of s)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return s}};function It(t,e){let n=t.activeRange;return e?n:{start:J(n.start,t.slotMinTime.milliseconds),end:J(n.end,t.slotMaxTime.milliseconds-864e5)}}var Mt=/^(visible|hidden)$/,He=class extends C{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,j(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,s=n&&r,i=["fc-scroller"];return n&&(r?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),d("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:s&&-(e.overcomeLeft||0)||"",right:s&&-(e.overcomeRight||0)||"",bottom:s&&-(e.overcomeBottom||0)||"",marginLeft:!s&&-(e.overcomeLeft||0)||"",marginRight:!s&&-(e.overcomeRight||0)||"",marginBottom:!s&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Mt.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let s=0;s<r.length;s+=1)if(r[s].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Mt.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let s=0;s<r.length;s+=1)if(r[s].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Mt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Mt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}},q=class{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:s,currentMap:i}=this,a=!1,l=!1;n!==null?(a=r in i,i[r]=n,s[r]=(s[r]||0)+1,l=!0):(s[r]-=1,s[r]||(delete i[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),l&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return ti(this.currentMap,e,n,r)}getAll(){return Zt(this.currentMap)}};function Ti(t){let e=Ls(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Pa(r));return Math.ceil(n)}function fr(t,e){return t.liquid&&e.liquid}function Ii(t,e){return e.maxHeight!=null||fr(t,e)}function Mi(t,e,n,r){let{expandRows:s}=n;return typeof e.content=="function"?e.content(n):d("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:s?n.clientHeight:""}},n.tableColGroupNode,d(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function ki(t,e){return ee(t,e,H)}function xi(t,e){let n=[];for(let r of t){let s=r.span||1;for(let i=0;i<s;i+=1)n.push(d("col",{style:{width:r.width==="shrink"?Ni(e):r.width||"",minWidth:r.minWidth||""}}))}return d("colgroup",{},...n)}function Ni(t){return t==null?4:t}function Oi(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Hi(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Pi(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function hr(t){return d("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function tn(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function gr(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}var Pe=class extends C{constructor(){super(...arguments),this.processCols=_(e=>e,ki),this.renderMicroColGroup=_(xi),this.scrollerRefs=new q,this.scrollerElRefs=new q(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:n,context:r}=this,s=e.sections||[],i=this.processCols(e.cols),a=this.renderMicroColGroup(i,n.shrinkWidth),l=Hi(e.liquid,r);e.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");let o=s.length,u=0,c,g=[],h=[],f=[];for(;u<o&&(c=s[u]).type==="header";)g.push(this.renderSection(c,a,!0)),u+=1;for(;u<o&&(c=s[u]).type==="body";)h.push(this.renderSection(c,a,!1)),u+=1;for(;u<o&&(c=s[u]).type==="footer";)f.push(this.renderSection(c,a,!0)),u+=1;let m=!dr(),y={role:"rowgroup"};return d("table",{role:"grid",className:l.join(" "),style:{height:e.height}},!!(!m&&g.length)&&d("thead",y,...g),!!(!m&&h.length)&&d("tbody",y,...h),!!(!m&&f.length)&&d("tfoot",y,...f),m&&d("tbody",y,...g,...h,...f))}renderSection(e,n,r){return"outerContent"in e?d(w,{key:e.key},e.outerContent):d("tr",{key:e.key,role:"presentation",className:Pi(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,s){if("outerContent"in r)return r.outerContent;let{props:i}=this,{forceYScrollbars:a,scrollerClientWidths:l,scrollerClientHeights:o}=this.state,u=Ii(i,e),c=fr(i,e),g=i.liquid?a?"scroll":u?"auto":"hidden":"visible",h=e.key,f=Mi(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!i.collapsibleWidth&&l[h]!==void 0?l[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},s);return d(s?"th":"td",{ref:r.elRef,role:"presentation"},d("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},d(He,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:g,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let r=go(this.props.sections,n);r&&j(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Oi(this.props.cols)?Ti(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Si(),{scrollerRefs:n,scrollerElRefs:r}=this,s=!1,i={},a={};for(let l in n.currentMap){let o=n.currentMap[l];if(o&&o.needsYScrolling()){s=!0;break}}for(let l of this.props.sections){let o=l.key,u=r.currentMap[o];if(u){let c=u.parentNode;i[o]=Math.floor(c.getBoundingClientRect().width-(s?e.y:0)),a[o]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:s,scrollerClientWidths:i,scrollerClientHeights:a}}};Pe.addStateEquality({scrollerClientWidths:H,scrollerClientHeights:H});function go(t,e){for(let n of t)if(n.key===e)return n;return null}var se=class extends C{constructor(){super(...arguments),this.buildPublicEvent=_((e,n,r)=>new F(e,n,r)),this.handleEl=e=>{this.el=e,j(this.props.elRef,e),e&&Ns(e,this.props.seg)}}render(){let{props:e,context:n}=this,{options:r}=n,{seg:s}=e,{eventRange:i}=s,{ui:a}=i,l={event:this.buildPublicEvent(n,i.def,i.instance),view:n.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&Zl(s,n),isStartResizable:!e.disableResizing&&$l(s,n),isEndResizable:!e.disableResizing&&Jl(s),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!s.isStart,isEnd:!!s.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return d(N,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...Kl(l),...s.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:l,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ns(this.el,this.props.seg)}},Be=class extends C{render(){let{props:e,context:n}=this,{options:r}=n,{seg:s}=e,{ui:i}=s.eventRange,a=r.eventTimeFormat||e.defaultTimeFormat,l=ye(s,a,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return d(se,Object.assign({},e,{elTag:"a",elStyle:{borderColor:i.borderColor,backgroundColor:i.backgroundColor},elAttrs:je(s,n),defaultGenerator:po,timeText:l}),(o,u)=>d(w,null,d(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&d("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&d("div",{className:"fc-event-resizer fc-event-resizer-end"})))}};Be.addPropsEquality({seg:H});function po(t){return d("div",{className:"fc-event-main-frame"},t.timeText&&d("div",{className:"fc-event-time"},t.timeText),d("div",{className:"fc-event-title-container"},d("div",{className:"fc-event-title fc-sticky"},t.event.title||d(w,null,"\xA0"))))}var mo=T({day:"numeric"}),Ue=class extends C{constructor(){super(...arguments),this.refineRenderProps=Le(vo)}render(){let{props:e,context:n}=this,{options:r}=n,s=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return d(N,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),s.isDisabled?{}:{"data-date":ve(e.date)}),elClasses:[...Ve(s,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:s.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}};function nn(t){return!!(t.dayCellContent||On("dayCellContent",t))}function vo(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:s}=t,i=gt(e,t.todayRange,null,r),a=t.showDayNumber?n.format(e,s?t.monthStartFormat:mo):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},i),{isMonthStart:s,dayNumberText:a}),t.extraRenderProps)}var ot=class extends C{render(){let{props:e}=this,{seg:n}=e;return d(se,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:bo,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}};function bo(t){let{title:e}=t.event;return e&&d("div",{className:"fc-event-title"},t.event.title)}function pr(t){return d("div",{className:`fc-${t}`})}var mr=t=>d(ae.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:s}=t,i=r.weekNumberFormat||t.defaultFormat,a=n.computeWeekNumber(s),l=n.format(s,i),o={num:a,text:l,date:s};return d(N,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:yo,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function yo(t){return t.text}var wn=10,Fn=class extends C{constructor(){super(...arguments),this.state={titleId:z()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&j(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let n=js(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:s}=this,i=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Ss(d("div",Object.assign({},r.extraAttrs,{id:r.id,className:i.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),d("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},d("span",{className:"fc-popover-title",id:s.titleId},r.title),d("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),d("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.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:n,alignGridTop:r}=this.props,{rootEl:s}=this,i=uo(n);if(i){let a=s.getBoundingClientRect(),l=r?G(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,o=e?i.right-a.width:i.left;l=Math.max(l,wn),o=Math.min(o,document.documentElement.clientWidth-wn-a.width),o=Math.max(o,wn);let u=s.offsetParent.getBoundingClientRect();Ws(s,{top:l-u.top,left:o-u.left})}}},zn=class extends P{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:n}=this.context,{props:r}=this,{startDate:s,todayRange:i,dateProfile:a}=r,l=n.format(s,e.dayPopoverFormat);return d(Ue,{elRef:this.handleRootEl,date:s,dateProfile:a,todayRange:i},(o,u,c)=>d(Fn,{elRef:c.ref,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},nn(e)&&d(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,s){let{rootEl:i,props:a}=this;return e>=0&&e<r&&n>=0&&n<s?{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:r,bottom:s},layer:1}:null}},ct=class extends C{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:z()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&j(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:s}=r.options,i=Os(n).start;function a(l){let{def:o,instance:u,range:c}=l.eventRange;return{event:new F(r,o,u),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:l.isStart,isEnd:l.isEnd}}typeof s=="function"&&(s=s({date:i,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:e,view:r.viewApi})),!s||s==="popover"?this.setState({isPopoverOpen:!0}):typeof s=="string"&&r.calendarApi.zoomTo(i,s)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return d(ae.Consumer,null,r=>{let{viewApi:s,options:i,calendarApi:a}=r,{moreLinkText:l}=i,{moreCnt:o}=e,u=Os(e),c=typeof l=="function"?l.call(a,o):`+${o} ${l}`,g=Fe(i.moreLinkHint,[o],c),h={num:o,shortText:`+${o}`,text:c,view:s};return d(w,null,!!e.moreCnt&&d(N,{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),Gs(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:e.defaultGenerator||Ao,classNameGenerator:i.moreLinkClassNames,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},e.children),n.isPopoverOpen&&d(zn,{id:n.popoverId,startDate:u.start,endDate:u.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=G(this.linkEl,".fc-view-harness"))}};function Ao(t){return t.text}function Os(t){if(t.allDayDate)return{start:t.allDayDate,end:k(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Bi(e),end:_o(e)}}function Bi(t){return t.reduce(Eo).eventRange.range.start}function Eo(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function _o(t){return t.reduce(So).eventRange.range.end}function So(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}var Do=[],Vi={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"},Gi=Object.assign(Object.assign({},Vi),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Co(t){let e=t.length>0?t[0].code:"en",n=Do.concat(t),r={en:Gi};for(let s of n)r[s.code]=s;return{map:r,defaultCode:e}}function Qi(t,e){return typeof t=="object"&&!Array.isArray(t)?qi(t.code,[t.code],t):Ro(t,e)}function Ro(t,e){let n=[].concat(t||[]),r=wo(n,e)||Gi;return qi(t,n,r)}function wo(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let s=r.length;s>0;s-=1){let i=r.slice(0,s).join("-");if(e[i])return e[i]}}return null}function qi(t,e,n){let r=Yt([Vi,n],["buttonText"]);delete r.code;let{week:s}=r;return delete r.week,{codeArg:t,codes:e,week:s,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function V(t){return{id:ie(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function To(t,e){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 s(i){for(let a of i){let l=a.name,o=n[l];o===void 0?(n[l]=a.id,s(a.deps),r=Mo(r,a)):o!==a.id&&console.warn(`Duplicate plugin '${l}'`)}}return t&&s(t),s(e),r}function Io(){let t=[],e=[],n;return(r,s)=>((!n||!ee(r,t)||!ee(s,e))&&(n=To(r,s)),t=r,e=s,n)}function Mo(t,e){return{premiumReleaseDate:ko(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function ko(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}var ne=class extends re{};ne.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ne.prototype.baseIconClass="fc-icon";ne.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"};ne.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ne.prototype.iconOverrideOption="buttonIcons";ne.prototype.iconOverrideCustomButtonOption="icon";ne.prototype.iconOverridePrefix="fc-icon-";function xo(t,e){let n={},r;for(r in t)br(r,n,t,e);for(r in e)br(r,n,t,e);return n}function br(t,e,n,r){if(e[t])return e[t];let s=No(t,e,n,r);return s&&(e[t]=s),s}function No(t,e,n,r){let s=n[t],i=r[t],a=c=>s&&s[c]!==null?s[c]:i&&i[c]!==null?i[c]:null,l=a("component"),o=a("superType"),u=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");u=br(o,e,n,r)}return!l&&u&&(l=u.component),l?{type:t,component:l,defaults:Object.assign(Object.assign({},u?u.defaults:{}),s?s.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),i?i.rawOptions:{})}:null}function Ui(t){return Te(t,Oo)}function Oo(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Fi(e):n&&!(n.prototype instanceof C)&&(n=Fi(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Fi(t){return e=>d(ae.Consumer,null,n=>d(N,{elTag:"div",elClasses:Kn(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Ho(t,e,n,r){let s=Ui(t),i=Ui(e.views),a=xo(s,i);return Te(a,l=>Po(l,i,e,n,r))}function Po(t,e,n,r,s){let i=t.overrides.duration||t.defaults.duration||r.duration||n.duration,a=null,l="",o="",u={};if(i&&(a=Bo(i),a)){let h=$e(a);l=h.unit,h.value===1&&(o=l,u=e[l]?e[l].rawOptions:{})}let c=h=>{let f=h.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&f[m]!=null?f[m]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},g=h=>{let f=h.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&f[m]!=null?f[m]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:a,durationUnit:l,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(s)||t.defaults.buttonText||c(we)||t.type,buttonTitleOverride:g(r)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(s)||t.defaults.buttonHint||g(we)}}var zi={};function Bo(t){let e=JSON.stringify(t),n=zi[e];return n===void 0&&(n=S(t),zi[e]=n),n}function Uo(t,e){return e.type==="CHANGE_VIEW_TYPE"&&(t=e.viewType),t}function Fo(t,e){return e.type==="CHANGE_DATE"?e.dateMarker:t}function zo(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function Lo(t,e){return e.type==="SET_OPTION"?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t}function Wo(t,e,n,r){let s;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(s=r.buildPrev(t,n),s.isValid)return s;break;case"NEXT":if(s=r.buildNext(t,n),s.isValid)return s;break}return t}function jo(t,e,n){let r=e?e.activeRange:null;return Zi({},$o(t,n),r,n)}function Vo(t,e,n,r){let s=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Zi(t,e.sources,s,r);case"REMOVE_EVENT_SOURCE":return Qo(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?$i(t,s,r):t;case"FETCH_EVENT_SOURCES":return wr(t,e.sourceIds?Zn(e.sourceIds):Ji(t,r),s,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Zo(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Go(t,e,n){let r=e?e.activeRange:null;return wr(t,Ji(t,n),r,!0,n)}function Yi(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Zi(t,e,n,r){let s={};for(let i of e)s[i.sourceId]=i;return n&&(s=$i(s,n,r)),Object.assign(Object.assign({},t),s)}function Qo(t,e){return he(t,n=>n.sourceId!==e)}function $i(t,e,n){return wr(t,he(t,r=>qo(r,e,n)),e,!1,n)}function qo(t,e,n){return Ki(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function wr(t,e,n,r,s){let i={};for(let a in t){let l=t[a];e[a]?i[a]=Yo(l,n,r,s):i[a]=l}return i}function Yo(t,e,n,r){let{options:s,calendarApi:i}=r,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],l=ie();return a.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:u}=o;s.eventSourceSuccess&&(u=s.eventSourceSuccess.call(i,u,o.response)||u),t.success&&(u=t.success.call(i,u,o.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:l,fetchRange:e,rawEvents:u})},o=>{let u=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(i,o),u=!0),t.failure&&(t.failure(o),u=!0),u||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:l,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:l})}function Zo(t,e,n,r){let s=t[e];return s&&n===s.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},s),{isFetching:!1,fetchRange:r})}):t}function Ji(t,e){return he(t,n=>Ki(n,e))}function $o(t,e){let n=sr(e),r=[].concat(t.eventSources||[]),s=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let i of r){let a=rr(i,e,n);a&&s.push(a)}return s}function Ki(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Jo(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function Ko(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Xo(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function ec(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function tc(t,e,n,r,s){let i=t.headerToolbar?Li(t.headerToolbar,t,e,n,r,s):null,a=t.footerToolbar?Li(t.footerToolbar,t,e,n,r,s):null;return{header:i,footer:a}}function Li(t,e,n,r,s,i){let a={},l=[],o=!1;for(let u in t){let c=t[u],g=nc(c,e,n,r,s,i);a[u]=g.widgets,l.push(...g.viewsWithButtons),o=o||g.hasTitle}return{sectionWidgets:a,viewsWithButtons:l,hasTitle:o}}function nc(t,e,n,r,s,i){let a=e.direction==="rtl",l=e.customButtons||{},o=n.buttonText||{},u=e.buttonText||{},c=n.buttonHints||{},g=e.buttonHints||{},h=t?t.split(" "):[],f=[],m=!1;return{widgets:h.map(v=>v.split(",").map(b=>{if(b==="title")return m=!0,{buttonName:b};let E,R,D,Y,B,L;if(E=l[b])D=I=>{E.click&&E.click.call(I.target,I,I.target)},(Y=r.getCustomButtonIconClass(E))||(Y=r.getIconClass(b,a))||(B=E.text),L=E.hint||E.text;else if(R=s[b]){f.push(b),D=()=>{i.changeView(b)},(B=R.buttonTextOverride)||(Y=r.getIconClass(b,a))||(B=R.buttonTextDefault);let I=R.buttonTextOverride||R.buttonTextDefault;L=Fe(R.buttonTitleOverride||R.buttonTitleDefault||e.viewHint,[I,b],I)}else if(i[b])if(D=()=>{i[b]()},(B=o[b])||(Y=r.getIconClass(b,a))||(B=u[b]),b==="prevYear"||b==="nextYear"){let I=b==="prevYear"?"prev":"next";L=Fe(c[I]||g[I],[u.year||"year","year"],u[b])}else L=I=>Fe(c[b]||g[b],[u[I]||I,I],u[b]);return{buttonName:b,buttonClick:D,buttonIcon:Y,buttonText:B,buttonHint:L}})),viewsWithButtons:f,hasTitle:m}}var yr=class{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}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]}},rc={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}},sc=V({name:"array-event-source",eventSourceDefs:[rc]}),ic={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){let{dateEnv:r}=t.context,s=t.eventSource.meta;cr(s.bind(null,or(t.range,r)),i=>e({rawEvents:i}),n)}},ac=V({name:"func-event-source",eventSourceDefs:[ic]}),lc={method:String,extraParams:p,startParam:String,endParam:String,timeZoneParam:String},oc={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){let{meta:r}=t.eventSource,s=uc(r,t.range,t.context);ur(r.method,r.url,s).then(([i,a])=>{e({rawEvents:i,response:a})},n)}},cc=V({name:"json-event-source",eventSourceRefiners:lc,eventSourceDefs:[oc]});function uc(t,e,n){let{dateEnv:r,options:s}=n,i,a,l,o,u={};return i=t.startParam,i==null&&(i=s.startParam),a=t.endParam,a==null&&(a=s.endParam),l=t.timeZoneParam,l==null&&(l=s.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(u,o),u[i]=r.formatIso(e.start),u[a]=r.formatIso(e.end),r.timeZone!=="local"&&(u[l]=r.timeZone),u}var dc={daysOfWeek:p,startTime:S,endTime:S,duration:S,startRecur:p,endRecur:p},fc={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null,dateEnv:e},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=$s(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=W(e,{start:t.startRecur,end:t.endRecur});return r?gc(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}},hc=V({name:"simple-recurring-event",recurringTypes:[fc],eventRefiners:dc});function gc(t,e,n,r,s){let i=t?Zn(t):null,a=M(s.start),l=s.end,o=[];for(e&&(e.milliseconds<0?l=k(l,1):e.milliseconds>=1e3*60*60*24&&(a=k(a,-1)));a<l;){let u;(!i||i[a.getUTCDay()])&&(e?u=r.add(a,e):u=a,o.push(r.createMarker(n.toDate(u)))),a=k(a,1)}return o}var pc=V({name:"change-handler",optionChangeHandlers:{events(t,e){Wi([t],e)},eventSources:Wi}});function Wi(t,e){let n=Zt(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let s of t){let i=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===s){n.splice(a,1),i=!0;break}i||r.push(s)}for(let s of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:s.sourceId});for(let s of r)e.calendarApi.addEventSource(s)}function mc(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},or(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function vc(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",dt(t,e))}var bc=[sc,ac,cc,hc,pc,V({name:"misc",isLoadingFuncs:[t=>Yi(t.eventSources)],propSetHandlers:{dateProfile:mc,eventStore:vc}})],Ar=class{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Se(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}};function yc(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,T(e.titleFormat||Ac(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Ac(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=xe(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var rn=class{constructor(){this.resetListeners=new Set}handleInput(e,n){let r=this.dateEnv;if(e!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=e.toDate(n?e.createMarker(n):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,r))for(let s of this.resetListeners.values())s()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}},Er=class{constructor(e){this.computeCurrentViewData=_(this._computeCurrentViewData),this.organizeRawLocales=_(Co),this.buildLocale=_(Qi),this.buildPluginHooks=Io(),this.buildDateEnv=_(Ec),this.buildTheme=_(_c),this.parseToolbars=_(tc),this.buildViewSpecs=_(Ho),this.buildDateProfileGenerator=Le(Sc),this.buildViewApi=_(Dc),this.buildViewUiProps=Le(wc),this.buildEventUiBySource=_(Cc,H),this.buildEventUiBases=_(Rc),this.parseContextBusinessHours=Le(Tc),this.buildTitle=_(yc),this.nowManager=new rn,this.emitter=new tt,this.actionRunner=new Ar(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=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause(),this.nowManager=new rn;let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),s=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(s,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);let a={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},l=zo(r.calendarOptions,r.dateEnv,this.nowManager),o=i.dateProfileGenerator.build(l);$(o.activeRange,l)||(l=o.currentRange.start);for(let h of r.pluginHooks.contextInit)h(a);let u=jo(r.calendarOptions,o,a),c={dynamicOptionOverrides:n,currentViewType:s,currentDate:l,dateProfile:o,businessHours:this.parseContextBusinessHours(a),eventSources:u,eventUiBases:{},eventStore:te(),renderableEventStore:te(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},g=Object.assign(Object.assign({},a),c);for(let h of r.pluginHooks.reducers)Object.assign(c,h(null,null,g));vr(c,a)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:s}=this,i=Lo(r.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),l=Uo(r.currentViewType,e),o=this.computeCurrentViewData(l,a,n.optionOverrides,i);n.calendarApi.currentDataManager=this,s.setThisContext(n.calendarApi),s.setOptions(o.options);let u={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:s,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(g=o.dateProfileGenerator.build(c)),c=Fo(c,e),g=Wo(g,e,c,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!$(g.currentRange,c))&&(c=g.currentRange.start);let h=Vo(r.eventSources,e,g,u),f=fi(r.eventStore,e,h,g,u),y=Yi(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:v,selectionConfig:b}=this.buildViewUiProps(u),E=this.buildEventUiBySource(h),R=this.buildEventUiBases(y.defs,v,E),D={dynamicOptionOverrides:i,currentViewType:l,currentDate:c,dateProfile:g,eventSources:h,eventStore:f,renderableEventStore:y,selectionConfig:b,eventUiBases:R,businessHours:this.parseContextBusinessHours(u),dateSelection:Jo(r.dateSelection,e),eventSelection:Ko(r.eventSelection,e),eventDrag:Xo(r.eventDrag,e),eventResize:ec(r.eventResize,e)},Y=Object.assign(Object.assign({},u),D);for(let I of a.pluginHooks.reducers)Object.assign(D,I(r,e,Y));let B=vr(r,u),L=vr(D,u);!B&&L?s.trigger("loading",!0):B&&!L&&s.trigger("loading",!1),this.state=D,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,s=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(n.currentViewType,s,e.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,i.options,s.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),i),n),l=s.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,u=s.calendarOptions;if(o&&o!==u){o.timeZone!==u.timeZone&&(n.eventSources=a.eventSources=Go(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=ir(a.eventStore,r.dateEnv,a.dateEnv),n.renderableEventStore=a.renderableEventStore=ir(a.renderableEventStore,r.dateEnv,a.dateEnv));for(let c in l)(this.optionsForHandling.indexOf(c)!==-1||o[c]!==u[c])&&l[c](u[c],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:s,pluginHooks:i,localeDefaults:a,availableLocaleData:l,extra:o}=this.processRawCalendarOptions(e,n);ji(o);let u=this.buildDateEnv(s.timeZone,s.locale,s.weekNumberCalculation,s.firstDay,s.weekText,i,l,s.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),g=this.buildTheme(s,i),h=this.parseToolbars(s,this.stableOptionOverrides,g,c,r);return this.stableCalendarOptionsData={calendarOptions:s,pluginHooks:i,dateEnv:u,viewSpecs:c,theme:g,toolbarConfig:h,localeDefaults:a,availableRawLocales:l.map}}processRawCalendarOptions(e,n){let{locales:r,locale:s}=Qt([we,e,n]),i=this.organizeRawLocales(r),a=i.map,l=this.buildLocale(s||i.defaultCode,a).options,o=this.buildPluginHooks(e.plugins||[],bc),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn),qn),Yn),o.listenerRefiners),o.optionRefiners),c={},g=Qt([we,l,e,n]),h={},f=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,y=!1;for(let v in g)this.optionsForRefining.indexOf(v)===-1&&(g[v]===f[v]||be[v]&&v in f&&be[v](f[v],g[v]))?h[v]=m[v]:u[v]?(h[v]=u[v](g[v]),y=!0):c[v]=f[v];return y&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:i,localeDefaults:l,extra:c}}_computeCurrentViewData(e,n,r,s){let i=n.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:l}=this.processRawViewOptions(i,n.pluginHooks,n.localeDefaults,r,s);ji(l),this.nowManager.handleInput(n.dateEnv,a.now);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:n.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,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:i,options:a,dateProfileGenerator:o,viewApi:u}}processRawViewOptions(e,n,r,s,i){let a=Qt([we,e.optionDefaults,r,s,e.optionOverrides,i]),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn),qn),Yn),ei),n.listenerRefiners),n.optionRefiners),o={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,g=!1,h={};for(let f in a)a[f]===u[f]||be[f]&&be[f](a[f],u[f])?o[f]=c[f]:(a[f]===this.currentCalendarOptionsInput[f]||be[f]&&be[f](a[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):l[f]?o[f]=l[f](a[f]):h[f]=a[f],g=!0);return g&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}};function Ec(t,e,n,r,s,i,a,l){let o=Qi(e||a.defaultCode,a.map);return new Je({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:s,cmdFormatter:i.cmdFormatter,defaultSeparator:l})}function _c(t,e){let n=e.themeClasses[t.themeSystem]||ne;return new n(t)}function Sc(t){let e=t.dateProfileGeneratorClass||De;return new e(t)}function Dc(t,e,n){return new yr(t,e,n)}function Cc(t){return Te(t,e=>e.ui)}function Rc(t,e,n){let r={"":e};for(let s in t){let i=t[s];i.sourceId&&n[i.sourceId]&&(r[s]=n[i.sourceId])}return r}function wc(t){let{options:e}=t;return{eventUiSingleBase:We({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:We({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function vr(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Tc(t){return ar(t.options.businessHours,t)}function ji(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}var _r=class extends C{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return d("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,s=[],i=!0;for(let a of e){let{buttonName:l,buttonClick:o,buttonText:u,buttonIcon:c,buttonHint:g}=a;if(l==="title")i=!1,s.push(d("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=l===n.activeButton,f=!n.isTodayEnabled&&l==="today"||!n.isPrevEnabled&&l==="prev"||!n.isNextEnabled&&l==="next",m=[`fc-${l}-button`,r.getClass("button")];h&&m.push(r.getClass("buttonActive")),s.push(d("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:f,"aria-pressed":h,className:m.join(" "),onClick:o},u||(c?d("span",{className:c,role:"img"}):"")))}}if(s.length>1){let a=i&&r.getClass("buttonGroup")||"";return d("div",{className:a},...s)}return s[0]}},sn=class extends C{render(){let{model:e,extraClassName:n}=this.props,r=!1,s,i,a=e.sectionWidgets,l=a.center;return a.left?(r=!0,s=a.left):s=a.start,a.right?(r=!0,i=a.right):i=a.end,d("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",s||[]),this.renderSection("center",l||[]),this.renderSection("end",i||[]))}renderSection(e,n){let{props:r}=this;return d(_r,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}},Sr=class extends C{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,j(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,s=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",a="";return r?n.availableWidth!==null?i=n.availableWidth/r:a=`${1/r*100}%`:i=e.height||"",d("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:s.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})}},Dr=class extends Oe{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:s}=this,{context:i}=s,a=ft(r);if(a&&s.isValidSegDownEl(n.target)){let l=G(n.target,".fc-event-forced-url"),o=l?l.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:r,event:new F(s.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:i.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=Wn(e.el,"click",".fc-event",this.handleSegClick)}},Cr=class extends Oe{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{ft(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=Vs(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:s}=this,{context:i}=s,a=ft(r);(!n||s.isValidSegDownEl(n.target))&&i.emitter.trigger(e,{el:r,event:new F(i,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:i.viewApi})}},Rr=class extends K{constructor(){super(...arguments),this.buildViewContext=_(ii),this.buildViewPropTransformers=_(Mc),this.buildToolbarProps=_(Ic),this.headerRef=O(),this.footerRef=O(),this.interactionsStore={},this.state={viewLabelId:z()},this.registerInteractiveComponent=(e,n)=>{let r=Ei(e,n),a=[Dr,Cr].concat(this.props.pluginHooks.componentInteractions).map(l=>new l(r));this.interactionsStore[e.uid]=a,Xt[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete Xt[e.uid]},this.resizeRunner=new Se(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,s=!1,i="",a;e.isHeightAuto||e.forPrint?i="":r.height!=null?s=!0:r.contentHeight!=null?i=r.contentHeight:a=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),o=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return d(ae.Provider,{value:l},d(Q,{unit:"day"},u=>{let c=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,u,e.viewTitle);return d(w,null,n.header&&d(sn,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:o},c)),d(Sr,{liquid:s,height:i,aspectRatio:a,labeledById:o},this.renderView(e),this.buildAppendContent()),n.footer&&d(sn,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},c)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let s in r)n[s]!==e[s]&&r[s](n[s],n)}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,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return d(w,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,s={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(n.viewPropsTransformers);for(let l of i)Object.assign(s,l.transform(s,e));let a=r.component;return d(a,Object.assign({},s))}};function Ic(t,e,n,r,s,i){let a=n.build(s,void 0,!1),l=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:i,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!$(e.currentRange,s),isPrevEnabled:l.isValid,isNextEnabled:o.isValid}}function Mc(t){return t.map(e=>new e)}var an=class extends rt{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;Ke(()=>{ce(d(nt,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(s,i,a,l)=>(this.setClassNames(s),this.setHeight(i),d(Jn.Provider,{value:this.customContentRenderId},d(Rr,Object.assign({isHeightAuto:a,forPrint:l},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ce(null,this.el),this.setClassNames([]),this.setHeight(""))},Ps(e),this.el=e,this.renderRunner=new Se(this.handleRenderRequest),new Er({optionOverrides:n,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(){Ke(()=>{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,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!ee(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Ln(this.el,"height",e)}};var Tr=class extends P{constructor(){super(...arguments),this.headerElRef=O()}renderSimpleLayout(e,n){let{props:r,context:s}=this,i=[],a=tn(s.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:n}}),d(X,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},d(Pe,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:i}))}renderHScrollLayout(e,n,r,s){let i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");let{props:a,context:l}=this,o=!a.forPrint&&tn(l.options),u=!a.forPrint&&gr(l.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),u&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:hr}]}),d(X,{elClasses:["fc-daygrid"],viewSpec:l.viewSpec},d(i,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:s}]}],sections:c}))}};function on(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function ln(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Xi(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}var ea=T({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function ta(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}var cn=class extends C{render(){let{props:e}=this;return d(Be,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:ea,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}},un=class extends C{render(){let{props:e,context:n}=this,{options:r}=n,{seg:s}=e,i=r.eventTimeFormat||ea,a=ye(s,i,n,!0,e.defaultDisplayEventEnd);return d(se,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:je(e.seg,n),defaultGenerator:kc,timeText:a,isResizing:!1,isDateSelecting:!1}))}};function kc(t){return d(w,null,d("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&d("div",{className:"fc-event-time"},t.timeText),d("div",{className:"fc-event-title"},t.event.title||d(w,null,"\xA0")))}var Ir=class extends C{constructor(){super(...arguments),this.compileSegs=_(xc)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return d(ct,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let s=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return d(w,null,n.map(i=>{let a=i.eventRange.instance.instanceId;return d("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:s[a]?"hidden":""}},ta(i)?d(un,Object.assign({seg:i,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},le(i,e.todayRange))):d(cn,Object.assign({seg:i,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},le(i,e.todayRange))))}))}})}};function xc(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}var Nc=T({week:"narrow"}),Mr=class extends P{constructor(){super(...arguments),this.rootElRef=O(),this.state={dayNumberId:z()},this.handleRootEl=e=>{j(this.rootElRef,e),j(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:s}=this,{options:i,dateEnv:a}=e,{date:l,dateProfile:o}=n,u=n.showDayNumber&&Hc(l,o.currentRange,a);return d(Ue,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Oc,date:l,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:u,extraRenderProps:n.extraRenderProps},(c,g)=>d("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&d(mr,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Ae(e,l,"week"),date:l,defaultFormat:Nc}),!g.isDisabled&&(n.showDayNumber||nn(i)||n.forceDayTop)?d("div",{className:"fc-daygrid-day-top"},d(c,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Ae(e,l)),{id:r.dayNumberId})})):n.showDayNumber?d("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},d("a",{className:"fc-daygrid-day-number"},"\xA0")):void 0,d("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,d("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},d(Ir,{allDayDate:l,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:s,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),d("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}};function Oc(t){return t.dayNumberText||d(w,null,"\xA0")}function Hc(t,e,n){let{start:r,end:s}=e,i=J(s,-1),a=n.getYear(r),l=n.getMonth(r),o=n.getYear(i),u=n.getMonth(i);return!(a===o&&l===u)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<s.valueOf())}function na(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function ra(t){return na(t)+":"+t.lastCol}function Pc(t,e,n,r,s,i,a){let l=new kr(b=>{let E=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return s[E]||1});l.allowReslicing=!0,l.strictOrder=r,e===!0||n===!0?(l.maxCoord=i,l.hiddenConsumes=!0):typeof e=="number"?l.maxStackCnt=e:typeof n=="number"&&(l.maxStackCnt=n,l.hiddenConsumes=!0);let o=[],u=[];for(let b=0;b<t.length;b+=1){let E=t[b],R=ra(E);s[R]!=null?o.push({index:b,span:{start:E.firstCol,end:E.lastCol+1}}):u.push(E)}let c=l.addSegs(o),g=l.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:m}=Bc(g,t,a),y=[],v=[];for(let b of u){f[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let E=b.firstCol;E<=b.lastCol;E+=1)h[E].push({seg:Ge(b,E,E+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)y.push(0);for(let b of c){let E=t[b.index],R=b.span;f[R.start].push({seg:Ge(E,R.start,R.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let D=R.start;D<R.end;D+=1)y[D]+=1,h[D].push({seg:Ge(E,D,D+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)v.push(m[b]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:y,moreMarginTops:v}}function Bc(t,e,n){let r=Uc(t,n.length),s=[],i=[],a=[];for(let l=0;l<n.length;l+=1){let o=r[l],u=[],c=0,g=0;for(let f of o){let m=e[f.index];u.push({seg:Ge(m,l,l+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-c}),c=f.levelCoord+f.thickness}let h=[];c=0,g=0;for(let f of o){let m=e[f.index],y=f.span.end-f.span.start>1,v=f.span.start===l;g+=f.levelCoord-c,c=f.levelCoord+f.thickness,y?(g+=f.thickness,v&&h.push({seg:Ge(m,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):v&&(h.push({seg:Ge(m,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:g}),g=0)}s.push(u),i.push(h),a.push(g)}return{singleColPlacements:s,multiColPlacements:i,leftoverMargins:a}}function Uc(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let s=r.span.start;s<r.span.end;s+=1)n[s].push(r);return n}function Ge(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let s=t.eventRange,i=s.range,a=W(i,{start:r[e].date,end:k(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:s.def,ui:Object.assign(Object.assign({},s.ui),{durationEditable:!1}),instance:s.instance,range:a},isStart:t.isStart&&a.start.valueOf()===i.start.valueOf(),isEnd:t.isEnd&&a.end.valueOf()===i.end.valueOf()})}var kr=class extends st{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let n=super.addSegs(e),{entriesByLevel:r}=this,s=i=>!this.forceHidden[Ce(i)];for(let i=0;i<r.length;i+=1)r[i]=r[i].filter(s);return n}handleInvalidInsertion(e,n,r){let{entriesByLevel:s,forceHidden:i}=this,{touchingEntry:a,touchingLevel:l,touchingLateral:o}=e;if(this.hiddenConsumes&&a){let u=Ce(a);if(!i[u])if(this.allowReslicing){let c=Object.assign(Object.assign({},a),{span:en(a.span,n.span)}),g=Ce(c);i[g]=!0,s[l][o]=c,r.push(c),this.splitEntry(a,n,r)}else i[u]=!0,r.push(a)}super.handleInvalidInsertion(e,n,r)}},dn=class extends P{constructor(){super(...arguments),this.cellElRefs=new q,this.frameElRefs=new q,this.fgElRefs=new q,this.segHarnessRefs=new q,this.rootElRef=O(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:s}=r,i=e.cells.length,a=ln(e.businessHourSegs,i),l=ln(e.bgEventSegs,i),o=ln(this.getHighlightSegs(),i),u=ln(this.getMirrorSegs(),i),{singleColPlacements:c,multiColPlacements:g,moreCnts:h,moreMarginTops:f}=Pc(ht(e.fgEventSegs,s.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,s.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return d("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((y,v)=>{let b=this.renderFgSegs(v,e.forPrint?c[v]:g[v],e.todayRange,m),E=this.renderFgSegs(v,Fc(u[v],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return d(Mr,{key:y.key,elRef:this.cellElRefs.createRef(y.key),innerElRef:this.frameElRefs.createRef(y.key),dateProfile:e.dateProfile,date:y.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:y.extraRenderProps,extraDataAttrs:y.extraDataAttrs,extraClassNames:y.extraClassNames,extraDateSpan:y.extraDateSpan,moreCnt:h[v],moreMarginTop:f[v],singlePlacements:c[v],fgContentElRef:this.fgElRefs.createRef(y.key),fgContent:d(w,null,d(w,null,b),d(w,null,E)),bgContent:d(w,null,this.renderFillSegs(o[v],"highlight"),this.renderFillSegs(a[v],"non-business"),this.renderFillSegs(l[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!H(e,r))}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,n,r,s,i,a,l){let{context:o}=this,{eventSelection:u}=this.props,{framePositions:c}=this.state,g=this.props.cells.length===1,h=i||a||l,f=[];if(c)for(let m of n){let{seg:y}=m,{instanceId:v}=y.eventRange.instance,b=m.isVisible&&!s[v],E=m.isAbsolute,R="",D="";E&&(o.isRtl?(D=0,R=c.lefts[y.lastCol]-c.lefts[y.firstCol]):(R=0,D=c.rights[y.firstCol]-c.rights[y.lastCol])),f.push(d("div",{className:"fc-daygrid-event-harness"+(E?" fc-daygrid-event-harness-abs":""),key:na(y),ref:h?null:this.segHarnessRefs.createRef(ra(y)),style:{visibility:b?"":"hidden",marginTop:E?"":m.marginTop,top:E?m.absoluteTop:"",left:R,right:D}},ta(y)?d(un,Object.assign({seg:y,isDragging:i,isSelected:v===u,defaultDisplayEventEnd:g},le(y,r))):d(cn,Object.assign({seg:y,isDragging:i,isResizing:a,isDateSelecting:l,isSelected:v===u,defaultDisplayEventEnd:g},le(y,r)))))}return f}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:s}=this.props,{framePositions:i}=this.state,a=[];if(i)for(let l of e){let o=r?{right:0,left:i.lefts[l.lastCol]-i.lefts[l.firstCol]}:{left:0,right:i.rights[l.firstCol]-i.rights[l.lastCol]};a.push(d("div",{key:lr(l.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?d(ot,Object.assign({seg:l},le(l,s))):pr(n)))}return d(w,{},...a)}updateSizing(e){let{props:n,state:r,frameElRefs:s}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(u=>s.currentMap[u.key]);if(o.length){let u=this.rootElRef.current,c=new ge(u,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new ge(u,o,!0,!1)})}}let i=this.state.segHeights,a=this.querySegHeights(),l=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},i),a),maxContentHeight:l?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let s=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,s)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}};dn.addStateEquality({segHeights:H});function Fc(t,e){if(!t.length)return[];let n=zc(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function zc(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}var pt=class extends P{constructor(){super(...arguments),this.splitBusinessHourSegs=_(on),this.splitBgEventSegs=_(Lc),this.splitFgEventSegs=_(on),this.splitDateSelectionSegs=_(on),this.splitEventDrag=_(Xi),this.splitEventResize=_(Xi),this.rowRefs=new q}render(){let{props:e,context:n}=this,r=e.cells.length,s=this.splitBusinessHourSegs(e.businessHourSegs,r),i=this.splitBgEventSegs(e.bgEventSegs,r),a=this.splitFgEventSegs(e.fgEventSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return d(Q,{unit:"day"},(g,h)=>d(w,null,e.cells.map((f,m)=>d(dn,{ref:this.rowRefs.createRef(m),key:f.length?f[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:s[m],eventSelection:e.eventSelection,bgEventSegs:i[m],fgEventSegs:a[m],dateSelectionSegs:l[m],eventDrag:o[m],eventResize:u[m],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new ge(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new ge(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:s}=this,i=r.leftToIndex(e),a=s.topToIndex(n);if(a!=null&&i!=null){let l=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,i),allDay:!0},l.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:r.lefts[i],right:r.rights[i],top:s.tops[a],bottom:s.bottoms[a]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,s=k(r,1);return{start:r,end:s}}};function Lc(t,e){return on(t.filter(Wc),e)}function Wc(t){return t.eventRange.def.allDay}var xr=class extends P{constructor(){super(...arguments),this.elRef=O(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:s}=e,i=r===!0||n===!0;i&&!s&&(i=!1,n=null,r=null);let a=["fc-daygrid-body",i?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"];return d("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},d("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:s?e.clientHeight:""}},e.colGroupNode,d("tbody",{role:"presentation"},d(pt,{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:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=jc(this.elRef.current,this.props.dateProfile);if(e){let n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),s=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=s?s+1:0}this.needsScrollReset=!1}}};function jc(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${ze(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${ve(e.currentDate)}"]`)),n}var mt=class extends lt{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}},Nr=class extends P{constructor(){super(...arguments),this.slicer=new mt,this.tableRef=O()}render(){let{props:e,context:n}=this;return d(xr,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,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}))}},fn=class extends Tr{constructor(){super(...arguments),this.buildDayTableModel=_(Or),this.headerRef=O(),this.tableRef=O()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,s=this.buildDayTableModel(r.dateProfile,n),i=e.dayHeaders&&d(Re,{ref:this.headerRef,dateProfile:r.dateProfile,dates:s.headerDates,datesRepDistinctDays:s.rowCnt===1}),a=l=>d(Nr,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:s,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:l.tableColGroupNode,tableMinWidth:l.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:l.clientWidth,clientHeight:l.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(i,a,s.colCnt,e.dayMinWidth):this.renderSimpleLayout(i,a)}};function Or(t,e){let n=new it(t.renderRange,e);return new at(n,/year|month|week/.test(t.currentRangeUnit))}var Qe=class extends De{buildRenderRange(e,n,r){let s=super.buildRenderRange(e,n,r),{props:i}=this;return Hr({currentRange:s,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:i.fixedWeekCount,dateEnv:i.dateEnv})}};function Hr(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:s}=n,i;if(t.snapToWeek&&(r=e.startOfWeek(r),i=e.startOfWeek(s),i.valueOf()!==s.valueOf()&&(s=Gt(i,1))),t.fixedWeekCount){let a=e.startOfWeek(e.startOfMonth(k(n.end,-1))),l=Math.ceil(jn(a,s));s=Gt(s,6-l)}return{start:r,end:s}}var Vc=':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}';pe(Vc);var sa=V({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:fn,dateProfileGeneratorClass:Qe},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}}}});var Pr=class extends C{constructor(){super(...arguments),this.state={textId:z()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:s}=this.context,{cellId:i,dayDate:a,todayRange:l}=this.props,{textId:o}=this.state,u=gt(a,l),c=r.listDayFormat?n.format(a,r.listDayFormat):"",g=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(a),view:s,textId:o,text:c,sideText:g,navLinkAttrs:Ae(this.context,a),sideNavLinkAttrs:Ae(this.context,a,"day",!1)},u);return d(N,{elTag:"tr",elClasses:["fc-list-day",...Ve(u,e)],elAttrs:{"data-date":ve(a)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Gc,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},f=>d("th",{scope:"colgroup",colSpan:3,id:i,"aria-labelledby":o},d(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}};function Gc(t){return d(w,null,t.text&&d("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&d("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}var Qc=T({hour:"numeric",minute:"2-digit",meridiem:"short"}),Br=class extends C{render(){let{props:e,context:n}=this,{options:r}=n,{seg:s,timeHeaderId:i,eventHeaderId:a,dateHeaderId:l}=e,o=r.eventTimeFormat||Qc;return d(se,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",s.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>qc(s,n),seg:s,timeText:"",disableDragging:!0,disableResizing:!0}),(u,c)=>d(w,null,Yc(s,o,n,i,l),d("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},d("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),d(u,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${l}`}})))}};function qc(t,e){let n=je(t,e);return d("a",Object.assign({},n),t.eventRange.def.title)}function Yc(t,e,n,r,s){let{options:i}=n;if(i.displayEventTime!==!1){let a=t.eventRange.def,l=t.eventRange.instance,o=!1,u;if(a.allDay?o=!0:Xn(t.eventRange.range)?t.isStart?u=ye(t,e,n,null,null,l.range.start,t.end):t.isEnd?u=ye(t,e,n,null,null,t.start,l.range.end):o=!0:u=ye(t,e,n),o){let c={text:n.options.allDayText,view:n.viewApi};return d(N,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${s}`},renderProps:c,generatorName:"allDayContent",customGenerator:i.allDayContent,defaultGenerator:Zc,classNameGenerator:i.allDayClassNames,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount})}return d("td",{className:"fc-list-event-time"},u)}return null}function Zc(t){return t.text}var hn=class extends P{constructor(){super(...arguments),this.computeDateVars=_(Jc),this.eventStoreToSegs=_(this._eventStoreToSegs),this.state={timeHeaderId:z(),eventHeaderId:z(),dateHeaderIdRoot:z()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:s}=this.computeDateVars(e.dateProfile),i=this.eventStoreToSegs(e.eventStore,e.eventUiBases,s);return d(X,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},d(He,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},i.length>0?this.renderSegList(i,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return d(N,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:$c,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},s=>d(s,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:s}=this.context,{timeHeaderId:i,eventHeaderId:a,dateHeaderIdRoot:l}=this.state,o=Kc(e);return d(Q,{unit:"day"},(u,c)=>{let g=[];for(let h=0;h<o.length;h+=1){let f=o[h];if(f){let m=ve(n[h]),y=l+"-"+m;g.push(d(Pr,{key:m,cellId:y,dayDate:n[h],todayRange:c})),f=ht(f,s.eventOrder);for(let v of f)g.push(d(Br,Object.assign({key:m+":"+v.eventRange.instance.instanceId,seg:v,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:i,eventHeaderId:a,dateHeaderId:y},le(v,c,u))))}}return d("table",{className:"fc-list-table "+r.getClass("table")},d("thead",null,d("tr",null,d("th",{scope:"col",id:i},s.timeHint),d("th",{scope:"col","aria-hidden":!0}),d("th",{scope:"col",id:a},s.eventHint))),d("tbody",null,g))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(Ne(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(e,n){let r=[];for(let s of e)r.push(...this.eventRangeToSegs(s,n));return r}eventRangeToSegs(e,n){let{dateEnv:r}=this.context,{nextDayThreshold:s}=this.context.options,i=e.range,a=e.def.allDay,l,o,u,c=[];for(l=0;l<n.length;l+=1)if(o=W(i,n[l]),o&&(u={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===i.end.valueOf(),dayIndex:l},c.push(u),!u.isEnd&&!a&&l+1<n.length&&i.end<r.add(n[l+1].start,s))){u.end=i.end,u.isEnd=!0;break}return c}};function $c(t){return t.text}function Jc(t){let e=M(t.renderRange.start),n=t.renderRange.end,r=[],s=[];for(;e<n;)r.push(e),s.push({start:e,end:k(e,1)}),e=k(e,1);return{dayDates:r,dayRanges:s}}function Kc(t){let e=[],n,r;for(n=0;n<t.length;n+=1)r=t[n],(e[r.dayIndex]||(e[r.dayIndex]=[])).push(r);return e}var Xc=':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}';pe(Xc);var eu={listDayFormat:ia,listDaySideFormat:ia,noEventsClassNames:p,noEventsContent:p,noEventsDidMount:p,noEventsWillUnmount:p};function ia(t){return t===!1?null:T(t)}var aa=V({name:"@fullcalendar/list",optionRefiners:eu,views:{list:{component:hn,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"}}}});var Ur=class extends P{constructor(){super(...arguments),this.buildDayTableModel=_(Or),this.slicer=new mt,this.state={labelId:z()}}render(){let{props:e,state:n,context:r}=this,{dateProfile:s,forPrint:i}=e,{options:a}=r,l=this.buildDayTableModel(s,r.dateProfileGenerator),o=this.slicer.sliceProps(e,s,a.nextDayThreshold,r,l),u=e.tableWidth!=null?e.tableWidth/a.aspectRatio:null,c=l.cells.length,g=u!=null?u/c:null;return d("div",{ref:e.elRef,"data-date":e.isoDateStr,className:"fc-multimonth-month",style:{width:e.width},role:"grid","aria-labelledby":n.labelId},d("div",{className:"fc-multimonth-header",style:{marginBottom:g},role:"presentation"},d("div",{className:"fc-multimonth-title",id:n.labelId},r.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),d("table",{className:["fc-multimonth-header-table",r.theme.getClass("table")].join(" "),role:"presentation"},d("thead",{role:"rowgroup"},d(Re,{dateProfile:e.dateProfile,dates:l.headerDates,datesRepDistinctDays:!1})))),d("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!i&&"fc-daygrid-body-balanced",i&&"fc-daygrid-body-unbalanced",i&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-g}},d("table",{className:["fc-multimonth-daygrid-table",r.theme.getClass("table")].join(" "),style:{height:i?"":u},role:"presentation"},d("tbody",{role:"rowgroup"},d(pt,Object.assign({},o,{dateProfile:s,cells:l.cells,eventSelection:e.eventSelection,dayMaxEvents:!i,dayMaxEventRows:!i,showWeekNumbers:a.weekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:i}))))))}},Fr=class extends P{constructor(){super(...arguments),this.splitDateProfileByMonth=_(nu),this.buildMonthFormat=_(iu),this.scrollElRef=O(),this.firstMonthElRef=O(),this.needsScrollReset=!1,this.handleSizing=e=>{e&&this.updateSize()}}render(){let{context:e,props:n,state:r}=this,{options:s}=e,{clientWidth:i,clientHeight:a}=r,l=r.monthHPadding||0,o=Math.min(i!=null?Math.floor(i/(s.multiMonthMinWidth+l)):1,s.multiMonthMaxColumns)||1,u=100/o+"%",c=i==null?null:i/o-l,g=i!=null&&o===1,h=this.splitDateProfileByMonth(e.dateProfileGenerator,n.dateProfile,e.dateEnv,g?!1:s.fixedWeekCount,s.showNonCurrentDates),f=this.buildMonthFormat(s.multiMonthTitleFormat,h),m=["fc-multimonth",g?"fc-multimonth-singlecol":"fc-multimonth-multicol",c!=null&&c<400?"fc-multimonth-compact":"",n.isHeightAuto?"":"fc-scroller"];return d(X,{elRef:this.scrollElRef,elClasses:m,viewSpec:e.viewSpec},h.map((y,v)=>{let b=ze(y.currentRange.start);return d(Ur,Object.assign({},n,{key:b,isoDateStr:b,elRef:v===0?this.firstMonthElRef:void 0,titleFormat:f,dateProfile:y,width:u,tableWidth:c,clientWidth:i,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){H(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){let e=this.scrollElRef.current,n=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),n&&e&&this.state.monthHPadding==null&&this.setState({monthHPadding:e.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){let{currentDate:e}=this.props.dateProfile,n=this.scrollElRef.current,r=n.querySelector(`[data-date="${ze(e)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}},tu=S(1,"month");function nu(t,e,n,r,s){let{start:i,end:a}=e.currentRange,l=i,o=[];for(;l.valueOf()<a.valueOf();){let u=n.add(l,tu),c={start:t.skipHiddenDays(l),end:t.skipHiddenDays(u,-1,!0)},g=Hr({currentRange:c,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});g={start:t.skipHiddenDays(g.start),end:t.skipHiddenDays(g.end,-1,!0)};let h=e.activeRange?W(e.activeRange,s?g:c):null;o.push({currentDate:e.currentDate,isValid:e.isValid,validRange:e.validRange,renderRange:g,activeRange:h,currentRange:c,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:e.dateIncrement,slotMinTime:e.slotMaxTime,slotMaxTime:e.slotMinTime}),l=u}return o}var ru=T({year:"numeric",month:"long"}),su=T({month:"long"});function iu(t,e){return t||(e[0].currentRange.start.getUTCFullYear()!==e[e.length-1].currentRange.start.getUTCFullYear()?ru:su)}var au={multiMonthTitleFormat:T,multiMonthMaxColumns:Number,multiMonthMinWidth:Number},lu=".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}";pe(lu);var la=V({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:au,views:{multiMonth:{component:Fr,dateProfileGeneratorClass:Qe,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}});document.addEventListener("DOMContentLoaded",function(){var t=document.getElementById("pa-calendar");if(t){var e;try{e=JSON.parse(t.dataset.events||"[]")}catch(r){e=[]}var n=new an(t,{plugins:[sa,aa,la],initialView:"dayGridMonth",firstDay:1,events:e,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,multiMonthYear,listYear"},views:{multiMonthYear:{eventDisplay:"list-item",multiMonthMinWidth:260,aspectRatio:1.1,eventContent:function(r){var s=document.createElement("div");s.className="fc-daygrid-event-dot",s.style.borderColor=r.borderColor||r.backgroundColor;var i=document.createElement("div");return i.className="fc-event-title",i.textContent=r.event.title.split(" \u2014 ")[0],{domNodes:[s,i]}}}},eventClick:function(r){r.event.url&&(r.jsEvent.preventDefault(),window.location.href=r.event.url)},eventDidMount:function(r){var s=[r.event.title],i=r.event.extendedProps||{};i.location&&s.push(i.location),r.el.title=s.join(" \u2014 ")}});n.render()}});})();