PageSourceSearch

https://cleverhub.ai/assets/CalendarV2-CC5NNNQV.js

js cleverhub.ai collected 2026-10-05 14:31:40 UTC 311,536 bytes, 7 lines download raw bytes

vendor: 17,430 bytes, line 1
1import{r as S,R as ir,a as sr,j as f,c as gt}from"./vendor-react-BubOtE6v.js";import{S as Sa}from"./skeleton-CJBHTvWx.js";import{h as hs,e as an,B as ee,X as on,U as Ca,L as Ce,I as Dt,a as wa,q as Aa,t as W,O as xa,Z as gs,K as Da,v as Ra,M as _a}from"./index-DgQL-nbq.js";import{g as Ta,u as li,d as ka}from"./appointmentApi-D_fMGRxa.js";import{B as Cr}from"./badge-B4p_fBaP.js";import{S as Ue,a as ze,b as We,c as Ve,d as z}from"./select-CfCRHt8R.js";import{C as Na}from"./chevron-left-CeBiSkLL.js";import{C as ps}from"./chevron-right-BnkXaSSK.js";import{P as cn}from"./plus-DDg8ikcO.js";import{U as Ma}from"./users-Bb132kOz.js";import{C as wr}from"./clock-DDIcsnbA.js";import{C as Ia}from"./calendar-B8IFbZuH.js";import{L as Oa}from"./layout-grid-Cvl3ihHy.js";import{L as ja}from"./list-DQ7sMHjT.js";import{u as Ar}from"./useVerticalTerms-CyA7UoSX.js";import{S as ms}from"./stethoscope-DuI5-C8a.js";import{U as vs}from"./user-_hpBHPM7.js";import{F as bs}from"./file-text-zqdGaSCQ.js";import{S as xr}from"./square-pen-D3uR5PxQ.js";import{T as Pa}from"./trash-2-CuToVa1l.js";import{g as Ha,c as Ba}from"./patientsApi-CwK1PPrT.js";import{g as La}from"./staffApi-DfKfL82A.js";import{b as Fa}from"./useAppointmentHooks-B2R8rked.js";import{p as Ua}from"./errorHandler-vb3SjLxZ.js";import{U as ai}from"./user-plus-F1TO6Ahl.js";import{S as za}from"./search-BmDg7dDx.js";import{R as Wa}from"./refresh-cw-by2WPt-X.js";import{C as Va}from"./calendar-days-0CvF1GCl.js";import{C as Ga}from"./copy-BDaVfLcC.js";import{N as qa}from"./NewAppointmentModal-CPo9trrl.js";import{u as Wt}from"./useSocket-BkYx1fOZ.js";var An,_,ys,Es,dt,Fe,oi,Ss,Cs,dn={},ws=[],Ya=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _e(t,e){for(var n in e)t[n]=e[n];return t}function As(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,n){var r,i,s,l={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?An.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return en(t,l,r,i,null)}function en(t,e,n,r,i){var s={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:i??++ys};return i==null&&_.vnode!=null&&_.vnode(s),s}function te(){return{current:null}}function H(t){return t.children}function $a(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||un(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||un(t,s,e[s],n[s],r)}function ci(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Ya.test(e)?n:n+"px"}function un(t,e,n,r,i){var s;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||ci(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||ci(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?ui:di,s):t.removeEventListener(e,s?ui:di,s);else if(e!=="dangerouslySetInnerHTML"){if(i)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??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function di(t){dt=!0;try{return this.l[t.type+!1](_.event?_.event(t):t)}finally{dt=!1}}function ui(t){dt=!0;try{return this.l[t.type+!0](_.event?_.event(t):t)}finally{dt=!1}}function se(t,e){this.props=t,this.context=e}function Mt(t,e){if(e==null)return t.__?Mt(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"?Mt(t):null}function xs(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 xs(t)}}function Qa(t){dt?setTimeout(t):Ss(t)}function lr(t){(!t.__d&&(t.__d=!0)&&Fe.push(t)&&!fn.__r++||oi!==_.debounceRendering)&&((oi=_.debounceRendering)||Qa)(fn)}function fn(){var t,e,n,r,i,s,l,a;for(Fe.sort(function(o,d){return o.__v.__b-d.__v.__b});t=Fe.shift();)t.__d&&(e=Fe.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=_e({},s)).__v=s.__v+1,Dr(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??Mt(s),s.__h),ks(r,s),s.__e!=l&&xs(s)),Fe.length>e&&Fe.sort(function(o,d){return o.__v.__b-d.__v.__b}));fn.__r=0}function Ds(t,e,n,r,i,s,l,a,o,d){var c,g,h,u,m,v,E,b=r&&r.__k||ws,C=b.length;for(n.__k=[],c=0;c<e.length;c++)if((u=n.__k[c]=(u=e[c])==null||typeof u=="boolean"?null:typeof u=="string"||typeof u=="number"||typeof u=="bigint"?en(null,u,null,null,u):Array.isArray(u)?en(H,{children:u},null,null,null):u.__b>0?en(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u)!=null){if(u.__=n,u.__b=n.__b+1,(h=b[c])===null||h&&u.key==h.key&&u.type===h.type)b[c]=void 0;else for(g=0;g<C;g++){if((h=b[g])&&u.key==h.key&&u.type===h.type){b[g]=void 0;break}h=null}Dr(t,u,h=h||dn,i,s,l,a,o,d),m=u.__e,(g=u.ref)&&h.ref!=g&&(E||(E=[]),h.ref&&E.push(h.ref,null,u),E.push(g,u.__c||m,u)),m!=null?(v==null&&(v=m),typeof u.type=="function"&&u.__k===h.__k?u.__d=o=Rs(u,o,t):o=_s(t,u,h,b,m,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=Mt(h))}for(n.__e=v,c=C;c--;)b[c]!=null&&(typeof n.type=="function"&&b[c].__e!=null&&b[c].__e==n.__d&&(n.__d=Ts(r).nextSibling),Ms(b[c],b[c]));if(E)for(c=0;c<E.length;c++)Ns(E[c],E[++c],E[++c])}function Rs(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?Rs(r,e,n):_s(n,r,r,i,r.__e,e));return e}function hn(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){hn(n,e)}):e.push(t)),e}function _s(t,e,n,r,i,s){var l,a,o;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),l=null;else{for(a=s,o=0;(a=a.nextSibling)&&o<r.length;o+=1)if(a==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function Ts(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=Ts(n)))return r}return null}function Dr(t,e,n,r,i,s,l,a,o){var d,c,g,h,u,m,v,E,b,C,w,A,T,k,M,N=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(d=_.__b)&&d(e);try{e:if(typeof N=="function"){if(E=e.props,b=(d=N.contextType)&&r[d.__c],C=d?b?b.props.value:d.__:r,n.__c?v=(c=e.__c=n.__c).__=c.__E:("prototype"in N&&N.prototype.render?e.__c=c=new N(E,C):(e.__c=c=new se(E,C),c.constructor=N,c.render=Xa),b&&b.sub(c),c.props=E,c.state||(c.state={}),c.context=C,c.__n=r,g=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),N.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=_e({},c.__s)),_e(c.__s,N.getDerivedStateFromProps(E,c.__s))),h=c.props,u=c.state,c.__v=e,g)N.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(N.getDerivedStateFromProps==null&&E!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(E,C),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(E,c.__s,C)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=E,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(V){V&&(V.__=e)}),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[],c.__h.length&&l.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(E,c.__s,C),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,u,m)})}if(c.context=C,c.props=E,c.__P=t,A=_.__r,T=0,"prototype"in N&&N.prototype.render){for(c.state=c.__s,c.__d=!1,A&&A(e),d=c.render(c.props,c.state,c.context),k=0;k<c._sb.length;k++)c.__h.push(c._sb[k]);c._sb=[]}else do c.__d=!1,A&&A(e),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++T<25);c.state=c.__s,c.getChildContext!=null&&(r=_e(_e({},r),c.getChildContext())),g||c.getSnapshotBeforeUpdate==null||(m=c.getSnapshotBeforeUpdate(h,u)),M=d!=null&&d.type===H&&d.key==null?d.props.children:d,Ds(t,Array.isArray(M)?M:[M],e,n,r,i,s,l,a,o),c.base=e.__e,e.__h=null,c.__h.length&&l.push(c),v&&(c.__E=c.__=null),c.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Za(n.__e,e,n,r,i,s,l,o);(d=_.diffed)&&d(e)}catch(V){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),_.__e(V,e,n)}}function ks(t,e){_.__c&&_.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){_.__e(r,n.__v)}})}function Za(t,e,n,r,i,s,l,a){var o,d,c,g=n.props,h=e.props,u=e.type,m=0;if(u==="svg"&&(i=!0),s!=null){for(;m<s.length;m++)if((o=s[m])&&"setAttribute"in o==!!u&&(u?o.localName===u:o.nodeType===3)){t=o,s[m]=null;break}}if(t==null){if(u===null)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u,h.is&&h),s=null,a=!1}if(u===null)g===h||a&&t.data===h||(t.data=h);else{if(s=s&&An.call(t.childNodes),d=(g=n.props||dn).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!a){if(s!=null)for(g={},m=0;m<t.attributes.length;m++)g[t.attributes[m].name]=t.attributes[m].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if($a(t,h,g,i,a),c)e.__k=[];else if(m=e.props.children,Ds(t,Array.isArray(m)?m:[m],e,n,r,i&&u!=="foreignObject",s,l,s?s[0]:n.__k&&Mt(n,0),a),s!=null)for(m=s.length;m--;)s[m]!=null&&As(s[m]);a||("value"in h&&(m=h.value)!==void 0&&(m!==t.value||u==="progress"&&!m||u==="option"&&m!==g.value)&&un(t,"value",m,g.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==t.checked&&un(t,"checked",m,g.checked,!1))}return t}function Ns(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){_.__e(r,n)}}function Ms(t,e,n){var r,i;if(_.unmount&&_.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Ns(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){_.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Ms(r[i],e,n||typeof t.type!="function");n||t.__e==null||As(t.__e),t.__=t.__e=t.__d=void 0}function Xa(t,e,n){return this.constructor(t,n)}function It(t,e,n){var r,i,s;_.__&&_.__(t,e),i=(r=!1)?null:e.__k,s=[],Dr(e,t=e.__k=p(H,null,[t]),i||dn,dn,e.ownerSVGElement!==void 0,i?null:e.firstChild?An.call(e.childNodes):null,s,i?i.__e:e.firstChild,r),ks(s,t)}function Ka(t,e){var n={__c:e="__cC"+Cs++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(function(a){a.__e=!0,lr(a)})},this.sub=function(l){i.push(l);var a=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),a&&a.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}An=ws.slice,_={__e:function(t,e,n,r){for(var i,s,l;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),l=i.__d),l)return i.__E=i}catch(a){t=a}throw t}},ys=0,Es=function(t){return t!=null&&t.constructor===void 0},dt=!1,se.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_e({},this.state),typeof t=="function"&&(t=t(_e({},n),this.props)),t&&_e(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),lr(this))},se.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),lr(this))},se.prototype.render=H,Fe=[],Ss=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fn.__r=0,Cs=0;var ve,Un,fi,Is=[],zn=[],hi=_.__b,gi=_.__r,pi=_.diffed,mi=_.__c,vi=_.unmount;function Ja(){for(var t;t=Is.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(tn),t.__H.__h.forEach(ar),t.__H.__h=[]}catch(e){t.__H.__h=[],_.__e(e,t.__v)}}_.__b=function(t){ve=null,hi&&hi(t)},_.__r=function(t){gi&&gi(t);var e=(ve=t.__c).__H;e&&(Un===ve?(e.__h=[],ve.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zn,n.__N=n.i=void 0})):(e.__h.forEach(tn),e.__h.forEach(ar),e.__h=[])),Un=ve},_.diffed=function(t){pi&&pi(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Is.push(e)!==1&&fi===_.requestAnimationFrame||((fi=_.requestAnimationFrame)||eo)(Ja)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zn&&(n.__=n.__V),n.i=void 0,n.__V=zn})),Un=ve=null},_.__c=function(t,e){e.some(function(n){try{n.__h.forEach(tn),n.__h=n.__h.filter(function(r){return!r.__||ar(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],_.__e(r,n.__v)}}),mi&&mi(t,e)},_.unmount=function(t){vi&&vi(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{tn(r)}catch(i){e=i}}),n.__H=void 0,e&&_.__e(e,n.__v))};var bi=typeof requestAnimationFrame=="function";function eo(t){var e,n=function(){clearTimeout(r),bi&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);bi&&(e=requestAnimationFrame(n))}function tn(t){var e=ve,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),ve=e}function ar(t){var e=ve;t.__c=t.__(),ve=e}function to(t,e){for(var n in e)t[n]=e[n];return t}function yi(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 Ei(t){this.props=t}(Ei.prototype=new se).isPureReactComponent=!0,Ei.prototype.shouldComponentUpdate=function(t,e){return yi(this.props,t)||yi(this.state,e)};var Si=_.__b;_.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Si&&Si(t)};var no=_.__e;_.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}no(t,e,n,r)};var Ci=_.unmount;function Os(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=to({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Os(r,e,n)})),t}function js(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return js(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 Wn(){this.__u=0,this.t=null,this.__b=null}function Ps(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Vt(){this.u=null,this.o=null}_.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Ci&&Ci(t)},(Wn.prototype=new se).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Ps(r.__v),s=!1,l=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=l;var a=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=js(d,d.__c.__P,d.__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(l,l)},Wn.prototype.componentWillUnmount=function(){this.t=[]},Wn.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]=Os(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&p(H,null,t.fallback);return i&&(i.__h=null),[p(H,null,e.__a?null:t.children),i]};var wi=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 ro(t){return this.getChildContext=function(){return t.context},t.children}function io(t){var e=this,n=t.i;e.componentWillUnmount=function(){It(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,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),It(p(ro,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function so(t,e){var n=p(io,{__v:t,i:e});return n.containerInfo=e,n}(Vt.prototype=new se).__a=function(t){var e=this,n=Ps(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),wi(e,t,r)):i()};n?n(s):s()}},Vt.prototype.render=function(t){this.u=null,this.o=new Map;var e=hn(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},Vt.prototype.componentDidUpdate=Vt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){wi(t,n,e)})};var lo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ao=/^(?: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]/,oo=typeof document<"u",co=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};se.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(se.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]}
1,set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ai=_.event;function uo(){}function fo(){return this.cancelBubble}function ho(){return this.defaultPrevented}_.event=function(t){return Ai&&(t=Ai(t)),t.persist=uo,t.isPropagationStopped=fo,t.isDefaultPrevented=ho,t.nativeEvent=t};var xi={configurable:!0,get:function(){return this.class}},Di=_.vnode;_.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var l=n[s];oo&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!co(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&ao.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=hn(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=hn(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(xi.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",xi))}t.$$typeof=lo,Di&&Di(t)};var Ri=_.__r;_.__r=function(t){Ri&&Ri(t),t.__c};const Hs=[],or=new Map;function xn(t){Hs.push(t),or.forEach(e=>{Ls(e,t)})}function go(t){t.isConnected&&t.getRootNode&&Bs(t.getRootNode())}function Bs(t){let e=or.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=mo();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}or.set(t,e),po(e)}}function po(t){for(const e of Hs)Ls(t,e)}function Ls(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let Vn;function mo(){return Vn===void 0&&(Vn=vo()),Vn}function vo(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Bs(document);var bo
vendor: 14,303 bytes, line 1
1=':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)}';
1xn(bo);class Rr{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 _r(t){t.parentNode&&t.parentNode.removeChild(t)}function Q(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(yo(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function yo(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Eo(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const So=/(top|left|right|bottom|width|height)$/i;function _t(t,e){for(let n in e)Fs(t,n,e[n])}function Fs(t,e,n){n==null?t.style[e]="":typeof n=="number"&&So.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Us(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}let _i=0;function Ne(){return _i+=1,"fc-dom-"+_i}function Dn(t){t.preventDefault()}function Co(t,e){return n=>{let r=Q(n.target,t);r&&e.call(r,n,r)}}function zs(t,e,n,r){let i=Co(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function wo(t,e,n,r){let i;return zs(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let a=o=>{i=null,r(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const Ti=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ao(t,e){let n=r=>
vendor: 25,229 bytes, line 1
1{e(r),Ti.forEach(i=>{t.removeEventListener(i,n)})};Ti.forEach(r=>{t.addEventListener(r,n)})}function Ws(t){return Object.assign({onClick:t},Vs(t))}function Vs(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let ki=0;function Ze(){return ki+=1,String(ki)}function Tr(){document.body.classList.add("fc-not-allowed")}function kr(){document.body.classList.remove("fc-not-allowed")}function xo(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Dn)}function Do(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Dn)}function Ro(t){t.addEventListener("contextmenu",Dn)}function _o(t){t.removeEventListener("contextmenu",Dn)}function To(t){let e=[],n=[],r,i;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)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function ko(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=No(t,e,n[r]),i)return i;return 0}function No(t,e,n){return n.func?n.func(t,e):Mo(t[n.field],e[n.field])*(n.order||1)}function Mo(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 at(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Tt(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Io(t,e){return t-e}function nn(t){return t%1===0}function Oo(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}const Ni=["years","months","days","milliseconds"],jo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function O(t,e){return typeof t=="string"?Po(t):typeof t=="object"&&t?Mi(t):typeof t=="number"?Mi({[e||"milliseconds"]:t}):null}function Po(t){let e=jo.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 Mi(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 Ho(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function cr(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Bo(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Lo(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function Fo(t){return ot(t)/365}function Uo(t){return ot(t)/30}function ot(t){return ue(t)/864e5}function ue(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Nr(t,e){let n=null;for(let r=0;r<Ni.length;r+=1){let i=Ni[r];if(e[i]){let s=t[i]/e[i];if(!nn(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function dr(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 Me(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const zo=["sun","mon","tue","wed","thu","fri","sat"];function Ii(t,e){let n=Te(t);return n[2]+=e*7,ne(n)}function G(t,e){let n=Te(t);return n[2]+=e,ne(n)}function Ie(t,e){let n=Te(t);return n[6]+=e,ne(n)}function Wo(t,e){return je(t,e)/7}function je(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Vo(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Go(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function qo(t,e){return(e.valueOf()-t.valueOf())/1e3}function Yo(t,e){let n=B(t),r=B(e);return{years:0,months:0,days:Math.round(je(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function $o(t,e){let n=gn(t,e);return n!==null&&n%7===0?n/7:null}function gn(t,e){return ke(t)===ke(e)?Math.round(je(t,e)):null}function B(t){return ne([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Qo(t){return ne([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Zo(t){return ne([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Xo(t){return ne([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Ko(t,e,n){let r=t.getUTCFullYear(),i=Gn(t,r,e,n);if(i<1)return Gn(t,r-1,e,n);let s=Gn(t,r+1,e,n);return s>=1?Math.min(i,s):i}function Gn(t,e,n,r){let i=ne([e,0,1+Jo(e,n,r)]),s=B(t),l=Math.round(je(i,s));return Math.floor(l/7)+1}function Jo(t,e,n){let r=7+e-n;return-((7+ne([t,0,r]).getUTCDay()-e)%7)+r-1}function Oi(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function ji(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 Te(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function ne(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Gs(t){return!isNaN(t.valueOf())}function ke(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function qs(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",Mr(e,!0)))),r}function Pt(t){return t.toISOString().replace(/T.*$/,"")}function ec(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function tc(t){return at(t.getUTCHours(),2)+":"+at(t.getUTCMinutes(),2)+":"+at(t.getUTCSeconds(),2)}function Mr(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+at(i,2)}:${at(s,2)}`:`GMT${n}${i}${s?`:${at(s,2)}`:""}`}function R(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!Me(r,s)){let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function rn(t,e,n){let r,i;return s=>(r?fe(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const qn={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},pn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Gt=/\s*([ap])\.?m\.?/i,nc=/,/g,rc=/\s+/g,ic=/\u200e/g,sc=/UTC|GMT/;class lc{constructor(e){let n={},r={},i=9;for(let s in e)s in qn?(r[s]=e[s],qn[s]<9&&(i=Math.min(qn[s],i))):(n[s]=e[s],s in pn&&(i=Math.min(pn[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=i,this.buildFormattingFunc=R(Pi)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=fc(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let d=this.format(e,r),c=this.format(n,r);if(d===c)return d;let g=hc(s,o),h=Pi(g,l,r),u=h(e),m=h(n),v=gc(d,u,c,m),E=l.separator||i||r.defaultSeparator||"";return v?v.before+u+E+m+v.after:d+E+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 Pi(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>Mr(i.timeZoneOffset):r===0&&e.week?i=>uc(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):ac(t,e,n)}function ac(t,e,n){t=Object.assign({},t),e=Object.assign({},e),oc(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;i&&!l.getUTCMinutes()?a=i:a=r;let o=a.format(l);return cc(o,s,t,e,n)}}function oc(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 cc(t,e,n,r,i){return t=t.replace(ic,""),n.timeZoneName==="short"&&(t=dc(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Mr(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(nc,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Gt,"").trim():r.meridiem==="narrow"?t=t.replace(Gt,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Gt,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Gt,s=>s.toLocaleLowerCase())),t=t.replace(rc," "),t=t.trim(),t}function dc(t,e){let n=!1;return t=t.replace(sc,()=>(n=!0,e)),n||(t+=` ${e}`),t}function uc(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function fc(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:ke(t)!==ke(e)?1:0}function hc(t,e){let n={};for(let r in t)(!(r in pn)||pn[r]<=e)&&(n[r]=t[r]);return n}function gc(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let l=t.substr(0,s);i=s+e.length;let a=t.substr(i),o=0;for(;o<n.length;){let d=n.indexOf(r,o);if(d===-1)break;let c=n.substr(0,d);o=d+r.length;let g=n.substr(o);if(l===c&&a===g)return{before:l,after:a}}}return null}function Hi(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 mn(t,e,n,r){let i=Hi(t,n.calendarSystem),s=e?Hi(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class pc{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,mn(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,mn(e,n,r,i))}}class mc{constructor(e){this.func=e}format(e,n,r){return this.func(mn(e,null,n,r))}formatRange(e,n,r,i){return this.func(mn(e,n,r,i))}}function F(t){return typeof t=="object"&&t?new lc(t):typeof t=="string"?new pc(t):typeof t=="function"?new mc(t):null}const Bi={navLinkDayClick:y,navLinkWeekClick:y,duration:O,bootstrapFontAwesome:y,buttonIcons:y,customButtons:y,defaultAllDayEventDuration:O,defaultTimedEventDuration:O,nextDayThreshold:O,scrollTime:O,scrollTimeReset:Boolean,slotMinTime:O,slotMaxTime:O,dayPopoverFormat:F,slotDuration:O,snapDuration:O,headerToolbar:y,footerToolbar:y,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:F,dayHeaderClassNames:y,dayHeaderContent:y,dayHeaderDidMount:y,dayHeaderWillUnmount:y,dayCellClassNames:y,dayCellContent:y,dayCellDidMount:y,dayCellWillUnmount:y,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:y,weekNumbers:Boolean,weekNumberClassNames:y,weekNumberContent:y,weekNumberDidMount:y,weekNumberWillUnmount:y,editable:Boolean,viewClassNames:y,viewDidMount:y,viewWillUnmount:y,nowIndicator:Boolean,nowIndicatorSnap:y,nowIndicatorClassNames:y,nowIndicatorContent:y,nowIndicatorDidMount:y,nowIndicatorWillUnmount:y,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:y,locale:y,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:y,eventOrder:To,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:y,contentHeight:y,direction:String,weekNumberFormat:F,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:y,initialDate:y,now:y,eventDataTransform:y,stickyHeaderDates:y,stickyFooterScrollbar:y,viewHeight:y,defaultAllDay:Boolean,eventSourceFailure:y,eventSourceSuccess:y,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:y,eventConstraint:y,eventAllow:y,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:y,eventContent:y,eventDidMount:y,eventWillUnmount:y,selectConstraint:y,selectOverlap:y,selectAllow:y,droppable:Boolean,unselectCancel:String,slotLabelFormat:y,slotLaneClassNames:y,slotLaneContent:y,slotLaneDidMount:y,slotLaneWillUnmount:y,slotLabelClassNames:y,slotLabelContent:y,slotLabelDidMount:y,slotLabelWillUnmount:y,dayMaxEvents:y,dayMaxEventRows:y,dayMinWidth:Number,slotLabelInterval:O,allDayText:String,allDayClassNames:y,allDayContent:y,allDayDidMount:y,allDayWillUnmount:y,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:F,rerenderDelay:Number,moreLinkText:y,moreLinkHint:y,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:y,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:O,hiddenDays:y,fixedWeekCount:Boolean,validRange:y,visibleRange:y,titleFormat:y,eventInteractive:Boolean,noEventsText:String,viewHint:y,navLinkHint:y,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:y,moreLinkClassNames:y,moreLinkContent:y,moreLinkDidMount:y,moreLinkWillUnmount:y,monthStartFormat:F,handleCustomRendering:y,customRenderingMetaMap:y,customRenderingReplaces:Boolean},kt={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},Li={datesSet:y,eventsSet:y,eventAdd:y,eventChange:y,eventRemove:y,windowResize:y,eventClick:y,eventMouseEnter:y,eventMouseLeave:y,select:y,unselect:y,loading:y,_unmount:y,_beforeprint:y,_afterprint:y,_noEventDrop:y,_noEventResize:y,_resize:y,_scrollRequest:y},Fi={buttonText:y,buttonHints:y,views:y,plugins:y,initialEvents:y,events:y,eventSources:y},Be={headerToolbar:Le,footerToolbar:Le,buttonText:Le,buttonHints:Le,buttonIcons:Le,dateIncrement:Le,plugins:qt,events:qt,eventSources:qt,resources:qt};function Le(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?fe(t,e):t===e}function qt(t,e){return Array.isArray(t)&&Array.isArray(e)?Me(t,e):t===e}const vc={type:String,component:y,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:y,usesMinMaxTime:Boolean,classNames:y,content:y,didMount:y,willUnmount:y};function Yn(t){return Or(t,Be)}function Ir(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function y(t){return t}const{hasOwnProperty:vn}=Object.prototype;function Or(t,e){let n={};if(e){for(let r in e)if(e[r]===Le){let i=[];for(let s=t.length-1;s>=0;s-=1){let l=t[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){n[r]=l;break}}i.length&&(n[r]=Or(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function Ye(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function De(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Ys(t){let e={};for(let n of t)e[n]=!0;return e}function jr(t){let e=[];for(let n in t)e.push(t[n]);return e}function fe(t,e){if(t===e)return!0;for(let n in t)if(vn.call(t,n)&&!(n in e))return!1;for(let n in e)if(vn.call(e,n)&&t[n]!==e[n])return!1;return!0}const bc=/^on[A-Z]/;function yc(t,e){const n=Ec(t,e);for(let r of n)if(!bc.test(r))return!1;return!0}function Ec(t,e){let n=[];for(let r in t)vn.call(t,r)&&(r in e||n.push(r));for(let r in e)vn.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function $n(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Sc(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Sc(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function Cc(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let l=t[s];l!==void 0&&i.push(l)}return i}let $s={};function wc(t,e){$s[t]=e}function Ac(t){return new $s[t]}class xc{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return ne(e)}markerToArray(e){return Te(e)}}wc("gregory",xc);const Dc=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Rc(t){let e=Dc.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(Gs(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}class _c{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=Ac(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()):ne(Oi(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=ne(e)),n===null||!Gs(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=Rc(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}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 ke(e)===ke(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 ke(e)===ke(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=$o(e,n),r!==null?{unit:"week",value:r}:(r=gn(e,n),r!==null?{unit:"day",value:r}:(r=Vo(e,n),nn(r)?{unit:"hour",value:r}:(r=Go(e,n),nn(r)?{unit:"minute",value:r}:(r=qo(e,n),nn(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/Fo(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Uo(r):r.days&&(i=gn(e,n),i!==null)?i/ot(r):(n.valueOf()-e.valueOf())/ue(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?B(e):n==="hour"?Qo(e):n==="minute"?Zo(e):n==="second"?Xo(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)):Ko(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,i={}){return i.isEndExclusive&&(n=Ie(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),qs(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?ne(Oi(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):ne(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-ji(Te(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Te(e)):null}toDate(e,n){return this.timeZone==="local"?ji(Te(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Te(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Ht{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)}`:""}}Ht.prototype.classes={};Ht.prototype.iconClasses={};Ht.prototype.baseIconClass="";Ht.prototype.iconOverridePrefix="";function bn(t){t();let e=_.debounceRendering,n=[];function r(i){n.push(i)}for(_.debounceRendering=r,It(p(Tc,{}),document.createElement("div"));n.length;)n.shift()();_.debounceRendering=e}class Tc extends se{render(){return p("div",{})}componentDidMount(){this.setState({})}}function Qs(t){let e=Ka(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>
1{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return i},e}class kc{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),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)}}const Re=Qs({});function Nc(t,e,n,r,i,s,l,a,o,d,c,g,h,u){return{dateEnv:i,nowManager:s,options:n,pluginHooks:a,emitter:c,dispatch:o,getCurrentData:d,calendarApi:g,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:l,isRtl:n.direction==="rtl",addResizeHandler(m){c.on("_resize",m)},removeResizeHandler(m){c.off("_resize",m)},createScrollResponder(m){return new kc(m,c,O(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:u}}class Xe extends se{shouldComponentUpdate(e,n){return!$n(this.props,e,this.propEquality)||!$n(this.state,n,this.stateEquality)}safeSetState(e){$n(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Xe.addPropsEquality=Mc;Xe.addStateEquality=Ic;Xe.contextType=Re;Xe.prototype.propEquality={};Xe.prototype.stateEquality={};class j extends Xe{}j.contextType=Re;function Mc(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Ic(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function be(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Pr extends j{constructor(){super(...arguments),this.id=Ze(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!ur(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&be(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,a=Zs(e,[],this.handleEl);let o=!1,d,c=[],g;if(i!=null){const h=typeof i=="function"?i(l,p):i;if(h===!0)o=!0;else{const u=h&&typeof h=="object";u&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:u&&"domNodes"in h?c=Array.prototype.slice.call(h.domNodes):(u?Es(h):typeof h!="function")?d=h:g=h}}else o=!ur(e.generatorName,r);return o&&s&&(d=s(l)),this.queuedDomNodes=c,this.currentGeneratorMeta=g,p(e.elTag,a,d)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}
vendor: 112,527 bytes, line 1
1=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[r.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(Oc)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!Me(e,n)){n.forEach(_r);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}Pr.addPropsEquality({elClasses:Me,elStyle:fe,elAttrs:yc,renderProps:fe});function ur(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Zs(t,e,n){const 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 Oc(t){return!!t}const Xs=Qs(0);class Z extends se{constructor(){super(...arguments),this.InnerContent=jc.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(be(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Pc(e.classNameGenerator,e.renderProps);if(e.children){const r=Zs(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?p(e.elTag,r,i):i}else return p(Pr,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}))}}Z.contextType=Xs;function jc(t,e){const n=t.props;return p(Pr,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Pc(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Ot extends j{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return p(Z,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Ks(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}}function Ks(t){return[`fc-${t.type}-view`,"fc-view"]}function Hc(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 Ui(t,e){let n=[],{start:r}=e,i,s;for(t.sort(Bc),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function Bc(t,e){return t.start.valueOf()-e.start.valueOf()}function Oe(t,e){let{start:n,end:r}=t,i=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)&&(i={start:n,end:r}),i}function Lc(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function Hr(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Rn(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Ae(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Fc(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 Js(t){let e=Math.floor(je(t.start,t.end))||1,n=B(t.start),r=G(n,e);return{start:n,end:r}}function Br(t,e=O(0)){let n=null,r=null;if(t.end){r=B(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=ue(e)&&(r=G(r,1))}return t.start&&(n=B(t.start),r&&r<=n&&(r=G(n,1))),{start:n,end:r}}function Uc(t){let e=Br(t);return je(e.start,e.end)>1}function lt(t,e,n,r){return r==="year"?O(n.diffWholeYears(t,e),"year"):r==="month"?O(n.diffWholeMonths(t,e),"month"):Yo(t,e)}class el{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,l,a,o,d,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Fc(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),d=o,i.showNonCurrentDates||(d=Oe(d,l.range)),d=this.adjustActiveRange(d),d=Oe(d,s),c=Hr(l.range,s),Ae(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:d,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(l.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,i=null,s=null,l=null,a;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,n,i,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=dr(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return O({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:a}=e;return r&&(ot(i)<0&&(l=B(l),l=n.add(l,i)),ot(s)>1&&(a=B(a),a=G(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,a,o,d;if(!l){let{dateIncrement:g}=this.props;g&&ue(g)<ue(r)?l=dr(g).unit:l=i}ot(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=B(a));function c(){a=s.startOf(e,l),o=s.add(a,r),d={start:a,end:o}}return c(),this.trimHiddenDays(d)||(e=this.skipHiddenDays(e,n),c()),d}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,a=e,o;s&&(a=i.startOf(a,s)),a=B(a),a=this.skipHiddenDays(a,n),o=a;do o=G(o,1),this.isHiddenDay(o)||(l+=1);while(l<r);return{start:a,end:o}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?O(1,r):e||O({days:1}))}refineRange(e){if(e){let n=Hc(e,this.props.dateEnv);return n&&(n=Br(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-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=G(e,n);return e}}function Lr(t,e,n,r){return{instanceId:Ze(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function zc(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:l}=t;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function $e(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:a}=t;a=Ye(a,o=>!l[o.defId].recurringDef);for(let o in l){let d=l[o];if(d.recurringDef){let{duration:c}=d.recurringDef;c||(c=d.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let g=Wc(d,c,e,r,i.recurringTypes);for(let h of g){let u=Lr(o,{start:h,end:r.add(h,c)});a[u.instanceId]=u}}}return{defs:l,instances:a}}function Wc(t,e,n,r,i){let l=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(l=l.map(B)),l}const sn={id:String,groupId:String,title:String,url:String,interactive:Boolean},tl={start:y,end:y,date:y,allDay:Boolean},Vc=Object.assign(Object.assign(Object.assign({},sn),tl),{extendedProps:y});function nl(t,e,n,r,i=Fr(n),s,l){let{refined:a,extra:o}=rl(t,n,i),d=qc(e,n),c=zc(a,d,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let h=fr(a,o,e?e.sourceId:"",c.allDay,!!c.duration,n,s);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let g=Gc(a,d,n,r);if(g){let h=fr(a,o,e?e.sourceId:"",g.allDay,g.hasEnd,n,s),u=Lr(h.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(u.instanceId=l[h.publicId]),{def:h,instance:u}}return null}function rl(t,e,n=Fr(e)){return Ir(t,n)}function Fr(t){return Object.assign(Object.assign(Object.assign({},yn),Vc),t.pluginHooks.eventRefiners)}function fr(t,e,n,r,i,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||Ze(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:En(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Gc(t,e,n,r){let{allDay:i}=t,s,l=null,a=!1,o,d=null,c=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(c),s)l=s.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&l&&(l=B(l)),o&&(d=o.marker,i&&(d=B(d)),l&&d<=l&&(d=null)),d?a=!0:r||(a=n.options.forceEventDuration||!1,d=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:l,end:d},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function qc(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function jt(t,e,n,r,i,s){let l=le(),a=Fr(n);for(let o of t){let d=nl(o,e,n,r,a,i,s);d&&hr(d,l)}return l}function hr(t,e=le()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Ur(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=_n(t,s=>Yc(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return le()}function Yc(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function le(){return{defs:{},instances:{}}}function zr(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function _n(t,e){let n=Ye(t.defs,e),r=Ye(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function $c(t,e){let{defs:n,instances:r}=t,i={},s={};for(let l in n)e.defs[l]||(i[l]=n[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function Qc(t,e){return Array.isArray(t)?jt(t,null,e,!0):typeof t=="object"&&t?jt([t],null,e,!0):t!=null?String(t):null}function zi(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const yn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:y,overlap:y,allow:y,className:zi,classNames:zi,color:String,backgroundColor:String,borderColor:String,textColor:String},Zc={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function En(t,e){let n=Qc(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 il(t){return t.reduce(Xc,Zc)}function Xc(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)}}const Kc={id:String,defaultAllDay:Boolean,url:String,format:String,events:y,eventDataTransform:y,success:y,failure:y};function sl(t,e,n=ll(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:i,extra:s}=Ir(r,n),l=Jc(i,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Ze(),sourceDefId:l.sourceDefId,meta:l.meta,ui:En(i,e),extendedProps:s}}return null}function ll(t){return Object.assign(Object.assign(Object.assign({},yn),Kc),t.pluginHooks.eventSourceRefiners)}function Jc(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function ed(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return td(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return nd(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return rd(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return zr(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?$e(t,r.activeRange,i):t;case"REMOVE_EVENTS":return $c(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return ol(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return _n(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return le();default:return t}}function td(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=jt(al(i,e,s),e,s);return r&&(l=$e(l,r,s)),zr(ol(t,e.sourceId),l)}return t}function nd(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=sd(t);let a=jt(al(n,e,i),e,i,!1,s,l);return $e(a,r,i)}function al(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Wi(t,i)),r&&(t=Wi(t,r)),t}function Wi(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function rd(t,e,n,r){return n&&(e=$e(e,n,r)),zr(t,e)}function Vi(t,e,n){let{defs:r}=t,i=De(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function ol(t,e){return _n(t,n=>n.sourceId!==e)}function id(t,e){return{defs:t.defs,instances:Ye(t.instances,n=>!e[n.instanceId])}}function sd(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(r[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(i[o]=s)}return{defIdMap:r,instanceIdMap:i}}class Tn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){ld(this.handlers,e,n)}off(e,n){ad(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function ld(t,e,n){(t[e]||(t[e]=[])).push(n)}function ad(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const od={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function cd(t,e){return jt(dd(t),null,e)}function dd(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({},od),n)),e}function cl(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},Wr(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function ud(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function Wr(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,xd(t,e.dateEnv)),n}function Gi(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=B(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Vr(t,e,n,r){let i=Sn(t.defs,e),s=le();for(let l in t.defs){let a=t.defs[l];s.defs[l]=fd(a,i[l],n,r)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=hd(a,o,i[a.defId],n,r)}return s}function fd(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function hd(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=Js(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)}),a&&(o.range={start:o.range.start,end:Gi(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:B(o.range.start),end:B(o.range.end)}),o.range.end<o.range.start&&(o.range.end=Gi(e.allDay,o.range.start,i)),o}class st{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}}class U{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in tl)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=sn[e](n),this.mutate({standardProps:{publicId:n}});else if(e in sn)n=sn[e](n),this.mutate({standardProps:{[e]:n}});else if(e in yn){let r=yn[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,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=lt(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=lt(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),a;if(l&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let o=this._instance.range;r.allDay===!0&&(o=Js(o));let d=lt(o.start,l,i,r.granularity);if(a){let c=lt(o.end,a,i,r.granularity);Ho(d,c)?this.mutate({datesDelta:d,standardProps:s}):this.mutate({startDelta:d,endDelta:c,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:d,standardProps:s})}}moveStart(e){let n=O(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=O(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=O(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=F(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=Ur(s,n.instanceId);l=Vr(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new U(i,r,n);this._def=l.defs[r.defId],this._instance=l.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Ge(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=dl(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 st(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:i,endStr:s}=this,l={allDay:n.allDay};return n.title&&(l.title=n.title),i&&(l.start=i),s&&(l.end=s),n.publicId&&(l.id=n.publicId),n.groupId&&(l.groupId=n.groupId),n.url&&(l.url=n.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,n.extendedProps):l.extendedProps=n.extendedProps),l}toJSON(){return this.toPlainObject()}}function dl(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Ge(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let a in i){let o=i[a],d=r[o.defId];o.instanceId!==l&&s.push(new U(e,d,o))}return s}function gr(t,e,n,r){let i={},s={},l={},a=[],o=[],d=Sn(t.defs,e);for(let c in t.defs){let g=t.defs[c];d[g.defId].display==="inverse-background"&&(g.groupId?(i[g.groupId]=[],l[g.groupId]||(l[g.groupId]=g)):s[c]=[])}for(let c in t.instances){let g=t.instances[c],h=t.defs[g.defId],u=d[h.defId],m=g.range,v=!h.allDay&&r?Br(m,r):m,E=Oe(v,n);E&&(u.display==="inverse-background"?h.groupId?i[h.groupId].push(E):s[g.defId].push(E):u.display!=="none"&&(u.display==="background"?a:o).push({def:h,ui:u,instance:g,range:E,isStart:v.start&&v.start.valueOf()===E.start.valueOf(),isEnd:v.end&&v.end.valueOf()===E.end.valueOf()}))}for(let c in i){let g=i[c],h=Ui(g,n);for(let u of h){let m=l[c],v=d[m.defId];a.push({def:m,ui:v,instance:null,range:u,isStart:!1,isEnd:!1})}}for(let c in s){let g=s[c],h=Ui(g,n);for(let u of h)a.push({def:t.defs[c],ui:d[c],instance:null,range:u,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function gd(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function qi(t,e){t.fcSeg=e}function ut(t){return t.fcSeg||t.parentNode.fcSeg||null}function Sn(t,e){return De(t,n=>ul(n,e))}function ul(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),il(n)}function Gr(t,e){let n=t.map(pd);return n.sort((r,i)=>ko(r,i,e)),n.map(r=>r._seg)}function pd(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function md(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,l=s.startEditable;for(let a of r)l=a(l,i,s,e);return l}function vd(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function bd(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Nt(t,e,n,r,i,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:d,displayEventEnd:c}=o,g=t.eventRange.def,h=t.eventRange.instance;d==null&&(d=r!==!1),c==null&&(c=i!==!1);let u=h.range.start,m=h.range.end,v=s||t.start||t.eventRange.range.start,E=l||t.end||t.eventRange.range.end,b=B(u).valueOf()===B(v).valueOf(),C=B(Ie(m,-1)).valueOf()===B(Ie(E,-1)).valueOf();return d&&!g.allDay&&(b||C)?(v=b?u:v,E=C?m:E,c&&g.hasEnd?a.formatRange(v,E,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(v,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function xe(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&Ae(e,r.start)}}function yd(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 fl(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function qr(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?Vs(o=>{s.trigger("eventClick",{el:o.target,event:new U(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const Ed={start:y,end:y,allDay:Boolean};function Sd(t,e,n){let r=Cd(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function Cd(t,e){let{refined:n,extra:r}=Ir(t,Ed),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function wd(t,e){return Lc(t.range,e.range)&&t.allDay===e.allDay&&Ad(t,e)}function Ad(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function xd(t,e){return Object.assign(Object.assign({},gl(t.range,e,t.allDay)),{allDay:t.allDay})}function hl(t,e,n){return Object.assign(Object.assign({},gl(t,e,n)),{timeZone:e.timeZone})}function gl(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 Dd(t,e,n){let r=rl({editable:!1},n),i=fr(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:ul(i,e),instance:Lr(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Rd(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,n(a))},l=t(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class Yi extends Error{constructor(e,n){super(e),this.response=n}}function _d(t,e,n){t=t.toUpperCase();const 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(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Yi("Failure parsing JSON",i)});throw new Yi("Request failed",i)})}let Qn;function pl(){return Qn==null&&(Qn=Td()),Qn}function Td(){if(typeof document>"u")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}class kd extends j{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{bn(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{bn(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return pl()||l.push("fc-liquid-hack"),e.children(l,s,i,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)}}class pt{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Nd(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Yr(t){return{[t.component.uid]:t}}const pr={};class Ke extends se{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:i}=n.options;i==="auto"&&(i=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let s,l;return i?(s=n.dateEnv.startOf(r,e.unit),l=n.dateEnv.add(s,O(1,e.unit)).valueOf()-r.valueOf()):(s=r,l=1e3*60),l=Math.min(1e3*60*60*24,l),{state:{nowDate:s,todayRange:Md(s)},waitMs:l}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Ke.contextType=Re;function Md(t){let e=B(t),n=G(e,1);return{start:e,end:n}}class Id{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(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let a in n)i.push(a);for(s=0;s<i.length;s+=1)if(l=n[i[s]],l&&l.singleUnit===e)return l;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=O(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),F(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),F(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 i=this.getCurrentData(),s=Sd(r,i.dateEnv,O({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),cl(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),ud(e,n))}addEvent(e,n){if(e instanceof U){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:hr({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof st)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=jr(r.eventSources));else if(n!=null){let l=this.getEventSourceById(n);if(!l)return console.warn(`Could not find an event source with ID "${n}"`),null;i=l.internalEventSource}let s=nl(e,i,r,!1);if(s){let l=new U(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:hr(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:dl(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new U(n,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new U(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Ge(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new st(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new st(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof st)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=sl(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new st(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=O(e);n&&this.trigger("_scrollRequest",{time:n})}}function Od(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function ml(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}function jd(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Pd(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Hd(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Zn=le();class Bd{constructor(){this.getKeysForEventDefs=R(this._getKeysForEventDefs),this.splitDateSelection=R(this._splitDateSpan),this.splitEventStore=R(this._splitEventStore),this.splitIndividualUi=R(this._splitIndividualUi),this.splitEventDrag=R(this._splitInteraction),this.splitEventResize=R(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),l=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),o=this.splitEventResize(e.eventResize),d={};this.eventUiBuilders=De(n,(c,g)=>this.eventUiBuilders[g]||R(Ld));for(let c in n){let g=n[c],h=l[c]||Zn,u=this.eventUiBuilders[c];d[c]={businessHours:g.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:h,eventUiBases:u(e.eventUiBases[""],g.ui,s[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:o[c]||null}}return d}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return De(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,s={};for(let l in r)for(let a of n[l])s[a]||(s[a]=le()),s[a].defs[l]=r[l];for(let l in i){let a=i[l];for(let o of n[a.defId])s[o]&&(s[o].instances[l]=a)}return s}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let s of n[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),l=a=>{n[a]||(n[a]={affectedEvents:r[a]||Zn,mutatedEvents:s[a]||Zn,isEvent:e.isEvent})};for(let a in r)l(a);for(let a in s)l(a)}return n}}function Ld(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":il(r)};return n&&Object.assign(i,n),i}function $r(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!Ae(r.activeRange,t))),isOther:!!(r&&!Ae(r.currentRange,t)),isToday:!!(e&&Ae(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function kn(t,e){let n=["fc-day",`fc-day-${zo[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}const Fd=F({year:"numeric",month:"long",day:"numeric"}),Ud=F({week:"long"});function ft(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let a=i.format(e,n==="week"?Ud:Fd);if(s.navLinks){let o=i.toDate(e);const d=c=>{let g=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof g=="function"?g.call(l,i.toDate(e),c):(typeof g=="string"&&(n=g),l.zoomTo(e,n))};return Object.assign({title:Tt(s.navLinkHint,[a,o],a),"data-navlink":""},r?Ws(d):{onClick:d})}return{"aria-label":a}}let Xn=null;function zd(){return Xn===null&&(Xn=Wd()),Xn}function Wd(){let t=document.createElement("div");_t(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return _r(t),n}let Kn;function Vd(){return Kn||(Kn=Gd()),Kn}function Gd(){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=vl(t);return document.body.removeChild(t),e}function vl(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function qd(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=vl(t),o=a.y-r-i,d=a.x-s-l,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:d,scrollbarLeft:0,scrollbarRight:0};return zd()&&n.direction==="rtl"?c.scrollbarLeft=o:c.scrollbarRight=o,e&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function Yd(t,e=!1,n){let r=Qr(t),i=qd(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function Qr(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function $d(t){let e=bl(t),n=t.getBoundingClientRect();for(let r of e){let i=ml(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function bl(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}class ht{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Yt(this.tops||[],e.tops||[])&&Yt(this.bottoms||[],e.bottoms||[])&&Yt(this.lefts||[],e.lefts||[])&&Yt(this.rights||[],e.rights||[])}}function Yt(t,e){const 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}class Zr{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Qd extends Zr{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Zd extends Zr{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class he extends j{constructor(){super(...arguments),this.uid=Ze()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Q(e,".fc-event-mirror")}isValidDateDownEl(e){return!Q(e,".fc-event:not(.fc-bg-event)")&&!Q(e,".fc-more-link")&&!Q(e,"a[data-navlink]")&&!Q(e,".fc-popover")}}class yl{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){const i=Object.assign(Object.assign({},n),{span:Xr(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,s=n.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(Jn(i,n.level,n.levelCoord),Jn(r,n.level,[e])):Jn(r[n.level],n.lateral,e),this.stackCnts[qe(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,a=0,o=-1,d=-1,c=null,g=0;for(let m=0;m<l;m+=1){const v=n[m];if(!i&&v>=a+this.getEntryThickness(e))break;let E=r[m],b,C=vr(E,e.span.start,mr),w=C[0]+C[1];for(;(b=E[w])&&b.span.start<e.span.end;){let A=v+this.getEntryThickness(b);A>a&&(a=A,c=b,o=m,d=w),A===a&&(g=Math.max(g,s[qe(b)]+1)),w+=1}}let h=0;if(c)for(h=o+1;h<l&&n[h]<a;)h+=1;let u=-1;return h<l&&n[h]===a&&(u=vr(r[h],e.span.end,mr)[0]),{touchingLevel:o,touchingLateral:d,touchingEntry:c,stackCnt:g,levelCoord:a,level:h,lateral:u}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],a=n[s];for(let o of l)i.push(Object.assign(Object.assign({},o),{thickness:this.getEntryThickness(o),levelCoord:a}))}return i}}function mr(t){return t.span.end}function qe(t){return t.index+":"+t.span.start}function Xd(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)Xr(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:Kd(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function Kd(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Xr(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 Jn(t,e,n){t.splice(e,0,n)}function vr(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=n(t[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class Jd{constructor(e,n){this.emitter=new Tn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Kr={};function eu(t,e){return!t||e>10?F({weekday:"short"}):e>1?F({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):F({weekday:"long"})}const El="fc-col-header-cell";function Sl(t){return t.text}class tu extends j{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=$r(l,s.todayRange,null,a),d=[El].concat(kn(o,r)),c=e.format(l,s.dayHeaderFormat),g=!o.isDisabled&&s.colCnt>1?ft(this.context,l):{},h=e.toDate(l);e.namedTimeZoneImpl&&(h=Ie(h,36e5));let u=Object.assign(Object.assign(Object.assign({date:h,view:i},s.extraRenderProps),{text:c}),o);return p(Z,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:Pt(l)},s.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Sl,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},m=>p("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&p(m,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const nu=F({weekday:"long"});class ru extends j{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=G(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:i}),e.extraRenderProps),{text:o});return p(Z,{elTag:"th",elClasses:[El,...kn(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:Sl,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>p("div",{className:"fc-scrollgrid-sync-inner"},p(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,nu)}})))}}class Cl extends j{constructor(){super(...arguments),this.createDayHeaderFormatter=R(iu)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return p(Ke,{unit:"day"},(a,o)=>p("tr",{role:"row"},s&&s("day"),n.map(d=>i?p(tu,{key:d.toISOString(),date:d,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):p(ru,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:l}))))}}function iu(t,e,n){return t||eu(e,n)}class wl{constructor(e,n){let r=e.start,{end:i}=e,s=[],l=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),l.push(r)),r=G(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(G(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(je(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class Al{constructor(e,n){let{dates:r}=e,i,s,l;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,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 i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));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),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,a=s;for(;a<=l;){let o=Math.floor(a/n),d=Math.min((o+1)*n,l+1);i.push({row:o,firstCol:a%n,lastCol:(d-1)%n,isStart:r.isStart&&a===s,isEnd:r.isEnd&&d-1===l}),a=d}}return i}}class xl{constructor(){this.sliceBusinessHours=R(this._sliceBusinessHours),this.sliceDateSelection=R(this._sliceDateSpan),this.sliceEventStore=R(this._sliceEventStore),this.sliceEventDrag=R(this._sliceInteraction),this.sliceEventResize=R(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:l}=e,a=this.sliceEventStore(e.eventStore,l,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:Ie(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore($e(e,$t(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=gr(e,n,$t(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let l=gr(e.mutatedEvents,n,$t(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...l){if(!e)return[];let a=$t(n,!!r),o=Oe(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let d=Dd(e,i,s),c=this.sliceRange(e.range,...l);for(let g of c)g.eventRange=d;return c}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:G(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function $t(t,e){let n=t.activeRange;return e?n:{start:Ie(n.start,t.slotMinTime.milliseconds),end:Ie(n.end,t.slotMaxTime.milliseconds-864e5)}}function Dl(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!Rn(e.validRange,r[i].range))return!1;return Rl({eventDrag:t},n)}function su(t,e,n){return Rn(e.validRange,t.range)?Rl({dateSelection:t},n):!1}function Rl(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||lu)(r,e)}function lu(t,e,n={},r){return!(t.eventDrag&&!au(t,e,n,r)||t.dateSelection&&!ou(t,e,n,r))}function au(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,d=Sn(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(d=De(d,r));let c=id(t.eventStore,s.affectedEvents.instances),g=c.defs,h=c.instances,u=Sn(g,t.eventUiBases);for(let m in o){let v=o[m],E=v.range,b=d[v.defId],C=a[v.defId];if(!_l(b.constraints,E,c,t.businessHours,e))return!1;let{eventOverlap:w}=e.options,A=typeof w=="function"?w:null;for(let k in h){let M=h[k];if(Hr(E,M.range)&&(u[M.defId].overlap===!1&&s.isEvent||b.overlap===!1||A&&!A(new U(e,g[M.defId],M),new U(e,C,v))))return!1}let T=i.eventStore;for(let k of b.allows){let M=Object.assign(Object.assign({},n),{range:v.range,allDay:C.allDay}),N=T.defs[C.defId],V=T.instances[m],q;if(N?q=new U(e,N,V):q=new U(e,C),!k(Wr(M,e),q))return!1}}return!0}function ou(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,a=t.dateSelection,o=a.range,{selectionConfig:d}=e.getCurrentData();if(r&&(d=r(d)),!_l(d.constraints,o,i,t.businessHours,e))return!1;let{selectOverlap:c}=e.options,g=typeof c=="function"?c:null;for(let h in l){let u=l[h];if(Hr(o,u.range)&&(d.overlap===!1||g&&!g(new U(e,s[u.defId],u),null)))return!1}for(let h of d.allows){let u=Object.assign(Object.assign({},n),a);if(!h(Wr(u,e),null))return!1}return!0}function _l(t,e,n,r,i){for(let s of t)if(!du(cu(s,e,n,r,i),e))return!1;return!0}function cu(t,e,n,r,i){return t==="businessHours"?er($e(r,e,i)):typeof t=="string"?er(_n(n,s=>s.groupId===t)):typeof t=="object"&&t?er($e(t,e,i)):[]}function er(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function du(t,e){for(let n of t)if(Rn(n,e))return!0;return!1}const Qt=/^(visible|hidden)$/;class Tl extends j{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,be(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),p("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Qt.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Qt.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Qt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Qt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class we{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,l=!1,a=!1;n!==null?(l=r in s,s[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),a&&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 Cc(this.currentMap,e,n,r)}getAll(){return jr(this.currentMap)}}function uu(t){let e=Eo(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Oo(r));return Math.ceil(n)}function kl(t,e){return t.liquid&&e.liquid}function fu(t,e){return e.maxHeight!=null||kl(t,e)}function hu(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):p("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,p(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function gu(t,e){return Me(t,e,fe)}function pu(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(p("col",{style:{width:r.width==="shrink"?mu(e):r.width||"",minWidth:r.minWidth||""}}))}return p("colgroup",{},...n)}function mu(t){return t??4}function vu(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function bu(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function yu(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 br(t){return p("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Cn(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Nl(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Jr extends j{constructor(){super(...arguments),this.processCols=R(e=>e,gu),this.renderMicroColGroup=R(pu),this.scrollerRefs=new we,this.scrollerElRefs=new we(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,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=bu(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,d=0,c,g=[],h=[],u=[];for(;d<o&&(c=i[d]).type==="header";)g.push(this.renderSection(c,l,!0)),d+=1;for(;d<o&&(c=i[d]).type==="body";)h.push(this.renderSection(c,l,!1)),d+=1;for(;d<o&&(c=i[d]).type==="footer";)u.push(this.renderSection(c,l,!0)),d+=1;let m=!pl();const v={role:"rowgroup"};return p("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!m&&g.length)&&p("thead",v,...g),!!(!m&&h.length)&&p("tbody",v,...h),!!(!m&&u.length)&&p("tfoot",v,...u),m&&p("tbody",v,...g,...h,...u))}renderSection(e,n,r){return"outerContent"in e?p(H,{key:e.key},e.outerContent):p("tr",{key:e.key,role:"presentation",className:yu(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:a,scrollerClientHeights:o}=this.state,d=fu(s,e),c=kl(s,e),g=s.liquid?l?"scroll":d?"auto":"hidden":"visible",h=e.key,u=hu(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return p(i?"th":"td",{ref:r.elRef,role:"presentation"},p("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},p(Tl,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:g,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},u)))}_handleScrollerEl(e,n){let r=Eu(this.props.sections,n);r&&be(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return vu(this.props.cols)?uu(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Vd(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let o=a.key,d=r.currentMap[o];if(d){let c=d.parentNode;s[o]=Math.floor(c.getBoundingClientRect().width-(i?e.y:0)),l[o]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Jr.addStateEquality({scrollerClientWidths:fe,scrollerClientHeights:fe});function Eu(t,e){for(let n of t)if(n.key===e)return n;return null}class Nn extends j{constructor(){super(...arguments),this.buildPublicEvent=R((e,n,r)=>new U(e,n,r)),this.handleEl=e=>{this.el=e,be(this.props.elRef,e),e&&qi(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,a={event:this.buildPublicEvent(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&md(i,n),isStartResizable:!e.disableResizing&&vd(i,n),isEndResizable:!e.disableResizing&&bd(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return p(Z,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...yd(a),...i.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:a,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&&qi(this.el,this.props.seg)}}class ei extends j{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,a=Nt(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return p(Nn,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:qr(i,n),defaultGenerator:Su,timeText:a}),(o,d)=>p(H,null,p(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&p("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}ei.addPropsEquality({seg:fe});function Su(t){return p("div",{className:"fc-event-main-frame"},t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title-container"},p("div",{className:"fc-event-title fc-sticky"},t.event.title||p(H,null," "))))}const ti=t=>p(Re.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return p(Z,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},t.children)}),Cu=F({day:"numeric"});class ni extends j{constructor(){super(...arguments),this.refineRenderProps=rn(wu)}render(){let{props:e,context:n}=this,{options:r}=n,i=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 p(Z,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Pt(e.date)}),elClasses:[...kn(i,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}}function ri(t){return!!(t.dayCellContent||ur("dayCellContent",t))}function wu(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=$r(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:Cu):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class Ml extends j{render(){let{props:e}=this,{seg:n}=e;return p(Nn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Au,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 Au(t){let{title:e}=t.event;return e&&p("div",{className:"fc-event-title"},t.event.title)}function Il(t){return p("div",{className:`fc-${t}`})}const Ol=t=>p(Re.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(i),a=n.format(i,s),o={num:l,text:a,date:i};return p(Z,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:xu,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function xu(t){return t.text}const tr=10;class Du extends j{constructor(){super(...arguments),this.state={titleId:Ne()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&be(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Us(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:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return so(p("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),p("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},p("span",{className:"fc-popover-title",id:i.titleId},r.title),p("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),p("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:i}=this,s=$d(n);if(s){let l=i.getBoundingClientRect(),a=r?Q(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,tr),o=Math.min(o,document.documentElement.clientWidth-tr-l.width),o=Math.max(o,tr);let d=i.offsetParent.getBoundingClientRect();_t(i,{top:a-d.top,left:o-d.left})}}}class Ru extends he{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:i,todayRange:s,dateProfile:l}=r,a=n.format(i,e.dayPopoverFormat);return p(ni,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,d,c)=>p(Du,{elRef:c.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},ri(e)&&p(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class jl extends j{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ne()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&be(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=$i(n).start;function l(a){let{def:o,instance:d,range:c}=a.eventRange;return{event:new U(r,o,d),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return p(Re.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,d=$i(e),c=typeof a=="function"?a.call(l,o):`+${o} ${a}`,g=Tt(s.moreLinkHint,[o],c),h={num:o,shortText:`+${o}`,text:c,view:i};return p(H,null,!!e.moreCnt&&p(Z,{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),Ws(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||_u,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&p(Ru,{id:n.popoverId,startDate:d.start,endDate:d.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=Q(this.linkEl,".fc-view-harness"))}}function _u(t){return t.text}function $i(t){if(t.allDayDate)return{start:t.allDayDate,end:G(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Pl(e),end:ku(e)}}function Pl(t){return t.reduce(Tu).eventRange.range.start}function Tu(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function ku(t){return t.reduce(Nu).eventRange.range.end}function Nu(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Mu{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Iu extends Mu{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const Ou=[],Hl={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"},Bl=Object.assign(Object.assign({},Hl),{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 ju(t){let e=t.length>0?t[0].code:"en",n=Ou.concat(t),r={en:Bl};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Ll(t,e){return typeof t=="object"&&!Array.isArray(t)?Fl(t.code,[t.code],t):Pu(t,e)}function Pu(t,e){let n=[].concat(t||[]),r=Hu(n,e)||Bl;return Fl(t,n,r)}function Hu(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function Fl(t,e,n){let r=Or([Hl,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function ye(t){return{id:Ze(),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 Bu(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 i(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,i(l.deps),r=Fu(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function Lu(){let t=[],e=[],n;return(r,i)=>((!n||!Me(r,t)||!Me(i,e))&&(n=Bu(r,i)),t=r,e=i,n)}function Fu(t,e){return{premiumReleaseDate:Uu(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 Uu(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Pe extends Ht{}Pe.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Pe.prototype.baseIconClass="fc-icon";Pe.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"};Pe.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Pe.prototype.iconOverrideOption="buttonIcons";Pe.prototype.iconOverrideCustomButtonOption="icon";Pe.prototype.iconOverridePrefix="fc-icon-";function zu(t,e){let n={},r;for(r in t)yr(r,n,t,e);for(r in e)yr(r,n,t,e);return n}function yr(t,e,n,r){if(e[t])return e[t];let i=Wu(t,e,n,r);return i&&(e[t]=i),i}function Wu(t,e,n,r){let i=n[t],s=r[t],l=c=>i&&i[c]!==null?i[c]:s&&s[c]!==null?s[c]:null,a=l("component"),o=l("superType"),d=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");d=yr(o,e,n,r)}return!a&&d&&(a=d.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},d?d.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),s?s.rawOptions:{})}:null}function Qi(t){return De(t,Vu)}function Vu(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Zi(e):n&&!(n.prototype instanceof j)&&(n=Zi(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Zi(t){return e=>p(Re.Consumer,null,n=>p(Z,{elTag:"div",elClasses:Ks(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 Gu(t,e,n,r){let i=Qi(t),s=Qi(e.views),l=zu(i,s);return De(l,a=>qu(a,s,e,n,r))}function qu(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,a="",o="",d={};if(s&&(l=Yu(s),l)){let h=dr(l);a=h.unit,h.value===1&&(o=a,d=e[a]?e[a].rawOptions:{})}let c=h=>{let u=h.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&u[m]!=null?u[m]:u[t.type]!=null?u[t.type]:u[o]!=null?u[o]:null},g=h=>{let u=h.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&u[m]!=null?u[m]:u[t.type]!=null?u[t.type]:u[o]!=null?u[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},d),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(i)||t.defaults.buttonText||c(kt)||t.type,buttonTitleOverride:g(r)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(i)||t.defaults.buttonHint||g(kt)}}let Xi={};function Yu(t){let e=JSON.stringify(t),n=Xi[e];return n===void 0&&(n=O(t),Xi[e]=n),n}function $u(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Qu(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Zu(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function Xu(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Ku(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function Ju(t,e,n){let r=e?e.activeRange:null;return zl({},af(t,n),r,n)}function ef(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return zl(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return nf(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Wl(t,i,r):t;case"FETCH_EVENT_SOURCES":return ii(t,e.sourceIds?Ys(e.sourceIds):Vl(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return lf(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function tf(t,e,n){let r=e?e.activeRange:null;return ii(t,Vl(t,n),r,!0,n)}function Ul(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function zl(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Wl(i,n,r)),Object.assign(Object.assign({},t),i)}function nf(t,e){return Ye(t,n=>n.sourceId!==e)}function Wl(t,e,n){return ii(t,Ye(t,r=>rf(r,e,n)),e,!1,n)}function rf(t,e,n){return Gl(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function ii(t,e,n,r,i){let s={};for(let l in t){let a=t[l];e[l]?s[l]=sf(a,n,r,i):s[l]=a}return s}function sf(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=Ze();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:d}=o;i.eventSourceSuccess&&(d=i.eventSourceSuccess.call(s,d,o.response)||d),t.success&&(d=t.success.call(s,d,o.response)||d),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:d})},o=>{let d=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,o),d=!0),t.failure&&(t.failure(o),d=!0),d||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function lf(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function Vl(t,e){return Ye(t,n=>Gl(n,e))}function af(t,e){let n=ll(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let l=sl(s,e,n);l&&i.push(l)}return i}function Gl(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function of(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function cf(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function df(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 uf(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 ff(t,e,n,r,i){let s=t.headerToolbar?Ki(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?Ki(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function Ki(t,e,n,r,i,s){let l={},a=[],o=!1;for(let d in t){let c=t[d],g=hf(c,e,n,r,i,s);l[d]=g.widgets,a.push(...g.viewsWithButtons),o=o||g.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function hf(t,e,n,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},d=e.buttonText||{},c=n.buttonHints||{},g=e.buttonHints||{},h=t?t.split(" "):[],u=[],m=!1;return{widgets:h.map(E=>E.split(",").map(b=>{if(b==="title")return m=!0,{buttonName:b};let C,w,A,T,k,M;if(C=a[b])A=N=>{C.click&&C.click.call(N.target,N,N.target)},(T=r.getCustomButtonIconClass(C))||(T=r.getIconClass(b,l))||(k=C.text),M=C.hint||C.text;else if(w=i[b]){u.push(b),A=()=>{s.changeView(b)},(k=w.buttonTextOverride)||(T=r.getIconClass(b,l))||(k=w.buttonTextDefault);let N=w.buttonTextOverride||w.buttonTextDefault;M=Tt(w.buttonTitleOverride||w.buttonTitleDefault||e.viewHint,[N,b],N)}else if(s[b])if(A=()=>{s[b]()},(k=o[b])||(T=r.getIconClass(b,l))||(k=d[b]),b==="prevYear"||b==="nextYear"){let N=b==="prevYear"?"prev":"next";M=Tt(c[N]||g[N],[d.year||"year","year"],d[b])}else M=N=>Tt(c[b]||g[b],[d[N]||N,N],d[b]);return{buttonName:b,buttonClick:A,buttonIcon:T,buttonText:k,buttonHint:M}})),viewsWithButtons:u,hasTitle:m}}class gf{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]}}let pf={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const mf=ye({name:"array-event-source",eventSourceDefs:[pf]});let vf={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;Rd(i.bind(null,hl(t.range,r)),s=>e({rawEvents:s}),n)}};const bf=ye({name:"func-event-source",eventSourceDefs:[vf]}),yf={method:String,extraParams:y,startParam:String,endParam:String,timeZoneParam:String};let Ef={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){const{meta:r}=t.eventSource,i=Cf(r,t.range,t.context);_d(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const Sf=ye({name:"json-event-source",eventSourceRefiners:yf,eventSourceDefs:[Ef]});function Cf(t,e,n){let{dateEnv:r,options:i}=n,s,l,a,o,d={};return s=t.startParam,s==null&&(s=i.startParam),l=t.endParam,l==null&&(l=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(d,o),d[s]=r.formatIso(e.start),d[l]=r.formatIso(e.end),r.timeZone!=="local"&&(d[a]=r.timeZone),d}const wf={daysOfWeek:y,startTime:O,endTime:O,duration:O,startRecur:y,endRecur:y};let Af={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=Bo(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Oe(e,{start:t.startRecur,end:t.endRecur});return r?Df(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}};const xf=ye({name:"simple-recurring-event",recurringTypes:[Af],eventRefiners:wf});function Df(t,e,n,r,i){let s=t?Ys(t):null,l=B(i.start),a=i.end,o=[];for(e&&(e.milliseconds<0?a=G(a,1):e.milliseconds>=1e3*60*60*24&&(l=G(l,-1)));l<a;){let d;(!s||s[l.getUTCDay()])&&(e?d=r.add(l,e):d=l,o.push(r.createMarker(n.toDate(d)))),l=G(l,1)}return o}const Rf=ye({name:"change-handler",optionChangeHandlers:{events(t,e){Ji([t],e)},eventSources:Ji}});function Ji(t,e){let n=jr(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 i of t){let s=!1;for(let l=0;l<n.length;l+=1)if(n[l]._raw===i){n.splice(l,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function _f(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},hl(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Tf(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Ge(t,e))}const kf=[mf,bf,Sf,xf,Rf,ye({name:"misc",isLoadingFuncs:[t=>Ul(t.eventSources)],propSetHandlers:{dateProfile:_f,eventStore:Tf}})];class Nf{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Rr(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 Mf(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,F(e.titleFormat||If(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function If(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=gn(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class es{constructor(){this.resetListeners=new Set}handleInput(e,n){const 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(const i of this.resetListeners.values())i()}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)}}class Of{constructor(e){this.computeCurrentViewData=R(this._computeCurrentViewData),this.organizeRawLocales=R(ju),this.buildLocale=R(Ll),this.buildPluginHooks=Lu(),this.buildDateEnv=R(jf),this.buildTheme=R(Pf),this.parseToolbars=R(ff),this.buildViewSpecs=R(Gu),this.buildDateProfileGenerator=rn(Hf),this.buildViewApi=R(Bf),this.buildViewUiProps=rn(Uf),this.buildEventUiBySource=R(Lf,fe),this.buildEventUiBases=R(Ff),this.parseContextBusinessHours=rn(zf),this.buildTitle=R(Mf),this.nowManager=new es,this.emitter=new Tn,this.actionRunner=new Nf(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 es;let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a=Zu(r.calendarOptions,r.dateEnv,this.nowManager),o=s.dateProfileGenerator.build(a);Ae(o.activeRange,a)||(a=o.currentRange.start);for(let h of r.pluginHooks.contextInit)h(l);let d=Ju(r.calendarOptions,o,l),c={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:o,businessHours:this.parseContextBusinessHours(l),eventSources:d,eventUiBases:{},eventStore:le(),renderableEventStore:le(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},g=Object.assign(Object.assign({},l),c);for(let h of r.pluginHooks.reducers)Object.assign(c,h(null,null,g));nr(c,l)&&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:i}=this,s=Xu(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=$u(r.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(o.options);let d={nowManager:this.nowManager,dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:g}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(g=o.dateProfileGenerator.build(c)),c=Qu(c,e),g=Ku(g,e,c,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Ae(g.currentRange,c))&&(c=g.currentRange.start);let h=ef(r.eventSources,e,g,d),u=ed(r.eventStore,e,h,g,d),v=Ul(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||u,{eventUiSingleBase:E,selectionConfig:b}=this.buildViewUiProps(d),C=this.buildEventUiBySource(h),w=this.buildEventUiBases(v.defs,E,C),A={dynamicOptionOverrides:s,currentViewType:a,currentDate:c,dateProfile:g,eventSources:h,eventStore:u,renderableEventStore:v,selectionConfig:b,eventUiBases:w,businessHours:this.parseContextBusinessHours(d),dateSelection:of(r.dateSelection,e),eventSelection:cf(r.eventSelection,e),eventDrag:df(r.eventDrag,e),eventResize:uf(r.eventResize,e)},T=Object.assign(Object.assign({},d),A);for(let N of l.pluginHooks.reducers)Object.assign(A,N(r,e,T));let k=nr(r,d),M=nr(A,d);!k&&M?i.trigger("loading",!0):k&&!M&&i.trigger("loading",!1),this.state=A,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),a=i.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,d=i.calendarOptions;if(o&&o!==d){o.timeZone!==d.timeZone&&(n.eventSources=l.eventSources=tf(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=Vi(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=Vi(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let c in a)(this.optionsForHandling.indexOf(c)!==-1||o[c]!==d[c])&&a[c](d[c],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);ts(o);let d=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),g=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,g,c,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:d,viewSpecs:c,theme:g,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=Yn([kt,e,n]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],kf),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bi),Li),Fi),o.listenerRefiners),o.optionRefiners),c={},g=Yn([kt,a,e,n]),h={},u=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,v=!1;for(let E in g)this.optionsForRefining.indexOf(E)===-1&&(g[E]===u[E]||Be[E]&&E in u&&Be[E](u[E],g[E]))?h[E]=m[E]:d[E]?(h[E]=d[E](g[E]),v=!0):c[E]=u[E];return v&&(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:s,localeDefaults:a,extra:c}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);ts(a),this.nowManager.handleInput(n.dateEnv,l.now);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),d=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:d}}processRawViewOptions(e,n,r,i,s){let l=Yn([kt,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bi),Li),Fi),vc),n.listenerRefiners),n.optionRefiners),o={},d=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,g=!1,h={};for(let u in l)l[u]===d[u]||Be[u]&&Be[u](l[u],d[u])?o[u]=c[u]:(l[u]===this.currentCalendarOptionsInput[u]||Be[u]&&Be[u](l[u],this.currentCalendarOptionsInput[u])?u in this.currentCalendarOptionsRefined&&(o[u]=this.currentCalendarOptionsRefined[u]):a[u]?o[u]=a[u](l[u]):h[u]=l[u],g=!0);return g&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function jf(t,e,n,r,i,s,l,a){let o=Ll(e||l.defaultCode,l.map);return new _c({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Pf(t,e){let n=e.themeClasses[t.themeSystem]||Pe;return new n(t)}function Hf(t){let e=t.dateProfileGeneratorClass||el;return new e(t)}function Bf(t,e,n){return new gf(t,e,n)}function Lf(t){return De(t,e=>e.ui)}function Ff(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function Uf(t){let{options:e}=t;return{eventUiSingleBase:En({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:En({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function nr(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function zf(t){return cd(t.options.businessHours,t)}function ts(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class Wf extends j{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return p("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:d,buttonIcon:c,buttonHint:g}=l;if(a==="title")s=!1,i.push(p("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,u=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",m=[`fc-${a}-button`,r.getClass("button")];h&&m.push(r.getClass("buttonActive")),i.push(p("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:u,"aria-pressed":h,className:m.join(" "),onClick:o},d||(c?p("span",{className:c,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return p("div",{className:l},...i)}return i[0]}}class ns extends j{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,l=e.sectionWidgets,a=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,p("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return p(Wf,{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})}}class Vf extends j{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,be(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?n.availableWidth!==null?s=n.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",p("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},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})}}class Gf extends pt{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=ut(r);if(l&&i.isValidSegDownEl(n.target)){let a=Q(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new U(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=zs(e.el,"click",".fc-event",this.handleSegClick)}}class qf extends pt{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{ut(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=wo(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=ut(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new U(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Yf extends Xe{constructor(){super(...arguments),this.buildViewContext=R(Nc),this.buildViewPropTransformers=R(Qf),this.buildToolbarProps=R($f),this.headerRef=te(),this.footerRef=te(),this.interactionsStore={},this.state={viewLabelId:Ne()},this.registerInteractiveComponent=(e,n)=>{let r=Nd(e,n),l=[Gf,qf].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,pr[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 pr[e.uid]},this.resizeRunner=new Rr(()=>{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,i=!1,s="",l;e.isHeightAuto||e.forPrint?s="":r.height!=null?i=!0:r.contentHeight!=null?s=r.contentHeight:l=Math.max(r.aspectRatio,.5);let a=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 p(Re.Provider,{value:a},p(Ke,{unit:"day"},d=>{let c=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,d,e.viewTitle);return p(H,null,n.header&&p(ns,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:o},c)),p(Vf,{liquid:i,height:s,aspectRatio:l,labeledById:o},this.renderView(e),this.buildAppendContent()),n.footer&&p(ns,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 i in r)n[i]!==e[i]&&r[i](n[i],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 p(H,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={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},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let l=r.component;return p(l,Object.assign({},i))}}function $f(t,e,n,r,i,s){let l=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!Ae(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function Qf(t){return t.map(e=>new e)}class Zf extends Id{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;bn(()=>{It(p(kd,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),p(Xs.Provider,{value:this.customContentRenderId},p(Yf,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,It(null,this.el),this.setClassNames([]),this.setHeight(""))},go(e),this.el=e,this.renderRunner=new Rr(this.handleRenderRequest),new Of({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(){bn(()=>{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(!Me(e,this.currentClassNames)){let{classList:n}=this.el;
1for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Fs(this.el,"height",e)}}const Xf=parseInt(String(ir.version).split(".")[0]),Kf=Xf<18;class ql extends S.Component{constructor(){super(...arguments),this.elRef=S.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const e=[];for(const n of this.state.customRenderingMap.values())e.push(ir.createElement(Jf,{key:n.id,customRendering:n}));return ir.createElement("div",{ref:this.elRef},e)}componentDidMount(){this.isUnmounting=!1;const e=new Iu;this.handleCustomRendering=e.handle.bind(e),this.calendar=new Zf(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{sr.flushSync(()=>{})});let n;e.subscribe(r=>{const i=Date.now(),s=!n;(Kf||s||this.isUpdating||this.isUnmounting||i-n<100?Yl:sr.flushSync)(()=>{this.setState({customRenderingMap:r},()=>{n=i,s?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}ql.act=Yl;class Jf extends S.PureComponent{render(){const{customRendering:e}=this.props,{generatorMeta:n}=e,r=typeof n=="function"?n(e.renderProps):n;return sr.createPortal(r,e.containerEl)}}function Yl(t){t()}class eh extends he{constructor(){super(...arguments),this.headerElRef=te()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=Cn(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}
vendor: 3,904 bytes, line 1
1),p(Ot,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},p(Jr,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&Cn(a.options),d=!l.forPrint&&Nl(a.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}]}),d&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:br}]}),p(Ot,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},p(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:c}))}}function ln(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 Zt(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 rs(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}const $l=F({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ql(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}class Zl extends j{render(){let{props:e}=this;return p(ei,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:$l,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Xl extends j{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||$l,l=Nt(i,s,n,!0,e.defaultDisplayEventEnd);return p(Nn,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:qr(e.seg,n),defaultGenerator:th,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function th(t){return p(H,null,p("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&p("div",{className:"fc-event-time"},t.timeText),p("div",{className:"fc-event-title"},t.event.title||p(H,null," ")))}class nh extends j{constructor(){super(...arguments),this.compileSegs=R(rh)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return p(jl,{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 i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return p(H,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return p("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},Ql(s)?p(Xl,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},xe(s,e.todayRange))):p(Zl,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},xe(s,e.todayRange))))}))}})}}function rh(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const ih=F({week:"narrow"});class sh extends he{constructor(){super(...arguments),this.rootElRef=te(),this.state={dayNumberId:Ne()},this.handleRootEl=e=>{be(this.rootElRef,e),be(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const d=n.showDayNumber&&ah(a,o.currentRange,l);return p(ni,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
1d-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:lh,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:d,extraRenderProps:n.extraRenderProps},(c,g)=>p("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&p(Ol,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ft(e,a,"week"),date:a,defaultFormat:ih}),!g.isDisabled&&(n.showDayNumber||ri(s)||n.forceDayTop)?p("div",{className:"fc-daygrid-day-top"},p(c,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ft(e,a)),{id:r.dayNumberId})})):n.showDayNumber?p("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},p("a",{className:"fc-daygrid-day-number"}," ")):void 0,p("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,p("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},p(nh,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),p("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function lh(t){return t.dayNumberText||p(H,null," ")}function ah(t,e,n){const{start:r,end:i}=e,s=Ie(i,-1),l=n.getYear(r),a=n.getMonth(r),o=n.getYear(s),d=n.getMonth(s);return!(l===o&&a===d)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Kl(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Jl(t){return Kl(t)+":"+t.lastCol}function oh(t,e,n,r,i,s,l){let a=new uh(b=>{let C=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return i[C]||1});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],d=[];for(let b=0;b<t.length;b+=1){let C=t[b],w=Jl(C);i[w]!=null?o.push({index:b,span:{start:C.firstCol,end:C.lastCol+1}}):d.push(C)}let c=a.addSegs(o),g=a.toRects(),{singleColPlacements:h,multiColPlacements:u,leftoverMargins:m}=ch(g,t,l),v=[],E=[];for(let b of d){u[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let C=b.firstCol;C<=b.lastCol;C+=1)h[C].push({seg:ct(b,C,C+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)v.push(0);for(let b of c){let C=t[b.index],w=b.span;u[w.start].push({seg:ct(C,w.start,w.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let A=w.start;A<w.end;A+=1)v[A]+=1,h[A].push({seg:ct(C,A,A+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)E.push(m[b]);return{singleColPlacements:h,multiColPlacements:u,moreCnts:v,moreMarginTops:E}}function ch(t,e,n){let r=dh(t,n.length),i=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=r[a],d=[],c=0,g=0;for(let u of o){let m=e[u.index];d.push({seg:ct(m,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:u.levelCoord-c}),c=u.levelCoord+u.thickness}let h=[];c=0,g=0;for(let u of o){let m=e[u.index],v=u.span.end-u.span.start>1,E=u.span.start===a;g+=u.levelCoord-c,c=u.levelCoord+u.thickness,v?(g+=u.thickness,E&&h.push({seg:ct(m,u.span.start,u.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:u.levelCoord,marginTop:0})):E&&(h.push({seg:ct(m,u.span.start,u.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:g}),g=0)}i.push(d),s.push(h),l.push(g)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function dh(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function ct(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Oe(s,{start:r[e].date,end:G(r[n-1].date,1)});return Object.assign(Object.assign({}
vendor: 8,471 bytes, line 1
1,t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:t.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===s.end.valueOf()})}class uh extends yl{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[qe(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:a,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const d=qe(l);if(!s[d])if(this.allowReslicing){const c=Object.assign(Object.assign({},l),{span:Xr(l.span,n.span)}),g=qe(c);s[g]=!0,i[a][o]=c,r.push(c),this.splitEntry(l,n,r)}else s[d]=!0,r.push(l)}super.handleInvalidInsertion(e,n,r)}}class ea extends he{constructor(){super(...arguments),this.cellElRefs=new we,this.frameElRefs=new we,this.fgElRefs=new we,this.segHarnessRefs=new we,this.rootElRef=te(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,l=Zt(e.businessHourSegs,s),a=Zt(e.bgEventSegs,s),o=Zt(this.getHighlightSegs(),s),d=Zt(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:g,moreCnts:h,moreMarginTops:u}=oh(Gr(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return p("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((v,E)=>{let b=this.renderFgSegs(E,e.forPrint?c[E]:g[E],e.todayRange,m),C=this.renderFgSegs(E,fh(d[E],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return p(sh,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:e.dateProfile,date:v.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&E===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:h[E],moreMarginTop:u[E],singlePlacements:c[E],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:p(H,null,p(H,null,b),p(H,null,C)),bgContent:p(H,null,this.renderFillSegs(o[E],"highlight"),this.renderFillSegs(l[E],"non-business"),this.renderFillSegs(a[E],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!fe(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,i,s,l,a){let{context:o}=this,{eventSelection:d}=this.props,{framePositions:c}=this.state,g=this.props.cells.length===1,h=s||l||a,u=[];if(c)for(let m of n){let{seg:v}=m,{instanceId:E}=v.eventRange.instance,b=m.isVisible&&!i[E],C=m.isAbsolute,w="",A="";C&&(o.isRtl?(A=0,w=c.lefts[v.lastCol]-c.lefts[v.firstCol]):(w=0,A=c.rights[v.firstCol]-c.rights[v.lastCol])),u.push(p("div",{className:"fc-daygrid-event-harness"+(C?" fc-daygrid-event-harness-abs":""),key:Kl(v),ref:h?null:this.segHarnessRefs.createRef(Jl(v)),style:{visibility:b?"":"hidden",marginTop:C?"":m.marginTop,top:C?m.absoluteTop:"",left:w,right:A}},Ql(v)?p(Xl,Object.assign({seg:v,isDragging:s,isSelected:E===d,defaultDisplayEventEnd:g},xe(v,r))):p(Zl,Object.assign({seg:v,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:E===d,defaultDisplayEventEnd:g},xe(v,r)))))}return u}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=r?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(p("div",{key:fl(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?p(Ml,Object.assign({seg:a},xe(a,i))):Il(n)))}return p(H,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(d=>i.currentMap[d.key]);if(o.length){let d=this.rootElRef.current,c=new ht(d,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new ht(d,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}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])}}ea.addStateEquality({segHeights:fe});function fh(t,e){if(!t.length)return[];let n=hh(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function hh(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class gh extends he{constructor(){super(...arguments),this.splitBusinessHourSegs=R(ln),this.splitBgEventSegs=R(ph),this.splitFgEventSegs=R(ln),this.splitDateSelectionSegs=R(ln),this.splitEventDrag=R(rs),this.splitEventResize=R(rs),this.rowRefs=new we}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return p(Ke,{unit:"day"},(g,h)=>p(H,null,e.cells.map((u,m)=>p(ea,{ref:this.rowRefs.createRef(m),key:u.length?u[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:u,renderIntro:e.renderRowIntro,businessHourSegs:i[m],eventSelection:e.eventSelection,bgEventSegs:s[m],fgEventSegs:l[m],dateSelectionSegs:a[m],eventDrag:o[m],eventResize:d[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){const 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 ht(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new ht(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},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,i=G(r,1);return{start:r,end:i}}}function ph(t,e){return ln(t.filter(mh),e)}function mh(t){return t.eventRange.def.allDay}class vh extends he{constructor(){super(...arguments),this.elRef=te(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);
1let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return p("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,p("tbody",{role:"presentation"},p(gh,{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){const e=bh(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function bh(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${ec(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Pt(e.currentDate)}"]`)),n}class yh extends xl{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class ta extends he{constructor(){super(...arguments),this.slicer=new yh,this.tableRef=te()}render(){let{props:e,context:n}=this;return p(vh,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}))}}class Eh extends eh{constructor(){super(...arguments),this.buildDayTableModel=R(Sh),this.headerRef=te(),this.tableRef=te()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&p(Cl,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>p(ta,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,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:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function Sh(t,e){let n=new wl(t.renderRange,e);return new Al(n,/year|month|week/.test(t.currentRangeUnit))}class Ch extends el{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return wh({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function wh(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=Ii(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(G(n.end,-1))),a=Math.ceil(Wo(l,i));i=Ii(i,6-a)}return{start:r,end:i}}var Ah
vendor: 3,524 bytes, line 1
1=':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}';
vendor: 24,689 bytes, line 1
1xn(Ah);var xh=ye({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Eh,dateProfileGeneratorClass:Ch},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}}}});class Dh extends Bd{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?gd(e)?["timed","allDay"]:["allDay"]:["timed"]}}const Rh=F({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function na(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return p(Re.Consumer,null,n=>{if(!t.isLabeled)return p("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,l=i.slotLabelFormat==null?Rh:Array.isArray(i.slotLabelFormat)?F(i.slotLabelFormat[0]):F(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return p(Z,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:_h,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},o=>p("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},p(o,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function _h(t){return t.text}class Th extends j{render(){return this.props.slatMetas.map(e=>p("tr",{key:e.key},p(na,Object.assign({},e))))}}const kh=F({week:"short"}),Nh=5;class Mh extends he{constructor(){super(...arguments),this.allDaySplitter=new Dh,this.headerElRef=te(),this.rootElRef=te(),this.scrollerElRef=te(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,a=je(s.start,s.end)===1?ft(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?p(Ol,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:kh},o=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},p(o,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):p("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},p("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return p(Z,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:Ih,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>p("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},p(s,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:s}=this,l=[],a=Cn(i.options);return e&&l.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(l.push({type:"body",key:"all-day",chunk:{content:n}}),l.push({type:"body",key:"all-day-divider",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),p(Ot,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},p(Jr,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,n,r,i,s,l,a){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{context:d,props:c}=this,g=!c.forPrint&&Cn(d.options),h=!c.forPrint&&Nl(d.options),u=[];e&&u.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>p("tr",{role:"presentation"},this.renderHeadAxis("day",v.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(u.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>p("tr",{role:"presentation"},this.renderTableRowAxis(v.rowSyncHeights[0]))},{key:"cols",content:n}]}),u.push({key:"all-day-divider",type:"body",outerContent:p("tr",{role:"presentation",className:"fc-scrollgrid-section"},p("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));let m=d.options.nowIndicator;return u.push({type:"body",key:"body",liquid:!0,expandRows:!!d.options.expandRows,chunks:[{key:"axis",content:v=>p("div",{className:"fc-timegrid-axis-chunk"},p("table",{"aria-hidden":!0,style:{height:v.expandRows?v.clientHeight:""}},v.tableColGroupNode,p("tbody",null,p(Th,{slatMetas:l}))),p("div",{className:"fc-timegrid-now-indicator-container"},p(Ke,{unit:m?"minute":"day"},E=>{let b=m&&a&&a.safeComputeTop(E);return typeof b=="number"?p(ti,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:E}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&u.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:br},{key:"cols",content:br}]}),p(Ot,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:d.viewSpec},p(o,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:u}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=Nh),{dayMaxEvents:e,dayMaxEventRows:n}}}function Ih(t){return t.text}class Oh{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(Ae(n.currentRange,e)){let r=B(e),i=e.valueOf()-r.valueOf();if(i>=ue(n.slotMinTime)&&i<ue(n.slotMaxTime))return this.computeTimeTop(O(i))}return null}computeDateTop(e,n){return n||(n=B(e)),this.computeTimeTop(O(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-ue(r.slotMinTime))/ue(this.slotDuration),l,a;return s=Math.max(0,s),s=Math.min(i,s),l=Math.floor(s),l=Math.min(l,i-1),a=s-l,n.tops[l]+n.getHeight(l)*a}}class jh extends j{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return p("tbody",null,e.slatMetas.map((s,l)=>{let a={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return p("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&p(na,Object.assign({},s)),p(Z,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class Ph extends j{constructor(){super(...arguments),this.rootElRef=te(),this.slatElRefs=new we}render(){let{props:e,context:n}=this;return p("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},p("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,p(jh,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new Oh(new ht(this.rootElRef.current,Hh(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Hh(t,e){return e.map(n=>t[n.key])}function Rt(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function is(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.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class Bh extends j{render(){let{props:e}=this;return p(jl,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>ia(e.hiddenSegs,e),defaultGenerator:Lh,forceTimed:!0},n=>p(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Lh(t){return t.shortText}function Fh(t,e,n){let r=new yl;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=Xd(i),l=Uh(r);return l=Gh(l,1),{segRects:qh(l),hiddenGroups:s}}function Uh(t){const{entriesByLevel:e}=t,n=si((r,i)=>r+":"+i,(r,i)=>{let s=Vh(t,r,i),l=ss(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:l[0]}),a.thickness+l[1]]});return ss(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function ss(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,s=r,l=[];for(;s<i;)l.push(e(n,s)),s+=1;return l.sort(zh),[l.map(Wh),l[0][1]]}function zh(t,e){return e[1]-t[1]}function Wh(t){return t[0]}function Vh(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],l=r[e]+s.thickness,a=r.length,o=e;for(;o<a&&r[o]<l;o+=1);for(;o<a;o+=1){let d=i[o],c,g=vr(d,s.span.start,mr),h=g[0]+g[1],u=h;for(;(c=d[u])&&c.span.start<s.span.end;)u+=1;if(h<u)return{level:o,lateralStart:h,lateralEnd:u}}return null}function Gh(t,e){const n=si((r,i,s)=>qe(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:a}=r,o=a+s,d=a/o,c,g=[];if(!l.length)c=e;else for(let u of l)if(c===void 0){let m=n(u,i,o);c=m[0],g.push(m[1])}else{let m=n(u,c,0);g.push(m[1])}let h=(c-i)*d;return[c-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:g})]});return t.map(r=>n(r,0,0)[1])}function qh(t){let e=[];const n=si((i,s,l)=>qe(i),(i,s,l)=>{let a=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:l,stackForward:0});return e.push(a),a.stackForward=r(i.nextLevelNodes,s+i.thickness,l+1)+1});function r(i,s,l){let a=0;for(let o of i)a=Math.max(n(o,s,l),a);return a}return r(t,0,0),e}function si(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function ls(t,e,n=null,r=0){let i=[];if(n)for(let s=0;s<t.length;s+=1){let l=t[s],a=n.computeDateTop(l.start,e),o=Math.max(a+(r||0),n.computeDateTop(l.end,e));i.push({start:Math.round(a),end:Math.round(o)})}return i}function Yh(t,e,n,r){let i=[],s=[];for(let d=0;d<t.length;d+=1){let c=e[d];c?i.push({index:d,thickness:1,span:c}):s.push(t[d])}let{segRects:l,hiddenGroups:a}=Fh(i,n,r),o=[];for(let d of l)o.push({seg:t[d.index],rect:d});for(let d of s)o.push({seg:d,rect:null});return{segPlacements:o,hiddenGroups:a}}const $h=F({hour:"numeric",minute:"2-digit",meridiem:!1});class ra extends j{render(){return p(ei,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:$h}))}}class Qh extends j{constructor(){super(...arguments),this.sortEventSegs=R(Gr)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return p(ni,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},o=>p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,l,!1,!1,!1)),p("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),p("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),ri(r)&&p(o,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:a}=this;return a.forPrint?ia(e,a):this.renderPositionedFgSegs(e,n,r,i,s,l)}renderPositionedFgSegs(e,n,r,i,s,l){let{eventMaxStack:a,eventShortHeight:o,eventOrderStrict:d,eventMinHeight:c}=this.context.options,{date:g,slatCoords:h,eventSelection:u,todayRange:m,nowDate:v}=this.props,E=r||i||s,b=ls(e,g,h,c),{segPlacements:C,hiddenGroups:w}=Yh(e,b,d,a);return p(H,null,this.renderHiddenGroups(w,e),C.map(A=>{let{seg:T,rect:k}=A,M=T.eventRange.instance.instanceId,N=E||!!(!n[M]&&k),V=rr(k&&k.span),q=!E&&k?this.computeSegHStyle(k):{left:0,right:0},X=!!k&&k.stackForward>0,ae=!!k&&k.span.end-k.span.start<o;return p("div",{className:"fc-timegrid-event-harness"+(X?" fc-timegrid-event-harness-inset":""),key:l||M,style:Object.assign(Object.assign({visibility:N?"":"hidden"},V),q)},p(ra,Object.assign({seg:T,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:M===u,isShort:ae},xe(T,m,v))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:d}=this.props;return p(H,null,e.map(c=>{let g=rr(c.span),h=Zh(c.entries,n);return p(Bh,{key:qs(Pl(h)),hiddenSegs:h,top:g.top,bottom:g.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:d})}))}renderFillSegs(e,n){let{props:r,context:i}=this,l=ls(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,o)=>{let d=e[o];return p("div",{key:fl(d.eventRange),className:"fc-timegrid-bg-harness",style:rr(a)},n==="bg-event"?p(Ml,Object.assign({seg:d},xe(d,r.todayRange,r.nowDate))):Il(n))});return p(H,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>p(ti,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,l=e.levelCoord+e.thickness,a,o;i&&(l=Math.min(1,s+(l-s)*2)),n?(a=1-l,o=s):(a=s,o=1-l);let d={zIndex:e.stackDepth+1,left:a*100+"%",right:o*100+"%"};return i&&!e.stackForward&&(d[n?"marginLeft":"marginRight"]=10*2),d}}function ia(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return p(H,null,t.map(a=>{let o=a.eventRange.instance.instanceId;return p("div",{key:o,style:{visibility:l[o]?"hidden":""}},p(ra,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},xe(a,e,n))))}))}function rr(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function Zh(t,e){return t.map(n=>e[n.index])}class Xh extends j{constructor(){super(...arguments),this.splitFgEventSegs=R(Rt),this.splitBgEventSegs=R(Rt),this.splitBusinessHourSegs=R(Rt),this.splitNowIndicatorSegs=R(Rt),this.splitDateSelectionSegs=R(Rt),this.splitEventDrag=R(is),this.splitEventResize=R(is),this.rootElRef=te(),this.cellElRefs=new we}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),l=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitBusinessHourSegs(e.businessHourSegs,i),o=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),d=this.splitDateSelectionSegs(e.dateSelectionSegs,i),c=this.splitEventDrag(e.eventDrag,i),g=this.splitEventResize(e.eventResize,i);return p("div",{className:"fc-timegrid-cols",ref:this.rootElRef},p("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,p("tbody",{role:"presentation"},p("tr",{role:"row"},e.axis&&p("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},p("div",{className:"fc-timegrid-col-frame"},p("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&p(ti,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,u)=>p(Qh,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:s[u],bgEventSegs:l[u],businessHourSegs:a[u],nowIndicatorSegs:o[u],dateSelectionSegs:d[u],eventDrag:c[u],eventResize:g[u],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new ht(this.rootElRef.current,Kh(this.cellElRefs.currentMap,e.cells),!0,!1))}}function Kh(t,e){return e.map(n=>t[n.key])}class Jh extends he{constructor(){super(...arguments),this.processSlotOptions=R(eg),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return p("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},p(Ph,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),p(Xh,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:l}=this.props,{slatCoords:a}=this.state,{snapDuration:o,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=s.leftToIndex(e),g=a.positions.topToIndex(n);if(c!=null&&g!=null){let h=this.props.cells[c],u=a.positions.tops[g],m=a.positions.getHeight(g),v=(n-u)/m,E=Math.floor(v*d),b=g*d+E,C=this.props.cells[c].date,w=cr(l.slotMinTime,Lo(o,b)),A=r.add(C,w),T=r.add(A,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:A,end:T},allDay:!1},h.extraDateSpan),dayEl:s.els[c],rect:{left:s.lefts[c],right:s.rights[c],top:u,bottom:u+m},layer:0}}return null}}function eg(t,e){let n=e||t,r=Nr(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class tg extends xl{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Oe(e,n[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class ng extends he{constructor(){super(...arguments),this.buildDayRanges=R(rg),this.slicer=new tg,this.timeColsRef=te()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:l}=n.options,a=this.buildDayRanges(i,r,n.dateEnv);return p(Ke,{unit:s?"minute":"day"},(o,d)=>p(Jh,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:o,nowIndicatorSegs:s&&this.slicer.sliceNowDate(o,r,l,n,a),todayRange:d,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function rg(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}const as=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function ig(t,e,n,r,i){let s=new Date(0),l=t,a=O(0),o=n||sg(r),d=[];for(;ue(l)<ue(e);){let c=i.add(s,l),g=Nr(a,o)!==null;d.push({date:c,time:l,key:c.toISOString(),isoTimeStr:tc(c),isLabeled:g}),l=cr(l,r),a=cr(a,r)}return d}function sg(t){let e,n,r;for(e=as.length-1;e>=0;e-=1)if(n=O(as[e]),r=Nr(n,t),r!==null&&r>1)return n;return t}class lg extends Mh{constructor(){super(...arguments),this.buildTimeColsModel=R(ag),this.buildSlatMetas=R(ig)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,l=this.buildTimeColsModel(s,r),a=this.allDaySplitter.splitProps(i),o=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:d}=e,c=!d,g=d,h=e.dayHeaders&&p(Cl,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),u=e.allDaySlot!==!1&&(v=>p(ta,Object.assign({},a.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:v.tableMinWidth,colGroupNode:v.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:v.clientWidth,clientHeight:v.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),m=v=>p(ng,Object.assign({},a.timed,{dayTableModel:l,dateProfile:s,axis:c,slotDuration:e.slotDuration,slatMetas:o,forPrint:i.forPrint,tableColGroupNode:v.tableColGroupNode,tableMinWidth:v.tableMinWidth,clientWidth:v.clientWidth,clientHeight:v.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:v.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(h,u,m,l.colCnt,d,o,this.state.slatCoords):this.renderSimpleLayout(h,u,m)}}function ag(t,e){let n=new wl(t.renderRange,e);return new Al(n,!1)}var og='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}
1.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';xn(og);const cg={allDaySlot:Boolean};var dg=ye({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:cg,views:{timeGrid:{component:lg,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class ug extends j{constructor(){super(...arguments),this.state={textId:Ne()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:s,dayDate:l,todayRange:a}=this.props,{textId:o}=this.state,d=$r(l,a),c=r.listDayFormat?n.format(l,r.listDayFormat):"",g=r.listDaySideFormat?n.format(l,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:i,textId:o,text:c,sideText:g,navLinkAttrs:ft(this.context,l),sideNavLinkAttrs:ft(this.context,l,"day",!1)},d);return p(Z,{elTag:"tr",elClasses:["fc-list-day",...kn(d,e)],elAttrs:{"data-date":Pt(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:fg,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},u=>p("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},p(u,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function fg(t){return p(H,null,t.text&&p("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&p("a",Object.assign({"aria-hidden":!0,
vendor: 34,466 bytes, line 1
1className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const hg=F({hour:"numeric",minute:"2-digit",meridiem:"short"});class gg extends j{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=r.eventTimeFormat||hg;return p(Nn,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>pg(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(d,c)=>p(H,null,mg(i,o,n,s,a),p("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},p("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),p(d,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${a}`}})))}}function pg(t,e){let n=qr(t,e);return p("a",Object.assign({},n),t.eventRange.def.title)}function mg(t,e,n,r,i){let{options:s}=n;if(s.displayEventTime!==!1){let l=t.eventRange.def,a=t.eventRange.instance,o=!1,d;if(l.allDay?o=!0:Uc(t.eventRange.range)?t.isStart?d=Nt(t,e,n,null,null,a.range.start,t.end):t.isEnd?d=Nt(t,e,n,null,null,t.start,a.range.end):o=!0:d=Nt(t,e,n),o){let c={text:n.options.allDayText,view:n.viewApi};return p(Z,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:c,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:vg,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return p("td",{className:"fc-list-event-time"},d)}return null}function vg(t){return t.text}class bg extends he{constructor(){super(...arguments),this.computeDateVars=R(Eg),this.eventStoreToSegs=R(this._eventStoreToSegs),this.state={timeHeaderId:Ne(),eventHeaderId:Ne(),dateHeaderIdRoot:Ne()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return p(Ot,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},p(Tl,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return p(Z,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:yg,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},i=>p(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:i}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:a}=this.state,o=Sg(e);return p(Ke,{unit:"day"},(d,c)=>{let g=[];for(let h=0;h<o.length;h+=1){let u=o[h];if(u){let m=Pt(n[h]),v=a+"-"+m;g.push(p(ug,{key:m,cellId:v,dayDate:n[h],todayRange:c})),u=Gr(u,i.eventOrder);for(let E of u)g.push(p(gg,Object.assign({key:m+":"+E.eventRange.instance.instanceId,seg:E,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:v},xe(E,c,d))))}}return p("table",{className:"fc-list-table "+r.getClass("table")},p("thead",null,p("tr",null,p("th",{scope:"col",id:s},i.timeHint),p("th",{scope:"col","aria-hidden":!0}),p("th",{scope:"col",id:l},i.eventHint))),p("tbody",null,g))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(gr(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(e,n){let r=[];for(let i of e)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(e,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,s=e.range,l=e.def.allDay,a,o,d,c=[];for(a=0;a<n.length;a+=1)if(o=Oe(s,n[a]),o&&(d={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf(),dayIndex:a},c.push(d),!d.isEnd&&!l&&a+1<n.length&&s.end<r.add(n[a+1].start,i))){d.end=s.end,d.isEnd=!0;break}return c}}function yg(t){return t.text}function Eg(t){let e=B(t.renderRange.start),n=t.renderRange.end,r=[],i=[];for(;e<n;)r.push(e),i.push({start:e,end:G(e,1)}),e=G(e,1);return{dayDates:r,dayRanges:i}}function Sg(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 Cg=':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}';xn(Cg);const wg={listDayFormat:os,listDaySideFormat:os,noEventsClassNames:y,noEventsContent:y,noEventsDidMount:y,noEventsWillUnmount:y};function os(t){return t===!1?null:F(t)}var Ag=ye({name:"@fullcalendar/list",optionRefiners:wg,views:{list:{component:bg,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"}}}});Kr.touchMouseIgnoreWait=500;let Er=0,wn=0,Sr=!1;class sa{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&xg(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Dg()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new Tn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Rg()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),_g()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Q(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Sr=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Q(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Er||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Sr=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,l=0,a=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:a}}}function xg(t){return t.button===0&&!t.ctrlKey}function Dg(){Er+=1,setTimeout(()=>{Er-=1},Kr.touchMouseIgnoreWait)}function Rg(){wn+=1,wn===1&&window.addEventListener("touchmove",la,{passive:!1})}function _g(){wn-=1,wn||window.removeEventListener("touchmove",la,{passive:!1})}function la(t){Sr&&t.preventDefault()}class Tg{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",_t(r,{left:i.left,top:i.top}),Ao(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(_r(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&_t(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),_t(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class aa extends Zr{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class oa extends aa{constructor(e,n){super(new Qd(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Yd(this.scrollController.el)}}class kg extends aa{constructor(e){super(new Zd,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const cs=typeof performance=="function"?performance.now:Date.now;class Ng{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=cs();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,i=n-window.scrollY,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(cs()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,d=a.right-e,c=n-a.top,g=a.bottom-n;o>=0&&d>=0&&c>=0&&g>=0&&(c<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"top",distance:c}),g<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>g)&&(i={scrollCache:l,name:"bottom",distance:g}),o<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:l,name:"left",distance:o}),d<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"right",distance:d}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new kg(!1):new oa(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class Bt extends Jd{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,xo(document.body),Ro(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=i;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,Do(document.body),_o(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new sa(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new Tg,this.autoScroller=new Ng}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Mg{constructor(e){this.el=e,this.origRect=Qr(e),this.scrollCaches=bl(e).map(n=>new oa(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!Ig(i.getEventTarget())&&!Od(r,i.clientRect))return!1;return!0}}function Ig(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Mn{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Tn}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Qr(i),r=jd(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=ml(s,l.rect);a&&(r=Pd(a))}this.coordAdjust=Hd(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!In(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=De(this.droppableStore,e=>(e.component.prepareHits(),new Mg(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let a=r[l].component,o=i[l];if(o&&o.isWithinClipping(e,n)){let d=o.computeLeft(),c=o.computeTop(),g=e-d,h=n-c,{origRect:u}=o,m=u.right-u.left,v=u.bottom-u.top;if(g>=0&&g<m&&h>=0&&h<v){let E=a.queryHit(g,h,m,v);E&&Rn(E.dateProfile.activeRange,E.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(g+d-window.scrollX,h+c-window.scrollY)))&&(!s||E.layer>s.layer)&&(E.componentId=l,E.context=a.context,E.rect.left+=d,E.rect.right+=d,E.rect.top+=c,E.rect.bottom+=c,s=E)}}}return s}}function In(t,e){return!t&&!e?!0:!!t!=!!e?!1:wd(t.dateSpan,e.dateSpan)}function ca(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Og(t,e.dateEnv)),n}function Og(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class jg extends pt{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&In(l,a)){let{context:o}=i,d=Object.assign(Object.assign({},ca(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",d)}}},this.dragging=new Bt(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Mn(this.dragging,Yr(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Pg extends pt{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:d}=a.context,c=d.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!c),o.delay=l.isTouch?Hg(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,d=null,c=!1;if(l){let g=this.hitDragging.initialHit;l.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,l)||(d=Bg(g,l,o.pluginHooks.dateSelectionTransformers)),(!d||!su(d,l.dateProfile,o))&&(c=!0,d=null)}d?o.dispatch({type:"SELECT_DATES",selection:d}):a||o.dispatch({type:"UNSELECT_DATES"}),c?Tr():kr(),a||(this.dragSelection=d)},this.handlePointerUp=l=>{this.dragSelection&&(cl(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new Bt(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Mn(this.dragging,Yr(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Hg(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Bg(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(Io);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class Lt extends pt{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:d}=this,{mirror:c}=d,{options:g}=o.context,h=o.context;this.subjectEl=l.subjectEl;let u=this.subjectSeg=ut(l.subjectEl),v=(this.eventRange=u.eventRange).instance.instanceId;this.relevantEvents=Ur(h.getCurrentData().eventStore,v),d.minDistance=l.isTouch?0:g.eventDragMinDistance,d.delay=l.isTouch&&v!==o.props.eventSelection?Fg(o):null,g.fixedMirrorParent?c.parentNode=g.fixedMirrorParent:c.parentNode=Q(a,".fc"),c.revertDuration=g.dragRevertDuration;let E=o.isValidSegDownEl(a)&&!Q(a,".fc-event-resizer");d.setIgnoreMove(!E),this.isDragging=E&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,d=o.instance.instanceId;l.isTouch?d!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:d}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new U(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,d=this.hitDragging.initialHit,c=this.component.context,g=null,h=null,u=null,m=!1,v={affectedEvents:o,mutatedEvents:le(),isEvent:!0};if(l){g=l.context;let E=g.options;c===g||E.editable&&E.droppable?(h=Lg(d,l,this.eventRange.instance.range.start,g.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(u=Vr(o,g.getCurrentData().eventUiBases,h,g),v.mutatedEvents=u,Dl(v,l.dateProfile,g)||(m=!0,h=null,u=null,v.mutatedEvents=le()))):g=null}this.displayDrag(g,v),m?Tr():kr(),a||(c===g&&In(d,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=h,this.mutatedRelevantEvents=u)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:d,validMutation:c}=this,g=this.eventRange.def,h=this.eventRange.instance,u=new U(a,g,h),m=this.relevantEvents,v=this.mutatedRelevantEvents,{finalHit:E}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:u,jsEvent:l.origEvent,view:o}),c){if(d===a){let b=new U(a,v.defs[g.defId],h?v.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:v});let C={oldEvent:u,event:b,relatedEvents:Ge(v,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:m})}},w={};for(let A of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(w,A(c,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},C),w),{el:l.subjectEl,delta:c.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",C)}else if(d){let b={event:u,relatedEvents:Ge(m,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:m})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:m}),a.emitter.trigger("eventRemove",b);let C=v.defs[g.defId],w=v.instances[h.instanceId],A=new U(d,C,w);d.dispatch({type:"MERGE_EVENTS",eventStore:v});let T={event:A,relatedEvents:Ge(v,d,w),revert(){d.dispatch({type:"REMOVE_EVENTS",eventStore:v})}};d.emitter.trigger("eventAdd",T),l.isTouch&&d.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),d.emitter.trigger("drop",Object.assign(Object.assign({},ca(E.dateSpan,d)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:E.context.viewApi})),d.emitter.trigger("eventReceive",Object.assign(Object.assign({},T),{draggedEl:l.subjectEl,view:E.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new Bt(e.el);i.pointer.selector=Lt.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Mn(this.dragging,pr);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:le(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}Lt.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Lg(t,e,n,r){let i=t.dateSpan,s=e.dateSpan,l=i.range.start,a=s.range.start,o={};i.allDay!==s.allDay&&(o.allDay=s.allDay,o.hasEnd=e.context.options.allDayMaintainDuration,s.allDay?l=B(n):l=n);let d=lt(l,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);d.milliseconds&&(o.allDay=!1);let c={datesDelta:d,standardProps:o};for(let g of r)g(c,t,e);return c}function Fg(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Ug extends pt{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=ut(a),d=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==d.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=Ur(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=ut(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new U(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,d=this.relevantEvents,c=this.hitDragging.initialHit,g=this.eventRange.instance,h=null,u=null,m=!1,v={affectedEvents:d,mutatedEvents:le(),isEvent:!0};s&&(s.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,s)||(h=zg(c,s,a.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),h&&(u=Vr(d,o.getCurrentData().eventUiBases,h,o),v.mutatedEvents=u,Dl(v,s.dateProfile,o)||(m=!0,h=null,u=null,v.mutatedEvents=null)),u?o.dispatch({type:"SET_EVENT_RESIZE",state:v}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),m?Tr():kr(),l||(h&&In(c,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=u)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,d=new U(l,a,o),c=this.relevantEvents,g=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:d,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new U(l,g.defs[a.defId],o?g.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:g});let u={oldEvent:d,event:h,relatedEvents:Ge(g,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:c})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},u),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||O(0),endDelta:this.validMutation.endDelta||O(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",u)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Bt(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Mn(this.dragging,Yr(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Q(e.subjectEl,".fc-event")}}function zg(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=lt(s,l,i,t.largeUnit);
1if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}class Wg{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Us(r.origEvent);this.matchesCancel=!!Q(s,i),this.matchesEvent=!!Q(s,Lt.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new sa(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Vg={fixedMirrorParent:y},Gg={dateClick:y,eventDragStart:y,eventDragStop:y,eventDrop:y,eventResizeStart:y,eventResizeStop:y,eventResize:y,drop:y,eventReceive:y,eventLeave:y};Kr.dataAttrPrefix="";var qg=ye({name:"@fullcalendar/interaction",componentInteractions:[jg,Pg,Lt,Ug],calendarInteractions:[Wg],elementDraggingImpl:Bt,optionRefiners:Vg,listenerRefiners:Gg});const Yg=({events:t,currentView:e,locale:n,onEventClick:r,onDateClick:i,onSelect:s,onEventDrop:l,onEventResize:a,onDatesSet:o,calendarRef:d})=>{const c=n==="de"?"de":n==="tr"?"tr":n==="ar"?"ar":"en";return f.jsx("div",{className:"calendar-v2-wrapper",children:f.jsx(ql,{ref:d,plugins:[xh,dg,Ag,qg],initialView:e,editable:!0,selectable:!0,selectMirror:!0,events:t,locale:c,firstDay:1,slotMinTime:"07:00:00",slotMaxTime:"21:00:00",slotDuration:"00:15:00",allDaySlot:!1,nowIndicator:!0,height:"calc(100vh - 260px)",headerToolbar:!1,dayMaxEvents:3,eventClick:r,dateClick:i,select:s,eventDrop:l,eventResize:a,datesSet:o,eventTimeFormat:{hour:"2-digit",minute:"2-digit",hour12:!1},slotLabelFormat:{hour:"2-digit",minute:"2-digit",hour12:!1},eventContent:g=>{const{extendedProps:h}=g.event,u=g.timeText,m=g.event.title,v=(h==null?void 0:h.doctorName)||"";return e==="listWeek"?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium",children:m}),v&&f.jsxs("span",{className:"text-xs text-muted-foreground",children:["| ",v]})]}):e==="dayGridMonth"?f.jsx("div",{className:"flex items-center gap-1 text-xs overflow-hidden",children:f.jsxs("span",{className:"font-medium truncate",children:[u," ",m]})}):f.jsxs("div",{className:"flex flex-col gap-0.5 text-xs overflow-hidden p-0.5",children:[f.jsx("span",{className:"font-semibold truncate",children:m}),v&&f.jsx("span",{className:"opacity-80 truncate",children:v})]})}})})},$g=[{key:"all",labelKey:"All",color:"bg-gray-100 text-gray-800 hover:bg-gray-200"},{key:"scheduled",labelKey:"Scheduled",color:"bg-blue-100 text-blue-800 hover:bg-blue-200"},{key:"confirmed",labelKey:"Confirmed",color:"bg-green-100 text-green-800 hover:bg-green-200"},{key:"in-progress",labelKey:"In Progress",color:"bg-amber-100 text-amber-800 hover:bg-amber-200"},{key:"completed",labelKey:"Completed",color:"bg-gray-100 text-gray-600 hover:bg-gray-200"},{key:"cancelled",labelKey:"Cancelled",color:"bg-red-100 text-red-800 hover:bg-red-200"},{key:"no-show",labelKey:"No-show",color:"bg-orange-100 text-orange-800 hover:bg-orange-200"}],Qg=[{key:"timeGridDay",labelKey:"Day",icon:wr},{key:"timeGridWeek",labelKey:"Week",icon:Ia},{key:"dayGridMonth",labelKey:"Month",icon:Oa},{key:"listWeek",labelKey:"Agenda",icon:ja}],Zg=({currentView:t,onViewChange:e,currentTitle:n,onPrev:r,onNext:i,onToday:s,colorBy:l,onColorByChange:a,statusFilter:o,onStatusFilterChange:d,selectedProviderId:c,onProviderChange:g,onNewAppointment:h})=>{const{t:u}=gt(),{vertical:m}=hs(),[v,E]=S.useState([]);return S.useEffect(()=>{an.get("/appointments/resources").then(b=>{var w;const C=((w=b.data)==null?void 0:w.data)||[];E(C)}).catch(b=>{console.error("Failed to fetch calendar resources:",b)})},[]),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(ee,{variant:"outline",size:"sm",onClick:r,children:f.jsx(Na,{className:"h-4 w-4"})}),f.jsx(ee,{variant:"outline",size:"sm",onClick:s,children:u("Today")}),f.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:f.jsx(ps,{className:"h-4 w-4"})}),f.jsx("h2",{className:"text-lg font-semibold ml-2",children:n}),f.jsxs(ee,{size:"sm",onClick:h,className:"ml-3",children:[f.jsx(cn,{className:"h-4 w-4 mr-1"}),u("New Appointment")]})]}),f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[f.jsxs(Ue,{value:c,onValueChange:g,children:[f.jsx(ze,{className:"w-[180px] h-9 text-sm",children:f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx(Ma,{className:"h-3.5 w-3.5 text-muted-foreground"}),f.jsx(We,{placeholder:u(`vertical.allStaff.${m}`)})]})}),f.jsxs(Ve,{children:[f.jsx(z,{value:"all",children:f.jsx("span",{className:"flex items-center gap-2",children:u(`vertical.allStaff.${m}`)})}),v.map(b=>f.jsx(z,{value:b.id,children:f.jsxs("span",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"inline-block w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:b.color}}),b.title]})},b.id))]})]}),f.jsxs(Ue,{value:l,onValueChange:b=>a(b),children:[f.jsx(ze,{className:"w-[140px] h-9 text-sm",children:f.jsx(We,{placeholder:u("Color by")})}),f.jsxs(Ve,{children:[f.jsx(z,{value:"status",children:u("Status")}),f.jsx(z,{value:"service",children:u("Service")}),f.jsx(z,{value:"doctor",children:u(`vertical.staffSingular.${m}`)})]})]}),f.jsx("div",{className:"flex border rounded-lg overflow-hidden",children:Qg.map(b=>{const C=b.icon,w=t===b.key;return f.jsxs("button",{onClick:()=>e(b.key),className:`
2                    flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium transition-colors
3                    ${w?"bg-primary text-primary-foreground":"bg-background text-muted-foreground hover:bg-accent hover:text-accent-foreground"}
4                  `,title:u(b.labelKey),children:[f.jsx(C,{className:"h-4 w-4"}),f.jsx("span",{className:"hidden md:inline",children:u(b.labelKey)})]},b.key)})})]})]}),f.jsx("div",{className:"flex flex-wrap gap-1.5",children:$g.map(b=>{const C=o===b.key;return f.jsx(Cr,{variant:"outline",className:`
5                cursor-pointer px-3 py-1 text-xs font-medium transition-all select-none
6                ${C?b.color+" ring-2 ring-offset-1 ring-primary/30":"hover:bg-accent"}
7              `,onClick:()=>d(b.key),children:u(b.labelKey)},b.key)})})]})},Qe={scheduled:"#3B82F6",confirmed:"#10B981","in-progress":"#F59E0B",completed:"#6B7280",cancelled:"#EF4444","no-show":"#F97316"},ds=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#14B8A6","#F97316","#6366F1","#06B6D4","#84CC16","#E11D48"],us=["#6366F1","#EC4899","#14B8A6","#F97316","#3B82F6","#10B981","#8B5CF6","#EF4444","#06B6D4","#84CC16","#E11D48","#F59E0B"],Xt=new Map,Kt=ne
7w Map;function Xg(t){var e;return typeof t.doctor_id=="string"?t.doctor_id:((e=t.doctor_id)==null?void 0:e._id)||"unknown"}function Kg(t,e="status"){switch(e){case"status":return Qe[t.status]||"#6B7280";case"doctor":{const n=Xg(t);return Xt.has(n)||Xt.set(n,ds[Xt.size%ds.length]),Xt.get(n)}case"service":{const n=t.type||"other";return Kt.has(n)||Kt.set(n,us[Kt.size%us.length]),Kt.get(n)}default:return Qe[t.status]||"#6B7280"}}function Jg(t){return typeof t.patient_id=="object"&&t.patient_id?`${t.patient_id.first_name||""} ${t.patient_id.last_name||""}`.trim():"-"}function ep(t){return typeof t.doctor_id=="object"&&t.doctor_id?`${t.doctor_id.first_name||""} ${t.doctor_id.last_name||""}`.trim():"-"}function tp(t){return new Date(t).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})}function np(t){return new Date(t).toLocaleDateString("de-DE",{weekday:"short",day:"2-digit",month:"2-digit",year:"numeric"})}const rp=["scheduled","confirmed","in-progress","completed","cancelled","no-show"],ip={scheduled:"Scheduled",confirmed:"Confirmed","in-progress":"In Progress",completed:"Completed",cancelled:"Cancelled","no-show":"No-show"},sp=({appointment:t,anchorPosition:e,onClose:n,onEdit:r,onStatusChange:i,onDelete:s})=>{const{t:l}=gt(),a=Ar();if(!t||!e)return null;const o=Jg(t),d=ep(t),c=Qe[t.status]||"#6B7280",g={position:"fixed",top:Math.min(e.top,window.innerHeight-350),left:Math.min(e.left,window.innerWidth-320),zIndex:1400};return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"fixed inset-0 z-[1399]",onClick:n,onKeyDown:h=>h.key==="Escape"&&n()}),f.jsxs("div",{style:g,className:"w-[300px] rounded-lg border bg-popover text-popover-foreground shadow-lg animate-in fade-in-0 zoom-in-95",children:[f.jsxs("div",{className:"flex items-center justify-between p-3 rounded-t-lg",style:{backgroundColor:c+"15"},children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:c}}),f.jsx("span",{className:"font-semibold text-sm",children:o})]}),f.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-black/10 transition-colors",children:f.jsx(on,{className:"h-4 w-4"})})]}),f.jsxs("div",{className:"p-3 space-y-3",children:[f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx(wr,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsxs("span",{children:[np(t.appointment_date)," ",tp(t.appointment_date)," ",f.jsxs("span",{className:"text-muted-foreground",children:["(",t.duration||30," min)"]})]})]}),f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx(ms,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsx("span",{children:d})]}),f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx(vs,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsxs("span",{children:[l(a.entitySingular),": ",o]})]}),f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx(bs,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsx(Cr,{variant:"secondary",className:"text-xs capitalize",children:t.type})]}),t.notes&&f.jsx("p",{className:"text-xs text-muted-foreground border-t pt-2",children:t.notes}),f.jsxs("div",{className:"border-t pt-3",children:[f.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:l("Change status")}),f.jsxs(Ue,{value:t.status,onValueChange:h=>i(t._id,h),children:[f.jsx(ze,{className:"h-8 text-sm",children:f.jsx(We,{})}),f.jsx(Ve,{className:"z-[1500]",children:rp.map(h=>f.jsx(z,{value:h,children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:Qe[h]}}),l(ip[h])]})},h))})]})]}),f.jsxs("div",{className:"flex items-center gap-2 border-t pt-3",children:[f.jsxs(ee,{variant:"outline",size:"sm",className:"flex-1",onClick:()=>{r(t),n()},children:[f.jsx(xr,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit")]}),f.jsx(ee,{variant:"destructive",size:"sm",onClick:()=>{s(t._id),n()},children:f.jsx(Pa,{className:"h-3.5 w-3.5"})})]})]})]})]})};function lp(){const[t,e]=S.useState([]),[n,r]=S.useState(!1),[i,s]=S.useState(!1),l=S.useCallback(async(o,d,c,g)=>{var h;if(!o){const u={hasConflict:!1,conflicts:[]};return e([]),r(!1),u}s(!0);try{const u={doctor_id:o,start:d.toISOString(),end:c.toISOString()};g&&(u.exclude_id=g);const v=((h=(await an.get("/appointments/conflicts",{params:u})).data)==null?void 0:h.data)||{hasConflict:!1,conflicts:[]};return e(v.conflicts||[]),r(v.hasConflict||!1),{hasConflict:v.hasConflict||!1,conflicts:v.conflicts||[]}}catch(u){return console.error("Conflict check failed:",u),e([]),r(!1),{hasConflict:!1,conflicts:[]}}finally{s(!1)}},[]),a=S.useCallback(()=>{e([]),r(!1)},[]);
7return{checkConflicts:l,conflicts:t,hasConflict:n,checking:i,clearConflicts:a}}const ap=({info:t,anchorPosition:e,onClose:n,onCreated:r,onOpenFullModal:i})=>{const{t:s,i18n:l}=gt(),a=Ar(),{vertical:o}=hs(),d=Fa(),c=S.useRef(),g=S.useRef(null),[h,u]=S.useState(null),{checkConflicts:m,conflicts:v,hasConflict:E,clearConflicts:b}=lp(),[C,w]=S.useState(""),[A,T]=S.useState([]),[k,M]=S.useState(null),[N,V]=S.useState(!1),[q,X]=S.useState(!1),[ae,oe]=S.useState({first_name:"",last_name:"",phone:""}),[ce,ge]=S.useState(!1),[pe,On]=S.useState([]),[Y,Ft]=S.useState(""),[re,Ut]=S.useState("30"),[de,zt]=S.useState("consultation"),[K,Je]=S.useState("none"),[et,mt]=S.useState("4"),[ie,vt]=S.useState(!1);if(S.useEffect(()=>{t&&La({limit:50}).then(D=>{var L;const P=((L=D==null?void 0:D.data)==null?void 0:L.items)||[];On(P),P.length>0&&Ft(P[0]._id)}).catch(console.error)},[t]),S.useEffect(()=>{if(!C||C.length<2){T([]),V(!1);return}return c.current&&clearTimeout(c.current),c.current=setTimeout(async()=>{var D;try{const P=await Ha({search:C,limit:5}),L=((D=P==null?void 0:P.data)==null?void 0:D.patients)||[];T(L),V(!0)}catch{T([])}},300),()=>{c.current&&clearTimeout(c.current)}},[C]),S.useEffect(()=>{if(!t||!Y){b();return}const D=`${t.date}T${t.startTime}:00`,P=new Date(D),L=new Date(P.getTime()+parseInt(re)*6e4);isNaN(P.getTime())||isNaN(L.getTime())||m(Y,P,L)},[t,Y,re,m,b]),S.useEffect(()=>{t||(w(""),M(null),T([]),V(!1),Ut("30"),zt("consultation"),Je("none"),mt("4"),vt(!1),X(!1),oe({first_name:"",last_name:"",phone:""}),b())},[t,b]),S.useLayoutEffect(()=>{if(!g.current||!e)return;const D=g.current,P=D.offsetHeight,L=D.offsetWidth,Ee=8;let bt=e.top,yt=e.left;bt+P+Ee>window.innerHeight&&(bt=Math.max(Ee,window.innerHeight-P-Ee)),yt+L+Ee>window.innerWidth&&(yt=Math.max(Ee,window.innerWidth-L-Ee)),u({top:bt,left:yt})},[e,q,K,E]),!t||!e)return null;const jn=async()=>{if(!ae.first_name.trim()||!ae.last_name.trim()){W({title:s("First name and last name are required"),variant:"destructive"});return}ge(!0);try{const D=await Ba(ae);M({_id:D._id,first_name:D.first_name,last_name:D.last_name}),X(!1),oe({first_name:"",last_name:"",phone:""}),W({title:`${D.first_name} ${D.last_name} ${s("created")}`})}catch(D){W({title:s("Error"),description:Ua(D),variant:"destructive"})}finally{ge(!1)}},me=async()=>{if(!k||pe.length>0&&!Y){W({title:s("Required fields missing"),description:s("Please select a patient and doctor."),variant:"destructive"});return}vt(!0);try{const D=`${t.date}T${t.startTime}:00`,P=new Date(D).toISOString();let L;K!=="none"&&(L=`FREQ=${{daily:"DAILY",weekly:"WEEKLY",monthly:"MONTHLY"}[K]};COUNT=${parseInt(et)}`),await d.mutateAsync({patient_id:k._id,...Y?{doctor_id:Y}:{},appointment_date:P,duration:parseInt(re),type:de,status:"scheduled",...L?{recurrence_rule:L}:{}}),W({title:s("Appointment created"),description:s("The appointment has been created successfully.")}),r(),n()}catch(D){W({title:s("Error"),description:D.message||s("Appointment could not be created."),variant:"destructive"})}finally{vt(!1)}},He=h??{top:Math.min(e.top,window.innerHeight-400),left:Math.min(e.left,window.innerWidth-320)},tt={position:"fixed",top:He.top,left:He.left,zIndex:1400};return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"fixed inset-0 z-[1399]",onClick:n}),f.jsxs("div",{ref:g,style:tt,className:"w-[300px] rounded-lg border bg-popover text-popover-foreground shadow-lg animate-in fade-in-0 zoom-in-95",children:[f.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[f.jsx("div",{className:"flex items-center gap-2",children:q?f.jsxs(f.Fragment,{children:[f.jsx("button",{onClick:()=>X(!1),className:"p-0.5 rounded hover:bg-accent transition-colors",children:f.jsx(Ca,{className:"h-4 w-4"})}),f.jsx(ai,{className:"h-4 w-4 text-green-600"}),f.jsx("span",{className:"font-semibold text-sm",children:s(a.newEntity)})]}):f.jsxs(f.Fragment,{children:[f.jsx(cn,{className:"h-4 w-4 text-primary"}),f.jsx("span",{className:"font-semibold text-sm",children:s("New Appointment")})]})}),f.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-accent transition-colors",children:f.jsx(on,{className:"h-4 w-4"})})]}),f.jsx("div",{className:"p-3 space-y-3",children:q?f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[f.jsxs("div",{className:"space-y-1",children:[f.jsxs(Ce,{className:"text-xs",children:[s("First Name")," *"]}),f.jsx(Dt,{className:"h-9 text-sm",value:ae.first_name,onChange:D=>oe(P=>({...P,first_name:D.target.value})),placeholder:s("First Name"),autoFocus:!0})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsxs(Ce,{className:"text-xs",children:[s("Last Name")," *"]}),f.jsx(Dt,{className:"h-9 text-sm",value:ae.last_name,onChange:D=>oe(P=>({...P,last_name:D.target.value})),placeholder:s("Last Name")}
7)]})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsxs(Ce,{className:"text-xs text-muted-foreground",children:[s("Phone")," (",s("optional"),")"]}),f.jsx(Dt,{className:"h-9 text-sm",value:ae.phone,onChange:D=>oe(P=>({...P,phone:D.target.value})),placeholder:"+49 123 456 7890",type:"tel"})]}),f.jsxs("div",{className:"flex gap-2 pt-1",children:[f.jsx(ee,{size:"sm",variant:"outline",className:"flex-1",onClick:()=>X(!1),disabled:ce,children:s("Back")}),f.jsx(ee,{size:"sm",className:"flex-1",onClick:jn,disabled:ce||!ae.first_name.trim()||!ae.last_name.trim(),children:ce?f.jsxs(f.Fragment,{children:[f.jsx(wa,{className:"h-3.5 w-3.5 mr-1 animate-spin"}),s("Creating...")]}):f.jsxs(f.Fragment,{children:[f.jsx(ai,{className:"h-3.5 w-3.5 mr-1"}),s("Create & Select")]})})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"text-sm text-muted-foreground",children:[new Date(`${t.date}T${t.startTime}`).toLocaleDateString(l.language,{weekday:"short",day:"2-digit",month:"2-digit",year:"numeric"})," ",t.startTime,t.endTime&&` - ${t.endTime}`]}),f.jsxs("div",{className:"space-y-1 relative",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Ce,{className:"text-xs",children:s(a.entitySingular)}),f.jsxs("button",{type:"button",onClick:()=>X(!0),className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-700 hover:underline transition-colors",children:[f.jsx(cn,{className:"h-3 w-3"}),s("New")]})]}),k?f.jsxs("div",{className:"flex items-center justify-between border rounded-md px-3 py-2 text-sm",children:[f.jsxs("span",{children:[k.first_name," ",k.last_name]}),f.jsx("button",{onClick:()=>{M(null),w("")},className:"text-muted-foreground hover:text-foreground",children:f.jsx(on,{className:"h-3 w-3"})})]}):f.jsxs("div",{className:"relative",children:[f.jsx(za,{className:"absolute left-2.5 top-2.5 h-3.5 w-3.5 text-muted-foreground"}),f.jsx(Dt,{className:"pl-8 h-9 text-sm",placeholder:s("Search by name..."),value:C,onChange:D=>w(D.target.value),autoFocus:!0}),N&&A.length>0&&f.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 border rounded-md bg-popover shadow-md z-[1500] max-h-[150px] overflow-auto",children:A.map(D=>f.jsxs("button",{className:"w-full text-left px-3 py-2 text-sm hover:bg-accent transition-colors",onClick:()=>{M(D),V(!1),w("")},children:[D.first_name," ",D.last_name]},D._id))}),N&&A.length===0&&C.length>=2&&f.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 border rounded-md bg-popover shadow-md z-[1500] p-2 text-xs text-muted-foreground",children:s("No results")})]})]}),pe.length>1&&f.jsxs("div",{className:"space-y-1",children:[f.jsx(Ce,{className:"text-xs",children:s(`vertical.staffSingular.${o}`)}),f.jsxs(Ue,{value:Y,onValueChange:Ft,children:[f.jsx(ze,{className:"h-9 text-sm",children:f.jsx(We,{placeholder:s(`vertical.selectStaff.${o}`)})}),f.jsx(Ve,{className:"z-[1500]",children:pe.map(D=>f.jsxs(z,{value:D._id,children:[D.first_name," ",D.last_name]},D._id))})]})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsx(Ce,{className:"text-xs",children:s("Type")}),f.jsxs(Ue,{value:de,onValueChange:zt,children:[f.jsx(ze,{className:"h-9 text-sm",children:f.jsx(We,{})}),f.jsxs(Ve,{className:"z-[1500]",children:[f.jsx(z,{value:"consultation",children:s("Consultation")}),f.jsx(z,{value:"follow-up",children:s("Follow-up")}),f.jsx(z,{value:"check-up",children:s("Check-up")}),f.jsx(z,{value:"procedure",children:s("Procedure")}),f.jsx(z,{value:"emergency",children:s("Emergency")}),f.jsx(z,{value:"other",children:s("Other")})]})]})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsx(Ce,{className:"text-xs",children:s("Duration")}),f.jsxs(Ue,{value:re,onValueChange:Ut,children:[f.jsx(ze,{className:"h-9 text-sm",children:f.jsx(We,{})}),f.jsxs(Ve,{className:"z-[1500]",children:[f.jsx(z,{value:"15",children:s("15 minutes")}),f.jsx(z,{value:"30",children:s("30 minutes")}),f.jsx(z,{value:"45",children:s("45 minutes")}),f.jsx(z,{value:"60",children:s("60 minutes")}),f.jsx(z,{value:"90",children:s("90 minutes")}),f.jsx(z,{value:"120",children:s("120 minutes")})]})]})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsx(Ce,{className:"text-xs",children:s("Repeat")}),f.jsxs(Ue,{value:K,onValueChange:Je,children:[f.jsx(ze,{className:"h-9 text-sm",children:f.jsx(We,{})}),f.jsxs(Ve,{className:"z-[1500]",children:[f.jsx(z,{value:"none",children:s("No repeat")}),f.jsx(z,{value:"daily",children:s("Daily")}),f.jsx(z,{value:"weekly",children:s("Weekly")}),f.jsx(z,{value:"monthly",children:s("Monthly")})]})]})]}),K!=="none"&&f.jsxs("div",{className:"space-y-1",children:[f.jsx(Ce,{className:"text-xs",children:s("Repeat count")}),f.jsx(Dt,{type:"number",className:"h-9 text-sm",value:et,onChange:D=>mt(D.target.value),min:2,max:52}),f.jsxs("p",{className:"text-xs text-muted-foreground",children:[s("Repeats")," ",s(K==="daily"?"Daily":K==="weekly"?"Weekly":"Monthly"),", ",et,"x"]})]}),E&&v.length>0&&f.jsxs("div",{className:"rounded-md border border-amber-300 bg-amber-50 dark:bg-amber-950/30 dark:border-amber-700 p-2 space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-amber-700 dark:text-amber-400",children:[f.jsx(Aa,{className:"h-3.5 w-3.5 flex-shrink-0"}),f.jsx("span",{className:"text-xs font-semibold",children:s("Appointment conflict")})]}),v.map(D=>{const P=D.patient_id&&typeof D.patient_id=="object"?`${D.patient_id.first_name} ${D.patient_id.last_name}`:s(a.entitySingular),L=new Date(D.appointment_date).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"});
7return f.jsxs("p",{className:"text-xs text-amber-600 dark:text-amber-400 pl-5",children:[P," um ",L," (",D.duration," min)"]},D._id)}),f.jsx("p",{className:"text-xs text-amber-600 dark:text-amber-400 pl-5 italic",children:s("Appointment can still be created.")})]}),f.jsxs("div",{className:"flex gap-2 pt-2",children:[f.jsx(ee,{size:"sm",className:`flex-1 ${E?"bg-amber-600 hover:bg-amber-700":""}`,onClick:me,disabled:ie||!k,children:s(ie?"Saving...":E?"Save anyway":"Save")}),f.jsx(ee,{variant:"outline",size:"sm",onClick:()=>{i(t.date,t.startTime),n()},children:s("More options")})]})]})})]})]})},op=[{value:"confirmed",label:"Confirmed"},{value:"in-progress",label:"In Progress"},{value:"completed",label:"Completed"},{value:"no-show",label:"No-show"}],cp=({appointment:t,position:e,onClose:n,onViewDetails:r,onEdit:i,onStatusChange:s,onMoveTo:l,onCancel:a,onCopy:o})=>{const{t:d}=gt(),[c,g]=S.useState(!1),[h,u]=S.useState(!1),m=S.useRef(null);if(S.useEffect(()=>{g(!1),u(!1)},[t,e]),S.useEffect(()=>{if(!t)return;const A=T=>{T.key==="Escape"&&n()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[t,n]),!t||!e)return null;const v=220,E=h?160:c?280:260,b=Math.min(e.top,window.innerHeight-E-8),C=Math.min(e.left,window.innerWidth-v-8),w="flex items-center gap-2.5 px-3 py-2 text-sm cursor-pointer hover:bg-accent rounded-md transition-colors w-full text-left";return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"fixed inset-0 z-[1100]",onClick:n}),f.jsx("div",{ref:m,style:{position:"fixed",top:b,left:C,zIndex:1101},className:"w-[220px] rounded-lg border bg-popover text-popover-foreground shadow-xl animate-in fade-in-0 zoom-in-95 p-1",children:h?f.jsxs("div",{className:"p-3 space-y-3",children:[f.jsx("p",{className:"text-sm font-medium",children:d("Really cancel this appointment?")}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{className:"flex-1 px-3 py-1.5 text-sm bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90 transition-colors",onClick:()=>{a(t._id),n()},children:d("Yes, cancel")}),f.jsx("button",{className:"flex-1 px-3 py-1.5 text-sm border rounded-md hover:bg-accent transition-colors",onClick:()=>u(!1),children:d("No")})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:w,onClick:()=>{r(t),n()},children:[f.jsx(xa,{className:"h-4 w-4 text-muted-foreground"}),d("View details")]}),f.jsxs("button",{className:w,onClick:()=>{i(t),n()},children:[f.jsx(xr,{className:"h-4 w-4 text-muted-foreground"}),d("Edit")]}),f.jsx("div",{className:"h-px bg-border my-1"}),f.jsxs("div",{className:"relative",children:[f.jsxs("button",{className:w,onClick:()=>g(!c),children:[f.jsx(Wa,{className:"h-4 w-4 text-muted-foreground"}),d("Change status"),f.jsx(ps,{className:"h-3.5 w-3.5 ml-auto text-muted-foreground"})]}),c&&f.jsx("div",{className:"pl-4 space-y-0.5",children:op.map(A=>f.jsxs("button",{className:`${w} ${t.status===A.value?"bg-accent font-medium":""}`,onClick:()=>{s(t._id,A.value),n()},children:[f.jsx("div",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:Qe[A.value]}}),d(A.label)]},A.value))})]}),f.jsxs("button",{className:w,onClick:()=>{l(t),n()},children:[f.jsx(Va,{className:"h-4 w-4 text-muted-foreground"}),d("Move to...")]}),f.jsxs("button",{className:w,onClick:()=>{o(t),n()},children:[f.jsx(Ga,{className:"h-4 w-4 text-muted-foreground"}),d("Copy")]}),f.jsx("div",{className:"h-px bg-border my-1"}),f.jsxs("button",{className:`${w} text-destructive hover:text-destructive`,onClick:()=>u(!0),children:[f.jsx(gs,{className:"h-4 w-4"}),d("Cancel appointment")]})]})})]})},dp=[{value:"scheduled",label:"Scheduled"},{value:"confirmed",label:"Confirmed"},{value:"in-progress",label:"In Progress"},{value:"completed",label:"Completed"},{value:"no-show",label:"No-show"}];function up(t){return typeof t.patient_id=="object"&&t.patient_id?`${t.patient_id.first_name||""} ${t.patient_id.last_name||""}`.trim():"-"}function fp(t){return typeof t.doctor_id=="object"&&t.doctor_id?`${t.doctor_id.first_name||""} ${t.doctor_id.last_name||""}`.trim():"-"}function hp(t){return new Date(t).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})}function gp(t){return new Date(t).toLocaleDateString("de-DE",{weekday:"short",day:"2-digit",month:"2-digit",year:"numeric"})}const pp=({appointment:t,onClose:e,onEdit:n,onStatusChange:r,onCancel:i})=>{const{t:s}=gt(),l=Ar(),[a,o]=S.useState(0),[d,c]=S.useState(!1),[g,h]=S.useState(!1),u=S.useRef(0),m=S.useRef(null);S.useEffect(()=>{o(0),h(!1)},[t]);const v=S.useCallback(T=>{c(!0),u.current=T.touches[0].clientY},[]),E=S.useCallback(T=>{if(!d)return;const k=T.touches[0].clientY-u.current;k>0&&o(k)},[d]),b=S.useCallback(()=>{c(!1),a>100&&e(),o(0)},[a,e]);if(!t)return null;const C=up(t),w=fp(t),A=Qe[t.status]||"#6B7280";return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"fixed inset-0 z-[1200] bg-black/40 animate-in fade-in-0",onClick:e}),f.jsxs("div",{ref:m,className:"fixed bottom-0 left-0 right-0 z-[1201] bg-popover rounded-t-2xl shadow-2xl animate-in slide-in-from-bottom",style:{transform:`translateY(${a}px)`,transition:d?"none":"transform 0.3s ease-out",maxHeight:"80vh",overflowY:"auto"},children:[f.jsx("div",{className:"flex justify-center pt-3 pb-2 cursor-grab active:cursor-grabbing",onTouchStart:v,onTouchMove:E,onTouchEnd:b,children:f.jsx("div",{className:"w-10 h-1 rounded-full bg-muted-foreground
7/30"})}),f.jsxs("div",{className:"flex items-center justify-between px-4 pb-3",children:[f.jsxs("div",{className:"flex items-center gap-2.5",children:[f.jsx("div",{className:"w-3.5 h-3.5 rounded-full",style:{backgroundColor:A}}),f.jsx("h3",{className:"font-semibold text-base",children:C})]}),f.jsx("button",{onClick:e,className:"p-1.5 rounded-lg hover:bg-accent transition-colors",children:f.jsx(on,{className:"h-5 w-5"})})]}),f.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[f.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[f.jsx(wr,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsxs("span",{children:[gp(t.appointment_date)," ",hp(t.appointment_date)," ",f.jsxs("span",{className:"text-muted-foreground",children:["(",t.duration||30," min)"]})]})]}),f.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[f.jsx(ms,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsx("span",{children:w})]}),f.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[f.jsx(vs,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsxs("span",{children:[s(l.entitySingular),": ",C]})]}),f.jsxs("div",{className:"flex items-center gap-2.5 text-sm",children:[f.jsx(bs,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),f.jsx(Cr,{variant:"secondary",className:"text-xs capitalize",children:t.type})]}),t.notes&&f.jsx("p",{className:"text-xs text-muted-foreground border-t pt-2",children:t.notes}),f.jsxs("div",{className:"border-t pt-3",children:[f.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:s("Change status")}),f.jsx("div",{className:"flex flex-wrap gap-2",children:dp.map(T=>f.jsxs("button",{className:`flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-full border transition-colors ${t.status===T.value?"bg-accent font-medium border-primary":"hover:bg-accent"}`,onClick:()=>r(t._id,T.value),children:[f.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:Qe[T.value]}}),s(T.label)]},T.value))})]}),f.jsx("div",{className:"border-t pt-3 space-y-2",children:g?f.jsxs("div",{className:"space-y-2",children:[f.jsx("p",{className:"text-sm font-medium",children:s("Really cancel this appointment?")}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx(ee,{variant:"destructive",size:"sm",className:"flex-1",onClick:()=>{i(t._id),e()},children:s("Yes, cancel")}),f.jsx(ee,{variant:"outline",size:"sm",className:"flex-1",onClick:()=>h(!1),children:s("No")})]})]}):f.jsxs("div",{className:"flex gap-2",children:[f.jsxs(ee,{variant:"outline",size:"default",className:"flex-1",onClick:()=>{n(t),e()},children:[f.jsx(xr,{className:"h-4 w-4 mr-2"}),s("Edit")]}),f.jsxs(ee,{variant:"destructive",size:"default",onClick:()=>h(!0),children:[f.jsx(gs,{className:"h-4 w-4 mr-2"}),s("Cancel")]})]})})]})]})]})},mp=({onClick:t})=>f.jsx(ee,{size:"lg",className:"md:hidden fixed bottom-6 right-6 z-50 h-14 w-14 rounded-full shadow-lg",onClick:t,children:f.jsx(cn,{className:"h-6 w-6"})});function vp(t){return typeof t.patient_id=="object"&&t.patient_id?`${t.patient_id.first_name||""} ${t.patient_id.last_name||""}`.trim():""}function bp(t){return typeof t.doctor_id=="object"&&t.doctor_id?`${t.doctor_id.first_name||""} ${t.doctor_id.last_name||""}`.trim():""}function yp(t,e){const n=new Date(t);return new Date(n.getTime()+e*6e4).toISOString()}function Ep(t,e="status"){const n=vp(t),r=bp(t),i=Kg(t,e),s=t.duration||30,l=n||t.type||"Appointment";return{id:t._id,title:l,start:t.appointment_date,end:yp(t.appointment_date,s),backgroundColor:i,borderColor:i,textColor:"#ffffff",extendedProps:{appointment:t,patientName:n,doctorName:r,status:t.status,type:t.type,duration:s}}}function Sp(t,e="status"){return t.map(n=>Ep(n,e))}function Cp(t,e,n="status",r,i){const[s,l]=S.useState([]),[a,o]=S.useState(!1),[d,c]=S.useState(null),[g,h]=S.useState(0),u=S.useCallback(()=>{h(m=>m+1)},[]);return S.useEffect(()=>{if(!t||!e)return;let m=!1;return o(!0),c(null),(async()=>{try{const E={start_date:t,end_date:e,limit:500};r&&r!=="all"&&(E.status=r),i&&(E.doctor_id=i);const b=await Ta(E);if(m)return;const C=b==null?void 0:b.data,w=(C==null?void 0:C.items)||[],A=Sp(w,n);l(A)}
7catch(E){if(m)return;console.error("Failed to fetch calendar events:",E),c(E.message||"Failed to load appointments"),l([])}finally{m||o(!1)}})(),()=>{m=!0}},[t,e,n,r,i,g]),{events:s,loading:a,error:d,refetch:u}}function wp(t,e){const n=S.useCallback(async i=>{var g,h,u;const{event:s,revert:l}=i,a=s.id,o=s.start,d=s.end;if(!o||!a){l();return}const c=d?Math.round((d.getTime()-o.getTime())/6e4):((g=s.extendedProps)==null?void 0:g.duration)||30;try{const v=(await an.patch(`/appointments/${a}/move`,{appointment_date:o.toISOString(),duration:c})).data;if(v.conflicts&&v.conflicts.length>0){const E=v.conflicts.map(b=>{const C=b.patient_id;return C&&typeof C=="object"?`${C.first_name} ${C.last_name}`:"Termin"}).join(", ");W({title:e("Termin verschoben — Konflikt erkannt"),description:`${e("Ueberschneidung mit")}: ${E}`,variant:"destructive"})}else W({title:e("Termin verschoben"),description:e("Der Termin wurde erfolgreich verschoben.")});t()}catch(m){console.error("Failed to move appointment:",m),l(),W({title:e("Fehler"),description:((u=(h=m==null?void 0:m.response)==null?void 0:h.data)==null?void 0:u.message)||m.message||e("Termin konnte nicht verschoben werden."),variant:"destructive"})}},[t,e]),r=S.useCallback(async i=>{var g,h;const{event:s,revert:l}=i,a=s.id,o=s.start,d=s.end;if(!o||!d||!a){l();return}const c=Math.round((d.getTime()-o.getTime())/6e4);try{const m=(await an.patch(`/appointments/${a}/move`,{appointment_date:o.toISOString(),duration:c})).data;m.conflicts&&m.conflicts.length>0?W({title:e("Dauer geaendert — Konflikt erkannt"),description:e("Der neue Zeitraum ueberschneidet sich mit einem anderen Termin."),variant:"destructive"}):W({title:e("Dauer geaendert"),description:e("Die Termindauer wurde erfolgreich angepasst.")}),t()}catch(u){console.error("Failed to resize appointment:",u),l(),W({title:e("Fehler"),description:((h=(g=u==null?void 0:u.response)==null?void 0:g.data)==null?void 0:h.message)||u.message||e("Dauer konnte nicht geaendert werden."),variant:"destructive"})}},[t,e]);return{handleEventDrop:n,handleEventResize:r}}function Jt(t){return t.patient_id&&typeof t.patient_id=="object"?`${t.patient_id.first_name||""} ${t.patient_id.last_name||""}`.trim():"Termin"}function fs(t){return t?new Date(t).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"}):""}function Ap(t,e){const n=S.useCallback(l=>{t();const a=Jt(l),o=fs(l.appointment_date);W({title:"Neuer Termin",description:`${a}${o?` um ${o}`:""} wurde erstellt.`})},[t]),r=S.useCallback(l=>{t();const a=Jt(l);W({title:"Termin aktualisiert",description:`${a} wurde von einem anderen Benutzer geaendert.`})},[t]),i=S.useCallback(l=>{t();const a=Jt(l),o=fs(l.appointment_date);W({title:"Termin verschoben",description:`${a} wurde auf ${o} verschoben.`})},[t]),s=S.useCallback(l=>{t();const a=Jt(l);W({title:"Termin storniert",description:`${a} wurde storniert.`,variant:"destructive"})},[t]);
7Wt("appointment:created",n),Wt("appointment:updated",r),Wt("appointment:moved",i),Wt("appointment:cancelled",s)}function xp({onNewAppointment:t,onToday:e,onViewChange:n,onPrev:r,onNext:i,onEscape:s,onDeleteSelected:l,selectedEvent:a,enabled:o=!0}){const d=S.useCallback(c=>{var u,m;if(!o)return;const g=(u=c.target)==null?void 0:u.tagName;if(!(g==="INPUT"||g==="TEXTAREA"||g==="SELECT"||(m=c.target)!=null&&m.isContentEditable)){if(c.key==="Escape"){s();return}if(!(c.ctrlKey||c.metaKey||c.altKey))switch(c.key){case"n":case"N":c.preventDefault(),t();break;case"t":case"T":c.preventDefault(),e();break;case"d":case"D":c.preventDefault(),n("timeGridDay");break;case"w":case"W":c.preventDefault(),n("timeGridWeek");break;case"m":case"M":c.preventDefault(),n("dayGridMonth");break;case"a":case"A":c.preventDefault(),n("listWeek");break;case"ArrowLeft":c.preventDefault(),r();break;case"ArrowRight":c.preventDefault(),i();break;case"Delete":case"Backspace":a&&(c.preventDefault(),l());break}}},[o,t,e,n,r,i,s,l,a]);S.useEffect(()=>(document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)),[d])}function Dp(){const[t,e]=S.useState(window.innerWidth<768);return S.useEffect(()=>{const n=()=>e(window.innerWidth<768);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t}const im=()=>{const{t,i18n:e}=gt(),n=Dp(),r=S.useRef(null),[i,s]=S.useState(n?"timeGridDay":"timeGridWeek"),[l,a]=S.useState(""),[o,d]=S.useState(null),[c,g]=S.useState("status"),[h,u]=S.useState("all"),[m,v]=S.useState("all"),[E,b]=S.useState(null),[C,w]=S.useState(null),[A,T]=S.useState(null),[k,M]=S.useState(null),[N,V]=S.useState(null),[q,X]=S.useState(null),[ae,oe]=S.useState(null),ce=S.useRef(null),ge=S.useRef(null),pe=S.useRef(null),[On,Y]=S.useState(!1),[Ft,re]=S.useState(),[Ut,de]=S.useState(),[zt,K]=S.useState(),{events:Je,loading:et,error:mt,refetch:ie}=Cp((o==null?void 0:o.start)||null,(o==null?void 0:o.end)||null,c,h==="all"?void 0:h,m==="all"?void 0:m),{handleEventDrop:vt,handleEventResize:jn}=wp(ie,t);Ap(ie);const me=S.useCallback(()=>{var x;return((x=r.current)==null?void 0:x.getApi())||null},[]),He=S.useCallback(()=>{var x;(x=me())==null||x.prev()},[me]),tt=S.useCallback(()=>{var x;(x=me())==null||x.next()},[me]),D=S.useCallback(()=>{var x;(x=me())==null||x.today()},[me]),P=S.useCallback(x=>{var I;s(x),(I=me())==null||I.changeView(x)},[me]),L=S.useCallback(()=>{b(null),w(null),T(null),M(null),V(null),X(null),oe(null)},[]);xp({onNewAppointment:()=>{L(),K(void 0),re(void 0),de(void 0),Y(!0)},onToday:D,onViewChange:P,onPrev:He,onNext:tt,onEscape:L,onDeleteSelected:()=>{E&&Bn(E._id)},selectedEvent:E});const Ee=S.useCallback(x=>{a(x.view.title),d({start:x.startStr,end:x.endStr})},[]),bt=S.useCallback(x=>{var J;x.jsEvent.preventDefault();const I=(J=x.event.extendedProps)==null?void 0:J.appointment;if(!I)return;if(n){oe(I),b(I);return}const $=x.el.getBoundingClientRect();b(I),w({top:$.top,left:$.right+8}),T(null),M(null),V(null),X(null)},[n]),yt=S.useCallback(x=>{const I=x.date,$=I.toISOString().split("T")[0],J=I.toTimeString().slice(0,5);re($),de(J),Y(!0),T(null),M(null),b(null),w(null),V(null),X(null)},[]),da=S.useCallback(x=>{const I=x.start,$=I.toISOString().split("T")[0],J=I.toTimeString().slice(0,5);re($),de(J),Y(!0),T(null),M(null),b(null),w(null),V(null),X(null)},[]),ua=S.useCallback(x=>{var Se,Et,St,Ct,wt,nt,At;const I=x.target.closest(".fc-event");
7if(!I)return;x.preventDefault(),x.stopPropagation();const $=((Et=(Se=r.current)==null?void 0:Se.getApi())==null?void 0:Et.getEvents())||[];let J=null;for(const xt of $){const rt=(St=xt.extendedProps)==null?void 0:St.appointment;if(rt&&xt.id&&((Ct=I.querySelector("[data-event]"))==null?void 0:Ct.closest(".fc-event"))===I){const it=I.querySelector(".fc-event-title, .font-semibold, .font-medium"),Ln=(wt=it==null?void 0:it.textContent)==null?void 0:wt.trim(),Fn=xt.title;if(Ln&&Fn&&(Fn.includes(Ln)||Ln.includes(Fn))){J=rt;break}}}if(!J){const xt=((nt=I.textContent)==null?void 0:nt.trim())||"";for(const rt of $){const it=(At=rt.extendedProps)==null?void 0:At.appointment;if(it&&rt.title&&xt.includes(rt.title)){J=it;break}}}J&&(V(J),X({top:x.clientY,left:x.clientX}),b(null),w(null),T(null),M(null),oe(null))},[]),fa=S.useCallback(x=>{var Et,St,Ct,wt;if(!n)return;pe.current=x.touches[0].clientX;const I=x.target.closest(".fc-event");if(!I)return;const $=((Et=I.textContent)==null?void 0:Et.trim())||"",J=((Ct=(St=r.current)==null?void 0:St.getApi())==null?void 0:Ct.getEvents())||[];let Se=null;for(const nt of J){const At=(wt=nt.extendedProps)==null?void 0:wt.appointment;if(At&&nt.title&&$.includes(nt.title)){Se=At;break}}Se&&(ge.current=Se,ce.current=setTimeout(()=>{ge.current&&(navigator.vibrate&&navigator.vibrate(50),oe(ge.current),b(ge.current),ge.current=null)},500))},[n]),ha=S.useCallback(()=>{ce.current&&(clearTimeout(ce.current),ce.current=null,ge.current=null)},[]),ga=S.useCallback(x=>{var Se;if(ce.current&&(clearTimeout(ce.current),ce.current=null,ge.current=null),!n||i!=="timeGridDay"||pe.current===null){pe.current=null;return}const I=(Se=x.changedTouches[0])==null?void 0:Se.clientX;if(I===void 0){pe.current=null;return}const $=I-pe.current;Math.abs($)>80&&($>0?He():tt()),pe.current=null},[n,i,He,tt]),Pn=S.useCallback(x=>{K(x),re(void 0),de(void 0),Y(!0)},[]),Hn=S.useCallback(async(x,I)=>{try{await li(x,{status:I}),W({title:t("Status updated"),description:t("The appointment status has been changed.")}),L(),ie()}catch($){W({title:t("Error"),description:$.message||t("Status could not be changed."),variant:"destructive"})}},[ie,t,L]),pa=S.useCallback(async x=>{try{await ka(x),W({title:t("Appointment deleted"),description:t("The appointment has been successfully deleted.")}),L(),ie()}catch(I){W({title:t("Error"),description:I.message||t("Appointment could not be deleted."),variant:"destructive"})}},[ie,t,L]),Bn=S.useCallback(async x=>{try{await li(x,{status:"cancelled"}),W({title:t("Appointment cancelled"),description:t("The appointment has been cancelled.")}),L(),ie()}catch(I){W({title:t("Error"),description:I.message||t("Appointment could not be cancelled."),variant:"destructive"})}},[ie,t,L]),ma=S.useCallback(x=>{n?(oe(x),b(x)):(b(x),w({top:Math.min((q==null?void 0:q.top)||200,window.innerHeight-350),left:Math.min(((q==null?void 0:q.left)||200)+16,window.innerWidth-320)}))},[n,q]),va=S.useCallback(x=>{K(void 0);const I=new Date(x.appointment_date);re(I.toISOString().split("T")[0]),de(I.toTimeString().slice(0,5)),Y(!0)},[]),ba=S.useCallback(x=>{K(void 0),re(void 0),de(void 0),Y(!0),W({title:t("Copy appointment"),description:t("Please select a new date for the copy.")})},[t]),ya=S.useCallback((x,I)=>{K(void 0),re(x),de(I),Y(!0)},[]),Ea=S.useCallback(()=>{K(void 0),re(void 0),de(void 0),Y(!0)},[]);return S.useEffect(()=>{n&&i==="timeGridWeek"&&P("timeGridDay")},[n]),f.jsxs("div",{className:"space-y-4 p-4 md:p-6",children:[f.jsx("div",{className:"flex items-center justify-between",children:f.jsx("h1",{className:"text-2xl font-bold",children:t("Calendar")})}),f.jsx(Zg,{currentView:i,onViewChange:P,currentTitle:l,onPrev:He,onNext:tt,onToday:D,colorBy:c,onColorByChange:g,statusFilter:h,onStatusFilterChange:u,selectedProviderId:m,onProviderChange:v,onNewAppointment:()=>Y(!0)}),mt&&f.jsxs(Da,{variant:"destructive",children:[f.jsx(Ra,{className:"h-4 w-4"}),f.jsx(_a,{children:mt})]}),et&&!Je.length&&f.jsx("div",{className:"space-y-2",children:f.jsx(Sa,{className:"h-[600px] w-full rounded-lg"})}),f.jsx("div",{className:et&&Je.length>0?"opacity-60 transition-opacity":"",onContextMenu:ua,onTouchStart:fa,onTouchMove:ha,onTouchEnd:ga,
7children:f.jsx(Yg,{events:Je,currentView:i,locale:e.language,onEventClick:bt,onDateClick:yt,onSelect:da,onEventDrop:vt,onEventResize:jn,onDatesSet:Ee,calendarRef:r})}),!n&&f.jsx(sp,{appointment:E,anchorPosition:C,onClose:()=>{b(null),w(null)},onEdit:Pn,onStatusChange:Hn,onDelete:pa}),f.jsx(cp,{appointment:N,position:q,onClose:()=>{V(null),X(null)},onViewDetails:ma,onEdit:x=>{Pn(x),V(null),X(null)},onStatusChange:Hn,onMoveTo:va,onCancel:Bn,onCopy:ba}),n&&f.jsx(pp,{appointment:ae,onClose:()=>{oe(null),b(null)},onEdit:Pn,onStatusChange:Hn,onCancel:Bn}),f.jsx(ap,{info:A,anchorPosition:k,onClose:()=>{T(null),M(null)},onCreated:ie,onOpenFullModal:ya}),f.jsx(mp,{onClick:Ea}),f.jsx(qa,{open:On,onOpenChange:x=>{Y(x),x||K(void 0)},preSelectedDate:Ft,preSelectedTime:Ut,editingAppointment:zt,onCreated:ie})]})};export{im as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.