vendor: 23,288 bytes, line 1
1import{a as wa}from"./chunk-RCEVKO34.js";import{a as fa,b as ha}from"./chunk-PP6ZHC44.js";import{b as la,c as ca}from"./chunk-LH7AH7ZB.js";import{c as Da,d as Aa,e as Ra}from"./chunk-HQZ4TTA6.js";import{a as Ea,b as Sa}from"./chunk-2M2QSQ5T.js";import"./chunk-YITJP7ON.js";import"./chunk-DAVGRBWF.js";import"./chunk-B6ZVE2WN.js";import"./chunk-FBARXP3G.js";import{a as xa}from"./chunk-F6OH4JOY.js";import{d as _a,e as Ca}from"./chunk-DBDIEO47.js";import{i as da,j as ua}from"./chunk-3WW2KE2M.js";import{c as ra,d as sa,f as pa,g as ga,l as Yn}from"./chunk-YWUQURBB.js";import{b as Yo,e as Zo,i as $o,n as Xo,p as Ko,u as Jo,y as oa,z as aa}from"./chunk-2GQVOHQJ.js";import{b as ma,c as va}from"./chunk-7GGPVKTS.js";import"./chunk-ZWZ44MLW.js";import"./chunk-PHM4J42S.js";import{d as ya,e as ba}from"./chunk-UKH7BW3E.js";import{Aa as T,Ab as pr,Ba as k,Bb as be,C as Mo,D as Wn,Da as dr,Db as qn,Ea as ur,F as To,Fa as fr,G as ko,Ga as R,Ha as y,I as V,Ia as v,J as U,Ja as j,Mb as Qn,Na as dt,O as Oo,Oa as se,Qa as te,Ra as w,Sa as Po,Sb as Lo,Ta as No,Tb as Vo,Ua as Ho,Ub as Uo,Va as Gn,Vb as jo,Vd as na,Wa as Y,Wb as Wo,X as Io,Xa as Z,Xb as zo,Zb as Go,Zd as ia,_ as cr,_b as qo,bb as Fo,bc as Tt,c as xo,cb as Kt,d as Ao,ea as C,eb as S,ee as en,fb as ye,gb as K,h as ar,hb as hr,i as lr,ia as De,ib as Bo,ic as Qo,j as qe,ja as xe,ka as ie,lb as oe,mb as ae,na as Ye,nb as le,oa as zn,oe as _e,q as Qe,r as Ro,rb as Jt,sb as ut,ua as ct,vd as ta,wa as Xt,yc as ea,z as $t,zb as re}from"./chunk-QXDPL362.js";import{a as ve,b as or}from"./chunk-OSPTTUA6.js";var Jn,A,Ia,mr,kt,ft,Ma,Pa,Na,$n={},Ha=[],hd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ze(n,e){for(var t in e)n[t]=e[t];return n}function Fa(n){var e=n.parentNode;e&&e.removeChild(n)}function f(n,e,t){var i,r,s,o={};for(s in e)s=="key"?i=e[s]:s=="ref"?r=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?Jn.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(s in n.defaultProps)o[s]===void 0&&(o[s]=n.defaultProps[s]);return Zn(n,o,i,r,null)}function Zn(n,e,t,i,r){var s={type:n,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ia};return r==null&&A.vnode!=null&&A.vnode(s),s}function Q(){return{current:null}}function N(n){return n.children}function pd(n,e,t,i,r){var s;for(s in t)s==="children"||s==="key"||s in e||Xn(n,s,null,t[s],i);for(s in e)r&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||t[s]===e[s]||Xn(n,s,e[s],t[s],i)}function Ta(n,e,t){e[0]==="-"?n.setProperty(e,t??""):n[e]=t==null?"":typeof t!="number"||hd.test(e)?t:t+"px"}function Xn(n,e,t,i,r){var s;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof i=="string"&&(n.style.cssText=i=""),i)for(e in i)t&&e in t||Ta(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Ta(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+s]=t,t?i||n.addEventListener(e,s?Oa:ka,s):n.removeEventListener(e,s?Oa:ka,s);else if(e!=="dangerouslySetInnerHTML"){if(r)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 n)try{n[e]=t??"";break e}catch(o){}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?n.removeAttribute(e):n.setAttribute(e,t))}}function ka(n){kt=!0;try{return this.l[n.type+!1](A.event?A.event(n):n)}finally{kt=!1}}function Oa(n){kt=!0;try{return this.l[n.type+!0](A.event?A.event(n):n)}finally{kt=!1}}function J(n,e){this.props=n,this.context=e}function tn(n,e){if(e==null)return n.__?tn(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?tn(n):null}function Ba(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return Ba(n)}}function gd(n){kt?setTimeout(n):Pa(n)}function gr(n){(!n.__d&&(n.__d=!0)&&ft.push(n)&&!Kn.__r++||Ma!==A.debounceRendering)&&((Ma=A.debounceRendering)||gd)(Kn)}function Kn(){var n,e,t,i,r,s,o,a;for(ft.sort(function(l,d){return l.__v.__b-d.__v.__b});n=ft.shift();)n.__d&&(e=ft.length,i=void 0,r=void 0,o=(s=(t=n).__v).__e,(a=t.__P)&&(i=[],(r=Ze({},s)).__v=s.__v+1,vr(a,s,r,t.__n,a.ownerSVGElement!==void 0,s.__h!=null?[o]:null,i,o??tn(s),s.__h),Wa(i,s),s.__e!=o&&Ba(s)),ft.length>e&&ft.sort(function(l,d){return l.__v.__b-d.__v.__b}));Kn.__r=0}function La(n,e,t,i,r,s,o,a,l,d){var c,p,h,u,m,_,b,E=i&&i.__k||Ha,D=E.length;for(t.__k=[],c=0;c<e.length;c++)if((u=t.__k[c]=(u=e[c])==null||typeof u=="boolean"?null:typeof u=="string"||typeof u=="number"||typeof u=="bigint"?Zn(null,u,null,null,u):Array.isArray(u)?Zn(N,{children:u},null,null,null):u.__b>0?Zn(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u)!=null){if(u.__=t,u.__b=t.__b+1,(h=E[c])===null||h&&u.key==h.key&&u.type===h.type)E[c]=void 0;else for(p=0;p<D;p++){if((h=E[p])&&u.key==h.key&&u.type===h.type){E[p]=void 0;break}h=null}vr(n,u,h=h||$n,r,s,o,a,l,d),m=u.__e,(p=u.ref)&&h.ref!=p&&(b||(b=[]),h.ref&&b.push(h.ref,null,u),b.push(p,u.__c||m,u)),m!=null?(_==null&&(_=m),typeof u.type=="function"&&u.__k===h.__k?u.__d=l=Va(u,l,n):l=Ua(n,u,h,E,m,l),typeof t.type=="function"&&(t.__d=l)):l&&h.__e==l&&l.parentNode!=n&&(l=tn(h))}for(t.__e=_,c=D;c--;)E[c]!=null&&(typeof t.type=="function"&&E[c].__e!=null&&E[c].__e==t.__d&&(t.__d=ja(i).nextSibling),Ga(E[c],E[c]));if(b)for(c=0;c<b.length;c++)za(b[c],b[++c],b[++c])}function Va(n,e,t){for(var i,r=n.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=n,e=typeof i.type=="function"?Va(i,e,t):Ua(t,i,i,r,i.__e,e));return e}function nn(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){nn(t,e)}):e.push(n)),e}function Ua(n,e,t,i,r,s){var o,a,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(t==null||r!=s||r.parentNode==null)e:if(s==null||s.parentNode!==n)n.appendChild(r),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==r)break e;n.insertBefore(r,s),o=s}return o!==void 0?o:r.nextSibling}function ja(n){var e,t,i;if(n.type==null||typeof n.type=="string")return n.__e;if(n.__k){for(e=n.__k.length-1;e>=0;e--)if((t=n.__k[e])&&(i=ja(t)))return i}return null}function vr(n,e,t,i,r,s,o,a,l){var d,c,p,h,u,m,_,b,E,D,O,M,q,F,z,H=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(l=t.__h,a=e.__e=t.__e,e.__h=null,s=[a]),(d=A.__b)&&d(e);try{e:if(typeof H=="function"){if(b=e.props,E=(d=H.contextType)&&i[d.__c],D=d?E?E.props.value:d.__:i,t.__c?_=(c=e.__c=t.__c).__=c.__E:("prototype"in H&&H.prototype.render?e.__c=c=new H(b,D):(e.__c=c=new J(b,D),c.constructor=H,c.render=vd),E&&E.sub(c),c.props=b,c.state||(c.state={}),c.context=D,c.__n=i,p=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),H.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ze({},c.__s)),Ze(c.__s,H.getDerivedStateFromProps(b,c.__s))),h=c.props,u=c.state,c.__v=e,p)H.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(H.getDerivedStateFromProps==null&&b!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(b,D),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(b,c.__s,D)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(c.props=b,c.state=c.__s,c.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(Ge){Ge&&(Ge.__=e)}),O=0;O<c._sb.length;O++)c.__h.push(c._sb[O]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(b,c.__s,D),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,u,m)})}if(c.context=D,c.props=b,c.__P=n,M=A.__r,q=0,"prototype"in H&&H.prototype.render){for(c.state=c.__s,c.__d=!1,M&&M(e),d=c.render(c.props,c.state,c.context),F=0;F<c._sb.length;F++)c.__h.push(c._sb[F]);c._sb=[]}else do c.__d=!1,M&&M(e),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++q<25);c.state=c.__s,c.getChildContext!=null&&(i=Ze(Ze({},i),c.getChildContext())),p||c.getSnapshotBeforeUpdate==null||(m=c.getSnapshotBeforeUpdate(h,u)),z=d!=null&&d.type===N&&d.key==null?d.props.children:d,La(n,Array.isArray(z)?z:[z],e,t,i,r,s,o,a,l),c.base=e.__e,e.__h=null,c.__h.length&&o.push(c),_&&(c.__E=c.__=null),c.__e=!1}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=md(t.__e,e,t,i,r,s,o,l);(d=A.diffed)&&d(e)}catch(Ge){e.__v=null,(l||s!=null)&&(e.__e=a,e.__h=!!l,s[s.indexOf(a)]=null),A.__e(Ge,e,t)}}function Wa(n,e){A.__c&&A.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(i){i.call(t)})}catch(i){A.__e(i,t.__v)}})}function md(n,e,t,i,r,s,o,a){var l,d,c,p=t.props,h=e.props,u=e.type,m=0;if(u==="svg"&&(r=!0),s!=null){for(;m<s.length;m++)if((l=s[m])&&"setAttribute"in l==!!u&&(u?l.localName===u:l.nodeType===3)){n=l,s[m]=null;break}}if(n==null){if(u===null)return document.createTextNode(h);n=r?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u,h.is&&h),s=null,a=!1}if(u===null)p===h||a&&n.data===h||(n.data=h);else{if(s=s&&Jn.call(n.childNodes),d=(p=t.props||$n).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!a){if(s!=null)for(p={},m=0;m<n.attributes.length;m++)p[n.attributes[m].name]=n.attributes[m].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===n.innerHTML)||(n.innerHTML=c&&c.__html||""))}if(pd(n,h,p,r,a),c)e.__k=[];else if(m=e.props.children,La(n,Array.isArray(m)?m:[m],e,t,i,r&&u!=="foreignObject",s,o,s?s[0]:t.__k&&tn(t,0),a),s!=null)for(m=s.length;m--;)s[m]!=null&&Fa(s[m]);a||("value"in h&&(m=h.value)!==void 0&&(m!==n.value||u==="progress"&&!m||u==="option"&&m!==p.value)&&Xn(n,"value",m,p.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==n.checked&&Xn(n,"checked",m,p.checked,!1))}return n}function za(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){A.__e(i,t)}}function Ga(n,e,t){var i,r;if(A.unmount&&A.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||za(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(s){A.__e(s,e)}i.base=i.__P=null,n.__c=void 0}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&Ga(i[r],e,t||typeof n.type!="function");t||n.__e==null||Fa(n.__e),n.__=n.__e=n.__d=void 0}function vd(n,e,t){return this.constructor(n,t)}function $e(n,e,t){var i,r,s;A.__&&A.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,s=[],vr(e,n=(!i&&t||e).__k=f(N,null,[n]),r||$n,$n,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?Jn.call(e.childNodes):null,s,!i&&t?t:r?r.__e:e.firstChild,i),Wa(s,n)}function ei(n,e){var t={__c:e="__cC"+Na++,__:n,Consumer:function(i,r){return i.children(r)},Provider:function(i){var r,s;return this.getChildContext||(r=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&r.some(function(a){a.__e=!0,gr(a)})},this.sub=function(o){r.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){r.splice(r.indexOf(o),1),a&&a.call(o)}}),i.children}};return t.Provider.__=t.Consumer.contextType=t}Jn=Ha.slice,A={__e:function(n,e,t,i){for(var r,s,o;e=e.__;)if((r=e.__c)&&!r.__)try{if((s=r.constructor)&&s.getDerivedStateFromError!=null&&(r.setState(s.getDerivedStateFromError(n)),o=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(n,i||{}),o=r.__d),o)return r.__E=r}catch(a){n=a}throw n}},Ia=0,mr=function(n){return n!=null&&n.constructor===void 0},kt=!1,J.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ze({},this.state),typeof n=="function"&&(n=n(Ze({},t),this.props)),n&&Ze(t,n),n!=null&&this.__v&&(e&&this._sb.push(e),gr(this))},J.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),gr(this))},J.prototype.render=N,ft=[],Pa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Kn.__r=0,Na=0;var bd,ke,yr,qa;var Ja=[],br=[],Qa=A.__b,Ya=A.__r,Za=A.diffed,$a=A.__c,Xa=A.unmount;function _d(){for(var n;n=Ja.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(ti),n.__H.__h.forEach(_r),n.__H.__h=[]}catch(e){n.__H.__h=[],A.__e(e,n.__v)}}A.__b=function(n){ke=null,Qa&&Qa(n)},A.__r=function(n){Ya&&Ya(n),bd=0;var e=(ke=n.__c).__H;e&&(yr===ke?(e.__h=[],ke.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=br,t.__N=t.i=void 0})):(e.__h.forEach(ti),e.__h.forEach(_r),e.__h=[])),yr=ke},A.diffed=function(n){Za&&Za(n);var e=n.__c;e&&e.__H&&(e.__H.__h.length&&(Ja.push(e)!==1&&qa===A.requestAnimationFrame||((qa=A.requestAnimationFrame)||Cd)(_d)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==br&&(t.__=t.__V),t.i=void 0,t.__V=br})),yr=ke=null},A.__c=function(n,e){e.some(function(t){try{t.__h.forEach(ti),t.__h=t.__h.filter(function(i){return!i.__||_r(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],A.__e(i,t.__v)}}),$a&&$a(n,e)},A.unmount=function(n){Xa&&Xa(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{ti(i)}catch(r){e=r}}),t.__H=void 0,e&&A.__e(e,t.__v))};var Ka=typeof requestAnimationFrame=="function";function Cd(n){var e,t=function(){clearTimeout(i),Ka&&cancelAnimationFrame(e),setTimeout(n)},i=setTimeout(t,100);Ka&&(e=requestAnimationFrame(t))}function ti(n){var e=ke,t=n.__c;typeof t=="function"&&(n.__c=void 0,t()),ke=e}function _r(n){var e=ke;n.__c=n.__(),ke=e}function Ed(n,e){for(var t in e)n[t]=e[t];return n}function el(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var i in e)if(i!=="__source"&&n[i]!==e[i])return!0;return!1}function tl(n){this.props=n}(tl.prototype=new J).isPureReactComponent=!0,tl.prototype.shouldComponentUpdate=function(n,e){return el(this.props,n)||el(this.state,e)};var nl=A.__b;A.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),nl&&nl(n)};var Km=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Sd=A.__e;A.__e=function(n,e,t,i){if(n.then){for(var r,s=e;s=s.__;)if((r=s.__c)&&r.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),r.__c(n,e)}Sd(n,e,t,i)};var il=A.unmount;function cl(n,e,t){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),n.__c.__H=null),(n=Ed({},n)).__c!=null&&(n.__c.__P===t&&(n.__c.__P=e),n.__c=null),n.__k=n.__k&&n.__k.map(function(i){return cl(i,e,t)})),n}function dl(n,e,t){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(i){return dl(i,e,t)}),n.__c&&n.__c.__P===e&&(n.__e&&t.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=t)),n}function Cr(){this.__u=0,this.t=null,this.__b=null}function ul(n){var e=n.__.__c;return e&&e.__a&&e.__a(n)}function ni(){this.u=null,this.o=null}A.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),il&&il(n)},(Cr.prototype=new J).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=ul(i.__v),s=!1,o=function(){s||(s=!0,t.__R=null,r?r(a):a())};t.__R=o;var a=function(){if(!--i.__u){if(i.state.__a){var d=i.state.__a;i.__v.__k[0]=dl(d,d.__c.__P,d.__c.__O)}var c;for(i.setState({__a:i.__b=null});c=i.t.pop();)c.forceUpdate()}},l=e.__h===!0;i.__u++||l||i.setState({__a:i.__b=i.__v.__k[0]}),n.then(o,o)},Cr.prototype.componentWillUnmount=function(){this.t=[]},Cr.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=cl(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__a&&f(N,null,n.fallback);return r&&(r.__h=null),[f(N,null,e.__a?null:n.children),r]};var rl=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};function wd(n){return this.getChildContext=function(){return n.context},n.children}function Dd(n){var e=this,t=n.i;e.componentWillUnmount=function(){$e(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),n.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(i){this.childNodes.push(i),e.i.appendChild(i)},insertBefore:function(i,r){this.childNodes.push(i),e.i.appendChild(i)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.i.removeChild(i)}}),$e(f(wd,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function fl(n,e){var t=f(Dd,{__v:n,i:e});return t.containerInfo=e,t}(ni.prototype=new J).__a=function(n){var e=this,t=ul(e.__v),i=e.o.get(n);return i[0]++,function(r){var s=function(){e.props.revealOrder?(i.push(r),rl(e,n,i)):r()};t?t(s):s()}},ni.prototype.render=function(n){this.u=null,this.o=new Map;var e=nn(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},ni.prototype.componentDidUpdate=ni.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){rl(n,t,e)})};var xd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ad=/^(?: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]/,Rd=typeof document<"u",Md=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};J.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(J.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var sl=A.event;function Td(){}function kd(){return this.cancelBubble}function Od(){return this.defaultPrevented}A.event=function(n){return sl&&(n=sl(n)),n.persist=Td,n.isPropagationStopped=kd,n.isDefaultPrevented=Od,n.nativeEvent=n};var Id,ol={configurable:!0,get:function(){return this.class}},al=A.vnode;A.vnode=function(n){var e=n.type,t=n.props,i=t;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var s in i={},t){var o=t[s];Rd&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in t&&o==null||(s==="defaultValue"&&"value"in t&&t.value==null?s="value":s==="download"&&o===!0?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!Md(t.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():r&&Ad.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),i[s]&&(s="oninputCapture")),i[s]=o)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=nn(t.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=nn(t.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),n.props=i,t.class!=t.className&&(ol.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",ol))}n.$$typeof=xd,al&&al(n)};var ll=A.__r;A.__r=function(n){ll&&ll(n),Id=n.__c};var xl=[],Or=new Map;function rt(n){xl.push(n),Or.forEach(e=>{Ml(e,n)})}function Al(n){n.isConnected&&n.getRootNode&&Rl(n.getRootNode())}function Rl(n){let e=Or.get(n);if(!e||!e.isConnected){if(e=n.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");let t=Nd();t&&(e.nonce=t);let i=n===document?document.head:n,r=n===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(e,r)}Or.set(n,e),Pd(e)}}function Pd(n){for(let e of xl)Ml(n,e)}function Ml(n,e){let{sheet:t}=n,i=t.cssRules.length;e.split("}").forEach((r,s)=>{r=r.trim(),r&&t.insertRule(r+"}",i+s)})}var Er;function Nd(){return Er===void 0&&(Er=Hd()),Er}function Hd(){let n=document.querySelector('meta[name="csp-nonce"]');if(n&&n.hasAttribute("content"))return n.getAttribute("content");let e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Rl(document);var Fd=':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/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQU
1FBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/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}
1.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)}';rt(Fd);var gt=class{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:i}=this;e in i&&(t?delete i[e]:(i[e]-=1,i[e]<=0&&delete i[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 Cn(n){n.parentNode&&n.parentNode.removeChild(n)}function $(n,e){if(n.closest)return n.closest(e);if(!document.documentElement.contains(n))return null;do{if(Wr(n,e))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}function Wr(n,e){return(n.matches||n.matchesSelector||n.msMatchesSelector).call(n,e)}function Tl(n,e){let t=n instanceof HTMLElement?[n]:n,i=[];for(let r=0;r<t.length;r+=1){let s=t[r].querySelectorAll(e);for(let o=0;o<s.length;o+=1)i.push(s[o])}return i}var Bd=/(top|left|right|bottom|width|height)$/i;function xt(n,e){for(let t in e)zr(n,t,e[t])}function zr(n,e,t){t==null?n.style[e]="":typeof t=="number"&&Bd.test(e)?n.style[e]=`${t}px`:n.style[e]=t}function _i(n){var e,t;return(t=(e=n.composedPath)===null||e===void 0?void 0:e.call(n)[0])!==null&&t!==void 0?t:n.target}var hl=0;function Se(){return hl+=1,"fc-dom-"+hl}function En(n){n.preventDefault()}function Ld(n,e){return t=>{let i=$(t.target,n);i&&e.call(i,t,i)}}function Gr(n,e,t,i){let r=Ld(t,i);return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}function kl(n,e,t,i){let r;return Gr(n,"mouseover",e,(s,o)=>{if(o!==r){r=o,t(s,o);let a=l=>{r=null,i(l,o),o.removeEventListener("mouseleave",a)};o.addEventListener("mouseleave",a)}})}var pl=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function qr(n,e){let t=i=>{e(i),pl.forEach(r=>{n.removeEventListener(r,t)})};pl.forEach(i=>
vendor: 136,240 bytes, line 1
1{n.addEventListener(i,t)})}function Ol(n){return Object.assign({onClick:n},Il(n))}function Il(n){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(n(e),e.preventDefault())}}}var gl=0;function We(){return gl+=1,String(gl)}function Sn(){document.body.classList.add("fc-not-allowed")}function wn(){document.body.classList.remove("fc-not-allowed")}function Qr(n){n.style.userSelect="none",n.style.webkitUserSelect="none",n.addEventListener("selectstart",En)}function Yr(n){n.style.userSelect="",n.style.webkitUserSelect="",n.removeEventListener("selectstart",En)}function Zr(n){n.addEventListener("contextmenu",En)}function $r(n){n.removeEventListener("contextmenu",En)}function Pl(n){let e=[],t=[],i,r;for(typeof n=="string"?t=n.split(/\s*,\s*/):typeof n=="function"?t=[n]:Array.isArray(n)&&(t=n),i=0;i<t.length;i+=1)r=t[i],typeof r=="string"?e.push(r.charAt(0)==="-"?{field:r.substring(1),order:-1}:{field:r,order:1}):typeof r=="function"&&e.push({func:r});return e}function Nl(n,e,t){let i,r;for(i=0;i<t.length;i+=1)if(r=Vd(n,e,t[i]),r)return r;return 0}function Vd(n,e,t){return t.func?t.func(n,e):Hl(n[t.field],e[t.field])*(t.order||1)}function Hl(n,e){return!n&&!e?0:e==null?-1:n==null?1:typeof n=="string"||typeof e=="string"?String(n).localeCompare(String(e)):n-e}function pt(n,e){let t=String(n);return"000".substr(0,e-t.length)+t}function Ht(n,e,t){return typeof n=="function"?n(...e):typeof n=="string"?e.reduce((i,r,s)=>i.replace("$"+s,r||""),n):t}function Xr(n,e){return n-e}function rn(n){return n%1===0}function Ud(n){let e=n.querySelector(".fc-scrollgrid-shrink-frame"),t=n.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!t)throw new Error("needs fc-scrollgrid-shrink-cushion className");return n.getBoundingClientRect().width-e.getBoundingClientRect().width+t.getBoundingClientRect().width}var ml=["years","months","days","milliseconds"],jd=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function I(n,e){return typeof n=="string"?Wd(n):typeof n=="object"&&n?vl(n):typeof n=="number"?vl({[e||"milliseconds"]:n}):null}function Wd(n){let e=jd.exec(n);if(e){let t=e[1]?-1:1;return{years:0,months:0,days:t*(e[2]?parseInt(e[2],10):0),milliseconds:t*((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 vl(n){let e={years:n.years||n.year||0,months:n.months||n.month||0,days:n.days||n.day||0,milliseconds:(n.hours||n.hour||0)*60*60*1e3+(n.minutes||n.minute||0)*60*1e3+(n.seconds||n.second||0)*1e3+(n.milliseconds||n.millisecond||n.ms||0)},t=n.weeks||n.week;return t&&(e.days+=t*7,e.specifiedWeeks=!0),e}function zd(n,e){return n.years===e.years&&n.months===e.months&&n.days===e.days&&n.milliseconds===e.milliseconds}function Dn(n,e){return{years:n.years+e.years,months:n.months+e.months,days:n.days+e.days,milliseconds:n.milliseconds+e.milliseconds}}function Fl(n,e){return{years:n.years-e.years,months:n.months-e.months,days:n.days-e.days,milliseconds:n.milliseconds-e.milliseconds}}function Kr(n,e){return{years:n.years*e,months:n.months*e,days:n.days*e,milliseconds:n.milliseconds*e}}function Gd(n){return Ot(n)/365}function qd(n){return Ot(n)/30}function Ot(n){return he(n)/864e5}function he(n){return n.years*(365*864e5)+n.months*(30*864e5)+n.days*864e5+n.milliseconds}function xn(n,e){let t=null;for(let i=0;i<ml.length;i+=1){let r=ml[i];if(e[r]){let s=n[r]/e[r];if(!rn(s)||t!==null&&t!==s)return null;t=s}else if(n[r])return null}return t}function sn(n){let e=n.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 n.days?n.specifiedWeeks&&n.days%7===0?{unit:"week",value:n.days/7}:{unit:"day",value:n.days}:n.months?{unit:"month",value:n.months}:n.years?{unit:"year",value:n.years}:{unit:"millisecond",value:0}}function Pe(n,e,t){if(n===e)return!0;let i=n.length,r;if(i!==e.length)return!1;for(r=0;r<i;r+=1)if(!(t?t(n[r],e[r]):n[r]===e[r]))return!1;return!0}var Qd=["sun","mon","tue","wed","thu","fri","sat"];function Ci(n,e){let t=Ke(n);return t[2]+=e*7,ce(t)}function G(n,e){let t=Ke(n);return t[2]+=e,ce(t)}function Oe(n,e){let t=Ke(n);return t[6]+=e,ce(t)}function Jr(n,e){return Ne(n,e)/7}function Ne(n,e){return(e.valueOf()-n.valueOf())/(1e3*60*60*24)}function Yd(n,e){return(e.valueOf()-n.valueOf())/(1e3*60*60)}function Zd(n,e){return(e.valueOf()-n.valueOf())/(1e3*60)}function $d(n,e){return(e.valueOf()-n.valueOf())/1e3}function Bl(n,e){let t=B(n),i=B(e);return{years:0,months:0,days:Math.round(Ne(t,i)),milliseconds:e.valueOf()-i.valueOf()-(n.valueOf()-t.valueOf())}}function Ll(n,e){let t=It(n,e);return t!==null&&t%7===0?t/7:null}function It(n,e){return Je(n)===Je(e)?Math.round(Ne(n,e)):null}function B(n){return ce([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()])}function Xd(n){return ce([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours()])}function Kd(n){return ce([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes()])}function Jd(n){return ce([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()])}function eu(n,e,t){let i=n.getUTCFullYear(),r=Sr(n,i,e,t);if(r<1)return Sr(n,i-1,e,t);let s=Sr(n,i+1,e,t);return s>=1?Math.min(r,s):r}function Sr(n,e,t,i){let r=ce([e,0,1+tu(e,t,i)]),s=B(n),o=Math.round(Ne(r,s));return Math.floor(o/7)+1}function tu(n,e,t){let i=7+e-t;return-((7+ce([n,0,i]).getUTCDay()-e)%7)+i-1}function yl(n){return[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()]}function bl(n){return new Date(n[0],n[1]||0,n[2]==null?1:n[2],n[3]||0,n[4]||0,n[5]||0)}function Ke(n){return[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()]}function ce(n){return n.length===1&&(n=n.concat([0])),new Date(Date.UTC(...n))}function es(n){return!isNaN(n.valueOf())}function Je(n){return n.getUTCHours()*1e3*60*60+n.getUTCMinutes()*1e3*60+n.getUTCSeconds()*1e3+n.getUTCMilliseconds()}function Ei(n,e,t=!1){let i=n.toISOString();return i=i.replace(".000",""),t&&(i=i.replace("T00:00:00Z","")),i.length>10&&(e==null?i=i.replace("Z",""):e!==0&&(i=i.replace("Z",is(e,!0)))),i}function st(n){return n.toISOString().replace(/T.*$/,"")}function ts(n){return n.toISOString().match(/^\d{4}-\d{2}/)[0]}function ns(n){return pt(n.getUTCHours(),2)+":"+pt(n.getUTCMinutes(),2)+":"+pt(n.getUTCSeconds(),2)}function is(n,e=!1){let t=n<0?"-":"+",i=Math.abs(n),r=Math.floor(i/60),s=Math.round(i%60);return e?`${t+pt(r,2)}:${pt(s,2)}`:`GMT${t}${r}${s?`:${pt(s,2)}`:""}`}function x(n,e,t){let i,r;return function(...s){if(!i)r=n.apply(this,s);else if(!Pe(i,s)){t&&t(r);let o=n.apply(this,s);(!e||!e(o,r))&&(r=o)}return i=s,r}}function Ft(n,e,t){let i,r;return s=>{if(!i)r=n.call(this,s);else if(!de(i,s)){t&&t(r);let o=n.call(this,s);(!e||!e(o,r))&&(r=o)}return i=s,r}}var wr={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},di={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},ii=/\s*([ap])\.?m\.?/i,nu=/,/g,iu=/\s+/g,ru=/\u200e/g,su=/UTC|GMT/,Ir=class{constructor(e){let t={},i={},r=9;for(let s in e)s in wr?(i[s]=e[s],wr[s]<9&&(r=Math.min(wr[s],r))):(t[s]=e[s],s in di&&(r=Math.min(di[s],r)));this.standardDateProps=t,this.extendedSettings=i,this.smallestUnitNum=r,this.buildFormattingFunc=x(_l)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,i,r){let{standardDateProps:s,extendedSettings:o}=this,a=uu(e.marker,t.marker,i.calendarSystem);if(!a)return this.format(e,i);let l=a;l>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(l=1);let d=this.format(e,i),c=this.format(t,i);if(d===c)return d;let p=fu(s,l),h=_l(p,o,i),u=h(e),m=h(t),_=hu(d,u,c,m),b=o.separator||r||i.defaultSeparator||"";return _?_.before+u+b+m+_.after:d+b+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 _l(n,e,t){let i=Object.keys(n).length;return i===1&&n.timeZoneName==="short"?r=>is(r.timeZoneOffset):i===0&&e.week?r=>du(t.computeWeekNumber(r.marker),t.weekText,t.weekTextLong,t.locale,e.week):ou(n,e,t)}function ou(n,e,t){n=Object.assign({},n),e=Object.assign({},e),au(n,e),n.timeZone="UTC";let i=new Intl.DateTimeFormat(t.locale.codes,n),r;if(e.omitZeroMinute){let s=Object.assign({},n);delete s.minute,r=new Intl.DateTimeFormat(t.locale.codes,s)}return s=>{let{marker:o}=s,a;r&&!o.getUTCMinutes()?a=r:a=i;let l=a.format(o);return lu(l,s,n,e,t)}}function au(n,e){n.timeZoneName&&(n.hour||(n.hour="2-digit"),n.minute||(n.minute="2-digit")),n.timeZoneName==="long"&&(n.timeZoneName="short"),e.omitZeroMinute&&(n.second||n.millisecond)&&delete e.omitZeroMinute}function lu(n,e,t,i,r){return n=n.replace(ru,""),t.timeZoneName==="short"&&(n=cu(n,r.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":is(e.timeZoneOffset))),i.omitCommas&&(n=n.replace(nu,"").trim()),i.omitZeroMinute&&(n=n.replace(":00","")),i.meridiem===!1?n=n.replace(ii,"").trim():i.meridiem==="narrow"?n=n.replace(ii,(s,o)=>o.toLocaleLowerCase()):i.meridiem==="short"?n=n.replace(ii,(s,o)=>`${o.toLocaleLowerCase()}m`):i.meridiem==="lowercase"&&(n=n.replace(ii,s=>s.toLocaleLowerCase())),n=n.replace(iu," "),n=n.trim(),n}function cu(n,e){let t=!1;return n=n.replace(su,()=>(t=!0,e)),t||(n+=` ${e}`),n}function du(n,e,t,i,r){let s=[];return r==="long"?s.push(t):(r==="short"||r==="narrow")&&s.push(e),(r==="long"||r==="short")&&s.push(" "),s.push(i.simpleNumberFormat.format(n)),i.options.direction==="rtl"&&s.reverse(),s.join("")}function uu(n,e,t){return t.getMarkerYear(n)!==t.getMarkerYear(e)?5:t.getMarkerMonth(n)!==t.getMarkerMonth(e)?4:t.getMarkerDay(n)!==t.getMarkerDay(e)?2:Je(n)!==Je(e)?1:0}function fu(n,e){let t={};for(let i in n)(!(i in di)||di[i]<=e)&&(t[i]=n[i]);return t}function hu(n,e,t,i){let r=0;for(;r<n.length;){let s=n.indexOf(e,r);if(s===-1)break;let o=n.substr(0,s);r=s+e.length;let a=n.substr(r),l=0;for(;l<t.length;){let d=t.indexOf(i,l);if(d===-1)break;let c=t.substr(0,d);l=d+i.length;let p=t.substr(l);if(o===c&&a===p)return{before:o,after:a}}}return null}function Cl(n,e){let t=e.markerToArray(n.marker);return{marker:n.marker,timeZoneOffset:n.timeZoneOffset,array:t,year:t[0],month:t[1],day:t[2],hour:t[3],minute:t[4],second:t[5],millisecond:t[6]}}function ui(n,e,t,i){let r=Cl(n,t.calendarSystem),s=e?Cl(e,t.calendarSystem):null;return{date:r,start:r,end:s,timeZone:t.timeZone,localeCodes:t.locale.codes,defaultSeparator:i||t.defaultSeparator}}var Pr=class{constructor(e){this.cmdStr=e}format(e,t,i){return t.cmdFormatter(this.cmdStr,ui(e,null,t,i))}formatRange(e,t,i,r){return i.cmdFormatter(this.cmdStr,ui(e,t,i,r))}},Nr=class{constructor(e){this.func=e}format(e,t,i){return this.func(ui(e,null,t,i))}formatRange(e,t,i,r){return this.func(ui(e,t,i,r))}};function L(n){return typeof n=="object"&&n?new Ir(n):typeof n=="string"?new Pr(n):typeof n=="function"?new Nr(n):null}var rs={navLinkDayClick:g,navLinkWeekClick:g,duration:I,bootstrapFontAwesome:g,buttonIcons:g,customButtons:g,defaultAllDayEventDuration:I,defaultTimedEventDuration:I,nextDayThreshold:I,scrollTime:I,scrollTimeReset:Boolean,slotMinTime:I,slotMaxTime:I,dayPopoverFormat:L,slotDuration:I,snapDuration:I,headerToolbar:g,footerToolbar:g,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:L,dayHeaderClassNames:g,dayHeaderContent:g,dayHeaderDidMount:g,dayHeaderWillUnmount:g,dayCellClassNames:g,dayCellContent:g,dayCellDidMount:g,dayCellWillUnmount:g,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:g,weekNumbers:Boolean,weekNumberClassNames:g,weekNumberContent:g,weekNumberDidMount:g,weekNumberWillUnmount:g,editable:Boolean,viewClassNames:g,viewDidMount:g,viewWillUnmount:g,nowIndicator:Boolean,nowIndicatorSnap:g,nowIndicatorClassNames:g,nowIndicatorContent:g,nowIndicatorDidMount:g,nowIndicatorWillUnmount:g,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:g,locale:g,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:g,eventOrder:Pl,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:g,contentHeight:g,direction:String,weekNumberFormat:L,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:g,initialDate:g,now:g,eventDataTransform:g,stickyHeaderDates:g,stickyFooterScrollbar:g,viewHeight:g,defaultAllDay:Boolean,eventSourceFailure:g,eventSourceSuccess:g,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:g,eventConstraint:g,eventAllow:g,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:g,eventContent:g,eventDidMount:g,eventWillUnmount:g,selectConstraint:g,selectOverlap:g,selectAllow:g,droppable:Boolean,unselectCancel:String,slotLabelFormat:g,slotLaneClassNames:g,slotLaneContent:g,slotLaneDidMount:g,slotLaneWillUnmount:g,slotLabelClassNames:g,slotLabelContent:g,slotLabelDidMount:g,slotLabelWillUnmount:g,dayMaxEvents:g,dayMaxEventRows:g,dayMinWidth:Number,slotLabelInterval:I,allDayText:String,allDayClassNames:g,allDayContent:g,allDayDidMount:g,allDayWillUnmount:g,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:L,rerenderDelay:Number,moreLinkText:g,moreLinkHint:g,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:g,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:I,hiddenDays:g,fixedWeekCount:Boolean,validRange:g,visibleRange:g,titleFormat:g,eventInteractive:Boolean,noEventsText:String,viewHint:g,navLinkHint:g,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:g,moreLinkClassNames:g,moreLinkContent:g,moreLinkDidMount:g,moreLinkWillUnmount:g,monthStartFormat:L,handleCustomRendering:g,customRenderingMetaMap:g,customRenderingReplaces:Boolean},ot={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},ss={datesSet:g,eventsSet:g,eventAdd:g,eventChange:g,eventRemove:g,windowResize:g,eventClick:g,eventMouseEnter:g,eventMouseLeave:g,select:g,unselect:g,loading:g,_unmount:g,_beforeprint:g,_afterprint:g,_noEventDrop:g,_noEventResize:g,_resize:g,_scrollRequest:g},os={buttonText:g,buttonHints:g,views:g,plugins:g,initialEvents:g,events:g,eventSources:g},at={headerToolbar:ht,footerToolbar:ht,buttonText:ht,buttonHints:ht,buttonIcons:ht,dateIncrement:ht,plugins:ri,events:ri,eventSources:ri,resources:ri};function ht(n,e){return typeof n=="object"&&typeof e=="object"&&n&&e?de(n,e):n===e}function ri(n,e){return Array.isArray(n)&&Array.isArray(e)?Pe(n,e):n===e}var Vl={type:String,component:g,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:g,usesMinMaxTime:Boolean,classNames:g,content:g,didMount:g,willUnmount:g};function Si(n){return Di(n,at)}function wi(n,e){let t={},i={};for(let r in e)r in n&&(t[r]=e[r](n[r]));for(let r in n)r in e||(i[r]=n[r]);return{refined:t,extra:i}}function g(n){return n}var{hasOwnProperty:fi}=Object.prototype;function Di(n,e){let t={};if(e){for(let i in e)if(e[i]===ht){let r=[];for(let s=n.length-1;s>=0;s-=1){let o=n[s][i];if(typeof o=="object"&&o)r.unshift(o);else if(o!==void 0){t[i]=o;break}}r.length&&(t[i]=Di(r))}}for(let i=n.length-1;i>=0;i-=1){let r=n[i];for(let s in r)s in t||(t[s]=r[s])}return t}function Le(n,e){let t={};for(let i in n)e(n[i],i)&&(t[i]=n[i]);return t}function Ee(n,e){let t={};for(let i in n)t[i]=e(n[i],i);return t}function as(n){let e={};for(let t of n)e[t]=!0;return e}function xi(n){let e=[];for(let t in n)e.push(n[t]);return e}function de(n,e){if(n===e)return!0;for(let t in n)if(fi.call(n,t)&&!(t in e))return!1;for(let t in e)if(fi.call(e,t)&&n[t]!==e[t])return!1;return!0}var pu=/^on[A-Z]/;function gu(n,e){let t=mu(n,e);for(let i of t)if(!pu.test(i))return!1;return!0}function mu(n,e){let t=[];for(let i in n)fi.call(n,i)&&(i in e||t.push(i));for(let i in e)fi.call(e,i)&&n[i]!==e[i]&&t.push(i);return t}function li(n,e,t={}){if(n===e)return!0;for(let i in e)if(!(i in n&&vu(n[i],e[i],t[i])))return!1;for(let i in n)if(!(i in e))return!1;return!0}function vu(n,e,t){return n===e||t===!0?!0:t?t(n,e):!1}function Ul(n,e=0,t,i=1){let r=[];t==null&&(t=Object.keys(n).length);for(let s=e;s<t;s+=i){let o=n[s];o!==void 0&&r.push(o)}return r}var jl={};function yu(n,e){jl[n]=e}function bu(n){return new jl[n]}var Hr=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return ce(e)}markerToArray(e){return Ke(e)}};yu("gregory",Hr);var _u=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Wl(n){let e=_u.exec(n);if(e){let t=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(es(t)){let i=null;return e[13]&&(i=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:t,isTimeUnspecified:!e[6],timeZoneOffset:i}}}return null}var on=class{constructor(e){let t=this.timeZone=e.timeZone,i=t!=="local"&&t!=="UTC";e.namedTimeZoneImpl&&i&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!i||this.namedTimeZoneImpl),this.calendarSystem=bu(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 t=this.createMarkerMeta(e);return t===null?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):ce(yl(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let t=null;return typeof e=="number"?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=ce(e)),t===null||!es(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=Wl(e);if(t===null)return null;let{marker:i}=t,r=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?i=this.timestampToMarker(i.valueOf()-t.timeZoneOffset*60*1e3):r=t.timeZoneOffset),{marker:i,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let i=this.calendarSystem.markerToArray(e);return i[0]+=t.years,i[1]+=t.months,i[2]+=t.days,i[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(i)}subtract(e,t){let i=this.calendarSystem.markerToArray(e);return i[0]-=t.years,i[1]-=t.months,i[2]-=t.days,i[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(i)}addYears(e,t){let i=this.calendarSystem.markerToArray(e);return i[0]+=t,this.calendarSystem.arrayToMarker(i)}addMonths(e,t){let i=this.calendarSystem.markerToArray(e);return i[1]+=t,this.calendarSystem.arrayToMarker(i)}diffWholeYears(e,t){let{calendarSystem:i}=this;return Je(e)===Je(t)&&i.getMarkerDay(e)===i.getMarkerDay(t)&&i.getMarkerMonth(e)===i.getMarkerMonth(t)?i.getMarkerYear(t)-i.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:i}=this;return Je(e)===Je(t)&&i.getMarkerDay(e)===i.getMarkerDay(t)?i.getMarkerMonth(t)-i.getMarkerMonth(e)+(i.getMarkerYear(t)-i.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let i=this.diffWholeYears(e,t);return i!==null?{unit:"year",value:i}:(i=this.diffWholeMonths(e,t),i!==null?{unit:"month",value:i}:(i=Ll(e,t),i!==null?{unit:"week",value:i}:(i=It(e,t),i!==null?{unit:"day",value:i}:(i=Yd(e,t),rn(i)?{unit:"hour",value:i}:(i=Zd(e,t),rn(i)?{unit:"minute",value:i}:(i=$d(e,t),rn(i)?{unit:"second",value:i}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,i){let r;return i.years&&(r=this.diffWholeYears(e,t),r!==null)?r/Gd(i):i.months&&(r=this.diffWholeMonths(e,t),r!==null)?r/qd(i):i.days&&(r=It(e,t),r!==null)?r/Ot(i):(t.valueOf()-e.valueOf())/he(i)}startOf(e,t){return t==="year"?this.startOfYear(e):t==="month"?this.startOfMonth(e):t==="week"?this.startOfWeek(e):t==="day"?B(e):t==="hour"?Xd(e):t==="minute"?Kd(e):t==="second"?Jd(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)):eu(e,this.weekDow,this.weekDoy)}format(e,t,i={}){return t.format({marker:e,timeZoneOffset:i.forcedTzo!=null?i.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,i,r={}){return r.isEndExclusive&&(t=Oe(t,-1)),i.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo!=null?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:r.forcedEndTzo!=null?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let i=null;return t.omitTimeZoneOffset||(t.forcedTzo!=null?i=t.forcedTzo:i=this.offsetForMarker(e)),Ei(e,i,t.omitTime)}timestampToMarker(e){return this.timeZone==="local"?ce(yl(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):ce(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-bl(Ke(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Ke(e)):null}toDate(e,t){return this.timeZone==="local"?bl(Ke(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Ke(e))*1e3*60):new Date(e.valueOf()-(t||0))}},Ve=class{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,i;if(typeof e=="object"&&e){t=Object.assign({},this.iconClasses);for(i in e)t[i]=this.applyIconOverridePrefix(e[i]);this.iconClasses=t}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let i;return t&&this.rtlIconClasses?i=this.rtlIconClasses[e]||this.iconClasses[e]:i=this.iconClasses[e],i?`${this.baseIconClass} ${i}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}};Ve.prototype.classes={};Ve.prototype.iconClasses={};Ve.prototype.baseIconClass="";Ve.prototype.iconOverridePrefix="";function an(n){n();let e=A.debounceRendering,t=[];function i(r){t.push(r)}for(A.debounceRendering=i,$e(f(Fr,{}),document.createElement("div"));t.length;)t.shift()();A.debounceRendering=e}var Fr=class extends J{render(){return f("div",{})}componentDidMount(){this.setState({})}};function zl(n){let e=ei(n),t=e.Provider;return e.Provider=function(){let i=!this.getChildContext,r=t.apply(this,arguments);if(i){let s=[];this.shouldComponentUpdate=o=>{this.props.value!==o.value&&s.forEach(a=>{a.context=o.value,a.forceUpdate()})},this.sub=o=>{s.push(o);let a=o.componentWillUnmount;o.componentWillUnmount=()=>{s.splice(s.indexOf(o),1),a&&a.call(o)}}}return r},e}var hi=class{constructor(e,t,i,r){this.execFunc=e,this.emitter=t,this.scrollTime=i,this.scrollTimeReset=r,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}},we=zl({});function Gl(n,e,t,i,r,s,o,a,l,d,c,p,h,u){return{dateEnv:r,nowManager:s,options:t,pluginHooks:a,emitter:c,dispatch:l,getCurrentData:d,calendarApi:p,viewSpec:n,viewApi:e,dateProfileGenerator:i,theme:o,isRtl:t.direction==="rtl",addResizeHandler(m){c.on("_resize",m)},removeResizeHandler(m){c.off("_resize",m)},createScrollResponder(m){return new hi(m,c,I(t.scrollTime),t.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:u}}var An=(()=>{class n extends J{shouldComponentUpdate(t,i){return!li(this.props,t,this.propEquality)||!li(this.state,i,this.stateEquality)}safeSetState(t){li(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}return n.addPropsEquality=Cu,n.addStateEquality=Eu,n.contextType=we,n})();An.prototype.propEquality={};An.prototype.stateEquality={};var P=(()=>{class n extends An{}return n.contextType=we,n})();function Cu(n){let e=Object.create(this.prototype.propEquality);Object.assign(e,n),this.prototype.propEquality=e}function Eu(n){let e=Object.create(this.prototype.stateEquality);Object.assign(e,n),this.prototype.stateEquality=e}function ge(n,e){typeof n=="function"?n(e):n&&(n.current=e)}var ln=class extends P{constructor(){super(...arguments),this.id=We(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:t}=this.context,{generatorName:i}=this.props;(!t.customRenderingReplaces||!Br(i,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&ge(this.props.elRef,e)}}render(){let{props:e,context:t}=this,{options:i}=t,{customGenerator:r,defaultGenerator:s,renderProps:o}=e,a=ls(e,[],this.handleEl),l=!1,d,c=[],p;if(r!=null){let h=typeof r=="function"?r(o,f):r;if(h===!0)l=!0;else{let 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?mr(h):typeof h!="function")?d=h:p=h}}else l=!Br(e.generatorName,i);return l&&s&&(d=s(o)),this.queuedDomNodes=c,this.currentGeneratorMeta=p,f(e.elTag,a,d)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;let{props:i,context:r}=this,{handleCustomRendering:s,customRenderingMetaMap:o}=r.options;if(s){let a=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:o?.[i.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},i),{elClasses:(i.elClasses||[]).filter(Su)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:t}=this,i=this.base;if(!Pe(e,t)){t.forEach(Cn);for(let r of e)i.appendChild(r);this.currentDomNodes=e}}};ln.addPropsEquality({elClasses:Pe,elStyle:de,elAttrs:gu,renderProps:de});function Br(n,e){var t;return!!(e.handleCustomRendering&&n&&(!((t=e.customRenderingMetaMap)===null||t===void 0)&&t[n]))}function ls(n,e,t){let i=Object.assign(Object.assign({},n.elAttrs),{ref:t});return(n.elClasses||e)&&(i.className=(n.elClasses||[]).concat(e||[]).concat(i.className||[]).filter(Boolean).join(" ")),n.elStyle&&(i.style=n.elStyle),i}function Su(n){return!!n}var cs=zl(0),X=(()=>{class n extends J{constructor(){super(...arguments),this.InnerContent=wu.bind(void 0,this),this.handleEl=t=>{this.el=t,this.props.elRef&&(ge(this.props.elRef,t),t&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:t}=this,i=Du(t.classNameGenerator,t.renderProps);if(t.children){let r=ls(t,i,this.handleEl),s=t.children(this.InnerContent,t.renderProps,r);return t.elTag?f(t.elTag,r,s):s}else return f(ln,Object.assign(Object.assign({},t),{elRef:this.handleEl,elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(i),renderId:this.context}))}componentDidMount(){var t,i;this.el?(i=(t=this.props).didMount)===null||i===void 0||i.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var t,i;(i=(t=this.props).willUnmount)===null||i===void 0||i.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}return n.contextType=cs,n})();function wu(n,e){let t=n.props;return f(ln,Object.assign({renderProps:t.renderProps,generatorName:t.generatorName,customGenerator:t.customGenerator,defaultGenerator:t.defaultGenerator,renderId:n.context},e))}function Du(n,e){let t=typeof n=="function"?n(e):n||[];return typeof t=="string"?[t]:t}var Ae=class extends P{render(){let{props:e,context:t}=this,{options:i}=t,r={view:t.viewApi};return f(X,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...ds(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,classNameGenerator:i.viewClassNames,generatorName:void 0,didMount:i.viewDidMount,willUnmount:i.viewWillUnmount},()=>e.children)}};function ds(n){return[`fc-${n.type}-view`,"fc-view"]}function xu(n,e){let t=null,i=null;return n.start&&(t=e.createMarker(n.start)),n.end&&(i=e.createMarker(n.end)),!t&&!i||t&&i&&i<t?null:{start:t,end:i}}function El(n,e){let t=[],{start:i}=e,r,s;for(n.sort(Au),r=0;r<n.length;r+=1)s=n[r],s.start>i&&t.push({start:i,end:s.start}),s.end>i&&(i=s.end);return i<e.end&&t.push({start:i,end:e.end}),t}function Au(n,e){return n.start.valueOf()-e.start.valueOf()}function pe(n,e){let{start:t,end:i}=n,r=null;return e.start!==null&&(t===null?t=e.start:t=new Date(Math.max(t.valueOf(),e.start.valueOf()))),e.end!=null&&(i===null?i=e.end:i=new Date(Math.min(i.valueOf(),e.end.valueOf()))),(t===null||i===null||t<i)&&(r={start:t,end:i}),r}function ql(n,e){return(n.start===null?null:n.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(n.end===null?null:n.end.valueOf())===(e.end===null?null:e.end.valueOf())}function Ai(n,e){return(n.end===null||e.start===null||n.end>e.start)&&(n.start===null||e.end===null||n.start<e.end)}function Bt(n,e){return(n.start===null||e.start!==null&&e.start>=n.start)&&(n.end===null||e.end!==null&&e.end<=n.end)}function Ce(n,e){return(n.start===null||e>=n.start)&&(n.end===null||e<n.end)}function Ru(n,e){return e.start!=null&&n<e.start?e.start:e.end!=null&&n>=e.end?new Date(e.end.valueOf()-1):n}function Ql(n){let e=Math.floor(Ne(n.start,n.end))||1,t=B(n.start),i=G(t,e);return{start:t,end:i}}function Ri(n,e=I(0)){let t=null,i=null;if(n.end){i=B(n.end);let r=n.end.valueOf()-i.valueOf();r&&r>=he(e)&&(i=G(i,1))}return n.start&&(t=B(n.start),i&&i<=t&&(i=G(t,1))),{start:t,end:i}}function us(n){let e=Ri(n);return Ne(e.start,e.end)>1}function et(n,e,t,i){return i==="year"?I(t.diffWholeYears(n,e),"year"):i==="month"?I(t.diffWholeMonths(n,e),"month"):Bl(n,e)}var mt=class{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,i){let{dateEnv:r}=this.props,s=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,i)}buildNext(e,t,i){let{dateEnv:r}=this.props,s=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,i)}build(e,t,i=!0){let{props:r}=this,s,o,a,l,d,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),i&&(e=Ru(e,s)),o=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(o.unit),l=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),l=this.trimHiddenDays(l),d=l,r.showNonCurrentDates||(d=pe(d,o.range)),d=this.adjustActiveRange(d),d=pe(d,s),c=Ai(o.range,s),Ce(l,e)||(e=l.start),{currentDate:e,validRange:s,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:d,renderRange:l,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:i}=this,r=null,s=null,o=null,a;return i.duration?(r=i.duration,s=i.durationUnit,o=this.buildRangeFromDuration(e,t,r,s)):(a=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,a)):(o=this.buildCustomVisibleRange(e))?s=i.dateEnv.greatestWholeUnit(o.start,o.end).unit:(r=this.getFallbackDuration(),s=sn(r).unit,o=this.buildRangeFromDuration(e,t,r,s)),{duration:r,unit:s,range:o}}getFallbackDuration(){return I({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:i,slotMinTime:r,slotMaxTime:s}=this.props,{start:o,end:a}=e;return i&&(Ot(r)<0&&(o=B(o),o=t.add(o,r)),Ot(s)>1&&(a=B(a),a=G(a,-1),a=t.add(a,s))),{start:o,end:a}}buildRangeFromDuration(e,t,i,r){let{dateEnv:s,dateAlignment:o}=this.props,a,l,d;if(!o){let{dateIncrement:p}=this.props;p&&he(p)<he(i)?o=sn(p).unit:o=r}Ot(i)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,t),a=B(a));function c(){a=s.startOf(e,o),l=s.add(a,i),d={start:a,end:l}}return c(),this.trimHiddenDays(d)||(e=this.skipHiddenDays(e,t),c()),d}buildRangeFromDayCount(e,t,i){let{dateEnv:r,dateAlignment:s}=this.props,o=0,a=e,l;s&&(a=r.startOf(a,s)),a=B(a),a=this.skipHiddenDays(a,t),l=a;do l=G(l,1),this.isHiddenDay(l)||(o+=1);while(o<i);return{start:a,end:l}}buildCustomVisibleRange(e){let{props:t}=this,i=t.visibleRangeInput,r=typeof i=="function"?i.call(t.calendarApi,t.dateEnv.toDate(e)):i,s=this.refineRange(r);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,t,i){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,i;return t||((i=this.props.dateAlignment)?I(1,i):e||I({days:1}))}refineRange(e){if(e){let t=xu(e,this.props.dateEnv);return t&&(t=Ri(t)),t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],i=0,r;for(this.props.weekends===!1&&e.push(0,6),r=0;r<7;r+=1)(t[r]=e.indexOf(r)!==-1)||(i+=1);if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:i}=e;return t&&(t=this.skipHiddenDays(t)),i&&(i=this.skipHiddenDays(i,-1,!0)),t==null||i==null||t<i?{start:t,end:i}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,i=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(i?t:0)+7)%7];)e=G(e,t);return e}};function Rn(n,e,t,i){return{instanceId:We(),defId:n,range:e,forcedStartTzo:t??null,forcedEndTzo:i??null}}function Mu(n,e,t,i){for(let r=0;r<i.length;r+=1){let s=i[r].parse(n,t);if(s){let{allDay:o}=n;return o==null&&(o=e,o==null&&(o=s.allDayGuess,o==null&&(o=!1))),{allDay:o,duration:s.duration,typeData:s.typeData,typeId:r}}}return null}function vt(n,e,t){let{dateEnv:i,pluginHooks:r,options:s}=t,{defs:o,instances:a}=n;a=Le(a,l=>!o[l.defId].recurringDef);for(let l in o){let d=o[l];if(d.recurringDef){let{duration:c}=d.recurringDef;c||(c=d.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let p=Tu(d,c,e,i,r.recurringTypes);for(let h of p){let u=Rn(l,{start:h,end:i.add(h,c)});a[u.instanceId]=u}}}return{defs:o,instances:a}}function Tu(n,e,t,i,r){let o=r[n.recurringDef.typeId].expand(n.recurringDef.typeData,{start:i.subtract(t.start,e),end:t.end},i);return n.allDay&&(o=o.map(B)),o}var ci={id:String,groupId:String,title:String,url:String,interactive:Boolean},Yl={start:g,end:g,date:g,allDay:Boolean},ku=Object.assign(Object.assign(Object.assign({},ci),Yl),{extendedProps:g});function Zl(n,e,t,i,r=fs(t),s,o){let{refined:a,extra:l}=Mi(n,t,r),d=Iu(e,t),c=Mu(a,d,t.dateEnv,t.pluginHooks.recurringTypes);if(c){let h=cn(a,l,e?e.sourceId:"",c.allDay,!!c.duration,t,s);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let p=Ou(a,d,t,i);if(p){let h=cn(a,l,e?e.sourceId:"",p.allDay,p.hasEnd,t,s),u=Rn(h.defId,p.range,p.forcedStartTzo,p.forcedEndTzo);return o&&h.publicId&&o[h.publicId]&&(u.instanceId=o[h.publicId]),{def:h,instance:u}}return null}function Mi(n,e,t=fs(e)){return wi(n,t)}function fs(n){return Object.assign(Object.assign(Object.assign({},pi),ku),n.pluginHooks.eventRefiners)}function cn(n,e,t,i,r,s,o){let a={title:n.title||"",groupId:n.groupId||"",publicId:n.id||"",url:n.url||"",recurringDef:null,defId:(o&&n.id?o[n.id]:"")||We(),sourceId:t,allDay:i,hasEnd:r,interactive:n.interactive,ui:Lt(n,s),extendedProps:Object.assign(Object.assign({},n.extendedProps||{}),e)};for(let l of s.pluginHooks.eventDefMemberAdders)Object.assign(a,l(n));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Ou(n,e,t,i){let{allDay:r}=n,s,o=null,a=!1,l,d=null,c=n.start!=null?n.start:n.date;if(s=t.dateEnv.createMarkerMeta(c),s)o=s.marker;else if(!i)return null;return n.end!=null&&(l=t.dateEnv.createMarkerMeta(n.end)),r==null&&(e!=null?r=e:r=(!s||s.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),r&&o&&(o=B(o)),l&&(d=l.marker,r&&(d=B(d)),o&&d<=o&&(d=null)),d?a=!0:i||(a=t.options.forceEventDuration||!1,d=t.dateEnv.add(o,r?t.options.defaultAllDayEventDuration:t.options.defaultTimedEventDuration)),{allDay:r,hasEnd:a,range:{start:o,end:d},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function Iu(n,e){let t=null;return n&&(t=n.defaultAllDay),t==null&&(t=e.options.defaultAllDay),t}function dn(n,e,t,i,r,s){let o=ne(),a=fs(t);for(let l of n){let d=Zl(l,e,t,i,a,r,s);d&&un(d,o)}return o}function un(n,e=ne()){return e.defs[n.def.defId]=n.def,n.instance&&(e.instances[n.instance.instanceId]=n.instance),e}function Mn(n,e){let t=n.instances[e];if(t){let i=n.defs[t.defId],r=ki(n,s=>Pu(i,s));return r.defs[i.defId]=i,r.instances[t.instanceId]=t,r}return ne()}function Pu(n,e){return!!(n.groupId&&n.groupId===e.groupId)}function ne(){return{defs:{},instances:{}}}function Ti(n,e){return{defs:Object.assign(Object.assign({},n.defs),e.defs),instances:Object.assign(Object.assign({},n.instances),e.instances)}}function ki(n,e){let t=Le(n.defs,e),i=Le(n.instances,r=>t[r.defId]);return{defs:t,instances:i}}function Nu(n,e){let{defs:t,instances:i}=n,r={},s={};for(let o in t)e.defs[o]||(r[o]=t[o]);for(let o in i)!e.instances[o]&&r[i[o].defId]&&(s[o]=i[o]);return{defs:r,instances:s}}function Hu(n,e){return Array.isArray(n)?dn(n,null,e,!0):typeof n=="object"&&n?dn([n],null,e,!0):n!=null?String(n):null}function Lr(n){return Array.isArray(n)?n:typeof n=="string"?n.split(/\s+/):[]}var pi={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:g,overlap:g,allow:g,className:Lr,classNames:Lr,color:String,backgroundColor:String,borderColor:String,textColor:String},Fu={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Lt(n,e){let t=Hu(n.constraint,e);return{display:n.display||null,startEditable:n.startEditable!=null?n.startEditable:n.editable,durationEditable:n.durationEditable!=null?n.durationEditable:n.editable,constraints:t!=null?[t]:[],overlap:n.overlap!=null?n.overlap:null,allows:n.allow!=null?[n.allow]:[],backgroundColor:n.backgroundColor||n.color||"",borderColor:n.borderColor||n.color||"",textColor:n.textColor||"",classNames:(n.className||[]).concat(n.classNames||[])}}function hs(n){return n.reduce(Bu,Fu)}function Bu(n,e){return{display:e.display!=null?e.display:n.display,startEditable:e.startEditable!=null?e.startEditable:n.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:n.durationEditable,constraints:n.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:n.overlap,allows:n.allows.concat(e.allows),backgroundColor:e.backgroundColor||n.backgroundColor,borderColor:e.borderColor||n.borderColor,textColor:e.textColor||n.textColor,classNames:n.classNames.concat(e.classNames)}}var Lu={id:String,defaultAllDay:Boolean,url:String,format:String,events:g,eventDataTransform:g,success:g,failure:g};function ps(n,e,t=gs(e)){let i;if(typeof n=="string"?i={url:n}:typeof n=="function"||Array.isArray(n)?i={events:n}:typeof n=="object"&&n&&(i=n),i){let{refined:r,extra:s}=wi(i,t),o=Vu(r,e);if(o)return{_raw:n,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:We(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Lt(r,e),extendedProps:s}}return null}function gs(n){return Object.assign(Object.assign(Object.assign({},pi),Lu),n.pluginHooks.eventSourceRefiners)}function Vu(n,e){let t=e.pluginHooks.eventSourceDefs;for(let i=t.length-1;i>=0;i-=1){let s=t[i].parseMeta(n);if(s)return{sourceDefId:i,meta:s}}return null}function $l(n,e,t,i,r){switch(e.type){case"RECEIVE_EVENTS":return Uu(n,t[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return ju(n,t[e.sourceId],e.rawEvents,i.activeRange,r);case"ADD_EVENTS":return Wu(n,e.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Ti(n,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?vt(n,i.activeRange,r):n;case"REMOVE_EVENTS":return Nu(n,e.eventStore);case"REMOVE_EVENT_SOURCE":return Kl(n,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return ki(n,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return ne();default:return n}}function Uu(n,e,t,i,r,s){if(e&&t===e.latestFetchId){let o=dn(Xl(r,e,s),e,s);return i&&(o=vt(o,i,s)),Ti(Kl(n,e.sourceId),o)}return n}function ju(n,e,t,i,r){let{defIdMap:s,instanceIdMap:o}=Gu(n),a=dn(Xl(t,e,r),e,r,!1,s,o);return vt(a,i,r)}function Xl(n,e,t){let i=t.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(n=Sl(n,r)),i&&(n=Sl(n,i)),n}function Sl(n,e){let t;if(!e)t=n;else{t=[];for(let i of n){let r=e(i);r?t.push(r):r==null&&t.push(i)}}return t}function Wu(n,e,t,i){return t&&(e=vt(e,t,i)),Ti(n,e)}function ms(n,e,t){let{defs:i}=n,r=Ee(n.instances,s=>i[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:t.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:t.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:t.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:t.canComputeOffset?null:s.forcedEndTzo}));return{defs:i,instances:r}}function Kl(n,e){return ki(n,t=>t.sourceId!==e)}function zu(n,e){return{defs:n.defs,instances:Le(n.instances,t=>!e[t.instanceId])}}function Gu(n){let{defs:e,instances:t}=n,i={},r={};for(let s in e){let o=e[s],{publicId:a}=o;a&&(i[a]=s)}for(let s in t){let o=t[s],a=e[o.defId],{publicId:l}=a;l&&(r[l]=s)}return{defIdMap:i,instanceIdMap:r}}var Ue=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){qu(this.handlers,e,t)}off(e,t){Qu(this.handlers,e,t)}trigger(e,...t){let i=this.handlers[e]||[],r=this.options&&this.options[e],s=[].concat(r||[],i);for(let o of s)o.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}};function qu(n,e,t){(n[e]||(n[e]=[])).push(t)}function Qu(n,e,t){t?n[e]&&(n[e]=n[e].filter(i=>i!==t)):delete n[e]}var Yu={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function vs(n,e){return dn(Zu(n),null,e)}function Zu(n){let e;return n===!0?e=[{}]:Array.isArray(n)?e=n.filter(t=>t.daysOfWeek):typeof n=="object"&&n?e=[n]:e=[],e=e.map(t=>Object.assign(Object.assign({},Yu),t)),e}function Oi(n,e,t){t.emitter.trigger("select",Object.assign(Object.assign({},ys(n,t)),{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view}))}function $u(n,e){e.emitter.trigger("unselect",{jsEvent:n?n.origEvent:null,view:e.viewApi||e.calendarApi.view})}function ys(n,e){let t={};for(let i of e.pluginHooks.dateSpanTransforms)Object.assign(t,i(n,e));return Object.assign(t,cf(n,e.dateEnv)),t}function gi(n,e,t){let{dateEnv:i,options:r}=t,s=e;return n?(s=B(s),s=i.add(s,r.defaultAllDayEventDuration)):s=i.add(s,r.defaultTimedEventDuration),s}function Tn(n,e,t,i){let r=mi(n.defs,e),s=ne();for(let o in n.defs){let a=n.defs[o];s.defs[o]=Xu(a,r[o],t,i)}for(let o in n.instances){let a=n.instances[o],l=s.defs[a.defId];s.instances[o]=Ku(a,l,r[a.defId],t,i)}return s}function Xu(n,e,t,i){let r=t.standardProps||{};r.hasEnd==null&&e.durationEditable&&(t.startDelta||t.endDelta)&&(r.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},n),r),{ui:Object.assign(Object.assign({},n.ui),r.ui)});t.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),t.extendedProps));for(let o of i.pluginHooks.eventDefMutationAppliers)o(s,t,i);return!s.hasEnd&&i.options.forceEventDuration&&(s.hasEnd=!0),s}function Ku(n,e,t,i,r){let{dateEnv:s}=r,o=i.standardProps&&i.standardProps.allDay===!0,a=i.standardProps&&i.standardProps.hasEnd===!1,l=Object.assign({},n);return o&&(l.range=Ql(l.range)),i.datesDelta&&t.startEditable&&(l.range={start:s.add(l.range.start,i.datesDelta),end:s.add(l.range.end,i.datesDelta)}),i.startDelta&&t.durationEditable&&(l.range={start:s.add(l.range.start,i.startDelta),end:l.range.end}),i.endDelta&&t.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,i.endDelta)}),a&&(l.range={start:l.range.start,end:gi(e.allDay,l.range.start,r)}),e.allDay&&(l.range={start:B(l.range.start),end:B(l.range.end)}),l.range.end<l.range.start&&(l.range.end=gi(e.allDay,l.range.start,r)),l}var Xe=class{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}},W=class n{constructor(e,t,i){this._context=e,this._def=t,this._instance=i||null}setProp(e,t){if(e in Yl)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")t=ci[e](t),this.mutate({standardProps:{publicId:t}});else if(e in ci)t=ci[e](t),this.mutate({standardProps:{[e]:t}});else if(e in pi){let i=pi[e](t);e==="color"?i={backgroundColor:t,borderColor:t}:e==="editable"?i={startEditable:t,durationEditable:t}:i={[e]:t},this.mutate({standardProps:{ui:i}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:i}=this._context,r=i.createMarker(e);if(r&&this._instance){let s=this._instance.range,o=et(s.start,r,i,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}}setEnd(e,t={}){let{dateEnv:i}=this._context,r;if(!(e!=null&&(r=i.createMarker(e),!r))&&this._instance)if(r){let s=et(this._instance.range.end,r,i,t.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,i={}){let{dateEnv:r}=this._context,s={allDay:i.allDay},o=r.createMarker(e),a;if(o&&!(t!=null&&(a=r.createMarker(t),!a))&&this._instance){let l=this._instance.range;i.allDay===!0&&(l=Ql(l));let d=et(l.start,o,r,i.granularity);if(a){let c=et(l.end,a,r,i.granularity);zd(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 t=I(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=I(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=I(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let i={allDay:e},{maintainDuration:r}=t;r==null&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(i.hasEnd=r),this.mutate({standardProps:i})}formatRange(e){let{dateEnv:t}=this._context,i=this._instance,r=L(e);return this._def.hasEnd?t.formatRange(i.range.start,i.range.end,r,{forcedStartTzo:i.forcedStartTzo,forcedEndTzo:i.forcedEndTzo}):t.format(i.range.start,r,{forcedTzo:i.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let i=this._def,r=this._context,{eventStore:s}=r.getCurrentData(),o=Mn(s,t.instanceId);o=Tn(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let l=new n(r,i,t);this._def=o.defs[i.defId],this._instance=o.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:o}),r.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:He(o,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,t=Jl(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new Xe(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:i}=t,{startStr:r,endStr:s}=this,o={allDay:t.allDay};return t.title&&(o.title=t.title),r&&(o.start=r),s&&(o.end=s),t.publicId&&(o.id=t.publicId),t.groupId&&(o.groupId=t.groupId),t.url&&(o.url=t.url),i.display&&i.display!=="auto"&&(o.display=i.display),e.collapseColor&&i.backgroundColor&&i.backgroundColor===i.borderColor?o.color=i.backgroundColor:(i.backgroundColor&&(o.backgroundColor=i.backgroundColor),i.borderColor&&(o.borderColor=i.borderColor)),i.textColor&&(o.textColor=i.textColor),i.classNames.length&&(o.classNames=i.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(o,t.extendedProps):o.extendedProps=t.extendedProps),o}toJSON(){return this.toPlainObject()}};function Jl(n){let e=n._def,t=n._instance;return{defs:{[e.defId]:e},instances:t?{[t.instanceId]:t}:{}}}function He(n,e,t){let{defs:i,instances:r}=n,s=[],o=t?t.instanceId:"";for(let a in r){let l=r[a],d=i[l.defId];l.instanceId!==o&&s.push(new W(e,d,l))}return s}function Pt(n,e,t,i){let r={},s={},o={},a=[],l=[],d=mi(n.defs,e);for(let c in n.defs){let p=n.defs[c];d[p.defId].display==="inverse-background"&&(p.groupId?(r[p.groupId]=[],o[p.groupId]||(o[p.groupId]=p)):s[c]=[])}for(let c in n.instances){let p=n.instances[c],h=n.defs[p.defId],u=d[h.defId],m=p.range,_=!h.allDay&&i?Ri(m,i):m,b=pe(_,t);b&&(u.display==="inverse-background"?h.groupId?r[h.groupId].push(b):s[p.defId].push(b):u.display!=="none"&&(u.display==="background"?a:l).push({def:h,ui:u,instance:p,range:b,isStart:_.start&&_.start.valueOf()===b.start.valueOf(),isEnd:_.end&&_.end.valueOf()===b.end.valueOf()}))}for(let c in r){let p=r[c],h=El(p,t);for(let u of h){let m=o[c],_=d[m.defId];a.push({def:m,ui:_,instance:null,range:u,isStart:!1,isEnd:!1})}}for(let c in s){let p=s[c],h=El(p,t);for(let u of h)a.push({def:n.defs[c],ui:d[c],instance:null,range:u,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function bs(n){return n.ui.display==="background"||n.ui.display==="inverse-background"}function wl(n,e){n.fcSeg=e}function ze(n){return n.fcSeg||n.parentNode.fcSeg||null}function mi(n,e){return Ee(n,t=>ec(t,e))}function ec(n,e){let t=[];return e[""]&&t.push(e[""]),e[n.defId]&&t.push(e[n.defId]),t.push(n.ui),hs(t)}function At(n,e){let t=n.map(Ju);return t.sort((i,r)=>Nl(i,r,e)),t.map(i=>i._seg)}function Ju(n){let{eventRange:e}=n,t=e.def,i=e.instance?e.instance.range:e.range,r=i.start?i.start.valueOf():0,s=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},t.extendedProps),t),{id:t.publicId,start:r,end:s,duration:s-r,allDay:Number(t.allDay),_seg:n})}function ef(n,e){let{pluginHooks:t}=e,i=t.isDraggableTransformers,{def:r,ui:s}=n.eventRange,o=s.startEditable;for(let a of i)o=a(o,r,s,e);return o}function tf(n,e){return n.isStart&&n.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function nf(n,e){return n.isEnd&&n.eventRange.ui.durationEditable}function lt(n,e,t,i,r,s,o){let{dateEnv:a,options:l}=t,{displayEventTime:d,displayEventEnd:c}=l,p=n.eventRange.def,h=n.eventRange.instance;d==null&&(d=i!==!1),c==null&&(c=r!==!1);let u=h.range.start,m=h.range.end,_=s||n.start||n.eventRange.range.start,b=o||n.end||n.eventRange.range.end,E=B(u).valueOf()===B(_).valueOf(),D=B(Oe(m,-1)).valueOf()===B(Oe(b,-1)).valueOf();return d&&!p.allDay&&(E||D)?(_=E?u:_,b=D?m:b,c&&p.hasEnd?a.formatRange(_,b,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:o?null:h.forcedEndTzo}):a.format(_,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function me(n,e,t){let i=n.eventRange.range;return{isPast:i.end<=(t||e.start),isFuture:i.start>=(t||e.end),isToday:e&&Ce(e,i.start)}}function rf(n){let e=["fc-event"];return n.isMirror&&e.push("fc-event-mirror"),n.isDraggable&&e.push("fc-event-draggable"),(n.isStartResizable||n.isEndResizable)&&e.push("fc-event-resizable"),n.isDragging&&e.push("fc-event-dragging"),n.isResizing&&e.push("fc-event-resizing"),n.isSelected&&e.push("fc-event-selected"),n.isStart&&e.push("fc-event-start"),n.isEnd&&e.push("fc-event-end"),n.isPast&&e.push("fc-event-past"),n.isToday&&e.push("fc-event-today"),n.isFuture&&e.push("fc-event-future"),e}function kn(n){return n.instance?n.instance.instanceId:`${n.def.defId}:${n.range.start.toISOString()}`}function Vt(n,e){let{def:t,instance:i}=n.eventRange,{url:r}=t;if(r)return{href:r};let{emitter:s,options:o}=e,{eventInteractive:a}=o;return a==null&&(a=t.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?Il(l=>{s.trigger("eventClick",{el:l.target,event:new W(e,t,i),jsEvent:l,view:e.viewApi})}):{}}var sf={start:g,end:g,allDay:Boolean};function of(n,e,t){let i=af(n,e),{range:r}=i;if(!r.start)return null;if(!r.end){if(t==null)return null;r.end=e.add(r.start,t)}return i}function af(n,e){let{refined:t,extra:i}=wi(n,sf),r=t.start?e.createMarkerMeta(t.start):null,s=t.end?e.createMarkerMeta(t.end):null,{allDay:o}=t;return o==null&&(o=r&&r.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:s?s.marker:null},allDay:o},i)}function _s(n,e){return ql(n.range,e.range)&&n.allDay===e.allDay&&lf(n,e)}function lf(n,e){for(let t in e)if(t!=="range"&&t!=="allDay"&&n[t]!==e[t])return!1;for(let t in n)if(!(t in e))return!1;return!0}function cf(n,e){return Object.assign(Object.assign({},tc(n.range,e,n.allDay)),{allDay:n.allDay})}function Cs(n,e,t){return Object.assign(Object.assign({},tc(n,e,t)),{timeZone:e.timeZone})}function tc(n,e,t){return{start:e.toDate(n.start),end:e.toDate(n.end),startStr:e.formatIso(n.start,{omitTime:t}),endStr:e.formatIso(n.end,{omitTime:t})}}function df(n,e,t){let i=Mi({editable:!1},t),r=cn(i.refined,i.extra,"",n.allDay,!0,t);return{def:r,ui:ec(r,e),instance:Rn(r.defId,n.range),range:n.range,isStart:!0,isEnd:!0}}function Es(n,e,t){let i=!1,r=function(a){i||(i=!0,e(a))},s=function(a){i||(i=!0,t(a))},o=n(r,s);o&&typeof o.then=="function"&&o.then(r,s)}var vi=class extends Error{constructor(e,t){super(e),this.response=t}};function Ss(n,e,t){n=n.toUpperCase();let i={method:n};return n==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(t):(i.body=new URLSearchParams(t),i.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,i).then(r=>{if(r.ok)return r.json().then(s=>[s,r],()=>{throw new vi("Failure parsing JSON",r)});throw new vi("Request failed",r)})}var Dr;function ws(){return Dr==null&&(Dr=uf()),Dr}function uf(){if(typeof document>"u")return!0;let n=document.createElement("div");n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.innerHTML="<table><tr><td><div></div></td></tr></table>",n.querySelector("table").style.height="100px",n.querySelector("div").style.height="100%",document.body.appendChild(n);let t=n.querySelector("div").offsetHeight>0;return document.body.removeChild(n),t}var fn=class extends P{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{an(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{an(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:i}=this.state,r=i||t.height==="auto"||t.contentHeight==="auto",s=!r&&t.height!=null?t.height:"",o=["fc",i?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return ws()||o.push("fc-liquid-hack"),e.children(o,s,r,i)}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)}},Re=class{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}};function nc(n,e){return{component:n,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function On(n){return{[n.component.uid]:n}}var Ut={},Te=(()=>{class n extends J{constructor(t,i){super(t,i),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:t,state:i}=this;return t.children(i.nowDate,i.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(t){t.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:t,context:i}=this,r=i.nowManager.getDateMarker(),{nowIndicatorSnap:s}=i.options;s==="auto"&&(s=/year|month|week|day/.test(t.unit)||(t.unitValue||1)===1);let o,a;return s?(o=i.dateEnv.startOf(r,t.unit),a=i.dateEnv.add(o,I(1,t.unit)).valueOf()-r.valueOf()):(o=r,a=1e3*60),a=Math.min(1e3*60*60*24,a),{state:{nowDate:o,todayRange:ff(o)},waitMs:a}}setTimeout(t=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{let i=this.computeTiming();this.setState(i.state,()=>{this.setTimeout(i.waitMs)})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}return n.contextType=we,n})();function ff(n){let e=B(n),t=G(e,1);return{start:e,end:t}}var hn=class{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:i}=this;i.currentCalendarOptionsRefiners[e]?i.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:i}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:i.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let i=this.getCurrentData(),r;t=t||"day",r=i.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),r?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:i}=this.getCurrentData(),r=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]),s,o;for(let a in t)r.push(a);for(s=0;s<r.length;s+=1)if(o=t[r[s]],o&&o.singleUnit===e)return o;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 t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),i=I(e);i&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,i)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:i}=this.getCurrentData();return i.format(i.createMarker(e),L(t))}formatRange(e,t,i){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),L(i),i)}formatIso(e,t){let{dateEnv:i}=this.getCurrentData();return i.formatIso(i.createMarker(e),{omitTime:t})}select(e,t){let i;t==null?e.start!=null?i=e:i={start:e,end:null}:i={start:e,end:t};let r=this.getCurrentData(),s=of(i,r.dateEnv,I({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Oi(s,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),$u(e,t))}addEvent(e,t){if(e instanceof W){let o=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[o.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:un({def:o,instance:a})}),this.triggerEventAdd(e)),e}let i=this.getCurrentData(),r;if(t instanceof Xe)r=t.internalEventSource;else if(typeof t=="boolean")t&&([r]=xi(i.eventSources));else if(t!=null){let o=this.getEventSourceById(t);if(!o)return console.warn(`Could not find an event source with ID "${t}"`),null;r=o.internalEventSource}let s=Zl(e,r,i,!1);if(s){let o=new W(i,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:un(s)}),this.triggerEventAdd(o),o}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Jl(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:i,instances:r}=t.eventStore;e=String(e);for(let s in i){let o=i[s];if(o.publicId===e){if(o.recurringDef)return new W(t,o,null);for(let a in r){let l=r[a];if(l.defId===o.defId)return new W(t,o,l)}}}return null}getEvents(){let e=this.getCurrentData();return He(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,i=[];for(let r in t)i.push(new Xe(e,t[r]));return i}getEventSourceById(e){let t=this.getCurrentData(),i=t.eventSources;e=String(e);for(let r in i)if(i[r].publicId===e)return new Xe(t,i[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Xe)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let i=ps(e,t);return i?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[i]}),new Xe(t,i)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=I(e);t&&this.trigger("_scrollRequest",{time:t})}};function Ds(n,e){return n.left>=e.left&&n.left<e.right&&n.top>=e.top&&n.top<e.bottom}function Ii(n,e){let t={left:Math.max(n.left,e.left),right:Math.min(n.right,e.right),top:Math.max(n.top,e.top),bottom:Math.min(n.bottom,e.bottom)};return t.left<t.right&&t.top<t.bottom?t:!1}function xs(n,e){return{left:Math.min(Math.max(n.left,e.left),e.right),top:Math.min(Math.max(n.top,e.top),e.bottom)}}function As(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function Rs(n,e){return{left:n.left-e.left,top:n.top-e.top}}var xr=ne(),pn=class{constructor(){this.getKeysForEventDefs=x(this._getKeysForEventDefs),this.splitDateSelection=x(this._splitDateSpan),this.splitEventStore=x(this._splitEventStore),this.splitIndividualUi=x(this._splitIndividualUi),this.splitEventDrag=x(this._splitInteraction),this.splitEventResize=x(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),i=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,i),o=this.splitEventStore(e.eventStore,i),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),d={};this.eventUiBuilders=Ee(t,(c,p)=>this.eventUiBuilders[p]||x(hf));for(let c in t){let p=t[c],h=o[c]||xr,u=this.eventUiBuilders[c];d[c]={businessHours:p.businessHours||e.businessHours,dateSelection:r[c]||null,eventStore:h,eventUiBases:u(e.eventUiBases[""],p.ui,s[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return d}_splitDateSpan(e){let t={};if(e){let i=this.getKeysForDateSpan(e);for(let r of i)t[r]=e}return t}_getKeysForEventDefs(e){return Ee(e.defs,t=>this.getKeysForEventDef(t))}_splitEventStore(e,t){let{defs:i,instances:r}=e,s={};for(let o in i)for(let a of t[o])s[a]||(s[a]=ne()),s[a].defs[o]=i[o];for(let o in r){let a=r[o];for(let l of t[a.defId])s[l]&&(s[l].instances[o]=a)}return s}_splitIndividualUi(e,t){let i={};for(let r in e)if(r)for(let s of t[r])i[s]||(i[s]={}),i[s][r]=e[r];return i}_splitInteraction(e){let t={};if(e){let i=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,r),o=a=>{t[a]||(t[a]={affectedEvents:i[a]||xr,mutatedEvents:s[a]||xr,isEvent:e.isEvent})};for(let a in i)o(a);for(let a in s)o(a)}return t}};function hf(n,e,t){let i=[];n&&i.push(n),e&&i.push(e);let r={"":hs(i)};return t&&Object.assign(r,t),r}function In(n,e,t,i){return{dow:n.getUTCDay(),isDisabled:!!(i&&(!i.activeRange||!Ce(i.activeRange,n))),isOther:!!(i&&!Ce(i.currentRange,n)),isToday:!!(e&&Ce(e,n)),isPast:!!(t?n<t:e&&n<e.start),isFuture:!!(t?n>t:e&&n>=e.end)}}function jt(n,e){let t=["fc-day",`fc-day-${Qd[n.dow]}`];return n.isDisabled?t.push("fc-day-disabled"):(n.isToday&&(t.push("fc-day-today"),t.push(e.getClass("today"))),n.isPast&&t.push("fc-day-past"),n.isFuture&&t.push("fc-day-future"),n.isOther&&t.push("fc-day-other")),t}var pf=L({year:"numeric",month:"long",day:"numeric"}),gf=L({week:"long"});function Fe(n,e,t="day",i=!0){let{dateEnv:r,options:s,calendarApi:o}=n,a=r.format(e,t==="week"?gf:pf);if(s.navLinks){let l=r.toDate(e),d=c=>{let p=t==="day"?s.navLinkDayClick:t==="week"?s.navLinkWeekClick:null;typeof p=="function"?p.call(o,r.toDate(e),c):(typeof p=="string"&&(t=p),o.zoomTo(e,t))};return Object.assign({title:Ht(s.navLinkHint,[a,l],a),"data-navlink":""},i?Ol(d):{onClick:d})}return{"aria-label":a}}var Ar=null;function ic(){return Ar===null&&(Ar=mf()),Ar}function mf(){let n=document.createElement("div");xt(n,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),n.innerHTML="<div></div>",document.body.appendChild(n);let t=n.firstChild.getBoundingClientRect().left>n.getBoundingClientRect().left;return Cn(n),t}var Rr;function rc(){return Rr||(Rr=vf()),Rr}function vf(){let n=document.createElement("div");n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",document.body.appendChild(n);let e=sc(n);return document.body.removeChild(n),e}function sc(n){return{x:n.offsetHeight-n.clientHeight,y:n.offsetWidth-n.clientWidth}}function oc(n,e=!1){let t=window.getComputedStyle(n),i=parseInt(t.borderLeftWidth,10)||0,r=parseInt(t.borderRightWidth,10)||0,s=parseInt(t.borderTopWidth,10)||0,o=parseInt(t.borderBottomWidth,10)||0,a=sc(n),l=a.y-i-r,d=a.x-s-o,c={borderLeft:i,borderRight:r,borderTop:s,borderBottom:o,scrollbarBottom:d,scrollbarLeft:0,scrollbarRight:0};return ic()&&t.direction==="rtl"?c.scrollbarLeft=l:c.scrollbarRight=l,e&&(c.paddingLeft=parseInt(t.paddingLeft,10)||0,c.paddingRight=parseInt(t.paddingRight,10)||0,c.paddingTop=parseInt(t.paddingTop,10)||0,c.paddingBottom=parseInt(t.paddingBottom,10)||0),c}function Ms(n,e=!1,t){let i=t?n.getBoundingClientRect():Pn(n),r=oc(n,e),s={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(s.left+=r.paddingLeft,s.right-=r.paddingRight,s.top+=r.paddingTop,s.bottom-=r.paddingBottom),s}function Pn(n){let e=n.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function yf(n){let e=Pi(n),t=n.getBoundingClientRect();for(let i of e){let r=Ii(t,i.getBoundingClientRect());if(r)t=r;else return null}return t}function Pi(n){let e=[];for(;n instanceof HTMLElement;){let t=window.getComputedStyle(n);if(t.position==="fixed")break;/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)&&e.push(n),n=n.parentNode}return e}var Me=class{constructor(e,t,i,r){this.els=t;let s=this.originClientRect=e.getBoundingClientRect();i&&this.buildElHorizontals(s.left),r&&this.buildElVerticals(s.top)}buildElHorizontals(e){let t=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();t.push(s.left-e),i.push(s.right-e)}this.lefts=t,this.rights=i}buildElVerticals(e){let t=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();t.push(s.top-e),i.push(s.bottom-e)}this.tops=t,this.bottoms=i}leftToIndex(e){let{lefts:t,rights:i}=this,r=t.length,s;for(s=0;s<r;s+=1)if(e>=t[s]&&e<i[s])return s}topToIndex(e){let{tops:t,bottoms:i}=this,r=t.length,s;for(s=0;s<r;s+=1)if(e>=t[s]&&e<i[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return si(this.tops||[],e.tops||[])&&si(this.bottoms||[],e.bottoms||[])&&si(this.lefts||[],e.lefts||[])&&si(this.rights||[],e.rights||[])}};function si(n,e){let t=n.length;if(t!==e.length)return!1;for(let i=0;i<t;i++)if(Math.round(n[i])!==Math.round(e[i]))return!1;return!0}var yt=class{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}},gn=class extends yt{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}},mn=class extends yt{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}},ee=class extends P{constructor(){super(...arguments),this.uid=We()}prepareHits(){}queryHit(e,t,i,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!$(e,".fc-event-mirror")}isValidDateDownEl(e){return!$(e,".fc-event:not(.fc-bg-event)")&&!$(e,".fc-more-link")&&!$(e,"a[data-navlink]")&&!$(e,".fc-popover")}};var bt=class{constructor(e=t=>t.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let i of e)this.insertEntry(i,t);return t}insertEntry(e,t){let i=this.findInsertion(e);this.isInsertionValid(i,e)?this.insertEntryAt(e,i):this.handleInvalidInsertion(i,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,i){if(this.allowReslicing&&e.touchingEntry){let r=Object.assign(Object.assign({},t),{span:Nn(t.span,e.touchingEntry.span)});i.push(r),this.splitEntry(t,e.touchingEntry,i)}else i.push(t)}splitEntry(e,t,i){let r=e.span,s=t.span;r.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:s.start}},i),r.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:r.end}},i)}insertEntryAt(e,t){let{entriesByLevel:i,levelCoords:r}=this;t.lateral===-1?(Mr(r,t.level,t.levelCoord),Mr(i,t.level,[e])):Mr(i[t.level],t.lateral,e),this.stackCnts[Ie(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:i,strictOrder:r,stackCnts:s}=this,o=t.length,a=0,l=-1,d=-1,c=null,p=0;for(let m=0;m<o;m+=1){let _=t[m];if(!r&&_>=a+this.getEntryThickness(e))break;let b=i[m],E,D=yn(b,e.span.start,vn),O=D[0]+D[1];for(;(E=b[O])&&E.span.start<e.span.end;){let M=_+this.getEntryThickness(E);M>a&&(a=M,c=E,l=m,d=O),M===a&&(p=Math.max(p,s[Ie(E)]+1)),O+=1}}let h=0;if(c)for(h=l+1;h<o&&t[h]<a;)h+=1;let u=-1;return h<o&&t[h]===a&&(u=yn(i[h],e.span.end,vn)[0]),{touchingLevel:l,touchingLateral:d,touchingEntry:c,stackCnt:p,levelCoord:a,level:h,lateral:u}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,i=e.length,r=[];for(let s=0;s<i;s+=1){let o=e[s],a=t[s];for(let l of o)r.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:a}))}return r}};function vn(n){return n.span.end}function Ie(n){return n.index+":"+n.span.start}function Ts(n){let e=[];for(let t of n){let i=[],r={span:t.span,entries:[t]};for(let s of e)Nn(s.span,r.span)?r={entries:s.entries.concat(r.entries),span:bf(s.span,r.span)}:i.push(s);i.push(r),e=i}return e}function bf(n,e){return{start:Math.min(n.start,e.start),end:Math.max(n.end,e.end)}}function Nn(n,e){let t=Math.max(n.start,e.start),i=Math.min(n.end,e.end);return t<i?{start:t,end:i}:null}function Mr(n,e,t){n.splice(e,0,t)}function yn(n,e,t){let i=0,r=n.length;if(!r||e<t(n[i]))return[0,0];if(e>t(n[r-1]))return[r,0];for(;i<r;){let s=Math.floor(i+(r-i)/2),o=t(n[s]);if(e<o)r=s;else if(e>o)i=s+1;else return[s,1]}return[i,0]}var bn=class{constructor(e,t){this.emitter=new Ue}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}},Hn={};function ac(n,e){return!n||e>10?L({weekday:"short"}):e>1?L({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):L({weekday:"long"})}var lc="fc-col-header-cell";function cc(n){return n.text}var yi=class extends P{render(){let{dateEnv:e,options:t,theme:i,viewApi:r}=this.context,{props:s}=this,{date:o,dateProfile:a}=s,l=In(o,s.todayRange,null,a),d=[lc].concat(jt(l,i)),c=e.format(o,s.dayHeaderFormat),p=!l.isDisabled&&s.colCnt>1?Fe(this.context,o):{},h=e.toDate(o);e.namedTimeZoneImpl&&(h=Oe(h,36e5));let u=Object.assign(Object.assign(Object.assign({date:h,view:r},s.extraRenderProps),{text:c}),l);return f(X,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":l.isDisabled?void 0:st(o)},s.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:cc,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},m=>f("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&f(m,{elTag:"a",elAttrs:p,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}},_f=L({weekday:"long"}),bi=class extends P{render(){let{props:e}=this,{dateEnv:t,theme:i,viewApi:r,options:s}=this.context,o=G(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=t.format(o,e.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:o},a),{view:r}),e.extraRenderProps),{text:l});return f(X,{elTag:"th",elClasses:[lc,...jt(a,i),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:cc,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>f("div",{className:"fc-scrollgrid-sync-inner"},f(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(o,_f)}})))}},_t=class extends P{constructor(){super(...arguments),this.createDayHeaderFormatter=x(Cf)}render(){let{context:e}=this,{dates:t,dateProfile:i,datesRepDistinctDays:r,renderIntro:s}=this.props,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return f(Te,{unit:"day"},(a,l)=>f("tr",{role:"row"},s&&s("day"),t.map(d=>r?f(yi,{key:d.toISOString(),date:d,dateProfile:i,todayRange:l,colCnt:t.length,dayHeaderFormat:o}):f(bi,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:o}))))}};function Cf(n,e,t){return n||ac(e,t)}var Ct=class{constructor(e,t){let i=e.start,{end:r}=e,s=[],o=[],a=-1;for(;i<r;)t.isHiddenDay(i)?s.push(a+.5):(a+=1,s.push(a),o.push(i)),i=G(i,1);this.dates=o,this.indices=s,this.cnt=o.length}sliceRange(e){let t=this.getDateDayIndex(e.start),i=this.getDateDayIndex(G(e.end,-1)),r=Math.max(0,t),s=Math.min(this.cnt-1,i);return r=Math.ceil(r),s=Math.floor(s),r<=s?{firstIndex:r,lastIndex:s,isStart:t===r,isEnd:i===s}:null}getDateDayIndex(e){let{indices:t}=this,i=Math.floor(Ne(this.dates[0],e));return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]}},Et=class{constructor(e,t){let{dates:i}=e,r,s,o;if(t){for(s=i[0].getUTCDay(),r=1;r<i.length&&i[r].getUTCDay()!==s;r+=1);o=Math.ceil(i.length/r)}else o=1,r=i.length;this.rowCnt=o,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let i=[];for(let r=0;r<this.colCnt;r+=1)i.push(this.buildCell(t,r));e.push(i)}return e}buildCell(e,t){let i=this.daySeries.dates[e*this.colCnt+t];return{key:i.toISOString(),date:i}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,i=this.daySeries.sliceRange(e),r=[];if(i){let{firstIndex:s,lastIndex:o}=i,a=s;for(;a<=o;){let l=Math.floor(a/t),d=Math.min((l+1)*t,o+1);r.push({row:l,firstCol:a%t,lastCol:(d-1)%t,isStart:i.isStart&&a===s,isEnd:i.isEnd&&d-1===o}),a=d}}return r}},St=class{constructor(){this.sliceBusinessHours=x(this._sliceBusinessHours),this.sliceDateSelection=x(this._sliceDateSpan),this.sliceEventStore=x(this._sliceEventStore),this.sliceEventDrag=x(this._sliceInteraction),this.sliceEventResize=x(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,i,r,...s){let{eventUiBases:o}=e,a=this.sliceEventStore(e.eventStore,o,t,i,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,i,o,r,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,i,r,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,o,t,i,...s),eventResize:this.sliceEventResize(e.eventResize,o,t,i,...s),eventSelection:e.eventSelection}}sliceNowDate(e,t,i,r,...s){return this._sliceDateSpan({range:{start:e,end:Oe(e,1)},allDay:!1},t,i,{},r,...s)}_sliceBusinessHours(e,t,i,r,...s){return e?this._sliceEventStore(vt(e,oi(t,!!i),r),{},t,i,...s).bg:[]}_sliceEventStore(e,t,i,r,...s){if(e){let o=Pt(e,t,oi(i,!!r),r);return{bg:this.sliceEventRanges(o.bg,s),fg:this.sliceEventRanges(o.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,i,r,...s){if(!e)return null;let o=Pt(e.mutatedEvents,t,oi(i,!!r),r);return{segs:this.sliceEventRanges(o.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,i,r,s,...o){if(!e)return[];let a=oi(t,!!i),l=pe(e.range,a);if(l){e=Object.assign(Object.assign({},e),{range:l});let d=df(e,r,s),c=this.sliceRange(e.range,...o);for(let p of c)p.eventRange=d;return c}return[]}sliceEventRanges(e,t){let i=[];for(let r of e)i.push(...this.sliceEventRange(r,t));return i}sliceEventRange(e,t){let i=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(i={start:i.start,end:G(i.start,1)});let r=this.sliceRange(i,...t);for(let s of r)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return r}};function oi(n,e){let t=n.activeRange;return e?t:{start:Oe(t.start,n.slotMinTime.milliseconds),end:Oe(t.end,n.slotMaxTime.milliseconds-864e5)}}function Ni(n,e,t){let{instances:i}=n.mutatedEvents;for(let r in i)if(!Bt(e.validRange,i[r].range))return!1;return dc({eventDrag:n},t)}function ks(n,e,t){return Bt(e.validRange,n.range)?dc({dateSelection:n},t):!1}function dc(n,e){let t=e.getCurrentData(),i=Object.assign({businessHours:t.businessHours,dateSelection:"",eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},n);return(e.pluginHooks.isPropsValid||uc)(i,e)}function uc(n,e,t={},i){return!(n.eventDrag&&!Ef(n,e,t,i)||n.dateSelection&&!Sf(n,e,t,i))}function Ef(n,e,t,i){let r=e.getCurrentData(),s=n.eventDrag,o=s.mutatedEvents,a=o.defs,l=o.instances,d=mi(a,s.isEvent?n.eventUiBases:{"":r.selectionConfig});i&&(d=Ee(d,i));let c=zu(n.eventStore,s.affectedEvents.instances),p=c.defs,h=c.instances,u=mi(p,n.eventUiBases);for(let m in l){let _=l[m],b=_.range,E=d[_.defId],D=a[_.defId];if(!fc(E.constraints,b,c,n.businessHours,e))return!1;let{eventOverlap:O}=e.options,M=typeof O=="function"?O:null;for(let F in h){let z=h[F];if(Ai(b,z.range)&&(u[z.defId].overlap===!1&&s.isEvent||E.overlap===!1||M&&!M(new W(e,p[z.defId],z),new W(e,D,_))))return!1}let q=r.eventStore;for(let F of E.allows){let z=Object.assign(Object.assign({},t),{range:_.range,allDay:D.allDay}),H=q.defs[D.defId],Ge=q.instances[m],Zt;if(H?Zt=new W(e,H,Ge):Zt=new W(e,D),!F(ys(z,e),Zt))return!1}}return!0}function Sf(n,e,t,i){let r=n.eventStore,s=r.defs,o=r.instances,a=n.dateSelection,l=a.range,{selectionConfig:d}=e.getCurrentData();if(i&&(d=i(d)),!fc(d.constraints,l,r,n.businessHours,e))return!1;let{selectOverlap:c}=e.options,p=typeof c=="function"?c:null;for(let h in o){let u=o[h];if(Ai(l,u.range)&&(d.overlap===!1||p&&!p(new W(e,s[u.defId],u),null)))return!1}for(let h of d.allows){let u=Object.assign(Object.assign({},t),a);if(!h(ys(u,e),null))return!1}return!0}function fc(n,e,t,i,r){for(let s of n)if(!Df(wf(s,e,t,i,r),e))return!1;return!0}function wf(n,e,t,i,r){return n==="businessHours"?Tr(vt(i,e,r)):typeof n=="string"?Tr(ki(t,s=>s.groupId===n)):typeof n=="object"&&n?Tr(vt(n,e,r)):[]}function Tr(n){let{instances:e}=n,t=[];for(let i in e)t.push(e[i].range);return t}function Df(n,e){for(let t of n)if(Bt(t,e))return!0;return!1}var ai=/^(visible|hidden)$/,Nt=class extends P{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,ge(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:i}=e,r=t&&i,s=["fc-scroller"];return t&&(i?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),f("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(ai.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:i}=e;for(let r=0;r<i.length;r+=1)if(i[r].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(ai.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:i}=e;for(let r=0;r<i.length;r+=1)if(i[r].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return ai.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return ai.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}},ue=class{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,i)=>{let{depths:r,currentMap:s}=this,o=!1,a=!1;t!==null?(o=i in s,s[i]=t,r[i]=(r[i]||0)+1,a=!0):(r[i]-=1,r[i]||(delete s[i],delete this.callbackMap[i],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(i)),a&&this.masterCallback(t,String(i)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=i=>{this.handleValue(i,String(e))}),t}collect(e,t,i){return Ul(this.currentMap,e,t,i)}getAll(){return xi(this.currentMap)}};function hc(n){let e=Tl(n,".fc-scrollgrid-shrink"),t=0;for(let i of e)t=Math.max(t,Ud(i));return Math.ceil(t)}function Os(n,e){return n.liquid&&e.liquid}function pc(n,e){return e.maxHeight!=null||Os(n,e)}function gc(n,e,t,i){let{expandRows:r}=t;return typeof e.content=="function"?e.content(t):f("table",{role:"presentation",className:[e.tableClassName,n.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:r?t.clientHeight:""}},t.tableColGroupNode,f(i?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(t):e.rowContent))}function mc(n,e){return Pe(n,e,de)}function vc(n,e){let t=[];for(let i of n){let r=i.span||1;for(let s=0;s<r;s+=1)t.push(f("col",{style:{width:i.width==="shrink"?yc(e):i.width||"",minWidth:i.minWidth||""}}))}return f("colgroup",{},...t)}function yc(n){return n??4}function bc(n){for(let e of n)if(e.width==="shrink")return!0;return!1}function _c(n,e){let t=["fc-scrollgrid",e.theme.getClass("table")];return n&&t.push("fc-scrollgrid-liquid"),t}function Cc(n,e){let t=["fc-scrollgrid-section",`fc-scrollgrid-section-${n.type}`,n.className];return e&&n.liquid&&n.maxHeight==null&&t.push("fc-scrollgrid-section-liquid"),n.isSticky&&t.push("fc-scrollgrid-section-sticky"),t}function Wt(n){return f("div",{className:"fc-scrollgrid-sticky-shim",style:{width:n.clientWidth,minWidth:n.tableMinWidth}})}function Rt(n){let{stickyHeaderDates:e}=n;return(e==null||e==="auto")&&(e=n.height==="auto"||n.viewHeight==="auto"),e}function Fn(n){let{stickyFooterScrollbar:e}=n;return(e==null||e==="auto")&&(e=n.height==="auto"||n.viewHeight==="auto"),e}var tt=class extends P{constructor(){super(...arguments),this.processCols=x(e=>e,mc),this.renderMicroColGroup=x(vc),this.scrollerRefs=new ue,this.scrollerElRefs=new ue(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:i}=this,r=e.sections||[],s=this.processCols(e.cols),o=this.renderMicroColGroup(s,t.shrinkWidth),a=_c(e.liquid,i);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l=r.length,d=0,c,p=[],h=[],u=[];for(;d<l&&(c=r[d]).type==="header";)p.push(this.renderSection(c,o,!0)),d+=1;for(;d<l&&(c=r[d]).type==="body";)h.push(this.renderSection(c,o,!1)),d+=1;for(;d<l&&(c=r[d]).type==="footer";)u.push(this.renderSection(c,o,!0)),d+=1;let m=!ws(),_={role:"rowgroup"};return f("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!m&&p.length)&&f("thead",_,...p),!!(!m&&h.length)&&f("tbody",_,...h),!!(!m&&u.length)&&f("tfoot",_,...u),m&&f("tbody",_,...p,...h,...u))}renderSection(e,t,i){return"outerContent"in e?f(N,{key:e.key},e.outerContent):f("tr",{key:e.key,role:"presentation",className:Cc(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,i))}renderChunkTd(e,t,i,r){if("outerContent"in i)return i.outerContent;let{props:s}=this,{forceYScrollbars:o,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,d=pc(s,e),c=Os(s,e),p=s.liquid?o?"scroll":d?"auto":"hidden":"visible",h=e.key,u=gc(e,i,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:l[h]!==void 0?l[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return f(r?"th":"td",{ref:i.elRef,role:"presentation"},f("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},f(Nt,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:p,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},u)))}_handleScrollerEl(e,t){let i=xf(this.props.sections,t);i&&ge(i.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return bc(this.props.cols)?hc(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=rc(),{scrollerRefs:t,scrollerElRefs:i}=this,r=!1,s={},o={};for(let a in t.currentMap){let l=t.currentMap[a];if(l&&l.needsYScrolling()){r=!0;break}}for(let a of this.props.sections){let l=a.key,d=i.currentMap[l];if(d){let c=d.parentNode;s[l]=Math.floor(c.getBoundingClientRect().width-(r?e.y:0)),o[l]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:s,scrollerClientHeights:o}}};tt.addStateEquality({scrollerClientWidths:de,scrollerClientHeights:de});function xf(n,e){for(let t of n)if(t.key===e)return t;return null}var je=class extends P{constructor(){super(...arguments),this.buildPublicEvent=x((e,t,i)=>new W(e,t,i)),this.handleEl=e=>{this.el=e,ge(this.props.elRef,e),e&&wl(e,this.props.seg)}}render(){let{props:e,context:t}=this,{options:i}=t,{seg:r}=e,{eventRange:s}=r,{ui:o}=s,a={event:this.buildPublicEvent(t,s.def,s.instance),view:t.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&ef(r,t),isStartResizable:!e.disableResizing&&tf(r,t),isEndResizable:!e.disableResizing&&nf(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return f(X,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...rf(a),...r.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:a,generatorName:"eventContent",customGenerator:i.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.eventClassNames,didMount:i.eventDidMount,willUnmount:i.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&wl(this.el,this.props.seg)}},nt=class extends P{render(){let{props:e,context:t}=this,{options:i}=t,{seg:r}=e,{ui:s}=r.eventRange,o=i.eventTimeFormat||e.defaultTimeFormat,a=lt(r,o,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return f(je,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:Vt(r,t),defaultGenerator:Af,timeText:a}),(l,d)=>f(N,null,f(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&f("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&f("div",{className:"fc-event-resizer fc-event-resizer-end"})))}};nt.addPropsEquality({seg:de});function Af(n){return f("div",{className:"fc-event-main-frame"},n.timeText&&f("div",{className:"fc-event-time"},n.timeText),f("div",{className:"fc-event-title-container"},f("div",{className:"fc-event-title fc-sticky"},n.event.title||f(N,null,"\xA0"))))}var Bn=n=>f(we.Consumer,null,e=>{let{options:t}=e,i={isAxis:n.isAxis,date:e.dateEnv.toDate(n.date),view:e.viewApi};return f(X,{elRef:n.elRef,elTag:n.elTag||"div",elAttrs:n.elAttrs,elClasses:n.elClasses,elStyle:n.elStyle,renderProps:i,generatorName:"nowIndicatorContent",customGenerator:t.nowIndicatorContent,classNameGenerator:t.nowIndicatorClassNames,didMount:t.nowIndicatorDidMount,willUnmount:t.nowIndicatorWillUnmount},n.children)}),Rf=L({day:"numeric"}),it=class extends P{constructor(){super(...arguments),this.refineRenderProps=Ft(Mf)}render(){let{props:e,context:t}=this,{options:i}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:i.monthStartFormat});return f(X,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":st(e.date)}),elClasses:[...jt(r,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,generatorName:"dayCellContent",customGenerator:i.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:i.dayCellClassNames,didMount:i.dayCellDidMount,willUnmount:i.dayCellWillUnmount},e.children)}};function zt(n){return!!(n.dayCellContent||Br("dayCellContent",n))}function Mf(n){let{date:e,dateEnv:t,dateProfile:i,isMonthStart:r}=n,s=In(e,n.todayRange,null,i),o=n.showDayNumber?t.format(e,r?n.monthStartFormat:Rf):"";return Object.assign(Object.assign(Object.assign({date:t.toDate(e),view:n.viewApi},s),{isMonthStart:r,dayNumberText:o}),n.extraRenderProps)}var wt=class extends P{render(){let{props:e}=this,{seg:t}=e;return f(je,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:Tf,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}};function Tf(n){let{title:e}=n.event;return e&&f("div",{className:"fc-event-title"},n.event.title)}function Ln(n){return f("div",{className:`fc-${n}`})}var Vn=n=>f(we.Consumer,null,e=>{let{dateEnv:t,options:i}=e,{date:r}=n,s=i.weekNumberFormat||n.defaultFormat,o=t.computeWeekNumber(r),a=t.format(r,s),l={num:o,text:a,date:r};return f(X,{elRef:n.elRef,elTag:n.elTag,elAttrs:n.elAttrs,elClasses:n.elClasses,elStyle:n.elStyle,renderProps:l,generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:kf,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount},n.children)});function kf(n){return n.text}var kr=10,Vr=class extends P{constructor(){super(...arguments),this.state={titleId:Se()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ge(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let t=_i(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:i,state:r}=this,s=["fc-popover",e.getClass("popover")].concat(i.extraClassNames||[]);return fl(f("div",Object.assign({},i.extraAttrs,{id:i.id,className:s.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),f("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},f("span",{className:"fc-popover-title",id:r.titleId},i.title),f("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),f("div",{className:"fc-popover-body "+e.getClass("popoverContent")},i.children)),i.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:i}=this.props,{rootEl:r}=this,s=yf(t);if(s){let o=r.getBoundingClientRect(),a=i?$(t,".fc-scrollgrid").getBoundingClientRect().top:s.top,l=e?s.right-o.width:s.left;a=Math.max(a,kr),l=Math.min(l,document.documentElement.clientWidth-kr-o.width),l=Math.max(l,kr);let d=r.offsetParent.getBoundingClientRect();xt(r,{top:a-d.top,left:l-d.left})}}},Ur=class extends ee{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:i}=this,{startDate:r,todayRange:s,dateProfile:o}=i,a=t.format(r,e.dayPopoverFormat);return f(it,{elRef:this.handleRootEl,date:r,dateProfile:o,todayRange:s},(l,d,c)=>f(Vr,{elRef:c.ref,id:i.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:i.parentEl,alignmentEl:i.alignmentEl,alignGridTop:i.alignGridTop,onClose:i.onClose},zt(e)&&f(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),i.children))}queryHit(e,t,i,r){let{rootEl:s,props:o}=this;return e>=0&&e<i&&t>=0&&t<r?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:i,bottom:r},layer:1}:null}},Dt=class extends P{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Se()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&ge(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:i}=this,{moreLinkClick:r}=i.options,s=Dl(t).start;function o(a){let{def:l,instance:d,range:c}=a.eventRange;return{event:new W(i,l,d),start:i.dateEnv.toDate(c.start),end:i.dateEnv.toDate(c.end),isStart:a.isStart,isEnd:a.isEnd}}typeof r=="function"&&(r=r({date:s,allDay:!!t.allDayDate,allSegs:t.allSegs.map(o),hiddenSegs:t.hiddenSegs.map(o),jsEvent:e,view:i.viewApi})),!r||r==="popover"?this.setState({isPopoverOpen:!0}):typeof r=="string"&&i.calendarApi.zoomTo(s,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return f(we.Consumer,null,i=>{let{viewApi:r,options:s,calendarApi:o}=i,{moreLinkText:a}=s,{moreCnt:l}=e,d=Dl(e),c=typeof a=="function"?a.call(o,l):`+${l} ${a}`,p=Ht(s.moreLinkHint,[l],c),h={num:l,shortText:`+${l}`,text:c,view:r};return f(N,null,!!e.moreCnt&&f(X,{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),Ol(this.handleClick)),{title:p,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Of,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),t.isPopoverOpen&&f(Ur,{id:t.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=$(this.linkEl,".fc-view-harness"))}};function Of(n){return n.text}function Dl(n){if(n.allDayDate)return{start:n.allDayDate,end:G(n.allDayDate,1)};let{hiddenSegs:e}=n;return{start:Hi(e),end:Pf(e)}}function Hi(n){return n.reduce(If).eventRange.range.start}function If(n,e){return n.eventRange.range.start<e.eventRange.range.start?n:e}function Pf(n){return n.reduce(Nf).eventRange.range.end}function Nf(n,e){return n.eventRange.range.end>e.eventRange.range.end?n:e}var jr=class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}},_n=class extends jr{constructor(){super(...arguments),this.map=new Map}handle(e){let{map:t}=this,i=!1;e.isActive?(t.set(e.id,e),i=!0):t.has(e.id)&&(t.delete(e.id),i=!0),i&&this.set(t)}};var Hf=[],Rc={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"},Mc=Object.assign(Object.assign({},Rc),{buttonHints:{prev:"Previous $0",next:"Next $0",today(n,e){return e==="day"?"Today":`This ${n}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(n){return`Show ${n} more event${n===1?"":"s"}`}});function Ff(n){let e=n.length>0?n[0].code:"en",t=Hf.concat(n),i={en:Mc};for(let r of t)i[r.code]=r;return{map:i,defaultCode:e}}function Tc(n,e){return typeof n=="object"&&!Array.isArray(n)?kc(n.code,[n.code],n):Bf(n,e)}function Bf(n,e){let t=[].concat(n||[]),i=Lf(t,e)||Mc;return kc(n,t,i)}function Lf(n,e){for(let t=0;t<n.length;t+=1){let i=n[t].toLocaleLowerCase().split("-");for(let r=i.length;r>0;r-=1){let s=i.slice(0,r).join("-");if(e[s])return e[s]}}return null}function kc(n,e,t){let i=Di([Rc,t],["buttonText"]);delete i.code;let{week:r}=i;return delete i.week,{codeArg:n,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(n),options:i}}function fe(n){return{id:We(),name:n.name,premiumReleaseDate:n.premiumReleaseDate?new Date(n.premiumReleaseDate):void 0,deps:n.deps||[],reducers:n.reducers||[],isLoadingFuncs:n.isLoadingFuncs||[],contextInit:[].concat(n.contextInit||[]),eventRefiners:n.eventRefiners||{},eventDefMemberAdders:n.eventDefMemberAdders||[],eventSourceRefiners:n.eventSourceRefiners||{},isDraggableTransformers:n.isDraggableTransformers||[],eventDragMutationMassagers:n.eventDragMutationMassagers||[],eventDefMutationAppliers:n.eventDefMutationAppliers||[],dateSelectionTransformers:n.dateSelectionTransformers||[],datePointTransforms:n.datePointTransforms||[],dateSpanTransforms:n.dateSpanTransforms||[],views:n.views||{},viewPropsTransformers:n.viewPropsTransformers||[],isPropsValid:n.isPropsValid||null,externalDefTransforms:n.externalDefTransforms||[],viewContainerAppends:n.viewContainerAppends||[],eventDropTransformers:n.eventDropTransformers||[],componentInteractions:n.componentInteractions||[],calendarInteractions:n.calendarInteractions||[],themeClasses:n.themeClasses||{},eventSourceDefs:n.eventSourceDefs||[],cmdFormatter:n.cmdFormatter,recurringTypes:n.recurringTypes||[],namedTimeZonedImpl:n.namedTimeZonedImpl,initialView:n.initialView||"",elementDraggingImpl:n.elementDraggingImpl,optionChangeHandlers:n.optionChangeHandlers||{},scrollGridImpl:n.scrollGridImpl||null,listenerRefiners:n.listenerRefiners||{},optionRefiners:n.optionRefiners||{},propSetHandlers:n.propSetHandlers||{}}}function Vf(n,e){let t={},i={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 r(s){for(let o of s){let a=o.name,l=t[a];l===void 0?(t[a]=o.id,r(o.deps),i=jf(i,o)):l!==o.id&&console.warn(`Duplicate plugin '${a}'`)}}return n&&r(n),r(e),i}function Uf(){let n=[],e=[],t;return(i,r)=>((!t||!Pe(i,n)||!Pe(r,e))&&(t=Vf(i,r)),n=i,e=r,t)}function jf(n,e){return{premiumReleaseDate:Wf(n.premiumReleaseDate,e.premiumReleaseDate),reducers:n.reducers.concat(e.reducers),isLoadingFuncs:n.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:n.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},n.eventRefiners),e.eventRefiners),eventDefMemberAdders:n.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},n.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:n.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:n.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:n.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:n.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:n.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:n.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},n.views),e.views),viewPropsTransformers:n.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||n.isPropsValid,externalDefTransforms:n.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:n.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:n.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:n.calendarInteractions.concat(e.calendarInteractions),componentInteractions:n.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},n.themeClasses),e.themeClasses),eventSourceDefs:n.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||n.cmdFormatter,recurringTypes:n.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||n.namedTimeZonedImpl,initialView:n.initialView||e.initialView,elementDraggingImpl:n.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},n.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||n.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},n.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},n.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},n.propSetHandlers),e.propSetHandlers)}}function Wf(n,e){return n===void 0?e:e===void 0?n:new Date(Math.max(n.valueOf(),e.valueOf()))}var Be=class extends Ve{};Be.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Be.prototype.baseIconClass="fc-icon";Be.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"};Be.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Be.prototype.iconOverrideOption="buttonIcons";Be.prototype.iconOverrideCustomButtonOption="icon";Be.prototype.iconOverridePrefix="fc-icon-";function zf(n,e){let t={},i;for(i in n)Ps(i,t,n,e);for(i in e)Ps(i,t,n,e);return t}function Ps(n,e,t,i){if(e[n])return e[n];let r=Gf(n,e,t,i);return r&&(e[n]=r),r}function Gf(n,e,t,i){let r=t[n],s=i[n],o=c=>r&&r[c]!==null?r[c]:s&&s[c]!==null?s[c]:null,a=o("component"),l=o("superType"),d=null;if(l){if(l===n)throw new Error("Can't have a custom view type that references itself");d=Ps(l,e,t,i)}return!a&&d&&(a=d.component),a?{type:n,component:a,defaults:Object.assign(Object.assign({},d?d.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),s?s.rawOptions:{})}:null}function Ec(n){return Ee(n,qf)}function qf(n){let e=typeof n=="function"?{component:n}:n,{component:t}=e;return e.content?t=Sc(e):t&&!(t.prototype instanceof P)&&(t=Sc(Object.assign(Object.assign({},e),{content:t}))),{superType:e.type,component:t,rawOptions:e}}function Sc(n){return e=>f(we.Consumer,null,t=>f(X,{elTag:"div",elClasses:ds(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:n.content,classNameGenerator:n.classNames,didMount:n.didMount,willUnmount:n.willUnmount}))}function Qf(n,e,t,i){let r=Ec(n),s=Ec(e.views),o=zf(r,s);return Ee(o,a=>Yf(a,s,e,t,i))}function Yf(n,e,t,i,r){let s=n.overrides.duration||n.defaults.duration||i.duration||t.duration,o=null,a="",l="",d={};if(s&&(o=Zf(s),o)){let h=sn(o);a=h.unit,h.value===1&&(l=a,d=e[a]?e[a].rawOptions:{})}let c=h=>{let u=h.buttonText||{},m=n.defaults.buttonTextKey;return m!=null&&u[m]!=null?u[m]:u[n.type]!=null?u[n.type]:u[l]!=null?u[l]:null},p=h=>{let u=h.buttonHints||{},m=n.defaults.buttonTextKey;return m!=null&&u[m]!=null?u[m]:u[n.type]!=null?u[n.type]:u[l]!=null?u[l]:null};return{type:n.type,component:n.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:n.defaults,optionOverrides:Object.assign(Object.assign({},d),n.overrides),buttonTextOverride:c(i)||c(t)||n.overrides.buttonText,buttonTextDefault:c(r)||n.defaults.buttonText||c(ot)||n.type,buttonTitleOverride:p(i)||p(t)||n.overrides.buttonHint,buttonTitleDefault:p(r)||n.defaults.buttonHint||p(ot)}}var wc={};function Zf(n){let e=JSON.stringify(n),t=wc[e];return t===void 0&&(t=I(n),wc[e]=t),t}function $f(n,e){return e.type==="CHANGE_VIEW_TYPE"&&(n=e.viewType),n}function Xf(n,e){return e.type==="CHANGE_DATE"?e.dateMarker:n}function Kf(n,e,t){let i=n.initialDate;return i!=null?e.createMarker(i):t.getDateMarker()}function Jf(n,e){return e.type==="SET_OPTION"?Object.assign(Object.assign({},n),{[e.optionName]:e.rawOptionValue}):n}function eh(n,e,t,i){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||t);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if(r=i.buildPrev(n,t),r.isValid)return r;break;case"NEXT":if(r=i.buildNext(n,t),r.isValid)return r;break}return n}function th(n,e,t){let i=e?e.activeRange:null;return Ic({},lh(n,t),i,t)}function nh(n,e,t,i){let r=t?t.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Ic(n,e.sources,r,i);case"REMOVE_EVENT_SOURCE":return rh(n,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return t?Pc(n,r,i):n;case"FETCH_EVENT_SOURCES":return Ws(n,e.sourceIds?as(e.sourceIds):Nc(n,i),r,e.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ah(n,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return n}}function ih(n,e,t){let i=e?e.activeRange:null;return Ws(n,Nc(n,t),i,!0,t)}function Oc(n){for(let e in n)if(n[e].isFetching)return!0;return!1}function Ic(n,e,t,i){let r={};for(let s of e)r[s.sourceId]=s;return t&&(r=Pc(r,t,i)),Object.assign(Object.assign({},n),r)}function rh(n,e){return Le(n,t=>t.sourceId!==e)}function Pc(n,e,t){return Ws(n,Le(n,i=>sh(i,e,t)),e,!1,t)}function sh(n,e,t){return Hc(n,t)?!t.options.lazyFetching||!n.fetchRange||n.isFetching||e.start<n.fetchRange.start||e.end>n.fetchRange.end:!n.latestFetchId}function Ws(n,e,t,i,r){let s={};for(let o in n){let a=n[o];e[o]?s[o]=oh(a,t,i,r):s[o]=a}return s}function oh(n,e,t,i){let{options:r,calendarApi:s}=i,o=i.pluginHooks.eventSourceDefs[n.sourceDefId],a=We();return o.fetch({eventSource:n,range:e,isRefetch:t,context:i},l=>{let{rawEvents:d}=l;r.eventSourceSuccess&&(d=r.eventSourceSuccess.call(s,d,l.response)||d),n.success&&(d=n.success.call(s,d,l.response)||d),i.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:a,fetchRange:e,rawEvents:d})},l=>{let d=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(s,l),d=!0),n.failure&&(n.failure(l),d=!0),d||console.warn(l.message,l),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:a,fetchRange:e,error:l})}),Object.assign(Object.assign({},n),{isFetching:!0,latestFetchId:a})}function ah(n,e,t,i){let r=n[e];return r&&t===r.latestFetchId?Object.assign(Object.assign({},n),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:i})}):n}function Nc(n,e){return Le(n,t=>Hc(t,e))}function lh(n,e){let t=gs(e),i=[].concat(n.eventSources||[]),r=[];n.initialEvents&&i.unshift(n.initialEvents),n.events&&i.unshift(n.events);for(let s of i){let o=ps(s,e,t);o&&r.push(o)}return r}function Hc(n,e){return!e.pluginHooks.eventSourceDefs[n.sourceDefId].ignoreRange}function ch(n,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return n}}function dh(n,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return n}}function uh(n,e){let t;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return n}}function fh(n,e){let t;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return n}}function hh(n,e,t,i,r){let s=n.headerToolbar?Dc(n.headerToolbar,n,e,t,i,r):null,o=n.footerToolbar?Dc(n.footerToolbar,n,e,t,i,r):null;return{header:s,footer:o}}function Dc(n,e,t,i,r,s){let o={},a=[],l=!1;for(let d in n){let c=n[d],p=ph(c,e,t,i,r,s);o[d]=p.widgets,a.push(...p.viewsWithButtons),l=l||p.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function ph(n,e,t,i,r,s){let o=e.direction==="rtl",a=e.customButtons||{},l=t.buttonText||{},d=e.buttonText||{},c=t.buttonHints||{},p=e.buttonHints||{},h=n?n.split(" "):[],u=[],m=!1;return{widgets:h.map(b=>b.split(",").map(E=>{if(E==="title")return m=!0,{buttonName:E};let D,O,M,q,F,z;if(D=a[E])M=H=>{D.click&&D.click.call(H.target,H,H.target)},(q=i.getCustomButtonIconClass(D))||(q=i.getIconClass(E,o))||(F=D.text),z=D.hint||D.text;else if(O=r[E]){u.push(E),M=()=>{s.changeView(E)},(F=O.buttonTextOverride)||(q=i.getIconClass(E,o))||(F=O.buttonTextDefault);let H=O.buttonTextOverride||O.buttonTextDefault;z=Ht(O.buttonTitleOverride||O.buttonTitleDefault||e.viewHint,[H,E],H)}else if(s[E])if(M=()=>{s[E]()},(F=l[E])||(q=i.getIconClass(E,o))||(F=d[E]),E==="prevYear"||E==="nextYear"){let H=E==="prevYear"?"prev":"next";z=Ht(c[H]||p[H],[d.year||"year","year"],d[E])}else z=H=>Ht(c[E]||p[E],[d[H]||H,H],d[E]);return{buttonName:E,buttonClick:M,buttonIcon:q,buttonText:F,buttonHint:z}})),viewsWithButtons:u,hasTitle:m}}var Ns=class{constructor(e,t,i){this.type=e,this.getCurrentData=t,this.dateEnv=i}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]}},gh={ignoreRange:!0,parseMeta(n){return Array.isArray(n.events)?n.events:null},fetch(n,e){e({rawEvents:n.eventSource.meta})}},mh=fe({name:"array-event-source",eventSourceDefs:[gh]}),vh={parseMeta(n){return typeof n.events=="function"?n.events:null},fetch(n,e,t){let{dateEnv:i}=n.context,r=n.eventSource.meta;Es(r.bind(null,Cs(n.range,i)),s=>e({rawEvents:s}),t)}},yh=fe({name:"func-event-source",eventSourceDefs:[vh]}),bh={method:String,extraParams:g,startParam:String,endParam:String,timeZoneParam:String},_h={parseMeta(n){return n.url&&(n.format==="json"||!n.format)?{url:n.url,format:"json",method:(n.method||"GET").toUpperCase(),extraParams:n.extraParams,startParam:n.startParam,endParam:n.endParam,timeZoneParam:n.timeZoneParam}:null},fetch(n,e,t){let{meta:i}=n.eventSource,r=Eh(i,n.range,n.context);Ss(i.method,i.url,r).then(([s,o])=>{e({rawEvents:s,response:o})},t)}},Ch=fe({name:"json-event-source",eventSourceRefiners:bh,eventSourceDefs:[_h]});function Eh(n,e,t){let{dateEnv:i,options:r}=t,s,o,a,l,d={};return s=n.startParam,s==null&&(s=r.startParam),o=n.endParam,o==null&&(o=r.endParam),a=n.timeZoneParam,a==null&&(a=r.timeZoneParam),typeof n.extraParams=="function"?l=n.extraParams():l=n.extraParams||{},Object.assign(d,l),d[s]=i.formatIso(e.start),d[o]=i.formatIso(e.end),i.timeZone!=="local"&&(d[a]=i.timeZone),d}var Sh={daysOfWeek:g,startTime:I,endTime:I,duration:I,startRecur:g,endRecur:g},wh={parse(n,e){if(n.daysOfWeek||n.startTime||n.endTime||n.startRecur||n.endRecur){let t={daysOfWeek:n.daysOfWeek||null,startTime:n.startTime||null,endTime:n.endTime||null,startRecur:n.startRecur?e.createMarker(n.startRecur):null,endRecur:n.endRecur?e.createMarker(n.endRecur):null,dateEnv:e},i;return n.duration&&(i=n.duration),!i&&n.startTime&&n.endTime&&(i=Fl(n.endTime,n.startTime)),{allDayGuess:!n.startTime&&!n.endTime,duration:i,typeData:t}}return null},expand(n,e,t){let i=pe(e,{start:n.startRecur,end:n.endRecur});return i?xh(n.daysOfWeek,n.startTime,n.dateEnv,t,i):[]}},Dh=fe({name:"simple-recurring-event",recurringTypes:[wh],eventRefiners:Sh});function xh(n,e,t,i,r){let s=n?as(n):null,o=B(r.start),a=r.end,l=[];for(e&&(e.milliseconds<0?a=G(a,1):e.milliseconds>=1e3*60*60*24&&(o=G(o,-1)));o<a;){let d;(!s||s[o.getUTCDay()])&&(e?d=i.add(o,e):d=o,l.push(i.createMarker(t.toDate(d)))),o=G(o,1)}return l}var Ah=fe({name:"change-handler",optionChangeHandlers:{events(n,e){xc([n],e)},eventSources:xc}});function xc(n,e){let t=xi(e.getCurrentData().eventSources);if(t.length===1&&n.length===1&&Array.isArray(t[0]._raw)&&Array.isArray(n[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:t[0].sourceId,rawEvents:n[0]});return}let i=[];for(let r of n){let s=!1;for(let o=0;o<t.length;o+=1)if(t[o]._raw===r){t.splice(o,1),s=!0;break}s||i.push(r)}for(let r of t)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:r.sourceId});for(let r of i)e.calendarApi.addEventSource(r)}function Rh(n,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Cs(n.activeRange,e.dateEnv)),{view:e.viewApi}))}function Mh(n,e){let{emitter:t}=e;t.hasHandlers("eventsSet")&&t.trigger("eventsSet",He(n,e))}var Th=[mh,yh,Ch,Dh,Ah,fe({name:"misc",isLoadingFuncs:[n=>Oc(n.eventSources)],propSetHandlers:{dateProfile:Rh,eventStore:Mh}})],Hs=class{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new gt(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t=[],i;for(;i=e.shift();)this.runTask(i),t.push(i);this.drained(t)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}};function kh(n,e,t){let i;return/^(year|month)$/.test(n.currentRangeUnit)?i=n.currentRange:i=n.activeRange,t.formatRange(i.start,i.end,L(e.titleFormat||Oh(n)),{isEndExclusive:n.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Oh(n){let{currentRangeUnit:e}=n;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let t=It(n.currentRange.start,n.currentRange.end);return t!==null&&t>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var Fi=class{constructor(){this.resetListeners=new Set}handleInput(e,t){let i=this.dateEnv;if(e!==i&&(typeof t=="function"?this.nowFn=t:i||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,i))for(let r of this.resetListeners.values())r()}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)}},Fs=class{constructor(e){this.computeCurrentViewData=x(this._computeCurrentViewData),this.organizeRawLocales=x(Ff),this.buildLocale=x(Tc),this.buildPluginHooks=Uf(),this.buildDateEnv=x(Ih),this.buildTheme=x(Ph),this.parseToolbars=x(hh),this.buildViewSpecs=x(Qf),this.buildDateProfileGenerator=Ft(Nh),this.buildViewApi=x(Hh),this.buildViewUiProps=Ft(Lh),this.buildEventUiBySource=x(Fh,de),this.buildEventUiBases=x(Bh),this.parseContextBusinessHours=Ft(Vh),this.buildTitle=x(kh),this.nowManager=new Fi,this.emitter=new Ue,this.actionRunner=new Hs(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 Fi;let t={},i=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=i.calendarOptions.initialView||i.pluginHooks.initialView,s=this.computeCurrentViewData(r,i,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let o={nowManager:this.nowManager,dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a=Kf(i.calendarOptions,i.dateEnv,this.nowManager),l=s.dateProfileGenerator.build(a);Ce(l.activeRange,a)||(a=l.currentRange.start);for(let h of i.pluginHooks.contextInit)h(o);let d=th(i.calendarOptions,l,o),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:a,dateProfile:l,businessHours:this.parseContextBusinessHours(o),eventSources:d,eventUiBases:{},eventStore:ne(),renderableEventStore:ne(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},p=Object.assign(Object.assign({},o),c);for(let h of i.pluginHooks.reducers)Object.assign(c,h(null,null,p));Is(c,o)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:i}=this;t===void 0?i.optionOverrides=e:(i.optionOverrides=Object.assign(Object.assign({},i.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(t===void 0||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:i,emitter:r}=this,s=Jf(i.dynamicOptionOverrides,e),o=this.computeOptionsData(t.optionOverrides,s,t.calendarApi),a=$f(i.currentViewType,e),l=this.computeCurrentViewData(a,o,t.optionOverrides,s);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(l.options);let d={nowManager:this.nowManager,dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:p}=i;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(p=l.dateProfileGenerator.build(c)),c=Xf(c,e),p=eh(p,e,c,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Ce(p.currentRange,c))&&(c=p.currentRange.start);let h=nh(i.eventSources,e,p,d),u=$l(i.eventStore,e,h,p,d),_=Oc(h)&&!l.options.progressiveEventRendering&&i.renderableEventStore||u,{eventUiSingleBase:b,selectionConfig:E}=this.buildViewUiProps(d),D=this.buildEventUiBySource(h),O=this.buildEventUiBases(_.defs,b,D),M={dynamicOptionOverrides:s,currentViewType:a,currentDate:c,dateProfile:p,eventSources:h,eventStore:u,renderableEventStore:_,selectionConfig:E,eventUiBases:O,businessHours:this.parseContextBusinessHours(d),dateSelection:ch(i.dateSelection,e),eventSelection:dh(i.eventSelection,e),eventDrag:uh(i.eventDrag,e),eventResize:fh(i.eventResize,e)},q=Object.assign(Object.assign({},d),M);for(let H of o.pluginHooks.reducers)Object.assign(M,H(i,e,q));let F=Is(i,d),z=Is(M,d);!F&&z?r.trigger("loading",!0):F&&!z&&r.trigger("loading",!1),this.state=M,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,i=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),o=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,s.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),s),t),a=r.pluginHooks.optionChangeHandlers,l=i&&i.calendarOptions,d=r.calendarOptions;if(l&&l!==d){l.timeZone!==d.timeZone&&(t.eventSources=o.eventSources=ih(o.eventSources,t.dateProfile,o),t.eventStore=o.eventStore=ms(o.eventStore,i.dateEnv,o.dateEnv),t.renderableEventStore=o.renderableEventStore=ms(o.renderableEventStore,i.dateEnv,o.dateEnv));for(let c in a)(this.optionsForHandling.indexOf(c)!==-1||l[c]!==d[c])&&a[c](d[c],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,t,i){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:s,localeDefaults:o,availableLocaleData:a,extra:l}=this.processRawCalendarOptions(e,t);Ac(l);let d=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,s,a,r.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),p=this.buildTheme(r,s),h=this.parseToolbars(r,this.stableOptionOverrides,p,c,i);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:s,dateEnv:d,viewSpecs:c,theme:p,toolbarConfig:h,localeDefaults:o,availableRawLocales:a.map}}processRawCalendarOptions(e,t){let{locales:i,locale:r}=Si([ot,e,t]),s=this.organizeRawLocales(i),o=s.map,a=this.buildLocale(r||s.defaultCode,o).options,l=this.buildPluginHooks(e.plugins||[],Th),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rs),ss),os),l.listenerRefiners),l.optionRefiners),c={},p=Si([ot,a,e,t]),h={},u=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,_=!1;for(let b in p)this.optionsForRefining.indexOf(b)===-1&&(p[b]===u[b]||at[b]&&b in u&&at[b](u[b],p[b]))?h[b]=m[b]:d[b]?(h[b]=d[b](p[b]),_=!0):c[b]=u[b];return _&&(this.currentCalendarOptionsInput=p,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:s,localeDefaults:a,extra:c}}_computeCurrentViewData(e,t,i,r){let s=t.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:a}=this.processRawViewOptions(s,t.pluginHooks,t.localeDefaults,i,r);Ac(a),this.nowManager.handleInput(t.dateEnv,o.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),d=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:s,options:o,dateProfileGenerator:l,viewApi:d}}processRawViewOptions(e,t,i,r,s){let o=Si([ot,e.optionDefaults,i,r,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rs),ss),os),Vl),t.listenerRefiners),t.optionRefiners),l={},d=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,p=!1,h={};for(let u in o)o[u]===d[u]||at[u]&&at[u](o[u],d[u])?l[u]=c[u]:(o[u]===this.currentCalendarOptionsInput[u]||at[u]&&at[u](o[u],this.currentCalendarOptionsInput[u])?u in this.currentCalendarOptionsRefined&&(l[u]=this.currentCalendarOptionsRefined[u]):a[u]?l[u]=a[u](o[u]):h[u]=o[u],p=!0);return p&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}};function Ih(n,e,t,i,r,s,o,a){let l=Tc(e||o.defaultCode,o.map);return new on({calendarSystem:"gregory",timeZone:n,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:t,firstDay:i,weekText:r,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Ph(n,e){let t=e.themeClasses[n.themeSystem]||Be;return new t(n)}function Nh(n){let e=n.dateProfileGeneratorClass||mt;return new e(n)}function Hh(n,e,t){return new Ns(n,e,t)}function Fh(n){return Ee(n,e=>e.ui)}function Bh(n,e,t){let i={"":e};for(let r in n){let s=n[r];s.sourceId&&t[s.sourceId]&&(i[r]=t[s.sourceId])}return i}function Lh(n){let{options:e}=n;return{eventUiSingleBase:Lt({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},n),selectionConfig:Lt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},n)}}function Is(n,e){for(let t of e.pluginHooks.isLoadingFuncs)if(t(n))return!0;return!1}function Vh(n){return vs(n.options.businessHours,n)}function Ac(n,e){for(let t in n)console.warn(`Unknown option '${t}'`+(e?` for view '${e}'`:""))}var Bs=class extends P{render(){let e=this.props.widgetGroups.map(t=>this.renderWidgetGroup(t));return f("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:i}=this.context,r=[],s=!0;for(let o of e){let{buttonName:a,buttonClick:l,buttonText:d,buttonIcon:c,buttonHint:p}=o;if(a==="title")s=!1,r.push(f("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let h=a===t.activeButton,u=!t.isTodayEnabled&&a==="today"||!t.isPrevEnabled&&a==="prev"||!t.isNextEnabled&&a==="next",m=[`fc-${a}-button`,i.getClass("button")];h&&m.push(i.getClass("buttonActive")),r.push(f("button",{type:"button",title:typeof p=="function"?p(t.navUnit):p,disabled:u,"aria-pressed":h,className:m.join(" "),onClick:l},d||(c?f("span",{className:c,role:"img"}):"")))}}if(r.length>1){let o=s&&i.getClass("buttonGroup")||"";return f("div",{className:o},...r)}return r[0]}},Bi=class extends P{render(){let{model:e,extraClassName:t}=this.props,i=!1,r,s,o=e.sectionWidgets,a=o.center;return o.left?(i=!0,r=o.left):r=o.start,o.right?(i=!0,s=o.right):s=o.end,f("div",{className:[t||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",r||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,t){let{props:i}=this;return f(Bs,{key:e,widgetGroups:t,title:i.title,navUnit:i.navUnit,activeButton:i.activeButton,isTodayEnabled:i.isTodayEnabled,isPrevEnabled:i.isPrevEnabled,isNextEnabled:i.isNextEnabled,titleId:i.titleId})}},Ls=class extends P{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,ge(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:i}=e,r=["fc-view-harness",i||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",o="";return i?t.availableWidth!==null?s=t.availableWidth/i:o=`${1/i*100}%`:s=e.height||"",f("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:s,paddingBottom:o}},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})}},Vs=class extends Re{constructor(e){super(e),this.handleSegClick=(t,i)=>{let{component:r}=this,{context:s}=r,o=ze(i);if(o&&r.isValidSegDownEl(t.target)){let a=$(t.target,".fc-event-forced-url"),l=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:i,event:new W(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:s.viewApi}),l&&!t.defaultPrevented&&(window.location.href=l)}},this.destroy=Gr(e.el,"click",".fc-event",this.handleSegClick)}},Us=class extends Re{constructor(e){super(e),this.handleEventElRemove=t=>{t===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,i)=>{ze(i)&&(this.currentSegEl=i,this.triggerEvent("eventMouseEnter",t,i))},this.handleSegLeave=(t,i)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,i))},this.removeHoverListeners=kl(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,i){let{component:r}=this,{context:s}=r,o=ze(i);(!t||r.isValidSegDownEl(t.target))&&s.emitter.trigger(e,{el:i,event:new W(s,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:s.viewApi})}},js=class extends An{constructor(){super(...arguments),this.buildViewContext=x(Gl),this.buildViewPropTransformers=x(jh),this.buildToolbarProps=x(Uh),this.headerRef=Q(),this.footerRef=Q(),this.interactionsStore={},this.state={viewLabelId:Se()},this.registerInteractiveComponent=(e,t)=>
vendor: 4,612 bytes, line 1
1{let i=nc(e,t),o=[Vs,Us].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(i));this.interactionsStore[e.uid]=o,Ut[e.uid]=i},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let i of t)i.destroy();delete this.interactionsStore[e.uid]}delete Ut[e.uid]},this.resizeRunner=new gt(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:t,options:i}=e,r=!1,s="",o;e.isHeightAuto||e.forPrint?s="":i.height!=null?r=!0:i.contentHeight!=null?s=i.contentHeight:o=Math.max(i.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),l=t.header&&t.header.hasTitle?this.state.viewLabelId:void 0;return f(we.Provider,{value:a},f(Te,{unit:"day"},d=>{let c=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,d,e.viewTitle);return f(N,null,t.header&&f(Bi,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:l},c)),f(Ls,{liquid:r,height:s,aspectRatio:o,labeledById:l},this.renderView(e),this.buildAppendContent()),t.footer&&f(Bi,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},c)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(i=>new i(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let i in t)t[i](e[i],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:i}=t.pluginHooks;for(let r in i)t[r]!==e[r]&&i[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map(i=>i(e));return f(N,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:i}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(t.viewPropsTransformers);for(let a of s)Object.assign(r,a.transform(r,e));let o=i.component;return f(o,Object.assign({},r))}};function Uh(n,e,t,i,r,s){let o=t.build(r,void 0,!1),a=t.buildPrev(e,i,!1),l=t.buildNext(e,i,!1);return{title:s,activeButton:n.type,navUnit:n.singleUnit,isTodayEnabled:o.isValid&&!Ce(e.currentRange,r),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function jh(n){return n.map(e=>new e)}var Li=class extends hn{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=i=>{switch(i.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=i=>{this.currentData=i,this.renderRunner.request(i.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:i}=this;an(()=>{$e(f(fn,{options:i.calendarOptions,theme:i.theme,emitter:i.emitter},(r,s,o,a)=>(this.setClassNames(r),this.setHeight(s),f(cs.Provider,{value:this.customContentRenderId},f(js,Object.assign({isHeightAuto:o,forPrint:a},i))))),this.el)})}else this.isRendered&&(this.isRendered=!1,$e(null,this.el),this.setClassNames([]),this.setHeight(""))},Al(e),this.el=e,this.renderRunner=new gt(this.handleRenderRequest),new Fs({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){an(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!Pe(e,this.currentClassNames)){let{classList:t}=this.el;
1for(let i of this.currentClassNames)t.remove(i);for(let i of e)t.add(i);this.currentClassNames=e}}setHeight(e){zr(this.el,"height",e)}};var zh=["*"],Gh=["rootEl"],qt=n=>({$implicit:n});function qh(n,e){if(n&1&&(y(0,"div",2,0),dt(2,3),v()),n&2){let t=w();R("ngClass",t.elClasses||"")("ngStyle",t.elStyle||null),C(2),R("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ut(4,qt,t.renderProps))}}function Qh(n,e){if(n&1&&(y(0,"span",2,0),dt(2,3),v()),n&2){let t=w();R("ngClass",t.elClasses||"")("ngStyle",t.elStyle||null),C(2),R("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ut(4,qt,t.renderProps))}}function Yh(n,e){if(n&1&&(y(0,"a",2,0),dt(2,3),v()),n&2){let t=w();R("ngClass",t.elClasses||"")("ngStyle",t.elStyle||null),C(2),R("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ut(4,qt,t.renderProps))}}function Zh(n,e){if(n&1&&(y(0,"tr",2,0),dt(2,3),v()),n&2){let t=w();R("ngClass",t.elClasses||"")("ngStyle",t.elStyle||null),C(2),R("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ut(4,qt,t.renderProps))}}function $h(n,e){if(n&1&&(y(0,"th",2,0),dt(2,3),v()),n&2){let t=w();R("ngClass",t.elClasses||"")("ngStyle",t.elStyle||null),C(2),R("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ut(4,qt,t.renderProps))}}function Xh(n,e){if(n&1&&(y(0,"td",2,0),dt(2,3),v()),n&2){let t=w();R("ngClass",t.elClasses||"")("ngStyle",t.elStyle||null),C(2),R("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ut(4,qt,t.renderProps))}}var Kh=["dayHeaderContent"],Jh=["dayCellContent"],ep=["weekNumberContent"],tp=["nowIndicatorContent"],np=["eventContent"],ip=["slotLaneContent"],rp=["slotLabelContent"],sp=["allDayContent"],op=["moreLinkContent"],ap=["noEventsContent"],lp=["resourceAreaHeaderContent"],cp=["resourceGroupLabelContent"],dp=["resourceLabelContent"],up=["resourceLaneContent"],fp=["resourceGroupLaneContent"];function hp(n,e){if(n&1&&j(0,"transport-container",1),n&2){let t=e.$implicit;R("inPlaceOf",t.containerEl)("reportEl",t.reportNewContainerEl)("elTag",t.elTag)("elClasses",t.elClasses)("elStyle",t.elStyle)("elAttrs",t.elAttrs)("template",t.generatorMeta)("renderProps",t.renderProps)}}var Fc={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},pp=["events","eventSources","resources"],gp=Object.prototype.hasOwnProperty;function Ui(n){return Array.isArray(n)?n.map(Ui):n instanceof Date?new Date(n.valueOf()):typeof n=="object"&&n?Vc(n,Ui):n}function Vc(n,e){let t={};for(let i in n)gp.call(n,i)&&(t[i]=e(n[i],i));return t}function Gs(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){if(n.constructor!==e.constructor)return!1;var t,i,r;if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!Gs(n[i],e[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=t;i--!==0;){var s=r[i];if(!Gs(n[s],e[s]))return!1}return!0}return n!==n&&e!==e}var Vi=typeof document<"u"?document.createDocumentFragment():null,mp=(()=>{class n{constructor(t){this.element=t}ngAfterViewInit(){Vi&&Vi.appendChild(this.element.nativeElement)}ngOnDestroy(){Vi&&Vi.removeChild(this.element.nativeElement)}}return n.\u0275fac=function(t){return new(t||n)(ie(cr))},n.\u0275cmp=Ye({type:n,selectors:[["offscreen-fragment"]],standalone:!1,ngContentSelectors:zh,decls:1,vars:0,template:function(t,i){t&1&&(Po(),No(0))},encapsulation:2,changeDetection:1}),n})(),Gt=typeof document<"u"?document.createDocumentFragment():null,vp=(()=>{class n{ngAfterViewInit(){let t=this.rootElRef?.nativeElement;Bc(t,this.inPlaceOf),zs(t,void 0,this.elAttrs),this.inPlaceOf.style.display="none",this.reportEl(t)}ngOnChanges(t){let i=this.rootElRef?.nativeElement;if(i)if(this.inPlaceOf.parentNode!==Gt)Bc(i,this.inPlaceOf),zs(i,void 0,this.elAttrs),this.reportEl(i);else{let r=t.elAttrs;r&&zs(i,r.previousValue,r.currentValue)}}ngOnDestroy(){this.inPlaceOf.parentNode===Gt&&Gt&&Gt.removeChild(this.inPlaceOf),this.reportEl(null)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Ye({type:n,selectors:[["transport-container"]],viewQuery:function(t,i){if(t&1&&Gn(Gh,5),t&2){let r;Y(r=Z())&&(i.rootElRef=r.first)}},inputs:{inPlaceOf:"inPlaceOf",reportEl:"reportEl",elTag:"elTag",elClasses:"elClasses",elStyle:"elStyle",elAttrs:"elAttrs",template:"template",renderProps:"renderProps"},standalone:!1,features:[Io],decls:6,vars:6,consts:[["rootEl",""],[3,"ngIf"],[3,"ngClass","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){t&1&&ct(0,qh,3,6,"ng-template",1)(1,Qh,3,6,"ng-template",1)(2,Yh,3,6,"ng-template",1)(3,Zh,3,6,"ng-template",1)(4,$h,3,6,"ng-template",1)(5,Xh,3,6,"ng-template",1),t&2&&(R("ngIf",i.elTag=="div"),C(),R("ngIf",i.elTag=="span"),C(),R("ngIf",i.elTag=="a"),C(),R("ngIf",i.elTag=="tr"),C(),R("ngIf",i.elTag=="th"),C(),R("ngIf",i.elTag=="td"))},dependencies:[Uo,Lo,jo,Wo],encapsulation:2,changeDetection:1}),n})();function Bc(n,e){e.parentNode?.insertBefore(n,e.nextSibling),Gt&&Gt.appendChild(e)}function zs(n,e={},t={}){for(let i in e)i in t||(n[i]=null);for(let i in t)n[i]=t[i]}var Wi=(()=>{class n{constructor(t,i){this.element=t,this.calendar=null,this.optionSnapshot={},this.customRenderingMap=new Map;let r=new _n;r.subscribe(s=>{this.customRenderingMap=s,this.customRenderingArray=void 0,i.detectChanges()}),this.handleCustomRendering=r.handle.bind(r)}ngAfterViewInit(){let{deepChangeDetection:t}=this,i=ve(ve({},this.options),this.buildInputOptions());this.optionSnapshot=Vc(i,(a,l)=>t&&Fc[l]?Ui(a):a);let r=this.element.nativeElement,s=this.calendar=new Li(r,ve(ve({},i),this.buildExtraOptions())),o=r.closest("ion-content");o&&o.componentOnReady?o.componentOnReady().then(()=>{window.requestAnimationFrame(()=>{s.render()})}):s.render(),setTimeout(()=>s.updateSize())}ngDoCheck(){if(this.calendar){let{deepChangeDetection:t,optionSnapshot:i}=this,r=ve(ve({},this.options),this.buildInputOptions()),s={},o=[];for(let l in r)if(r.hasOwnProperty(l)){let d=r[l];t&&Fc[l]?Gs(i[l],d)||(i[l]=Ui(d),o.push(l)):i[l]!==d&&(i[l]=d,o.push(l)),s[l]=d}let a=Object.keys(i);for(let l of a)l in r||(delete i[l],o.push(l));o.length&&(this.calendar.pauseRendering(),this.calendar.resetOptions(ve(ve({},s),this.buildExtraOptions()),o))}}ngAfterContentChecked(){this.calendar&&this.calendar.resumeRendering()}ngOnDestroy(){this.calendar&&(this.calendar.destroy(),this.calendar=null)}get customRenderings(){return this.customRenderingArray||(this.customRenderingArray=[...this.customRenderingMap.values()])}getApi(){return this.calendar}buildInputOptions(){let t={};for(let i of pp){let r=this[i];r!=null&&(t[i]=r)}return t}buildExtraOptions(){return{handleCustomRendering:this.handleCustomRendering,customRenderingMetaMap:this,customRenderingReplaces:!0}}trackCustomRendering(t,i){return i.id}}return n.\u0275fac=function(t){return new(t||n)(ie(cr),ie(Qn))}
1,n.\u0275cmp=Ye({type:n,selectors:[["full-calendar"]],contentQueries:function(t,i,r){if(t&1&&Ho(r,Kh,7)(r,Jh,7)(r,ep,7)(r,tp,7)(r,np,7)(r,ip,7)(r,rp,7)(r,sp,7)(r,op,7)(r,ap,7)(r,lp,7)(r,cp,7)(r,dp,7)(r,up,7)(r,fp,7),t&2){let s;Y(s=Z())&&(i.dayHeaderContent=s.first),Y(s=Z())&&(i.dayCellContent=s.first),Y(s=Z())&&(i.weekNumberContent=s.first),Y(s=Z())&&(i.nowIndicatorContent=s.first),Y(s=Z())&&(i.eventContent=s.first),Y(s=Z())&&(i.slotLaneContent=s.first),Y(s=Z())&&(i.slotLabelContent=s.first),Y(s=Z())&&(i.allDayContent=s.first),Y(s=Z())&&(i.moreLinkContent=s.first),Y(s=Z())&&(i.noEventsContent=s.first),Y(s=Z())&&(i.resourceAreaHeaderContent=s.first),Y(s=Z())&&(i.resourceGroupLabelContent=s.first),Y(s=Z())&&(i.resourceLabelContent=s.first),Y(s=Z())&&(i.resourceLaneContent=s.first),Y(s=Z())&&(i.resourceGroupLaneContent=s.first)}},inputs:{options:"options",deepChangeDetection:"deepChangeDetection",events:"events",eventSources:"eventSources",resources:"resources"},standalone:!1,decls:2,vars:2,consts:[[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps"]],template:function(t,i){t&1&&(y(0,"offscreen-fragment"),ct(1,hp,1,8,"transport-container",0),v()),t&2&&(C(),R("ngForOf",i.customRenderings)("ngForTrackBy",i.trackCustomRendering))},dependencies:[mp,vp,Vo],encapsulation:2,changeDetection:1}),n})(),Uc=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=zn({type:n}),n.\u0275inj=Wn({imports:[[Tt]]}),n})();var qs=class extends ee{constructor(){super(...arguments),this.headerElRef=Q()}renderSimpleLayout(e,t){let{props:i,context:r}=this,s=[],o=Rt(r.options);return e&&s.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}
vendor: 3,907 bytes, line 1
1),f(Ae,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},f(tt,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,t,i,r){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:o,context:a}=this,l=!o.forPrint&&Rt(a.options),d=!o.forPrint&&Fn(a.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),d&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Wt}]}),f(Ae,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},f(s,{liquid:!o.isHeightAuto&&!o.forPrint,forPrint:o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:i,minWidth:r}]}],sections:c}))}};function Gi(n,e){let t=[];for(let i=0;i<e;i+=1)t[i]=[];for(let i of n)t[i.row].push(i);return t}function zi(n,e){let t=[];for(let i=0;i<e;i+=1)t[i]=[];for(let i of n)t[i.firstCol].push(i);return t}function jc(n,e){let t=[];if(n){for(let i=0;i<e;i+=1)t[i]={affectedInstances:n.affectedInstances,isEvent:n.isEvent,segs:[]};for(let i of n.segs)t[i.row].segs.push(i)}else for(let i=0;i<e;i+=1)t[i]=null;return t}var Wc=L({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function zc(n){let{display:e}=n.eventRange.ui;return e==="list-item"||e==="auto"&&!n.eventRange.def.allDay&&n.firstCol===n.lastCol&&n.isStart&&n.isEnd}var qi=class extends P{render(){let{props:e}=this;return f(nt,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Wc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}},Qi=class extends P{render(){let{props:e,context:t}=this,{options:i}=t,{seg:r}=e,s=i.eventTimeFormat||Wc,o=lt(r,s,t,!0,e.defaultDisplayEventEnd);return f(je,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Vt(e.seg,t),defaultGenerator:bp,timeText:o,isResizing:!1,isDateSelecting:!1}))}};function bp(n){return f(N,null,f("div",{className:"fc-daygrid-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}}),n.timeText&&f("div",{className:"fc-event-time"},n.timeText),f("div",{className:"fc-event-title"},n.event.title||f(N,null,"\xA0")))}var Qs=class extends P{constructor(){super(...arguments),this.compileSegs=x(_p)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:i}=this.compileSegs(e.singlePlacements);return f(Dt,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:i,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let r=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return f(N,null,t.map(s=>{let o=s.eventRange.instance.instanceId;return f("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:r[o]?"hidden":""}},zc(s)?f(Qi,Object.assign({seg:s,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},me(s,e.todayRange))):f(qi,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},me(s,e.todayRange))))}))}})}};function _p(n){let e=[],t=[];for(let i of n)e.push(i.seg),i.isVisible||t.push(i.seg);return{allSegs:e,invisibleSegs:t}}var Cp=L({week:"narrow"}),Ys=class extends ee{constructor(){super(...arguments),this.rootElRef=Q(),this.state={dayNumberId:Se()},this.handleRootEl=e=>{ge(this.rootElRef,e),ge(this.props.elRef,e)}}render(){let{context:e,props:t,state:i,rootElRef:r}=this,{options:s,dateEnv:o}=e,{date:a,dateProfile:l}=t,d=t.showDayNumber&&Sp(a,l.currentRange,o);return f(it,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
1d-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":i.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Ep,date:a,dateProfile:l,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:d,extraRenderProps:t.extraRenderProps},(c,p)=>f("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&f(Vn,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Fe(e,a,"week"),date:a,defaultFormat:Cp}),!p.isDisabled&&(t.showDayNumber||zt(s)||t.forceDayTop)?f("div",{className:"fc-daygrid-day-top"},f(c,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Fe(e,a)),{id:i.dayNumberId})})):t.showDayNumber?f("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},f("a",{className:"fc-daygrid-day-number"},"\xA0")):void 0,f("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,f("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},f(Qs,{allDayDate:a,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),f("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}};function Ep(n){return n.dayNumberText||f(N,null,"\xA0")}function Sp(n,e,t){let{start:i,end:r}=e,s=Oe(r,-1),o=t.getYear(i),a=t.getMonth(i),l=t.getYear(s),d=t.getMonth(s);return!(o===l&&a===d)&&(n.valueOf()===i.valueOf()||t.getDay(n)===1&&n.valueOf()<r.valueOf())}function Gc(n){return n.eventRange.instance.instanceId+":"+n.firstCol}function qc(n){return Gc(n)+":"+n.lastCol}function wp(n,e,t,i,r,s,o){let a=new Zs(E=>{let D=n[E.index].eventRange.instance.instanceId+":"+E.span.start+":"+(E.span.end-1);return r[D]||1});a.allowReslicing=!0,a.strictOrder=i,e===!0||t===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof t=="number"&&(a.maxStackCnt=t,a.hiddenConsumes=!0);let l=[],d=[];for(let E=0;E<n.length;E+=1){let D=n[E],O=qc(D);r[O]!=null?l.push({index:E,span:{start:D.firstCol,end:D.lastCol+1}}):d.push(D)}let c=a.addSegs(l),p=a.toRects(),{singleColPlacements:h,multiColPlacements:u,leftoverMargins:m}=Dp(p,n,o),_=[],b=[];for(let E of d){u[E.firstCol].push({seg:E,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let D=E.firstCol;D<=E.lastCol;D+=1)h[D].push({seg:Qt(E,D,D+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let E=0;E<o.length;E+=1)_.push(0);for(let E of c){let D=n[E.index],O=E.span;u[O.start].push({seg:Qt(D,O.start,O.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let M=O.start;M<O.end;M+=1)_[M]+=1,h[M].push({seg:Qt(D,M,M+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let E=0;E<o.length;E+=1)b.push(m[E]);return{singleColPlacements:h,multiColPlacements:u,moreCnts:_,moreMarginTops:b}}function Dp(n,e,t){let i=xp(n,t.length),r=[],s=[],o=[];for(let a=0;a<t.length;a+=1){let l=i[a],d=[],c=0,p=0;for(let u of l){let m=e[u.index];d.push({seg:Qt(m,a,a+1,t),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:u.levelCoord-c}),c=u.levelCoord+u.thickness}let h=[];c=0,p=0;for(let u of l){let m=e[u.index],_=u.span.end-u.span.start>1,b=u.span.start===a;p+=u.levelCoord-c,c=u.levelCoord+u.thickness,_?(p+=u.thickness,b&&h.push({seg:Qt(m,u.span.start,u.span.end,t),isVisible:!0,isAbsolute:!0,absoluteTop:u.levelCoord,marginTop:0})):b&&(h.push({seg:Qt(m,u.span.start,u.span.end,t),isVisible:!0,isAbsolute:!1,absoluteTop:u.levelCoord,marginTop:p}),p=0)}r.push(d),s.push(h),o.push(p)}return{singleColPlacements:r,multiColPlacements:s,leftoverMargins:o}}function xp(n,e){let t=[];for(let i=0;i<e;i+=1)t.push([]);for(let i of n)for(let r=i.span.start;r<i.span.end;r+=1)t[r].push(i);return t}function Qt(n,e,t,i){if(n.firstCol===e&&n.lastCol===t-1)return n;let r=n.eventRange,s=r.range,o=pe(s,{start:i[e].date,end:G(i[t-1].date,1)});return Object.assign(Object.assign({}
vendor: 12,508 bytes, line 1
1,n),{firstCol:e,lastCol:t-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:!1}),instance:r.instance,range:o},isStart:n.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:n.isEnd&&o.end.valueOf()===s.end.valueOf()})}var Zs=class extends bt{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let t=super.addSegs(e),{entriesByLevel:i}=this,r=s=>!this.forceHidden[Ie(s)];for(let s=0;s<i.length;s+=1)i[s]=i[s].filter(r);return t}handleInvalidInsertion(e,t,i){let{entriesByLevel:r,forceHidden:s}=this,{touchingEntry:o,touchingLevel:a,touchingLateral:l}=e;if(this.hiddenConsumes&&o){let d=Ie(o);if(!s[d])if(this.allowReslicing){let c=Object.assign(Object.assign({},o),{span:Nn(o.span,t.span)}),p=Ie(c);s[p]=!0,r[a][l]=c,i.push(c),this.splitEntry(o,t,i)}else s[d]=!0,i.push(o)}super.handleInvalidInsertion(e,t,i)}},Yi=class extends ee{constructor(){super(...arguments),this.cellElRefs=new ue,this.frameElRefs=new ue,this.fgElRefs=new ue,this.segHarnessRefs=new ue,this.rootElRef=Q(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:i}=this,{options:r}=i,s=e.cells.length,o=zi(e.businessHourSegs,s),a=zi(e.bgEventSegs,s),l=zi(this.getHighlightSegs(),s),d=zi(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:p,moreCnts:h,moreMarginTops:u}=wp(At(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return f("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((_,b)=>{let E=this.renderFgSegs(b,e.forPrint?c[b]:p[b],e.todayRange,m),D=this.renderFgSegs(b,Ap(d[b],p),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return f(Ys,{key:_.key,elRef:this.cellElRefs.createRef(_.key),innerElRef:this.frameElRefs.createRef(_.key),dateProfile:e.dateProfile,date:_.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&b===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:_.extraRenderProps,extraDataAttrs:_.extraDataAttrs,extraClassNames:_.extraClassNames,extraDateSpan:_.extraDateSpan,moreCnt:h[b],moreMarginTop:u[b],singlePlacements:c[b],fgContentElRef:this.fgElRefs.createRef(_.key),fgContent:f(N,null,f(N,null,E),f(N,null,D)),bgContent:f(N,null,this.renderFillSegs(l[b],"highlight"),this.renderFillSegs(o[b],"non-business"),this.renderFillSegs(a[b],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let i=this.props;this.updateSizing(!de(e,i))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,i,r,s,o,a){let{context:l}=this,{eventSelection:d}=this.props,{framePositions:c}=this.state,p=this.props.cells.length===1,h=s||o||a,u=[];if(c)for(let m of t){let{seg:_}=m,{instanceId:b}=_.eventRange.instance,E=m.isVisible&&!r[b],D=m.isAbsolute,O="",M="";D&&(l.isRtl?(M=0,O=c.lefts[_.lastCol]-c.lefts[_.firstCol]):(O=0,M=c.rights[_.firstCol]-c.rights[_.lastCol])),u.push(f("div",{className:"fc-daygrid-event-harness"+(D?" fc-daygrid-event-harness-abs":""),key:Gc(_),ref:h?null:this.segHarnessRefs.createRef(qc(_)),style:{visibility:E?"":"hidden",marginTop:D?"":m.marginTop,top:D?m.absoluteTop:"",left:O,right:M}},zc(_)?f(Qi,Object.assign({seg:_,isDragging:s,isSelected:b===d,defaultDisplayEventEnd:p},me(_,i))):f(qi,Object.assign({seg:_,isDragging:s,isResizing:o,isDateSelecting:a,isSelected:b===d,defaultDisplayEventEnd:p},me(_,i)))))}return u}renderFillSegs(e,t){let{isRtl:i}=this.context,{todayRange:r}=this.props,{framePositions:s}=this.state,o=[];if(s)for(let a of e){let l=i?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};o.push(f("div",{key:kn(a.eventRange),className:"fc-daygrid-bg-harness",style:l},t==="bg-event"?f(wt,Object.assign({seg:a},me(a,r))):Ln(t)))}return f(N,{},...o)}updateSizing(e){let{props:t,state:i,frameElRefs:r}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let l=t.cells.map(d=>r.currentMap[d.key]);if(l.length){let d=this.rootElRef.current,c=new Me(d,l,!0,!1);(!i.framePositions||!i.framePositions.similarTo(c))&&this.setState({framePositions:new Me(d,l,!0,!1)})}}let s=this.state.segHeights,o=this.querySegHeights(),a=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),o),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let i in e){let r=Math.round(e[i].getBoundingClientRect().height);t[i]=Math.max(t[i]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],i=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-i.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}};Yi.addStateEquality({segHeights:de});function Ap(n,e){if(!n.length)return[];let t=Rp(e);return n.map(i=>({seg:i,isVisible:!0,isAbsolute:!0,absoluteTop:t[i.eventRange.instance.instanceId],marginTop:0}))}function Rp(n){let e={};for(let t of n)for(let i of t)e[i.seg.eventRange.instance.instanceId]=i.absoluteTop;return e}var $s=class extends ee{constructor(){super(...arguments),this.splitBusinessHourSegs=x(Gi),this.splitBgEventSegs=x(Mp),this.splitFgEventSegs=x(Gi),this.splitDateSelectionSegs=x(Gi),this.splitEventDrag=x(jc),this.splitEventResize=x(jc),this.rowRefs=new ue}render(){let{props:e,context:t}=this,i=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,i),s=this.splitBgEventSegs(e.bgEventSegs,i),o=this.splitFgEventSegs(e.fgEventSegs,i),a=this.splitDateSelectionSegs(e.dateSelectionSegs,i),l=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i),c=i>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return f(Te,{unit:"day"},(p,h)=>f(N,null,e.cells.map((u,m)=>f(Yi,{ref:this.rowRefs.createRef(m),key:u.length?u[0].date.toISOString():m,showDayNumbers:i>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:u,renderIntro:e.renderRowIntro,businessHourSegs:r[m],eventSelection:e.eventSelection,bgEventSegs:s[m],fgEventSegs:o[m],dateSelectionSegs:a[m],eventDrag:l[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){let e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Me(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Me(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:i,rowPositions:r}=this,s=i.leftToIndex(e),o=r.topToIndex(t);if(o!=null&&s!=null){let a=this.props.cells[o][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(o,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(o,s),rect:{left:i.lefts[s],right:i.rights[s],top:r.tops[o],bottom:r.bottoms[o]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let i=this.props.cells[e][t].date,r=G(i,1);return{start:i,end:r}}};function Mp(n,e){return Gi(n.filter(Tp),e)}function Tp(n){return n.eventRange.def.allDay}var Xs=class extends ee{constructor(){super(...arguments),this.elRef=Q(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:i,expandRows:r}=e,s=i===!0||t===!0;s&&!r&&(s=!1,t=null,i=null);let o=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return f("div",{ref:this.elRef,className:o.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},f("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,f("tbody",{role:"presentation"},f($s,{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:i,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=kp(this.elRef.current,this.props.dateProfile);if(e){let t=e.closest(".fc-daygrid-body"),i=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;i.scrollTop=r?r+1:0}this.needsScrollReset=!1}}};function kp(n,e){let t;return e.currentRangeUnit.match(/year|month/)&&(t=n.querySelector(`[data-date="${ts(e.currentDate)}-01"]`)),t||(t=n.querySelector(`[data-date="${st(e.currentDate)}"]`)),t}var Ks=class extends St{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}},Un=class extends ee{constructor(){super(...arguments),this.slicer=new Ks,this.tableRef=Q()}render(){let{props:e,context:t}=this;return f(Xs,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}},Zi=class extends qs{constructor(){super(...arguments),this.buildDayTableModel=x(Op),this.headerRef=Q(),this.tableRef=Q()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:i}=this,r=this.buildDayTableModel(i.dateProfile,t),s=e.dayHeaders&&f(_t,{ref:this.headerRef,dateProfile:i.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),o=a=>f(Un,{ref:this.tableRef,dateProfile:i.dateProfile,dayTableModel:r,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:i.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,o,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,o)}};function Op(n,e){let t=new Ct(n.renderRange,e);return new Et(t,/year|month|week/.test(n.currentRangeUnit))}var $i=class extends mt{buildRenderRange(e,t,i){let r=super.buildRenderRange(e,t,i),{props:s}=this;return Ip({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}};function Ip(n){let{dateEnv:e,currentRange:t}=n,{start:i,end:r}=t,s;if(n.snapToWeek&&(i=e.startOfWeek(i),s=e.startOfWeek(r),s.valueOf()!==r.valueOf()&&(r=Ci(s,1))),n.fixedWeekCount){let o=e.startOfWeek(e.startOfMonth(G(t.end,-1))),a=Math.ceil(Jr(o,r));r=Ci(r,6-a)}return{start:i,end:r}}var Pp
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: 60,218 bytes, line 1
1rt(Pp);var Qc=fe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Zi,dateProfileGeneratorClass:$i},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}}}});Hn.touchMouseIgnoreWait=500;var Js=0,Xi=0,eo=!1,Ki=class{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=t=>{if(!this.shouldIgnoreMouse()&&Np(t)&&this.tryStart(t)){let i=this.createEventFromMouse(t,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=t=>{let i=this.createEventFromMouse(t);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleMouseUp=t=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=t=>{if(this.tryStart(t)){this.isTouchDragging=!0;let i=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i);let r=t.target;this.shouldIgnoreMove||r.addEventListener("touchmove",this.handleTouchMove),r.addEventListener("touchend",this.handleTouchEnd),r.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=t=>{let i=this.createEventFromTouch(t);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleTouchEnd=t=>{if(this.isDragging){let i=t.target;i.removeEventListener("touchmove",this.handleTouchMove),i.removeEventListener("touchend",this.handleTouchEnd),i.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,Hp()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=t=>{if(!this.shouldIgnoreMove){let i=window.scrollX-this.prevScrollX+this.prevPageX,r=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:i,pageY:r,deltaX:i-this.origPageX,deltaY:r-this.origPageY})}},this.containerEl=e,this.emitter=new Ue,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Fp()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Bp()}tryStart(e){let t=this.querySubjectEl(e),i=e.target;return t&&(!this.handleSelector||$(i,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){eo=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?$(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Js||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(eo=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let i=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(i=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:i,deltaY:r}}createEventFromTouch(e,t){let i=e.touches,r,s,o=0,a=0;return i&&i.length?(r=i[0].pageX,s=i[0].pageY):(r=e.pageX,s=e.pageY),t?(this.origPageX=r,this.origPageY=s):(o=r-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:s,deltaX:o,deltaY:a}}};function Np(n){return n.button===0&&!n.ctrlKey}function Hp(){Js+=1,setTimeout(()=>{Js-=1},Hn.touchMouseIgnoreWait)}function Fp(){Xi+=1,Xi===1&&window.addEventListener("touchmove",Zc,{passive:!1})}function Bp(){Xi-=1,Xi||window.removeEventListener("touchmove",Zc,{passive:!1})}function Zc(n){eo&&n.preventDefault()}var to=class{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,i){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=i-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let i=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)}doRevertAnimation(e,t){let i=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();i.style.transition="top "+t+"ms,left "+t+"ms",xt(i,{left:r.left,top:r.top}),qr(i,()=>{i.style.transition="",e()})}cleanup(){this.mirrorEl&&(Cn(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&xt(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),xt(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}},Ji=class extends yt{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}},er=class extends Ji{constructor(e,t){super(new gn(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Ms(this.scrollController.el)}},no=class extends Ji{constructor(e){super(new mn,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()}},Yc=typeof performance=="function"?performance.now:Date.now,io=class{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=Yc();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,i){this.isEnabled&&(this.scrollCaches=this.buildCaches(i),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let i=e-window.scrollX,r=t-window.scrollY,s=this.pointerScreenY===null?0:r-this.pointerScreenY,o=this.pointerScreenX===null?0:i-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=i,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Yc()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:i}=e,{edgeThreshold:r}=this,s=r-e.distance,o=s*s/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":i.setScrollLeft(i.getScrollLeft()+o*a);break;case"top":a=-1;case"bottom":i.setScrollTop(i.getScrollTop()+o*a);break}}computeBestEdge(e,t){let{edgeThreshold:i}=this,r=null,s=this.scrollCaches||[];for(let o of s){let a=o.clientRect,l=e-a.left,d=a.right-e,c=t-a.top,p=a.bottom-t;l>=0&&d>=0&&c>=0&&p>=0&&(c<=i&&this.everMovedUp&&o.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:o,name:"top",distance:c}),p<=i&&this.everMovedDown&&o.canScrollDown()&&(!r||r.distance>p)&&(r={scrollCache:o,name:"bottom",distance:p}),l<=i&&this.everMovedLeft&&o.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:o,name:"left",distance:l}),d<=i&&this.everMovedRight&&o.canScrollRight()&&(!r||r.distance>d)&&(r={scrollCache:o,name:"right",distance:d}))}return r}buildCaches(e){return this.queryScrollEls(e).map(t=>t===window?new no(!1):new er(t,!1))}queryScrollEls(e){let t=[];for(let i of this.scrollQuery)typeof i=="object"?t.push(i):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(i)));return t}},Mt=class extends bn{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=r=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Qr(document.body),Zr(document.body),r.isTouch||r.origEvent.preventDefault(),this.emitter.trigger("pointerdown",r),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(r.subjectEl,r.pageX,r.pageY),this.startDelay(r),this.minDistance||this.handleDistanceSurpassed(r)))},this.onPointerMove=r=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",r),!this.isDistanceSurpassed){let s=this.minDistance,o,{deltaX:a,deltaY:l}=r;o=a*a+l*l,o>=s*s&&this.handleDistanceSurpassed(r)}this.isDragging&&(r.origEvent.type!=="scroll"&&(this.mirror.handleMove(r.pageX,r.pageY),this.autoScroller.handleMove(r.pageX,r.pageY)),this.emitter.trigger("dragmove",r))}},this.onPointerUp=r=>{this.isInteracting&&(this.isInteracting=!1,Yr(document.body),$r(document.body),this.emitter.trigger("pointerup",r),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(r)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let i=this.pointer=new Ki(e);i.emitter.on("pointerdown",this.onPointerDown),i.emitter.on("pointermove",this.onPointerMove),i.emitter.on("pointerup",this.onPointerUp),t&&(i.selector=t),this.mirror=new to,this.autoScroller=new io}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}},ro=class{constructor(e){this.el=e,this.origRect=Pn(e),this.scrollCaches=Pi(e).map(t=>new er(t,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let i={left:e,top:t};for(let r of this.scrollCaches)if(!Lp(r.getEventTarget())&&!Ds(i,r.clientRect))return!1;return!0}};function Lp(n){let e=n.tagName;return e==="HTML"||e==="BODY"}var Yt=class{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=i=>{let{dragging:r}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(i),this.initialHit||!this.requireInitial?(r.setIgnoreMove(!1),this.emitter.trigger("pointerdown",i)):r.setIgnoreMove(!0)},this.handleDragStart=i=>{this.emitter.trigger("dragstart",i),this.handleMove(i,!0)},this.handleDragMove=i=>{this.emitter.trigger("dragmove",i),this.handleMove(i)},this.handlePointerUp=i=>{this.releaseHits(),this.emitter.trigger("pointerup",i)},this.handleDragEnd=i=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,i),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",i)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Ue}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},i=t,r=e.subjectEl,s;r instanceof HTMLElement&&(s=Pn(r),i=xs(i,s));let o=this.initialHit=this.queryHitForOffset(i.left,i.top);if(o){if(this.useSubjectCenter&&s){let a=Ii(s,o.rect);a&&(i=As(a))}this.coordAdjust=Rs(i,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let i=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!tr(this.movingHit,i))&&(this.movingHit=i,this.emitter.trigger("hitupdate",i,!1,e))}prepareHits(){this.offsetTrackers=Ee(this.droppableStore,e=>(e.component.prepareHits(),new ro(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:i,offsetTrackers:r}=this,s=null;for(let o in i){let a=i[o].component,l=r[o];if(l&&l.isWithinClipping(e,t)){let d=l.computeLeft(),c=l.computeTop(),p=e-d,h=t-c,{origRect:u}=l,m=u.right-u.left,_=u.bottom-u.top;if(p>=0&&p<m&&h>=0&&h<_){let b=a.queryHit(p,h,m,_);b&&Bt(b.dateProfile.activeRange,b.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(p+d-window.scrollX,h+c-window.scrollY)))&&(!s||b.layer>s.layer)&&(b.componentId=o,b.context=a.context,b.rect.left+=d,b.rect.right+=d,b.rect.top+=c,b.rect.bottom+=c,s=b)}}}return s}};function tr(n,e){return!n&&!e?!0:!!n!=!!e?!1:_s(n.dateSpan,e.dateSpan)}function $c(n,e){let t={};for(let i of e.pluginHooks.datePointTransforms)Object.assign(t,i(n,e));return Object.assign(t,Vp(n,e.dateEnv)),t}function Vp(n,e){return{date:e.toDate(n.range.start),dateStr:e.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay}}var so=class extends Re{constructor(e){super(e),this.handlePointerDown=i=>{let{dragging:r}=this,s=i.origEvent.target;r.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=i=>{let{component:r}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:o,finalHit:a}=this.hitDragging;if(o&&a&&tr(o,a)){let{context:l}=r,d=Object.assign(Object.assign({},$c(o.dateSpan,l)),{dayEl:o.dayEl,jsEvent:i.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",d)}}},this.dragging=new Mt(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new Yt(this.dragging,On(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},oo=class extends Re{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=o=>{let{component:a,dragging:l}=this,{options:d}=a.context,c=d.selectable&&a.isValidDateDownEl(o.origEvent.target);l.setIgnoreMove(!c),l.delay=o.isTouch?Up(a):null},this.handleDragStart=o=>{this.component.context.calendarApi.unselect(o)},this.handleHitUpdate=(o,a)=>{let{context:l}=this.component,d=null,c=!1;if(o){let p=this.hitDragging.initialHit;o.componentId===p.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(p,o)||(d=jp(p,o,l.pluginHooks.dateSelectionTransformers)),(!d||!ks(d,o.dateProfile,l))&&(c=!0,d=null)}d?l.dispatch({type:"SELECT_DATES",selection:d}):a||l.dispatch({type:"UNSELECT_DATES"}),c?Sn():wn(),a||(this.dragSelection=d)},this.handlePointerUp=o=>{this.dragSelection&&(Oi(this.dragSelection,o,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:i}=t.context,r=this.dragging=new Mt(e.el);r.touchScrollAllowed=!1,r.minDistance=i.selectMinDistance||0,r.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new Yt(this.dragging,On(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 Up(n){let{options:e}=n.context,t=e.selectLongPressDelay;return t==null&&(t=e.longPressDelay),t}function jp(n,e,t){let i=n.dateSpan,r=e.dateSpan,s=[i.range.start,i.range.end,r.range.start,r.range.end];s.sort(Xr);let o={};for(let a of t){let l=a(n,e);if(l===!1)return null;l&&Object.assign(o,l)}return o.range={start:s[0],end:s[3]},o.allDay=i.allDay,o}var Xc=(()=>{class n extends Re{constructor(t){super(t),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=a=>{let l=a.origEvent.target,{component:d,dragging:c}=this,{mirror:p}=c,{options:h}=d.context,u=d.context;this.subjectEl=a.subjectEl;let m=this.subjectSeg=ze(a.subjectEl),b=(this.eventRange=m.eventRange).instance.instanceId;this.relevantEvents=Mn(u.getCurrentData().eventStore,b),c.minDistance=a.isTouch?0:h.eventDragMinDistance,c.delay=a.isTouch&&b!==d.props.eventSelection?zp(d):null,h.fixedMirrorParent?p.parentNode=h.fixedMirrorParent:p.parentNode=$(l,".fc"),p.revertDuration=h.dragRevertDuration;let E=d.isValidSegDownEl(l)&&!$(l,".fc-event-resizer");c.setIgnoreMove(!E),this.isDragging=E&&a.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=a=>{let l=this.component.context,d=this.eventRange,c=d.instance.instanceId;a.isTouch?c!==this.component.props.eventSelection&&l.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):l.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(l.calendarApi.unselect(a),l.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new W(l,d.def,d.instance),jsEvent:a.origEvent,view:l.viewApi}))},this.handleHitUpdate=(a,l)=>{if(!this.isDragging)return;let d=this.relevantEvents,c=this.hitDragging.initialHit,p=this.component.context,h=null,u=null,m=null,_=!1,b={affectedEvents:d,mutatedEvents:ne(),isEvent:!0};if(a){h=a.context;let E=h.options;p===h||E.editable&&E.droppable?(u=Wp(c,a,this.eventRange.instance.range.start,h.getCurrentData().pluginHooks.eventDragMutationMassagers),u&&(m=Tn(d,h.getCurrentData().eventUiBases,u,h),b.mutatedEvents=m,Ni(b,a.dateProfile,h)||(_=!0,u=null,m=null,b.mutatedEvents=ne()))):h=null}this.displayDrag(h,b),_?Sn():wn(),l||(p===h&&tr(c,a)&&(u=null),this.dragging.setMirrorNeedsRevert(!u),this.dragging.setMirrorIsVisible(!a||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=h,this.validMutation=u,this.mutatedRelevantEvents=m)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=a=>{if(this.isDragging){let l=this.component.context,d=l.viewApi,{receivingContext:c,validMutation:p}=this,h=this.eventRange.def,u=this.eventRange.instance,m=new W(l,h,u),_=this.relevantEvents,b=this.mutatedRelevantEvents,{finalHit:E}=this.hitDragging;if(this.clearDrag(),l.emitter.trigger("eventDragStop",{el:this.subjectEl,event:m,jsEvent:a.origEvent,view:d}),p){if(c===l){let D=new W(l,b.defs[h.defId],u?b.instances[u.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:b});let O={oldEvent:m,event:D,relatedEvents:He(b,l,u),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:_})}},M={};for(let q of l.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(M,q(p,l));l.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},O),M),{el:a.subjectEl,delta:p.datesDelta,jsEvent:a.origEvent,view:d})),l.emitter.trigger("eventChange",O)}else if(c){let D={event:m,relatedEvents:He(_,l,u),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:_})}};l.emitter.trigger("eventLeave",Object.assign(Object.assign({},D),{draggedEl:a.subjectEl,view:d})),l.dispatch({type:"REMOVE_EVENTS",eventStore:_}),l.emitter.trigger("eventRemove",D);let O=b.defs[h.defId],M=b.instances[u.instanceId],q=new W(c,O,M);c.dispatch({type:"MERGE_EVENTS",eventStore:b});let F={event:q,relatedEvents:He(b,c,M),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:b})}};c.emitter.trigger("eventAdd",F),a.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},$c(E.dateSpan,c)),{draggedEl:a.subjectEl,jsEvent:a.origEvent,view:E.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},F),{draggedEl:a.subjectEl,view:E.context.viewApi}))}}else l.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:i}=this,{options:r}=i.context,s=this.dragging=new Mt(t.el);s.pointer.selector=n.SELECTOR,s.touchScrollAllowed=!1,s.autoScroller.isEnabled=r.dragScroll;let o=this.hitDragging=new Yt(this.dragging,Ut);o.useSubjectCenter=t.useEventCenter,o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(t,i){let r=this.component.context,s=this.receivingContext;s&&s!==t&&(s===r?s.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:i.affectedEvents,mutatedEvents:ne(),isEvent:!0}}):s.dispatch({type:"UNSET_EVENT_DRAG"})),t&&t.dispatch({type:"SET_EVENT_DRAG",state:i})}clearDrag(){let t=this.component.context,{receivingContext:i}=this;i&&i.dispatch({type:"UNSET_EVENT_DRAG"}),t!==i&&t.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}}return n.SELECTOR=".fc-event-draggable, .fc-event-resizable",n})();function Wp(n,e,t,i){let r=n.dateSpan,s=e.dateSpan,o=r.range.start,a=s.range.start,l={};r.allDay!==s.allDay&&(l.allDay=s.allDay,l.hasEnd=e.context.options.allDayMaintainDuration,s.allDay?o=B(t):o=t);let d=et(o,a,n.context.dateEnv,n.componentId===e.componentId?n.largeUnit:null);d.milliseconds&&(l.allDay=!1);let c={datesDelta:d,standardProps:l};for(let p of i)p(c,n,e);return c}function zp(n){let{options:e}=n.context,t=e.eventLongPressDelay;return t==null&&(t=e.longPressDelay),t}var ao=class extends Re{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:o}=this,a=this.querySegEl(s),l=ze(a),d=this.eventRange=l.eventRange;this.dragging.minDistance=o.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:o}=this.component,a=this.eventRange;this.relevantEvents=Mn(o.getCurrentData().eventStore,this.eventRange.instance.instanceId);let l=this.querySegEl(s);this.draggingSegEl=l,this.draggingSeg=ze(l),o.calendarApi.unselect(),o.emitter.trigger("eventResizeStart",{el:l,event:new W(o,a.def,a.instance),jsEvent:s.origEvent,view:o.viewApi})},this.handleHitUpdate=(s,o,a)=>{let{context:l}=this.component,d=this.relevantEvents,c=this.hitDragging.initialHit,p=this.eventRange.instance,h=null,u=null,m=!1,_={affectedEvents:d,mutatedEvents:ne(),isEvent:!0};s&&(s.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,s)||(h=Gp(c,s,a.subjectEl.classList.contains("fc-event-resizer-start"),p.range))),h&&(u=Tn(d,l.getCurrentData().eventUiBases,h,l),_.mutatedEvents=u,Ni(_,s.dateProfile,l)||(m=!0,h=null,u=null,_.mutatedEvents=null)),u?l.dispatch({type:"SET_EVENT_RESIZE",state:_}):l.dispatch({type:"UNSET_EVENT_RESIZE"}),m?Sn():wn(),o||(h&&tr(c,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=u)},this.handleDragEnd=s=>{let{context:o}=this.component,a=this.eventRange.def,l=this.eventRange.instance,d=new W(o,a,l),c=this.relevantEvents,p=this.mutatedRelevantEvents;if(o.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:d,jsEvent:s.origEvent,view:o.viewApi}),this.validMutation){let h=new W(o,p.defs[a.defId],l?p.instances[l.instanceId]:null);o.dispatch({type:"MERGE_EVENTS",eventStore:p});let u={oldEvent:d,event:h,relatedEvents:He(p,o,l),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:c})}};o.emitter.trigger("eventResize",Object.assign(Object.assign({},u),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||I(0),endDelta:this.validMutation.endDelta||I(0),jsEvent:s.origEvent,view:o.viewApi})),o.emitter.trigger("eventChange",u)}else o.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,i=this.dragging=new Mt(e.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new Yt(this.dragging,On(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return $(e.subjectEl,".fc-event")}};function Gp(n,e,t,i){let r=n.context.dateEnv,s=n.dateSpan.range.start,o=e.dateSpan.range.start,a=et(s,o,r,n.largeUnit);if(t){if(r.add(i.start,a)<i.end)return{startDelta:a}}else if(r.add(i.end,a)>i.start)return{endDelta:a};return null}var lo=class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=i=>{i.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=i=>{let r=this.context.options.unselectCancel,s=_i(i.origEvent);this.matchesCancel=!!$(s,r),this.matchesEvent=!!$(s,Xc.SELECTOR)},this.onDocumentPointerUp=i=>{let{context:r}=this,{documentPointer:s}=this,o=r.getCurrentData();if(!s.wasTouchScroll){if(o.dateSelection&&!this.isRecentPointerDateSelect){let a=r.options.unselectAuto;a&&(!a||!this.matchesCancel)&&r.calendarApi.unselect(i)}o.eventSelection&&!this.matchesEvent&&r.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Ki(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}},qp={fixedMirrorParent:g},Qp={dateClick:g,eventDragStart:g,eventDragStop:g,eventDrop:g,eventResizeStart:g,eventResizeStop:g,eventResize:g,drop:g,eventReceive:g,eventLeave:g};Hn.dataAttrPrefix="";var Kc=fe({name:"@fullcalendar/interaction",componentInteractions:[so,oo,Xc,ao],calendarInteractions:[lo],elementDraggingImpl:Mt,optionRefiners:qp,listenerRefiners:Qp});var co=class extends P{constructor(){super(...arguments),this.state={textId:Se()}}render(){let{theme:e,dateEnv:t,options:i,viewApi:r}=this.context,{cellId:s,dayDate:o,todayRange:a}=this.props,{textId:l}=this.state,d=In(o,a),c=i.listDayFormat?t.format(o,i.listDayFormat):"",p=i.listDaySideFormat?t.format(o,i.listDaySideFormat):"",h=Object.assign({date:t.toDate(o),view:r,textId:l,text:c,sideText:p,navLinkAttrs:Fe(this.context,o),sideNavLinkAttrs:Fe(this.context,o,"day",!1)},d);return f(X,{elTag:"tr",elClasses:["fc-list-day",...jt(d,e)],elAttrs:{"data-date":st(o)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Yp,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},u=>f("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":l},f(u,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}};function Yp(n){return f(N,null,n.text&&f("a",Object.assign({id:n.textId,className:"fc-list-day-text"},n.navLinkAttrs),n.text),n.sideText&&f("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},n.sideNavLinkAttrs),n.sideText))}var Zp=L({hour:"numeric",minute:"2-digit",meridiem:"short"}),uo=class extends P{render(){let{props:e,context:t}=this,{options:i}=t,{seg:r,timeHeaderId:s,eventHeaderId:o,dateHeaderId:a}=e,l=i.eventTimeFormat||Zp;return f(je,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>$p(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(d,c)=>f(N,null,Xp(r,l,t,s,a),f("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},f("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),f(d,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${o} ${a}`}})))}};function $p(n,e){let t=Vt(n,e);return f("a",Object.assign({},t),n.eventRange.def.title)}function Xp(n,e,t,i,r){let{options:s}=t;if(s.displayEventTime!==!1){let o=n.eventRange.def,a=n.eventRange.instance,l=!1,d;if(o.allDay?l=!0:us(n.eventRange.range)?n.isStart?d=lt(n,e,t,null,null,a.range.start,n.end):n.isEnd?d=lt(n,e,t,null,null,n.start,a.range.end):l=!0:d=lt(n,e,t),l){let c={text:t.options.allDayText,view:t.viewApi};return f(X,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:c,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:Kp,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return f("td",{className:"fc-list-event-time"},d)}return null}function Kp(n){return n.text}var nr=class extends ee{constructor(){super(...arguments),this.computeDateVars=x(eg),this.eventStoreToSegs=x(this._eventStoreToSegs),this.state={timeHeaderId:Se(),eventHeaderId:Se(),dateHeaderIdRoot:Se()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:i,dayRanges:r}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return f(Ae,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),t.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:t.viewSpec},f(Nt,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,i):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,i={text:e.noEventsText,view:t};return f(X,{elTag:"div",elClasses:["fc-list-empty"],renderProps:i,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:Jp,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},r=>f(r,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,t){let{theme:i,options:r}=this.context,{timeHeaderId:s,eventHeaderId:o,dateHeaderIdRoot:a}=this.state,l=tg(e);return f(Te,{unit:"day"},(d,c)=>{let p=[];for(let h=0;h<l.length;h+=1){let u=l[h];if(u){let m=st(t[h]),_=a+"-"+m;p.push(f(co,{key:m,cellId:_,dayDate:t[h],todayRange:c})),u=At(u,r.eventOrder);for(let b of u)p.push(f(uo,Object.assign({key:m+":"+b.eventRange.instance.instanceId,seg:b,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:o,dateHeaderId:_},me(b,c,d))))}}return f("table",{className:"fc-list-table "+i.getClass("table")},f("thead",null,f("tr",null,f("th",{scope:"col",id:s},r.timeHint),f("th",{scope:"col","aria-hidden":!0}),f("th",{scope:"col",id:o},r.eventHint))),f("tbody",null,p))})}_eventStoreToSegs(e,t,i){return this.eventRangesToSegs(Pt(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,i)}eventRangesToSegs(e,t){let i=[];for(let r of e)i.push(...this.eventRangeToSegs(r,t));return i}eventRangeToSegs(e,t){let{dateEnv:i}=this.context,{nextDayThreshold:r}=this.context.options,s=e.range,o=e.def.allDay,a,l,d,c=[];for(a=0;a<t.length;a+=1)if(l=pe(s,t[a]),l&&(d={component:this,eventRange:e,start:l.start,end:l.end,isStart:e.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&l.end.valueOf()===s.end.valueOf(),dayIndex:a},c.push(d),!d.isEnd&&!o&&a+1<t.length&&s.end<i.add(t[a+1].start,r))){d.end=s.end,d.isEnd=!0;break}return c}};function Jp(n){return n.text}function eg(n){let e=B(n.renderRange.start),t=n.renderRange.end,i=[],r=[];for(;e<t;)i.push(e),r.push({start:e,end:G(e,1)}),e=G(e,1);return{dayDates:i,dayRanges:r}}function tg(n){let e=[],t,i;for(t=0;t<n.length;t+=1)i=n[t],(e[i.dayIndex]||(e[i.dayIndex]=[])).push(i);return e}var ng=':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}';rt(ng);var ig={listDayFormat:Jc,listDaySideFormat:Jc,noEventsClassNames:g,noEventsContent:g,noEventsDidMount:g,noEventsWillUnmount:g};function Jc(n){return n===!1?null:L(n)}var ed=fe({name:"@fullcalendar/list",optionRefiners:ig,views:{list:{component:nr,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});var ho=class extends pn{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?bs(e)?["timed","allDay"]:["allDay"]:["timed"]}},rg=L({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function sd(n){let e=["fc-timegrid-slot","fc-timegrid-slot-label",n.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return f(we.Consumer,null,t=>{if(!n.isLabeled)return f("td",{className:e.join(" "),"data-time":n.isoTimeStr});let{dateEnv:i,options:r,viewApi:s}=t,o=r.slotLabelFormat==null?rg:Array.isArray(r.slotLabelFormat)?L(r.slotLabelFormat[0]):L(r.slotLabelFormat),a={level:0,time:n.time,date:i.toDate(n.date),view:s,text:i.format(n.date,o)};return f(X,{elTag:"td",elClasses:e,elAttrs:{"data-time":n.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:sg,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},l=>f("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},f(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function sg(n){return n.text}var po=class extends P{render(){return this.props.slatMetas.map(e=>f("tr",{key:e.key},f(sd,Object.assign({},e))))}},og=L({week:"short"}),ag=5,go=class extends ee{constructor(){super(...arguments),this.allDaySplitter=new ho,this.headerElRef=Q(),this.rootElRef=Q(),this.scrollerElRef=Q(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:i}=this.context,{dateProfile:r}=this.props,s=r.renderRange,a=Ne(s.start,s.end)===1?Fe(this.context,s.start,"week"):{};return i.weekNumbers&&e==="day"?f(Vn,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:og},l=>f("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},f(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):f("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},f("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:i}=this.context,r={text:t.allDayText,view:i};return f(X,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:lg,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},s=>f("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},f(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,t,i){let{context:r,props:s}=this,o=[],a=Rt(r.options);return e&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(o.push({type:"body",key:"all-day",chunk:{content:t}}),o.push({type:"body",key:"all-day-divider",outerContent:f("tr",{role:"presentation",className:"fc-scrollgrid-section"},f("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:i}}),f(Ae,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},f(tt,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:o}))}renderHScrollLayout(e,t,i,r,s,o,a){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:d,props:c}=this,p=!c.forPrint&&Rt(d.options),h=!c.forPrint&&Fn(d.options),u=[];e&&u.push({type:"header",key:"header",isSticky:p,syncRowHeights:!0,chunks:[{key:"axis",rowContent:_=>f("tr",{role:"presentation"},this.renderHeadAxis("day",_.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(u.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:_=>f("tr",{role:"presentation"},this.renderTableRowAxis(_.rowSyncHeights[0]))},{key:"cols",content:t}]}),u.push({key:"all-day-divider",type:"body",outerContent:f("tr",{role:"presentation",className:"fc-scrollgrid-section"},f("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:_=>f("div",{className:"fc-timegrid-axis-chunk"},f("table",{"aria-hidden":!0,style:{height:_.expandRows?_.clientHeight:""}},_.tableColGroupNode,f("tbody",null,f(po,{slatMetas:o}))),f("div",{className:"fc-timegrid-now-indicator-container"},f(Te,{unit:m?"minute":"day"},b=>{let E=m&&a&&a.safeComputeTop(b);return typeof E=="number"?f(Bn,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:E},isAxis:!0,date:b}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:i}]}),h&&u.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Wt},{key:"cols",content:Wt}]}),f(Ae,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:d.viewSpec},f(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:s}]}],sections:u}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(e===!0||t===!0)&&(e=void 0,t=ag),{dayMaxEvents:e,dayMaxEventRows:t}}};function lg(n){return n.text}var mo=class{constructor(e,t,i){this.positions=e,this.dateProfile=t,this.slotDuration=i}safeComputeTop(e){let{dateProfile:t}=this;if(Ce(t.currentRange,e)){let i=B(e),r=e.valueOf()-i.valueOf();if(r>=he(t.slotMinTime)&&r<he(t.slotMaxTime))return this.computeTimeTop(I(r))}return null}computeDateTop(e,t){return t||(t=B(e)),this.computeTimeTop(I(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:i}=this,r=t.els.length,s=(e.milliseconds-he(i.slotMinTime))/he(this.slotDuration),o,a;return s=Math.max(0,s),s=Math.min(r,s),o=Math.floor(s),o=Math.min(o,r-1),a=s-o,t.tops[o]+t.getHeight(o)*a}},vo=class extends P{render(){let{props:e,context:t}=this,{options:i}=t,{slatElRefs:r}=e;return f("tbody",null,e.slatMetas.map((s,o)=>{let a={time:s.time,date:t.dateEnv.toDate(s.date),view:t.viewApi};return f("tr",{key:s.key,ref:r.createRef(s.key)},e.axis&&f(sd,Object.assign({},s)),f(X,{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:i.slotLaneContent,classNameGenerator:i.slotLaneClassNames,didMount:i.slotLaneDidMount,willUnmount:i.slotLaneWillUnmount}))}))}},yo=class extends P{constructor(){super(...arguments),this.rootElRef=Q(),this.slatElRefs=new ue}render(){let{props:e,context:t}=this;return f("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},f("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,f(vo,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;t.onCoords&&t.clientWidth!==null&&this.rootElRef.current.offsetHeight&&t.onCoords(new mo(new Me(this.rootElRef.current,cg(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}};function cg(n,e){return e.map(t=>n[t.key])}function jn(n,e){let t=[],i;for(i=0;i<e;i+=1)t.push([]);if(n)for(i=0;i<n.length;i+=1)t[n[i].col].push(n[i]);return t}function td(n,e){let t=[];if(n){for(let i=0;i<e;i+=1)t[i]={affectedInstances:n.affectedInstances,isEvent:n.isEvent,segs:[]};for(let i of n.segs)t[i.col].segs.push(i)}else for(let i=0;i<e;i+=1)t[i]=null;return t}var bo=class extends P{render(){let{props:e}=this;return f(Dt,{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:()=>od(e.hiddenSegs,e),defaultGenerator:dg,forceTimed:!0},t=>f(t,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}};function dg(n){return n.shortText}function ug(n,e,t){let i=new bt;e!=null&&(i.strictOrder=e),t!=null&&(i.maxStackCnt=t);let r=i.addSegs(n),s=Ts(r),o=fg(i);return o=mg(o,1),{segRects:vg(o),hiddenGroups:s}}function fg(n){let{entriesByLevel:e}=n,t=Do((i,r)=>i+":"+r,(i,r)=>{let s=gg(n,i,r),o=nd(s,t),a=e[i][r];return[Object.assign(Object.assign({},a),{nextLevelNodes:o[0]}),a.thickness+o[1]]});return nd(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,t)[0]}function nd(n,e){if(!n)return[[],0];let{level:t,lateralStart:i,lateralEnd:r}=n,s=i,o=[];for(;s<r;)o.push(e(t,s)),s+=1;return o.sort(hg),[o.map(pg),o[0][1]]}function hg(n,e){return e[1]-n[1]}function pg(n){return n[0]}function gg(n,e,t){let{levelCoords:i,entriesByLevel:r}=n,s=r[e][t],o=i[e]+s.thickness,a=i.length,l=e;for(;l<a&&i[l]<o;l+=1);for(;l<a;l+=1){let d=r[l],c,p=yn(d,s.span.start,vn),h=p[0]+p[1],u=h;for(;(c=d[u])&&c.span.start<s.span.end;)u+=1;if(h<u)return{level:l,lateralStart:h,lateralEnd:u}}return null}function mg(n,e){let t=Do((i,r,s)=>Ie(i),(i,r,s)=>{let{nextLevelNodes:o,thickness:a}=i,l=a+s,d=a/l,c,p=[];if(!o.length)c=e;else for(let u of o)if(c===void 0){let m=t(u,r,l);c=m[0],p.push(m[1])}else{let m=t(u,c,0);p.push(m[1])}let h=(c-r)*d;return[c-h,Object.assign(Object.assign({},i),{thickness:h,nextLevelNodes:p})]});return n.map(i=>t(i,0,0)[1])}function vg(n){let e=[],t=Do((r,s,o)=>Ie(r),(r,s,o)=>{let a=Object.assign(Object.assign({},r),{levelCoord:s,stackDepth:o,stackForward:0});return e.push(a),a.stackForward=i(r.nextLevelNodes,s+r.thickness,o+1)+1});function i(r,s,o){let a=0;for(let l of r)a=Math.max(t(l,s,o),a);return a}return i(n,0,0),e}function Do(n,e){let t={};return(...i)=>{let r=n(...i);return r in t?t[r]:t[r]=e(...i)}}function id(n,e,t=null,i=0){let r=[];if(t)for(let s=0;s<n.length;s+=1){let o=n[s],a=t.computeDateTop(o.start,e),l=Math.max(a+(i||0),t.computeDateTop(o.end,e));r.push({start:Math.round(a),end:Math.round(l)})}return r}function yg(n,e,t,i){let r=[],s=[];for(let d=0;d<n.length;d+=1){let c=e[d];c?r.push({index:d,thickness:1,span:c}):s.push(n[d])}let{segRects:o,hiddenGroups:a}=ug(r,t,i),l=[];for(let d of o)l.push({seg:n[d.index],rect:d});for(let d of s)l.push({seg:d,rect:null});return{segPlacements:l,hiddenGroups:a}}var bg=L({hour:"numeric",minute:"2-digit",meridiem:!1}),ir=class extends P{render(){return f(nt,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:bg}))}},_o=class extends P{constructor(){super(...arguments),this.sortEventSegs=x(At)}render(){let{props:e,context:t}=this,{options:i}=t,r=i.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],o=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,i.eventOrder);return f(it,{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},l=>f("div",{className:"fc-timegrid-col-frame"},f("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),f("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,o,!1,!1,!1)),f("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!r,"mirror")),f("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),zt(i)&&f(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,i,r,s,o){let{props:a}=this;return a.forPrint?od(e,a):this.renderPositionedFgSegs(e,t,i,r,s,o)}renderPositionedFgSegs(e,t,i,r,s,o){let{eventMaxStack:a,eventShortHeight:l,eventOrderStrict:d,eventMinHeight:c}=this.context.options,{date:p,slatCoords:h,eventSelection:u,todayRange:m,nowDate:_}=this.props,b=i||r||s,E=id(e,p,h,c),{segPlacements:D,hiddenGroups:O}=yg(e,E,d,a);return f(N,null,this.renderHiddenGroups(O,e),D.map(M=>{let{seg:q,rect:F}=M,z=q.eventRange.instance.instanceId,H=b||!!(!t[z]&&F),Ge=fo(F&&F.span),Zt=!b&&F?this.computeSegHStyle(F):{left:0,right:0},ud=!!F&&F.stackForward>0,fd=!!F&&F.span.end-F.span.start<l;return f("div",{className:"fc-timegrid-event-harness"+(ud?" fc-timegrid-event-harness-inset":""),key:o||z,style:Object.assign(Object.assign({visibility:H?"":"hidden"},Ge),Zt)},f(ir,Object.assign({seg:q,isDragging:i,isResizing:r,isDateSelecting:s,isSelected:z===u,isShort:fd},me(q,m,_))))}))}renderHiddenGroups(e,t){let{extraDateSpan:i,dateProfile:r,todayRange:s,nowDate:o,eventSelection:a,eventDrag:l,eventResize:d}=this.props;return f(N,null,e.map(c=>{let p=fo(c.span),h=_g(c.entries,t);return f(bo,{key:Ei(Hi(h)),hiddenSegs:h,top:p.top,bottom:p.bottom,extraDateSpan:i,dateProfile:r,todayRange:s,nowDate:o,eventSelection:a,eventDrag:l,eventResize:d})}))}renderFillSegs(e,t){let{props:i,context:r}=this,o=id(e,i.date,i.slatCoords,r.options.eventMinHeight).map((a,l)=>{let d=e[l];return f("div",{key:kn(d.eventRange),className:"fc-timegrid-bg-harness",style:fo(a)},t==="bg-event"?f(wt,Object.assign({seg:d},me(d,i.todayRange,i.nowDate))):Ln(t))});return f(N,null,o)}renderNowIndicator(e){let{slatCoords:t,date:i}=this.props;return t?e.map((r,s)=>f(Bn,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(r.start,i)},isAxis:!1,date:i})):null}computeSegHStyle(e){let{isRtl:t,options:i}=this.context,r=i.slotEventOverlap,s=e.levelCoord,o=e.levelCoord+e.thickness,a,l;r&&(o=Math.min(1,s+(o-s)*2)),t?(a=1-o,l=s):(a=s,l=1-o);let d={zIndex:e.stackDepth+1,left:a*100+"%",right:l*100+"%"};return r&&!e.stackForward&&(d[t?"marginLeft":"marginRight"]=20),d}};function od(n,{todayRange:e,nowDate:t,eventSelection:i,eventDrag:r,eventResize:s}){let o=(r?r.affectedInstances:null)||(s?s.affectedInstances:null)||{};return f(N,null,n.map(a=>{let l=a.eventRange.instance.instanceId;return f("div",{key:l,style:{visibility:o[l]?"hidden":""}},f(ir,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===i,isShort:!1},me(a,e,t))))}))}function fo(n){return n?{top:n.start,bottom:-n.end}:{top:"",bottom:""}}function _g(n,e){return n.map(t=>e[t.index])}var Co=class extends P{constructor(){super(...arguments),this.splitFgEventSegs=x(jn),this.splitBgEventSegs=x(jn),this.splitBusinessHourSegs=x(jn),this.splitNowIndicatorSegs=x(jn),this.splitDateSelectionSegs=x(jn),this.splitEventDrag=x(td),this.splitEventResize=x(td),this.rootElRef=Q(),this.cellElRefs=new ue}render(){let{props:e,context:t}=this,i=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,r),o=this.splitBgEventSegs(e.bgEventSegs,r),a=this.splitBusinessHourSegs(e.businessHourSegs,r),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),d=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),p=this.splitEventResize(e.eventResize,r);return f("div",{className:"fc-timegrid-cols",ref:this.rootElRef},f("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,f("tbody",{role:"presentation"},f("tr",{role:"row"},e.axis&&f("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},f("div",{className:"fc-timegrid-col-frame"},f("div",{className:"fc-timegrid-now-indicator-container"},typeof i=="number"&&f(Bn,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:i},isAxis:!0,date:e.nowDate})))),e.cells.map((h,u)=>f(_o,{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:o[u],businessHourSegs:a[u],nowIndicatorSegs:l[u],dateSelectionSegs:d[u],eventDrag:c[u],eventResize:p[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 Me(this.rootElRef.current,Cg(this.cellElRefs.currentMap,e.cells),!0,!1))}};function Cg(n,e){return e.map(t=>n[t.key])}var Eo=class extends ee{constructor(){super(...arguments),this.processSlotOptions=x(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:t}=this.props,{slatCoords:i}=this.state;if(t&&i){if(e.time){let r=i.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return f("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},f(yo,{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}),f(Co,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:i,options:r}=this.context,{colCoords:s}=this,{dateProfile:o}=this.props,{slatCoords:a}=this.state,{snapDuration:l,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=s.leftToIndex(e),p=a.positions.topToIndex(t);if(c!=null&&p!=null){let h=this.props.cells[c],u=a.positions.tops[p],m=a.positions.getHeight(p),_=(t-u)/m,b=Math.floor(_*d),E=p*d+b,D=this.props.cells[c].date,O=Dn(o.slotMinTime,Kr(l,E)),M=i.add(D,O),q=i.add(M,l);return{dateProfile:o,dateSpan:Object.assign({range:{start:M,end:q},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(n,e){let t=e||n,i=xn(n,t);return i===null&&(t=n,i=1),{snapDuration:t,snapsPerSlot:i}}var So=class extends St{sliceRange(e,t){let i=[];for(let r=0;r<t.length;r+=1){let s=pe(e,t[r]);s&&i.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:r})}return i}},wo=class extends ee{constructor(){super(...arguments),this.buildDayRanges=x(Sg),this.slicer=new So,this.timeColsRef=Q()}render(){let{props:e,context:t}=this,{dateProfile:i,dayTableModel:r}=e,{nowIndicator:s,nextDayThreshold:o}=t.options,a=this.buildDayRanges(r,i,t.dateEnv);return f(Te,{unit:s?"minute":"day"},(l,d)=>f(Eo,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,i,null,t,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:i,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:l,nowIndicatorSegs:s&&this.slicer.sliceNowDate(l,i,o,t,a),todayRange:d,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}};function Sg(n,e,t){let i=[];for(let r of n.headerDates)i.push({start:t.add(r,e.slotMinTime),end:t.add(r,e.slotMaxTime)});return i}var rd=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function wg(n,e,t,i,r){let s=new Date(0),o=n,a=I(0),l=t||Dg(i),d=[];for(;he(o)<he(e);){let c=r.add(s,o),p=xn(a,l)!==null;d.push({date:c,time:o,key:c.toISOString(),isoTimeStr:ns(c),isLabeled:p}),o=Dn(o,i),a=Dn(a,i)}return d}function Dg(n){let e,t,i;for(e=rd.length-1;e>=0;e-=1)if(t=I(rd[e]),i=xn(t,n),i!==null&&i>1)return t;return n}var rr=class extends go{constructor(){super(...arguments),this.buildTimeColsModel=x(xg),this.buildSlatMetas=x(wg)}render(){let{options:e,dateEnv:t,dateProfileGenerator:i}=this.context,{props:r}=this,{dateProfile:s}=r,o=this.buildTimeColsModel(s,i),a=this.allDaySplitter.splitProps(r),l=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:d}=e,c=!d,p=d,h=e.dayHeaders&&f(_t,{dates:o.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),u=e.allDaySlot!==!1&&(_=>f(Un,Object.assign({},a.allDay,{dateProfile:s,dayTableModel:o,nextDayThreshold:e.nextDayThreshold,tableMinWidth:_.tableMinWidth,colGroupNode:_.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:_.clientWidth,clientHeight:_.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),m=_=>f(wo,Object.assign({},a.timed,{dayTableModel:o,dateProfile:s,axis:c,slotDuration:e.slotDuration,slatMetas:l,forPrint:r.forPrint,tableColGroupNode:_.tableColGroupNode,tableMinWidth:_.tableMinWidth,clientWidth:_.clientWidth,clientHeight:_.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:_.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return p?this.renderHScrollLayout(h,u,m,o.colCnt,d,l,this.state.slatCoords):this.renderSimpleLayout(h,u,m)}};
1function xg(n,e){let t=new Ct(n.renderRange,e);return new Et(t,!1)}var Ag='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';rt(Ag);var Rg={allDaySlot:Boolean},ad=fe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:Rg,views:{timeGrid:{component:rr,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});var ld=(()=>{class n{http;baseUrl=`${en.url}/calendar`;
1eventsSubject=new Ao([]);events$=this.eventsSubject.asObservable();constructor(t){this.http=t}getEvents(t,i,r){let s={start:t.toISOString(),end:i.toISOString()};return r!==void 0&&(s.drone_id=r.toString()),this.http.get(`${this.baseUrl}/events`,{params:s}).pipe(qe(o=>o.data),$t(o=>this.eventsSubject.next(o)),Qe(o=>(console.error("Error loading events:",o),lr(()=>o))))}getEventById(t){return this.http.get(`${this.baseUrl}/events/${t}`).pipe(qe(i=>i.data),Qe(i=>(console.error("Error loading event:",i),lr(()=>i))))}createEvent(t){return this.http.post(`${this.baseUrl}/events`,t).pipe(qe(i=>i.data),$t(i=>{if(i){let r=this.eventsSubject.getValue();this.eventsSubject.next([...r,i])}}),Qe(i=>{throw console.error("Error creating event:",i),i}))}updateEvent(t,i){return this.http.put(`${this.baseUrl}/events/${t}`,i).pipe(qe(r=>r.data),$t(r=>{if(r){let o=this.eventsSubject.getValue().map(a=>a.id===t?r:a);this.eventsSubject.next(o)}}),Qe(r=>{throw console.error("Error updating event:",r),r}))}deleteEvent(t,i,r){return i&&r?this.deleteOccurrence(t,r):this.http.delete(`${this.baseUrl}/events/${t}`).pipe(qe(()=>!0),$t(()=>{let s=this.eventsSubject.getValue();this.eventsSubject.next(s.filter(o=>o.id!==t))}),Qe(s=>(console.error("Error deleting event:",s),ar(!1))))}deleteOccurrence(t,i){let r={occurrence_time:i};return this.http.delete(`${this.baseUrl}/events/${t}/occurrences`,{params:r}).pipe(qe(()=>!0),Qe(s=>(console.error("Error deleting occurrence:",s),ar(!1))))}updateEventStatus(t,i,r,s,o){return r&&s?this.updateOccurrenceStatus(t,s,i,o):this.updateEvent(t,{status:i,execution_id:o})}updateOccurrenceStatus(t,i,r,s){let o={occurrence_time:i,status:r,execution_id:s};return this.http.put(`${this.baseUrl}/events/${t}/occurrences/status`,o).pipe(qe(a=>a.data),Qe(a=>{throw console.error("Error updating occurrence status:",a),a}))}getCachedEvents(){return this.eventsSubject.value}static STATUS_COLORS={scheduled:"#fd7e14",completed:"#28a745",cancelled:"#dc3545"};static DEFAULT_COLOR="#6c757d";convertToCalendarEvents(t){return t.map(i=>this.toFullCalendarEvent(i))}toFullCalendarEvent(t){let i=n.STATUS_COLORS[t.status]||n.DEFAULT_COLOR;return{id:t.is_occurrence?`${t.id}_${t.scheduled_time}`:t.id.toString(),title:t.title,start:t.scheduled_time,allDay:!1,backgroundColor:i,borderColor:i,textColor:"#ffffff",extendedProps:{originalId:t.id,description:t.description,status:t.status,drone_id:t.drone_id,mission_id:t.mission_id,drone:t.drone,mission:t.mission,execution_id:t.execution_id,execution:t.execution,recurrence_rule:t.recurrence_rule,is_occurrence:t.is_occurrence,original_scheduled_time:t.original_scheduled_time}}}static FREQ_MAP={daily:"DAILY",weekly:"WEEKLY",monthly:"MONTHLY",yearly:"YEARLY"};buildRecurrenceRule(t,i=1,r,s){if(t==="none")return null;let o=[`FREQ=${n.FREQ_MAP[t]}`];return i>1&&o.push(`INTERVAL=${i}`),r?o.push(`UNTIL=${this.formatDateForRrule(r)}`):s&&s>0&&o.push(`COUNT=${s}`),o.join(";")}formatDateForRrule(t){return t.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z"}parseRecurrenceRule(t){if(!t)return{type:"none",interval:1};let i={type:"none",interval:1};for(let r of t.split(";")){let[s,o]=r.split("=");switch(s){case"FREQ":i.type=o.toLowerCase();break;case"INTERVAL":i.interval=parseInt(o,10);break;case"UNTIL":i.endDate=this.parseUntilDate(o);break;case"COUNT":i.endAfter=parseInt(o,10);break}}return i}parseUntilDate(t){let i=parseInt(t.slice(0,4),10),r=parseInt(t.slice(4,6),10)-1,s=parseInt(t.slice(6,8),10);if(t.length>=15&&t[8]==="T"){let o=parseInt(t.slice(9,11),10),a=parseInt(t.slice(11,13),10),l=parseInt(t.slice(13,15),10);return new Date(Date.UTC(i,r,s,o,a,l))}return new Date(Date.UTC(i,r,s,0,0,0))}getDefaultDateRange(){let t=new Date,i=new Date(t.getFullYear(),t.getMonth()-1,1),r=new Date(t.getFullYear(),t.getMonth()+2,0);return{start:i,end:r}}static \u0275fac=function(i){return new(i||n)(To(Qo))};static \u0275prov=Mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var cd=()=>({width:"500px"}),kg=()=>({width:"550px"}),Og=()=>({width:"40px",height:"40px"});function Ig(n,e){n&1&&(y(0,"div",5),j(1,"p-progressspinner"),v())}function Pg(n,e){n&1&&(y(0,"span"),S(1,"Flight-conditions outlook unavailable for these hours \u2014 no verdict, not an all-clear."),v())}function Ng(n,e){n&1&&(y(0,"span",35),j(1,"span",36),S(2," marginal "),v(),y(3,"span",35),j(4,"span",37),S(5," do not fly "),v(),y(6,"span"),S(7,"\xB7 shaded hours are the ones to avoid \xB7 hover for detail"),v())}function Hg(n,e){n&1&&(y(0,"span"),S(1,"\xB7 nothing to avoid in this range"),v())}function Fg(n,e){if(n&1&&(y(0,"span"),S(1),v(),T(2,Ng,8,0)(3,Hg,2,0,"span")),n&2){let t=w(2);C(),K("Flight conditions at ",t.weatherLocationLabel,", by the hour:"),C(),k(t.flaggedHourBands?2:3)}}function Bg(n,e){if(n&1&&T(0,Pg,2,0,"span")(1,Fg,4,2),n&2){let t=w();k(t.hourlyUnavailable?0:1)}}function Lg(n,e){n&1&&(y(0,"span"),S(1,"Flight-conditions outlook unavailable \u2014 days are shown without a verdict."),v())}function Vg(n,e){if(n&1&&(y(0,"span"),S(1),v(),y(2,"span",35),j(3,"span",38),S(4," good "),v(),y(5,"span",35),j(6,"span",36),S(7," marginal "),v(),y(8,"span",35),j(9,"span",37),S(10," do not fly "),v(),y(11,"span"),S(12,"\xB7 number is peak wind in m/s \xB7 hover a day for detail"),v()),n&2){let t=w();C(),hr("Flight conditions at ",t.weatherLocationLabel,", next ",t.weatherByDate.size," days:")}}
1function Ug(n,e){n&1&&(y(0,"div",21),j(1,"span",39),y(2,"span",40),S(3,"Checking conditions\u2026"),v()())}function jg(n,e){if(n&1&&(y(0,"div",21),j(1,"span",39),y(2,"span",41),S(3,"Conditions unknown"),v()(),y(4,"p",42),S(5),v()),n&2){let t=w();C(5),K(" No forecast covers ",t.slotTimeLabel," on this date \u2014 that is a missing verdict, not an all-clear. Check again nearer the day. ")}}function Wg(n,e){if(n&1&&(y(0,"li"),S(1),v()),n&2){let t=e.$implicit;C(),ye(t)}}function zg(n,e){if(n&1&&(y(0,"ul",44),ur(1,Wg,2,1,"li",null,dr),v()),n&2){let t=w(2);C(),fr(t.slotExtraReasons)}}function Gg(n,e){if(n&1&&(y(0,"div")(1,"dt"),S(2,"Wind"),v(),y(3,"dd"),S(4),re(5,"number"),v()()),n&2){let t=w(2);C(4),K("",be(5,1,t.slotHour.wind_ms,"1.0-1")," m/s")}}function qg(n,e){if(n&1&&(y(0,"div")(1,"dt"),S(2,"Gusts"),v(),y(3,"dd"),S(4),re(5,"number"),v()()),n&2){let t=w(2);C(4),K("",be(5,1,t.slotHour.gusts_ms,"1.0-1")," m/s")}}function Qg(n,e){if(n&1&&(y(0,"div")(1,"dt"),S(2,"Temperature"),v(),y(3,"dd"),S(4),re(5,"number"),v()()),n&2){let t=w(2);C(4),K("",be(5,1,t.slotHour.temperature_c,"1.0-1")," \xB0C")}}function Yg(n,e){if(n&1&&(y(0,"span",47),S(1),re(2,"number"),v()),n&2){let t=w(3);C(),K(" (",be(2,1,t.slotHour.precipitation_probability,"1.0-0"),"%) ")}}function Zg(n,e){if(n&1&&(y(0,"div")(1,"dt"),S(2,"Rain"),v(),y(3,"dd"),S(4),re(5,"number"),T(6,Yg,3,4,"span",47),v()()),n&2){let t=w(2);C(4),K(" ",be(5,2,t.slotHour.precipitation_mm,"1.0-1")," mm/h "),C(2),k(t.slotHour.precipitation_probability!=null?6:-1)}}function $g(n,e){if(n&1&&(y(0,"div")(1,"dt"),S(2,"Visibility"),v(),y(3,"dd"),S(4),re(5,"number"),v()()),n&2){let t=w(2);C(4),K("",be(5,1,t.slotVisibilityKm,"1.0-1")," km")}}function Xg(n,e){if(n&1&&(y(0,"span",47),S(1),re(2,"number"),re(3,"number"),v()),n&2){let t=w(3);C(),hr(" \xB7 ",be(2,2,t.slotDay.temperature_min_c,"1.0-0"),"\u2013",be(3,5,t.slotDay.temperature_max_c,"1.0-0")," \xB0C ")}}function Kg(n,e){if(n&1&&(y(0,"p",46),j(1,"span",48),S(2),T(3,Xg,4,8,"span",47),v()),n&2){let t=w(2);C(),Xt("data-status",t.slotDay.status),C(),K(" Day overall: ",t.slotDay.summary," "),C(),k(t.slotDay.temperature_min_c!=null&&t.slotDay.temperature_max_c!=null?3:-1)}}function Jg(n,e){if(n&1&&(y(0,"div",21),j(1,"span",43),y(2,"span",41),S(3),v()(),y(4,"p",42),S(5),v(),T(6,zg,3,0,"ul",44),y(7,"dl",45),T(8,Gg,6,4,"div"),T(9,qg,6,4,"div"),T(10,Qg,6,4,"div"),T(11,Zg,7,5,"div"),T(12,$g,6,4,"div"),v(),T(13,Kg,4,3,"p",46)),n&2){let t=w();C(),Xt("data-status",t.slotStatus),C(2),Bo(" ",t.slotTimeLabel," at ",t.weatherLocationLabel," \xB7 ",t.slotStatusLabel," "),C(2),ye(t.slotHour.summary),C(),k(t.slotExtraReasons.length?6:-1),C(2),k(t.slotHour.wind_ms!=null?8:-1),C(),k(t.slotHour.gusts_ms!=null?9:-1),C(),k(t.slotHour.temperature_c!=null?10:-1),C(),k(t.slotHour.precipitation_mm!=null?11:-1),C(),k(t.slotVisibilityKm!=null?12:-1),C(),k(t.slotDay?13:-1)}}function em(n,e){if(n&1){let t=se();y(0,"div",15)(1,"div",10)(2,"label",49),S(3,"Every"),v(),y(4,"input",50),le("ngModelChange",function(r){V(t);let s=w();return ae(s.eventForm.recurrenceInterval,r)||(s.eventForm.recurrenceInterval=r),U(r)}),v(),De(),v(),y(5,"div",10)(6,"label",51),S(7,"End Date (Optional)"),v(),y(8,"p-datepicker",52),le("ngModelChange",function(r){V(t);let s=w();return ae(s.eventForm.recurrenceEndDate,r)||(s.eventForm.recurrenceEndDate=r),U(r)}),v(),De(),v()()}if(n&2){let t=w();C(4),oe("ngModel",t.eventForm.recurrenceInterval),R("min",1),xe(),C(4),oe("ngModel",t.eventForm.recurrenceEndDate),R("showIcon",!0),xe()}}function tm(n,e){if(n&1){let t=se();y(0,"div",28)(1,"label",53),S(2,"End After (Occurrences)"),v(),y(3,"input",54),le("ngModelChange",function(r){V(t);let s=w();return ae(s.eventForm.recurrenceEndAfter,r)||(s.eventForm.recurrenceEndAfter=r),U(r)}),v(),De(),v()}if(n&2){let t=w();R("hidden",t.eventForm.recurrenceEndDate),C(3),oe("ngModel",t.eventForm.recurrenceEndAfter),R("min",1),xe()}}function nm(n,e){if(n&1){let t=se();y(0,"p-button",55),te("click",function(){V(t);let r=w();return U(r.closeEventForm())}),v(),y(1,"p-button",56),te("click",function(){V(t);let r=w();return U(r.saveEvent())}),v()}if(n&2){let t=w();R("text",!0),C(),R("label",t.isEditMode?"Update":"Create")("loading",t.isLoading)}}function im(n,e){if(n&1&&(y(0,"div",59)(1,"strong"),S(2,"Description:"),v(),y(3,"span"),S(4),v()()),n&2){let t=w(2);C(4),ye(t.selectedEvent.description)}}function rm(n,e){if(n&1&&(y(0,"div",65)(1,"span",66),S(2,"Flight Date"),v(),y(3,"span",67),S(4),re(5,"date"),v()()),n&2){let t=w(3);C(4),K(" ",be(5,1,t.selectedEvent.execution.started_at,"dd/MM/yyyy HH:mm")," ")}}function sm(n,e){if(n&1&&(y(0,"div",65)(1,"span",66),S(2,"Duration"),v(),y(3,"span",67),S(4),v()()),n&2){let t=w(3);C(4),K(" ",t.formatDuration(t.selectedEvent.execution.duration_seconds)," ")}}function om(n,e){if(n&1&&(y(0,"div",65)(1,"span",66),S(2,"Distance"),v(),y(3,"span",67),S(4),v()()),n&2){let t=w(3);C(4),K(" ",t.formatDistance(t.selectedEvent.execution.total_distance_meters)," ")}}
1function am(n,e){if(n&1&&(y(0,"div",65)(1,"span",66),S(2,"Max Altitude"),v(),y(3,"span",67),S(4),v()()),n&2){let t=w(3);C(4),K(" ",t.formatMaxAltitude(t.selectedEvent.execution.max_altitude_meters)," ")}}function lm(n,e){if(n&1&&(y(0,"div",61)(1,"div",62),j(2,"i",63),y(3,"strong"),S(4,"Linked Report"),v()(),y(5,"div",64),T(6,rm,6,4,"div",65),T(7,sm,5,1,"div",65),T(8,om,5,1,"div",65),T(9,am,5,1,"div",65),v()()),n&2){let t=w(2);C(6),k(t.selectedEvent.execution.started_at?6:-1),C(),k(t.selectedEvent.execution.duration_seconds?7:-1),C(),k(t.selectedEvent.execution.total_distance_meters?8:-1),C(),k(t.selectedEvent.execution.max_altitude_meters?9:-1)}}function cm(n,e){if(n&1&&(y(0,"div",59)(1,"strong"),S(2,"Recurrence:"),v(),y(3,"span"),S(4),v()()),n&2){let t=w(2);C(4),ye(t.getRecurrenceLabel(t.selectedEvent.recurrence_rule))}}function dm(n,e){n&1&&(y(0,"div",59)(1,"strong"),S(2,"Note:"),v(),y(3,"span",68),S(4,"This is an occurrence of a recurring event"),v()())}function um(n,e){if(n&1){let t=se();y(0,"p-button",74),te("click",function(){V(t);let r=w(4);return U(r.reenableOccurrence(r.selectedEvent))}),v()}if(n&2){let t=w(4);R("text",!0)("loading",t.isLoading)}}function fm(n,e){if(n&1){let t=se();y(0,"p-button",75),te("click",function(){V(t);let r=w(4);return U(r.cancelOccurrence(r.selectedEvent))}),v()}if(n&2){let t=w(4);R("text",!0)("loading",t.isLoading)}}function hm(n,e){if(n&1){let t=se();T(0,um,1,2,"p-button",71),T(1,fm,1,2,"p-button",72),y(2,"p-button",73),te("click",function(){V(t);let r=w(3);return U(r.deleteFullEvent(r.selectedEvent))}),v()}if(n&2){let t=w(3);k(t.selectedEvent.status==="cancelled"?0:-1),C(),k(t.selectedEvent.status!=="cancelled"?1:-1),C(),R("text",!0)("loading",t.isLoading)}}function pm(n,e){if(n&1){let t=se();y(0,"p-button",76),te("click",function(){V(t);let r=w(3);return U(r.deleteEvent(r.selectedEvent))}),v()}if(n&2){let t=w(3);R("text",!0)("loading",t.isLoading)}}function gm(n,e){if(n&1){let t=se();y(0,"p-button",77),te("click",function(){V(t);let r=w(3);return U(r.openLinkedReport(r.selectedEvent))}),v()}n&2&&R("text",!0)}function mm(n,e){if(n&1){let t=se();y(0,"p-button",78),te("click",function(){V(t);let r=w(3);return U(r.openEditEventForm(r.selectedEvent))}),v(),y(1,"p-button",79),te("click",function(){V(t);let r=w(3);return U(r.toggleEventStatus(r.selectedEvent))}),v()}if(n&2){let t=w(3);R("text",!0),C(),R("loading",t.isLoading)}}function vm(n,e){if(n&1&&(T(0,hm,3,4),T(1,pm,1,2,"p-button",69),T(2,gm,1,1,"p-button",70),T(3,mm,2,2)),n&2){let t=w(2);k(t.selectedEvent.is_occurrence?0:-1),C(),k(t.selectedEvent.is_occurrence?-1:1),C(),k(t.selectedEvent.execution?2:-1),C(),k(t.selectedEvent.status==="scheduled"?3:-1)}}function ym(n,e){if(n&1){let t=se();y(0,"p-dialog",57),le("visibleChange",function(r){V(t);let s=w();return ae(s.showEventDetails,r)||(s.showEventDetails=r),U(r)}),y(1,"div",58)(2,"div",59)(3,"strong"),S(4,"Title:"),v(),y(5,"span"),S(6),v()(),T(7,im,5,1,"div",59),y(8,"div",59)(9,"strong"),S(10,"Scheduled:"),v(),y(11,"span"),S(12),re(13,"date"),v()(),y(14,"div",59)(15,"strong"),S(16,"Mission:"),v(),y(17,"span"),S(18),v()(),y(19,"div",59)(20,"strong"),S(21,"Drone:"),v(),y(22,"span"),S(23),v()(),y(24,"div",59)(25,"strong"),S(26,"Status:"),v(),j(27,"p-tag",60),v(),T(28,lm,10,4,"div",61),T(29,cm,5,1,"div",59),T(30,dm,5,0,"div",59),y(31,"div",59)(32,"strong"),S(33,"Created:"),v(),y(34,"span"),S(35),re(36,"date"),v()()(),ct(37,vm,4,4,"ng-template",null,0,qn),v()}if(n&2){let t=w();Kt(Jt(23,cd)),oe("visible",t.showEventDetails),R("modal",!0)("closable",!0),C(6),ye(t.selectedEvent.title),C(),k(t.selectedEvent.description?7:-1),C(5),ye(be(13,17,t.selectedEvent.scheduled_time,"dd/MM/yyyy HH:mm")),C(6),ye(t.getMissionName(t.selectedEvent.mission_id)),C(5),ye(t.getDroneName(t.selectedEvent.drone_id)),C(4),R("value",t.getStatusLabel(t.selectedEvent.status))("severity",t.getStatusSeverity(t.selectedEvent.status))("icon",t.getStatusIcon(t.selectedEvent.status)),C(),k(t.selectedEvent.execution?28:-1),C(),k(t.selectedEvent.recurrence_rule?29:-1),C(),k(t.selectedEvent.is_occurrence?30:-1),C(5),ye(be(36,20,t.selectedEvent.created_at,"dd/MM/yyyy HH:mm"))}}function bm(n,e){n&1&&(y(0,"div",33),j(1,"p-progressspinner"),y(2,"span"),S(3,"Loading mission reports..."),v()()),n&2&&(C(),Kt(Jt(2,Og)))}function _m(n,e){if(n&1&&(y(0,"span"),S(1),v()),n&2){let t=w().$implicit;C(),ye(t.mission_name)}}function Cm(n,e){n&1&&(y(0,"span"),S(1,"Manual Flight"),v())}function Em(n,e){if(n&1&&(y(0,"span",86),S(1),v()),n&2){let t=w().$implicit,i=w(2);C(),K(" \xB7 ",i.formatDuration(t.duration_seconds)," ")}}function Sm(n,e){if(n&1&&(y(0,"span",88),j(1,"i",90),S(2),v()),n&2){let t=w().$implicit;C(2),K(" ",t.asset_counts.images," ")}}function wm(n,e){if(n&1&&(y(0,"span",88),j(1,"i",91),S(2),v()),n&2){let t=w().$implicit;C(2),K(" ",t.asset_counts.videos," ")}}function Dm(n,e){if(n&1&&(y(0,"span",88),j(1,"i",92),S(2),v()),n&2){let t=w().$implicit;C(2),K(" ",t.asset_counts.logs," ")}}function xm(n,e){n&1&&j(0,"i",89)}function Am(n,e){if(n&1){let t=se();y(0,"div",82),te("click",function(){let r=V(t).$implicit,s=w(2);return U(s.selectedExecutionId=r.id)})("keydown.enter",function(){let r=V(t).$implicit,s=w(2);return U(s.selectedExecutionId=r.id)})("keydown.space",function(r){let s=V(t).$implicit,o=w(2);return o.selectedExecutionId=s.id,U(r.preventDefault())}),y(1,"div",83)(2,"div",84),S(3),v(),y(4,"div",85),T(5,_m,2,1,"span"),T(6,Cm,2,0,"span"),T(7,Em,2,1,"span",86),v()(),y(8,"div",87),T(9,Sm,3,1,"span",88),T(10,wm,3,1,"span",88),T(11,Dm,3,1,"span",88),v(),T(12,xm,1,0,"i",89),v()}if(n&2){let t=e.$implicit,i=w(2);Fo("selected",i.selectedExecutionId===t.id),Xt("aria-selected",i.selectedExecutionId===t.id),C(3),ye(i.formatExecutionDate(t.started_at)),C(2),k(t.mission_name?5:-1),C(),k(t.mission_name?-1:6),C(),k(t.duration_seconds?7:-1),C(2),k(t.asset_counts.images>0?9:-1),C(),k(t.asset_counts.videos>0?10:-1),C(),k(t.asset_counts.logs>0?11:-1),C(),k(i.selectedExecutionId===t.id?12:-1)}}function Rm(n,e){n&1&&(y(0,"div",81),j(1,"i",93),y(2,"p"),S(3,"No mission reports found for this drone."),v()())}function Mm(n,e){if(n&1&&(y(0,"div",34),ur(1,Am,13,11,"div",80,dr),T(3,Rm,4,0,"div",81),v()),n&2){let t=w();C(),fr(t.executions),C(2),k(t.executions.length===0?3:-1)}}function Tm(n,e){if(n&1){let t=se();y(0,"p-button",55),te("click",function(){V(t);let r=w();return U(r.closeExecutionModal())}),v(),y(1,"p-button",94),te("click",function(){V(t);let r=w();
1return U(r.skipAndComplete())}),v(),y(2,"p-button",95),te("click",function(){V(t);let r=w();return U(r.completeEventWithExecution())}),v()}if(n&2){let t=w();R("text",!0),C(),R("text",!0),C(),R("loading",t.isLoading)("disabled",!t.selectedExecutionId)}}var sr=(()=>{class n{dialogService;scheduledEventService;missionService;droneService;executionService;weatherService;messageService;cdr;calendar;showEventForm=!1;showEventDetails=!1;selectedEvent=null;isEditMode=!1;isLoading=!1;eventForm={title:"",description:"",date:new Date,time:new Date,missionId:null,droneId:null,recurrenceType:"none",recurrenceInterval:1,recurrenceEndDate:null,recurrenceEndAfter:null};missions=[];drones=[];showExecutionModal=!1;executions=[];selectedExecutionId=null;executionsLoading=!1;eventToComplete=null;recurrenceOptions=[{label:"No Recurrence",value:"none"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"},{label:"Yearly",value:"yearly"}];statusConfig={scheduled:{label:"Scheduled",severity:"warn",icon:"pi pi-clock"},completed:{label:"Completed",severity:"success",icon:"pi pi-check"},cancelled:{label:"Cancelled",severity:"danger",icon:"pi pi-times"}};recurrenceUnits={daily:{singular:"day",plural:"days"},weekly:{singular:"week",plural:"weeks"},monthly:{singular:"month",plural:"months"},yearly:{singular:"year",plural:"years"}};currentStart=new Date;currentEnd=new Date;weatherByDate=new Map;weatherBands=[];scheduledEvents=[];currentViewType="dayGridMonth";get showsHourlyBands(){return this.currentViewType.startsWith("timeGrid")}get flaggedHourBands(){return this.weatherBands.length}weatherLocationLabel="";weatherUnavailable=!1;hourlyUnavailable=!1;slotHours=[];slotDateKey="";slotLoading=!1;slotUnavailable=!1;datesSetSubject=new xo;destroyRef=ko(Oo);calendarOptions={plugins:[Qc,ad,Kc,ed],initialView:"dayGridMonth",headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"},editable:!1,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,nowIndicator:!0,height:"auto",contentHeight:"auto",expandRows:!0,events:[],dateClick:t=>this.handleDateClick(t),eventClick:t=>this.handleEventClick(t),select:t=>this.handleDateSelect(t),datesSet:t=>this.handleDatesSet(t),dayCellContent:t=>this.renderDayCell(t),eventDidMount:t=>this.decorateEvent(t)};constructor(t,i,r,s,o,a,l,d){this.dialogService=t,this.scheduledEventService=i,this.missionService=r,this.droneService=s,this.executionService=o,this.weatherService=a,this.messageService=l,this.cdr=d}refreshView(){this.cdr.detectChanges()}ngOnInit(){this.setupDatesSetSubscription(),this.loadData()}setupDatesSetSubscription(){this.datesSetSubject.pipe(Ro(300),_e(this.destroyRef)).subscribe(({start:t,end:i})=>{this.currentStart=t,this.currentEnd=i,this.loadEvents(),this.loadHourlyBands()})}loadData(){this.loadMissions(),this.loadDrones();let{start:t,end:i}=this.scheduledEventService.getDefaultDateRange();this.currentStart=t,this.currentEnd=i,this.loadEvents()}loadWeather(){let{latitude:t,longitude:i,label:r}=this.weatherReferencePoint();this.weatherLocationLabel=r,this.weatherService.getDailyOutlook(t,i).pipe(_e(this.destroyRef)).subscribe({next:s=>{this.weatherByDate=new Map((s.days??[]).map(o=>[o.date,o])),this.weatherUnavailable=!s.checked,this.refreshCalendarCells()},error:s=>{console.error("Error loading weather outlook:",s),this.weatherByDate=new Map,this.weatherUnavailable=!0,this.refreshView()}})}weatherReferencePoint(){let t=this.missions.flatMap(i=>i.mission_points??[]).find(i=>i?.type==="base"&&i.lat!=null&&i.lng!=null);return t?{latitude:t.lat,longitude:t.lng,label:"mission base"}:{latitude:en.DEFAULT_LAT,longitude:en.DEFAULT_LNG,label:"default site"}}refreshCalendarCells(){this.calendar?.getApi()?.render(),this.refreshView()}loadHourlyBands(){if(!this.currentViewType.startsWith("timeGrid")){this.weatherBands=[],this.hourlyUnavailable=!1,this.applyEvents();return}let{latitude:t,longitude:i}=this.weatherReferencePoint(),r=new Date(this.currentEnd);r.setDate(r.getDate()-1),this.weatherService.getHourlyOutlook(t,i,this.dateKey(this.currentStart),this.dateKey(r)).pipe(_e(this.destroyRef)).subscribe({next:s=>{this.hourlyUnavailable=!s.checked,this.weatherBands=this.toBands(s.hours??[]),this.applyEvents(),this.refreshView()},error:s=>{console.error("Error loading hourly outlook:",s),this.hourlyUnavailable=!0,this.weatherBands=[],this.applyEvents(),this.refreshView()}})}toBands(t){let i=[],r=[],s=l=>{let d=l.filter(c=>c!=null);return d.length?Math.max(...d):null},o=l=>l===null?"unknown":l.toFixed(0),a=()=>
1{if(!r.length)return;let l=r[0],d=new Date(this.parseLocal(r[r.length-1].time).getTime()+3600*1e3),c=s(r.map(h=>h.wind_ms)),p=s(r.map(h=>h.gusts_ms));i.push({display:"background",start:this.parseLocal(l.time),end:d,classNames:["weather-band",`weather-band--${l.status}`],extendedProps:{isWeatherBand:!0,status:l.status,tooltip:[`${this.formatHour(l.time)}\u2013${this.formatHour(d)} \xB7 ${this.weatherLabel(l.status)}`,l.summary,c===null&&p===null?"":`Wind up to ${o(c)} m/s, gusts ${o(p)}`].filter(Boolean).join(` 2`)}}),r=[]};for(let l of t){if(l.status==="good"){a();continue}r.length&&r[r.length-1].status!==l.status&&a(),r.push(l)}return a(),i}parseLocal(t){let[i,r="00:00"]=t.split("T"),[s,o,a]=i.split("-").map(Number),[l,d]=r.split(":").map(Number);return new Date(s,o-1,a,l,d||0)}formatHour(t){let i=t instanceof Date?t:this.parseLocal(t);return`${`${i.getHours()}`.padStart(2,"0")}:${`${i.getMinutes()}`.padStart(2,"0")}`}applyEvents(){this.calendarOptions=or(ve({},this.calendarOptions),{events:[...this.scheduledEvents,...this.weatherBands]})}dateKey(t){let i=`${t.getMonth()+1}`.padStart(2,"0"),r=`${t.getDate()}`.padStart(2,"0");return`${t.getFullYear()}-${i}-${r}`}weatherFor(t){return this.weatherByDate.get(this.dateKey(t))}renderDayCell(t){let i=document.createElement("div");i.className="cal-day";let r=document.createElement("span");r.className=t.isToday?"cal-day__number cal-day__number--today":"cal-day__number",r.textContent=t.dayNumberText,i.appendChild(r);let o=(t.view?.type??this.currentViewType).startsWith("dayGrid")?this.weatherFor(t.date):void 0;if(o){let a=document.createElement("span");a.className="cal-day__weather",a.dataset.status=o.status,a.title=this.weatherTooltip(o),a.setAttribute("aria-label",`Flight conditions: ${this.weatherLabel(o.status)}`);let l=document.createElement("span");if(l.className="cal-day__dot",a.appendChild(l),o.wind_max_ms!=null){let d=document.createElement("span");d.className="cal-day__wind",d.textContent=`${Math.round(o.wind_max_ms)}`,a.appendChild(d)}i.appendChild(a)}return{domNodes:[i]}}decorateEvent(t){let i=t.event.extendedProps?.tooltip;t.event.extendedProps?.isWeatherBand&&i&&t.el.setAttribute("title",i)}weatherLabel(t){return{good:"good",warning:"marginal",no_go:"do not fly",unknown:"unknown"}[t]??"unknown"}loadSlotWeather(){let t=this.eventForm.date;if(!(t instanceof Date)||Number.isNaN(t.getTime())){this.slotHours=[],this.slotUnavailable=!0;return}let i=this.dateKey(t);if(i===this.slotDateKey&&this.slotHours.length)return;let{latitude:r,longitude:s}=this.weatherReferencePoint();this.slotDateKey=i,this.slotLoading=!0,this.slotUnavailable=!1,this.weatherService.getHourlyOutlook(r,s,i,i).pipe(_e(this.destroyRef)).subscribe({next:o=>{this.slotHours=o.hours??[],this.slotUnavailable=!o.checked,this.slotLoading=!1,this.refreshView()},error:o=>{console.error("Error loading slot weather:",o),this.slotHours=[],this.slotUnavailable=!0,this.slotLoading=!1,this.refreshView()}})}onSlotDateChange(){this.slotDateKey="",this.slotHours=[],this.loadSlotWeather()}get slotHour(){let t=this.eventForm.time;if(!(t instanceof Date)||!this.slotHours.length)return null;let i=t.getHours();return this.slotHours.find(r=>this.parseLocal(r.time).getHours()===i)??null}get slotDay(){let t=this.eventForm.date;return t instanceof Date?this.weatherFor(t):void 0}get slotStatus(){return this.slotHour?.status??"unknown"}get slotStatusLabel(){return this.weatherLabel(this.slotStatus)}get slotUnknown(){return!this.slotLoading&&(this.slotUnavailable||!this.slotHour)}get slotTimeLabel(){let t=this.eventForm.time;return t instanceof Date?this.formatHour(t):""}get slotExtraReasons(){let t=this.slotHour;return t?t.reasons.filter(i=>i!==t.summary):[]}get slotVisibilityKm(){let t=this.slotHour?.visibility_m;return t==null?null:t/1e3}weatherTooltip(t){let i=[`Flight conditions: ${this.weatherLabel(t.status)}`,t.summary];if(t.wind_max_ms!=null){let r=t.gusts_max_ms!=null?`, gusts ${t.gusts_max_ms.toFixed(0)}`:"";i.push(`Wind up to ${t.wind_max_ms.toFixed(0)} m/s${r}`)}if(t.precipitation_mm!=null){let r=t.precipitation_probability!=null?` (${t.precipitation_probability.toFixed(0)}% chance)`:"";i.push(`Rain ${t.precipitation_mm.toFixed(1)} mm${r}`)}return t.temperature_min_c!=null&&t.temperature_max_c!=null&&i.push(`${t.temperature_min_c.toFixed(0)}\u2013${t.temperature_max_c.toFixed(0)}
2 \xB0C`),i.filter(Boolean).join(` 3`)}loadEvents(){this.isLoading=!0,this.scheduledEventService.getEvents(this.currentStart,this.currentEnd).pipe(_e(this.destroyRef)).subscribe({next:t=>{this.scheduledEvents=this.scheduledEventService.convertToCalendarEvents(t),this.applyEvents(),this.isLoading=!1,this.refreshView()},error:t=>{console.error("Error loading events:",t),this.showMessage("error","Error","Failed to load calendar events"),this.isLoading=!1,this.refreshView()}})}loadMissions(){this.missionService.getFlyableMissions().pipe(_e(this.destroyRef)).subscribe({next:t=>{this.missions=t,this.loadWeather(),this.refreshView()},error:t=>{console.error("Error loading missions:",t),this.missions=[],this.loadWeather()}})}loadDrones(){this.droneService.getDrones().pipe(_e(this.destroyRef)).subscribe({next:t=>{this.drones=t,this.refreshView()},error:t=>{console.error("Error loading drones:",t),this.drones=[]}})}handleDatesSet(t){this.currentViewType=t.view?.type??this.currentViewType,this.datesSetSubject.next({start:t.start,end:t.end})}handleDateClick(t){this.openEventForm(t.date)}handleDateSelect(t){this.openEventForm(t.start)}handleEventClick(t){let i=t.event.extendedProps,r=i.originalId||parseInt(t.event.i
3d,10);this.scheduledEventService.getEventById(r).pipe(_e(this.destroyRef)).subscribe({next:s=>{s&&(i.is_occurrence&&(s=or(ve({},s),{scheduled_time:t.event.startStr,is_occurrence:!0,original_scheduled_time:i.original_scheduled_time,status:i.status,execution_id:i.execution_id,execution:i.execution})),this.selectedEvent=s,this.showEventDetails=!0,this.refreshView())},error:s=>{console.error("Error loading event details:",s),this.showMessage("error","Error","Failed to load event details")}})}openEventForm(t){this.isEditMode=!1;let i=t||new Date,r=new Date;r.setHours(9,0,0,0),this.eventForm={title:"",description:"",date:i,time:r,missionId:null,droneId:null,recurrenceType:"none",recurrenceInterval:1,recurrenceEndDate:null,recurrenceEndAfter:null},this.showEventForm=!0,this.onSlotDateChange(),this.refreshView()}openEditEventForm(t){this.isEditMode=!0,this.selectedEvent=t;let i=new Date(t.scheduled_time||t.start_time||new Date),r=this.scheduledEventService.parseRecurrenceRule(t.recurrence_rule);this.eventForm={title:t.title,description:t.description||"",date:i,time:i,missionId:t.mission_id??null,droneId:t.drone_id!=null?String(t.drone_id):null,recurrenceType:r.type,recurrenceInterval:r.interval,recurrenceEndDate:r.endDate||null,recurrenceEndAfter:r.endAfter||null},this.showEventDetails=!1,this.showEventForm=!0,this.onSlotDateChange()}saveEvent(){let t=this.validateEventForm();if(t){this.showMessage("warn","Validation Error",t);return}let i=this.buildEventData();this.isLoading=!0;let r=this.isEditMode&&this.selectedEvent?this.scheduledEventService.updateEvent(this.selectedEvent.id,i):this.scheduledEventService.createEvent(i),s=this.isEditMode?"updated":"created";r.pipe(_e(this.destroyRef)).subscribe({next:()=>{this.showMessage("success","Success",`Event ${s} successfully`),this.showEventForm=!1,this.isLoading=!1,this.loadEvents(),this.refreshView()},error:o=>{console.error(`Error ${this.isEditMode?"updating":"creating"} event:`,o),this.showMessage("error","Error",o?.error?.error?.message||`Failed to ${this.isEditMode?"update":"create"} event`),this.isLoading=!1,this.refreshView()}})}validateEventForm(){return this.eventForm.title?this.eventForm.missionId?this.eventForm.droneId?null:"Please select a drone":"Please select a mission":"Please enter an event title"}buildEventData(){let t=this.combineDateTime(this.eventForm.date,this.eventForm.time),i=this.eventForm.recurrenceEndAfter?Number(this.eventForm.recurrenceEndAfter):void 0;return{title:this.eventForm.title,description:this.eventForm.description||void 0,scheduled_time:t.toISOString(),drone_id:Number(this.eventForm.droneId),mission_id:this.eventForm.missionId,recurrence_rule:this.scheduledEventService.buildRecurrenceRule(this.eventForm.recurrenceType,this.eventForm.recurrenceInterval,this.eventForm.recurrenceEndDate||void 0,i)}}showMessage(t,i,r){this.messageService.add({severity:t,summary:i,detail:r})}deleteEvent(t){let i=t.is_occurrence===!0,r=i?t.scheduled_time:void 0,s=i?"Occurrence deleted successfully":"Event deleted successfully";this.performEventAction(this.scheduledEventService.deleteEvent(t.id,i,r),s,"Failed to delete event","deleting event")}deleteFullEvent(t){this.performEventAction(this.scheduledEventService.deleteEvent(t.id),"Event and all occurrences deleted successfully","Failed to delete event","deleting full event")}cancelOccurrence(t){this.performEventAction(this.scheduledEventService.updateOccurrenceStatus(t.id,t.scheduled_time,"cancelled"),"Occurrence cancelled successfully","Failed to cancel occurrence","cancelling occurrence")}reenableOccurrence(t){this.performEventAction(this.scheduledEventService.updateOccurrenceStatus(t.id,t.scheduled_time,"scheduled"),"Occurrence re-enabled successfully","Failed to re-enable occurrence","re-enabling occurrence")}toggleEventStatus(t){let i=t.status==="scheduled"?"completed":"scheduled";if(i==="completed"){this.openExecutionModal(t);return}let r=t.is_occurrence===!0,s=r?t.scheduled_time:void 0;this.performEventAction(this.scheduledEventService.updateEventStatus(t.id,i,r,s),`Event marked as ${i}`,"Failed to update event status","updating event status")}openExecutionModal(t){this.eventToComplete=t,this.selectedExecutionId=null,this.executions=[],this.showEventDetails=!1,this.showExecutionModal=!0,this.loadExecutionsForDrone(t.drone_id)}closeExecutionModal(){this.showExecutionModal=!1,this.eventToComplete=null,this.selectedExecutionId=null,this.executions=[]}loadExecutionsForDrone(t){this.executionsLoading=!0,this.executionService.getExecutionsByVehicle(t,20).pipe(_e(this.destroyRef)).subscribe({next:i=>{this.executions=i.data,this.executionsLoading=!1,this.refreshView()},error:i=>{console.error("Error loading executions:",i),this.executions=[],this.executionsLoading=!1,this.refreshView()}})}completeEventWithExecution(){if(!this.eventToComplete)return;
3let t=this.eventToComplete,i=t.is_occurrence===!0,r=i?t.scheduled_time:void 0;this.performEventAction(this.scheduledEventService.updateEventStatus(t.id,"completed",i,r,this.selectedExecutionId??void 0),"Event marked as completed","Failed to update event status","completing event",()=>this.closeExecutionModal())}formatExecutionDate(t){return new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}formatDuration(t){if(t==null)return"N/A";let i=Math.round(t),r=Math.floor(i/60),s=i%60;return r>0?`${r}m ${s}s`:`${s}s`}formatDistance(t){return t==null?"N/A":(t/1e3).toFixed(2)+" km"}formatMaxAltitude(t){return t==null?"N/A":t.toFixed(1)+" m"}skipAndComplete(){this.selectedExecutionId=null,this.completeEventWithExecution()}performEventAction(t,i,r,s,o){this.isLoading=!0,t.pipe(_e(this.destroyRef)).subscribe({next:a=>{a!==!1?(this.showMessage("success","Success",i),this.showEventDetails=!1,this.selectedEvent=null,this.loadEvents(),o?.()):(this.showMessage("error","Error",r),this.isLoading=!1),this.refreshView()},error:a=>{console.error(`Error ${s}:`,a),this.showMessage("error","Error",a?.error?.error?.message||r),this.isLoading=!1,this.refreshView()}})}getMissionName(t){return t?this.missions.find(i=>i.id===t)?.name??`Mission ${t}`:"N/A"}getDroneName(t){return t?this.drones.find(i=>i.id===t.toString())?.name??`Drone ${t}`:"N/A"}getStatusLabel(t){return this.statusConfig[t]?.label||t}getStatusSeverity(t){return this.statusConfig[t]?.severity||"info"}getStatusIcon(t){return this.statusConfig[t]?.icon||"pi pi-info"}getRecurrenceLabel(t){if(!t)return"None";let i=this.scheduledEventService.parseRecurrenceRule(t);if(i.type==="none")return"None";let r=this.recurrenceUnits[i.type],s=i.interval>1?r?.plural:r?.singular,a=`Every ${i.interval>1?`${i.interval} `:""}${s||i.type}`;return i.endAfter?a+=`, ${i.endAfter} times`:i.endDate&&(a+=`, until ${i.endDate.toLocaleDateString()}`),a}closeEventForm(){this.showEventForm=!1,this.selectedEvent=null,this.isEditMode=!1}closeEventDetails(){this.showEventDetails=!1,this.selectedEvent=null}openLinkedReport(t){t.execution?.id&&(this.showEventDetails=!1,this.dialogService.showDialog("app-reports-dialog",{execution_id:t.execution.id}))}combineDateTime(t,i){let r=new Date(t);return r.setHours(i.getHours(),i.getMinutes(),0,0),r}static \u0275fac=function(i){return new(i||n)(ie(Yn),ie(ld),ie(va),ie(ma),ie(xa),ie(wa),ie(ta),ie(Qn))};static \u0275cmp=Ye({type:n,selectors:[["app-calendar-dialog"]],viewQuery:function(i,r){if(i&1&&Gn(Wi,5),i&2){let s;Y(s=Z())&&(r.calendar=s.first)}},decls:61,vars:36,consts:[["footer",""],[1,"calendar-page"],[1,"portal-page-header"],[1,"portal-page-title"],[1,"calendar-container"],[1,"loading-overlay"],["data-cy","calendar-weather-note",1,"calendar-weather-note"],[3,"options"],["styleClass","event-form-dialog",3,"visibleChange","visible","modal","closable","header"],[1,"event-form"],[1,"field"],["for","title"],["id","title","type","text","pInputText","","placeholder","Enter event title",1,"w-full",3,"ngModelChange","ngModel"],["for","description"],["id","description","pTextarea","","placeholder","Enter event description","rows","3",1,"w-full",3,"ngModelChange","ngModel"],[1,"field-group"],["for","eventDate"],["id","eventDate","dateFormat","dd/mm/yy","appendTo","body",1,"w-full",3,"ngModelChange","ngModel","showIcon"],["for","eventTime"],["id","eventTime","appendTo","body",1,"w-full",3,"ngModelChange","ngModel","timeOnly","showIcon"],["data-cy","slot-weather",1,"slot-weather"],[1,"slot-weather__head"],["for","mission"],["id","mission","optionLabel","name","optionValue","id","placeholder","Select a mission","appendTo","body",1,"w-full",3,"ngModelChange","ngModel","options"],["for","drone"],["id","drone","optionLabel","name","optionValue","id","placeholder","Select a drone","appendTo","body",1,"w-full",3,"ngModelChange","ngModel","options"],["for","recurrence"],["id","recurrence","optionLabel","label","optionValue","value","appendTo","body",1,"w-full",3,"ngModelChange","ngModel","options"],[1,"field",3,"hidden"],["header","Event Details","styleClass","event-details-dialog",3,"visible","modal","closable","style"],["header","Select Mission Report","styleClass","execution-report-modal","maskStyleClass","execution-report-mask",3,"visibleChange","onHide","visible","modal","closable"],[1,"report-picker"],[1,"execution-hint"],[1,"execution-loading"],["role","listbox","aria-label","Mission reports",1,"execution-list"],[1,"calendar-weather-note__key"],["data-status","warning",1,"calendar-weather-note__dot"],["data-status","no_go",1,"calendar-weather-note__dot"],["data-status","good",1,"calendar-weather-note__dot"],["data-status","unknown",1,"slot-weather__light"],[1,"slot-weather__verdict"],["data-cy","slot-weather-verdict",1,"slot-weather__verdict"],["data-cy","slot-weather-summary",1,"slot-weather__summary"],[1,"slot-weather__light"],["data-cy","slot-weather-reasons",1,"slot-weather__reasons"],["data-cy","slot-weather-stats",1,"slot-weather__stats"],["data-cy","slot-weather-day",1,"slot-weather__day"],[1,"slot-weather__chance"],[1,"slot-weather__light","is-inline"],["for","interval"],["id","interval","type","number","pInputText","",1,"w-full",3,"ngModelChange","ngModel","min"],["for","recEndDate"],["id","recEndDate","dateFormat","dd/mm/yy","appendTo","body",1,"w-full",3,"ngModelChange","ngModel","showIcon"],["for","endAfter"],["id","endAfter","type","number","pInputText","","placeholder","Number of occurrences",1,"w-full",3,"ngModelChange","ngModel","min"],["label","Cancel","icon","pi pi-times",3,"click","text"],["icon","pi pi-check",3,"click","label","loading"],["header","Event Details","styleClass","event-details-dialog",3,"visibleChange","visible","modal","closable"],[1,"event-details"],[1,"detail-row"],[3,"value","severity","icon"],[1,"linked-report-section"],[1,"section-header"],[1,"pi","pi-file-check"],[1,"report-stats"],[1,"stat-item"],[1,"stat-label"],[1,"stat-value"],[1,"occurrence-note"],["label","Delete","icon","pi pi-trash","severity","danger",3,"text","loading"],["label","View Report","icon","pi pi-external-link",3,"text"],["label","Re-enable","icon","pi pi-refresh","severity","success",3,"text","loading"],["label","Cancel","icon","pi pi-ban","severity","warn",3,"text","loading"],["label","Delete All","icon","pi pi-trash","severity","danger",3,"click","text","loading"],["label","Re-enable","icon","pi pi-refresh","severity","success",3,"click","text","loading"],["label","Cancel","icon","pi pi-ban","severity","warn",3,"click","text","loading"],["label","Delete","icon","pi pi-trash","severity","danger",3,"click","text","loading"],["label","View Report","icon","pi pi-external-link",3,"click","text"],["label","Edit","icon","pi pi-pencil",3,"click","text"],["label","Mark Complete","
3icon","pi pi-check",3,"click","loading"],["tabindex","0","role","option",1,"execution-item",3,"selected"],[1,"no-executions"],["tabindex","0","role","option",1,"execution-item",3,"click","keydown.enter","keydown.space"],[1,"execution-info"],[1,"execution-date"],[1,"execution-details"],[1,"execution-duration"],[1,"execution-assets"],[1,"asset-badge"],[1,"pi","pi-check-circle","selection-check"],[1,"pi","pi-image"],[1,"pi","pi-video"],[1,"pi","pi-file"],[1,"pi","pi-inbox"],["label","Skip","icon","pi pi-forward",3,"click","text"],["label","Complete","icon","pi pi-check",3,"click","loading","disabled"]],template:function(i,r){if(i&1){let s=se();y(0,"section",1)(1,"div",2)(2,"h1",3),S(3,"Mission Calendar"),v()(),y(4,"div",4),T(5,Ig,2,0,"div",5),y(6,"p",6),T(7,Bg,2,1)(8,Lg,2,0,"span")(9,Vg,13,2),v(),j(10,"full-calendar",7),v()(),y(11,"p-dialog",8),le("visibleChange",function(a){return V(s),ae(r.showEventForm,a)||(r.showEventForm=a),U(a)}),y(12,"div",9)(13,"div",10)(14,"label",11),S(15,"Title *"),v(),y(16,"input",12),le("ngModelChange",function(a){return V(s),ae(r.eventForm.title,a)||(r.eventForm.title=a),U(a)}),v(),De(),v(),y(17,"div",10)(18,"label",13),S(19,"Description"),v(),y(20,"textarea",14),le("ngModelChange",function(a){return V(s),ae(r.eventForm.description,a)||(r.eventForm.description=a),U(a)}),v(),De(),v(),y(21,"div",15)(22,"div",10)(23,"label",16),S(24,"Date *"),v(),y(25,"p-datepicker",17),le("ngModelChange",function(a){return V(s),ae(r.eventForm.date,a)||(r.eventForm.date=a),U(a)}),te("ngModelChange",function(){return r.onSlotDateChange()}),v(),De(),v(),y(26,"div",10)(27,"label",18),S(28,"Time *"),v(),y(29,"p-datepicker",19),le("ngModelChange",function(a){return V(s),ae(r.eventForm.time,a)||(r.eventForm.time=a),U(a)}),v(),De(),v()(),y(30,"div",20),T(31,Ug,4,0,"div",21)(32,jg,6,1)(33,Jg,14,12),v(),y(34,"div",15)(35,"div",10)(36,"label",22),S(37,"Mission *"),v(),y(38,"p-select",23),le("ngModelChange",function(a){return V(s),ae(r.eventForm.missionId,a)||(r.eventForm.missionId=a),U(a)}),v(),De(),v(),y(39,"div",10)(40,"label",24),S(41,"Drone *"),v(),y(42,"p-select",25),le("ngModelChange",function(a){return V(s),ae(r.eventForm.droneId,a)||(r.eventForm.droneId=a),U(a)}),v(),De(),v()(),y(43,"div",10)(44,"label",26),S(45,"Recurrence"),v(),y(46,"p-select",27),le("ngModelChange",function(a){return V(s),ae(r.eventForm.recurrenceType,a)||(r.eventForm.recurrenceType=a),U(a)}),v(),De(),v(),T(47,em,9,4,"div",15),T(48,tm,4,3,"div",28),v(),ct(49,nm,2,3,"ng-template",null,0,qn),v(),T(51,ym,39,24,"p-dialog",29),y(52,"p-dialog",30),le("visibleChange",function(a){return V(s),ae(r.showExecutionModal,a)||(r.showExecutionModal=a),U(a)}),te("onHide",function(){return r.closeExecutionModal()}),y(53,"div",31)(54,"p",32),S(55," Select a mission report to link with this completed event, or skip to complete without linking. "),v(),T(56,bm,4,3,"div",33),T(57,Mm,4,1,"div",34),v(),ct(58,Tm,3,4,"ng-template",null,0,qn),v(),j(60,"p-toast")}i&2&&(C(5),k(r.isLoading?5:-1),C(2),k(r.showsHourlyBands?7:r.weatherUnavailable?8:r.weatherByDate.size?9:-1),C(3),R("options",r.calendarOptions),C(),Kt(Jt(34,cd)),oe("visible",r.showEventForm),R("modal",!0)("closable",!0)("header",r.isEditMode?"Edit Event":"Create New Event"),C(5),oe("ngModel",r.eventForm.title),xe(),C(4),oe("ngModel",r.eventForm.description),xe(),C(5),oe("ngModel",r.eventForm.date),R("showIcon",!0),xe(),C(4),oe("ngModel",r.eventForm.time),R("timeOnly",!0)("showIcon",!0),xe(),C(),Xt("data-status",r.slotStatus),C(),k(r.slotLoading?31:r.slotUnknown?32:33),C(7),oe("ngModel",r.eventForm.missionId),R("options",r.missions),xe(),C(4),oe("ngModel",r.eventForm.droneId),R("options",r.drones),xe(),C(4),oe("ngModel",r.eventForm.recurrenceType),R("options",r.recurrenceOptions),xe(),C(),k(r.eventForm.recurrenceType!=="none"?47:-1),C(),k(r.eventForm.recurrenceType!=="none"?48:-1),C(3),k(r.selectedEvent?51:-1),C(),Kt(Jt(35,kg)),oe("visible",r.showExecutionModal),R("modal",!0)("closable",!0),C(4),k(r.executionsLoading?56:-1),C(),k(r.executionsLoading?-1:57))},dependencies:[Tt,Jo,Yo,Ko,$o,Zo,Xo,Uc,Wi,ia,na,Ca,_a,sa,ra,ua,da,aa,oa,ga,pa,Sa,Ea,ha,fa,ca,la,qo,Go],styles:['@charset "UTF-8";.calendar-container[_ngcontent-%COMP%]{position:relative;height:auto;width:100%;min-width:0;overflow:visible;display:flex;flex-direction:column}.calendar-container[_ngcontent-%COMP%] .loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:#ffffffb3;display:flex;align-items:center;justify-content:center;z-index:1000}.calendar-container[_ngcontent-%COMP%] .fc.fc-theme-standard .fc-toolbar .fc-button{background:#fff!important;border:1px solid #e2e8f0!important;color:#334155!important;padding:.45rem 1rem;border-radius:8px;font-size:.875rem;font-weight:500;text-transform:capitalize;box-shadow:none!important;transition:border-color .15s ease,background .15s ease}.calendar-container[_ngcontent-%COMP%] .fc.fc-theme-standard .fc-toolbar .fc-button:enabled:hover{background:#f8fafc!important;border-color:#3b82f680!important;color:#0f172a!important}.calendar-container[_ngcontent-%COMP%] .fc.fc-theme-standard .fc-toolbar .fc-button:focus{box-shadow:0 0 0 2px #3b82f640!important}.calendar-container[_ngcontent-%COMP%] .fc.fc-theme-standard .fc-toolbar .fc-button:disabled{opacity:.5;cursor:not-allowed}.calendar-container[_ngcontent-%COMP%] .fc.fc-theme-standard .fc-toolbar .fc-button-active, .calendar-container[_ngcontent-%COMP%] .fc.fc-theme-standard .fc-toolbar .fc-button-active:enabled:hover{background:#eff6ff!important;border-color:#3b82f6!important;color:#2563eb!important}.calendar-container[_ngcontent-%COMP%] .fc{height:100%;width:100%!important;min-width:0}
3.calendar-container[_ngcontent-%COMP%] .fc .fc-header-toolbar{padding:0 0 1rem;background:none;border-bottom:1px solid #e2e8f0}.calendar-container[_ngcontent-%COMP%] .fc .fc-header-toolbar .fc-toolbar-chunk{display:flex;align-items:center;gap:.5rem}.calendar-container[_ngcontent-%COMP%] .fc .fc-header-toolbar .fc-button{margin:0 .125rem}.calendar-container[_ngcontent-%COMP%] .fc .fc-header-toolbar .fc-toolbar-title{font-size:1rem;font-weight:600;color:var(--text-color)}.calendar-container[_ngcontent-%COMP%] .fc .fc-view-harness{padding:1rem}.calendar-container[_ngcontent-%COMP%] .fc .fc-daygrid-day{padding:.5rem}.calendar-container[_ngcontent-%COMP%] .fc .fc-daygrid-day-frame{padding:.25rem}.calendar-container[_ngcontent-%COMP%] .fc .fc-daygrid-event{border-radius:4px;padding:4px 6px;font-size:.75rem;font-weight:500;cursor:pointer;margin:1px 0}.calendar-container[_ngcontent-%COMP%] .fc .fc-daygrid-event:hover{opacity:.8}.calendar-container[_ngcontent-%COMP%] .fc .fc-event-title{font-weight:600}.calendar-container[_ngcontent-%COMP%] .fc .fc-day-today{background-color:var(--primary-50)!important}.calendar-container[_ngcontent-%COMP%] .fc .fc-day:hover{background-color:var(--surface-100);cursor:pointer}.calendar-container[_ngcontent-%COMP%] .fc .fc-col-header-cell{background:var(--surface-50);font-weight:600;color:var(--text-color);border-color:var(--surface-200);padding:.75rem .5rem}.calendar-container[_ngcontent-%COMP%] .fc .fc-daygrid-day-number{color:var(--text-color);font-weight:500;padding:.5rem}.calendar-container[_ngcontent-%COMP%] .fc .fc-scrollgrid{border-color:var(--surface-200);width:100%!important}.calendar-container[_ngcontent-%COMP%] .fc .fc-scrollgrid td, .calendar-container[_ngcontent-%COMP%] .fc .fc-scrollgrid th{border-color:var(--surface-200)}.calendar-container[_ngcontent-%COMP%] .fc .fc-scrollgrid-sync-table{width:100%!important}.calendar-container[_ngcontent-%COMP%] .fc .fc-daygrid-body{width:100%!important}.calendar-container[_ngcontent-%COMP%] .fc .fc-daygrid-body-balanced .fc-daygri
3d-day-events{width:100%!important}.calendar-container[_ngcontent-%COMP%] .fc .fc-view{width:100%!important}.calendar-container[_ngcontent-%COMP%] .fc .fc-view-harness-active>.fc-view{width:100%!important}.event-form-dialog[_ngcontent-%COMP%] .p-dialog-content[_ngcontent-%COMP%], .event-details-dialog[_ngcontent-%COMP%] .p-dialog-content[_ngcontent-%COMP%]{padding:1.5rem} .p-dropdown-panel{z-index:99999!important} .p-calendar-panel{z-index:99999!important} .p-overlay{z-index:99999!important}.event-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{margin-bottom:1.5rem}.event-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-weight:600;color:var(--text-color)}.event-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%] .p-inputtext[_ngcontent-%COMP%], .event-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%] .p-inputtextarea[_ngcontent-%COMP%], .event-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%] .p-dropdown[_ngcontent-%COMP%], .event-form[_ngcontent-%COMP%] .field[_ngcontent-%COMP%] .p-calendar[_ngcontent-%COMP%]{width:100%}.event-form[_ngcontent-%COMP%] .field-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}.event-form[_ngcontent-%COMP%] .field-group[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{margin-bottom:0}.slot-weather[_ngcontent-%COMP%]{margin-bottom:1.5rem;padding:.875rem 1rem;border:1px solid var(--surface-200);border-left:3px solid #94a3b8;border-radius:6px;background:var(--surface-50)}.slot-weather[data-status=good][_ngcontent-%COMP%]{border-left-color:#22c55e}.slot-weather[data-status=warning][_ngcontent-%COMP%]{border-left-color:#eab308}.slot-weather[data-status=no_go][_ngcontent-%COMP%]{border-left-color:#f87171}.slot-weather__head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.slot-weather__light[_ngcontent-%COMP%]{width:.65rem;height:.65rem;border-radius:50%;flex-shrink:0;background:#94a3b8}.slot-weather__light[data-status=good][_ngcontent-%COMP%]{background:#22c55e}.slot-weather__light[data-status=warning][_ngcontent-%COMP%]{background:#eab308}.slot-weather__light[data-status=no_go][_ngcontent-%COMP%]{background:#f87171}.slot-weather__light.is-inline[_ngcontent-%COMP%]{display:inline-block;vertical-align:baseline;margin-right:.25rem}.slot-weather__verdict[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color)}.slot-weather__summary[_ngcontent-%COMP%]{margin:.5rem 0 0;color:var(--text-color-secondary);font-size:.875rem}.slot-weather__reasons[_ngcontent-%COMP%]{margin:.5rem 0 0;padding-left:1.1rem;color:var(--text-color-secondary);font-size:.875rem}.slot-weather__reasons[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:.15rem}.slot-weather__stats[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));gap:.25rem .75rem;margin:.75rem 0 0}.slot-weather__stats[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{opacity:.6;font-size:.75rem}.slot-weather__stats[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{margin:0;font-variant-numeric:tabular-nums;font-size:.875rem}.slot-weather__day[_ngcontent-%COMP%]{margin:.75rem 0 0;padding-top:.6rem;border-top:1px solid var(--surface-200);color:var(--text-color-secondary);font-size:.8125rem}.slot-weather__chance[_ngcontent-%COMP%]{opacity:.7}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--surface-200)}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]:last-child{border-bottom:none;margin-bottom:0}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--text-color);font-weight:600;min-width:120px;margin-right:1rem}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--text-color-secondary);text-align:right;flex:1}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .p-tag[_ngcontent-%COMP%]{margin-left:auto}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%]{background:var(--surface-50);border:1px solid var(--surface-200);border-radius:8px;padding:1rem;margin:1rem 0}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;color:var(--primary-color)}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:.9rem;min-width:auto;margin-right:0}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%] .report-stats[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%] .report-stats[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%] .report-stats[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .stat-label[_ngcontent-%COMP%]{font-size:.75rem;color:var(--text-color-secondary);text-transform:uppercase;letter-spacing:.025em}.event-details[_ngcontent-%COMP%] .linked-report-section[_ngcontent-%COMP%] .report-stats[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .stat-value[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:var(--text-color)}@media(max-width:768px){.event-form-dialog[_ngcontent-%COMP%] .p-dialog[_ngcontent-%COMP%], .event-details-dialog[_ngcontent-%COMP%] .p-dialog[_ngcontent-%COMP%]{width:100vw!important;height:100vh!important;margin:0!important;padding:0!important;border-radius:0!important;top:0!important;left:0!important;transform:none!important}.event-form[_ngcontent-%COMP%] .field-group[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:0}.event-form[_ngcontent-%COMP%] .field-group[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{margin-bottom:1.5rem}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-bottom:.25rem;margin-right:0}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:left}.event-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%] .p-tag[_ngcontent-%COMP%]{margin-left:0;margin-top:.25rem}}.occurrence-note[_ngcontent-%COMP%]{font-style:italic;color:#6c757d}@media(prefers-color-scheme:dark){.calendar-container[_ngcontent-%COMP%] .fc .fc-header-toolbar{background-color:#fff;border:none}.calendar-container[_ngcontent-%COMP%] .fc .fc-day-today{background-color:#d6d6d6!important}.calendar-container[_ngcontent-%COMP%] .fc .fc-day:hover{background-color:#d6d6d6}.calendar-container[_ngcontent-%COMP%] .fc .fc-col-header-cell{border-color:#d6d6d6}.calendar-container[_ngcontent-%COMP%] .fc .fc-scrollgrid, .calendar-container[_ngcontent-%COMP%] .fc .fc-scrollgrid td, .calendar-container[_ngcontent-%COMP%] .fc .fc-scrollgrid th{border-color:#d6d6d6}}.execution-report-modal[_ngcontent-%COMP%] .p-dialog-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] .execution-report-mask{z-index:10000!important}[_nghost-%COMP%] .execution-report-mask .execution-report-modal.p-dialog{z-index:10001!important}.report-picker[_ngcontent-%COMP%] .execution-hint[_ngcontent-%COMP%]{color:var(--text-color-secondary);font-size:.875rem;margin-bottom:1rem;margin-top:0}.report-picker[_ngcontent-%COMP%] .execution-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;gap:1rem;color:var(--text-color-secondary)}.report-picker[_ngcontent-%COMP%] .execution-list[_ngcontent-%COMP%]{max-height:350px;overflow-y:auto}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:.875rem 1rem;border:1px solid var(--surface-border);border-radius:6px;margin-bottom:.5rem;cursor:pointer;transition:all .15s ease;position:relative}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%]:hover{background:var(--surface-hover);border-color:var(--primary-color)}.report-picker[_ngcontent-%COMP%] .execution-item.selected[_ngcontent-%COMP%]{background:var(--primary-50);border-color:var(--primary-color)}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .execution-info[_ngcontent-%COMP%]{flex:1;min-width:0}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .execution-info[_ngcontent-%COMP%] .execution-date[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:600;color:var(--text-color);margin-bottom:.25rem}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .execution-info[_ngcontent-%COMP%] .execution-detail
3s[_ngcontent-%COMP%]{font-size:.75rem;color:var(--text-color-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .execution-info[_ngcontent-%COMP%] .execution-details[_ngcontent-%COMP%] .execution-duration[_ngcontent-%COMP%]{color:var(--text-color-secondary)}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .execution-assets[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-shrink:0}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .execution-assets[_ngcontent-%COMP%] .asset-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;font-size:.75rem;color:var(--text-color-secondary);background:var(--surface-100);padding:.25rem .5rem;border-radius:4px}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .execution-assets[_ngcontent-%COMP%] .asset-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.75rem}.report-picker[_ngcontent-%COMP%] .execution-item[_ngcontent-%COMP%] .selection-check[_ngcontent-%COMP%]{color:var(--primary-color);font-size:1.25rem;flex-shrink:0}.report-picker[_ngcontent-%COMP%] .no-executions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;color:var(--text-color-secondary);text-align:center}.report-picker[_ngcontent-%COMP%] .no-executions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2.5rem;margin-bottom:1rem;opacity:.5}.report-picker[_ngcontent-%COMP%] .no-executions[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:.875rem}[_nghost-%COMP%] .calendar-page .cal-day{display:flex;align-items:center;justify-content:space-between;gap:.35rem;width:100%}[_nghost-%COMP%] .calendar-page .cal-day__number{line-height:1}[_nghost-%COMP%] .calendar-page .cal-day__weather{display:inline-flex;align-items:center;gap:.2rem;cursor:help;opacity:.85}[_nghost-%COMP%] .calendar-page .cal-day__dot{width:.5rem;height:.5rem;border-radius:50%;flex-shrink:0;display:inline-block;background:#94a3b8}[_nghost-%COMP%] .calendar-page .cal-day__wind{font-size:.65rem;font-variant-numeric:tabular-nums;line-height:1;opacity:.75}[_nghost-%COMP%] .calendar-page .cal-day__weather[data-status=good] .cal-day__dot{background:#22c55e}[_nghost-%COMP%] .calendar-page .cal-day__weather[data-status=warning] .cal-day__dot{background:#eab308}[_nghost-%COMP%] .calendar-page .cal-day__weather[data-status=no_go] .cal-day__dot{background:#f87171;box-shadow:0 0 0 2px #f8717140}.calendar-weather-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;margin:0 0 .6rem;font-size:.8rem;opacity:.7}.calendar-weather-note__key[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}.calendar-weather-note__dot[_ngcontent-%COMP%]{width:.5rem;height:.5rem;border-radius:50%;display:inline-block}.calendar-weather-note__dot[data-status=good][_ngcontent-%COMP%]{background:#22c55e}.calendar-weather-note__dot[data-status=warning][_ngcontent-%COMP%]{background:#eab308}.calendar-weather-note__dot[data-status=no_go][_ngcontent-%COMP%]{background:#f87171}[_nghost-%COMP%] .calendar-page .weather-band{opacity:1;cursor:help}[_nghost-%COMP%] .calendar-page .weather-band--warning{background:repeating-linear-gradient(45deg,#eab30829,#eab30829 6px,#eab30812 6px 12px);border-left:2px solid rgba(234,179,8,.7)}[_nghost-%COMP%] .calendar-page .weather-band--no_go{background:repeating-linear-gradient(45deg,#f8717133,#f8717133 6px,#f8717117 6px 12px);border-left:2px solid rgba(248,113,113,.8)}[_nghost-%COMP%] .calendar-page .cal-day__number--today{display:inline-flex;align-items:center;justify-content:center;min-width:1.6rem;height:1.6rem;padding:0 .35rem;border-radius:999px;background:var(--primary-color, #3b82f6);color:#fff;font-weight:700;margin:-.15rem 0}[_nghost-%COMP%] .calendar-page .fc-day-today{background-color:var(--primary-50, #eff6ff)!important;box-shadow:inset 0 2px 0 0 var(--primary-color, #3b82f6)}[_nghost-%COMP%] .calendar-page .fc-col-header-cell.fc-day-today{box-shadow:inset 0 -2px 0 0 var(--primary-color, #3b82f6)}[_nghost-%COMP%] .calendar-page .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion{color:var(--primary-color, #3b82f6);font-weight:700}[_nghost-%COMP%] .calendar-page .fc-timegrid-now-indicator-line{border-color:var(--primary-color, #3b82f6);border-top-width:2px}[_nghost-%COMP%] .calendar-page .fc-timegrid-now-indicator-arrow{border-color:var(--primary-color, #3b82f6);color:var(--primary-color, #3b82f6)}@media(max-width:768px){.calendar-weather-note[_ngcontent-%COMP%]{flex-wrap:wrap;row-gap:.15rem}.calendar-weather-note__key[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] .cal-day{flex-wrap:wrap;justify-content:flex-start;gap:.1rem;max-width:100%;overflow:hidden}[_nghost-%COMP%] .cal-day__weather{flex-basis:100%}[_nghost-%COMP%] .fc .fc-toolbar{flex-wrap:wrap;justify-content:center;gap:.5rem}[_nghost-%COMP%] .fc .fc-toolbar-title{font-size:1.05rem}[_nghost-%COMP%] .fc .fc-toolbar-chunk:last-child{flex-basis:100%;display:flex;justify-content:center}[_nghost-%COMP%] .fc .fc-col-header-cell-cushion{padding:4px 2px;font-size:.8125rem}}'],changeDetection:1})}return n})();
3function Om(n,e){n&1&&j(0,"app-reports-dialog")}function Im(n,e){n&1&&j(0,"app-video-player-dialog")}var dd=(()=>{class n{dialogService;constructor(t){this.dialogService=t}static \u0275fac=function(i){return new(i||n)(ie(Yn))};static \u0275cmp=Ye({type:n,selectors:[["app-calendar-page"]],standalone:!1,decls:6,vars:6,template:function(i,r){i&1&&(y(0,"app-portal-page"),j(1,"app-calendar-dialog"),v(),T(2,Om,1,0,"app-reports-dialog"),re(3,"async"),T(4,Im,1,0,"app-video-player-dialog"),re(5,"async")),i&2&&(C(2),k(pr(3,2,r.dialogService.isDialogActive("app-reports-dialog"))?2:-1),C(2),k(pr(5,4,r.dialogService.isDialogActive("app-video-player-dialog"))?4:-1))},dependencies:[sr,Aa,Da,ya,zo],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:1})}return n})();var Pm=[{path:"",component:dd}],Yy=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=zn({type:n});static \u0275inj=Wn({imports:[Tt,sr,Ra,ba,ea.forChild(Pm)]})}return n})();export{Yy as PortalCalendarModule};
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.